/**
 * Single product page — matches single-product.html.
 * This file is the only source of truth for single product styles.
 *
 * @package medadak
 */

:root {
      --mdk-bg: #f7f8fb;
      --mdk-surface: #ffffff;
      --mdk-soft: #f3f8fb;
      --mdk-soft-2: #f1f4f8;
      --mdk-border: #e6e9ef;
      --mdk-text: #1c1c25;
      --mdk-muted: #707486;
      --mdk-title: #22175c;
      --mdk-price: #153a6e;
      --mdk-primary: #0060fe;
      --mdk-primary-hover: #004dcb;
      --mdk-badge: #fcd73d;
      --mdk-sale: #e90544;
      --mdk-ok: #0f9f6e;
      --mdk-ok-soft: rgba(15, 159, 110, 0.1);
      --mdk-radius: 22px;
      --mdk-shadow: 0 10px 30px rgba(28, 39, 64, 0.06);
    }

body.medadak-single-product {
  color: var(--mdk-text);
  overflow-x: clip;
}

    .medadak_product {
      width: min(1280px, calc(100% - 32px));
      margin: 0 auto;
      padding: 32px 0 80px;
      display: flex;
      flex-direction: column;
      gap: 28px;
    }

    .medadak_product-breadcrumb {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      color: var(--mdk-muted);
      font-size: 14px;
    }

    .medadak_product-breadcrumb a {
      color: var(--mdk-muted);
      text-decoration: none;
    }

    .medadak_product-breadcrumb a:hover { color: var(--mdk-primary); }

    .medadak_product-breadcrumb i {
      font-size: 14px;
      opacity: 0.7;
    }

    .medadak_product-breadcrumb a i {
      font-size: 16px;
      opacity: 1;
    }

    /* ---- Hero card ---- */
    .medadak_product-hero {
      display: grid;
      grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
      gap: 28px;
      background: var(--mdk-surface);
      border: 1px solid var(--mdk-border);
      border-radius: 28px;
      padding: 24px;
      box-shadow: var(--mdk-shadow);
    }

    .medadak_product-gallery {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      align-items: start;
      min-width: 0;
    }

    .medadak_product-gallery.has-thumbs.is-thumbs-side {
      grid-template-columns: 84px minmax(0, 1fr);
    }

    .medadak_product-gallery.has-thumbs.is-thumbs-bottom {
      grid-template-columns: 1fr;
    }

    .medadak_product-gallery.is-thumbs-bottom .medadak_product-main-media {
      order: 1;
    }

    .medadak_product-gallery.is-thumbs-bottom .medadak_product-thumbs {
      order: 2;
      width: 100%;
      height: 96px;
      max-height: none;
    }

    .medadak_product-thumbs {
      height: 460px;
      max-height: 460px;
      min-width: 0;
      padding: 8px;
      background: var(--mdk-soft);
      border-radius: 18px;
      border: 1px solid var(--mdk-border);
      overflow: hidden;
    }

    .medadak_product-thumbs .swiper-slide {
      width: 64px;
      height: 80px;
    }

    .medadak_product-thumbs button {
      border: 2px solid transparent;
      background: #fff;
      border-radius: 14px;
      padding: 6px;
      cursor: pointer;
      width: 64px;
      height: 80px;
      max-width: 100%;
      overflow: hidden;
      transition: border-color 0.2s ease, outline-color 0.2s ease;
      outline: 3px solid transparent;
      outline-offset: 0;
      box-shadow: none;
    }

    .medadak_product-thumbs .swiper-slide-thumb-active button,
    .medadak_product-thumbs button.is-active,
    .medadak_product-thumbs button:hover {
      border-color: var(--mdk-primary);
      outline-color: rgba(0, 96, 254, 0.12);
      box-shadow: none;
    }

    .medadak_product-thumbs img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .medadak_product-main-media {
      position: relative;
      background: #f3f3f3;
      border-radius: 22px;
      min-height: 460px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .medadak_product-main-slider {
      width: 100%;
      height: 460px;
    }

    .medadak_product-main-slider .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 460px;
    }

    .medadak_product-zoom {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      cursor: zoom-in;
    }

    .medadak_product-gallery[data-lightbox="0"][data-zoom="0"] .medadak_product-zoom {
      cursor: default;
    }

    .medadak_product-main-media img {
      display: block;
      width: auto;
      max-width: min(86%, 360px);
      height: auto;
      max-height: 420px;
      object-fit: contain;
      transition: transform 0.18s ease;
    }

    .medadak_product-gallery-nav,
    .medadak_product-gallery-fs {
      position: absolute;
      z-index: 3;
      width: 42px;
      height: 42px;
      border: 1px solid var(--mdk-border);
      border-radius: 12px;
      background: #fff;
      color: var(--mdk-text);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--mdk-shadow);
      transition: 0.2s ease;
    }

    .medadak_product-gallery-nav:hover:not(.is-disabled),
    .medadak_product-gallery-fs:hover {
      background: var(--mdk-primary);
      border-color: var(--mdk-primary);
      color: #fff;
    }

    .medadak_product-gallery-nav.is-disabled,
    .medadak_product-gallery-nav.is-locked {
      opacity: 0.4;
      cursor: default;
    }

    .medadak_product-gallery-prev {
      top: 50%;
      right: 14px;
      transform: translateY(-50%);
    }

    .medadak_product-gallery-next {
      top: 50%;
      left: 14px;
      transform: translateY(-50%);
    }

    html[dir="ltr"] .medadak_product-gallery-prev {
      right: auto;
      left: 14px;
    }

    html[dir="ltr"] .medadak_product-gallery-next {
      left: auto;
      right: 14px;
    }

    .medadak_product-gallery-fs {
      top: 16px;
      right: 16px;
    }

    .medadak_product-stock {
      position: absolute;
      bottom: 18px;
      right: 22px;
      pointer-events: none;
      background: var(--mdk-badge);
      color: var(--mdk-text);
      font-size: 12px;
      font-weight: 700;
      padding: 7px 16px;
      border-radius: 100px;
      box-shadow: 1px 3px 11px 2px rgba(252, 215, 61, 0.65);
      transform: rotate(4deg);
      z-index: 2;
    }

    .medadak_product-discount-badge {
      position: absolute;
      top: 16px;
      left: 16px;
      pointer-events: none;
      background: var(--mdk-sale);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      padding: 8px 12px;
      border-radius: 100px;
      box-shadow: 0 8px 18px rgba(233, 5, 68, 0.28);
      z-index: 2;
    }

    .medadak_product-summary {
      display: flex;
      flex-direction: column;
      gap: 18px;
      min-width: 0;
      padding: 8px 8px 4px 4px;
    }

    .medadak_product-summary-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .medadak_product-brand {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--mdk-soft);
      color: var(--mdk-muted);
      border-radius: 100px;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 600;
    }

    .medadak_product-brand strong { color: var(--mdk-primary); }

    .medadak_product-actions-mini {
      display: flex;
      gap: 8px;
    }

    .medadak_product-actions-mini button {
      width: 42px;
      height: 42px;
      border: 1px solid var(--mdk-border);
      border-radius: 12px;
      background: #fff;
      color: var(--mdk-muted);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: 0.2s ease;
    }

    .medadak_product-actions-mini button:hover {
      color: var(--mdk-primary);
      border-color: rgba(0, 96, 254, 0.35);
      background: var(--mdk-soft);
    }

    .medadak_product-share {
      position: relative;
    }

    .medadak_product-share.is-open > [data-medadak-share] {
      color: var(--mdk-primary);
      border-color: rgba(0, 96, 254, 0.35);
      background: var(--mdk-soft);
    }

    .medadak_product-share-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      z-index: 20;
      min-width: 190px;
      padding: 6px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      background: #fff;
      border: 1px solid var(--mdk-border);
      border-radius: 14px;
      box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
      transform-origin: top left;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-6px) scaleY(0.92);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .medadak_product-share.is-open .medadak_product-share-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scaleY(1);
    }

    .medadak_product-share-menu a,
    .medadak_product-actions-mini .medadak_product-share-menu button {
      width: 100%;
      height: auto;
      padding: 10px 12px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--mdk-title);
      font: inherit;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .medadak_product-share-menu i {
      width: 20px;
      font-size: 18px;
      text-align: center;
      flex-shrink: 0;
    }

    .medadak_product-share-menu a:hover,
    .medadak_product-actions-mini .medadak_product-share-menu button:hover {
      background: var(--mdk-soft);
      color: var(--mdk-title);
    }

    .medadak_product-share-menu .is-whatsapp i { color: #25d366; }
    .medadak_product-share-menu .is-telegram i { color: #229ed9; }
    .medadak_product-share-menu .is-instagram i { color: #e1306c; }
    .medadak_product-share-menu .is-copy i { color: var(--mdk-primary); }

    .medadak_product-share-menu .is-copy {
      margin-top: 4px;
      border-top: 1px solid var(--mdk-border) !important;
      border-radius: 0 0 10px 10px !important;
    }

    .medadak_product-actions-mini .medadak_product-share-menu .is-copy.is-copied,
    .medadak_product-actions-mini .medadak_product-share-menu .is-copy.is-copied i {
      color: #12b76a;
    }

    .medadak_product-summary h1 {
      margin: 0;
      font-size: clamp(22px, 3vw, 30px);
      line-height: 1.55;
      color: var(--mdk-title);
      font-weight: 800;
    }

    .medadak_product-rating-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
      color: var(--mdk-muted);
      font-size: 14px;
    }

    .medadak_rank-product {
      --star-color: #ebeff6;
      --star-filled-color: #ffc700;
      --star-size: 22px;
      --rating-color: #040404;
      --rating-fill: 0%;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .medadak_rank-star {
      position: relative;
      display: block;
      width: var(--star-size);
      height: var(--star-size);
      flex-shrink: 0;
      line-height: 1;
      font-size: var(--star-size);
    }

    .medadak_rank-star-base {
      display: block;
      width: var(--star-size);
      height: var(--star-size);
      line-height: 1;
      color: var(--star-color);
    }

    .medadak_rank-star-fill {
      position: absolute;
      top: 0;
      left: 0;
      width: var(--rating-fill);
      height: 100%;
      overflow: hidden;
      line-height: 1;
      color: var(--star-filled-color);
      pointer-events: none;
    }

    .medadak_rank-star-base i,
    .medadak_rank-star-fill i {
      display: block;
      font-size: var(--star-size);
      width: var(--star-size);
      height: var(--star-size);
      line-height: 1;
    }

    .medadak_rank-star-base i {
      color: var(--star-color);
    }

    .medadak_rank-star-fill i {
      position: absolute;
      top: 0;
      left: 0;
      color: var(--star-filled-color) !important;
    }

    .medadak_rank-product > span:not(.medadak_rank-star) {
      font-size: 13px;
      color: var(--rating-color);
      line-height: 1;
      font-weight: 700;
    }

    .medadak_product-review-meta .medadak_rank-product {
      --star-size: 16px;
      gap: 4px;
    }

    .medadak_product-rating-row a {
      color: var(--mdk-primary);
      text-decoration: none;
      font-weight: 600;
    }

    .medadak_product-price-box {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
      padding: 18px 0;
      border-top: 1px solid var(--mdk-soft-2);
      border-bottom: 1px solid var(--mdk-soft-2);
    }

    .medadak_product-price-box del {
      color: #9fafc6;
      font-size: 16px;
    }

    .medadak_product-price-box ins {
      text-decoration: none;
      color: var(--mdk-price);
      font-size: 30px;
      font-weight: 800;
    }

    .medadak_product-price-box .off {
      background: rgba(233, 5, 68, 0.08);
      color: var(--mdk-sale);
      border-radius: 100px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 700;
    }

    .medadak_product-countdown {
      --countdown-color: var(--mdk-sale);
      --timer-bg: #ee1844;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding: 12px 16px;
      background: color-mix(in srgb, var(--countdown-color) 8%, transparent);
      border-radius: 16px;
    }

    .medadak_product-countdown[hidden] {
      display: none !important;
    }

    .medadak_product-countdown-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--countdown-color);
      font-size: 13px;
      font-weight: 700;
    }

    .medadak_product-countdown-label i {
      font-size: 18px;
    }

    .medadak_product-countdown .medadak_countdown-product-slider {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 128px;
      min-height: 36px;
      padding: 8px 14px 8px 22px;
      background: var(--mdk-surface);
      border-radius: 12px;
    }

    .medadak_product-countdown .medadak_countdown-timer-icon {
      position: absolute;
      left: -6px;
      top: -8px;
      width: 25px;
      height: 25px;
      padding: 4px;
      background: var(--timer-bg);
      border-radius: 50px;
      box-shadow: -1px 3px 19px 1px var(--timer-bg);
      object-fit: contain;
    }

    html[dir="ltr"] .medadak_product-countdown .medadak_countdown-timer-icon {
      left: auto;
      right: -6px;
    }

    html[dir="ltr"] .medadak_product-countdown .medadak_countdown-product-slider {
      padding: 8px 22px 8px 14px;
    }

    .medadak_product-countdown .medadak_countdown-product-slider-time {
      font-size: 14px;
      font-weight: 700;
      color: var(--countdown-color);
      line-height: 1;
      direction: ltr;
      unicode-bidi: isolate;
    }

    .medadak_product-short {
      margin: 0;
      color: var(--mdk-muted);
      line-height: 1.9;
      font-size: 15px;
    }

    .medadak_product-specs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .medadak_product-spec {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--mdk-soft);
      border-radius: 14px;
      padding: 12px 14px;
      font-size: 13px;
    }

    .medadak_product-spec span {
      color: var(--mdk-muted);
    }

    .medadak_product-spec strong {
      color: var(--mdk-text);
      font-weight: 700;
    }

    .medadak_product-buy-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .medadak_product-qty {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--mdk-soft);
      border: 1px solid var(--mdk-border);
      border-radius: 14px;
      padding: 6px;
      min-width: 140px;
      justify-content: space-between;
    }

    .medadak_product-qty button {
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 10px;
      background: #fff;
      color: var(--mdk-price);
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
      box-shadow: var(--mdk-shadow);
    }

    .medadak_product-qty input {
      width: 42px;
      border: 0;
      background: transparent;
      text-align: center;
      font-family: inherit;
      font-size: 16px;
      font-weight: 700;
      color: var(--mdk-text);
      outline: 0;
    }

    .medadak_product-add {
      flex: 1;
      min-width: 180px;
      height: 52px;
      border: 0;
      border-radius: 14px;
      background: var(--mdk-primary);
      color: #fff;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: -4px 0 14px 1px rgba(0, 96, 254, 0.4);
      transition: 0.2s ease;
    }

    .medadak_product-add:hover {
      background: var(--mdk-primary-hover);
    }

    .medadak_product-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 18px;
      color: var(--mdk-muted);
      font-size: 13px;
    }

    .medadak_product-meta strong {
      color: var(--mdk-text);
      font-weight: 600;
    }

    .medadak_product-meta strong.is-in-stock { color: var(--mdk-primary); }
    .medadak_product-meta strong.is-out-of-stock { color: var(--mdk-sale); }

    .medadak_product-meta a {
      color: var(--mdk-primary);
      text-decoration: none;
    }

    .medadak_product-trust {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .medadak_product-trust-item {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--mdk-soft);
      border-radius: 14px;
      padding: 12px;
      font-size: 12px;
      color: var(--mdk-muted);
      line-height: 1.5;
    }

    .medadak_product-trust-item i {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: #fff;
      color: var(--mdk-primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: var(--mdk-shadow);
      font-size: 16px;
    }

    /* ---- Tabs ---- */
    .medadak_product-tabs {
      background: var(--mdk-surface);
      border: 1px solid var(--mdk-border);
      border-radius: 28px;
      padding: 24px;
      box-shadow: var(--mdk-shadow);
    }

    .medadak_product-tablist {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      border-bottom: 1px solid var(--mdk-soft-2);
      padding-bottom: 14px;
      margin-bottom: 22px;
    }

    .medadak_product-tab {
      border: 0;
      background: var(--mdk-soft);
      color: #9aa0b2;
      border-radius: 100px;
      padding: 10px 18px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .medadak_product-tab.is-active,
    .medadak_product-tab:hover {
      background: var(--mdk-primary);
      color: #fff;
      box-shadow: -4px 0 12px 1px rgba(0, 96, 254, 0.3);
    }

    .medadak_product-panel {
      display: none;
      color: var(--mdk-text);
      line-height: 2;
      font-size: 15px;
    }

    .medadak_product-panel.is-active { display: block; }

    .medadak_product-panel h3 {
      margin: 0 0 12px;
      font-size: 18px;
      color: var(--mdk-text);
    }

    .medadak_product-panel p {
      margin: 0 0 14px;
      color: var(--mdk-muted);
    }

    .medadak_product-panel ul {
      margin: 0;
      padding: 0 18px 0 0;
      color: var(--mdk-muted);
    }

    .medadak_product-attrs {
      width: 100%;
      border-collapse: collapse;
    }

    .medadak_product-attrs tr + tr td {
      border-top: 1px solid var(--mdk-soft-2);
    }

    .medadak_product-attrs td {
      padding: 14px 8px;
      font-size: 14px;
    }

    .medadak_product-attrs td:first-child {
      color: var(--mdk-muted);
      width: 180px;
    }

    .medadak_product-attrs td:last-child {
      color: var(--mdk-text);
      font-weight: 600;
    }

    .medadak_product-review {
      display: flex;
      gap: 14px;
      padding: 16px;
      border-radius: 18px;
      background: var(--mdk-soft);
      margin-bottom: 12px;
    }

    .medadak_product-review-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #fff;
      color: var(--mdk-primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      flex-shrink: 0;
      overflow: hidden;
      box-shadow: var(--mdk-shadow);
    }

    .medadak_product-review-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .medadak_product-review h4 {
      margin: 0 0 4px;
      font-size: 14px;
    }

    .medadak_product-review p {
      margin: 0;
      font-size: 13px;
      line-height: 1.8;
    }

    .medadak_product-review-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 6px;
      color: var(--mdk-muted);
      font-size: 12px;
    }

    /* ---- Related ---- */
    .medadak_product-related {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .medadak_product-related-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .medadak_product-related-head h2 {
      margin: 0;
      font-size: 22px;
      font-weight: 800;
      color: var(--mdk-text);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .medadak_product-related-head h2 span {
      display: block;
      width: 20px;
      border-bottom: 5px solid var(--mdk-primary);
      border-radius: 50px;
      box-shadow: 1px 2px 6px 1px rgba(0, 96, 254, 0.55);
    }

    .medadak_product-related-head p {
      margin: 0;
      color: var(--mdk-muted);
      font-size: 14px;
    }

    .medadak_product-related-side {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .medadak_product-related-nav {
      display: flex;
      gap: 8px;
    }

    .medadak_product-related-nav button {
      width: 42px;
      height: 42px;
      border: 1px solid var(--mdk-border);
      border-radius: 12px;
      background: #fff;
      color: var(--mdk-text);
      font-size: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .medadak_product-related-nav button:hover:not(.is-disabled) {
      background: var(--mdk-primary);
      border-color: var(--mdk-primary);
      color: #fff;
      box-shadow: 0 6px 16px rgba(0, 96, 254, 0.3);
    }

    .medadak_product-related-nav button.is-disabled {
      opacity: 0.4;
      cursor: default;
    }

    .medadak_product-related-nav button.is-locked {
      display: none;
    }

    .medadak_product-related-slider {
      width: 100%;
      padding: 10px 10px 44px;
      margin: -10px -10px -44px;
      box-sizing: content-box;
    }

    .medadak_product-related-slider .swiper-slide {
      height: auto;
      display: flex;
    }

    .medadak_product-related-slider .swiper-slide > .medadak_shop-card {
      width: 100%;
    }

    .medadak_product-related-slider:not(.swiper-initialized) .swiper-wrapper {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
    }

    @media (max-width: 1100px) {
      .medadak_product-trust {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 900px) {
      .medadak_product-hero {
        grid-template-columns: 1fr;
        padding: 16px;
      }

      .medadak_product-gallery,
      .medadak_product-gallery.has-thumbs {
        grid-template-columns: 1fr;
      }

      .medadak_product-thumbs {
        width: 100%;
        height: 96px;
        max-height: none;
        order: 2;
      }

      .medadak_product-thumbs .swiper-slide,
      .medadak_product-thumbs button {
        width: 64px;
        height: 80px;
      }

      .medadak_product-main-media {
        min-height: 360px;
        height: 360px;
        order: 1;
      }

      .medadak_product-main-slider,
      .medadak_product-main-slider .swiper-slide {
        min-height: 360px;
        height: 360px;
      }

      .medadak_product-main-media img {
        max-width: min(90%, 320px);
        max-height: 340px;
      }

      .medadak_product-gallery-nav {
        width: 36px;
        height: 36px;
      }

      .medadak_product-specs {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 560px) {
      .medadak_product {
        width: min(100% - 20px, 1280px);
        padding-top: 20px;
      }

      .medadak_product-buy-row {
        flex-direction: column;
        align-items: stretch;
      }

      .medadak_product-qty {
        width: 100%;
      }
    }

/* ---- WP / WooCommerce integration (do not remove) ---- */
body.medadak-single-product {
  overflow-x: clip;
}

body.medadak-single-product .moho_bg-breadcrumb-archive-shop {
  display: none !important;
}

body.medadak-single-product .woocommerce-notices-wrapper {
  display: block !important;
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 0;
}

.medadak_product,
.medadak_product *,
.medadak_product *::before,
.medadak_product *::after {
  box-sizing: border-box;
}

/* Neutralize leftover WooCommerce / theme product wrappers */
body.medadak-single-product .medadak_product.product {
  float: none !important;
  width: min(1280px, calc(100% - 32px)) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 32px 0 80px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.medadak-single-product .medadak_product::before,
body.medadak-single-product .medadak_product::after {
  content: none !important;
  display: none !important;
}

.medadak_product .woocommerce-product-gallery,
.medadak_product .onsale,
.medadak_product .woocommerce-product-gallery__wrapper {
  display: none !important;
}

.medadak_product-short p:last-child { margin-bottom: 0; }

.medadak_product-purchase {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.medadak_product-buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.medadak_product-buy-row > form.medadak_product-simple-cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  float: none !important;
}

.medadak_product-add.single_add_to_cart_button,
.medadak_product-variations .single_add_to_cart_button {
  flex: 1;
  min-width: 180px;
  height: 52px;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--mdk-primary) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: -4px 0 14px 1px rgba(0, 96, 254, 0.4) !important;
  transition: 0.2s ease;
  text-decoration: none !important;
  padding: 0 18px !important;
  line-height: 1 !important;
}

.medadak_product-add.single_add_to_cart_button:hover,
.medadak_product-variations .single_add_to_cart_button:hover {
  background: var(--mdk-primary-hover) !important;
  color: #fff !important;
}

/* ---- AJAX add to cart loading (matches product cards) ---- */
.medadak_product .single_add_to_cart_button {
  position: relative;
}

.medadak_product .single_add_to_cart_button.loading {
  pointer-events: none;
  opacity: 1 !important;
  color: transparent !important;
}

.medadak_product .single_add_to_cart_button.loading i {
  visibility: hidden;
}

.medadak_product .single_add_to_cart_button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  animation: medadak-single-cart-spin 0.6s linear infinite;
}

.medadak_product .single_add_to_cart_button.added {
  background: var(--mdk-primary-hover) !important;
}

.medadak_product-related .added_to_cart {
  display: none !important;
}

@keyframes medadak-single-cart-spin {
  to {
    transform: rotate(360deg);
  }
}

.medadak_product-cart-notice {
  background: rgba(233, 5, 68, 0.06);
  border: 1px solid rgba(233, 5, 68, 0.2);
  color: var(--mdk-sale);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

.medadak_product-cart-notice p {
  margin: 0;
}

/* Variable product form — block layout, never flex the whole form */
.medadak_product-variations {
  width: 100%;
}

.medadak_product-variations form.variations_form.cart,
.medadak_product-variations form.medadak_variations-form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: 0 !important;
  background: transparent !important;
}

.medadak_variations-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
}

.medadak_variations-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.medadak_variations-label {
  margin: 0;
  color: var(--mdk-muted);
  font-size: 13px;
  font-weight: 700;
}

.medadak_variations-control {
  position: relative;
  width: 100%;
}

.medadak_variations-control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--mdk-muted);
  border-bottom: 2px solid var(--mdk-muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.medadak_product-variations select,
.medadak_product-variations .medadak_variations-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  min-height: 52px;
  border: 1px solid var(--mdk-border) !important;
  border-radius: 14px !important;
  background: var(--mdk-soft) !important;
  color: var(--mdk-text) !important;
  padding: 12px 16px 12px 40px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  outline: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.medadak_product-variations select:hover,
.medadak_product-variations .medadak_variations-select:hover {
  border-color: rgba(0, 96, 254, 0.35) !important;
  background: #fff !important;
}

.medadak_product-variations select:focus,
.medadak_product-variations .medadak_variations-select:focus {
  border-color: var(--mdk-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 96, 254, 0.12) !important;
}

.medadak_product-variations select option {
  color: var(--mdk-text);
  background: #fff;
  font-weight: 600;
}

.medadak_product-variations .reset_variations {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
  color: var(--mdk-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.medadak_product-variations .reset_variations:hover {
  text-decoration: underline;
}

.medadak_product-variations .woocommerce-variation-price {
  display: none; /* price updates in .medadak_product-price-box */
}

.medadak_product-variations .woocommerce-variation-availability {
  margin: 0 0 10px;
  font-size: 14px;
}

.medadak_product-price-box .price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.medadak_product-panel {
  display: none;
}

.medadak_product-panel.is-active {
  display: block !important;
}

.medadak_product-description {
  color: var(--mdk-muted);
  line-height: 2;
  font-size: 15px;
}

.medadak_product-description p {
  margin: 0 0 14px;
  color: var(--mdk-muted);
}

.medadak_product-description p:last-child {
  margin-bottom: 0;
}

.medadak_product-variations .single_variation_wrap {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.medadak_product-variations .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
}

.medadak_product-variations .quantity,
.medadak_product-grouped .quantity {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background: var(--mdk-soft);
  border: 1px solid var(--mdk-border);
  border-radius: 14px;
  padding: 6px;
  min-width: 140px;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
}

.medadak_product-variations .quantity .qty,
.medadak_product-grouped .quantity .qty {
  width: 42px !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--mdk-text);
  outline: 0;
  padding: 0 !important;
  box-shadow: none !important;
}

.medadak_product-variations .quantity .minus,
.medadak_product-variations .quantity .plus,
.medadak_product-grouped .quantity .minus,
.medadak_product-grouped .quantity .plus {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--mdk-price);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-shadow: var(--mdk-shadow);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.medadak_product-variations .quantity .qty::-webkit-outer-spin-button,
.medadak_product-variations .quantity .qty::-webkit-inner-spin-button,
.medadak_product-grouped .quantity .qty::-webkit-outer-spin-button,
.medadak_product-grouped .quantity .qty::-webkit-inner-spin-button,
.medadak_product-qty input::-webkit-outer-spin-button,
.medadak_product-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.medadak_product-variations .quantity .qty,
.medadak_product-grouped .quantity .qty,
.medadak_product-qty input {
  -moz-appearance: textfield;
}

/* ---- Variation swatches ---- */
.medadak_variations-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.medadak_variations-current {
  color: var(--mdk-text);
  font-size: 13px;
  font-weight: 700;
}

.medadak_variations-control:has(.medadak_swatches)::after {
  content: none;
}

.medadak_product-variations select.medadak_variations-select--hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.medadak_swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.medadak_swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--mdk-border);
  border-radius: 100px;
  background: var(--mdk-soft);
  color: var(--mdk-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.medadak_swatch:hover {
  border-color: rgba(0, 96, 254, 0.35);
  background: #fff;
}

.medadak_swatch.is-active {
  border-color: var(--mdk-primary);
  background: #fff;
  color: var(--mdk-primary);
  box-shadow: 0 0 0 3px rgba(0, 96, 254, 0.12);
}

.medadak_swatch:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  text-decoration: line-through;
}

.medadak_swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--mdk-border);
  flex-shrink: 0;
}

.medadak_swatch.is-active .medadak_swatch-dot {
  box-shadow: 0 0 0 2px var(--mdk-primary);
}

.medadak_product-variations .woocommerce-variation-availability p {
  margin: 0;
  color: var(--mdk-primary);
  font-weight: 700;
}

.medadak_product-variations .woocommerce-variation-availability .out-of-stock {
  color: var(--mdk-sale);
}

.medadak_product-variations .single_add_to_cart_button.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* ---- Grouped and external purchase ---- */
.medadak_product-grouped,
.medadak_product-external {
  width: 100%;
}

.medadak_product-grouped form.medadak_product-grouped-form,
.medadak_product-external form.medadak_product-external-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  float: none !important;
  background: transparent !important;
}

.medadak_product-external form.medadak_product-external-cart {
  flex-direction: row;
  align-items: center;
}

.medadak_product-grouped .medadak_product-add.single_add_to_cart_button {
  flex: 0 0 auto;
  width: 100%;
}

.medadak_product-grouped .quantity {
  background: #fff;
}

.medadak_product-grouped-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.medadak_product-grouped-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--mdk-soft);
  border-radius: 16px;
  padding: 10px 12px;
}

