/* EventGo Photos — Public Design System */
:root {
    --brand-1: #ff416c;
    --brand-2: #ff4b2b;
    --brand-3: #f97316;
    --brand-gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
    --brand-glow: rgba(255, 75, 43, 0.35);
    --brand-soft: rgba(255, 75, 43, 0.1);
    --brand-soft-border: rgba(255, 75, 43, 0.2);
    --brand-soft-bg: linear-gradient(135deg, rgba(255, 65, 108, 0.1) 0%, rgba(255, 75, 43, 0.16) 100%);
    --brand-focus-ring: rgba(255, 75, 43, 0.12);
    --brand-shadow-hover: rgba(255, 75, 43, 0.45);
    --btn-bg: var(--brand-3);
    --btn-hover: color-mix(in srgb, var(--btn-bg) 82%, #000);
    --btn-glow: color-mix(in srgb, var(--btn-bg) 40%, transparent);
    --hero-overlay: linear-gradient(125deg, rgba(15, 23, 42, 0.72) 0%, rgba(255, 65, 108, 0.35) 45%, rgba(255, 75, 43, 0.5) 100%);
    --hero-title-gradient: linear-gradient(90deg, #fff 0%, #fecdd3 100%);
    --auth-brand-overlay: linear-gradient(145deg, rgba(255, 65, 108, 0.25) 0%, transparent 50%), linear-gradient(225deg, rgba(255, 75, 43, 0.3) 0%, transparent 55%);
    --ink: #0f172a;
    --ink-soft: #1e293b;
    --muted: #64748b;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --nav-h: 4.5rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-full: 999px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-brand: 0 8px 28px var(--brand-glow);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-bg: rgba(15, 23, 42, 0.88);
    --nav-border: rgba(255, 255, 255, 0.06);
    --nav-link-hover-bg: rgba(255, 255, 255, 0.08);
    --nav-btn-bg: rgba(255, 255, 255, 0.06);
    --nav-btn-border: rgba(255, 255, 255, 0.28);
    --nav-btn-hover-bg: rgba(255, 255, 255, 0.12);
    --nav-shadow: 0 4px 24px rgba(15, 23, 42, 0.18);
    --page-shell: 76rem;
    --page-shell-pad: 1.5rem;
}

@media (min-width: 1100px) {
    :root {
        --page-shell: min(110rem, calc(100vw - 2.5rem));
        --page-shell-pad: clamp(2.25rem, 4.5vw, 5rem);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Kanit', system-ui, sans-serif;
    color: var(--ink);
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* —— Navbar —— */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
}

.site-nav__inner {
    max-width: var(--page-shell);
    margin: 0 auto;
    padding: 0 var(--page-shell-pad);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 0;
}

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    flex-shrink: 0;
    min-width: 0;
    max-width: none;
    transition: opacity var(--transition);
}

.site-nav__brand--logo-only {
    max-width: none;
}

.site-nav__brand-text {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.site-nav__brand:hover { opacity: 0.92; }

.site-nav__logo {
    width: min(var(--nav-logo-height, 2rem), 2.1rem);
    height: min(var(--nav-logo-height, 2rem), 2.1rem);
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: var(--shadow-brand);
    overflow: hidden;
    flex-shrink: 0;
}

.site-nav__logo--image {
    width: auto;
    min-width: 0;
    max-width: min(14rem, 46vw);
    height: auto;
    max-height: 2.1rem;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.site-nav__logo img {
    display: block;
    width: auto;
    height: min(var(--nav-logo-height, 2rem), 2.1rem);
    max-height: 2.1rem;
    max-width: min(14rem, 46vw);
    object-fit: contain;
    background: transparent;
}

.team-shop-hero-logo {
    max-height: 4.5rem;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.page-hero--compact {
    padding: 2.5rem 0 1.5rem;
}

.site-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.site-nav__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.site-nav__links a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    transition: color var(--transition), background var(--transition);
}

.site-nav__links a:hover {
    color: #fff;
    background: var(--nav-link-hover-bg);
}

.site-nav__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}

.site-nav__lang {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.site-nav__lang-btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.2;
    text-decoration: none;
}

.site-nav__lang-btn.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.site-nav__lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.site-nav__btn-label--short {
    display: none;
}

.site-nav__history-btn {
    max-width: 100%;
    white-space: nowrap;
}

.site-nav__user {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
    line-height: 1.2;
}

.btn[hidden] {
    display: none !important;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-login {
    background: var(--nav-btn-bg);
    color: #fff;
    border: 1.5px solid var(--nav-btn-border);
}

.btn-login:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: var(--nav-btn-hover-bg);
}

.btn-primary {
    background: var(--btn-bg);
    color: #fff;
    border: 1.5px solid var(--btn-bg);
    box-shadow: 0 8px 28px var(--btn-glow);
}

.btn-primary:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
    box-shadow: 0 12px 32px var(--btn-glow);
}

.btn-shop-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface-2);
    color: var(--ink);
    border: 1.5px solid #94a3b8;
    font-weight: 600;
}

.btn-shop-outline:hover {
    border-color: var(--btn-bg);
    color: var(--btn-bg);
    background: color-mix(in srgb, var(--btn-bg) 8%, #fff);
}

.site-main { flex: 1; }

/* —— Hero —— */
.hero {
    position: relative;
    min-height: var(--home-hero-height, clamp(24rem, 55vw, 34rem));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg--fallback {
    background:
        var(--hero-overlay),
        url('https://images.unsplash.com/photo-1452626212852-811d58933cae?auto=format&fit=crop&w=1400&q=60') center / cover no-repeat;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-position: center var(--hero-y, 50%);
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.hero__slide.is-active {
    opacity: 1;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 50%, transparent 0%, rgba(15, 23, 42, 0.55) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--page-shell);
    margin: 0 auto;
    padding: 4rem var(--page-shell-pad);
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.125rem;
    max-width: 22ch;
    letter-spacing: -0.02em;
}

.hero__title span {
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__title span.hero__title-line {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    font-weight: 700;
}

.hero__title .hero__emph {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #fff;
    color: #fff;
    font-size: 1.32em;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 0 32px rgba(14, 165, 233, 0.6), 0 2px 8px rgba(0, 0, 0, 0.35);
    display: inline;
    padding: 0 0.04em;
}

/* Extreme: คำคมซ้าย (เยื้องบรรทัด) + ค้นหารูปทางขวา */
.hero--quote {
    min-height: var(--home-hero-height, clamp(26rem, 58vw, 36rem));
}

.hero--quote .hero__bg {
    /* ตัดขอบบนภาพแบนเนอร์ออกอีก — โชว์ช่วงกลาง–ล่าง */
    background-position: center 78%;
}

.hero--quote .hero__bg::after {
    /* ขอบล่างเข้มขึ้นเพื่อเน้นข้อความคำคม */
    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.88) 0%,
            rgba(15, 23, 42, 0.45) 38%,
            rgba(15, 23, 42, 0.12) 68%,
            transparent 100%
        ),
        radial-gradient(ellipse 80% 60% at 20% 45%, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero__inner--quote {
    --quote-line-size: clamp(1.8rem, 3.6vw, 2.55rem);
    --quote-line-height: 1.28;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 1fr);
    column-gap: clamp(1.75rem, 5vw, 5.5rem);
    align-items: start;
}

.hero__quote {
    max-width: none;
    min-width: 0;
}

.hero--quote .hero__badge {
    margin-bottom: 0.55rem;
}

.hero__title--quote {
    max-width: none;
    margin: 0;
    font-size: var(--quote-line-size);
    line-height: var(--quote-line-height);
    font-weight: 600;
}

.hero__title--quote br {
    display: none;
}

.hero__title--quote .hero__title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    background: none;
    -webkit-text-fill-color: #fff;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    white-space: nowrap;
}

.hero__title--quote .hero__emph {
    font-size: 1.16em;
}

.hero__title--quote .hero__title-line--1 {
    margin-left: 0;
}

.hero__title--quote .hero__title-line--2 {
    margin-left: 1.15rem;
    opacity: 0.95;
}

.hero__title--quote .hero__title-line--3 {
    margin-left: 2.15rem;
    font-style: italic;
    opacity: 0.9;
}

.hero__aside {
    text-align: right;
    justify-self: end;
    max-width: none;
    min-width: 0;
    /* badge + บรรทัดแรก → หัวข้อขวาตรงบรรทัดกลาง */
    padding-top: calc(2.15rem + 0.55rem + (var(--quote-line-size) * var(--quote-line-height)));
    padding-bottom: 0.25rem;
}

.hero__aside-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__aside .hero__lead {
    margin-left: auto;
    margin-right: 0;
    max-width: 40rem;
    font-size: 0.95rem;
    opacity: 0.9;
    text-align: right;
}

.hero__lead-keep {
    white-space: nowrap;
}

.hero__aside .hero__actions {
    justify-content: flex-end;
}

@media (min-width: 1100px) {
    .hero--quote .hero__actions {
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .hero__slide {
        background-position: var(--hero-x-m, 50%) var(--hero-y-m, var(--hero-y, 50%));
    }

    .hero__inner--quote {
        --quote-line-size: clamp(1.5rem, 5.4vw, 1.9rem);
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }

    .hero__aside {
        text-align: left;
        justify-self: start;
        max-width: none;
        padding-top: 0;
    }

    .hero__aside .hero__lead,
    .hero__aside .hero__actions {
        margin-left: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .hero__lead-keep {
        white-space: normal;
    }

    .hero__title--quote {
        font-size: clamp(1.5rem, 5.4vw, 1.9rem);
        line-height: 1.3;
    }

    .hero__title--quote .hero__title-line {
        white-space: nowrap;
    }

    .hero__title--quote .hero__title-line--2 {
        margin-left: 0.7rem;
    }

    .hero__title--quote .hero__title-line--3 {
        margin-left: 1.25rem;
    }
}

.hero__lead {
    font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
    font-weight: 300;
    opacity: 0.94;
    max-width: 38rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.16); }

/* —— Sections —— */
.section {
    max-width: var(--page-shell);
    margin: 0 auto;
    padding: 4rem var(--page-shell-pad);
}

.section__head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-2);
    margin-bottom: 0.625rem;
}

.section__title {
    font-size: clamp(1.625rem, 3.5vw, 2.125rem);
    font-weight: 700;
    margin: 0 0 0.625rem;
    letter-spacing: -0.02em;
}

.section__sub {
    color: var(--muted);
    font-weight: 300;
    font-size: 1.0625rem;
    margin: 0;
    max-width: 32rem;
    margin-inline: auto;
    line-height: 1.6;
}

/* —— Steps —— */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.625rem;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--brand-soft-border);
}

.step__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--brand-soft-bg);
    color: var(--brand-2);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin: 0 auto 1.125rem;
}

.step__title { font-weight: 600; margin: 0 0 0.5rem; font-size: 1.0625rem; }
.step__text { color: var(--muted); font-size: 0.9375rem; font-weight: 300; line-height: 1.6; margin: 0; }

.home-ways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 0 0.5rem;
}

.home-way {
    display: grid;
    gap: 0.4rem;
    padding: 1.25rem 1.1rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.home-way:hover {
    border-color: var(--brand-soft-border);
    box-shadow: var(--shadow-md);
}

.home-way--order {
    border-color: #6ee7b7;
    background: #ecfdf5;
}

.home-way__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.35rem;
    border-radius: var(--radius-md);
    background: var(--brand-soft-bg);
    color: var(--brand-2);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.home-way--order .home-way__icon {
    background: #d1fae5;
    color: #047857;
}

.home-way__title {
    font-weight: 700;
    font-size: 1.02rem;
}

.home-way__text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}


.steps--4 {
    grid-template-columns: repeat(4, 1fr);
}

.home-lookup {
    margin-top: 2.25rem;
    padding: 1.75rem 1.5rem 1.6rem;
    border-radius: var(--radius-lg);
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.home-lookup__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.home-lookup__icon {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: #d1fae5;
    color: #047857;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.home-lookup__title {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.home-lookup__lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.home-lookup__tips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
}

.home-lookup__tips li {
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 1rem 1.05rem 1.1rem;
}

.home-lookup__tips strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #065f46;
    font-size: 0.95rem;
}

.home-lookup__tips span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-lookup__cta {
    display: inline-flex;
}

.shop-lookup-page {
    max-width: 32rem;
}

.shop-lookup-layout {
    display: grid;
    gap: 1.75rem;
}

.shop-lookup-card {
    padding: 1.25rem 1.2rem 1.4rem;
}

.shop-lookup-card .shop-lookup-sample__kicker {
    margin-bottom: 0.75rem;
}

.shop-lookup-form .btn {
    margin-top: 0.85rem;
}

.shop-lookup__hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.shop-lookup-sample {
    padding-top: 0.25rem;
}

.shop-lookup-sample__kicker {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-2);
}

