/* ══════════════════════════════════════════════════════════════════════
   Optica — warm luxury boutique theme (cream canvas, wine + gold accents)
   Phone first. Colours follow the store settings: --primary (wine),
   --accent (gold), --text; the canvas tokens below follow the Light/Dark
   scheme switch when the merchant uses it.
   ══════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    --bg: #F5F3F0;
    --bg-gray: #EFEBE6;
    --surface: #FFFFFF;
    --surface-2: #F8F5F1;
    --heading: #1C1A1A;
    --text-muted: #7A7370;
    --text-light: #A39C97;
    --border: #E7E2DC;
    --border-dark: #D8D1C9;
    --header-bg: #F5F3F0;
    --header-text: #1C1A1A;
    --footer-bg: #FFFFFF;
    --footer-text: #1C1A1A;
    --footer-text-dim: #7A7370;
    --op-font: 'Cairo', 'Noto Kufi Arabic', system-ui, sans-serif;
    --op-num: 'Poppins', 'Cairo', system-ui, sans-serif;
    --op-wine: var(--primary, #8B1A2B);
    --op-wine-deep: #6D1120;
    --op-wine-soft: #F6E9EB;
    --op-gold: var(--accent, #B8933F);
    --op-r: 16px;
    --op-max: 1200px;
    --op-shadow: 0 16px 40px rgba(139, 26, 43, .08);
}
@supports (color: color-mix(in srgb, red 50%, white)) {
    :root, body {
        --op-wine-deep: color-mix(in srgb, var(--op-wine) 80%, #000);
        --op-wine-soft: color-mix(in srgb, var(--op-wine) 9%, var(--surface, #fff));
        --op-shadow: 0 16px 40px color-mix(in srgb, var(--op-wine) 9%, transparent);
    }
}

html { scroll-behavior: smooth; }
body, body[dir="rtl"] { font-family: var(--op-font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; }
/* The stock header is fixed and the store pads the page for it; this header is sticky, so no padding. */
html body { padding-top: 0; }
h1, h2, h3, h4 { font-family: var(--op-font); color: var(--heading); }
:focus-visible { outline: 2px solid var(--op-wine); outline-offset: 2px; }