.medadak_product-grouped-item.is-out {
  opacity: 0.65;
}

.medadak_product-grouped-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.medadak_product-grouped-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.medadak_product-grouped-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.medadak_product-grouped-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--mdk-title);
}

.medadak_product-grouped-name a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.medadak_product-grouped-name a:hover {
  color: var(--mdk-primary);
}

.medadak_product-grouped-name small {
  display: block;
  color: var(--mdk-sale);
  font-size: 11px;
  font-weight: 700;
}

.medadak_product-grouped-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.medadak_product-grouped-price del {
  color: #9fafc6;
  font-size: 11px;
  background: transparent !important;
  text-decoration: line-through;
}

.medadak_product-grouped-price ins {
  text-decoration: none !important;
  background: transparent !important;
  color: var(--mdk-price);
  font-size: 14px;
  font-weight: 800;
}

.medadak_product-grouped-price .woocommerce-Price-currencySymbol {
  font-size: 10px;
  margin-inline-start: 2px;
}

.medadak_product-grouped-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.medadak_product-grouped-view,
.medadak_product-grouped-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--mdk-border);
  background: #fff;
  color: var(--mdk-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.medadak_product-grouped-view:hover,
.medadak_product-grouped-check:hover {
  border-color: var(--mdk-primary);
}

.medadak_product-grouped-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--mdk-primary);
}

