/* GiftB360x — Single Product Page Styles */

.gb-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 0 0 48px;
    align-items: start;
}

/* ── Gallery ──────────────────────────────────────────── */
.gb-product-gallery { position: sticky; top: 90px; }

.gb-gallery-main {
    position: relative;
    border-radius: var(--gb-radius-lg);
    overflow: hidden;
    background: var(--gb-bg-soft);
    aspect-ratio: 4/5;
    width: 100%;
    margin-bottom: 12px;
}
.gb-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gb-gallery-main:hover img { transform: scale(1.03); }

.gb-gallery-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gb-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.gb-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.gb-gallery-thumb {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
    aspect-ratio: 1;
    background: var(--gb-bg-soft);
}
.gb-gallery-thumb.is-active { border-color: var(--gb-primary); }
.gb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Product Details ──────────────────────────────────── */
.gb-product-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gb-secondary);
    margin-bottom: 8px;
}
.gb-product-name {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.4px;
    margin-bottom: 12px;
}

/* Rating */
.gb-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.gb-stars { display: flex; gap: 2px; }
.gb-star { font-size: 17px; color: var(--gb-border); }
.gb-star.is-filled { color: var(--gb-secondary); }
.gb-rating-count { font-size: 13px; color: var(--gb-text-muted); }

/* Price */
.gb-product-price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.gb-price-sale { font-size: 28px; font-weight: 800; color: var(--gb-primary); }
.gb-price-reg  { font-size: 16px; color: var(--gb-text-muted); text-decoration: line-through; }
.gb-price-tag  {
    background: #fef2f2;
    color: var(--gb-accent);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.gb-product-short-desc {
    font-size: 14px;
    color: var(--gb-text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Stock */
.gb-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.gb-stock-status.is-instock { background: #dcfce7; color: var(--gb-success); }
.gb-stock-status.is-outstock { background: #fee2e2; color: var(--gb-accent); }
.gb-stock-low { font-size: 11px; opacity: .8; }

/* ── Product Tags ──────────────────────────────────── */
.gb-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.gb-product-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--gb-border);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gb-text-muted);
    letter-spacing: .3px;
    background: var(--gb-bg-soft);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.gb-product-tag:hover {
    background: var(--gb-primary, #222);
    color: #fff;
    border-color: var(--gb-primary, #222);
}

/* ── WooCommerce ATC form overrides ──────────────────── */
.gb-atc-form { margin-bottom: 24px; }

/* Variable product variation selectors */
.gb-atc-form .variations { width: 100%; margin-bottom: 16px; border-collapse: collapse; }
.gb-atc-form .variations td,
.gb-atc-form .variations th { padding: 0; padding-bottom: 12px; }
.gb-atc-form .variations label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gb-text-muted);
    margin-bottom: 8px;
}
.gb-atc-form .variations select,
.gb-atc-form .woocommerce-variation-add-to-cart select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gb-border);
    border-radius: var(--gb-radius);
    font-size: 14px;
    background: var(--gb-bg);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.gb-atc-form .variations select:focus { border-color: var(--gb-primary); }

/* Swatch-style size buttons (if using WC attribute term images) */
.gb-atc-form .woocommerce-variation-price { margin-bottom: 12px; }
.gb-atc-form .woocommerce-variation-price .price { font-size: 22px; font-weight: 700; }

/* Qty + ATC row */
.gb-atc-form .quantity { display: inline-flex; margin-right: 12px; }
.gb-atc-form .qty {
    width: 64px;
    height: 48px;
    text-align: center;
    border: 1.5px solid var(--gb-border);
    border-radius: var(--gb-radius);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    -webkit-appearance: none;
}
.gb-atc-form .single_add_to_cart_button {
    background: var(--gb-primary);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: var(--gb-radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    letter-spacing: .3px;
}
.gb-atc-form .single_add_to_cart_button:hover { opacity: .88; }
.gb-atc-form .single_add_to_cart_button.disabled { opacity: .4; cursor: not-allowed; }

/* Reset variation link */
.gb-atc-form .reset_variations { font-size: 12px; color: var(--gb-text-muted); display: block; margin-top: 6px; }

/* ── Trust strip ─────────────────────────────────────── */
.gb-product-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--gb-bg-soft);
    border-radius: var(--gb-radius);
    padding: 16px;
    margin-bottom: 16px;
}
.gb-trust-item { font-size: 12px; color: var(--gb-text-muted); }

.gb-product-meta { font-size: 12px; color: var(--gb-text-muted); }
.gb-product-meta span { color: var(--gb-text); font-weight: 600; }

/* ── Tabs ─────────────────────────────────────────────── */
.gb-product-tabs { margin-bottom: 56px; }
.gb-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gb-border);
    margin-bottom: 24px;
}
.gb-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gb-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .15s;
}
.gb-tab-btn.is-active { color: var(--gb-primary); border-bottom-color: var(--gb-primary); }
.gb-tab-panel { display: none; }
.gb-tab-panel.is-active { display: block; }
.gb-product-desc { font-size: 14px; line-height: 1.75; color: var(--gb-text-muted); }
.gb-product-desc p { margin-bottom: 12px; }
.gb-product-desc ul { padding-left: 18px; margin-bottom: 12px; }
.gb-no-content { color: var(--gb-text-muted); font-size: 14px; }