.shop-lookup-slip {
    margin: 0;
    padding: 1.15rem 1rem 1.05rem;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    box-shadow: var(--shadow-md);
}

.shop-lookup-slip__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.shop-lookup-slip__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
}

.shop-lookup-slip__brand {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.shop-lookup-slip__title {
    margin: 0 0 0.15rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shop-lookup-slip__event {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.shop-lookup-slip__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.65rem;
    background: var(--surface);
    border-radius: 0.7rem;
    font-size: 0.9rem;
}

.shop-lookup-slip__order {
    position: relative;
    padding: 0.95rem 0.8rem 0.75rem;
    margin: 0.85rem 0 0.85rem;
    background: #fff7ed;
    border: 2px solid #f97316;
    border-radius: 0.9rem;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.shop-lookup-slip__pin {
    position: absolute;
    top: -0.7rem;
    left: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #ea580c;
    color: #fff;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.shop-lookup-slip__order-label {
    display: block;
    color: #9a3412;
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-lookup-slip__number {
    display: block;
    margin-top: 0.15rem;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.shop-lookup-slip__qr {
    width: 6.5rem;
    height: 6.5rem;
    margin: 0 auto 0.65rem;
    border: 3px solid transparent;
    border-radius: 0.85rem;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--brand-1), var(--brand-3)) border-box;
    display: grid;
    place-items: center;
}

.shop-lookup-slip__qr span {
    width: 4.4rem;
    height: 4.4rem;
    background:
        repeating-conic-gradient(#0f172a 0% 25%, #fff 0% 50%) 0 0 / 0.7rem 0.7rem;
    border-radius: 0.2rem;
    opacity: 0.85;
}

.shop-lookup-slip__ref {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.shop-lookup-sample__help,
.shop-lookup-sample__sources {
    margin: 0.7rem 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.shop-lookup-sample__sources {
    color: var(--muted);
    font-size: 0.82rem;
}

/* —— Events —— */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.events-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 28rem;
    margin: 0 auto 1.25rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.events-search i {
    color: var(--muted, #94a3b8);
}

.events-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink, #0f172a);
}

.events-search__empty {
    text-align: center;
    color: var(--muted, #64748b);
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.event-card__badge--open {
    background: #16a34a;
    color: #fff;
}

.events-section {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 1.85rem;
}

.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px var(--brand-glow);
    border-color: var(--brand-soft-border);
}

.event-card__cover {
    height: var(--home-banner-height, 10rem);
    display: flex;
    align-items: flex-end;
    padding: 1.125rem;
    position: relative;
}

.events-grid .event-card__cover {
    height: calc(var(--home-banner-height, 10rem) + 1.75rem);
}

.event-card__cover--coral { background: linear-gradient(160deg, #ff416c, #ff4b2b 50%, #f97316); }
.event-card__cover--forest { background: linear-gradient(160deg, #059669, #10b981 50%, #34d399); }
.event-card__cover--ocean { background: linear-gradient(160deg, #0284c7, #0ea5e9 50%, #38bdf8); }
.event-card__cover--default { background: var(--brand-gradient); }

.event-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ตัดขอบบนแบนเนอร์ออกมากขึ้น — โฟกัสช่วงกลาง–ล่าง */
    object-position: center 82%;
}

/* ขอบล่างเฟดเข้าเนื้อการ์ด — เน้นข้อความชื่องานด้านล่าง */
.event-card__cover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.55) 28%,
        rgba(255, 255, 255, 0.12) 62%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.event-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: #16a34a;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-card__badge--browse {
    background: var(--brand-2);
}

.events-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.events-empty i {
    font-size: 2.5rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.events-empty p {
    margin: 0 0 0.35rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.event-card__sport {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-card__body { padding: 1.5rem 1.55rem 1.35rem; flex: 1; display: flex; flex-direction: column; }

.event-card__name {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0 0 0.625rem;
    line-height: 1.35;
}

.event-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 0;
    flex: 1;
}

.event-card__meta i { width: 1.125rem; color: var(--brand-2); }

.event-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.event-card__date {
    min-width: 0;
}

.event-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--brand-2);
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    transition: gap var(--transition);
}

.event-card:hover .event-card__cta { gap: 0.7rem; }

.sample-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 300;
    padding: 1rem 1.5rem;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    max-width: 36rem;
    margin-inline: auto;
}

/* —— Auth page —— */
.auth-page {
    min-height: calc(100vh - var(--nav-h));
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
}

.auth-page__brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--ink);
    overflow: hidden;
}

.auth-page__brand-bg {
    position: absolute;
    inset: 0;
    background:
        var(--auth-brand-overlay),
        url('https://images.unsplash.com/photo-1452626212852-811d58933cae?auto=format&fit=crop&w=1200&q=80') center / cover;
    opacity: 0.85;
}

.auth-page__brand-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 22rem;
    text-align: center;
}

.auth-page__brand-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0 0.75rem;
    line-height: 1.25;
}

.auth-page__brand-content p {
    font-size: 0.9375rem;
    opacity: 0.85;
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

.auth-page__brand-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1.125rem;
    background: var(--brand-gradient);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin: 0 auto;
    box-shadow: var(--shadow-brand);
}

.auth-page__form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
}

.auth-card__head { margin-bottom: 2rem; }

.auth-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-2);
    margin-bottom: 0.5rem;
}

.auth-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.auth-card__sub {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.55;
}

.auth-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.auth-form__footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.auth-form__footer a {
    color: var(--brand-2);
    font-weight: 500;
}

.auth-form__footer a:hover { text-decoration: underline; }

/* —— Form primitives (shared) —— */
.field { margin-bottom: 1.125rem; }

.field label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    color: var(--ink-soft);
}

.field input:not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
    width: 100%;
    padding: 0.6875rem 0.9375rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    background: var(--white);
    color: var(--ink);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px var(--brand-focus-ring);
}

.field input:disabled {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
}

.field-error {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

.field-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.field-check input { width: auto; accent-color: var(--brand-2); }

/* —— Footer —— */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    margin-top: auto;
}

.site-footer__inner {
    max-width: var(--page-shell);
    margin: 0 auto;
    padding: 3rem var(--page-shell-pad) 1.75rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.25rem;
}

.site-footer__brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 0.625rem;
}

.site-footer__desc { font-size: 0.875rem; line-height: 1.65; max-width: 22rem; }