.medadak_product-grouped-empty {
  margin: 0;
  color: var(--mdk-muted);
  font-size: 14px;
  font-weight: 600;
}

.medadak_product-price-from {
  font-size: 14px;
  font-weight: 700;
  color: var(--mdk-muted);
}

.medadak_product-price-range {
  color: var(--mdk-muted);
  font-size: 16px;
  font-weight: 700;
}

/* ---- Pack contents ---- */
.medadak_product-pack {
  border: 1px solid var(--mdk-border);
  border-radius: 18px;
  background: var(--mdk-soft);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.medadak_product-pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.medadak_product-pack-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mdk-title);
  font-size: 15px;
  font-weight: 800;
}

.medadak_product-pack-head strong i {
  color: var(--mdk-primary);
  font-size: 18px;
}

.medadak_product-pack-head span {
  background: #fff;
  color: var(--mdk-primary);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.medadak_product-pack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.medadak_product-pack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 10px;
}

.medadak_product-pack-item.is-out {
  opacity: 0.6;
}

.medadak_product-pack-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f3f3f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.medadak_product-pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.medadak_product-pack-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--mdk-title);
}

.medadak_product-pack-name a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.medadak_product-pack-name a:hover {
  color: var(--mdk-primary);
}

.medadak_product-pack-name small {
  display: block;
  color: var(--mdk-sale);
  font-size: 11px;
  font-weight: 700;
}