/* ── Related Products ────────────────────────────────── */
.gb-related-products { margin-bottom: 60px; }
.gb-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .gb-product-layout { grid-template-columns: 1fr; gap: 16px; padding-bottom: 24px; }
    .gb-product-gallery { position: static; }
    .gb-gallery-main { aspect-ratio: 4/5; }
    .gb-related-grid { grid-template-columns: repeat(2, 1fr); }
    .gb-product-name { font-size: 22px; }
}

@media (max-width: 768px) {
    .gb-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .gb-product-trust { grid-template-columns: 1fr; gap: 6px; }
    .gb-price-sale { font-size: 24px; }
    .gb-atc-form .single_add_to_cart_button { flex: 1; text-align: center; padding: 14px; }
    .gb-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gb-tabs-nav { overflow-x: auto; }
}

/* ══════════════════════════════════════════════
   PRODUCT PAGE v2 — Custom UI
══════════════════════════════════════════════ */

/* Section title */
.gb-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: #111;
}

/* ── Coupon Carousel ──────────────────────────────── */
.gb-product-coupons {
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.gb-coupons-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #555;
    margin-bottom: 8px;
}
.gb-coupons-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    /* Peek: show 24px of next card */
    padding-right: 24px;
    box-sizing: border-box;
}
.gb-coupons-scroll::-webkit-scrollbar { display: none; }
.gb-coupon-card {
    flex: 0 0 calc(100% - 28px);
    max-width: calc(100% - 28px);
    scroll-snap-align: start;
    border: 1.5px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    position: relative;
}
.gb-coupon-inner {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.gb-coupon-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.gb-coupon-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
}
.gb-coupon-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.gb-coupon-label {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gb-coupon-expiry {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    font-weight: 500;
}
.gb-coupon-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.gb-coupon-code {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,.7);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1.5px dashed rgba(0,0,0,.2);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.gb-coupon-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.9);
    border: 1.5px solid rgba(0,0,0,.18);
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.gb-coupon-copy:hover { background: rgba(0,0,0,.08); }
.gb-coupon-copy.copied { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }

