/* ═══════════════════════════════════════════════════════
   GiftB360x Homepage — tigc.in design language
   Scoped to .gb-page — does NOT leak into Astra theme
═══════════════════════════════════════════════════════ */

.gb-page {
    --gb-black:    #111111;
    --gb-white:    #ffffff;
    --gb-red:      #e63329;
    --gb-red-d:    #c42820;
    --gb-gray-50:  #f8f8f8;
    --gb-gray-100: #f0f0f0;
    --gb-gray-200: #e0e0e0;
    --gb-gray-400: #999999;
    --gb-gray-600: #555555;
    --gb-font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-family: var(--gb-font);
    color: var(--gb-black);
    background: var(--gb-white);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}
.gb-page *, .gb-page *::before, .gb-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.gb-page a { color: inherit; text-decoration: none; }
.gb-page img { display: block; max-width: 100%; }

/* ── Shared layout ── */
.gb-container { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.gb-section-inner { max-width: 480px; margin: 0 auto; padding: 36px 16px; }

.gb-section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 24px;
}
.gb-section-title {
    font-size: 0.85rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--gb-black);
}
.gb-link-all {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--gb-gray-600);
    border-bottom: 1px solid var(--gb-gray-400); padding-bottom: 1px;
    transition: color 0.15s;
}
.gb-link-all:hover { color: var(--gb-black); border-color: var(--gb-black); }

/* ── Buttons ── */
.gb-btn-black {
    background: var(--gb-black); color: var(--gb-white); border: 2px solid var(--gb-black);
    padding: 11px 28px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; border-radius: 2px; transition: all 0.18s;
    display: inline-block; font-family: var(--gb-font); cursor: pointer;
}
.gb-btn-black:hover { background: var(--gb-white); color: var(--gb-black); }

.gb-btn-red {
    background: var(--gb-red); color: var(--gb-white); border: 2px solid var(--gb-red);
    padding: 11px 28px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; border-radius: 2px; transition: all 0.18s;
    display: inline-block; font-family: var(--gb-font); cursor: pointer;
}
.gb-btn-red:hover { background: var(--gb-red-d); border-color: var(--gb-red-d); }

/* ══════════════════════════════════════════════════════
   1. ANNOUNCEMENT BAR (marquee)
   — rendered by class-gift-hooks.php render_store_header()
   — override global.css static-bar styles here
══════════════════════════════════════════════════════ */
.gb-announcement {
    background: var(--gb-black) !important; color: var(--gb-white) !important;
    height: 36px !important; overflow: hidden !important;
    display: flex !important; align-items: center !important;
    padding: 0 !important; text-align: left !important;
}
.gb-announcement.is-hidden { display: none !important; }
.gb-marquee-track { display: flex; animation: gb-marquee 28s linear infinite; white-space: nowrap; }
.gb-marquee-track span { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; padding: 0 40px; flex-shrink: 0; }
@keyframes gb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════
   2. CATEGORY QUICK-NAV (icon strip below header)
   — shows exactly 4 items on screen, rest scroll
══════════════════════════════════════════════════════ */
.gb-cat-nav {
    background: var(--gb-white); border-bottom: 1px solid var(--gb-gray-200);
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gb-cat-nav::-webkit-scrollbar { display: none; }
.gb-cat-nav__track {
    display: flex; gap: 0; padding: 10px 0;
    width: max-content; min-width: 100%;
}
.gb-cat-nav__item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 4px 10px 6px; cursor: pointer; flex-shrink: 0;
    text-decoration: none; color: var(--gb-black);
    min-width: calc(min(100vw, 480px) / 4.3);
}
.gb-cat-nav__icon {
    width: 72px; height: 72px; background: var(--gb-gray-50);
    border: 1.5px solid var(--gb-gray-200); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; transition: border-color 0.15s;
}
.gb-cat-nav__item:hover .gb-cat-nav__icon { border-color: var(--gb-black); }
.gb-cat-nav__icon img { width: 100%; height: 100%; object-fit: cover; }
.gb-cat-nav__emoji { font-size: 1.4rem; line-height: 1; }
.gb-cat-nav__label {
    font-size: 0.58rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--gb-gray-600); text-align: center;
    line-height: 1.2; width: 62px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════
   3. HERO — full-bleed background image, beyoung.in style
   Text + CTA centred at bottom of slide