.medadak_product-pack-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.medadak_product-pack-price del {
  color: #9fafc6;
  font-size: 11px;
  background: transparent !important;
}

.medadak_product-pack-price ins {
  text-decoration: none !important;
  background: transparent !important;
  color: var(--mdk-price);
  font-size: 14px;
  font-weight: 800;
}

.medadak_product-pack-price .woocommerce-Price-currencySymbol {
  font-size: 10px;
  margin-inline-start: 2px;
}

.medadak_product-pack-saving {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 5, 68, 0.06);
  color: var(--mdk-sale);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.medadak_product-pack-saving i {
  font-size: 18px;
}

.medadak_product-pack-saving strong {
  font-weight: 800;
}

/* ---- Reviews ---- */
.medadak_product-panel .woocommerce-Reviews {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.medadak_reviews-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--mdk-border);
  border-radius: 18px;
}

.medadak_reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
  border-left: 1px solid var(--mdk-border);
  text-align: center;
}

.medadak_reviews-score strong {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--mdk-title);
}

.medadak_reviews-score small {
  font-size: 13px;
  color: var(--mdk-muted);
}

.medadak_reviews-stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  font-size: 18px;
}

.medadak_reviews-stars i {
  margin: 0 1px;
}

.medadak_reviews-stars-base {
  color: #ebeff6;
}

