/* CPS eShop product detail page */
:root {
    /* Product-page aliases consume the store-wide admin-controlled tokens. */
    --cps-brand: var(--cps-primary, #FFC107);
    --cps-brand-dark: var(--cps-primary-dark, #E5AC00);
    --cps-brand-gold: var(--cps-secondary, #FFB300);
    --cps-brand-soft: var(--cps-accent-light, #FFF9E6);
    --cps-brand-glow: rgba(var(--cps-primary-rgb, 255, 193, 7), .25);
    --cps-brand-ring: rgba(var(--cps-primary-rgb, 255, 193, 7), .12);
    --cps-text-secondary: var(--kimo-text-secondary, #5A5A7A);
    --cps-white: #FFFFFF;
    --cps-font-heading: 'Inter', 'Tajawal', system-ui, sans-serif;
    --cps-font-body: 'Inter', 'Tajawal', system-ui, sans-serif;
  }

/* ─── Reset & Base ─── */
  .cps-pdp-root { padding: 18px 16px 52px; max-width: 1380px; margin-inline: auto; font-family: var(--cps-font-body); color: var(--cps-text); }
  .cps-pdp-root *, .cps-pdp-root *::before, .cps-pdp-root *::after { box-sizing: border-box; }

  /* ═══ Breadcrumb — Compact ═══ */
  .cps-pdp-breadcrumb {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    font-size: 12px; font-weight: 600; color: var(--cps-muted);
    margin-bottom: 20px; animation: cpsFadeIn .4s ease;
  }
  .cps-pdp-breadcrumb a {
    text-decoration: none; color: var(--cps-muted);
    transition: color .15s ease;
  }
  .cps-pdp-breadcrumb a:hover { color: var(--cps-brand-dark); }
  .cps-bc-sep { color: var(--cps-border); flex-shrink: 0; }
  .cps-bc-active { color: var(--cps-text); font-weight: 800; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html[dir="rtl"] .cps-bc-sep { transform: scaleX(-1); }

  /* ═══ Main Grid ═══ */
  .cps-pdp-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(560px, 1.15fr);
    gap: 28px; align-items: start;
  }

  /* ═══ Gallery ═══ */
  .cps-pdp-gallery {
    border: 1px solid var(--cps-border); border-radius: 20px;
    padding: 10px; background: var(--cps-white);
    box-shadow: 0 2px 20px rgba(0,0,0,.03);
    transition: box-shadow .3s ease, transform .3s ease;
  }
  .cps-pdp-gallery:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,.06), 0 0 30px var(--cps-brand-ring);
  }
  .cps-gallery { position: relative; }
  .cps-gallery-main {
    position: relative; border-radius: 14px; overflow: hidden;
    background: #FFFFFF;
  }
  .kimo-gallery-slide { background: #FFFFFF; }
  .cps-pdp-hero-img {
    aspect-ratio: 4/3; max-height: 460px; width: 100%;
    object-fit: contain; border-radius: 14px; background: #FFFFFF; display: block;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  }
  .cps-pdp-gallery:hover .cps-pdp-hero-img { transform: scale(1.03); }
  .cps-gallery-empty {
    display: flex; align-items: center; justify-content: center;
    min-height: 320px; background: #F5F5F5; border-radius: 14px;
  }
  .cps-noimg-placeholder {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; color: var(--cps-muted); font-size: 13px; font-weight: 600;
  }
  .cps-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--cps-border); background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px); display: flex; align-items: center;
    justify-content: center; cursor: pointer; color: var(--cps-text);
    transition: all .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }
  .cps-gallery-nav:hover {
    background: var(--cps-brand); color: var(--cps-text);
    border-color: var(--cps-brand); box-shadow: 0 4px 16px var(--cps-brand-glow);
  }
  .cps-gallery-prev { left: 10px; }
  .cps-gallery-next { right: 10px; }
  html[dir="rtl"] .cps-gallery-prev { left: auto; right: 10px; }
  html[dir="rtl"] .cps-gallery-next { right: auto; left: 10px; }
  .cps-gallery-thumbs {
    display: flex; gap: 8px; margin-top: 10px; padding: 4px 0;
    overflow-x: auto; scrollbar-width: none;
  }
  .cps-gallery-thumbs::-webkit-scrollbar { display: none; }
  .kimo-gallery-thumb {
    width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0;
    border: 2px solid transparent; overflow: hidden; cursor: pointer;
    transition: all .2s ease; background: #FFFFFF; padding: 0;
  }
  .kimo-gallery-thumb:hover { transform: scale(1.08); border-color: var(--cps-border); }
  .kimo-gallery-thumb.is-active {
    border-color: var(--cps-brand);
    box-shadow: 0 0 12px var(--cps-brand-glow);
  }
  .kimo-gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  }

  /* ═══════════════════════════════════════════════════════
     INFO CARD — Sticky, Spacious, Premium
     ═══════════════════════════════════════════════════════ */
  .cps-pdp-info {
    position: sticky; top: 100px;
    border: 1px solid rgba(0,0,0,.05); border-radius: 24px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 22px 24px; animation: cpsSlideInRight .6s ease;
    box-shadow: 0 4px 40px rgba(0,0,0,.03), 0 1px 4px rgba(0,0,0,.02);
    max-height: none; overflow: visible;
    scrollbar-width: thin; scrollbar-color: var(--cps-border) transparent;
  }
  .cps-pdp-info::-webkit-scrollbar { width: 4px; }
  .cps-pdp-info::-webkit-scrollbar-track { background: transparent; }
  .cps-pdp-info::-webkit-scrollbar-thumb { background: var(--cps-border); border-radius: 4px; }

  /* ─── Section Divider ─── */
  .cps-section-divider {
    height: 1px; margin: 12px 0;
    background: linear-gradient(90deg, transparent, var(--cps-border), transparent);
  }

  /* ─── Top Bar ─── */
  .cps-pdp-top-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
  }
  .cps-pdp-top-left {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .cps-pdp-top-actions { display: flex; gap: 6px; }
  .cps-pdp-icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--cps-border); background: var(--cps-surface);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--cps-muted); transition: all .2s ease;
  }
  .cps-pdp-icon-btn:hover {
    background: var(--cps-brand-soft); border-color: rgba(255,193,7,.3);
    color: var(--cps-brand-dark); transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--cps-brand-glow);
  }

  /* ─── Discount Badge ─── */
  .cps-pdp-discount-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 14px; background: linear-gradient(135deg, #FFC107, #FFB300);
    color: var(--cps-text); font-weight: 900; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px; border-radius: 8px;
    box-shadow: 0 2px 10px var(--cps-brand-glow);
    animation: cpsBadgePulse 2.5s ease infinite;
  }
  @keyframes cpsBadgePulse {
    0%, 100% { box-shadow: 0 2px 10px var(--cps-brand-glow); }
    50% { box-shadow: 0 4px 24px rgba(255,193,7,.4); }
  }

  /* ─── Stock Indicator ─── */
  .cps-pdp-stock-indicator {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--cps-text-secondary);
  }
  .cps-stock-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; animation: cpsDotPulse 2s ease infinite;
  }
  .cps-stock-in { background: var(--cps-success); }
  .cps-stock-out { background: var(--cps-danger); }
  @keyframes cpsDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.85); }
  }

  /* ─── Title ─── */
  .cps-pdp-title {
    margin: 0 0 10px; font-weight: 900; font-size: 24px;
    line-height: 1.18; color: var(--cps-text); letter-spacing: -.3px;
    font-family: var(--cps-font-heading);
  }

  /* ─── Meta Chips ─── */
  .cps-pdp-meta {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  }
  .cps-pdp-meta-chip {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--cps-text-secondary); font-weight: 700; font-size: 12px;
    background: var(--cps-surface); padding: 5px 12px; border-radius: 8px;
    transition: all .15s ease;
  }
  .cps-pdp-meta-chip:hover { background: var(--cps-brand-soft); }
  .cps-pdp-meta-chip svg { opacity: .45; }
  .cps-pdp-meta-chip strong { color: var(--cps-brand-dark); }

  /* ─── Warranty Chip — Premium gold style ─── */
  .cps-warranty-chip {
    background: linear-gradient(135deg, #FFF9E6, #FFFDF5) !important;
    border: 1px solid rgba(255,193,7,.3) !important;
    color: var(--cps-brand-dark) !important;
  }
  .cps-warranty-chip svg { color: var(--cps-brand-dark) !important; opacity: 1 !important; }
  .cps-warranty-chip strong { color: var(--cps-text) !important; }

  /* ─── Warranty Spec Row ─── */
  .cps-warranty-spec-row { background: linear-gradient(90deg, #FFFDF7, #FFF9E6 30%, #FFFDF7); }
  .cps-warranty-spec-row:hover { background: linear-gradient(90deg, #FFF9E6, #FFF3CC 30%, #FFF9E6) !important; }
  .cps-warranty-value strong { color: var(--cps-brand-dark); font-size: 15px; }

  /* ─── Features Tab Content ─── */
  .cps-features-content { font-size: 14px; line-height: 1.7; color: var(--cps-text); }
  .cps-features-content h2, .cps-features-content h3 {
    font-size: 16px; font-weight: 900; color: var(--cps-text);
    margin: 16px 0 10px; padding-bottom: 6px;
    border-bottom: 2px solid var(--cps-brand-soft);
  }
  .cps-features-content ul { padding-left: 20px; margin: 8px 0; }
  .cps-features-content li {
    margin-bottom: 8px; position: relative;
  }
  .cps-features-content li::marker { color: var(--cps-brand-dark); font-size: 16px; }
  .cps-features-content strong { color: var(--cps-brand-dark); }

  /* ─── Rich Text Content ─── */
  .cps-richtext { font-size: 14px; line-height: 1.75; color: var(--cps-text); }
  .cps-richtext h1, .cps-richtext h2, .cps-richtext h3 {
    font-weight: 800; margin: 16px 0 8px; color: var(--cps-text);
  }
  .cps-richtext h2 { font-size: 18px; }
  .cps-richtext h3 { font-size: 16px; }
  .cps-richtext p { margin: 0 0 10px; }
  .cps-richtext ul, .cps-richtext ol { padding-left: 20px; margin: 8px 0; }
  .cps-richtext li { margin-bottom: 6px; }
  .cps-richtext table { width:100% !important; max-width:100%; display:block; overflow-x:auto; border-collapse:collapse; margin:12px 0; }
  .cps-richtext td, .cps-richtext th { padding: 8px 12px; border: 1px solid var(--cps-border); }
  .cps-richtext th { background: var(--cps-surface); font-weight: 700; }
  .cps-richtext img { display:block; max-width:100% !important; width:auto !important; height:auto !important; max-height:680px; object-fit:contain; border-radius:14px; margin:16px auto; background:#FFFFFF; }

  /* ═══ Price Block — Prominent ═══ */
  .cps-pdp-price-block {
    padding: 16px 18px; border-radius: 18px;
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 50%, #FFFDF7 100%);
    border: 1px solid var(--cps-brand-ring); position: relative; overflow: hidden;
  }
  .cps-pdp-price-block::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,193,7,.08), transparent 70%);
    pointer-events: none;
  }
  .cps-pdp-price-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
  }
  .cps-pdp-price-main {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  }
  .cps-pdp-price-current {
    font-size: 36px; font-weight: 1000; color: var(--cps-text);
    line-height: 1; font-family: var(--cps-font-heading);
  }
  .cps-pdp-price-old {
    font-size: 18px; font-weight: 600; color: var(--cps-muted);
    text-decoration: line-through;
  }
  .cps-pdp-price-contact {
    font-size: 24px; font-weight: 1000; color: var(--cps-brand-dark);
  }
  .cps-pdp-savings-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 10px;
    background: rgba(76,175,80,.1); color: #2E7D32;
    font-size: 12px; font-weight: 800;
    animation: cpsSavingsPop .5s cubic-bezier(.68,-.55,.27,1.55);
  }
  @keyframes cpsSavingsPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }

  /* ─── Coupon ─── */
  .cps-pdp-coupon-row {
    margin-top: 12px; display: flex; gap: 8px;
  }
  .cps-coupon-input-wrap {
    flex: 1; position: relative; display: flex; align-items: center;
  }
  .cps-coupon-icon {
    position: absolute; left: 12px; color: var(--cps-muted); pointer-events: none;
  }
  html[dir="rtl"] .cps-coupon-icon { left: auto; right: 12px; }
  .cps-pdp-coupon-input {
    width: 100%; height: 38px; padding: 0 14px 0 36px;
    border: 1.5px dashed rgba(255,193,7,.4); border-radius: 12px;
    background: rgba(255,255,255,.85); font-size: 13px; font-weight: 600;
    color: var(--cps-text); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  html[dir="rtl"] .cps-pdp-coupon-input { padding: 0 36px 0 14px; }
  .cps-pdp-coupon-input:focus {
    border-color: var(--cps-brand); border-style: solid;
    box-shadow: 0 0 0 3px var(--cps-brand-ring);
  }
  .cps-pdp-coupon-input::placeholder { color: var(--cps-muted); font-style: italic; }
  .cps-pdp-coupon-btn {
    height: 38px; padding: 0 16px; border: none; border-radius: 12px;
    background: var(--cps-brand); color: var(--cps-text);
    font-size: 13px; font-weight: 800; cursor: pointer;
    transition: all .2s ease; white-space: nowrap;
  }
  .cps-pdp-coupon-btn:hover {
    background: var(--cps-brand-gold);
    box-shadow: 0 4px 14px var(--cps-brand-glow);
  }
  .cps-coupon-msg {
    margin-top: 8px; font-size: 12px; font-weight: 700; min-height: 16px;
    transition: all .2s ease;
  }
  .cps-coupon-msg.success { color: var(--cps-success); }
  .cps-coupon-msg.error { color: var(--cps-danger); }

  /* ═══ Short Description — Expandable ═══ */
  .cps-pdp-short-desc-wrap { position: relative; }
  .cps-pdp-short-desc {
    color: var(--cps-text-secondary); font-weight: 500; line-height: 1.6;
    font-size: 13px; padding: 12px 14px; background: var(--cps-surface);
    border-left: 3px solid var(--cps-brand); border-radius: 0 12px 12px 0;
    position: relative; overflow: hidden; max-height: 58px;
    transition: max-height .4s cubic-bezier(.4,0,.2,1);
    word-break: break-word;
  }
  html[dir="rtl"] .cps-pdp-short-desc {
    border-left: none; border-right: 3px solid var(--cps-brand);
    border-radius: 12px 0 0 12px;
  }
  .cps-pdp-short-desc[data-collapsed="false"] { max-height: 3000px; }
  .cps-pdp-short-desc::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 50px; background: linear-gradient(transparent, var(--cps-surface));
    pointer-events: none; transition: opacity .3s ease;
  }
  .cps-pdp-short-desc[data-collapsed="false"]::after { opacity: 0; }
  .cps-pdp-short-desc img,
  .cps-pdp-short-desc iframe,
  .cps-pdp-short-desc video,
  .cps-pdp-short-desc table { display: none !important; }
  .cps-pdp-short-desc p { margin: 0 0 4px; }
  .cps-pdp-short-desc ul, .cps-pdp-short-desc ol { padding-left: 16px; margin: 0 0 4px; font-size: 12px; }
  .cps-pdp-short-desc li { margin-bottom: 2px; font-size: 12px; }
  .cps-pdp-short-desc h1, .cps-pdp-short-desc h2, .cps-pdp-short-desc h3 { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
  .cps-pdp-desc-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; padding: 0; border: none; background: none;
    color: var(--cps-brand-dark); font-weight: 800; font-size: 13px;
    cursor: pointer; transition: color .15s ease;
  }
  .cps-pdp-desc-toggle:hover { color: var(--cps-brand); }
  .cps-toggle-arrow {
    transition: transform .3s ease;
  }
  .cps-pdp-desc-toggle.expanded .cps-toggle-arrow {
    transform: rotate(180deg);
  }

  /* ═══ Purchase Section ═══ */
  .cps-pdp-purchase-section { /* wrapper */ }
  .cps-pdp-qty-wrap { margin-bottom: 12px; }
  .cps-pdp-qty-label {
    display: block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--cps-muted); margin-bottom: 8px;
  }
  .cps-qty-group {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--cps-border); border-radius: 14px;
    overflow: hidden; background: var(--cps-surface);
  }
  .cps-qty-btn {
    width: 44px; height: 44px; border: none; background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--cps-text); transition: all .15s ease;
  }
  .cps-qty-btn:hover { background: var(--cps-brand); color: var(--cps-text); }
  .cps-qty-btn:active { background: var(--cps-brand-gold); }
  .cps-qty-input {
    width: 52px; height: 44px; border: none;
    border-left: 1px solid var(--cps-border);
    border-right: 1px solid var(--cps-border);
    text-align: center; font-size: 16px; font-weight: 800;
    color: var(--cps-text); background: var(--cps-white);
    -moz-appearance: textfield; outline: none;
  }
  .cps-qty-input::-webkit-inner-spin-button,
  .cps-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  html[dir="rtl"] .cps-qty-input {
    border-left: none; border-right: 1px solid var(--cps-border);
  }

  /* ─── Button Row ─── */
  .cps-pdp-btn-row {
    display: flex; gap: 10px; width: 100%;
  }

  /* ─── ATC Button — 56px, Ripple, Confirmed ─── */
  .cps-pdp-atc-btn {
    flex: 1; height: 52px; display: flex; align-items: center;
    justify-content: center; gap: 10px; border: none; border-radius: 16px;
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 50%, #FFC107 100%);
    background-size: 200% 100%; color: var(--cps-text);
    font-size: 16px; font-weight: 900; letter-spacing: .3px;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 20px var(--cps-brand-glow);
    font-family: var(--cps-font-heading);
  }
  .cps-pdp-atc-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 6px 28px rgba(255,193,7,.35);
    transform: translateY(-2px);
  }
  .cps-pdp-atc-btn:active { transform: translateY(0); }
  .cps-pdp-atc-btn.added {
    background: linear-gradient(135deg, var(--cps-success), #43A047);
    color: #FFFFFF; pointer-events: none;
  }
  .cps-pdp-atc-btn.added .cps-atc-icon { display: none; }
  .cps-pdp-atc-btn.added .cps-atc-text { display: none; }
  .cps-pdp-atc-btn.added .cps-atc-check { display: inline-flex !important; }
  .cps-pdp-atc-btn.added .cps-atc-added-text { display: inline !important; }
  .cps-pdp-atc-btn:disabled, .cps-pdp-atc-btn.out-of-stock {
    background: #E0E0E0; color: #999; cursor: not-allowed;
    box-shadow: none; transform: none;
  }
  .cps-pdp-atc-btn:disabled:hover, .cps-pdp-atc-btn.out-of-stock:hover {
    transform: none; box-shadow: none;
  }

  /* Ripple Effect */
  .cps-atc-ripple {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,.4);
    transform: scale(0); pointer-events: none;
  }
  .cps-atc-ripple.animate {
    animation: cpsRipple .6s ease-out;
  }
  @keyframes cpsRipple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
  }

  /* ─── Buy Now Button ─── */
  .cps-pdp-buy-now-btn {
    height: 52px; padding: 0 22px; display: flex; align-items: center;
    justify-content: center; gap: 8px; border: 2px solid var(--cps-brand);
    border-radius: 16px; background: var(--cps-white); color: var(--cps-brand-dark);
    font-size: 15px; font-weight: 800; cursor: pointer;
    transition: all .2s ease; white-space: nowrap;
    font-family: var(--cps-font-heading);
  }
  .cps-pdp-buy-now-btn:hover {
    background: var(--cps-brand-soft);
    box-shadow: 0 4px 14px var(--cps-brand-glow);
    transform: translateY(-2px);
  }

  /* ─── Delivery + Viewers Row ─── */
  .cps-pdp-delivery-row {
    margin-top: 12px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
  }
  .cps-delivery-info {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--cps-text-secondary);
  }
  .cps-delivery-info svg { color: var(--cps-brand-dark); flex-shrink: 0; }
  .cps-delivery-info strong { color: var(--cps-text); }
  .cps-viewers-info {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--cps-muted);
  }
  .cps-viewers-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cps-danger); animation: cpsDotPulse 1.5s ease infinite;
  }

  /* ═══ Trust Badges — Compact Horizontal Strip ═══ */
  .cps-pdp-trust-strip {
    display: flex; align-items: center; gap: 0;
    background: var(--cps-surface); border-radius: 12px;
    padding: 9px 12px; border: 1px solid var(--cps-border);
  }
  .cps-trust-item {
    display: flex; align-items: center; gap: 8px; flex: 1;
    justify-content: center;
  }
  .cps-trust-icon {
    width: 24px; height: 24px; border-radius: 8px;
    background: var(--cps-brand-soft); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--cps-brand-dark);
  }
  .cps-trust-icon svg { stroke: var(--cps-brand-dark); }
  .cps-trust-text {
    font-size: 10.5px; font-weight: 800; color: var(--cps-text);
    white-space: nowrap;
  }
  .cps-trust-sep {
    width: 1px; height: 20px; background: var(--cps-border);
    margin: 0 6px; flex-shrink: 0;
  }

  /* ═══ Share Row — With Text Labels ═══ */
  .cps-pdp-share-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .cps-share-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: var(--cps-muted);
  }
  .cps-share-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 10px;
    border: 1px solid var(--cps-border); background: var(--cps-surface);
    color: var(--cps-text-secondary); font-size: 12px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    transition: all .2s ease;
  }
  .cps-share-btn:hover {
    background: var(--cps-brand-soft); border-color: rgba(255,193,7,.3);
    color: var(--cps-brand-dark); transform: translateY(-1px);
  }
  .cps-share-btn svg { flex-shrink: 0; }

  /* ═══════════════════════════════════════════════════════
     TABS — Accordion on Mobile, Tabs on Desktop
     ═══════════════════════════════════════════════════════ */
  .cps-pdp-tabs-wrap { margin-block-start: 32px; }
  .cps-pdp-tabs {
    border: 1px solid var(--cps-border); border-radius: 20px;
    background: var(--cps-white); overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.03);
  }
  .cps-tab-item { border-bottom: 1px solid var(--cps-border); }
  .cps-tab-item:last-child { border-bottom: none; }
  .cps-tab-header {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between; padding: 16px 24px;
    border: none; background: transparent;
    font-family: var(--cps-font-heading); font-weight: 700;
    font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--cps-text-secondary); cursor: pointer;
    transition: all .2s ease;
  }
  .cps-tab-header:hover { color: var(--cps-brand-dark); background: var(--cps-brand-soft); }
  .cps-tab-item.is-active .cps-tab-header {
    color: var(--cps-brand-dark); font-weight: 900;
    border-bottom: 2px solid var(--cps-brand);
  }
  .cps-tab-chevron { transition: transform .3s ease; color: var(--cps-muted); }
  .cps-tab-item.is-active .cps-tab-chevron { transform: rotate(180deg); color: var(--cps-brand-dark); }
  .cps-tab-panel {
    max-height: 0; overflow: hidden; padding: 0 24px;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s ease;
  }
  .cps-tab-panel.is-active {
    max-height: 5000px; padding: 20px 24px 24px;
  }
  /* Desktop: show as tabs */
  @media (min-width: 768px) {
    .cps-pdp-tabs { display: flex; flex-direction: column; }
    .cps-tab-item { border-bottom: 1px solid var(--cps-border); }
    .cps-tab-header { cursor: pointer; }
  }

  /* ─── Specifications ─── */
  .cps-specs-grid { display: grid; gap: 0; }
  .cps-spec-row {
    display: grid; grid-template-columns: 160px 1fr;
    border-bottom: 1px solid var(--cps-border);
    transition: background .15s ease;
  }
  .cps-spec-row:last-child { border-bottom: none; }
  .cps-spec-row:hover { background: var(--cps-brand-soft); }
  .cps-spec-label {
    padding: 12px 16px; font-weight: 800; font-size: 13px;
    color: var(--cps-muted); text-transform: uppercase;
    letter-spacing: .5px; background: var(--cps-surface);
    border-right: 1px solid var(--cps-border);
  }
  .cps-spec-value {
    padding: 12px 16px; font-weight: 600; font-size: 14px;
    color: var(--cps-text);
  }
  html[dir="rtl"] .cps-spec-label {
    border-right: none; border-left: 1px solid var(--cps-border);
  }

  /* ─── Reviews ─── */
  .cps-pdp-reviews-summary {
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--cps-border);
  }
  .cps-reviews-score { display: flex; align-items: center; gap: 14px; }
  .cps-reviews-avg {
    font-size: 44px; font-weight: 1000; color: var(--cps-text);
    font-family: var(--cps-font-heading);
  }
  .cps-reviews-stars {
    color: var(--cps-brand); font-size: 22px; letter-spacing: 2px;
  }
  .cps-reviews-label { color: var(--cps-muted); font-size: 13px; margin-top: 2px; }
  .cps-reviews-list { margin-bottom: 24px; }
  .cps-reviews-empty {
    color: var(--cps-muted); font-size: 14px;
    text-align: center; padding: 24px 0;
  }

  /* ─── Review Form ─── */
  .cps-review-form-wrap {
    border-top: 1px solid var(--cps-border); padding-top: 20px;
  }
  .cps-review-form-title {
    margin: 0 0 14px; font-size: 16px; font-weight: 900;
    color: var(--cps-text);
  }
  .cps-review-form { display: flex; flex-direction: column; gap: 12px; }
  .cps-form-input, .cps-form-textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--cps-border);
    border-radius: 14px; font-size: 14px; font-family: var(--cps-font-body);
    background: var(--cps-surface); color: var(--cps-text); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .cps-form-input:focus, .cps-form-textarea:focus {
    border-color: var(--cps-brand);
    box-shadow: 0 0 0 3px var(--cps-brand-ring);
  }
  .cps-star-input { display: flex; gap: 6px; }
  .cps-star-input span {
    font-size: 28px; cursor: pointer; color: var(--cps-border);
    transition: color .15s ease, transform .15s ease;
  }
  .cps-star-input span:hover, .cps-star-input span.active {
    color: var(--cps-brand); transform: scale(1.15);
  }
  .cps-form-submit {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border: none; border-radius: 14px;
    background: var(--cps-brand); color: var(--cps-text);
    font-size: 14px; font-weight: 800; cursor: pointer;
    transition: all .2s ease; font-family: var(--cps-font-heading);
  }
  .cps-form-submit:hover {
    background: var(--cps-brand-gold);
    box-shadow: 0 4px 14px var(--cps-brand-glow);
  }
  .cps-login-link {
    text-decoration: none; display: inline-block; text-align: center;
  }

  /* ═══ Recommendations ═══ */
  .cps-pdp-recommendations { margin-top: 40px; }
  .cps-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 16px;
  }
  .cps-section-header h2 {
    margin: 0; font-size: 22px; font-weight: 900;
    color: var(--cps-text); font-family: var(--cps-font-heading);
  }
  .cps-accent-spark { color: var(--cps-brand); }
  .cps-view-all-link {
    color: var(--cps-brand-dark); text-decoration: none;
    font-weight: 800; font-size: 13px; text-transform: uppercase;
    letter-spacing: .5px; transition: color .15s ease;
    font-family: var(--cps-font-heading);
  }
  .cps-view-all-link:hover { color: var(--cps-brand); }
  .cps-reco-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
  /* ─── Recommendation Cards ─── */
  .cps-reco-card {
    border: 1px solid var(--cps-border); border-radius: 14px;
    overflow: hidden; background: var(--cps-white);
    transition: all .25s ease; position: relative;
  }
  .cps-reco-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08), 0 0 16px var(--cps-brand-ring);
  }
  .cps-reco-tag {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    padding: 3px 10px; background: var(--cps-brand); color: var(--cps-text);
    font-size: 10px; font-weight: 900; text-transform: uppercase;
    letter-spacing: .5px; border-radius: 6px;
  }
  html[dir="rtl"] .cps-reco-tag { left: auto; right: 8px; }
  .cps-reco-card a { text-decoration: none; color: inherit; }
  .cps-reco-img {
    aspect-ratio: 1/1; background: #F5F5F5; overflow: hidden;
    display: block;
  }
  .cps-reco-img img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .3s ease;
  }
  .cps-reco-card:hover .cps-reco-img img { transform: scale(1.05); }
  .cps-reco-noimg {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 32px; background: #F8F8FA;
  }
  .cps-reco-body {
    padding: 12px 14px;
  }
  .cps-reco-name {
    font-size: 13px; font-weight: 700; color: var(--cps-text);
    margin-bottom: 6px; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.4;
  }
  .cps-reco-pricing {
    display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  }
  .cps-reco-price {
    font-size: 15px; font-weight: 1000; color: var(--cps-brand-dark);
  }
  .cps-reco-old {
    font-size: 12px; color: var(--cps-muted); text-decoration: line-through;
  }
  .cps-reco-contact {
    font-size: 13px; font-weight: 700; color: var(--cps-brand-dark);
  }
  /* Skeleton */
  .cps-reco-skeleton {
    border: 1px solid var(--cps-border); border-radius: 14px;
    overflow: hidden; padding: 0;
  }
  .cps-reco-skel-img {
    height: 180px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: cpsSkelShimmer 1.5s infinite;
  }
  .cps-reco-skel-line {
    height: 14px; margin: 10px 14px; border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%; animation: cpsSkelShimmer 1.5s infinite;
  }
  @keyframes cpsSkelShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }


  /* ─── Desktop PDP compact layout: wider right card, no inner scroll ─── */
  @media (min-width: 1024px) {
    .cps-pdp-info { min-width: 0; }
    .cps-pdp-price-current { font-size: 32px; }
    .cps-pdp-meta-chip { padding: 4px 10px; font-size: 11px; }
    .cps-pdp-qty-label { margin-bottom: 6px; }
    .cps-pdp-short-desc p:last-child { margin-bottom: 0; }
  }

  @media (min-width: 1280px) {
    .cps-pdp-grid { grid-template-columns: minmax(0, .92fr) minmax(600px, 1.18fr); }
  }

  /* ═══════════════════════════════════════════════════════
     RESPONSIVE — Mobile First
     ═══════════════════════════════════════════════════════ */
  @media (max-width: 767px) {
    .cps-pdp-grid {
      grid-template-columns: 1fr; gap: 20px;
    }
    .cps-pdp-info {
      position: static; max-height: none; overflow: visible;
      padding: 24px 20px; border-radius: 20px;
    }
    .cps-pdp-title { font-size: 22px; }
    .cps-pdp-price-current { font-size: 28px; }
    .cps-pdp-price-block { padding: 18px 20px; }
    .cps-pdp-btn-row { flex-direction: column; }
    .cps-pdp-buy-now-btn { width: 100%; height: 50px; }
    .cps-pdp-atc-btn { width: 100%; height: 56px; }
    .cps-pdp-trust-strip { flex-wrap: wrap; gap: 8px; }
    .cps-trust-sep { display: none; }
    .cps-trust-item { flex: 0 0 auto; min-width: 0; }
    .cps-pdp-delivery-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .cps-pdp-share-row { flex-wrap: wrap; }
    .cps-share-btn span { display: none; }
    .cps-pdp-hero-img { max-height: 320px; }
    .cps-qty-group { width: 100%; }
    .cps-qty-group .cps-qty-btn { flex: 1; }
    .cps-qty-input { flex: 1; }
  }
  @media (min-width: 768px) and (max-width: 1023px) {
    .cps-pdp-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .cps-pdp-title { font-size: 24px; }
    .cps-pdp-price-current { font-size: 32px; }
  }

  /* ═══ Animations ═══ */
  @keyframes cpsFadeIn {
    from { opacity: 0; } to { opacity: 1; }
  }
  @keyframes cpsSlideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes cpsSlideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
  }
  html[dir="rtl"] .cps-pdp-info { animation-name: cpsSlideInLeft; }

  /* ─── RTL Specific ─── */
  html[dir="rtl"] .cps-pdp-top-actions { margin-left: 0; margin-right: auto; }
  html[dir="rtl"] .cps-pdp-price-row { flex-direction: row-reverse; }
  html[dir="rtl"] .cps-pdp-btn-row { flex-direction: row-reverse; }
  html[dir="rtl"] .cps-pdp-share-row { flex-direction: row-reverse; }
  html[dir="rtl"] .cps-gallery-prev { left: auto; right: 10px; }
  html[dir="rtl"] .cps-gallery-next { right: auto; left: 10px; }
  html[dir="rtl"] .cps-section-header { flex-direction: row-reverse; }
  html[dir="rtl"] .cps-pdp-delivery-row { flex-direction: row-reverse; }
  html[dir="rtl"] .cps-trust-item { flex-direction: row-reverse; }