══════════════════════════════════════════════════════ */
.gb-hero { position: relative; }

.gb-hero__slide {
    display: none;
    position: relative;
    height: 420px;          /* desktop height — 480px page width = 8:7 box */
    overflow: hidden;
    background: var(--gb-gray-100);
}
.gb-hero__slide.is-active { display: block; }

/* Full-bleed background image */
.gb-hero__bg {
    position: absolute; inset: 0;
}
.gb-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
}

/* Dark gradient overlay so text is readable on any image */
.gb-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 100%);
}
/* No image → no overlay needed */
.gb-hero__slide:not(.has-image) .gb-hero__overlay { display: none; }

/* Text block: absolute, centred horizontally, anchored to bottom */
.gb-hero__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 48px 24px 68px;  /* 68px bottom leaves room for dots */
    text-align: center;
    z-index: 2;
}

.gb-hero__eyebrow {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gb-red);
    margin-bottom: 10px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.gb-hero__eyebrow::before,
.gb-hero__eyebrow::after { content: ''; width: 22px; height: 2px; background: var(--gb-red); flex-shrink: 0; }
/* On image slide: white eyebrow */
.gb-hero__slide.has-image .gb-hero__eyebrow { color: #fff; }
.gb-hero__slide.has-image .gb-hero__eyebrow::before,
.gb-hero__slide.has-image .gb-hero__eyebrow::after { background: #fff; }

.gb-hero__headline {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
    color: var(--gb-black); margin-bottom: 12px;
}
.gb-hero__slide.has-image .gb-hero__headline { color: #fff; }

.gb-hero__sub {
    font-size: 0.95rem; color: var(--gb-gray-600); margin-bottom: 22px;
}
.gb-hero__slide.has-image .gb-hero__sub { color: rgba(255,255,255,0.88); }

/* Hero CTA: yellow background, black text */
.gb-btn-hero {
    background: #FFD000; color: #111111;
    border: 2px solid #FFD000;
    padding: 12px 40px; font-size: 0.82rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: 2px; display: inline-block; transition: all 0.18s;
    font-family: var(--gb-font); cursor: pointer;
}
.gb-btn-hero:hover { background: #e6bc00; border-color: #e6bc00; color: #111; }

/* Slider dots */
.gb-hero__dots {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 3;
}
.gb-hero__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer; transition: all 0.2s; border: none; padding: 0; font-size: 0;
}
.gb-hero__dot.is-active { background: #fff; width: 20px; border-radius: 3px; }
/* No-image slide: dark dots */
.gb-hero__slide:not(.has-image) ~ .gb-hero__dots .gb-hero__dot { background: var(--gb-gray-400); }
.gb-hero__slide:not(.has-image) ~ .gb-hero__dots .gb-hero__dot.is-active { background: var(--gb-black); }

/* ══════════════════════════════════════════════════════
   4. TRUST BADGES — 3-col icon-above-text (tigc.in style)
══════════════════════════════════════════════════════ */
.gb-badges {
    border-top: 1px solid var(--gb-gray-200);
    border-bottom: 1px solid var(--gb-gray-200);
    background: var(--gb-white);
}
.gb-badges__inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: stretch;
    padding: 0;
}
.gb-badge {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 14px 8px;
    border-right: 1px solid var(--gb-gray-200);
    text-align: center; min-width: 0;
}
.gb-badge:last-child { border-right: none; }
.gb-badge__emoji { font-size: 1.6rem; line-height: 1; }
.gb-badge__text { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4; color: var(--gb-black); }

/* ══════════════════════════════════════════════════════
   5. PRODUCTS GRID (New Arrivals + Bestsellers)
   — override global.css aspect-ratio: 1 !important conflict
══════════════════════════════════════════════════════ */
.gb-products { background: var(--gb-white); }
.gb-products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gb-top-picks__grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 600px; }
.gb-product-card { cursor: pointer; border: none !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; transform: none !important; }
.gb-product-card:hover { transform: none !important; box-shadow: none !important; }
.gb-product-card__img-wrap {
    aspect-ratio: 3/4 !important; background: var(--gb-gray-50);
    overflow: hidden !important; position: relative; margin-bottom: 10px;
    display: block;
}
.gb-product-card__img-wrap img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: opacity 0.2s; }
.gb-product-card:hover .gb-product-card__img-wrap img { opacity: 0.85; }
.gb-product-card__placeholder {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 3.5rem; background: var(--gb-gray-50);
}
.gb-product-card__badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--gb-red); color: white;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px;
}
/* Custom product badge — matches 50% OFF size exactly */
.gb-prod-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; z-index: 2; pointer-events: none;
    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; }