.site-footer__title {
    font-weight: 600;
    color: #fff;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 0.5rem; }
.site-footer__links a { font-size: 0.875rem; transition: color var(--transition); }
.site-footer__links a:hover { color: #fff; }

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.375rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.site-footer__bottom a { color: rgba(255, 255, 255, 0.5); }
.site-footer__bottom a:hover { color: #fff; }

@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-page__brand { min-height: 14rem; padding: 2rem; }
    .auth-page__brand-content h2 { font-size: 1.375rem; }
}

@media (max-width: 1100px) {
    .steps--4,
    .home-lookup__tips { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .steps,
    .steps--4,
    .home-ways,
    .home-lookup__tips { grid-template-columns: 1fr; }
    .home-lookup { padding: 1.35rem 1.1rem 1.25rem; }
    .site-nav {
        position: sticky;
        overflow: visible;
    }
    .site-nav__toggle { display: inline-flex; }
    .site-nav__links {
        display: none;
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 12050;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.45rem;
        border-radius: 0.85rem;
        background: #0f172a;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
    }
    .site-nav.is-open .site-nav__links {
        display: flex;
    }
    .site-nav__links a {
        display: block;
        padding: 0.7rem 0.85rem;
        color: #fff;
    }
    .site-nav__user { display: none; }
    .site-nav__inner {
        position: relative;
        gap: 0.5rem;
        padding: 0 0.75rem;
    }
    .site-nav__brand {
        gap: 0.45rem;
        font-size: 0.95rem;
        max-width: none;
    }
    .site-nav__brand--logo-only {
        max-width: none;
    }
    .site-nav__logo {
        width: min(var(--nav-logo-height, 2rem), 1.85rem);
        height: min(var(--nav-logo-height, 2rem), 1.85rem);
        font-size: 0.9rem;
    }
    .site-nav__logo--image {
        width: auto;
        height: auto;
        max-height: 1.85rem;
        max-width: min(10rem, 42vw);
    }
    .site-nav__logo img {
        height: min(var(--nav-logo-height, 2rem), 1.85rem);
        max-height: 1.85rem;
        max-width: min(10rem, 42vw);
    }
    .site-nav__actions {
        gap: 0.35rem;
    }
    .site-nav__actions .btn-login {
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    .site-nav__btn-label--full {
        display: none;
    }
    .site-nav__btn-label--short {
        display: inline;
    }
    .site-nav__lang-btn {
        padding: 0.25rem 0.45rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* —— Layout helpers —— */
.container {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow { max-width: 52rem; }

.text-muted { color: var(--muted); }

/* —— Event cover + search —— */
.event-cover__media {
    position: relative;
    min-height: clamp(14rem, 38vw, 22rem);
    background-size: cover;
    background-position: center;
}

.event-cover__media--fallback {
    background: var(--brand-gradient);
}

.event-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.event-cover__content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem 2rem;
    color: #fff;
}

.event-cover__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.event-cover__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    max-width: 48rem;
}

.event-cover__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    opacity: 0.92;
}

.section--search {
    padding-top: 1.75rem;
    padding-bottom: 0.5rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.event-search {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.event-search__tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.event-search__tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.event-search__tab--active {
    background: var(--white);
    color: var(--btn-bg);
    box-shadow: inset 0 -2px 0 var(--btn-bg);
}

.event-search__panel {
    display: none;
    padding: 1.5rem;
}

.event-search__panel--active {
    display: block;
}

.event-search__hint {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.event-search__dropzone {
    display: block;
    cursor: pointer;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    transition: border-color var(--transition), background var(--transition);
    overflow: hidden;
}

.event-search__dropzone--hover,
.event-search__dropzone:hover {
    border-color: var(--brand-2);
    background: #fff7f5;
}

.event-search__dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
}

.event-search__dropzone-inner i {
    font-size: 2rem;
    color: var(--brand-2);
}

.event-search__dropzone-inner small {
    font-size: 0.75rem;
    opacity: 0.85;
}

.event-search__preview {
    display: block;
    width: 100%;
    max-height: 14rem;
    object-fit: contain;
    background: #0f172a;
}

.event-search__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.event-search--face-only .event-search__tabs {
    display: none;
}

.event-search--face-only .event-search__panel--face {
    border-top: none;
}

.event-search__face-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-search__face-form--centered {
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.event-search__face-drop {
    width: 100%;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.event-search__face-upload {
    margin: 0;
    cursor: pointer;
}

.event-search__face-upload--hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 12rem;
    padding: 2.25rem 1.5rem;
    background: var(--surface-2);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--muted);
    transition: border-color var(--transition), background var(--transition);
}

.event-search__face-upload-icon {
    font-size: 2.25rem;
    color: var(--brand-2);
}

.event-search__face-upload-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
}

.event-search__face-upload-hint {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted);
}

.event-search__face-upload--hover,
.event-search__face-upload--hero:hover {
    border-color: var(--brand-2);
    background: #fff7f5;
}

.event-search__face-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.event-search__face-search {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.event-search__face-clear {
    margin-left: 0;
}

.event-search__face-file {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

.event-search__face-file--ready {
    color: var(--ink-soft);
    font-weight: 500;
}

.event-search__bib-row {
    display: flex;
    gap: 0.5rem;
}

.event-search__bib-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.event-search__bib-row input:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px var(--brand-focus-ring);
}

.event-search__status {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.event-search__status--loading { color: var(--muted); }
.event-search__status--ok { color: #166534; }
.event-search__status--warn { color: #c2410c; }
.event-search__status--error { color: #b91c1c; }

.event-search__face-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.event-search__face-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.event-search__mode {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.event-search__mode-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.event-search__mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.event-search__mode-option span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.event-search__mode-option input:checked + span {
    background: var(--btn-bg);
    color: #fff;
    box-shadow: 0 4px 14px var(--btn-glow);
}

.shop-index-status {
    margin-bottom: 1rem;
}

.shop-index-status__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.shop-index-status[data-state="indexing"] .shop-index-status__card {
    border-color: rgba(234, 88, 12, 0.25);
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.shop-index-status[data-state="partial"] .shop-index-status__card {
    border-color: color-mix(in srgb, var(--btn-bg) 28%, transparent);
}

.shop-index-status__ring-wrap {
    --pct: 0;
    flex: 0 0 auto;
}

.shop-index-status__ring {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: conic-gradient(var(--btn-bg) calc(var(--pct) * 1%), #e2e8f0 0);
    display: grid;
    place-items: center;
}

.shop-index-status__ring::before {
    content: '';
    position: absolute;
    inset: 0.35rem;
    border-radius: 50%;
    background: #fff;
}

.shop-index-status__ring-value {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.shop-index-status__body {
    flex: 1;
    min-width: 0;
}

.shop-index-status__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
}

.shop-index-status__message {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    color: #64748b;
}

.shop-index-status__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
}

.shop-index-status__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #475569;
}

.shop-index-status__stat strong {
    color: #0f172a;
    font-weight: 800;
}

.shop-index-status__stat--pending strong {
    color: #c2410c;
}

.shop-photo__sim {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.shop-photo__media {
    position: relative;
}

.btn--sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
}

/* —— Event shop —— */
.page-hero--event {
    padding: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.event-hero__banner {
    height: 12rem;
    background-size: cover;
    background-position: center;
}

.event-hero__body {
    padding: 1.75rem 1.5rem 2rem;
    max-width: 76rem;
    margin: 0 auto;
}

.event-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-2);
}

.event-hero__body h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.event-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.section--pricing {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.retail-pricing__heading {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.retail-pricing__sub {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.retail-pricing__grid {
    display: grid;
    gap: 1rem;
}

.retail-pricing__grid--photos {
    grid-template-columns: repeat(3, 1fr);
}

.price-tier {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.price-tier--featured {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 1px var(--brand-focus-ring), var(--shadow-md);
    position: relative;
}

.price-tier--featured::before {
    content: 'ยอดนิยม';
    position: absolute;
    top: -0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
}

.price-tier__label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.price-tier__price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.price-tier__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.retail-pricing__package--combo {
    border-color: var(--brand-2);
    background: rgba(99, 102, 241, 0.06);
}

.retail-pricing__video,
.retail-pricing__package {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--surface-2);
    border-radius: var(--radius-md);
}

.retail-pricing__was {
    margin-left: 0.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.retail-pricing__scheduled,
.retail-pricing__pending {
    text-align: center;
    padding: 1.25rem 1.5rem;
    background: #fff7ed;
    color: #c2410c;
    border-radius: var(--radius-lg);
    font-weight: 500;
}

.retail-pricing__free {
    text-align: center;
    padding: 1.5rem;
    background: #ecfdf5;
    color: #047857;
    border-radius: var(--radius-lg);
    font-weight: 500;
}

.event-card__prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0;
}

.event-card__price-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    color: var(--ink-soft);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem;
}

.gallery-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-card__media {
    aspect-ratio: 3 / 4;
    background: var(--surface-2);
}

.gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 2rem;
}

.photo-buy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 0.5rem;
}

.photo-buy__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.45rem 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: inherit;
    cursor: not-allowed;
    opacity: 0.85;
}

.photo-buy__size {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.2;
}

.photo-buy__price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink);
}

.gallery-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.face-search-cta {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.face-search-cta h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.face-search-cta p {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .retail-pricing__grid--photos,
    .photo-buy {
        grid-template-columns: 1fr;
    }

    .price-tier--featured::before {
        display: none;
    }

    .event-search__tabs {
        flex-direction: column;
    }

    .event-search__bib-row {
        flex-direction: column;
    }

    .event-cover__content {
        padding: 2rem 1rem 1.5rem;
    }
}

/* —— Event shop (public gallery) —— */
.shop-hero {
    background: var(--ink);
}

.shop-hero--cover .shop-hero__banner {
    position: relative;
    min-height: clamp(14rem, 42vw, 24rem);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.shop-hero__banner {
    position: relative;
    min-height: clamp(10rem, 28vw, 16rem);
    background-size: cover;
    background-position: center;
}

.shop-hero__banner--fallback {
    background: linear-gradient(135deg, #0f172a 0%, #334155 55%, #1e293b 100%);
}

.shop-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.shop-hero--cover .shop-hero__body {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1.5rem 0 1.75rem;
}

.shop-hero--cover .shop-hero__eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.shop-hero--cover .shop-hero__title {
    color: #fff;
    text-shadow: 0 2px 18px rgba(15, 23, 42, 0.35);
}

.shop-hero--cover .shop-hero__pill {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.shop-hero__body {
    padding: 1.25rem 1.5rem 1rem;
}

.shop-hero__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.shop-hero__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    max-width: 42rem;
}

.shop-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.shop-search-section--sticky {
    position: sticky;
    top: var(--nav-h);
    z-index: 80;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px) saturate(1.15);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Bottom nav — under banner at rest; pins to viewport bottom while scrolling */
.shop-page-root--slots {
    --shop-slot-bar-h: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    --shop-dock-blue: #0ea5e9;
    --shop-dock-blue-deep: #0284c7;
}

.shop-page-root--slots.shop-page-root--dock-pinned {
    padding-bottom: var(--shop-slot-bar-h);
}

/* Face/bib results: dock leaves the banner so "ผลการค้นหา" sits against the cover. */
.shop-page-root--has-results .shop-slot-anchor,
body.shop-has-search-results .shop-slot-anchor {
    height: 0 !important;
    min-height: 0;
}

.shop-page-root--has-results .shop-slot-shell,
body.shop-has-search-results .shop-slot-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}

.shop-page-root--has-results .shop-page,
body.shop-has-search-results .shop-page {
    padding-top: 0.65rem;
}

.shop-page-root--has-results .shop-main__head {
    margin-bottom: 0.65rem;
}

/* Search results replace the HL wall — HL is only for counting camera angles. */
.shop-page-root--has-results #shop-highlights,
body.shop-has-search-results #shop-highlights {
    display: none !important;
}

@media (max-width: 767.98px) {
    /* Page must scroll after search. Inner overflow lock + button tiles
       made iOS treat swipes as button presses, so photos could not be browsed. */
    .shop-page-root--slots {
        padding-bottom: 0;
    }

    .shop-page-root--slots.shop-page-root--dock-pinned {
        padding-bottom: calc(var(--shop-slot-bar-h, 4.85rem) + env(safe-area-inset-bottom, 0px));
    }

    .shop-page-root--slots .shop-hero--cover .shop-hero__banner {
        min-height: 4.6rem;
    }

    .shop-page-root--slots .shop-hero--cover .shop-hero__body {
        padding: 0.45rem 0 0.55rem;
    }

    .shop-page-root--slots .shop-hero__title {
        font-size: 1.05rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .shop-page-root--slots .shop-hero__eyebrow,
    .shop-page-root--slots .shop-hero__meta {
        display: none;
    }

    .shop-page-root--slots .shop-slot-anchor {
        height: auto !important;
        min-height: 0;
    }

    .shop-page-root--slots .shop-slot-shell {
        position: relative !important;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        z-index: 400;
        pointer-events: auto;
    }

    .shop-page-root--slots .shop-slot-shell.is-pinned {
        position: fixed !important;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        z-index: 4000;
        pointer-events: auto;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .shop-page-root--slots .shop-page,
    .shop-page-root--slots .shop-main,
    .shop-page-root--slots #event-gallery {
        overflow: visible;
        height: auto;
        max-height: none;
        min-height: 0;
        touch-action: auto;
    }

    .shop-page-root--slots .shop-main {
        padding-bottom: 0.75rem;
    }

    .shop-page-root--slots .shop-toolbar {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .shop-page-root--slots .shop-steps-section {
        display: none;
    }

    .shop-page-root--slots .shop-page {
        padding-top: 0.35rem;
    }

    .shop-page-root--slots .shop-highlights {
        display: block;
        margin-bottom: 0.5rem;
        padding-bottom: 0.35rem;
        border-bottom: none;
    }

    .shop-page-root--slots .shop-highlights[hidden],
    .shop-page-root--slots.shop-page-root--has-results .shop-highlights,
    .shop-page-root--slots.shop-page-root--search-open .shop-highlights {
        display: none !important;
    }

    .shop-page-root--slots .shop-highlights .shop-main__head {
        margin-bottom: 0.35rem;
    }

    .shop-page-root--slots .shop-highlights .shop-main__sub {
        display: none;
    }
}

@media (min-width: 1024px) {
    body.shop-slot-open {
        overflow: hidden !important;
    }
}

body.shop-slot-open .site-footer,
body.shop-slot-open .site-nav {
    display: none !important;
}

@media (max-width: 1023.98px) {
    body:has(.shop-page-root--slots) .site-footer {
        display: none !important;
    }

    .shop-page-root--slots .shop-slot-shell {
        position: relative !important;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        z-index: 400;
        pointer-events: auto;
    }

    .shop-page-root--slots .shop-slot-shell.is-pinned {
        position: fixed !important;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        z-index: 4000;
        pointer-events: auto;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    html.shop-vv-pin body.shop-slot-open .shop-page-root--slots .shop-slot-shell,
    html.shop-vv-pin body.shop-slot-open .shop-page-root--slots .shop-slot-shell.is-pinned {
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        z-index: 4000;
        background: transparent !important;
        justify-content: flex-end;
        overflow: visible !important;
    }

    body.shop-slot-open .shop-page-root--slots .shop-slot-sheet--search:not([hidden]) {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-top: 0.65rem;
    }

    body.shop-slot-open .shop-page-root--slots .shop-slot-sheet--cart:not([hidden]) {
        display: flex;
        flex-direction: column;
        flex: 0 1 auto;
        width: 100%;
        max-width: none;
        max-height: calc(var(--shop-vv-h, 100dvh) - var(--shop-slot-bar-h, 4.85rem) - 0.35rem);
        min-height: 0;
        overflow: hidden;
        padding-top: 0.65rem;
    }

    body.shop-slot-open .shop-page-root--slots .event-search,
    body.shop-slot-open .shop-page-root--slots .event-search--compact {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        min-height: 0 !important;
    }

    body.shop-slot-open .shop-page-root--slots .shop-slot-sheet__card:not(.shop-slot-sheet__card--cart) {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
        margin: 0;
        border-radius: 1rem;
        overflow: visible;
    }

    body.shop-slot-open .shop-page-root--slots .shop-slot-sheet__card--cart {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        min-height: 0;
        max-height: 100%;
        margin: 0;
        border-radius: 1rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.shop-slot-open .event-search__pickers {
        display: grid;
        visibility: visible;
    }

    body.shop-slot-open .event-search__camera {
        z-index: 2147483000;
    }
}

.shop-purchase--cart.shop-purchase--empty .shop-purchase__options {
    display: none;
}

.shop-page-status {
    padding-top: 0.85rem;
    padding-bottom: 0.25rem;
}

.shop-sales-closed {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e2e8f0;
    color: #334155;
}

.shop-sales-closed i {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 1.15rem;
}

.shop-sales-closed strong {
    display: block;
    font-size: 0.98rem;
    color: #0f172a;
}

.shop-sales-closed p {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b;
}

.shop-sales-closed--upcoming {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border-color: #bae6fd;
}

.shop-sales-closed--upcoming i {
    color: #0284c7;
}

.event-search--closed {
    padding: 0.35rem 0 0.15rem;
}

.event-search__closed {
    text-align: center;
    padding: 1rem 0.75rem 0.35rem;
}

.event-search__closed-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.event-search__closed--upcoming .event-search__closed-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.event-search__closed-title {
    display: block;
    font-size: 1rem;
    color: #0f172a;
}

.event-search__closed-text {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #475569;
}

.event-search__closed-hint {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.shop-slot-anchor {
    position: relative;
    z-index: 120;
    width: 100%;
}

.shop-slot-shell {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 120;
    width: 100%;
    max-width: none;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    pointer-events: none;
    overflow: visible;
}

.shop-slot-shell[data-active="cart"],
.shop-slot-shell[data-active="search"] {
    pointer-events: auto;
}

.shop-slot-shell.is-pinned {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Desktop: keep Search/Cart dock on the viewport bottom. Mobile already
   full-screens the shell; without this the dock unpins under the banner. */
@media (min-width: 1024px) {
    body.shop-slot-open .shop-page-root--slots .shop-slot-shell {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4000;
        pointer-events: auto;
    }
}

.shop-slot-backdrop {
    display: none;
}

.shop-slot-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: var(--shop-slot-bar-h, 4.85rem);
    z-index: 110;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.32);
    cursor: pointer;
}

.shop-slot-sheet {
    pointer-events: none;
    width: min(32rem, 100%);
    margin: 0 auto;
    padding: 0 0.75rem 0.5rem;
    overflow: visible;
}

.shop-slot-sheet:not([hidden]) {
    pointer-events: auto;
}

.shop-slot-sheet--cart:not([hidden]) {
    display: flex;
    flex-direction: column;
    max-height: calc(var(--shop-vv-h, 100dvh) - var(--shop-slot-bar-h, 4.85rem) - 0.5rem);
    overflow: hidden;
    pointer-events: auto;
}

.shop-slot-sheet__card {
    background: #e0f2fe;
    border: 1px solid #38bdf8;
    border-radius: 1rem;
    box-shadow:
        0 18px 40px rgba(14, 165, 233, 0.28),
        0 2px 6px rgba(3, 105, 161, 0.12);
    padding: 0.75rem 0.85rem 0.85rem;
}

.shop-slot-sheet__card--cart {
    padding: 0.7rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(125, 211, 252, 0.55), transparent 55%),
        linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
}

.shop-cart-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.15rem;
    pointer-events: auto;
}

.shop-cart-menu .shop-purchase__option,
.shop-cart-menu .shop-purchase__option-main,
.shop-cart-menu .shop-pricing__tier {
    pointer-events: auto;
    touch-action: manipulation;
}

.shop-slot-sheet--cart .shop-cart-bar--slot {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
    isolation: isolate;
}

.shop-cart-menu__head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    margin-bottom: 0.55rem;
}

.shop-cart-menu__eyebrow {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #059669;
}

.shop-cart-menu__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.15;
}

.shop-cart-menu .shop-purchase {
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    overflow: visible;
}

.shop-cart-menu .shop-purchase--cart {
    padding: 0;
}

.shop-cart-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 55%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.08);
}

.shop-cart-summary--free {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: none;
}

.shop-cart-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shop-cart-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: #475569;
}

.shop-cart-summary__row strong {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.shop-cart-summary__row--fee {
    color: #b45309;
}

.shop-cart-summary__row--fee strong {
    color: #b45309;
}

.shop-cart-summary__row--grand {
    margin-top: 0.25rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
    font-size: 1rem;
    color: #047857;
}

.shop-cart-summary__row--grand strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #047857;
}

.shop-cart-summary__actions {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 0.55rem;
}

.shop-cart-summary__actions .btn {
    min-height: 2.75rem;
    border-radius: 0.85rem;
    font-weight: 700;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.shop-cart-summary__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: #475569;
}

.shop-purchase__options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shop-purchase__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.4rem 0.55rem;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.95rem;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.shop-purchase__option:hover {
    border-color: #94a3b8;
}

.shop-purchase__option--active {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px #059669;
}

.shop-purchase__option--retail {
    flex-wrap: wrap;
    cursor: default;
}

.shop-purchase__option-main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.shop-purchase__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    color: #cbd5e1;
    font-size: 1rem;
    flex: 0 0 auto;
}

.shop-purchase__option--active > .shop-purchase__check,
.shop-purchase__option--active .shop-purchase__option-main .shop-purchase__check {
    color: #059669;
}

.shop-purchase__option-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.shop-purchase__option-label {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.shop-purchase__qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.shop-purchase__option--active .shop-purchase__qty {
    background: #047857;
}

.shop-purchase__option-price {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #047857;
    white-space: nowrap;
}

.shop-cart-bar__breakdown {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 600;
}

.shop-purchase__badge {
    position: static;
    top: auto;
    left: auto;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.shop-purchase__hint {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #64748b;
    text-align: center;
}

.shop-purchase__group-label {
    margin: 0.35rem 0 0.1rem;
    padding: 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.shop-purchase__option--package {
    border-color: color-mix(in srgb, var(--btn-bg) 28%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--btn-bg) 8%, #fff) 0%, #f8fafc 100%);
}

.shop-purchase__option--package.shop-purchase__option--active {
    border-color: var(--btn-bg);
    background: color-mix(in srgb, var(--btn-bg) 12%, #fff);
    box-shadow: 0 0 0 1px var(--btn-bg);
}

.shop-purchase__option--package.shop-purchase__option--active > .shop-purchase__check {
    color: var(--btn-bg);
}

.shop-purchase__option--retail .shop-pricing__tiers--inline {
    width: 100%;
    justify-content: flex-start;
    padding-left: 1.6rem;
}

.shop-cart-menu .shop-pricing__tier--inline {
    padding: 0.32rem 0.5rem;
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    background: #fff;
}

.shop-cart-menu .shop-pricing__tier--inline .shop-pricing__tier-size,
.shop-cart-menu .shop-pricing__tier--inline .shop-pricing__tier-price {
    font-size: 0.72rem;
}

.shop-slot-bar {
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    background: var(--shop-dock-blue, #0ea5e9);
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    box-shadow: 0 -10px 36px rgba(3, 105, 161, 0.35);
}

/* Phones: dock stays on the screen. When Search/Cart opens, the shell
   sizes to the card + dock — never full-screen over the
   ถ่ายภาพ / คลังภาพ picker or the iOS photo action sheet. */
@media (max-width: 767.98px) {
    .shop-page-root--slots.shop-page-root--dock-pinned {
        padding-bottom: calc(var(--shop-slot-bar-h, 4.85rem) + env(safe-area-inset-bottom, 0px)) !important;
    }

    html.shop-vv-pin .shop-slot-bar,
    html.shop-vv-pin body.shop-slot-open .shop-slot-bar,
    html.shop-inapp .shop-slot-bar {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 1 !important;
        display: grid !important;
        pointer-events: auto !important;
        transform: none !important;
        padding-bottom: 0.4rem !important;
        min-height: 0 !important;
        height: auto !important;
        flex: 0 0 auto !important;
    }

    html.shop-vv-pin body.shop-slot-open .shop-page-root--slots .shop-slot-shell,
    html.shop-vv-pin body.shop-slot-open .shop-page-root--slots .shop-slot-shell.is-pinned {
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        justify-content: flex-end;
        padding-bottom: 0 !important;
        overflow: visible !important;
        z-index: 4000 !important;
    }

    body.shop-picking-file .shop-slot-backdrop,
    html.shop-picking-file .shop-slot-bar,
    html.shop-picking-file #shop-dock-fill,
    html.shop-picking-file .site-nav {
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    html.shop-picking-file-gone .shop-slot-shell,
    html.shop-picking-file-gone .shop-slot-shell.is-pinned {
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }
}

.shop-slot-bar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 3.4rem;
    padding: 0.35rem 0.4rem 0.45rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: color 0.18s ease, background 0.18s ease;
}

.shop-slot-bar__icon {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.shop-slot-bar__icon i {
    font-size: 1.125rem;
    line-height: 1;
}

.shop-slot-bar__label {
    color: inherit;
    white-space: nowrap;
}

.shop-slot-bar__item:hover,
.shop-slot-bar__item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.shop-slot-bar__item--active {
    color: #fff;
    background: var(--shop-dock-blue-deep, #0284c7);
    box-shadow: none;
    filter: none;
}

.shop-slot-bar__item--active::after {
    content: '';
    position: absolute;
    top: 0.2rem;
    left: 50%;
    width: 1.1rem;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
}

.shop-slot-bar__item--active .shop-slot-bar__icon {
    color: #fff;
    background: transparent;
}

.shop-slot-bar__item--add-cart {
    color: #fff;
}

.shop-slot-bar__item--add-cart .shop-slot-bar__icon {
    color: #fff;
}

.shop-slot-bar__item--disabled {
    opacity: 0.34;
    cursor: default;
}

.shop-slot-bar__item--disabled:hover,
.shop-slot-bar__item--disabled:focus-visible {
    color: #fff;
    background: transparent;
}

.shop-slot-bar__badge {
    position: absolute;
    top: 0.2rem;
    left: calc(50% + 0.45rem);
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--btn-bg);
    color: #fff;
    font-size: 0.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
    box-shadow: 0 0 0 2px var(--shop-dock-blue, #0ea5e9);
}

.shop-slot-shell .event-search--compact .event-search__tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    justify-content: center;
}

.shop-slot-shell .event-search--compact .event-search__tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 0.65rem;
    white-space: nowrap;
}

.shop-slot-shell .event-search--compact .event-search__panel {
    margin: 0;
}

.shop-slot-shell .event-search--compact .event-search__hint {
    display: block;
    margin: 0 0 0.65rem;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.shop-slot-shell .event-search--compact .event-search__face-form--centered {
    gap: 0.7rem;
    width: 100%;
}

.event-search__intro {
    width: 100%;
    text-align: center;
}

.event-search__intro-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.event-search__intro-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.event-search__selfie {
    position: relative;
    display: block;
    width: 100%;
    min-height: 9.5rem;
    padding: 0;
    border-radius: 0.9rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.08)),
        #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    text-align: inherit;
    touch-action: manipulation;
}

.event-search__selfie:hover,
.event-search__selfie:focus-visible {
    border-color: color-mix(in srgb, var(--btn-bg) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-bg) 16%, transparent);
    outline: none;
}

.event-search__selfie--ready {
    min-height: 14.5rem;
    height: 14.5rem;
    border-color: color-mix(in srgb, var(--btn-bg) 45%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--btn-bg) 18%, transparent);
    background: #0f172a;
}

.event-search__selfie-empty[hidden],
.event-search__selfie--ready .event-search__selfie-empty,
.event-search__selfie-preview[hidden] {
    display: none !important;
}

.event-search__selfie-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem;
    color: #94a3b8;
    font-size: 0.78rem;
    text-align: center;
}

.event-search__selfie-empty i {
    font-size: 1.6rem;
    opacity: 0.85;
}

.event-search__selfie-preview {
    position: absolute;
    inset: 0;
}

.event-search__selfie-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #0f172a;
}

.event-search__selfie-change {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.45rem 0.6rem;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.event-search__pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
}

.event-search__picker {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.75rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.event-search__picker i,
.event-search__picker span {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.event-search__picker-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}

.event-search__picker:hover,
.event-search__picker:focus-visible {
    background: color-mix(in srgb, var(--btn-bg) 8%, #fff);
    border-color: color-mix(in srgb, var(--btn-bg) 55%, transparent);
    outline: none;
}

body.event-search-camera-open {
    overflow: hidden;
}

.event-search__camera {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}

.event-search__camera[hidden] {
    display: none !important;
}

.event-search__camera-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #020617;
}

.event-search__camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.event-search__camera-video--mirror {
    transform: scaleX(-1);
}

.event-search__camera-hint {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.85rem;
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(15, 23, 42, 0.7);
}

.event-search__camera-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.75rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: #0f172a;
}

.event-search__camera-textbtn {
    min-width: 4.5rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.event-search__camera-shutter {
    width: 4.25rem;
    height: 4.25rem;
    border: 4px solid #fff;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.event-search__camera-shutter:disabled {
    opacity: 0.45;
    cursor: default;
}

.shop-slot-shell .event-search--compact .event-search__face-file {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    min-height: 1.1rem;
}

.shop-slot-shell .event-search--compact .event-search__face-file--ready {
    color: #0369a1;
    font-weight: 600;
}

.shop-slot-shell .event-search--compact .event-search__face-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

.shop-slot-shell .event-search--compact .event-search__face-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

.shop-slot-shell .event-search--compact .event-search__face-search {
    flex: 1 1 auto;
    min-width: 10rem;
    max-width: 16rem;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.875rem;
}

.shop-slot-shell .event-search--compact .event-search__face-clear {
    border-radius: 0.75rem;
    padding-inline: 0.9rem;
}

.shop-slot-shell .event-search--compact .event-search__bib-row {
    display: flex;
    gap: 0.4rem;
}

.shop-slot-shell .event-search--compact .event-search__bib-row input {
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
}

.shop-slot-shell .event-search--compact .event-search__status {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    text-align: center;
}

.shop-cart-bar--slot {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: auto;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    padding: 0.55rem 0 0;
    border-radius: 0;
}

.shop-cart-bar--slot .shop-cart-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0;
    max-width: none;
}

.shop-cart-bar--slot.shop-cart-bar--empty .shop-cart-bar__info {
    opacity: 0.75;
}

@media (max-width: 640px) {
    .shop-slot-shell .event-search--compact .event-search__face-buttons {
        width: 100%;
    }

    .shop-slot-shell .event-search--compact .event-search__face-search {
        flex: 1 1 auto;
        max-width: none;
    }
}

@media (min-width: 768px) {
    .shop-slot-bar {
        max-width: 28rem;
        margin: 0 auto;
        border-radius: 1rem 1rem 0 0;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
}

.shop-highlights {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.shop-highlights .shop-main__title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.shop-highlights .shop-main__title i {
    color: #f59e0b;
}

.shop-gallery-grid--highlights {
    display: block;
    column-count: 4;
    column-gap: 3px;
}

@media (min-width: 640px) {
    .shop-gallery-grid--highlights {
        column-count: 6;
    }
}

@media (min-width: 900px) {
    .shop-gallery-grid--highlights {
        column-count: 7;
    }
}

@media (min-width: 1200px) {
    .shop-gallery-grid--highlights {
        column-count: 8;
    }
}

.shop-gallery-grid--highlights .shop-photo {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #fff;
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
}

.shop-gallery-grid--highlights .shop-photo__select {
    display: none;
}

.shop-gallery-grid--highlights .shop-photo__media {
    background: #fff;
}

.shop-gallery-grid--highlights .shop-photo__media img,
.shop-gallery-grid--highlights .shop-photo__preview {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@supports (grid-template-rows: masonry) {
    .shop-gallery-grid--highlights {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: masonry;
        gap: 3px;
        column-count: auto;
    }

    @media (min-width: 640px) {
        .shop-gallery-grid--highlights {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }
    }

    @media (min-width: 900px) {
        .shop-gallery-grid--highlights {
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }
    }

    @media (min-width: 1200px) {
        .shop-gallery-grid--highlights {
            grid-template-columns: repeat(8, minmax(0, 1fr));
        }
    }

    .shop-gallery-grid--highlights .shop-photo {
        margin: 0;
    }
}

/* Browse-all gallery: compact thumbs under HL */
.shop-gallery-grid--browse {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .shop-gallery-grid--browse {
        grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
        gap: 0.5rem;
    }
}

.shop-browse-pagination {
    margin-top: 1.25rem;
}

.shop-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.shop-pagination__range {
    font-size: 0.875rem;
    color: var(--muted, #64748b);
}

.shop-pagination__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.shop-pagination__btn,
.shop-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.55rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.5rem;
    background: var(--white, #fff);
    color: var(--ink, #0f172a);
    font-size: 0.875rem;
    text-decoration: none;
    line-height: 1;
}

.shop-pagination__btn:hover,
.shop-pagination__page:hover {
    background: var(--surface-2, #f8fafc);
}

.shop-pagination__btn--disabled {
    opacity: 0.45;
    pointer-events: none;
}

.shop-pagination__page--active {
    background: var(--ink, #0f172a);
    border-color: var(--ink, #0f172a);
    color: #fff;
}

.shop-pagination__dots {
    padding: 0 0.25rem;
    color: var(--muted, #64748b);
}

.shop-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0 5rem;
}

/* Event shop — wide layout with safe side gutters */
.shop-page-root {
    --shop-gutter: clamp(1rem, 2.5vw, 1.5rem);
    overflow-x: hidden;
}

.shop-page-root .container {
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--shop-gutter);
    padding-right: var(--shop-gutter);
    box-sizing: border-box;
}

.shop-page-root .shop-search-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.shop-page-root .shop-search-strip {
    border-radius: var(--radius-lg);
}

.shop-page-root .shop-toolbar {
    border-radius: var(--radius-md);
}

.shop-page-root .shop-panel--steps-full {
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.5rem;
}

.shop-page-root .shop-selection-banner {
    border-radius: var(--radius-md);
}

.shop-page-root .shop-gallery-grid {
    display: block;
    column-count: 4;
    column-gap: 3px;
    gap: 0;
}

.shop-page-root .shop-gallery-grid--browse {
    column-count: 5;
}

.shop-page-root .shop-gallery-grid--highlights {
    display: block;
    column-count: 4;
    column-gap: 3px;
}

.shop-page-root .shop-gallery-grid .shop-photo {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #fff;
    border-radius: 2px;
    background: #fff;
}

.shop-page-root .shop-gallery-grid--highlights .shop-photo {
    margin: 0 0 3px;
}

.shop-page-root .shop-gallery-grid .shop-photo__media {
    background: #fff;
}

@media (min-width: 640px) {
    .shop-page-root .shop-gallery-grid {
        column-count: 5;
    }

    .shop-page-root .shop-gallery-grid--browse {
        column-count: 6;
    }

    .shop-page-root .shop-gallery-grid--highlights {
        column-count: 6;
    }
}

@media (min-width: 900px) {
    .shop-page-root .shop-gallery-grid {
        column-count: 6;
    }

    .shop-page-root .shop-gallery-grid--browse {
        column-count: 7;
    }

    .shop-page-root .shop-gallery-grid--highlights {
        column-count: 7;
    }
}

@media (min-width: 1200px) {
    .shop-page-root .shop-gallery-grid--browse {
        column-count: 8;
    }

    .shop-page-root .shop-gallery-grid--highlights {
        column-count: 8;
    }
}

@supports (grid-template-rows: masonry) {
    .shop-page-root .shop-gallery-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: masonry;
        gap: 3px;
        column-count: auto;
    }

    .shop-page-root .shop-gallery-grid .shop-photo {
        margin: 0;
    }

    .shop-page-root .shop-gallery-grid--browse {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .shop-page-root .shop-gallery-grid--highlights {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: masonry;
    }

    @media (min-width: 640px) {
        .shop-page-root .shop-gallery-grid {
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }

        .shop-page-root .shop-gallery-grid--browse {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }

        .shop-page-root .shop-gallery-grid--highlights {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }
    }

    @media (min-width: 900px) {
        .shop-page-root .shop-gallery-grid {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }

        .shop-page-root .shop-gallery-grid--browse {
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }

        .shop-page-root .shop-gallery-grid--highlights {
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }
    }

    @media (min-width: 1200px) {
        .shop-page-root .shop-gallery-grid--browse {
            grid-template-columns: repeat(8, minmax(0, 1fr));
        }

        .shop-page-root .shop-gallery-grid--highlights {
            grid-template-columns: repeat(8, minmax(0, 1fr));
        }
    }
}

.shop-search-section {
    padding: 1.25rem 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.shop-search-section .container {
    max-width: 76rem;
}

.shop-search-strip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.shop-search-strip .event-search {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.shop-search-strip .event-search__panel {
    padding: 1rem 1.25rem 1.25rem;
}

.shop-search-strip .event-search__panel--face {
    padding: 1.5rem 1.25rem 1.75rem;
}

.shop-search-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.shop-steps-section {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 1.25rem 0 1.75rem;
    margin-top: 0.5rem;
}

.shop-steps-section .container {
    max-width: 76rem;
}

.shop-panel--steps-full {
    width: 100%;
    margin: 0;
    background: var(--white);
}

.shop-steps--wide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    padding-left: 0;
    list-style: none;
    counter-reset: shop-step;
}

.shop-steps--wide li {
    position: relative;
    margin: 0;
    padding: 1rem 1rem 1rem 2.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.shop-steps--wide li::before {
    counter-increment: shop-step;
    content: counter(shop-step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--brand-2);
    border-radius: var(--radius-full);
}

.shop-steps--wide li + li {
    margin-top: 0;
}

.shop-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
    gap: 0;
    align-items: start;
}

.shop-page__grid--solo {
    grid-template-columns: 1fr;
}

.shop-sidebar--pricing {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    border-left: 1px solid var(--border);
    background: var(--white);
}

.shop-panel--pricing .shop-pricing__tiers {
    flex-direction: column;
}

.shop-panel--pricing .shop-pricing__tier {
    flex: 1 1 auto;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.85rem;
}

.shop-search-extras__item .shop-panel__title {
    font-size: 0.9375rem;
}

.shop-main--full {
    width: 100%;
}

.shop-page__grid .shop-main {
    min-width: 0;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
}

.shop-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.shop-panel__title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.shop-panel--steps {
    background: var(--surface-2);
}

.shop-steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

.shop-steps li + li {
    margin-top: 0.35rem;
}

.shop-panel .event-search {
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.shop-panel .event-search__tabs {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.shop-panel .event-search__panel {
    padding: 1rem 0 0;
}

.shop-pricing__label {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.shop-pricing__tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-pricing__tier {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.65rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.shop-pricing__tier--active {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.shop-pricing__tier-size {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink);
}

.shop-pricing__tier-price {
    font-size: 0.8125rem;
    color: var(--muted);
}

.shop-pricing__package,
.shop-pricing__hint {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.shop-pricing-note {
    margin: 0;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.shop-pricing-note--warn { background: #fff7ed; color: #c2410c; }
.shop-pricing-note--muted { background: var(--surface-2); color: var(--muted); }
.shop-pricing-note--free { background: #ecfdf5; color: #047857; }

/* ——— Shop purchase mode (unified package + single) ——— */
.shop-purchase-wrap {
    margin: 0 auto 1rem;
    max-width: 42rem;
}


.shop-purchase {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    padding: 0.7rem 0.85rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.shop-purchase--bar,
.shop-purchase--unified {
    padding: 0.75rem 0.9rem;
}

.shop-purchase__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem 0.75rem;
}

.shop-purchase__row--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
    align-items: center;
    gap: 0.75rem;
}

.shop-purchase__chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.55rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 1rem;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.8125rem;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.shop-purchase__chip:hover {
    border-color: #94a3b8;
}

.shop-purchase__chip--package.shop-purchase__mode--active {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 0 0 1px #059669;
}

.shop-purchase__badge {
    position: absolute;
    top: -0.45rem;
    left: 0.7rem;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.shop-purchase__chip-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.shop-purchase__chip-label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.8125rem;
}

.shop-purchase__chip-price {
    font-weight: 800;
    color: #047857;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.shop-purchase__divider {
    width: 1px;
    height: 2.4rem;
    background: var(--border);
}

.shop-purchase__retail-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
    min-height: 3.1rem;
    padding: 0.45rem 0.55rem;
    border: 1.5px solid var(--border);
    border-radius: 1rem;
    background: #f8fafc;
    opacity: 0.72;
    transition: opacity var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.shop-purchase__retail-inline--active {
    opacity: 1;
    border-color: var(--ink);
    background: var(--surface-2, #f1f5f9);
    box-shadow: 0 0 0 1px var(--ink);
}

.shop-purchase__retail-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.shop-pricing__tiers--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.shop-pricing__tier--inline {
    flex: 0 0 auto;
    min-width: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.55rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: var(--white);
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.shop-pricing__tier--inline:hover {
    border-color: #94a3b8;
}

.shop-pricing__tier--inline.shop-pricing__tier--active {
    border-color: var(--ink);
    background: #fff;
    box-shadow: 0 0 0 1px var(--ink);
}

.shop-pricing__tier--inline .shop-pricing__tier-size {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink);
}

.shop-pricing__tier--inline .shop-pricing__tier-sep {
    font-size: 0.6875rem;
    color: var(--muted);
    line-height: 1;
}

.shop-pricing__tier--inline .shop-pricing__tier-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
}

.shop-purchase--package-active .shop-pricing__tier--inline {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.shop-purchase--package-active .shop-pricing__tier--inline.shop-pricing__tier--active {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.shop-checkout-cta.btn-primary {
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.shop-mode-package .shop-toolbar__select-all {
    opacity: 0.85;
}

.shop-mode-package .shop-toolbar__count::after {
    content: ' · เหมา';
    color: #059669;
    font-weight: 600;
}

.shop-cart-bar--active.shop-cart-bar--package,
.shop-cart-bar--package.shop-cart-bar--active {
    background: rgba(236, 253, 245, 0.98);
}

@media (max-width: 640px) {
    .shop-purchase-wrap {
        max-width: none;
    }

    .shop-purchase__row--split {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .shop-purchase__divider {
        display: none;
    }

    .shop-purchase__chip,
    .shop-purchase__retail-inline {
        width: 100%;
    }
}

.shop-main__head {
    margin-bottom: 1rem;
}

.shop-main__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 0.25rem;
}

.shop-main__head-pricing {
    flex: 0 0 auto;
    max-width: min(100%, 24rem);
}

.shop-pricing--inline {
    text-align: right;
}

.shop-pricing--inline .shop-pricing__tiers {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.shop-pricing--inline .shop-pricing__tier {
    flex: 0 0 auto;
    min-width: 3.75rem;
    padding: 0.5rem 0.65rem;
}

.shop-pricing--inline .shop-pricing__tier-size {
    font-size: 0.75rem;
}

.shop-pricing--inline .shop-pricing__tier-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

.shop-pricing--inline .shop-pricing__package {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    text-align: right;
}

.shop-main__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ink);
}

.shop-main__sub {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.shop-toolbar__select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.shop-toolbar__count {
    font-size: 0.875rem;
    color: var(--muted);
    margin-right: auto;
}

.shop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.65rem;
    align-items: start;
}

.shop-gallery-grid--results {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .shop-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
        gap: 0.75rem;
    }

    .shop-gallery-grid--results {
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        gap: 0.85rem;
    }
}

.shop-gallery-grid.shop-gallery-grid--highlights,
.shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
    display: block;
    column-count: 4;
    column-gap: 3px;
    grid-template-columns: none;
    grid-template-rows: none;
}

@media (min-width: 640px) {
    .shop-gallery-grid.shop-gallery-grid--highlights,
    .shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
        column-count: 6;
    }
}

@media (min-width: 900px) {
    .shop-gallery-grid.shop-gallery-grid--highlights,
    .shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
        column-count: 7;
    }
}

@media (min-width: 1200px) {
    .shop-gallery-grid.shop-gallery-grid--highlights,
    .shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
        column-count: 8;
    }
}

@supports (grid-template-rows: masonry) {
    .shop-gallery-grid.shop-gallery-grid--highlights,
    .shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: masonry;
        gap: 3px;
        column-count: auto;
    }

    @media (min-width: 640px) {
        .shop-gallery-grid.shop-gallery-grid--highlights,
        .shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }
    }

    @media (min-width: 900px) {
        .shop-gallery-grid.shop-gallery-grid--highlights,
        .shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
            grid-template-columns: repeat(7, minmax(0, 1fr));
        }
    }

    @media (min-width: 1200px) {
        .shop-gallery-grid.shop-gallery-grid--highlights,
        .shop-page-root .shop-gallery-grid.shop-gallery-grid--highlights {
            grid-template-columns: repeat(8, minmax(0, 1fr));
        }
    }
}

.shop-gallery-grid--highlights.is-masonry-js,
.shop-page-root .shop-gallery-grid--highlights.is-masonry-js {
    display: block !important;
    position: relative;
    column-count: auto !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

.shop-gallery-grid--highlights.is-masonry-js .shop-photo {
    margin: 0;
}

.shop-photo {
    position: relative;
    min-width: 0;
    height: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.shop-photo--selected {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}

.shop-photo__select {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    cursor: pointer;
}

.shop-photo__select input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.shop-photo__check-ui {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(15, 23, 42, 0.25);
    color: transparent;
    font-size: 0.65rem;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.shop-photo__select input:checked + .shop-photo__check-ui {
    background: #059669;
    border-color: #047857;
    color: #fff;
}

.shop-photo__media {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: none;
    background: #0f172a;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.shop-photo__media:disabled {
    cursor: default;
    opacity: 0.85;
}

.shop-photo__media img,
.shop-photo__thumb,
.shop-photo__preview {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.shop-photo__media-inner {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    line-height: 0;
    background: transparent;
}

.shop-photo__media-inner--loading {
    min-height: 8rem;
    background: linear-gradient(110deg, var(--surface-2) 25%, rgba(255, 255, 255, 0.55) 37%, var(--surface-2) 63%);
    background-size: 200% 100%;
    animation: shop-photo-shimmer 1.2s ease-in-out infinite;
}

@keyframes shop-photo-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.shop-photo__media-inner:not(.shop-photo__media-inner--loading) {
    animation: none;
    min-height: 0;
    background: transparent;
}

.shop-photo__watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    height: auto;
    max-width: 90%;
}

.shop-photo__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 6rem;
    color: var(--muted);
    font-size: 1.25rem;
    background: var(--surface-2);
}

.shop-photo__zoom {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.shop-photo__media:not(:disabled):hover .shop-photo__zoom,
.shop-photo--selected .shop-photo__zoom {
    opacity: 1;
}

.shop-photo__video-badge {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.shop-photo__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.shop-photo--video .shop-photo__media {
    cursor: pointer;
}

.shop-preview-modal__video {
    max-width: min(92vw, 960px);
    max-height: min(78vh, 720px);
    width: 100%;
    background: #0f172a;
    border-radius: 0.5rem;
}

.shop-preview-modal__video[hidden],
.shop-download-viewer__video[hidden] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.shop-preview-modal__panel {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: min(56rem, calc(100vw - 1.5rem));
    max-height: min(92vh, 52rem);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.shop-preview-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.shop-preview-modal__head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.shop-preview-modal__eyebrow {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.shop-preview-modal__cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    background: #059669;
    color: #fff;
    transition: background var(--transition), color var(--transition);
}

.shop-preview-modal__cart:hover {
    background: #047857;
}

.shop-preview-modal__cart--in-cart {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
    box-shadow: inset 0 0 0 1.5px #059669;
}

.shop-preview-modal__cart--in-cart:hover {
    background: rgba(5, 150, 105, 0.2);
}

.shop-preview-modal__pay {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    background: #1d4ed8;
    color: #fff;
    transition: background var(--transition);
}

.shop-preview-modal__pay:hover {
    background: #1e40af;
}

.shop-preview-modal__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(92vh - 4rem);
    padding: 0.35rem 2.75rem;
    background: #0b1220;
    overflow: hidden;
}

.shop-preview-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.shop-preview-modal__nav:hover {
    background: #fff;
}

.shop-preview-modal__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.shop-preview-modal__nav--prev {
    left: 0.65rem;
}

.shop-preview-modal__nav--next {
    right: 0.65rem;
}

.shop-preview-modal__counter {
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

@media (max-width: 640px) {
    .shop-preview-modal__body {
        padding: 1rem 2.75rem 2.25rem;
    }

    .shop-preview-modal__cart span[data-preview-cart-label] {
        display: none;
    }

    .shop-preview-modal__cart,
    .shop-preview-modal__pay {
        width: 2rem;
        height: 2rem;
        padding: 0;
        justify-content: center;
        border-radius: var(--radius-sm);
    }

    .shop-preview-modal__pay span[data-preview-pay-label] {
        display: none;
    }
}

.shop-preview-modal__stage {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
    margin: 0 auto;
}

.shop-preview-modal__watermark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: fill;
    transform: none;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.shop-page-root--protected {
    -webkit-user-select: none;
    user-select: none;
}

.shop-front--protected img,
.shop-front--protected picture,
.shop-front--protected video,
.shop-page-root--protected img,
.shop-page-root--protected .shop-photo__thumb,
.shop-page-root--protected .shop-photo__preview,
.shop-page-root--protected .shop-preview-modal__img,
.shop-page-root--protected .shop-preview-modal__watermark {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

.shop-front--protected .shop-payment-qr__img,
.shop-front--protected .shop-qr-sheet__img,
.shop-front--protected [data-allow-save-image],
.shop-page-root--protected .shop-payment-qr__img,
.shop-page-root--protected .shop-qr-sheet__img,
.shop-page-root--protected [data-allow-save-image] {
    -webkit-touch-callout: default !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
    -webkit-user-drag: auto;
}

.shop-page-root--protected .shop-photo__media,
.shop-page-root--protected .shop-preview-modal__stage {
    -webkit-user-select: none;
    user-select: none;
}

/* Allow selecting text in buyer forms (phone/email) while media stay protected */
.shop-front--protected input,
.shop-front--protected textarea,
.shop-front--protected select {
    -webkit-user-select: text;
    user-select: text;
}

.shop-preview-modal__loading {
    color: var(--muted);
    font-size: 1.5rem;
}

.shop-preview-modal__close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    cursor: pointer;
}

.shop-preview-modal__img {
    display: block;
    max-width: min(100%, 52rem);
    max-height: min(78vh, 44rem);
    width: auto;
    height: auto;
    vertical-align: top;
    border-radius: 0;
}

.shop-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.shop-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.shop-empty p {
    margin: 0;
    font-size: 0.9375rem;
}

.shop-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Keep cart bar inside the slot sheet — do not cover the purchase menu */
.shop-slot-sheet .shop-cart-bar.shop-cart-bar--slot {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: auto;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: transparent;
    backdrop-filter: none;
    padding: 0.55rem 0 0;
    border-radius: 0;
}

.shop-cart-bar--empty .shop-cart-bar__info {
    color: var(--ink-soft);
}

.shop-cart-bar--empty .shop-cart-bar__info i {
    color: var(--ink-muted);
}

.shop-cart-bar--active {
    background: rgba(236, 253, 245, 0.98);
    border-top-color: #10b981;
    box-shadow: 0 -8px 32px rgba(16, 185, 129, 0.14);
}

.shop-cart-bar--active .shop-cart-bar__info {
    color: #047857;
}

.shop-cart-bar--active .shop-cart-bar__info i {
    color: #059669;
}

.shop-cart-toggle--active {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.shop-cart-toggle--active:hover {
    background: #047857 !important;
    border-color: #047857 !important;
    color: #fff !important;
}

.shop-cart-toggle--active strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    margin-left: 0.15rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-weight: 800;
}

.shop-photo--in-cart {
    box-shadow: inset 0 0 0 2px #10b981;
}

.shop-photo--in-cart.shop-photo--selected {
    box-shadow: inset 0 0 0 2px #10b981, 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.shop-photo--in-cart .shop-photo__select input:checked + .shop-photo__check-ui {
    background: #059669;
    border-color: #047857;
    color: #fff;
}

.shop-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-notice-modal[hidden] {
    display: none !important;
}

.shop-notice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.shop-notice-modal__panel {
    position: relative;
    width: min(21rem, 100%);
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: shop-notice-pop 0.22s ease;
}

@keyframes shop-notice-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.shop-notice-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: #c2410c;
    font-size: 1.35rem;
}

.shop-notice-modal__title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.shop-notice-modal__body {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #475569;
}

.shop-notice-modal__actions .btn {
    border-radius: 999px;
    font-weight: 600;
}

.shop-bbl-pay__no-manual {
    margin: 0.35rem 0 0;
    text-align: center;
    opacity: 0.88;
}

.shop-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-confirm-modal[hidden] {
    display: none !important;
}

.shop-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.shop-confirm-modal__panel {
    position: relative;
    width: min(24rem, 100%);
    padding: 1.15rem 1.2rem 1.1rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.shop-confirm-modal__title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.shop-confirm-modal__body {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #475569;
}

.shop-confirm-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.shop-cart-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.5rem;
}

.shop-cart-bar__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.shop-cart-bar__dot {
    color: var(--border-strong);
}

.shop-cart-bar__actions {
    display: flex;
    gap: 0.5rem;
}

body.shop-modal-open {
    overflow: hidden;
}

.shop-preview-modal[hidden] {
    display: none !important;
}

.shop-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
}

@media (max-width: 960px) {
    .shop-page__grid {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .shop-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    }

    .shop-main__head-row {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-main__head-pricing {
        max-width: none;
    }

    .shop-pricing--inline {
        text-align: left;
    }

    .shop-pricing--inline .shop-pricing__tiers {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .shop-pricing--inline .shop-pricing__package {
        text-align: left;
    }

    .shop-steps--wide {
        grid-template-columns: 1fr;
    }
}

/* ——— Shop checkout / payment / download ——— */
.shop-checkout-page,
.shop-payment-page,
.shop-download-page {
    padding: 1.5rem 0 3rem;
    max-width: 960px;
}

.shop-download-page {
    max-width: 76rem;
}

.shop-checkout-page__crumb a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.9rem;
}

.shop-checkout-page__head h1 {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.5rem;
}

.shop-checkout-page__sub {
    color: var(--ink-soft);
    margin: 0 0 1.25rem;
}

.shop-checkout-grid {
    display: grid;
    grid-template-columns: 1fr min(26rem, 100%);
    gap: 1.25rem;
    align-items: start;
}

.shop-checkout-panel,
.shop-checkout-summary__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
}

.shop-checkout-panel__title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.shop-checkout-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.shop-checkout-item {
    display: grid;
    grid-template-columns: 4rem 1fr auto auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.shop-checkout-item__thumb img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.35rem;
}

.shop-checkout-item__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.shop-checkout-item__name {
    font-size: 0.8rem;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-checkout-item__remove {
    border: none;
    background: transparent;
    color: var(--danger, #b91c1c);
    cursor: pointer;
    padding: 0.35rem;
}

.shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.shop-field span em {
    color: var(--danger, #b91c1c);
    font-style: normal;
}

.shop-field input {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.55rem 0.65rem;
    font: inherit;
}

.shop-field__row {
    display: flex;
    gap: 0.5rem;
}

.shop-field__row input {
    flex: 1;
}

.shop-field__hint {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin: 0;
}

.shop-field__hint--ok { color: #047857; }
.shop-field__hint--warn { color: #b45309; }

.shop-field--flush {
    margin-bottom: 0;
}

.shop-contact-tabs {
    margin-bottom: 0.85rem;
}

.shop-contact-tabs__nav {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.shop-contact-tabs__tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.shop-contact-tabs__tab--active {
    background: var(--white);
    color: var(--brand-2);
    box-shadow: var(--shadow-sm);
}

.shop-contact-tabs__panel {
    display: none;
}

.shop-contact-tabs__panel--active {
    display: block;
}

.shop-checkout-totals {
    margin: 0.5rem 0 1rem;
}

.shop-checkout-totals div {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.shop-checkout-totals__grand {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.35rem;
    padding-top: 0.5rem !important;
}

.shop-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.shop-alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.shop-alert--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.shop-share-link {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shop-share-link input,
.shop-share-link__url {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.shop-payment-grid {
    display: grid;
    gap: 1rem;
}

.shop-payment-qr {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
}

.shop-payment-method {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.shop-payment-method:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shop-bbl-pay {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #0d1f4a 0%, #1e4d8c 100%);
    color: #fff;
}

.shop-bbl-pay__brand {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.shop-bbl-pay__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    border-radius: 0.65rem;
    background: #fff;
    color: #1e4d8c;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.shop-bbl-pay__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    color: #fff;
}

.shop-bbl-pay .shop-field__hint {
    color: rgba(255, 255, 255, 0.82);
}

.shop-bbl-pay__amount {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.shop-pay-deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.95rem;
}

.shop-pay-deadline[data-expired="1"] {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.shop-pay-deadline strong {
    font-variant-numeric: tabular-nums;
}

.shop-bbl-pay__amount strong {
    font-size: 1.35rem;
}

.shop-bbl-pay__qr {
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.shop-qr-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0.75rem 0 0.25rem;
}

.shop-qr-howto {
    list-style: none;
    margin: 0 0 0.35rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.shop-qr-howto__item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    text-align: left;
}

.shop-qr-howto__num {
    flex: 0 0 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-qr-howto__body strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

.shop-qr-howto__body p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

.shop-qr-howto__note {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

.shop-payment-method .shop-qr-howto__body p,
.shop-payment-method .shop-qr-howto__note {
    color: #4b5563;
}

.shop-qr-howto--sheet {
    margin: 0.75rem 0 0;
    padding-left: 0;
    color: #1f2937;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.45;
}

.shop-qr-howto--sheet li + li {
    margin-top: 0.3rem;
}

.shop-qr-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.7rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    line-height: 1.25;
}

.shop-qr-actions__btn--download {
    background: #fff;
    color: #1e4d8c;
}

.shop-payment-method .shop-qr-actions__btn--download {
    background: #1e4d8c;
    color: #fff;
}

.shop-payment-qr__save-link {
    display: block;
    -webkit-touch-callout: default !important;
}

.shop-qr-card {
    margin: 0.35rem 0 0.85rem;
    padding: 0.95rem 0.9rem 1rem;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 1.15rem;
    box-shadow: 0 12px 28px rgba(255, 75, 43, 0.08);
}

.shop-qr-card__event {
    margin: 0 0 0.25rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.shop-qr-card__ask {
    margin: 0 0 0.75rem;
    text-align: center;
    color: #9f1239;
    font-size: 0.92rem;
    font-weight: 700;
}

.shop-qr-card .shop-payment-qr {
    padding: 0.7rem;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #ff416c, #f97316) border-box;
    border: 3px solid transparent;
    border-radius: 1rem;
}

.shop-paid-page {
    padding-top: 1.25rem;
}

.shop-paid-card {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1.4rem 1.2rem 1.35rem;
    text-align: center;
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
}

.shop-paid-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.82rem;
    font-weight: 700;
}

.shop-paid-card h1 {
    margin: 0 0 0.4rem;
    font-size: 1.45rem;
    line-height: 1.25;
}

.shop-paid-card__sub {
    margin: 0 0 0.95rem;
    color: var(--muted);
}

.shop-paid-card__countdown {
    margin: 0 0 1rem;
    padding: 0.7rem 0.8rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 0.85rem;
    color: #9a3412;
    font-weight: 700;
}

.shop-paid-card .btn {
    margin-bottom: 0.7rem;
}

.shop-payment-qr__img {
    display: block;
    width: 264px;
    height: 264px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    border-radius: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -webkit-touch-callout: default !important;
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-user-drag: auto;
}

.shop-inapp-escape {
    margin: 0.75rem 0 0.85rem;
    padding: 0.85rem 0.9rem 1rem;
    border-radius: 0.85rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    text-align: center;
}

.shop-inapp-escape[hidden] {
    display: none !important;
}

.shop-inapp-escape__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #9a3412;
}

.shop-inapp-escape__text {
    margin: 0 0 0.75rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #7c2d12;
}

.shop-inapp-escape__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.75rem 0.8rem;
    border-radius: 0.7rem;
    background: #c2410c;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.shop-inapp-escape__copy {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.45rem;
    border: 0;
    background: transparent;
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.shop-qr-inapp-note {
    margin: 0.65rem 0 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.86rem;
    line-height: 1.45;
}

.shop-payment-method .shop-qr-inapp-note {
    background: #f0f7ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.shop-qr-sheet[hidden] {
    display: none !important;
}

.shop-qr-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.shop-qr-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.shop-qr-sheet__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    max-height: 92vh;
    overflow: auto;
    margin: 0;
    padding: 1.15rem 1.1rem 1.35rem;
    border-radius: 1rem 1rem 0 0;
    background: #fff;
    color: #111827;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
}

@media (min-width: 640px) {
    .shop-qr-sheet {
        align-items: center;
    }
    .shop-qr-sheet__panel {
        border-radius: 1rem;
        margin: 1rem;
    }
}

.shop-qr-sheet__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}

.shop-qr-sheet__title {
    margin: 0 1.5rem 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.shop-qr-sheet__hint,
.shop-qr-sheet__steps {
    margin: 0.35rem auto 0.65rem;
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #4b5563;
}

.shop-qr-sheet__img {
    display: block;
    width: min(280px, 72vw);
    height: auto;
    margin: 0.5rem auto;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -webkit-touch-callout: default;
}

.shop-qr-sheet__actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.shop-qr-sheet__actions .shop-qr-actions__btn--download {
    background: #1e4d8c;
    color: #fff;
    text-decoration: none;
}

body.shop-qr-sheet-open {
    overflow: hidden;
}

.shop-bank-apps {
    display: none; /* ค่าเริ่มต้น: ซ่อนบนคอมพิวเตอร์ */
    margin: 1rem 0 0.35rem;
    padding: 0.9rem 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* มือถือ / จอแคบ — JS จะบังคับซ่อนอีกชั้นถ้าเป็นเดสก์ท็อป */
@media (max-width: 768px) {
    .shop-bank-apps:not(.shop-bank-apps--force-hide) {
        display: block;
    }
}

.shop-bank-apps.shop-bank-apps--force-hide {
    display: none !important;
}

.shop-payment-method .shop-bank-apps {
    background: #f8fafc;
    border: 1px solid var(--border);
}

.shop-bank-apps__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.shop-payment-method .shop-bank-apps__title {
    color: #111827;
}

.shop-bank-apps__sub {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.shop-payment-method .shop-bank-apps__sub {
    color: #6b7280;
}

.shop-bank-apps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.shop-bank-apps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
    padding: 0.55rem 0.3rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.shop-payment-method .shop-bank-apps__item {
    border-color: #e5e7eb;
    background: #fff;
}

.shop-bank-apps__item:active {
    transform: scale(0.97);
}

.shop-bank-apps__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.shop-bank-apps__logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.7rem;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.shop-bank-apps__app {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.shop-bank-apps__name {
    font-size: 0.65rem;
    color: #6b7280;
    line-height: 1.2;
    text-align: center;
}

.shop-bank-handoff__steps {
    margin: 0.75rem 0 1rem;
    padding-left: 1.2rem;
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: left;
}

.shop-bank-handoff__steps li + li {
    margin-top: 0.35rem;
}

.shop-qr-actions__btn--open {
    display: block;
    text-align: center;
    background: #2563eb;
    color: #fff;
}

.shop-bank-handoff__manual {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #92400e;
}

.shop-qr-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 10050;
    max-width: min(92vw, 22rem);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    font-size: 0.88rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.shop-qr-toast.is-out {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

@media (max-width: 360px) {
    .shop-bank-apps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.shop-bbl-pay__steps {
    margin: 0.75rem 0 1rem;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.shop-bbl-pay__steps li + li {
    margin-top: 0.35rem;
}

.shop-bbl-pay__confirm {
    background: #fff;
    color: #1e4d8c;
    border: none;
}

.shop-bbl-pay__confirm:hover {
    background: #e8f0fb;
    color: #163a6b;
}

.shop-bbl-pay__preview-note {
    margin: 0.75rem 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    background: rgba(30, 77, 140, 0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.shop-checkout-pay-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
}

.shop-checkout-pay-btn,
.shop-checkout-pay-btn.btn-primary,
.shop-checkout-pay-btn.shop-bbl-pay__confirm,
.shop-checkout-pay-btn.shop-checkout-card-submit {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0.45rem;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    background: var(--btn-bg);
    color: #fff;
    border: 1.5px solid var(--btn-bg);
    box-shadow: 0 8px 28px var(--btn-glow);
}

.shop-checkout-pay-btn:hover,
.shop-checkout-pay-btn.btn-primary:hover,
.shop-checkout-pay-btn.shop-bbl-pay__confirm:hover,
.shop-checkout-pay-btn.shop-checkout-card-submit:hover {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
    color: #fff;
}

.shop-checkout-card-pay {
    margin-top: 1rem;
    padding: 1.15rem 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.shop-checkout-card-pay h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.shop-checkout-grid--pay {
    align-items: start;
}

.shop-waiting-card {
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
}

.shop-waiting-card__status {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.shop-pay-status {
    margin: 0.55rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.shop-payment-method .shop-pay-status {
    background: #ecfdf5;
    color: #065f46;
}

.shop-download-window {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.95rem;
    line-height: 1.45;
}

.shop-dl-hero {
    position: relative;
    margin: 0 0 1rem;
    padding: 1.45rem 1.25rem 1.15rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.shop-dl-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--brand-gradient);
}

.shop-dl-hero h1 {
    margin: 0.45rem 0 0.2rem;
    font-size: 1.55rem;
    line-height: 1.25;
}

.shop-dl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-full);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.8rem;
    font-weight: 700;
}

.shop-dl-hero__badge--expired {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.shop-dl-hero--expired::before {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.shop-dl-hero__event {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.shop-dl-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-dl-hero__meta li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 7.5rem;
    padding: 0.55rem 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.shop-dl-hero__meta span {
    font-size: 0.72rem;
    color: var(--muted);
}

.shop-dl-hero__meta strong {
    font-size: 0.95rem;
}

.shop-dl-refs {
    margin-top: 0.75rem;
}

.shop-dl-refs summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.8rem;
}

.shop-dl-refs p {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.shop-dl-window {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.shop-dl-window__item {
    padding: 0.8rem 0.85rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: var(--radius-md);
    color: #9a3412;
}

.shop-dl-window__item--until {
    background: #fff1f2;
    border-color: #fda4af;
    color: #9f1239;
}

.shop-dl-window__label {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    margin-bottom: 0.15rem;
}

.shop-dl-window__item strong {
    font-size: 1.05rem;
}

.shop-dl-guide {
    margin: 0 0 1rem;
    padding: 1.15rem 1.15rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.shop-dl-guide__head {
    margin-bottom: 0.9rem;
}

.shop-dl-guide__head h2,
.shop-dl-share__title,
.shop-dl-grid-wrap__head h2 {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
}

.shop-dl-guide__mobile,
.shop-dl-steps--mobile {
    display: none;
}

.shop-dl-guide__desktop {
    display: block;
}

@media (max-width: 768px) {
    .shop-dl-guide__desktop,
    .shop-dl-steps--desktop {
        display: none;
    }

    .shop-dl-guide__mobile {
        display: block;
    }

    .shop-dl-steps--mobile {
        display: grid;
    }
}

.shop-dl-steps--desktop.is-ua-mobile-hide,
.shop-dl-guide.is-ua-mobile .shop-dl-guide__desktop {
    display: none !important;
}

.shop-dl-steps--mobile.is-ua-mobile-show,
.shop-dl-guide.is-ua-mobile .shop-dl-guide__mobile {
    display: grid;
}

.shop-dl-guide.is-ua-mobile .shop-dl-guide__mobile {
    display: block;
}

.shop-dl-guide__head p,
.shop-dl-grid-wrap__head p,
.shop-dl-share__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.shop-dl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    counter-reset: shop-dl-step;
}

.shop-dl-steps li {
    position: relative;
    margin: 0;
    padding: 1.5rem 0.95rem 0.95rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.shop-dl-steps li::before {
    counter-increment: shop-dl-step;
    content: counter(shop-dl-step);
    position: absolute;
    top: 0.75rem;
    left: 0.85rem;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--brand-2);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.shop-dl-steps__icon {
    display: flex;
    width: 2.1rem;
    height: 2.1rem;
    margin: 0 0 0.55rem auto;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--brand-soft-bg);
    color: var(--brand-2);
}

.shop-dl-steps strong {
    display: block;
    font-size: 0.95rem;
}

.shop-dl-steps p {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
}

.shop-dl-steps__help,
.shop-download-bulk__help-link {
    display: inline-block;
    margin-top: 0.55rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--btn-bg);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.shop-dl-share__title {
    margin-bottom: 0.45rem;
}

.shop-dl-share__hint {
    margin: 0.35rem 0 0.65rem;
}

.shop-dl-share__full {
    margin-top: 0.5rem;
}

.shop-dl-share__full code {
    word-break: break-all;
}

.shop-dl-grid-wrap {
    margin-top: 1.35rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.shop-dl-grid-wrap__head {
    margin-bottom: 0.6rem;
    padding: 0 1.5rem;
}

.shop-dl-back {
    margin: 1.5rem 0 0;
    text-align: center;
}

.shop-dl-back a {
    color: var(--ink-soft);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .shop-dl-window,
    .shop-dl-steps {
        grid-template-columns: 1fr;
    }

    .shop-dl-hero h1 {
        font-size: 1.35rem;
    }
}

.shop-download-sticky {
    display: none;
    margin: 0 0 1rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.shop-download-sticky__status {
    margin: 0 0 0.55rem;
    font-weight: 700;
    color: #065f46;
}

.shop-download-sticky__btn {
    touch-action: manipulation;
}

.shop-download-sticky__btn + .shop-download-sticky__btn {
    margin-top: 0.45rem;
}

.shop-download-bulk__subtitle {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.shop-download-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.shop-download-card__actions:has(:only-child) {
    grid-template-columns: 1fr;
}

.shop-download-viewer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.shop-download-sticky__hint {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #065f46;
}

.shop-download-page.is-saving .shop-download-sticky__btn,
.shop-download-page.is-saving [data-save-gallery],
.shop-download-page.is-saving [data-save-gallery-all] {
    opacity: 0.72;
    pointer-events: none;
}

.shop-download-wait {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 80;
    pointer-events: none;
}

.shop-download-wait[hidden] {
    display: none;
}

.shop-download-wait__box {
    margin: 0 auto;
    max-width: 28rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

.shop-download-wait__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.shop-download-wait__text,
.shop-download-wait__note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.shop-download-wait__note {
    margin-top: 0.3rem;
    opacity: 0.82;
}

@media (max-width: 768px) {
    .shop-download-sticky {
        display: block;
        position: sticky;
        top: 0.5rem;
        z-index: 20;
    }
}

.shop-download-bulk {
    margin: 1rem 0 1.25rem;
    padding: 1.15rem 1.15rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.65rem;
}

.shop-download-bulk__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.shop-download-bulk__btn {
    font-weight: 600;
}

.shop-download-bulk__parts {
    display: grid;
    gap: 0.5rem;
}

.shop-download-bulk__help-links {
    margin: 0.15rem 0 0;
}

.shop-download-bulk__help-link {
    font-size: 0.85rem;
    color: var(--btn-bg);
    text-decoration: underline;
}

/* แยกปุ่มตามอุปกรณ์ด้วย CSS */
.shop-download-bulk__desktop {
    display: grid;
    gap: 0.5rem;
}

.shop-download-bulk__mobile {
    display: none;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .shop-download-bulk__desktop {
        display: none;
    }

    .shop-download-bulk__mobile {
        display: grid;
    }
}

/* UA มือถือแม้จอกว้าง (แท็บเล็ต) — บังคับโหมดมือถือ */
.shop-download-bulk__desktop.is-ua-mobile-hide {
    display: none !important;
}

.shop-download-bulk__mobile.is-ua-mobile-show {
    display: grid !important;
}

.shop-zip-help {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.shop-zip-help[hidden] {
    display: none !important;
}

.shop-zip-help__card {
    background: #fff;
    border-radius: 1.1rem 1.1rem 0.6rem 0.6rem;
    max-width: 38rem;
    width: 100%;
    max-height: 88vh;
    overflow: auto;
    padding: 1.1rem 1.15rem 1.3rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.shop-zip-help__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.shop-zip-help__kicker {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-2);
}

.shop-zip-help__head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.shop-zip-help__close {
    border: 0;
    background: #f1f5f9;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.shop-zip-help__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.shop-zip-help__tab {
    border: 0;
    background: transparent;
    padding: 0.5rem 0.65rem;
    border-radius: calc(var(--radius-md) - 2px);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.shop-zip-help__tab.is-active {
    background: var(--white);
    color: var(--brand-2);
    box-shadow: var(--shadow-sm);
}

.shop-zip-help__panes {
    display: grid;
    gap: 0.75rem;
}

.shop-zip-help__pane {
    padding: 0.9rem 0.95rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.shop-zip-help__pane[hidden] {
    display: none;
}

.shop-zip-help__pane h4 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.shop-zip-help__pane ol {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #334155;
}

.shop-zip-help__pane li {
    margin: 0.28rem 0;
}

.shop-zip-help__note {
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.45;
}

@media (min-width: 769px) {
    .shop-zip-help {
        align-items: center;
    }

    .shop-zip-help__card {
        border-radius: 1.1rem;
        max-width: 46rem;
    }

    .shop-zip-help__tabs {
        display: none;
    }

    .shop-zip-help__panes {
        grid-template-columns: 1fr 1fr;
    }

    .shop-zip-help__pane[hidden] {
        display: block;
    }
}

.shop-download-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    column-count: 2;
    column-gap: 3px;
}

@media (min-width: 640px) {
    .shop-download-grid {
        column-count: 3;
    }
}

@media (min-width: 960px) {
    .shop-download-grid {
        column-count: 4;
    }
}

.shop-download-grid.is-justified {
    column-count: auto;
    position: relative;
}

.shop-download-card {
    border: 1px solid #fff;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 3px;
    position: relative;
}

.shop-download-grid.is-justified .shop-download-card {
    margin: 0;
}

.shop-download-card__thumb {
    background: #0f172a;
    display: block;
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
}

.shop-download-grid.is-justified .shop-download-card__thumb {
    position: absolute;
    inset: 0;
}

.shop-download-card__skel {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 90%);
    background-size: 200% 100%;
    animation: shop-download-skel 1.1s ease-in-out infinite;
}

.shop-download-card__thumb.is-loading {
    min-height: 8rem;
}

.shop-download-grid.is-justified .shop-download-card__thumb.is-loading {
    min-height: 0;
}

.shop-download-card__thumb.is-loading .shop-download-card__skel {
    display: block;
}

.shop-download-card__thumb.is-loading img {
    opacity: 0;
}

@keyframes shop-download-skel {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.shop-download-card__dl {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .shop-download-card__dl {
        width: 100%;
        min-height: 2.6rem;
        justify-content: center;
    }

    .shop-download-card__body .shop-download-card__dl {
        width: auto;
        min-height: 2rem;
    }
}

.shop-download-card__thumb--view:hover .shop-download-card__view-hint,
.shop-download-card__thumb--view:focus-visible .shop-download-card__view-hint {
    opacity: 1;
}

.shop-download-card__view-hint {
    display: none;
}

.shop-download-card__thumb img {
    position: static;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: cover;
    object-position: center;
}

.shop-download-grid.is-justified .shop-download-card__thumb img {
    height: 100%;
}

.shop-download-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.4rem 0.4rem 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.58) 100%);
    pointer-events: none;
}

.shop-download-card__body .shop-download-card__actions {
    pointer-events: auto;
    display: flex;
    justify-content: flex-end;
    grid-template-columns: none;
    gap: 0.3rem;
}

.shop-download-card__body .shop-download-card__dl {
    width: auto;
    min-height: 2rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.shop-download-viewer[hidden] {
    display: none !important;
}

.shop-download-viewer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-download-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.shop-download-viewer__panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 56rem);
    max-width: min(96vw, 56rem);
    max-height: 92vh;
    background: #0f172a;
    color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.shop-download-viewer.is-portrait .shop-download-viewer__panel {
    width: min(96vw, 28rem);
    max-width: min(96vw, 28rem);
}

.shop-download-viewer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    min-width: 0;
}

.shop-download-viewer.is-portrait .shop-download-viewer__head {
    flex-wrap: wrap;
}

.shop-download-viewer__title {
    margin: 0;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-download-viewer__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.shop-download-viewer__close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.shop-download-viewer__body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.5rem 2.75rem 0.75rem;
}

.shop-download-viewer__stage {
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    width: auto;
}

.shop-download-viewer__media {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 70vh;
}

.shop-download-bulk__btn small,
.shop-download-bulk__help-link small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
}

.shop-download-bulk__btn.is-preparing,
.shop-download-bulk__help-link.is-preparing {
    opacity: 0.72;
    cursor: default;
    pointer-events: none;
}

span.shop-download-bulk__btn {
    display: block;
    box-sizing: border-box;
    text-align: center;
}

.shop-dl-hero__zip-wait {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    color: #334155;
}

.shop-zip-check {
    margin-top: 0.7rem;
}

.shop-zip-check[hidden] {
    display: none;
}

.shop-zip-check__row,
.shop-zip-check--bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin-top: 0.55rem;
}

.shop-zip-check__msg {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
}

.shop-zip-check [data-zip-refresh].is-checking {
    opacity: 0.85;
}

.shop-dl-hero__zip-wait a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.shop-download-card__zip {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.shop-download-viewer__stage img:not(.shop-download-viewer__watermark),
.shop-download-viewer__video {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.shop-download-viewer__stage img[hidden],
.shop-download-viewer__video[hidden] {
    display: none !important;
}

.shop-download-viewer__watermark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 2;
}

.shop-download-viewer__video {
    background: #0f172a;
    border-radius: 0.4rem;
}

.shop-download-viewer__media img.is-video-poster {
    position: relative;
    z-index: 1;
}

.shop-download-viewer.is-waiting-video .shop-download-viewer__video {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.shop-download-viewer.is-playing-video #shop-download-viewer-img,
.shop-download-viewer.is-playing-video .shop-download-viewer__play,
.shop-download-viewer.is-playing-video .shop-download-viewer__watermark {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
}

.shop-download-viewer.is-playing-video .shop-download-viewer__video {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.shop-download-viewer__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.shop-download-viewer__play[hidden] {
    display: none !important;
}

.shop-download-viewer__play i {
    font-size: 1.05rem;
}

.shop-download-viewer.is-portrait .shop-download-viewer__video {
    max-height: min(70vh, 36rem);
}

.shop-download-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.shop-download-viewer__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.shop-download-viewer__nav--prev { left: 0.5rem; }
.shop-download-viewer__nav--next { right: 0.5rem; }

.shop-download-viewer__counter {
    margin: 0;
    padding: 0 1rem 0.35rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.shop-download-viewer__save-hint {
    margin: 0;
    padding: 0 1rem 0.85rem;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .shop-download-viewer__body {
        padding: 0.5rem 0.5rem 0.75rem;
    }

    .shop-download-viewer__nav {
        width: 2.15rem;
        height: 2.15rem;
    }
}

.shop-share-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    background: #111827;
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.shop-share-toast[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .shop-checkout-grid,
    .shop-payment-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .shop-checkout-grid > .shop-checkout-summary,
    .shop-payment-grid > .shop-payment-methods {
        order: 1;
    }

    .shop-checkout-grid > .shop-checkout-panel,
    .shop-payment-grid > .shop-payment-order {
        order: 2;
    }

    .shop-payment-page .shop-checkout-page__head {
        margin-bottom: 0.75rem;
    }

    .shop-payment-page .shop-checkout-page__head h1 {
        font-size: 1.25rem;
    }

    .shop-checkout-grid--pay .shop-checkout-panel,
    .shop-checkout-grid .shop-checkout-panel {
        max-height: none;
    }

    .shop-checkout-items {
        max-height: min(28rem, 52vh);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-right: 0.1rem;
    }

    .shop-checkout-grid--pay .shop-checkout-item {
        grid-template-columns: 5rem minmax(0, 1fr) auto;
    }

    .shop-checkout-grid--pay .shop-checkout-item__thumb img {
        width: 5rem;
        height: 5rem;
    }
}

.shop-checkout-cta,
#shop-cart-checkout,
#shop-cart-clear,
#checkout-submit {
    touch-action: manipulation;
}

.shop-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}

.shop-busy-overlay[hidden] {
    display: none !important;
}

.shop-busy-overlay__box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

/* หน้าดาวน์โหลดลูกค้า — ชื่องานบนสุด รูปขึ้นก่อน คำอธิบายอยู่ล่าง */
.shop-dl-hero--compact {
    padding: 1.1rem 1.15rem 1rem;
}

.shop-dl-hero__kicker {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.shop-dl-hero__event-name {
    margin: 0.15rem 0 0.8rem;
    font-size: 1.7rem;
    line-height: 1.25;
}

.shop-download-now {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.shop-download-now__status {
    margin: 0 0 0.55rem;
    font-weight: 700;
    color: #065f46;
}

.shop-download-now__btn + .shop-download-now__btn {
    margin-top: 0.45rem;
}

.shop-download-now__hint {
    margin: 0.55rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #065f46;
}

.shop-download-now__zip {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: #065f46;
}

.shop-download-now__zip a {
    color: #047857;
    font-weight: 700;
    text-decoration: underline;
}

.shop-download-page.is-saving .shop-download-now__btn {
    opacity: 0.72;
    pointer-events: none;
}

.shop-dl-steps--all {
    display: grid;
}

#shop-dl-zip {
    scroll-margin-top: 1rem;
}

@media (max-width: 768px) {
    .shop-dl-hero__event-name {
        font-size: 1.4rem;
    }

    .shop-download-now {
        position: sticky;
        top: 0.5rem;
        z-index: 20;
    }

    .shop-dl-steps--all {
        grid-template-columns: 1fr;
    }
}

.shop-download-now__where {
    margin: 0.75rem 0 0;
    padding: 0.7rem 0.8rem;
    border-radius: 0.7rem;
    background: #fff;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.84rem;
    line-height: 1.45;
}

.shop-download-now__where p {
    margin: 0 0 0.4rem;
}

.shop-download-now__where ul {
    margin: 0;
    padding-left: 1.1rem;
}

.shop-download-now__where li + li {
    margin-top: 0.35rem;
}

.shop-download-now__done {
    margin: 0.55rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    background: #d1fae5;
    color: #064e3b;
    font-size: 0.88rem;
    font-weight: 700;
}