.medadak_reviews-stars-fill {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--rating-fill);
  overflow: hidden;
  color: #ffc700;
}

.medadak_reviews-bars {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.medadak_reviews-bars li {
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1;
  color: var(--mdk-muted);
}

.medadak_reviews-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--mdk-text);
}

.medadak_reviews-bar-label i {
  color: #ffc700;
  font-size: 14px;
}

.medadak_reviews-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--mdk-soft-2);
  overflow: hidden;
}

.medadak_reviews-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffc700;
}

.medadak_reviews-bar-count {
  text-align: left;
}

.medadak_product-review-body {
  flex: 1;
  min-width: 0;
}

.medadak_product-review-meta {
  flex-wrap: wrap;
}

.medadak_product-review-meta strong {
  color: var(--mdk-text);
  font-size: 14px;
}

.medadak_product-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(18, 183, 106, 0.1);
  color: #12b76a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.medadak_product-review-text p {
  color: var(--mdk-text) !important;
  font-size: 14px !important;
  line-height: 1.9 !important;
  overflow-wrap: anywhere;
}

.medadak_product-review-text p + p {
  margin-top: 8px !important;
}

.medadak_product-review-pending {
  display: inline-block;
  margin: 0 0 6px !important;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(252, 215, 61, 0.2);
  color: #8a6d00 !important;
  font-size: 12px !important;
}

.medadak_product-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.medadak_product-review-item > .medadak_product-review {
  margin-bottom: 0;
}

.medadak_product-review-item .medadak_product-review-item {
  position: relative;
  margin: 10px 28px 0 0;
  padding-right: 16px;
  border-right: 2px solid var(--mdk-border);
}