/* Reviews loaded from the moderated server-side review model. */
.cps-review-card { padding: 16px; border: 1px solid var(--cps-border); border-radius: 14px; background: var(--cps-white); }
.cps-review-card + .cps-review-card { margin-block-start: 12px; }
.cps-review-card header, .cps-review-card footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cps-review-card p { margin:10px 0; color:var(--cps-text-secondary); line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.cps-review-star { color:#d8d8df; }
.cps-review-star.is-filled { color:var(--cps-brand-dark); }
.cps-verified-review { color:var(--cps-success); font-weight:700; font-size:12px; }
.cps-reviews-disabled { text-align:center; padding-block:24px; }
.cps-visually-hidden-copy { position:fixed; inset-inline-start:-10000px; }
.cps-warranty-icon { vertical-align:middle; margin-inline-end:4px; }
@media (prefers-reduced-motion: reduce) {
  .cps-pdp-root *, .cps-pdp-root *::before, .cps-pdp-root *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}


/* Runtime correctness: contact-only product and rich content sizing. */
.cps-pdp-contact-section { display:grid; gap:12px; padding:16px; border:1px solid var(--kimo-border); border-radius:14px; background:#fffdf5; }
.cps-pdp-contact-section p { margin:0; color:var(--kimo-muted); font-weight:700; line-height:1.65; }
.cps-pdp-contact-btn { display:inline-flex; align-items:center; justify-content:center; min-block-size:46px; padding-inline:22px; border-radius:12px; background:var(--kimo-primary); color:#17171a; text-decoration:none; font-weight:900; inline-size:fit-content; }
.cps-pdp-richtext, .cps-pdp-richtext *, .kimo-richtext, .kimo-richtext * { max-inline-size:100%; box-sizing:border-box; }
.cps-pdp-richtext img, .kimo-richtext img, [data-kimo-richtext] img { display:block !important; max-inline-size:100% !important; inline-size:auto !important; block-size:auto !important; max-block-size:680px; object-fit:contain !important; margin:16px auto !important; background:#fff !important; }
.cps-pdp-richtext p, .cps-pdp-richtext li, .cps-pdp-richtext div, .kimo-richtext p, .kimo-richtext li, .kimo-richtext div { background:transparent !important; }

/* Gallery controller and accessible zoom viewer. */
.cps-gallery-track { position: relative; min-block-size: 320px; background: #fff; }
.kimo-gallery-slide { display: none; inline-size: 100%; block-size: 100%; overflow: hidden; background: #fff; }
.kimo-gallery-slide.is-active { display: grid; place-items: center; }
.cps-pdp-hero-img { cursor: zoom-in; transform-origin: 50% 50%; will-change: transform; }
.cps-pdp-gallery:hover .cps-pdp-hero-img { transform: none; }
.cps-pdp-hero-img.is-hover-zoomed { transform: scale(1.8); transition-duration: 120ms; }
.kimo-gallery-thumb img { object-fit: contain; background: #fff; }
.cps-gallery-zoom-button {
  position: absolute; z-index: 12; inset-block-end: 12px; inset-inline-end: 12px;
  inline-size: 42px; block-size: 42px; display: grid; place-items: center;
  border: 1px solid var(--cps-border); border-radius: 50%; background: rgba(255,255,255,.94);
  color: var(--cps-text); cursor: pointer; box-shadow: 0 4px 16px rgba(15,23,42,.12);
}
.cps-gallery-zoom-button:hover, .cps-gallery-zoom-button:focus-visible { background: var(--cps-brand); outline: 3px solid var(--cps-brand-ring); }
.cps-gallery-lightbox {
  inline-size: min(96vw, 1500px); block-size: min(94vh, 980px); max-inline-size: none; max-block-size: none;
  padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #0b0c10; color: #fff;
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}
.cps-gallery-lightbox::backdrop { background: rgba(3,7,18,.82); backdrop-filter: blur(6px); }
.cps-gallery-lightbox__toolbar {
  min-block-size: 58px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-inline: 18px; background: rgba(10,11,15,.96); border-block-end: 1px solid rgba(255,255,255,.1);
}
.cps-gallery-lightbox__actions { display: flex; align-items: center; gap: 8px; }
.cps-gallery-lightbox__actions button, .cps-gallery-lightbox__nav {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff;
  border-radius: 10px; min-inline-size: 40px; min-block-size: 40px; cursor: pointer; font: inherit; font-weight: 800;
}
.cps-gallery-lightbox__actions button:hover, .cps-gallery-lightbox__actions button:focus-visible,
.cps-gallery-lightbox__nav:hover, .cps-gallery-lightbox__nav:focus-visible { background: rgba(255,255,255,.18); outline: 2px solid var(--cps-brand); }
.cps-gallery-lightbox__stage { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; block-size: calc(100% - 58px); }
.cps-gallery-lightbox__viewport { position: relative; inline-size: 100%; block-size: 100%; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.cps-gallery-lightbox__viewport img { max-inline-size: 92%; max-block-size: 92%; inline-size: auto; block-size: auto; object-fit: contain; background: #fff; cursor: zoom-in; user-select: none; transition: transform 120ms ease; transform-origin: center; }
.cps-gallery-lightbox__viewport img.is-zoomed { cursor: grab; }
.cps-gallery-lightbox__viewport img.is-dragging { cursor: grabbing; transition: none; }
.cps-gallery-lightbox__nav { margin: 12px; inline-size: 48px; block-size: 64px; font-size: 34px; z-index: 2; }
body.cps-lightbox-open { overflow: hidden; }
@media (max-width: 767px) {
  .cps-gallery-lightbox { inline-size: 100vw; block-size: 100dvh; border-radius: 0; }
  .cps-gallery-lightbox__stage { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .cps-gallery-lightbox__nav { inline-size: 38px; block-size: 52px; margin: 3px; }
  .cps-gallery-lightbox__toolbar { padding-inline: 10px; }
  .cps-gallery-lightbox__viewport img { max-inline-size: 100%; max-block-size: 100%; }
}

/* Gallery reliability refinements: one controller, mouse/touch zoom and fallback dialog. */
.cps-gallery-lightbox.is-fallback-open {
  position: fixed;
  inset: 3vh 2vw;
  z-index: 10050;
  display: block;
  margin: auto;
}
.cps-gallery-lightbox.is-fallback-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(3,7,18,.86);
}
.kimo-gallery-slide[aria-hidden="true"] { pointer-events: none; }
.kimo-gallery-slide.is-active { min-block-size: 320px; }
.cps-pdp-hero-img { max-inline-size: 100%; block-size: auto; }
.cps-gallery-lightbox__viewport { overscroll-behavior: contain; }
@media (max-width: 767px) {
  .cps-gallery-lightbox.is-fallback-open { inset: 0; }
  .kimo-gallery-slide.is-active { min-block-size: 260px; }
}

/* Round 6 gallery reliability: visible click zoom, stable image stage and no crop. */
.cps-gallery-main,
.cps-gallery-track,
.kimo-gallery-slide.is-active {
  inline-size: 100%;
  background: #fff;
}
.kimo-gallery-slide.is-active {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cps-pdp-hero-img {
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 520px;
  object-fit: contain !important;
  background: #fff !important;
}
.cps-gallery-lightbox__viewport img:not(.is-zoomed) { cursor: zoom-in; }
.cps-gallery-lightbox__viewport img.is-zoomed { cursor: zoom-out; }
.cps-gallery-lightbox[open] { display: block; }
@media (max-width: 767px) {
  .kimo-gallery-slide.is-active { aspect-ratio: 1 / 1; }
  .cps-pdp-hero-img { max-block-size: 420px; }
}