.gb-product-card__name { font-size: 0.85rem; font-weight: 600; color: var(--gb-black); margin-bottom: 6px; line-height: 1.3; }
.gb-product-card__name a { color: inherit; text-decoration: none; }
.gb-product-card__price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* WC price HTML targets */
.gb-product-card__price .price { display: flex; align-items: center; gap: 6px; }
.gb-product-card__price .woocommerce-Price-amount { font-size: 0.9rem; font-weight: 700; color: var(--gb-black); }
.gb-product-card__price del { text-decoration: none; vertical-align: middle; }
.gb-product-card__price del .woocommerce-Price-amount { font-size: 0.78rem; font-weight: 400; color: var(--gb-gray-400); text-decoration: line-through; text-decoration-thickness: 1px; }
.gb-product-card__price ins { text-decoration: none; }
.gb-product-card__price ins .woocommerce-Price-amount { color: var(--gb-black); }
.gb-product-card__off { font-size: 0.72rem; font-weight: 700; color: var(--gb-red); }

/* ══════════════════════════════════════════════════════
   6. SHOP BY COLLECTION — 8-col square grid
   — override global.css .gb-cat-card { aspect-ratio: 3/4 } conflict
══════════════════════════════════════════════════════ */
.gb-categories { background: var(--gb-gray-50); border-top: 1px solid var(--gb-gray-200); border-bottom: 1px solid var(--gb-gray-200); }
.gb-categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gb-cat-card { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px; cursor: pointer; text-decoration: none; aspect-ratio: auto !important; overflow: visible !important; }
.gb-cat-card__img {
    width: 100%; aspect-ratio: 3/4; background: var(--gb-white);
    border: 1px solid var(--b360x-primary, var(--gb-gray-200)); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; overflow: hidden; transition: border-color 0.2s;
}
.gb-cat-card:hover .gb-cat-card__img { border-color: var(--gb-black); }
.gb-cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gb-cat-card__label {
    font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--gb-gray-600); text-align: center;
    line-height: 1.3; transition: color 0.2s;
}
.gb-cat-card:hover .gb-cat-card__label { color: var(--gb-black); }

/* ══════════════════════════════════════════════════════
   7. PROMO BANNERS
══════════════════════════════════════════════════════ */
.gb-promos { background: #fff; }
.gb-promos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Promo card base */
.gb-promo-card {
    position: relative; cursor: pointer; text-decoration: none;
    border-radius: 16px; overflow: hidden;
    display: flex; align-items: stretch;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.18s, box-shadow 0.18s;
    background-size: cover; background-position: center;
}
.gb-promo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.14); }

/* Image tile */
.gb-promo-card--img { color: #fff; }
.gb-promo-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
    pointer-events: none;
}