.medadak_product-review-item .medadak_product-review-item > .medadak_product-review {
  background: #fff;
  border: 1px solid var(--mdk-border);
}

.medadak_product-review-item.is-staff > .medadak_product-review {
  background: rgba(0, 96, 254, 0.05);
  border: 1px solid rgba(0, 96, 254, 0.18);
}

.medadak_product-review-item.is-staff > .medadak_product-review .medadak_product-review-avatar {
  background: var(--mdk-primary);
  color: #fff;
}

.medadak_product-review-staff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(0, 96, 254, 0.1);
  color: var(--mdk-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.medadak_product-review-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.medadak_product-review-actions .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--mdk-border);
  color: var(--mdk-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.medadak_product-review-actions .comment-reply-link:hover {
  color: var(--mdk-primary);
  border-color: rgba(0, 96, 254, 0.35);
  background: var(--mdk-soft);
}

.medadak_product-review-actions .comment-reply-link i {
  font-size: 15px;
}

.medadak_product-review-item > #respond {
  margin: 10px 28px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--mdk-soft);
  border: 1px dashed rgba(0, 96, 254, 0.3);
}

#respond.is-reply .comment-form-rating {
  display: none;
}

@media (max-width: 767px) {
  .medadak_product-review-item .medadak_product-review-item,
  .medadak_product-review-item > #respond {
    margin-right: 10px;
  }

  .medadak_product-review-item .medadak_product-review-item {
    padding-right: 10px;
  }
}

.medadak_reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  border: 1px dashed var(--mdk-border);
  border-radius: 18px;
  text-align: center;
}

.medadak_reviews-empty i {
  font-size: 36px;
  color: var(--mdk-primary);
}

.medadak_reviews-empty p {
  margin: 0 !important;
  font-size: 14px;
}

.medadak_reviews-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--mdk-soft);
  font-size: 14px;
}

.medadak_reviews-locked i {
  font-size: 20px;
  color: var(--mdk-primary);
  flex-shrink: 0;
}

.medadak_reviews-pagination ul {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0 !important;
}

.medadak_reviews-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--mdk-soft);
  color: var(--mdk-text);
  font-size: 14px;
  text-decoration: none;
}

.medadak_reviews-pagination .page-numbers.current,
.medadak_reviews-pagination a.page-numbers:hover {
  background: var(--mdk-primary);
  color: #fff;
}

/* Review form */
.medadak_reviews-form {
  padding: 20px;
  border-radius: 18px;
  background: var(--mdk-soft);
}

.medadak_reviews-form .comment-respond {
  margin: 0;
}

.medadak_reviews-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px !important;
  font-size: 17px !important;
  font-weight: 800;
  color: var(--mdk-title) !important;
}

.medadak_reviews-form-title i {
  order: -1;
  font-size: 22px;
  color: var(--mdk-primary);
}

.medadak_reviews-form-title small {
  margin-right: auto;
  font-size: 13px;
}

.medadak_reviews-form-title small a {
  color: var(--mdk-sale);
  text-decoration: none;
}

.medadak_reviews-form-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.medadak_reviews-note,
#respond .logged-in-as {
  margin: 0 !important;
  font-size: 13px;
  color: var(--mdk-muted);
}

#respond .logged-in-as a {
  color: var(--mdk-primary);
  text-decoration: none;
}

.medadak_reviews-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.medadak_reviews-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
}

.medadak_reviews-field > label,
.medadak_reviews-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--mdk-text);
}

#respond .required {
  color: var(--mdk-sale);
}

.medadak_reviews-field input[type="text"],
.medadak_reviews-field input[type="email"],
.medadak_reviews-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mdk-border);
  border-radius: 12px;
  background: #fff;
  color: var(--mdk-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.8;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.medadak_reviews-field input[type="text"],
.medadak_reviews-field input[type="email"] {
  height: 48px;
}

.medadak_reviews-field input[type="email"] {
  text-align: left;
}

.medadak_reviews-field input[type="email"]::placeholder {
  text-align: left;
}

.medadak_reviews-field textarea {
  min-height: 130px;
  resize: vertical;
}

.medadak_reviews-field input::placeholder,
.medadak_reviews-field textarea::placeholder {
  color: #a3a8b8;
}

.medadak_reviews-field input:focus,
.medadak_reviews-field textarea:focus {
  border-color: var(--mdk-primary);
  box-shadow: 0 0 0 3px rgba(0, 96, 254, 0.12);
}

.medadak_reviews-rate {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  width: fit-content;
}

.medadak_reviews-rate input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.medadak_reviews-rate label {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mdk-border);
  border-radius: 12px;
  background: #fff;
  color: #dfe3ec;
  font-size: 22px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.medadak_reviews-rate label:hover {
  transform: translateY(-2px);
}

.medadak_reviews-rate input:checked ~ label,
.medadak_reviews-rate label:hover,
.medadak_reviews-rate label:hover ~ label {
  color: #ffc700;
  border-color: rgba(255, 199, 0, 0.45);
}

.medadak_reviews-rate:hover input:checked ~ label:not(:hover):not(:hover ~ label) {
  color: #dfe3ec;
  border-color: var(--mdk-border);
}

.medadak_reviews-rate input:focus-visible + label {
  outline: 2px solid var(--mdk-primary);
  outline-offset: 2px;
}

#respond .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--mdk-muted);
}

#respond .comment-form-cookies-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--mdk-primary);
}

.medadak_reviews-submit {
  margin: 0 !important;
}

