/* ════════════════════════════════════════════════════════════════════
   Product page — layout v2
   Desktop: gallery + details on the left, the quote form beside the
   product from the first screen and pinned while the details scroll.
   Phones: one bar pinned to the bottom of the screen opens the same
   form as a sheet. The form itself is the live form, unchanged.
   Loads after product.css and only on product pages using v2.
   Flat backgrounds, no gradients, no shadow on the form.
   ════════════════════════════════════════════════════════════════════ */

.gx2 .gx2-top { padding-bottom: 56px; }

/* ── grid ───────────────────────────────────────────────────────────── */
.gx2 .gx2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    grid-template-areas: "gallery aside" "content aside";
    column-gap: 48px;
    align-items: start;
    margin-top: 18px;
}
.gx2 .gx2-gallery { grid-area: gallery; min-width: 0; }
.gx2 .gx2-aside   { grid-area: aside; align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.gx2 .gx2-content { grid-area: content; min-width: 0; }

/* ── head ───────────────────────────────────────────────────────────── */
.gx2 .gx2-head .gaara-product-title { margin: 10px 0 8px; }
.gx2 .gx2-head .gaara-product-excerpt { margin: 0; }

/* ── the quote card (the live form, re-homed) ───────────────────────── */
.gx2 .gx2-card-slot { flex: 1; margin-top: 22px; }
.gx2 .gx2-card {
    position: sticky;
    top: 138px;                        /* fixed header is 118px */
    border: 1px solid var(--g-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--g-cream);
    box-shadow: none;
}
.gx2 .gx2-card-head { position: relative; background: #1a3a27; color: #fff; padding: 18px 22px 16px; }
.gx2 .gx2-card-head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.25; }
.gx2 .gx2-card-head p  { margin: 4px 0 0; font-size: .86rem; color: rgba(255,255,255,.74); line-height: 1.55; }
.gx2 .gx2-close { display: none; }
.gx2 .gx2-card-body { padding: 18px 22px 16px; background: var(--g-cream); }
.gx2 .gx2-card-body .gaara-form-group { margin-bottom: 12px; }
.gx2 .gx2-card-body .gaara-form-row-2 { gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Name and Phone each get a full line: the country-code picker needs the
   width, and side by side it squeezed the name field down to a stub. */
.gx2 .gx2-card-body .gaara-form-row-2:first-of-type { grid-template-columns: 1fr; gap: 0; }
.gx2 .gx2-card-body textarea { min-height: 78px; }
.gx2 .gx2-card-body .gaara-btn-submit { margin-top: 2px; }
.gx2 .gx2-wa { display: flex; justify-content: center; margin-top: 9px; width: 100%; }
.gx2 .gx2-contact { margin: 10px 0 0; font-size: .78rem; color: var(--g-muted); text-align: center; }
.gx2 .gx2-contact a { color: inherit; text-decoration: none; }
.gx2 .gx2-contact a:hover { color: var(--g-green); text-decoration: underline; }
.gx2 .gx2-card.gx2-flash { animation: gx2flash 1.1s ease; }
/* when the header slides away, the pinned form moves up into its space */
@media (min-width: 900px) {
    .gx2 .gx2-card { transition: top .35s ease; }
    body.gaara-hdr-hidden .gx2 .gx2-card { top: 20px; }
}
@keyframes gx2flash { 0%,100% { border-color: var(--g-border); } 45% { border-color: var(--g-mid); } }

/* thank-you panel (replaces the form after a successful send) */
.gx2 .gx2-thanks { text-align: center; padding: 14px 4px 6px; }
.gx2 .gx2-thanks-tick { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: 4px auto 14px;
    border-radius: 50%; background: #e3efe3; color: var(--g-green); }
.gx2 .gx2-thanks h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--g-dark); }
.gx2 .gx2-thanks p  { margin: 0 auto 18px; max-width: 34ch; font-size: .94rem; color: var(--g-text); line-height: 1.6; }
.gx2 .gx2-thanks .gx2-btn { width: 100%; }
.gx2 .gx2-thanks .gx2-btn + .gx2-btn { margin-top: 9px; }
.gx2 .gx2-btn-ghost { background: #fff; color: var(--g-dark); border: 1.5px solid var(--g-border); }
.gx2 .gx2-btn-ghost:hover { border-color: var(--g-green); color: var(--g-green); }
/* while the thank-you panel shows, the extra contact routes step back */
.gx2 .gx2-card.is-sent .gx2-wa, .gx2 .gx2-card.is-sent .gx2-contact { display: none; }
/* desktop has no sheet to close, so no "continue browsing" there */
@media (min-width: 900px) { .gx2 .gx2-thanks [data-gx2-close] { display: none; } }

/* ── content sections ───────────────────────────────────────────────── */
.gx2 .gx2-sec { margin-top: 34px; }
.gx2 .gx2-h2 { font-size: 1.22rem; font-weight: 700; color: var(--g-dark); margin: 0 0 12px; line-height: 1.3; text-align: start; }
.gx2 .gx2-intro { font-size: .86rem; color: var(--g-muted); margin: -4px 0 12px; }
.gx2 .gx2-desc .gaara-description-content { font-size: .96rem; }
/* tables written into a product description (e.g. size / calibre charts) */
.gx2 .gx2-desc table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.gx2 .gx2-desc th, .gx2 .gx2-desc td { padding: 9px 12px; text-align: start; border-bottom: 1px solid var(--g-border); }
.gx2 .gx2-desc th { font-weight: 700; color: var(--g-dark); background: #f6f8f3; }
.gx2 .gx2-specs .gaara-specs-wrap { margin: 0; }

/* season calendar, now full width of the content column */
.gx2 .gx2-season-box { border: 1px solid var(--g-border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.gx2 .gx2-season .gaara-season-grid { min-width: 0; max-width: none; margin: 0; }
.gx2 .gx2-season .gaara-season-row { grid-template-columns: 196px minmax(0, 1fr); }
/* names read from the start edge (left in English, right in Arabic), on one line */
.gx2 .gx2-season .gaara-season-name { text-align: start; padding-inline-end: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx2 .gx2-season .gaara-season-months,
.gx2 .gx2-season .gaara-season-ticks { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 3px; }
.gx2 .gx2-swin { display: none; }

/* container loading: open on desktop, collapsible on phones */
.gx2 .gx2-loading { border: 1px solid var(--g-border); border-radius: 12px; background: #fff; padding: 0; }
.gx2 .gx2-loading > summary { list-style: none; cursor: default; padding: 14px 16px 0; }
.gx2 .gx2-loading > summary::-webkit-details-marker { display: none; }
.gx2 .gx2-loading > summary .gx2-h2 { margin: 0 0 10px; }
.gx2 .gx2-loading .gaara-table-wrap { border: 0; border-top: 1px solid var(--g-border); border-radius: 0; box-shadow: none; margin: 0; overflow-x: auto; }
.gx2 .gx2-loading .gaara-loading-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.gx2 .gx2-loading .gaara-loading-table thead,
.gx2 .gx2-loading .gaara-loading-table thead th { background: var(--g-cream2); color: var(--g-muted); }
.gx2 .gx2-loading .gaara-loading-table thead th { padding: 10px 16px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; text-align: start; border-bottom: 1px solid var(--g-border); }
.gx2 .gx2-loading .gaara-loading-table tbody td { padding: 10px 16px; border-bottom: 1px solid var(--g-border); text-align: start; }
.gx2 .gx2-loading .gaara-loading-table tbody tr:nth-child(even) { background: #fbfaf6; }
.gx2 .gx2-loading .gaara-loading-table tbody tr:last-child td { border-bottom: 0; }
.gx2 .gx2-loading .gaara-loading-table tbody td:first-child { color: var(--g-muted); }
.gx2 .gx2-loading .gaara-loading-table tbody td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.gx2 .gx2-loading .gaara-container-note { margin: 0; padding: 10px 16px; border-top: 1px solid var(--g-border); }
.gx2 .gx2-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin: 0; padding: 12px 16px; border-top: 1px solid var(--g-border); background: #f3f7f1; font-size: .86rem; color: var(--g-text); border-radius: 0 0 12px 12px; }

/* certifications: same one-row logos, in the content column */
.gx2 .gaara-aside-certs { border-top: 0; padding-top: 0; }
.gx2 .gaara-aside-certs .gx2-h2 { text-align: start; }
.gx2 .gaara-aside-certs .gaara-certs-grid { justify-content: flex-start; }   /* logos start under the heading, not centred */

/* FAQs */
.gx2 .gx2-faq .gaara-accordion { max-width: none; margin: 0; gap: 0; border-top: 1px solid var(--g-border); }
/* a plain list, one line between questions — no boxes, no shadow */
.gx2 .gx2-faq .gaara-accordion-item,
.gx2 .gx2-faq .gaara-accordion-item.active { background: none; border: 0; border-bottom: 1px solid var(--g-border); border-radius: 0; box-shadow: none; overflow: visible; }
.gx2 .gx2-faq .gaara-accordion-trigger { padding: 16px 0; }
.gx2 .gx2-faq .gaara-accordion-trigger:hover { background: none; }
.gx2 .gx2-faq .gaara-accordion-trigger:hover .gaara-accordion-question { color: var(--g-green); }
.gx2 .gx2-faq .gaara-accordion-panel { border-top: 0; }
.gx2 .gx2-faq .gaara-accordion-answer { padding: 0 0 16px; }


/* buttons */
.gx2 .gx2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
    padding: 12px 20px; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; }
.gx2 .gx2-btn-p { background: #1a3a27; color: #fff; }
.gx2 .gx2-btn-p:hover { background: var(--g-green); color: #fff; text-decoration: none; }
.gx2 .gx2-btn-wa { background: #25d366; color: #fff; }
.gx2 .gx2-btn-wa:hover { background: #1da851; color: #fff; }
.gx2 .gx2-btn-wa svg { width: 22px; height: 22px; }

/* phone-only pieces are hidden on desktop */
.gx2 .gx2-mbar, .gx2 .gx2-scrim { display: none; }

/* Wider page on desktop: the product content was capped at 603px inside a
   1160px container. The form keeps a fixed width; all the extra goes to the
   gallery and the details column. */
@media (min-width: 900px) {
    .gx2 .gx2-top > .gaara-container { max-width: 1360px; }
    .gx2 .gx2-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); }
}

@media (max-width: 1180px) {
    .gx2 .gx2-card-body .gaara-form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ════════ phones and small tablets ════════════════════════════════ */
@media (max-width: 899px) {
    .gx2 .gx2-grid { grid-template-columns: 1fr; grid-template-areas: "gallery" "aside" "content"; margin-top: 10px; }
    /* The hero container carries z-index:1 (from product.css), which makes it a
       stacking context: the sheet inside it could never rise above the scrim,
       the fixed site header or the pinned bar, whatever its own z-index, so the
       form showed dimmed, under the header, with the bar over its button.
       Without it the container still paints above the header band, which has
       no z-index and comes first in the page. */
    .gx2 .gx2-top > .gaara-container { z-index: auto; }
    .gx2 .gx2-top { padding-bottom: 96px; }                 /* room above the pinned bar */

    /* shorter photo so the product name shows on the first screen */
    .gx2 .gaara-main-image-wrap::before { padding-top: 75%; }
    .gx2 .gaara-thumbnails { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .gx2 .gaara-thumbnails::-webkit-scrollbar { display: none; }
    .gx2 .gaara-thumb-item { flex: 0 0 64px; }

    .gx2 .gx2-head { margin-top: 14px; }
    .gx2 .gx2-head .gaara-product-title { font-size: 1.6rem; margin: 8px 0 6px; }

    /* the card becomes a sheet that slides up from the bottom */
    .gx2 .gx2-card-slot { margin: 0; flex: none; }
    .gx2 .gx2-card {
        position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 10060;
        max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
        border-radius: 20px 20px 0 0; border: 0;
        transform: translateY(105%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
        visibility: hidden;
    }
    .gx2.gx2-sheet-open .gx2-card { transform: none; visibility: visible; }
    .gx2 .gx2-card-head { padding: 22px 56px 16px 20px; }
    .gx2.gaara-rtl .gx2-card-head { padding: 22px 20px 16px 56px; }
    .gx2 .gx2-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 14px; inset-inline-end: 12px;
        width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; cursor: pointer; }
    .gx2 .gx2-card-body { padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .gx2 .gx2-card-body .gaara-form-row-2 { grid-template-columns: 1fr; gap: 0; }

    .gx2 .gx2-scrim { display: block; position: fixed; inset: 0; z-index: 10050; background: rgba(26,58,39,.3);
        opacity: 0; pointer-events: none; transition: opacity .2s; }
    .gx2.gx2-sheet-open .gx2-scrim { opacity: 1; pointer-events: auto; }

    /* one pinned bar: Request a Quote + WhatsApp */
    .gx2 .gx2-mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9985;
        background: rgba(255,255,255,.97); border-top: 1px solid var(--g-border);
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .gx2 .gx2-mbar .gx2-btn-p  { flex: 1; padding: 14px 16px; }
    .gx2 .gx2-mbar .gx2-btn-wa { flex: 0 0 54px; padding: 0; }


    /* season: two lines per variety — name and window, then a full-width bar */
    .gx2 .gx2-season-box { padding: 12px; }
    .gx2 .gx2-season .gaara-season-row { grid-template-columns: 1fr auto; grid-template-areas: "name win" "track track"; row-gap: 5px; }
    .gx2 .gx2-season .gaara-season-row + .gaara-season-row { margin-top: 10px; }
    .gx2 .gx2-season .gaara-season-name { grid-area: name; text-align: start; padding: 0; font-size: .86rem; white-space: normal; }
    .gx2 .gx2-season .gx2-swin { display: block; grid-area: win; font-size: .78rem; color: var(--g-muted); font-variant-numeric: tabular-nums; }
    .gx2 .gx2-season .gaara-season-row.is-self .gx2-swin { color: var(--g-mid); font-weight: 600; }
    .gx2 .gx2-season .gaara-season-track { grid-area: track; height: 14px; }
    .gx2 .gx2-season .gaara-season-bar { top: 2px; bottom: 2px; }
    .gx2 .gx2-season .gaara-season-bar em { display: none; }
    .gx2 .gx2-season .gaara-season-head { grid-template-columns: 1fr; grid-template-areas: "months"; }
    .gx2 .gx2-season .gaara-season-head > .gaara-season-name { display: none; }
    .gx2 .gx2-season .gaara-season-head .gaara-season-months { grid-area: months; grid-column: 1 / -1; }
    .gx2 .gx2-season .gaara-season-label { font-size: .56rem; letter-spacing: 0; }
    /* Arabic month names are full words (no accepted short forms) and are
       wider than a phone column, so label every other month and let each
       name spill into its hidden neighbour's space. */
    html[lang^="ar"] .gx2 .gx2-season .gaara-season-head .gaara-season-label { display: flex; justify-content: center; overflow: visible; white-space: nowrap; }
    html[lang^="ar"] .gx2 .gx2-season .gaara-season-head .gaara-season-label:nth-child(even) { visibility: hidden; }

    /* container: closed by default, the heading opens it */
    .gx2 .gx2-loading > summary { cursor: pointer; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
    .gx2 .gx2-loading > summary .gx2-h2 { margin: 0; }
    .gx2 .gx2-loading > summary::after { content: "+"; font-weight: 700; color: var(--g-green); font-size: 1.25rem; line-height: 1; }
    .gx2 .gx2-loading[open] > summary::after { content: "–"; }

    /* the floating WhatsApp bubble would sit on the pinned bar, which already has WhatsApp */
    #ht-ctc-chat { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .gx2 .gx2-card, .gx2 .gx2-scrim { transition: none; }
    .gx2 .gx2-card.gx2-flash { animation: none; }
}
