/* Glow Beauty shop — scoped to body.shop-tpl-glow_beauty only */
body.shop-tpl-glow_beauty.shop-body-premium {
    margin: 0;
    font-family: var(--gb-font, "DM Sans", system-ui, sans-serif);
    background: var(--store-bg, #fff9f8);
    color: var(--store-text, #4a3933);
    -webkit-font-smoothing: antialiased;
    --gb-font: var(--store-font, "DM Sans", system-ui, sans-serif);
    --gb-heading: var(--store-heading-font, "Cormorant Garamond", Georgia, serif);
    --gb-blush: color-mix(in srgb, var(--store-primary, #c08497) 14%, var(--store-bg, #fff9f8) 86%);
    --gb-rose-soft: color-mix(in srgb, var(--store-primary, #c08497) 22%, transparent);
    --gb-surface: color-mix(in srgb, var(--store-card-bg, #fff) 92%, var(--store-bg, #fff9f8) 8%);
    --gb-border: color-mix(in srgb, var(--store-primary, #c08497) 18%, var(--store-text, #4a3933) 8%);
    --gb-border-soft: color-mix(in srgb, var(--store-text, #4a3933) 10%, transparent);
    --gb-muted: color-mix(in srgb, var(--store-text, #4a3933) 62%, var(--store-bg, #fff9f8) 38%);
    --gb-gold: var(--store-accent, #c9a86c);
    --gb-radius: max(18px, min(28px, calc(var(--store-btn-radius, 999px) * 0.04 + 18px)));
    --gb-pill: 999px;
    --gb-btn-radius: max(12px, min(999px, var(--store-btn-radius, 999px)));
    --gb-shadow: 0 2px 8px color-mix(in srgb, var(--store-primary, #c08497) 8%, transparent),
        0 18px 48px color-mix(in srgb, var(--store-text, #4a3933) 6%, transparent);
    --gb-shadow-hover: 0 8px 24px color-mix(in srgb, var(--store-primary, #c08497) 14%, transparent),
        0 28px 56px color-mix(in srgb, var(--store-text, #4a3933) 8%, transparent);
    --gb-safe-top: env(safe-area-inset-top, 0px);
    --gb-header-h: 58px;
    --gb-bar-top: 64px;
    scroll-padding-top: calc(var(--gb-safe-top) + var(--gb-header-h) + 24px);
}

body.shop-tpl-glow_beauty .gb-shop-page {
    min-height: 100vh;
    padding-bottom: max(96px, calc(80px + env(safe-area-inset-bottom)));
}

body.shop-tpl-glow_beauty .gb-shell {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* ── Floating header ── */
body.shop-tpl-glow_beauty .gb-header {
    position: sticky;
    top: calc(var(--gb-safe-top) + 8px);
    z-index: 220;
    margin: 10px 0 12px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: color-mix(in srgb, var(--store-card-bg, #fff) 88%, transparent);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--gb-border-soft);
    border-radius: var(--gb-pill);
    box-shadow: var(--gb-shadow);
}

body.shop-tpl-glow_beauty .gb-header-brand {
    font-family: var(--gb-heading);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--store-primary, #c08497);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

body.shop-tpl-glow_beauty .gb-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    height: 42px;
    border-radius: var(--gb-pill);
    border: 1px solid var(--gb-border-soft);
    background: var(--gb-blush);
}
body.shop-tpl-glow_beauty .gb-header-search i {
    color: var(--gb-muted);
    font-size: 14px;
}
body.shop-tpl-glow_beauty .gb-header-search input {
    flex: 1;
    border: none;
    background: transparent;
    font: 500 14px/1.4 var(--gb-font);
    color: var(--store-text);
    outline: none;
    min-width: 0;
}
body.shop-tpl-glow_beauty .gb-header-search input::placeholder {
    color: var(--gb-muted);
}

body.shop-tpl-glow_beauty .gb-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.shop-tpl-glow_beauty .gb-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gb-border-soft);
    background: var(--store-card-bg, #fff);
    color: var(--store-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body.shop-tpl-glow_beauty .gb-icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--gb-rose-soft);
    box-shadow: var(--gb-shadow);
}
body.shop-tpl-glow_beauty .gb-icon-btn.is-wished {
    color: var(--store-primary);
    border-color: var(--gb-rose-soft);
    background: var(--gb-blush);
}
body.shop-tpl-glow_beauty .gb-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: var(--gb-pill);
    background: var(--store-button, var(--store-primary));
    color: #fff;
    font: 600 10px/17px var(--gb-font);
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}
body.shop-tpl-glow_beauty .gb-badge.is-on {
    opacity: 1;
    transform: scale(1);
}

/* ── Hero ── */
body.shop-tpl-glow_beauty .gb-hero {
    text-align: center;
    padding: 36px 12px 28px;
    max-width: 720px;
    margin-inline: auto;
}
body.shop-tpl-glow_beauty .gb-hero-kicker {
    margin: 0 0 12px;
    font: 600 11px/1 var(--gb-font);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--store-accent, var(--store-primary));
}
body.shop-tpl-glow_beauty .gb-hero-title {
    margin: 0;
    font-family: var(--gb-heading);
    font-size: clamp(2.1rem, 5.5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--store-text);
}
body.shop-tpl-glow_beauty .gb-hero-lead {
    margin: 18px auto 0;
    max-width: 520px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--gb-muted);
}
body.shop-tpl-glow_beauty .gb-hero-badge {
    display: inline-flex;
    margin-top: 20px;
    padding: 8px 18px;
    border-radius: var(--gb-pill);
    font: 600 12px/1 var(--gb-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--store-primary);
    background: var(--gb-blush);
    border: 1px solid var(--gb-rose-soft);
}

/* ── Toolbar: chips + sort ── */
body.shop-tpl-glow_beauty .gb-shop-bar {
    position: sticky;
    top: calc(var(--gb-safe-top) + var(--gb-bar-top));
    z-index: 180;
    padding: 4px 0 14px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--store-bg) 96%, transparent) 0%,
        color-mix(in srgb, var(--store-bg) 88%, transparent) 70%,
        transparent 100%
    );
}
body.shop-tpl-glow_beauty .gb-shop-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
body.shop-tpl-glow_beauty .gb-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}
body.shop-tpl-glow_beauty .gb-pills::-webkit-scrollbar {
    display: none;
}
body.shop-tpl-glow_beauty .gb-pill {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: var(--gb-pill);
    border: 1px solid var(--gb-border-soft);
    background: var(--store-card-bg);
    color: var(--gb-muted);
    font: 500 13px/1 var(--gb-font);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
body.shop-tpl-glow_beauty .gb-pill:hover {
    border-color: var(--gb-rose-soft);
    color: var(--store-text);
}
body.shop-tpl-glow_beauty .gb-pill.is-active {
    background: var(--store-button, var(--store-primary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--store-primary) 35%, transparent);
}

body.shop-tpl-glow_beauty .gb-toolbar-end {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
body.shop-tpl-glow_beauty .gb-filter-btn {
    display: none;
    padding: 9px 16px;
    border-radius: var(--gb-pill);
    border: 1px solid var(--gb-border-soft);
    background: var(--store-card-bg);
    font: 500 13px/1 var(--gb-font);
    color: var(--store-text);
    cursor: pointer;
}
body.shop-tpl-glow_beauty .gb-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.shop-tpl-glow_beauty .gb-sort-wrap label {
    font: 500 12px/1 var(--gb-font);
    color: var(--gb-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
body.shop-tpl-glow_beauty .gb-sort-wrap select {
    appearance: none;
    padding: 9px 32px 9px 14px;
    border-radius: var(--gb-pill);
    border: 1px solid var(--gb-border-soft);
    background: var(--store-card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23988' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
    font: 500 13px/1 var(--gb-font);
    color: var(--store-text);
    cursor: pointer;
}
body.shop-tpl-glow_beauty .gb-results-meta {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--gb-muted);
}

/* ── Product grid ── */
body.shop-tpl-glow_beauty .gb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
    padding: 8px 0 48px;
}
body.shop-tpl-glow_beauty .gb-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--gb-radius);
    background: var(--store-card-bg);
    border: 1px solid var(--gb-border-soft);
    box-shadow: var(--gb-shadow);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
body.shop-tpl-glow_beauty .gb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gb-shadow-hover);
}
body.shop-tpl-glow_beauty .gb-card.is-hidden {
    display: none;
}

body.shop-tpl-glow_beauty .gb-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--gb-blush);
    overflow: hidden;
}
body.shop-tpl-glow_beauty .gb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
body.shop-tpl-glow_beauty .gb-card:hover .gb-card-media img {
    transform: scale(1.04);
}
body.shop-tpl-glow_beauty .gb-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border: none;
    background: transparent;
    cursor: pointer;
}
body.shop-tpl-glow_beauty .gb-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: var(--gb-pill);
    font: 600 10px/1 var(--gb-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--store-card-bg) 92%, transparent);
    color: var(--store-primary);
    border: 1px solid var(--gb-rose-soft);
    backdrop-filter: blur(8px);
}
body.shop-tpl-glow_beauty .gb-card-badge--sale {
    background: var(--store-button, var(--store-primary));
    color: #fff;
    border-color: transparent;
}
body.shop-tpl-glow_beauty .gb-card-wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--gb-border-soft);
    background: color-mix(in srgb, var(--store-card-bg) 94%, transparent);
    color: var(--store-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}
body.shop-tpl-glow_beauty .gb-card-wish.is-on {
    color: var(--store-primary);
    background: var(--gb-blush);
    border-color: var(--gb-rose-soft);
}
body.shop-tpl-glow_beauty .gb-card-wish:hover {
    transform: scale(1.06);
}

body.shop-tpl-glow_beauty .gb-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
body.shop-tpl-glow_beauty .gb-card-title {
    margin: 0;
    font-family: var(--gb-heading);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.2;
}
body.shop-tpl-glow_beauty .gb-card-title a {
    color: inherit;
    text-decoration: none;
}
body.shop-tpl-glow_beauty .gb-card-title a:hover {
    color: var(--store-primary);
}
body.shop-tpl-glow_beauty .gb-card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--gb-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.shop-tpl-glow_beauty .gb-card-price {
    font: 600 15px/1.3 var(--gb-font);
    color: var(--store-text);
    margin-top: 4px;
}
body.shop-tpl-glow_beauty .gb-card-price old {
    margin-left: 8px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gb-muted);
    text-decoration: line-through;
}
body.shop-tpl-glow_beauty .gb-card-cta {
    margin-top: auto;
    padding-top: 10px;
}
body.shop-tpl-glow_beauty .gb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--gb-btn-radius);
    border: 1px solid transparent;
    font: 600 13px/1 var(--gb-font);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    width: 100%;
}
body.shop-tpl-glow_beauty .gb-btn--primary {
    background: var(--store-button, var(--store-primary));
    color: #fff;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--store-button, var(--store-primary)) 32%, transparent);
}
body.shop-tpl-glow_beauty .gb-btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}
body.shop-tpl-glow_beauty .gb-btn--ghost {
    background: transparent;
    border-color: var(--gb-border-soft);
    color: var(--store-text);
    width: auto;
    min-height: 40px;
    padding: 0 16px;
}

/* ── Empty ── */
body.shop-tpl-glow_beauty .gb-empty {
    text-align: center;
    padding: 64px 24px;
    border-radius: var(--gb-radius);
    background: var(--gb-blush);
    border: 1px dashed var(--gb-border);
}
body.shop-tpl-glow_beauty .gb-empty h2 {
    font-family: var(--gb-heading);
    font-size: 2rem;
    margin: 0 0 12px;
}
body.shop-tpl-glow_beauty .gb-empty p {
    color: var(--gb-muted);
    margin: 0;
}

/* ── Sticky bag CTA ── */
body.shop-tpl-glow_beauty .gb-sticky-bag {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(120%);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(420px, calc(100% - 32px));
    padding: 12px 12px 12px 20px;
    border-radius: var(--gb-pill);
    background: color-mix(in srgb, var(--store-card-bg) 94%, transparent);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gb-border-soft);
    box-shadow: var(--gb-shadow-hover);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}
body.shop-tpl-glow_beauty .gb-sticky-bag.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
body.shop-tpl-glow_beauty .gb-sticky-bag span {
    flex: 1;
    font-size: 14px;
    color: var(--store-text);
}
body.shop-tpl-glow_beauty .gb-sticky-bag a {
    padding: 12px 22px;
    border-radius: var(--gb-btn-radius);
    background: var(--store-button, var(--store-primary));
    color: #fff;
    font: 600 12px/1 var(--gb-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

/* ── Filter sheet (mobile) ── */
body.shop-tpl-glow_beauty .gb-sheet {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
body.shop-tpl-glow_beauty .gb-sheet.is-open {
    pointer-events: auto;
    opacity: 1;
}
body.shop-tpl-glow_beauty .gb-sheet-back {
    position: absolute;
    inset: 0;
    border: none;
    background: color-mix(in srgb, var(--store-text) 35%, transparent);
    cursor: pointer;
}
body.shop-tpl-glow_beauty .gb-sheet-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 78vh;
    padding: 24px 20px max(28px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: var(--store-card-bg);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}
body.shop-tpl-glow_beauty .gb-sheet.is-open .gb-sheet-panel {
    transform: translateY(0);
}
body.shop-tpl-glow_beauty .gb-sheet h3 {
    margin: 0 0 16px;
    font-family: var(--gb-heading);
    font-size: 1.5rem;
}
body.shop-tpl-glow_beauty .gb-sheet-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.shop-tpl-glow_beauty .gb-sheet .gb-pill {
    margin: 0;
}

/* ── Quick view modal ── */
body.shop-tpl-glow_beauty .gb-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
body.shop-tpl-glow_beauty .gb-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
body.shop-tpl-glow_beauty .gb-modal-back {
    position: absolute;
    inset: 0;
    border: none;
    background: color-mix(in srgb, var(--store-text) 40%, transparent);
    cursor: pointer;
}
body.shop-tpl-glow_beauty .gb-modal-panel {
    position: relative;
    width: min(440px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: var(--gb-radius);
    background: var(--store-card-bg);
    box-shadow: var(--gb-shadow-hover);
}
body.shop-tpl-glow_beauty .gb-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gb-border-soft);
    background: var(--store-card-bg);
    cursor: pointer;
}
body.shop-tpl-glow_beauty .gb-modal-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
body.shop-tpl-glow_beauty .gb-modal-body {
    padding: 22px;
}
body.shop-tpl-glow_beauty .gb-modal-body h2 {
    font-family: var(--gb-heading);
    margin: 0 0 8px;
    font-size: 1.5rem;
}
body.shop-tpl-glow_beauty .gb-modal-price {
    font-weight: 600;
    margin-bottom: 12px;
}
body.shop-tpl-glow_beauty .gb-modal-desc {
    font-size: 14px;
    color: var(--gb-muted);
    line-height: 1.6;
}
body.shop-tpl-glow_beauty .gb-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 960px) {
    body.shop-tpl-glow_beauty .gb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }
}
@media (max-width: 720px) {
    body.shop-tpl-glow_beauty {
        --gb-header-h: 118px;
        --gb-bar-top: 124px;
    }
    body.shop-tpl-glow_beauty .gb-shell {
        width: calc(100% - 28px);
    }
    body.shop-tpl-glow_beauty .gb-header {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        border-radius: 22px;
        padding: 12px 14px;
    }
    body.shop-tpl-glow_beauty .gb-header-brand {
        grid-column: 1;
        max-width: none;
    }
    body.shop-tpl-glow_beauty .gb-header-actions {
        grid-column: 2;
        grid-row: 1;
    }
    body.shop-tpl-glow_beauty .gb-header-search {
        grid-column: 1 / -1;
        height: 40px;
    }
    body.shop-tpl-glow_beauty .gb-filter-btn {
        display: inline-flex;
    }
    body.shop-tpl-glow_beauty .gb-pills {
        mask-image: linear-gradient(90deg, #000 85%, transparent);
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    body.shop-tpl-glow_beauty .gb-sort-wrap label {
        display: none;
    }
    body.shop-tpl-glow_beauty .gb-hero {
        padding: 28px 4px 20px;
    }
}
@media (max-width: 480px) {
    body.shop-tpl-glow_beauty .gb-grid {
        gap: 16px 12px;
    }
    body.shop-tpl-glow_beauty .gb-card-body {
        padding: 14px;
    }
    body.shop-tpl-glow_beauty .gb-card:hover {
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.shop-tpl-glow_beauty .gb-card,
    body.shop-tpl-glow_beauty .gb-card-media img,
    body.shop-tpl-glow_beauty .gb-pill,
    body.shop-tpl-glow_beauty .gb-sticky-bag {
        transition: none !important;
    }
}