.medadak_reviews-btn {
  min-width: 180px;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: var(--mdk-primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 96, 254, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.medadak_reviews-btn:hover {
  background: var(--mdk-primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .medadak_reviews-summary {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .medadak_reviews-score {
    padding: 0 0 16px;
    border-left: 0;
    border-bottom: 1px solid var(--mdk-border);
  }

  .medadak_reviews-form-row {
    grid-template-columns: 1fr;
  }

  .medadak_reviews-form {
    padding: 16px;
  }

  .medadak_reviews-btn {
    width: 100%;
  }
}

.medadak_product-panel .medadak_product-review p {
  margin: 0;
}

.medadak_product-price-box ins {
  text-decoration: none !important;
  background: transparent !important;
  display: flex;
    align-items: center;
    gap: 10px;
}

.medadak_product-price-box del {
  background: transparent !important;
}

.medadak_shop-card .medadak_shop-card-price ins,
.medadak_shop-card .medadak_shop-card-price del {
  background: transparent !important;
}

@media (max-width: 560px) {
  body.medadak-single-product .woocommerce-notices-wrapper,
  body.medadak-single-product .medadak_product.product {
    width: min(100% - 20px, 1280px) !important;
  }

  body.medadak-single-product .medadak_product.product {
    padding-top: 20px !important;
  }

  .medadak_product-buy-row > form.medadak_product-simple-cart,
  .medadak_product-variations .woocommerce-variation-add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .medadak_product-variations .quantity,
  .medadak_product-grouped .quantity,
  .medadak_product-qty {
    width: 100%;
    justify-content: space-between;
  }

  .medadak_product-grouped-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .medadak_product-grouped-action {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .medadak_product-grouped-view,
  .medadak_product-grouped-check {
    width: 100%;
  }

  .medadak_product-external form.medadak_product-external-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .medadak_product-add,
  .medadak_product-add.single_add_to_cart_button,
  .medadak_product-variations .single_add_to_cart_button,
  .medadak_product-grouped .single_add_to_cart_button,
  .medadak_product-external .single_add_to_cart_button,
  .medadak_product-buy-row .single_add_to_cart_button {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: 52px;
    min-height: 52px;
  }
}

html.medadak-gallery-open,
html.medadak-gallery-open body {
  overflow: hidden !important;
}

.medadak_product-lightbox,
.medadak_product-lightbox *,
.medadak_product-lightbox *::before,
.medadak_product-lightbox *::after {
  box-sizing: border-box;
}

.medadak_product-lightbox {
  --mdk-lightbox-overlay: #1c1c25;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--mdk-lightbox-overlay) 92%, transparent);
}

.medadak_product-lightbox[hidden] {
  display: none !important;
}

.medadak_product-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.medadak_product-lightbox-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 72px 24px 24px;
}

.medadak_product-lightbox-stage .swiper,
.medadak_product-lightbox-stage .swiper-slide {
  height: 100%;
}

.medadak_product-lightbox-stage .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.medadak_product-lightbox-stage img {
  max-width: min(92vw, 1100px);
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.medadak_product-lightbox-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 20px;
}

.medadak_product-lightbox-counter {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

.medadak_product-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.medadak_product-lightbox-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--mdk-text, #1c1c25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.medadak_product-lightbox-btn:hover {
  background: var(--mdk-primary, #0060fe);
  color: #fff;
}

.medadak_product-lightbox-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 767px) {
  .medadak_product-lightbox-stage {
    padding: 64px 12px 12px;
  }

  .medadak_product-lightbox-bar {
    padding: 8px 12px 16px;
  }

  .medadak_product-lightbox-btn {
    width: 38px;
    height: 38px;
  }
}

/* ---- Product Q&A ---- */
.medadak_qa {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.medadak_qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.medadak_qa-question {
  scroll-margin-top: 96px;
}

.medadak_qa-question.is-pending > .medadak_product-review {
  opacity: 0.92;
}

.medadak_qa-waiting {
  margin: 8px 0 0 56px !important;
  color: var(--mdk-muted) !important;
  font-size: 12px !important;
  font-weight: 600;
}

.medadak_qa-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.medadak_qa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--mdk-border);
  color: var(--mdk-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.medadak_qa-toggle:hover,
.medadak_qa-toggle[aria-expanded="true"] {
  color: var(--mdk-primary);
  border-color: rgba(0, 96, 254, 0.35);
  background: var(--mdk-soft);
}

.medadak_qa-toggle i {
  font-size: 15px;
}

.medadak_qa-answer-form {
  margin: 10px 28px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--mdk-soft);
  border: 1px dashed rgba(0, 96, 254, 0.3);
}

.medadak_qa-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.medadak_qa-notice.is-success {
  background: rgba(18, 183, 106, 0.1);
  color: #12b76a;
}

.medadak_qa-notice.is-error {
  background: rgba(233, 5, 68, 0.08);
  color: var(--mdk-sale);
}

.medadak_qa-form-wrap.is-loading,
.medadak_qa [data-medadak-qa-form].is-loading,
.medadak_qa-answer-form.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.medadak_qa-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.medadak_reviews-locked a {
  color: var(--mdk-primary);
  font-weight: 700;
  text-decoration: none;
  margin-inline-start: 6px;
}

html[dir="ltr"] .medadak_qa-waiting,
html[dir="ltr"] .medadak_qa-answer-form {
  margin-right: 0;
  margin-left: 28px;
}

@media (max-width: 767px) {
  .medadak_qa-waiting,
  .medadak_qa-answer-form,
  html[dir="ltr"] .medadak_qa-waiting,
  html[dir="ltr"] .medadak_qa-answer-form {
    margin-right: 10px;
    margin-left: 10px;
  }
}

/* ---- Three-column product hero (gallery stays as-is) ---- */
.medadak_pdp-card {
  background: var(--mdk-surface);
  border: 1px solid var(--mdk-border);
  border-radius: 28px;
  box-shadow: var(--mdk-shadow);
  min-width: 0;
}

.medadak_pdp-hero.medadak_product-hero {
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.medadak_pdp-hero > .medadak_pdp-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: static;
}

.medadak_pdp-hero > .medadak_pdp-buy {
  align-self: start;
  padding: 16px;
  background: #f5f8fc;
  border: 1px solid #e7eef6;
  border-radius: 22px;
}

.medadak_pdp-gallery-card {
  padding: 0;
}

.medadak_pdp-summary.medadak_product-summary {
  padding: 2px 0 0;
  gap: 12px;
}

.medadak_pdp-summary.medadak_product-summary h1 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
}

.medadak_pdp-summary .medadak_product-rating-row {
  gap: 10px;
}

.medadak_pdp-summary .medadak_product-short {
  margin: 0;
  color: #3d4254;
  font-size: 14.5px;
}

.medadak_pdp-summary .medadak_product-specs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.medadak_pdp-summary .medadak_product-spec {
  display: block;
  border-radius: 16px;
  padding: 10px 12px;
  min-width: 0;
}

.medadak_pdp-summary .medadak_product-spec span,
.medadak_pdp-summary .medadak_product-spec strong {
  display: block;
}

.medadak_pdp-summary .medadak_product-spec span {
  font-size: 12px;
}

.medadak_pdp-summary .medadak_product-spec strong {
  font-size: 13.5px;
  color: var(--mdk-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.medadak_pdp-ship {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mdk-ok-soft);
  color: #0c7a54;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
}

.medadak_pdp-ship i {
  font-size: 20px;
  flex: none;
}

.medadak_pdp-ship b,
.medadak_pdp-ship [data-ship-note] {
  display: block;
}

.medadak_pdp-ship [data-ship-note] {
  margin-top: 2px;
  line-height: 1.7;
}

.medadak_pdp-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-inline-start: auto;
  justify-content: flex-end;
}

.medadak_pdp-cities button {
  border: 0;
  background: #fff;
  color: var(--mdk-title);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.medadak_pdp-cities button.is-active {
  background: var(--mdk-ok);
  color: #fff;
}

.medadak_pdp-buy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.medadak_pdp-seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--mdk-border);
  font-size: 13px;
}

.medadak_pdp-seller b {
  display: block;
  color: var(--mdk-title);
}

.medadak_pdp-seller span {
  color: var(--mdk-muted);
  font-size: 12px;
}

.medadak_pdp-official {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mdk-primary);
  background: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.medadak_pdp-buy .medadak_product-price-box {
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
}

.medadak_pdp-buy .medadak_product-price-box del {
  flex: 1 0 100%;
  font-size: 14px;
}

.medadak_pdp-buy .medadak_product-price-box ins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  line-height: 1.2;
  color: var(--mdk-title);
  white-space: nowrap;
}

.medadak_pdp-buy .woocommerce-Price-currencySymbol {
  flex: 0 0 1.15em;
  width: 1.15em;
  height: 1em;
  overflow: hidden;
  align-self: center;
}

.medadak_pdp-buy .medadak_product-price-box .off {
  margin-inline-start: auto;
  background: var(--mdk-sale);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 14px;
}

.medadak_pdp-save {
  margin: 0;
  color: var(--mdk-sale);
  font-size: 13px;
  font-weight: 700;
}

.medadak_pdp-save[hidden] {
  display: none;
}

.medadak_pdp-buy .medadak_product-countdown {
  margin: 0;
}

.medadak_pdp-stock-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}

