 /* ── PRODUCT DETAIL PAGE ── */
  .pd-page {
    --blue: var(--primary-color1, #2167b2);
    --blue-light: rgba(33,103,178,0.08);
    --text-dark: #111827;
    --text-mid: #4b5563;
    --text-muted: #9ca3af;
    --border: #e8eef7;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --green: #16a34a;
  }

  /* ── IMAGE COLUMN ── */
  .pd-image-col {
    width: 100%;
  }

  @media (min-width: 1024px) {
    .pd-image-col {
      width: 46%;
      position: sticky;
      top: 90px;
      height: fit-content;
    }
  }

  /* Main image — capped at 460px so thumbnails appear on screen without scrolling */
  .pd-main-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border);
    background: #f8faff;
    width: 100%;
    /* fixed square ratio but max-height keeps it compact */
    aspect-ratio: 1 / 1;
    max-height: 660px;
    cursor: zoom-in;
  }

  @media (min-width: 1024px) {
    .pd-main-img-wrap {
      max-height: 620px;
    }
  }
  .pd-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* contain so full product is visible */
    display: block;
    transition: transform 0.4s ease;
    background: #f8faff;
  }

  .pd-main-img-wrap:hover img {
    transform: scale(1.04);
  }

  /* ── THUMBNAIL STRIP ── always shown below main image */
  .pd-thumb-strip {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .pd-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #f8faff;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  }

  .pd-thumb:hover,
  .pd-thumb.active-thumb {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33,103,178,0.18);
  }

  /* ── DETAILS COLUMN ── */
  .pd-details-col {
    width: 100%;
  }

  @media (min-width: 1024px) {
    .pd-details-col { width: 50%; }
  }

  /* Breadcrumb */
  .pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-family: var(--font-primary, inherit);
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .pd-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
  .pd-breadcrumb a:hover { color: var(--blue); }
  .pd-breadcrumb .cur { color: var(--blue); font-weight: 600; }
  .pd-breadcrumb .sep { color: var(--text-muted); }

  /* Title */
  .pd-title {
    font-family: var(--font-secondary, inherit);
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 14px;
  }

  /* Price */
  .pd-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }

  .pd-price-mrp {
    font-size: 15px;
    color: var(--secondary-red, #d94f4f);
    text-decoration: line-through;
    font-weight: 500;
    font-family: var(--font-secondary, inherit);
  }

  .pd-price-sell {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-secondary, inherit);
    letter-spacing: -0.5px;
  }

  /* Savings pill */
  .pd-savings {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-secondary, inherit);
    margin-bottom: 12px;
  }

  /* Offer badge */
  .pd-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: var(--font-secondary, inherit);
    width: fit-content;
  }

  /* Short description */
  .pd-short-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-mid);
    font-family: var(--font-primary, inherit);
    margin-bottom: 16px;
  }

  /* Trust grid */
  .pd-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
  }

  .pd-trust-box {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: #fff;
  }

  .pd-trust-box:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    box-shadow: 0 3px 12px rgba(33,103,178,0.08);
  }

  .pd-trust-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .pd-trust-box:hover img { opacity: 1; }

  .pd-trust-box p {
    font-size: 11.5px;
    color: var(--blue);
    font-family: var(--font-secondary, inherit);
    font-weight: 500;
    line-height: 1.4;
  }

  /* Quantity */
  .pd-qty-section {
    background: #f8faff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
  }

  .pd-qty-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-secondary, inherit);
  }

  .pd-qty-controls {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .pd-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    line-height: 1;
  }

  .pd-qty-btn:hover { background: var(--blue-light); color: var(--blue); }

  .pd-qty-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }

  .counter-input {
    width: 44px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-secondary, inherit);
    -moz-appearance: textfield;
  }

  .counter-input::-webkit-outer-spin-button,
  .counter-input::-webkit-inner-spin-button { -webkit-appearance: none; }

  .pd-stock-note {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    font-family: var(--font-primary, inherit);
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .pd-stock-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
  }

  /* Action buttons row */
  .pd-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .pd-action-row button,
  .pd-action-row a {
    flex: 1;
    min-width: 130px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-secondary, inherit);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  }

  .pd-action-row button:hover:not(:disabled),
  .pd-action-row a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

  .pd-action-row button:disabled {
    opacity: 0.7; cursor: not-allowed;
    transform: none !important; box-shadow: none !important;
  }

  /* Section title */
  .pd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-secondary, inherit);
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 14px;
  }

  /* Attributes table */
  .pd-attr-table { width: 100%; border-collapse: collapse; font-family: var(--font-secondary, inherit); }

  .pd-attr-table tr:not(:last-child) td,
  .pd-attr-table tr:not(:last-child) th { border-bottom: 1px solid #f0f4fa; }

  .pd-attr-table th {
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    text-align: left; padding: 9px 0; width: 38%; vertical-align: top;
  }

  .pd-attr-table td {
    font-size: 13px; color: var(--text-dark);
    padding: 9px 0 9px 16px; vertical-align: top;
  }

  /* Reviews */
  .pd-review-card {
    background: #f8faff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
  }

  .pd-review-stars { display: flex; gap: 2px; margin-bottom: 7px; }
  .pd-star-filled { color: #f59e0b; font-size: 14px; }
  .pd-star-empty  { color: #d1d5db; font-size: 14px; }

  .pd-review-text {
    font-size: 13.5px; color: var(--text-mid);
    line-height: 1.65; font-family: var(--font-primary, inherit);
  }

  .pd-reviewer {
    font-size: 12px; color: var(--text-muted);
    margin-top: 7px; font-family: var(--font-primary, inherit);
    font-style: italic;
  }

  /* Review form */
  .pd-review-form {
    background: #f8faff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px; margin-top: 14px;
    display: flex; flex-direction: column; gap: 12px;
  }

  .pd-review-form textarea {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px; color: var(--text-dark);
    font-family: var(--font-primary, inherit);
    resize: vertical; outline: none;
    transition: border-color 0.2s; background: #fff;
    min-height: 80px;
  }

  .pd-review-form textarea:focus { border-color: var(--blue); }

  .pd-review-submit {
    align-self: flex-end;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--blue);
    background: transparent; color: var(--blue);
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    font-family: var(--font-secondary, inherit);
    transition: background 0.2s, color 0.2s;
  }

  .pd-review-submit:hover { background: var(--blue); color: #fff; }

  /* Offers */
  .offers-container { position: relative; overflow-x: hidden; width: 100%; }

  .offers-scroll-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    gap: 1rem; padding-bottom: 0.5rem;
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
  }

  .offer-slide { flex: 0 0 auto; user-select: none; }

  .offer-slide > div {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px; background: #fff; height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .offer-slide:hover > div { border-color: var(--blue); box-shadow: 0 4px 14px rgba(33,103,178,0.1); }

  @media (max-width: 639px) {
    .offer-slide { width: 85%; }
    .offers-container { overflow-x: auto; scrollbar-width: none; }
    .offers-container::-webkit-scrollbar { display: none; }
    .offer-scroll-btn { display: none !important; }
  }

  @media (min-width: 640px) and (max-width: 1023px) {
    .offer-slide { width: calc(50% - 0.5rem); }
  }

  @media (min-width: 1024px) {
    .offer-slide { width: calc(33.333% - 0.666rem); }
  }

  .offer-scroll-btn {
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .offer-scroll-btn:hover:not(:disabled) { transform: scale(1.05); }
  .offer-scroll-btn:disabled { opacity: 0.4; cursor: not-allowed; }

  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Loading spinner */
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .animate-spin { animation: spin 1s linear infinite; }

  /* Toast */
  #custom-toast { z-index: 9999; max-width: 90%; word-break: break-word; pointer-events: none; }

  /* Product HTML */
  .product-html h1,.product-html h2,.product-html h3,
  .product-html h4,.product-html h5,.product-html h6 { font-weight: bold; margin: 1rem 0 0.5rem; }
  .product-html p { margin: 0.5rem 0; }
  .product-html ul,.product-html ol { list-style: disc; padding-left: 1.5rem; margin: 0.5rem 0; }
  .product-html li { margin: 0.25rem 0; }
  .product-html table { border-collapse: collapse; margin-top: 0.75rem; }
  .product-html th,.product-html td { border: 1px solid #000; padding: 6px 10px; text-align: left; }
  .product-html strong { font-weight: 700; }

  /* ── SIMILAR PRODUCTS ── */
  .pd-similar {
    background: linear-gradient(135deg, #f0f6ff 0%, #f5fdf6 100%);
    position: relative;
    overflow: hidden;
  }

  .pd-similar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(33,103,178,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.5;
  }

  .pd-similar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }

  .pd-similar-eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
    font-family: var(--font-secondary, inherit);
  }

  .pd-similar-title {
    font-family: var(--font-secondary, inherit);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
  }

  /* Similar product card */
  .pd-sim-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    overflow: visible;
    box-shadow: 0 2px 12px rgba(33,103,178,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .pd-sim-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(33,103,178,0.13);
    border-color: rgba(33,103,178,0.25);
  }

  .pd-sim-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f8faff;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
  }

  .pd-sim-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    display: block;
    background: #f8faff;
  }

  .pd-sim-card:hover .pd-sim-img-wrap img { transform: scale(1.05); }

  .pd-sim-discount-badge {
    position: absolute;
    top: 9px; left: 9px;
    background: #2167B2;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    font-family: var(--font-secondary, inherit);
    z-index: 2;
    line-height: 1.4;
  }

  .pd-sim-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: #fff;
  }

  /* Name with tooltip */
  .pd-sim-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-secondary, inherit);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    cursor: default;
  }

  .pd-sim-name .pd-sim-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    pointer-events: none;
  }

  .pd-sim-name .pd-sim-tooltip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a2e;
  }

  .pd-sim-name:hover .pd-sim-tooltip { display: block; }

  .pd-sim-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-primary, inherit);
  }

  .pd-sim-divider { height: 1px; background: var(--border); margin: 2px 0; }

  .pd-sim-price-row { display: flex; align-items: flex-end; gap: 6px; }

  .pd-sim-mrp {
    font-size: 11px;
    color: var(--secondary-red, #d94f4f);
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1;
    font-family: var(--font-secondary, inherit);
  }

  .pd-sim-sell {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    line-height: 1;
    font-family: var(--font-secondary, inherit);
  }

  .pd-sim-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--blue);
    background: var(--blue-light);
    color: var(--blue);
    text-decoration: none;
    font-family: var(--font-secondary, inherit);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    margin-top: 2px;
  }

  .pd-sim-view-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
  }

  .pd-sim-view-btn svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.2s; }
  .pd-sim-view-btn:hover svg { transform: translateX(2px); }

  /* Swiper nav for similar */
  .pd-similar .swiper-button-next,
  .pd-similar .swiper-button-prev {
    width: 36px; height: 36px; background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(33,103,178,0.12);
    border: 1.5px solid var(--border); color: var(--blue); top: 40%;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .pd-similar .swiper-button-next:hover,
  .pd-similar .swiper-button-prev:hover {
    background: var(--blue); color: #fff; border-color: var(--blue);
  }
  .pd-similar .swiper-button-next::after,
  .pd-similar .swiper-button-prev::after { font-size: 12px; font-weight: 800; }