/* buttons shared by the theme parts */
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; text-decoration: none; transition: transform .2s, background-color .2s, border-color .2s, color .2s; }
.op-btn:hover { transform: translateY(-2px); }
.op-btn--solid { background: var(--op-wine); color: #fff; }
.op-btn--solid:hover { background: var(--op-wine-deep); color: #fff; }
.op-btn--ghost { background: transparent; border-color: var(--border); color: var(--heading); }
.op-btn--ghost:hover { border-color: var(--op-wine); color: var(--op-wine); }

/* ── Top bar (shared bar, this theme's colours) ─────────────────────── */
.announcement-bar.op-topbar { background: var(--op-wine); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 16px; letter-spacing: 0; line-height: 1.5; white-space: normal; }
.announcement-bar.op-topbar.announcement-moving { padding: 8px 0; white-space: nowrap; }
@media (max-width: 599px) { .announcement-bar.op-topbar:not(.announcement-moving) { font-size: 12px; padding: 7px 12px; } }

/* ── Header ─────────────────────────────────────────────────────────── */
.store-header.op-hdr { position: sticky; top: 0; z-index: 900; background: rgba(245, 243, 240, .92); background: color-mix(in srgb, var(--header-bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: none; transition: box-shadow .25s; }
.store-header.op-hdr.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.op-hdr__in { width: 100%; max-width: var(--op-max); margin: 0 auto; height: 64px; padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.op-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--header-text); border-radius: 12px; cursor: pointer; flex: 0 0 auto; }
.op-burger svg { width: 24px; height: 24px; }
.op-logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; margin-inline-end: auto; }
.op-logo img { height: 46px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.op-logo__txt { font-weight: 800; font-size: 20px; color: var(--op-wine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-nav { display: none; }
.op-acts { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.op-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--header-text); cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s; }
.op-ico:hover { background: var(--op-wine-soft); color: var(--op-wine); }
.op-ico svg { width: 22px; height: 22px; }
.op-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--header-text); font-size: 13px; font-weight: 800; text-decoration: none; font-family: var(--op-num); }
.op-lang:hover { border-color: var(--op-wine); color: var(--op-wine); }
.op-cart-cnt { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--op-wine); color: #fff; font: 700 11px/18px var(--op-num); display: flex; align-items: center; justify-content: center; }
.op-search { border-top: 1px solid var(--border); padding: 10px 14px 12px; position: relative; }
.op-search[hidden] { display: none; }
.op-search__form { max-width: 640px; margin: 0 auto; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: 4px; }
.op-search__form:focus-within { border-color: var(--op-wine); }
.op-search__form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 14px; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.op-search__form button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--op-wine); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.op-search__form button svg { width: 18px; height: 18px; }
.op-search .search-dropdown { max-width: 640px; margin: 6px auto 0; inset-inline: 0; left: 0; right: 0; }
@media (max-width: 380px) {
    .op-hide-sm { display: none; }
    .op-logo img { height: 40px; max-width: 120px; }
    .op-hdr__in { padding: 0 8px; gap: 4px; }
    .op-ico { width: 38px; }
}
@media (min-width: 1024px) {
    .op-hdr__in { height: 76px; padding: 0 24px; gap: 20px; }
    .op-burger { display: none; }
    .op-logo { margin-inline-end: 0; }
    .op-logo img { height: 58px; max-width: 190px; }
    .op-nav { display: flex; flex: 1 1 auto; justify-content: center; align-items: center; gap: clamp(14px, 2vw, 28px); min-width: 0; }
    .op-nav a { color: var(--header-text); font-weight: 700; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s; }
    .op-nav a:hover, .op-nav a.active { color: var(--op-wine); border-color: var(--op-wine); }
    .op-acts { gap: 6px; }
}

/* phones + tablets: quick-links row under the header */
.op-subnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.op-subnav__in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 9px 14px; -webkit-overflow-scrolling: touch; }
.op-subnav__in::-webkit-scrollbar { display: none; }
.op-subnav a { flex: 0 0 auto; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--heading); text-decoration: none; white-space: nowrap; background: var(--bg); }
.op-subnav a.active, .op-subnav a:hover { background: var(--op-wine); border-color: var(--op-wine); color: #fff; }
@media (min-width: 1024px) { .op-subnav { display: none; } }

/* ── Mobile menu (shared drawer) — this theme's colours ─────────────── */
.mobile-slide-menu { font-family: var(--op-font); }
.mobile-slide-menu .mm-menu-link:hover, .mobile-slide-menu .mm-tab.active { color: var(--op-wine); }

/* ── Section scaffolding ────────────────────────────────────────────── */
.home-section { background: transparent; padding: 44px 0; }
.home-section .section-inner { max-width: var(--op-max); margin: 0 auto; padding: 0 16px; }
.op-head, .home-section .section-header.op-head { display: block; text-align: center; margin: 0 auto 26px; max-width: 720px; border: 0; padding: 0; }
.op-kicker { color: var(--op-wine); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.op-head h2 { font-size: clamp(26px, 6.2vw, 40px); font-weight: 800; line-height: 1.25; margin: 0; color: var(--heading); }
.op-head h2::after, .op-head h2::before { display: none; }
.op-more { text-align: center; margin-top: 28px; }
@media (min-width: 860px) { .home-section { padding: 64px 0; } .home-section .section-inner { padding: 0 24px; } }

/* ── Trust strip (features) ─────────────────────────────────────────── */
.op-trust { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.op-trust__in { max-width: var(--op-max); margin: 0 auto; padding: 20px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; text-align: center; }
.op-trust__item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.op-trust__ic { font-size: 24px; line-height: 1; color: var(--op-wine); display: inline-flex; margin-bottom: 4px; }
.op-trust__ic .fi-glyph { font-size: 24px; line-height: 1; }
.op-trust__ic svg, .op-trust__ic img { width: 26px; height: 26px; }
.op-trust__item b { font-size: 14px; color: var(--heading); }
.op-trust__sub { font-size: 12px; color: var(--text-muted); }
@media (min-width: 860px) { .op-trust__in { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 26px 24px; } .op-trust__item b { font-size: 15px; } }

/* ── Category cards ─────────────────────────────────────────────────── */
.op-cats { display: grid; grid-template-columns: 1fr; gap: 14px; }
.op-cat { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--op-r); padding: 26px 20px 22px; text-decoration: none; color: inherit; transition: transform .25s, border-color .25s, box-shadow .25s; }
.op-cat:hover { transform: translateY(-5px); border-color: var(--op-wine); box-shadow: var(--op-shadow); }
.op-cat__ic { width: 76px; height: 76px; border-radius: 50%; background: var(--op-wine-soft); color: var(--op-wine); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; font-size: 32px; }
.op-cat__ic svg { width: 48px; height: 26px; }
.op-cat__ic img { width: 52px; height: 52px; object-fit: contain; }
.op-cat h3 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.op-cat p { color: var(--text-muted); font-size: 14px; margin: 0 0 12px; }
.op-cat__go { color: var(--op-wine); font-weight: 800; font-size: 14px; margin-top: auto; }
.op-cat__go i { font-style: normal; display: inline-block; transition: transform .2s; }
.op-cat:hover .op-cat__go i { transform: translateX(-4px); }
[dir="ltr"] .op-cat:hover .op-cat__go i { transform: translateX(4px); }
/* phones: compact row cards (icon beside the text) so three categories fit on one screen */
@media (max-width: 599px) {
    .op-cats { gap: 10px; }
    .op-cat { display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "ic t" "ic d" "ic g"; column-gap: 14px; row-gap: 1px; align-items: center; text-align: start; padding: 14px 16px; }
    .op-cat__ic { grid-area: ic; width: 58px; height: 58px; margin: 0; }
    .op-cat__ic svg { width: 38px; height: 20px; }
    .op-cat__ic img { width: 40px; height: 40px; }
    .op-cat h3 { grid-area: t; font-size: 17px; margin: 0; }
    .op-cat p { grid-area: d; font-size: 13px; margin: 0; }
    .op-cat__go { grid-area: g; margin-top: 3px; font-size: 13px; }
}
@media (min-width: 600px) { .op-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .op-cats--3, .op-cats--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .op-cats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .op-cat { padding: 30px 24px 26px; } }

/* ── Collection tabs + product grid ─────────────────────────────────── */
.op-coll .cl-tabs-wrap.op-tabs-wrap { display: flex; justify-content: center; margin: 0 0 22px; border: 0; }
.op-coll .cl-tabs-wrap.op-tabs-wrap::before, .op-coll .cl-tabs-wrap.op-tabs-wrap::after { display: none; }
.op-coll .cl-tabs.op-tabs { display: flex; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0; max-width: 100%; -webkit-overflow-scrolling: touch; border: 0; }
.op-tabs::-webkit-scrollbar { display: none; }
.op-coll .cl-tab, .op-coll .cl-tab:first-child, .op-coll .cl-tab:last-child { flex: 0 0 auto; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 20px; font: 700 14px/1.4 var(--op-font); color: var(--heading); cursor: pointer; transition: .2s; box-shadow: none; margin: 0; }
.op-coll .cl-tab:hover { border-color: var(--op-wine); }
.op-coll .cl-tab.active { background: var(--op-wine); border-color: var(--op-wine); color: #fff; }
.op-coll .cl-tab::after { display: none; }

.products-scroll.op-grid, .op-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; }
.op-grid > * { min-width: 0; width: auto; max-width: none; }
@media (min-width: 700px) { .products-scroll.op-grid, .op-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .products-scroll.op-grid, .op-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* ── Product card ───────────────────────────────────────────────────── */
.product-card.op-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--op-r); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; box-shadow: none; padding: 0; height: 100%; }
.product-card.op-card:hover { transform: translateY(-6px); border-color: var(--op-wine); box-shadow: var(--op-shadow); }
.op-card__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-gray); }
.op-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s, opacity .35s; }
.op-card__b { opacity: 0; }
.op-card:hover .op-card__a { transform: scale(1.05); }
.op-card:hover .op-card__b { opacity: 1; }
.op-card__noimg { position: absolute; inset: 0; background: var(--bg-gray); }
.op-card__tag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: var(--op-wine); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.op-card__tag.is-sale { background: var(--op-gold); font-family: var(--op-num); }
.op-card__out { position: absolute; inset-inline: 10px; bottom: 10px; z-index: 2; background: rgba(28, 26, 26, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 10px; text-align: center; }
.op-card__wl { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--op-wine); font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.op-card__wl.wishlisted { color: #fff; background: var(--op-wine); }
.op-card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.op-card__code { font: 700 11px/1.3 var(--op-num); color: var(--op-gold); letter-spacing: .04em; }
.op-card__name { font-weight: 800; font-size: 15px; line-height: 1.4; color: var(--heading); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.op-card__name:hover { color: var(--op-wine); }
.op-card__type { font-size: 12px; color: var(--text-muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.op-card__price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.op-card__price small { font-size: 11px; color: var(--text-muted); }
.op-card__price b { font: 800 15px/1.3 var(--op-num); color: var(--op-wine); white-space: nowrap; }
.op-card__price s { font: 500 12px var(--op-num); color: var(--text-light); }
.op-card__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; border-radius: 999px; background: var(--op-wine); color: #fff; font: 700 13px/1 var(--op-font); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.op-card__btn:hover { background: var(--op-wine-deep); color: #fff; }
@media (max-width: 420px) {
    .op-card__body { padding: 10px 10px 12px; }
    .op-card__name { font-size: 14px; }
    .op-card__foot { gap: 6px; }
    .op-card__btn { width: 100%; }
}
@media (min-width: 1024px) { .op-card__body { padding: 16px; } .op-card__name { font-size: 16px; } }

/* ── Newsletter ─────────────────────────────────────────────────────── */
.op-news { text-align: center; }
.op-news h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 800; margin: 0 0 6px; }
.op-news p { color: var(--text-muted); margin: 0 auto 20px; max-width: 520px; }
.newsletter-form.op-news__form { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 460px; margin: 0 auto; }
.newsletter-form.op-news__form input { flex: 1 1 220px; min-width: 0; height: 48px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: 0 20px; font: inherit; font-size: 15px; color: var(--text); }
.newsletter-form.op-news__form input::placeholder { color: var(--text-light); }
.newsletter-form.op-news__form input:focus { outline: none; border-color: var(--op-wine); }
.newsletter-form.op-news__form .op-btn { flex: 0 0 auto; height: 48px; padding: 0 26px; border-radius: 999px; }
.op-news__form .cs-nl__msg { flex: 1 1 100%; font-size: 13px; min-height: 1em; }
.op-news__form .cs-nl__msg.ok { color: var(--success, #2E7D4F); }
.op-news__form .cs-nl__msg.err { color: var(--danger, #C62828); }
@media (max-width: 420px) { .newsletter-form.op-news__form input, .newsletter-form.op-news__form .op-btn { flex: 1 1 100%; } }

/* ── Stock sections this theme dresses (no markup change) ───────────── */
.cs-section { background-color: transparent; }
.cs-section .cs-title { font-size: clamp(24px, 5.6vw, 36px); font-weight: 800; color: var(--heading); }
.cs-section .cs-subtitle { color: var(--text-muted); }
/* payment / COD cards: as many columns as there are cards (3 → 3), one column on phones */
.cs-section .cs-cod__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cs-cod__card { border: 1px solid var(--border); border-radius: var(--op-r); box-shadow: none; transition: border-color .2s; }
.cs-cod__card:hover { border-color: var(--op-wine); box-shadow: none; }
/* static marquee = quality-tier strip */
.cs-section.cs-marquee { background: var(--surface); border-bottom: 1px solid var(--border); }
.cs-section.cs-marquee .cs-inner { padding-top: 22px; padding-bottom: 22px; }
.cs-marquee--static .cs-marquee-static { justify-content: center; flex-wrap: wrap; gap: 10px 34px; }
.cs-marquee-phrase { font-family: var(--op-num); font-weight: 700; letter-spacing: .06em; }
.cs-marquee--static .cs-marquee-phrase { color: #9A8F86; font-size: clamp(14px, 3.6vw, 21px); transition: color .2s; }
.cs-marquee--static .cs-marquee-phrase:hover { color: var(--op-wine); }
.cs-marquee--static .cs-marquee-sep { color: var(--border-dark); }
@media (max-width: 599px) {
    .cs-marquee--static .cs-marquee-static { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 6px 34px; text-align: center; }
    .cs-marquee--static .cs-marquee-sep { display: none; }
    .cs-section.cs-marquee .cs-inner { padding-top: 16px; padding-bottom: 16px; }
}
/* WhatsApp order band */
.cs-waorder { border-radius: 20px; }

/* ── Shop page + related products (store markup, dressed by CSS only) ─ */
.shop-page .products-grid, .products-grid { gap: 14px; }
.products-grid > .product-card, .product-card.related-card { border: 1px solid var(--border); border-radius: var(--op-r); background: var(--surface); box-shadow: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.products-grid > .product-card:hover, .product-card.related-card:hover { transform: translateY(-6px); border-color: var(--op-wine); box-shadow: var(--op-shadow); }
.products-grid > .product-card .card-image, .product-card.related-card .card-image { aspect-ratio: 4 / 5; background: var(--bg-gray); }
.products-grid > .product-card .card-image-slider img, .product-card.related-card .card-image-slider img { object-fit: cover; padding: 0; }
.products-grid > .product-card .card-image-slider img.active, .product-card.related-card .card-image-slider img.active { position: absolute; }
.products-grid > .product-card .card-body, .product-card.related-card .card-body { padding: 12px 12px 14px; gap: 2px; }
.products-grid > .product-card .card-sku { order: -1; border: 0; margin: 0 0 2px; padding: 0; font: 700 11px/1.3 var(--op-num); color: var(--op-gold); letter-spacing: .04em; }
.products-grid > .product-card .card-title, .product-card.related-card .card-title { font-weight: 800; font-size: 15px; line-height: 1.4; color: var(--heading); }
.products-grid > .product-card .card-category { color: var(--text-muted); margin-bottom: 4px; }
.products-grid > .product-card .card-rating, .products-grid > .product-card .card-stock.in-stock, .product-card.related-card .card-rating { display: none; }
.products-grid > .product-card .card-price .current, .product-card.related-card .card-price .current { font: 800 15px/1.3 var(--op-num); color: var(--op-wine); }
.products-grid > .product-card .card-options { margin: 2px 0 10px; gap: 4px; }
.products-grid > .product-card .card-options .vh-text { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--op-wine-soft); color: var(--op-wine); border: 0; }
.products-grid > .product-card .card-select-btn, .product-card.related-card .card-select-btn { border-radius: 999px; background: var(--op-wine); font-weight: 700; min-height: 40px; margin-top: auto; }
.products-grid > .product-card .card-select-btn:hover, .product-card.related-card .card-select-btn:hover { background: var(--op-wine-deep); filter: none; }
.product-card .card-badge { border-radius: 999px; }
.product-card .card-actions button { border-radius: 50%; color: var(--op-wine); }
.shop-sidebar, .filter-sidebar { font-family: var(--op-font); }
@media (max-width: 420px) {
    .products-grid > .product-card .card-body { padding: 10px; }
    .products-grid > .product-card .card-title { font-size: 14px; }
    .products-grid > .product-card .card-options { display: none; }
}

.products-grid > .product-card .card-from-label, .product-page .price-from-label { display: none; } /* one price per frame in this shop; the choices never change the price */
.products-grid > .product-card .card-options { display: none; } /* shape / material / gender live in the specs and the filters, not on the card */

/* ── Product page ───────────────────────────────────────────────────── */
body.ptpl-classic .pdp-buybar { display: none; } /* stock sticky buy bar is printed for every template but only styled by the "pdp" family */
.product-info h1 { font-family: 'Cormorant Garamond', var(--op-font); font-weight: 700; font-size: clamp(30px, 6vw, 40px); line-height: 1.15; }
[dir="rtl"] .product-info h1 { font-family: var(--op-font); font-weight: 800; }
/* "frame only / with lenses" choice drawn as a two-way switch */
.op-lens-switch .vr-terms.vr-terms-label { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.op-lens-switch .vr-terms.vr-terms-label > .vr-term { flex: 1 1 0; text-align: center; border: 0; border-radius: 11px; padding: 11px 8px; background: transparent; color: var(--text-muted); font-weight: 700; }
.op-lens-switch .vr-terms.vr-terms-label > .vr-term.vr-selected { background: var(--op-wine); color: #fff; }
.op-lens-switch .vr-terms.vr-terms-label > .vr-term .vr-term-price { display: none; }
.op-lens-switch .vr-attr-selected { display: none; }
.pz-atelier.op-lens-on { border-radius: 16px; }
/* specs table (stock "specs" product section) */
.m-extra .spec table, .pdp-sec .spec table { width: 100%; border-collapse: collapse; }
.m-extra .spec th, .m-extra .spec td { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; text-align: start; }
.m-extra .spec th { color: var(--text-muted); font-weight: 600; width: 45%; }
.m-extra .spec td { font-weight: 700; direction: ltr; text-align: end; }
[dir="rtl"] .m-extra .spec td { text-align: start; direction: ltr; unicode-bidi: plaintext; }
.m-extra .m-head h2 { font-size: 24px; font-weight: 800; }

/* ── Lens types + terms pages (custom "features" cards) ─────────────── */
.cs-section.cs-features .cs-features-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cs-section.cs-features .cs-feature-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--op-r); padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: start; }
.cs-section.cs-features .cs-feature-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--op-wine-soft); display: grid; place-items: center; font-size: 22px; }
.cs-section.cs-features .cs-feature-body h4 { font-size: 17px; font-weight: 800; margin: 0 0 4px; color: var(--heading); }
.cs-section.cs-features .cs-feature-body p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0; }
@media (min-width: 600px) { .cs-section.cs-features .cs-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cs-section.cs-features .cs-features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.cs-section.cs-features .cs-title, .cs-section.cs-follow_row .csx-title { font-size: clamp(26px, 6vw, 40px); }
/* custom pages with the title band on (e.g. Terms) */
.custom-page-header { background: var(--op-wine); color: #fff; padding: 40px 0; }
.custom-page-header h1 { color: #fff; font-weight: 800; font-size: clamp(26px, 6vw, 40px); margin: 0; }
/* policy pages */
.policy-page .policy-title { font-weight: 800; }
.policy-content h3 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; }
.policy-content table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.policy-content th, .policy-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; font-size: 14px; }
.policy-content th { background: var(--bg-gray); color: var(--text-muted); font-weight: 700; }
.policy-content ul { padding-inline-start: 1.3em; } .policy-content li { margin: 6px 0; line-height: 1.8; }
.product-page .product-gallery .main-image, .product-page .product-gallery > div:first-child { border-radius: 20px; }
.product-info h1 { font-weight: 800; color: var(--heading); }
.product-price-box .price, .product-price-box .current { font-family: var(--op-num); color: var(--op-wine); }
.vr-terms.vr-terms-label > .vr-term { border-radius: 14px; background: var(--surface); }
.vr-terms.vr-terms-label > .vr-term.vr-selected { background: var(--op-wine-soft); border-color: var(--op-wine); color: var(--op-wine); }
.vr-terms.vr-terms-label .vr-term-price { font-family: var(--op-num); }
.qty-selector { border-radius: 999px; border-color: var(--border); background: var(--surface); }
.qty-selector button { background: transparent; }
.qty-selector input { background: transparent; color: var(--text); }
.btn-add-cart, .btn-buy-now { border-radius: 999px; min-height: 50px; font-weight: 800; }
.btn-add-cart { background: var(--op-wine); }
.btn-add-cart:hover { background: var(--op-wine-deep); }
.pz-atelier { border-radius: 18px; }
.product-tabs .tabs-nav button.active { color: var(--op-wine); border-bottom-color: var(--op-wine); }
.tab-description ul { padding-inline-start: 1.3em; margin: 8px 0; }
.tab-description li { margin: 3px 0; }
.tab-description p { margin: 8px 0; line-height: 1.9; }

/* ── Cart drawer + checkout accents ─────────────────────────────────── */
/* Phones: the stock single checkout column is "1fr", which lets the widest content (e.g. the
   governorate list with prices) push the form past the screen edge. Clamp it to the screen. */
@media (max-width: 1024px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .checkout-layout > *, .checkout-form, .checkout-fields, .checkout-field { min-width: 0; max-width: 100%; }
    .checkout-field select, select.checkout-input { width: 100%; max-width: 100%; min-width: 0; }
}
#checkout-coupon-code { min-width: 0; width: 100%; }
#checkout-coupon-entry .btn { flex: 0 0 auto; white-space: nowrap; min-height: 44px; border-radius: 999px !important; }
.checkout-input { border-radius: 12px; border-color: var(--border); background: var(--surface); }
.checkout-input:focus { border-color: var(--op-wine); }
.cart-sidebar { font-family: var(--op-font); }
.cart-sidebar .btn-checkout, .cart-sidebar .cart-checkout-btn, .checkout-page .btn-place-order, .btn-place-order { border-radius: 999px; }

/* ── Footer (shared markup, light card look) ────────────────────────── */
.store-footer { background: var(--footer-bg); color: var(--footer-text); border-top: 1px solid var(--border); padding-top: 40px; }
.store-footer .footer-inner { max-width: var(--op-max); margin: 0 auto; padding: 0 16px 26px; display: grid; grid-template-columns: 1fr; gap: 26px; }
.store-footer .footer-col h4 { color: var(--op-wine); font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.store-footer .footer-col a, .store-footer .footer-col p { color: var(--footer-text-dim); font-size: 14px; }
.store-footer .footer-col a:hover { color: var(--op-wine); }
.store-footer .footer-logo { height: 64px !important; width: auto; }
.store-footer .footer-contact-line { color: var(--footer-text-dim); }
.store-footer .social-icon { background: var(--op-wine-soft); color: var(--op-wine); }
.store-footer .social-icon:hover { background: var(--op-wine); color: #fff; }
.store-footer .footer-newsletter-form { gap: 8px; border-radius: 0; overflow: visible; }
.store-footer .footer-newsletter-form input { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 10px 16px; }
.store-footer .footer-newsletter-form input::placeholder { color: var(--text-light); }
.store-footer .footer-newsletter-form button { background: var(--op-wine); color: #fff; border-radius: 999px; }
.store-footer .footer-bottom { max-width: var(--op-max); margin: 0 auto; border-top: 1px solid var(--border); color: var(--footer-text-dim); padding: 18px 16px 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 13px; }
.store-footer .footer-bottom a { color: var(--footer-text-dim) !important; }
@media (max-width: 699px) {
    .store-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .store-footer .footer-col:first-child, .store-footer .footer-col:last-child { grid-column: 1 / -1; }
}
@media (min-width: 700px) { .store-footer .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .store-footer .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; padding: 0 24px 32px; } }