/* Expired coupon stamp */
.gb-coupon-card--expired { opacity: .7; }
.gb-coupon-expired-stamp {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .12em;
    color: #dc2626;
    border: 3px solid #dc2626;
    border-radius: 6px;
    width: fit-content;
    height: fit-content;
    margin: auto;
    padding: 4px 14px;
    transform: rotate(-18deg);
    opacity: .75;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(220,38,38,.15);
}
/* Dot indicators */
.gb-coupons-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}
.gb-coupon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: background .2s, width .2s;
}
.gb-coupon-dot.is-active {
    background: var(--gb-primary, #111);
    width: 18px;
    border-radius: 3px;
}

/* ── Key Highlights ─────────────────────────── */
.gb-key-highlights { margin-bottom: 20px; }
.gb-highlights-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.gb-highlights-table { width: 100%; border-collapse: collapse; }
.gb-highlights-table tr:nth-child(odd) { background: #f8f8f8; }
.gb-highlights-table tr:nth-child(even) { background: #fff; }
.gb-hl-key {
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    width: 40%;
    border-right: 1px solid #eee;
}
.gb-hl-val {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

/* ── Custom Preset Selectors ────────────────── */
.gb-preset-selectors { margin-bottom: 20px; }
.gb-preset-group { margin-bottom: 14px; }
.gb-preset-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    margin-bottom: 8px;
}
.gb-preset-selected-val {
    font-weight: 600;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
}
.gb-preset-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }

.gb-swatch--btn {
    padding: 7px 16px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.gb-swatch--btn:hover { border-color: #999; }
.gb-swatch--btn.is-active {
    border-color: var(--gb-primary, #111);
    background: var(--gb-primary, #111);
    color: #fff;
}
.gb-swatch--color {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    outline: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: outline-color .15s;
}
.gb-swatch--color.is-active {
    outline-color: var(--gb-primary, #111);
    outline-offset: 2px;
}
.gb-swatch--img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 2.5px solid transparent;
    outline: 2px solid transparent;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #f5f5f5;
    transition: outline-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gb-swatch--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-swatch--img span { font-size: 9px; color: #555; text-align: center; padding: 2px; line-height: 1.2; }
.gb-swatch--img.is-active {
    outline-color: var(--gb-primary, #111);
    outline-offset: 2px;
}
.gb-preset-select {
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #111;
    background: #fff;
    min-width: 160px;
    cursor: pointer;
    outline: none;
}
.gb-preset-select:focus { border-color: var(--gb-primary, #111); }
.gb-preset-missing { animation: gbShake .3s ease; }

/* Text / textarea / number input presets */
.gb-preset-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #111;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s;
}
.gb-preset-input:focus { border-color: var(--gb-primary, #111); }
textarea.gb-preset-input { resize: vertical; min-height: 80px; }

/* File upload preset */
.gb-preset-file-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px dashed #aaa;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.gb-preset-file-label:hover { border-color: var(--gb-primary, #111); color: var(--gb-primary, #111); }
@keyframes gbShake {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-5px); }
    40%,80%  { transform: translateX(5px); }
}

/* ── Custom ATC Row ─────────────────────────── */
.gb-atc-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}
.gb-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.gb-qty-btn {
    width: 40px;
    height: 48px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background .15s;
}
.gb-qty-btn:hover { background: #e5e5e5; }
.gb-qty-input {
    width: 52px;
    height: 48px;
    border: none;
    border-left: 1.5px solid #ddd;
    border-right: 1.5px solid #ddd;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    background: #fff;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}
.gb-qty-input::-webkit-outer-spin-button,
.gb-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.gb-btn-atc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    background: var(--gb-primary, #111);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    letter-spacing: .3px;
}
.gb-btn-atc:hover { opacity: .88; }
.gb-btn-atc--oos { background: #ccc; cursor: not-allowed; }

/* ── Pincode Checker ────────────────────────── */
.gb-pincode-section {
    border: 1.5px solid #eee;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: #fafafa;
}
.gb-pincode-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    margin-bottom: 10px;
}
.gb-pincode-row { display: flex; gap: 8px; }
.gb-pincode-input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.gb-pincode-input:focus { border-color: var(--gb-primary, #111); }
.gb-pincode-btn {
    padding: 9px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.gb-pincode-result { font-size: 13px; margin-top: 8px; min-height: 18px; }
.gb-pincode-result.is-available { color: #16a34a; }
.gb-pincode-result.is-unavailable { color: #dc2626; }

/* ── Accordion ──────────────────────────────── */
.gb-accordion { border: 1.5px solid #eee; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.gb-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    text-align: left;
}
.gb-accordion-btn:hover { background: #f8f8f8; }
.gb-accordion-icon { transition: transform .25s; flex-shrink: 0; }
.gb-accordion-btn.is-open .gb-accordion-icon { transform: rotate(180deg); }
.gb-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.gb-accordion-body.is-open { max-height: 1000px; }
.gb-accordion-body > .gb-product-desc {
    padding: 4px 16px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* ── Related Products (2-col focused) ──────── */
.gb-related-products { margin: 24px 0 32px; }
.gb-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 640px) {
    .gb-related-grid { grid-template-columns: repeat(4, 1fr); }
}
.gb-product-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #f0f0f0;
    background: #fff;
    transition: box-shadow .2s;
}
.gb-product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.gb-product-card__img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
}
.gb-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gb-product-card:hover .gb-product-card__img-wrap img { transform: scale(1.04); }
.gb-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e63329;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.gb-product-card__info { padding: 10px 12px 14px; }
.gb-product-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
.gb-product-card__price { display: flex; align-items: center; gap: 6px; }
.gb-product-card__sale { font-size: 14px; font-weight: 800; color: #111; }
.gb-product-card__reg { font-size: 12px; color: #999; text-decoration: line-through; }

/* ══════════════════════════════════════════════
   BOTTOM SHEET OVERLAY
══════════════════════════════════════════════ */
.gb-bs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.gb-bs-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}
.gb-bottom-sheet {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.32,.72,0,1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.gb-bs-overlay.is-open .gb-bottom-sheet { transform: translateY(0); }
.gb-bs-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    margin: 12px auto 8px;
    flex-shrink: 0;
}
.gb-bs-head { padding: 8px 16px 14px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.gb-bs-product-row { display: flex; align-items: center; gap: 12px; }
.gb-bs-product-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.gb-bs-product-name { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 3px; }
.gb-bs-product-price { font-size: 14px; }
.gb-bs-product-price strong { font-weight: 800; color: #111; }
.gb-bs-product-price s { color: #999; font-size: 12px; margin-left: 4px; }
.gb-bs-product-meta { flex: 1; }
.gb-bs-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.gb-bs-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}
.gb-bs-footer {
    padding: 12px 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.gb-btn-confirm-atc {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--gb-primary, #111);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}
.gb-btn-confirm-atc:hover { opacity: .88; }
.gb-btn-confirm-atc:disabled { opacity: .5; cursor: not-allowed; }

/* ══════════════════════════════════════════════
   CART SIDE PANEL
══════════════════════════════════════════════ */
.gb-cp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.gb-cp-overlay.is-open { opacity: 1; pointer-events: all; }
.gb-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 32px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.32,.72,0,1);
    display: flex;
    flex-direction: column;
    z-index: 9101;
}
.gb-cp-overlay.is-open .gb-cart-panel { transform: translateX(0); }
.gb-cp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1.5px solid #f0f0f0;
    flex-shrink: 0;
}
.gb-cp-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #111;
}
.gb-cp-count {
    background: var(--gb-primary, #111);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
}
.gb-cp-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.gb-cp-body { flex: 1; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }
.gb-cp-empty { text-align: center; padding: 40px 20px; color: #999; font-size: 14px; }
.gb-cp-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.gb-cp-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
}
.gb-cp-item-info { flex: 1; min-width: 0; }
.gb-cp-item-name { font-size: 13px; font-weight: 600; color: #111; margin-bottom: 4px; line-height: 1.35; }
/* Variation grid in popup cart */
.gb-cp-item-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 4px; row-gap: 1px; margin-bottom: 5px; width: fit-content; }
.gb-cp-item-meta dt { font-size: 0.68rem; font-style: italic; font-weight: 400; color: #aaa; white-space: nowrap; margin: 0; padding: 0; }
.gb-cp-item-meta dt::after { content: ':'; }
.gb-cp-item-meta dd { font-size: 0.68rem; font-weight: 600; color: #555; margin: 0; padding: 0; }
.gb-cp-item-row { display: flex; justify-content: space-between; align-items: center; }
.gb-cp-item-qty { font-size: 12px; color: #555; }
.gb-cp-item-price { font-size: 14px; font-weight: 700; color: #111; }
/* Remove × button — top-right of each item */
.gb-cp-item-remove {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 18px;
    line-height: 1;
    color: #ccc;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0 2px;
    font-family: inherit;
}
.gb-cp-item-remove:hover { color: #e63329; }
.gb-cp-footer {
    padding: 16px;
    border-top: 1.5px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
}
.gb-cp-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111;
}
.gb-btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: var(--gb-primary, #111);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: opacity .15s;
}
.gb-btn-checkout:hover { opacity: .88; color: #fff; }
.gb-btn-view-cart {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #fff;
    color: #111;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s;
}
.gb-btn-view-cart:hover { border-color: #999; color: #111; }

/* ── Policy accordion icon alignment ───────────── */
.gb-accordion-btn-inner {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ── 100% Secure Transaction ────────────────── */
.gb-secure-pay {
    border: 1.5px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #fafafa;
}
.gb-secure-pay-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.gb-pay-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.gb-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 32px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #fff;
    min-width: 0;
}
.gb-pay-icon svg { width: 38px; height: 24px; max-width: 100%; }
.gb-pay-icon--text {
    border: 1.5px solid #e5e5e5;
    background: transparent;
}

/* ── Overflow containment (prevent horizontal scroll) ─── */
.gb-product-page { overflow-x: hidden; }

/* Preset select: never wider than its container */
.gb-preset-select { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; }

/* Grid blowout fix: prevent columns expanding past their track */
.gb-product-gallery,
.gb-product-details { min-width: 0; overflow: hidden; }

/* Coupon scroll: isolated overflow */
.gb-product-coupons, .gb-coupons-scroll { max-width: 100%; }

/* ATC row: ensure it never overflows */
.gb-atc-row { flex-wrap: wrap; }
.gb-btn-atc { min-width: 0; }

/* ── Mobile adjustments ─────────────────────── */
@media (max-width: 600px) {
    .gb-atc-row { gap: 8px; flex-wrap: nowrap; }
    .gb-btn-atc { font-size: 14px; min-width: 0; flex: 1; }
    /* Coupon carousel: slightly narrower peek on small screens */
    .gb-coupon-label { display: block; }
    .gb-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Preset options wrap cleanly */
    .gb-preset-options { gap: 6px; }
    .gb-swatch--btn { padding: 6px 12px; font-size: 12px; }

    /* Pincode row: wrap on very narrow screens */
    .gb-pincode-row { gap: 6px; }
    .gb-pincode-btn { padding: 9px 12px; font-size: 12px; }

    /* Gallery: fewer thumbs on tiny screens */
    .gb-gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }

    /* Coupon copy button on mobile */
    .gb-coupon-copy { padding: 5px 8px; font-size: 10px; }

    /* Accordion text doesn't overflow */
    .gb-accordion-btn { font-size: 13px; padding: 12px; }
}

@media (max-width: 360px) {
    .gb-pincode-row { flex-wrap: wrap; }
    .gb-pincode-input { width: 100%; }
    .gb-pincode-btn { width: 100%; }
}

/* ── Product Badge (top-left corner) ────────────────── */
.gb-prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}
.gb-prod-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; line-height: normal; }
.gb-prod-badge--ribbon  { background: #e63329; color: #fff; padding: 5px 20px 5px 10px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.gb-prod-badge--pill    { background: #16a34a; color: #fff; padding: 5px 12px; border-radius: 999px; }
.gb-prod-badge--square  { background: #2563eb; color: #fff; padding: 5px 10px; }
.gb-prod-badge--outline { background: #fff; color: #7c3aed; border: 1.5px solid #7c3aed; padding: 4px 10px; border-radius: 999px; }

/* ── Upsell / Cross-sell Scroll Sections ────────────── */
.gb-linked-products {
    margin: 0 0 48px;
}
.gb-linked-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gb-linked-scroll::-webkit-scrollbar { display: none; }

.gb-linked-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--gb-border);
    background: #fff;
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.gb-linked-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.gb-linked-card__img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--gb-bg-soft);
}
.gb-linked-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.gb-linked-card:hover .gb-linked-card__img img { transform: scale(1.05); }

.gb-linked-card__disc {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.gb-linked-card__name {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px 4px;
    text-decoration: none;
    color: inherit;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gb-linked-card__price {
    padding: 0 10px 10px;
    font-size: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.gb-linked-card__price strong { font-weight: 700; }
.gb-linked-card__price del { font-size: 11px; color: var(--gb-text-muted); }
.gb-linked-card .gb-product-card__actions { padding: 0 10px 10px; margin-top: auto; }

@media (max-width: 600px) {
    .gb-linked-card { flex: 0 0 140px; }
    .gb-linked-products { margin-bottom: 32px; }
}

/* Product badge on home-page cards */
.gb-product-card__img-wrap .gb-prod-badge { top: 8px; left: 8px; }