/* Gradient backgrounds by type — warm, vibrant, Nykaa-style */
.gb-promo-card--under-price  { background: linear-gradient(145deg, #fff0e0 0%, #fff8f2 60%, #fff 100%); }
.gb-promo-card--flat-percent { background: linear-gradient(145deg, #fce4ec 0%, #fef6f8 60%, #fff 100%); }
.gb-promo-card--flat-price   { background: linear-gradient(145deg, #e3f2fd 0%, #f5faff 60%, #fff 100%); }
.gb-promo-card--clearance    { background: linear-gradient(145deg, #f3e5f5 0%, #faf4fc 60%, #fff 100%); }

/* Inner content */
.gb-promo-card__inner {
    position: relative; z-index: 1;
    width: 100%; padding: 18px 14px;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: flex-end;
    gap: 3px;
}
.gb-promo-card--img .gb-promo-card__inner { align-items: flex-start; justify-content: flex-end; }

/* Eyebrow */
.gb-promo-card__eyebrow {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.16em; color: rgba(0,0,0,0.5);
    font-family: system-ui, -apple-system, sans-serif;
}

/* THE BIG VALUE */
.gb-promo-card__value {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900; line-height: 1; letter-spacing: -0.03em;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    word-break: break-word;
}
.gb-promo-card--under-price  .gb-promo-card__value { color: #e65100; }
.gb-promo-card--flat-percent .gb-promo-card__value { color: #c2185b; }
.gb-promo-card--flat-price   .gb-promo-card__value { color: #2e7d32; }
.gb-promo-card--clearance    .gb-promo-card__value { color: #4527a0; }

/* Subtitle */
.gb-promo-card__headline {
    font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(0,0,0,0.5); margin-top: 1px;
    font-family: system-ui, -apple-system, sans-serif;
}
.gb-promo-card--img .gb-promo-card__headline {
    color: #fff; font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    letter-spacing: 0; text-transform: none; font-weight: 700;
}

/* Shop Now CTA */
.gb-promo-card__cta {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    background: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.65);
    padding: 5px 12px; border-radius: 20px;
    font-family: system-ui, -apple-system, sans-serif;
}
.gb-promo-card--img .gb-promo-card__cta {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   8. DEAL BANNER — full-width dark with red badge
══════════════════════════════════════════════════════ */
.gb-deal { background: var(--gb-black); }
.gb-deal.is-hidden { display: none; }
.gb-deal { position: relative; background-size: cover !important; background-position: center !important; }
.gb-deal__bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.gb-deal__inner { position: relative; z-index: 1; }
.gb-deal__inner {
    max-width: 1280px; margin: 0 auto; padding: 48px 20px;
    display: flex; align-items: center; gap: 48px;
}
.gb-deal__content { flex: 1; }
.gb-deal__eyebrow {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gb-red); margin-bottom: 12px; display: block;
}
.gb-deal__content h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em;
    color: var(--gb-white); margin-bottom: 10px; line-height: 1.15;
}
.gb-deal__content p { font-size: 0.88rem; color: #888; margin-bottom: 24px; }
.gb-deal__badge {
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--gb-red); color: white;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.gb-deal__badge-pct { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.gb-deal__badge-text { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* ══════════════════════════════════════════════════════
   10. FAQ ACCORDION — card style with spacing
══════════════════════════════════════════════════════ */
.gb-faq { background: #f5f5f5; border-top: 1px solid var(--gb-gray-200); }
.gb-faq__list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.gb-faq__item {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.gb-faq__item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.gb-faq__question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px 20px !important;
    background: transparent !important;
    border: none; cursor: pointer; gap: 16px;
    font-size: 0.9rem; font-weight: 600; color: #222 !important; text-align: left;
    font-family: var(--gb-font); line-height: 1.4;
    text-transform: none !important; letter-spacing: 0;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
}
.gb-faq__question:focus,
.gb-faq__question:active,
.gb-faq__question:focus-visible { background: transparent !important; outline: none !important; box-shadow: none !important; color: #222 !important; }

.gb-faq__toggle {
    flex-shrink: 0; color: #bbb;
    font-size: 1.4rem; font-weight: 300; line-height: 1;
    transition: transform 0.2s, color 0.2s;
    display: inline-block;
}
.gb-faq__item.is-open .gb-faq__toggle { transform: rotate(45deg); color: var(--b360x-primary, #e67e22); }

.gb-faq__answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.gb-faq__item.is-open .gb-faq__answer { max-height: 600px; }
.gb-faq__answer p {
    padding: 0 20px 18px 20px !important;
    font-size: 0.86rem; color: #666; line-height: 1.75;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gb-hero__slide { height: 420px; }
    .gb-hero__content { padding: 32px 20px 58px; }
    .gb-hero__headline { font-size: 2rem; }
    .gb-promos__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gb-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gb-deal__inner { flex-direction: column; gap: 24px; text-align: center; padding: 36px 16px; }
    .gb-deal__badge { width: 96px; height: 96px; }
    .gb-section-inner { padding: 36px 16px; }
}

@media (max-width: 480px) {
    .gb-hero__slide { height: auto; aspect-ratio: 8 / 7; }
    .gb-hero__headline { font-size: 1.7rem; }
    .gb-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gb-cat-card__label { font-size: 0.6rem; }
    .gb-cat-card__img { font-size: 2rem; }
    .gb-section-inner { padding: 32px 14px; }
    .gb-products__grid { gap: 10px; }
    .gb-product-card__name { font-size: 0.8rem; }
    .gb-cat-nav__icon { width: 62px; height: 62px; }
    .gb-cat-nav__label { width: 60px; font-size: 0.55rem; }
}

/* ══ SHOPPABLE VIDEO FEED (B360X-436: reel-style) ═════════════════════════ */
/* Rules that set margin/padding carry a .gb-page prefix: global.css's
   `.gb-page * { margin:0; padding:0 }` loads AFTER this file and would
   otherwise win at equal specificity (seen on demo03, 1.1.273). */

.gb-videos { background: #fff; }
.gb-videos .gb-section-inner { padding: 32px 20px 24px; }

.gb-page .gb-videos__strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.gb-videos__strip::-webkit-scrollbar { display: none; }

.gb-video-card {
    flex-shrink: 0;
    width: 150px;
    cursor: pointer;
    scroll-snap-align: start;
    outline: none;
}
.gb-video-card:focus-visible .gb-video-card__thumb { box-shadow: 0 0 0 3px var(--gb-primary, #1a1a1a); }

.gb-video-card__thumb {
    width: 150px;
    height: 266px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.gb-video-card__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gb-video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.22);
    color: #fff;
    font-size: 1.6rem;
    transition: opacity 0.25s, background 0.2s;
}
.gb-video-card:hover .gb-video-card__play { background: rgba(0,0,0,0.38); }

/* Instagram / Facebook tile: a plain link that opens the post there. */
a.gb-video-card--ext { display: block; text-decoration: none !important; color: inherit !important; }
.gb-page .gb-video-card__ext {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
/* A tile that is playing needs no ▶ — it is already moving. */
.gb-video-card.is-playing .gb-video-card__play { opacity: 0; }

.gb-page .gb-video-card__caption {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gb-page .gb-video-card__prod { margin-top: 7px; }
.gb-video-card__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gb-page .gb-video-card__price {
    margin-top: 3px;
    font-size: 0.8rem;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.gb-video-card__price b { font-weight: 700; }
.gb-video-card__price s { color: #9a9a9a; font-size: 0.72rem; }
.gb-page .gb-video-card__off {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 7px;
    white-space: nowrap;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ── Reel viewer ──────────────────────────────────────────────────────────── */

.gb-reel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;                 /* below the store-closed popup (999999) on purpose */
    background: #000;
}
.gb-reel.is-open { display: block; }

.gb-reel__feed {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gb-reel__feed::-webkit-scrollbar { display: none; }

.gb-reel__slide {
    position: relative;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}
.gb-reel__slide::after {           /* keeps white text readable over any video */
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6));
    pointer-events: none;
    z-index: 1;
}

.gb-reel__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.gb-reel__vid,
.gb-reel__media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}
.gb-reel__slide.is-paused .gb-reel__media::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gb-reel__bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.25);
    z-index: 2;
}
.gb-reel__bar span {
    display: block;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
}

.gb-page .gb-reel__top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px;
    padding-top: max(14px, env(safe-area-inset-top));
    z-index: 3;
    pointer-events: none;
    box-sizing: border-box;
}
.gb-reel__btn {
    pointer-events: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(0,0,0,0.5) !important;
    color: #fff !important;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gb-reel__ico-off { display: none; }
.gb-reel.is-muted .gb-reel__ico-on { display: none; }
.gb-reel.is-muted .gb-reel__ico-off { display: block; }

.gb-page .gb-reel__bottom {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.gb-page .gb-reel__meta {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 0 14px 10px;
}
.gb-reel__caption {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.gb-reel__share {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(0,0,0,0.45) !important;
    color: #fff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-page .gb-reel__prods {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.gb-reel__prods::-webkit-scrollbar { display: none; }

.gb-page .gb-reel-card {
    flex: 0 0 84%;
    box-sizing: border-box;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 8px 10px;
    align-items: center;
}
.gb-reel__prods.is-single .gb-reel-card { flex-basis: 100%; }

.gb-reel-card__img img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
.gb-reel-card__info { min-width: 0; }
.gb-reel-card__name {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gb-page .gb-reel-card__price {
    margin-top: 3px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #1a1a1a;
}
.gb-reel-card__price b { font-weight: 700; }
.gb-reel-card__price s { color: #9a9a9a; font-size: 0.72rem; }
.gb-reel-card__price em { white-space: nowrap; font-style: normal; color: #16a34a; font-weight: 700; font-size: 0.7rem; }

.gb-reel-card__icons { display: flex; gap: 4px; align-self: start; }
.gb-reel-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: transparent !important;
    color: #555 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gb-reel-card__wish.in-wishlist svg { stroke: #e63329; fill: #e63329; }

.gb-page .gb-reel-card__cta {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 0;
    border: 0;
    border-radius: 8px;
    background: var(--gb-primary, #1a1a1a) !important;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.gb-reel-card__cta:disabled { opacity: 0.55; cursor: default; }

/* Up/down arrows on the right-middle of the video: see-through and gently
   blinking, so a shopper knows the feed swipes. Tappable on every device.
   Right edge follows the 480px column: 12px in from it, or from the screen. */
.gb-page .gb-reel__nav {
    position: absolute;
    right: max(12px, calc(50% - 228px));
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.16) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: gb-reel-blink 1.6s ease-in-out infinite;
}
.gb-reel__nav svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.gb-reel__nav--up   { top: calc(50% - 46px); }
.gb-reel__nav--down { top: calc(50% + 6px); }
.gb-page .gb-reel__nav--down { animation-delay: 0.8s; }   /* the two blink in turn */
.gb-reel__nav:disabled { visibility: hidden; }   /* no "up" on the first video, no "down" on the last */
@keyframes gb-reel-blink {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
    .gb-page .gb-reel__nav { animation: none; opacity: 0.6; }
}

.gb-page .gb-reel__toast {
    position: absolute;
    left: 50%;
    bottom: 30%;
    transform: translateX(-50%);
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.gb-reel__toast.is-on { opacity: 1; }

@media (max-width: 600px) {
    .gb-video-card { width: 130px; }
    .gb-video-card__thumb { width: 130px; height: 231px; }
}