.medadak_pdp-stock-top b.is-in-stock {
  color: #0f9f6e;
}

.medadak_pdp-stock-top b.is-out-of-stock {
  color: var(--mdk-sale);
}

.medadak_pdp-meter {
  height: 8px;
  border-radius: 99px;
  background: #edf1f6;
  overflow: hidden;
  display: flex;
}

.medadak_pdp-meter[hidden] {
  display: none;
}

.medadak_pdp-meter span {
  display: block;
  height: 100%;
  margin-inline-end: auto;
  background: linear-gradient(90deg, #ff8a00, #e90544);
  border-radius: inherit;
}

.medadak_pdp-meter span.is-healthy {
  background: linear-gradient(90deg, #34d399, #0f9f6e);
}

.medadak_pdp-buy .medadak_product-grouped form.cart,
.medadak_pdp-buy .medadak_product-external form.cart {
  display: block;
}

.medadak_pdp-buy .medadak_product-purchase,
.medadak_pdp-buy .medadak_product-buy-row,
.medadak_pdp-buy .medadak_product-buy-row > form.medadak_product-simple-cart,
.medadak_pdp-buy .woocommerce-variation-add-to-cart,
.medadak_pdp-buy form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.medadak_pdp-buy .medadak_product-simple-cart .quantity,
.medadak_pdp-buy .woocommerce-variation-add-to-cart .quantity {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0 !important;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--mdk-border);
  border-radius: 14px;
  float: none !important;
}

.medadak_pdp-buy .medadak_product-simple-cart .quantity .qty,
.medadak_pdp-buy .woocommerce-variation-add-to-cart .quantity .qty {
  width: auto !important;
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--mdk-text);
  box-shadow: none !important;
  padding: 0 !important;
}

.medadak_pdp-buy .medadak_product-simple-cart .quantity .minus,
.medadak_pdp-buy .medadak_product-simple-cart .quantity .plus,
.medadak_pdp-buy .woocommerce-variation-add-to-cart .quantity .minus,
.medadak_pdp-buy .woocommerce-variation-add-to-cart .quantity .plus {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--mdk-soft);
  color: var(--mdk-price);
  box-shadow: var(--mdk-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.medadak_pdp-pack {
  background: #fff;
  border: 1px solid var(--mdk-border);
  border-radius: 22px;
  padding: 16px 18px;
}

.medadak_pdp-pack .medadak_product-pack {
  border: 0;
  background: transparent;
  padding: 0;
}

.medadak_pdp-buy .medadak_product-add,
.medadak_pdp-buy .single_add_to_cart_button {
  width: 100%;
  min-width: 0;
  flex: none;
}

.medadak_pdp-buy .medadak_pdp-now {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #c9dbff;
  background: #fff;
  color: var(--mdk-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

.medadak_pdp-buy .medadak_pdp-now:hover:not(:disabled) {
  background: rgba(0, 96, 254, 0.06);
}

.medadak_pdp-buy .medadak_pdp-now.disabled,
.medadak_pdp-buy .medadak_pdp-now:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.medadak_pdp-buy .medadak_pdp-now.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.medadak_pdp-buy .medadak_pdp-now.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--mdk-primary);
  border-right-color: transparent;
  border-radius: 50%;
  animation: medadak-single-cart-spin 0.6s linear infinite;
}

.medadak_pdp-buy .medadak_product-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.medadak_pdp-buy .medadak_product-trust-item {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 12.5px;
  color: #3d4254;
}

.medadak_pdp-buy .medadak_product-trust-item i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-size: 16px;
}

.medadak_pdp-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.medadak_pdp-service {
  background: #fff;
  border: 1px solid var(--mdk-border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.medadak_pdp-service i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 96, 254, 0.1);
  color: var(--mdk-primary);
  font-size: 22px;
  flex: none;
}

.medadak_pdp-service b {
  display: block;
  font-size: 13.5px;
  color: var(--mdk-title);
}

.medadak_pdp-service span {
  display: block;
  font-size: 12px;
  color: var(--mdk-muted);
}

.medadak_pdp-lower.has-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.medadak_pdp-lower .medadak_product-tabs {
  min-width: 0;
}

.medadak_pdp-side {
  padding: 16px;
  position: sticky;
  top: 16px;
}

.medadak_pdp-side h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--mdk-title);
}

.medadak_pdp-side > p {
  margin: 0 0 12px;
  color: var(--mdk-muted);
  font-size: 12.5px;
}

.medadak_pdp-side.is-no-images .medadak_pdp-bundle-item {
  grid-template-columns: 18px minmax(0, 1fr);
}

.medadak_pdp-bundle-item {
  display: grid;
  grid-template-columns: 18px 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--mdk-border);
  font-size: 13px;
}

.medadak_pdp-bundle-item input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.medadak_pdp-bundle-item img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.medadak_pdp-bundle-item a {
  color: inherit;
  text-decoration: none;
}

.medadak_pdp-bundle-item b {
  display: block;
  color: var(--mdk-title);
  font-size: 13px;
  line-height: 1.5;
}

.medadak_pdp-bundle-item span span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mdk-muted);
  font-size: 12px;
  white-space: nowrap;
}

.medadak_pdp-side .woocommerce-Price-currencySymbol,
.medadak_pdp-bundle-total .woocommerce-Price-currencySymbol {
  flex: none;
  width: 1.21em;
  overflow: hidden;
  white-space: nowrap;
}

.medadak_pdp-bundle-total {
  margin-top: 8px;
  background: var(--mdk-soft);
  border-radius: 16px;
  padding: 12px;
}

.medadak_pdp-bundle-total div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.medadak_pdp-bundle-total strong {
  color: var(--mdk-title);
  font-size: 18px;
}

.medadak_pdp-bundle-total button {
  margin-top: 10px;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--mdk-title);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.medadak_pdp-bundle-total button:disabled {
  opacity: 0.7;
  cursor: default;
}

@media (max-width: 1100px) {
  .medadak_pdp-hero.medadak_product-hero,
  .medadak_pdp-lower.has-side {
    grid-template-columns: 1fr;
  }

  .medadak_pdp-side {
    position: static;
  }

  .medadak_pdp-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .medadak_pdp-summary .medadak_product-specs,
  .medadak_pdp-services {
    grid-template-columns: 1fr;
  }

  .medadak_pdp-ship {
    flex-wrap: wrap;
  }

  .medadak_pdp-cities {
    margin-inline-start: 0;
    justify-content: flex-start;
  }

  .medadak_pdp-summary.medadak_product-summary h1 {
    font-size: 20px;
  }
}
