@import url('/assets/theme.css');

@font-face {
    font-family: 'Cham Icons';
    src: url('/assets/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-display: block
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.6
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 12% 12%, rgb(0 196 255/12%), transparent 35%), radial-gradient(circle at 88% 20%, rgb(230 0 126/10%), transparent 34%), radial-gradient(circle at 50% 100%, rgb(255 199 0/9%), transparent 38%)
}

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

img {
    display: block;
    max-width: 100%
}

button,
input,
select,
textarea {
    font: inherit
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--action);
    color: var(--on-action);
    border-radius: 10px
}

.skip-link:focus {
    top: 16px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg-strong);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-header);
    backdrop-filter: blur(var(--glass-blur))
}

.site-header:before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand-spectrum)
}

.header-row {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 950;
    letter-spacing: -.07em;
    color: var(--heading)
}

.brand i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-radius: 50%;
    background: var(--brand-magenta)
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-right: auto
}

nav a {
    position: relative;
    color: var(--text-muted);
    font-weight: 700;
    font-size: .9rem
}

nav a:after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 3px;
    border-radius: 9px;
    background: var(--brand-spectrum);
    transition: .25s
}

nav a:hover,
nav a.active {
    color: var(--text)
}

nav a:hover:after,
nav a.active:after {
    right: 0
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.user-name {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: .85rem
}

.icon-link,
.menu-toggle {
    border: 1px solid var(--glass-border-subtle);
    background: var(--glass-bg-soft);
    color: var(--text);
    border-radius: 14px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.icon-link:hover,
.menu-toggle:hover {
    transform: translateY(-1px);
    background: var(--glass-bg-strong)
}

.cart-link {
    position: relative
}

.cart-link b {
    position: absolute;
    right: -5px;
    top: -6px;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--brand-magenta);
    color: white;
    font-size: .68rem
}

.account-menu {
    position: relative
}

.account-dropdown {
    position: absolute;
    right: 0;
    top: 52px;
    display: grid;
    min-width: 190px;
    padding: 8px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur))
}

.account-dropdown[hidden] {
    display: none
}

.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    cursor: pointer
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: var(--surface-alt)
}

.menu-toggle {
    display: none;
    padding: 0 14px
}

.search-row {
    display: flex;
    gap: 8px;
    padding-bottom: 12px
}

.search-row input {
    flex: 1;
    min-width: 0
}

.search-row button {
    width: auto
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-control);
    border-radius: 12px;
    background: var(--surface-raised);
    color: var(--text);
    outline: none
}

textarea {
    min-height: 110px;
    resize: vertical
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
    outline-offset: 2px
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--action);
    color: var(--on-action);
    font-weight: 800;
    cursor: pointer;
    transition: .2s
}

.button:hover,
button:hover {
    background: var(--action-hover);
    color: var(--on-action-hover);
    transform: translateY(-1px)
}

button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none
}

label {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 700
}

.check {
    display: flex;
    align-items: center;
    gap: 8px
}

.check input {
    width: auto
}

.section {
    padding-block: clamp(54px, 7vw, 92px)
}

.section>h1,
.section>h2,
.section-heading h2 {
    margin: .2em 0 .65em;
    color: var(--heading);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.045em
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px
}

.section-heading h2 {
    margin-bottom: 0
}

.section-heading>a {
    color: var(--accent-text);
    font-weight: 800
}

.eyebrow {
    display: block;
    color: var(--brand-magenta);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase
}

.panel {
    padding: clamp(24px, 4vw, 42px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur))
}

.panel h1,
.panel h2 {
    color: var(--heading);
    line-height: 1.1
}

.alert,
.toast {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--danger-surface);
    color: var(--danger);
    border: 1px solid currentColor
}

.toast {
    position: fixed;
    right: 20px;
    top: 92px;
    z-index: 110;
    max-width: 380px;
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: var(--shadow)
}

.hero {
    position: relative;
    min-height: min(720px, 78vh);
    overflow: hidden
}

.hero-stage {
    position: relative;
    min-height: min(720px, 78vh);
    display: flex;
    align-items: center
}

.hero-stage.is-hidden {
    display: none
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-overlay {
    background: linear-gradient(90deg, rgb(11 12 30/82%) 0%, rgb(11 12 30/48%) 52%, transparent 85%)
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    color: white;
    padding-block: 70px
}

.hero-copy h1 {
    max-width: 780px;
    margin: .15em 0;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: .9;
    letter-spacing: -.065em
}

.hero-copy>p {
    max-width: 620px;
    font-size: clamp(1rem, 2vw, 1.25rem)
}

.hero-fallback {
    background: linear-gradient(125deg, var(--brand-blue), var(--brand-purple) 55%, var(--brand-magenta))
}

.hero-controls {
    position: absolute;
    z-index: 3;
    right: max(20px, calc((100vw - 1180px)/2));
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgb(255 255 255/30%);
    border-radius: 16px;
    background: rgb(15 14 34/45%);
    color: #fff;
    backdrop-filter: blur(12px)
}

.hero-controls button {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    background: rgb(255 255 255/14%);
    color: #fff
}

.hero-controls span {
    font-size: .8rem;
    font-weight: 800
}

.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px
}

.price strong {
    color: var(--accent-text);
    font-size: 1.35rem
}

.price del {
    color: var(--text-muted)
}

.hero .price strong {
    color: var(--brand-yellow)
}

.hero .price del {
    color: #fff
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px
}

.product-card {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--glass-highlight);
    transition: .25s
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-hover)
}

.product-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-alt)
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .45s
}

.product-card:hover .product-image img {
    transform: scale(1.045)
}

.product-info {
    padding: 18px
}

.product-info h2,
.product-info h3 {
    margin: .2em 0;
    font-size: 1.15rem;
    line-height: 1.2
}

.product-info p {
    margin: .45em 0;
    color: var(--text-muted)
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px
}

.card-actions .button {
    flex: 1
}

.favorite-form button {
    min-width: 44px;
    padding: 10px;
    background: var(--surface-alt);
    color: var(--text)
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px
}

.category-grid>a {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: var(--radius-card);
    background: var(--surface-alt);
    box-shadow: var(--glass-shadow)
}

.category-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s
}

.category-grid>a:hover img {
    transform: scale(1.05)
}

.category-grid h3 {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid rgb(255 255 255/30%);
    border-radius: 15px;
    background: rgb(15 14 34/68%);
    color: #fff;
    backdrop-filter: blur(12px)
}

.category-grid h3 span {
    flex: 1
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border)
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover
}

.gallery-grid figcaption {
    padding: 14px 16px;
    font-weight: 800
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px
}

.promotion-grid article {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border)
}

.promotion-grid img {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover
}

.promotion-grid article>div {
    padding: 24px
}

.filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur))
}

.filters button {
    align-self: end
}

.inline-filter {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 24px 0
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 36px;
    align-items: start
}

.detail-image {
    overflow: hidden;
    border-radius: var(--glass-radius-lg);
    background: var(--surface-alt);
    box-shadow: var(--glass-shadow)
}

.detail-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover
}

.detail .panel form,
.auth-page form,
.checkout form {
    display: grid;
    gap: 14px;
    margin-top: 20px
}

.auth-page {
    max-width: 650px
}

.cart-list {
    display: grid;
    gap: 14px;
    margin-bottom: 28px
}

.cart-row {
    display: grid;
    grid-template-columns: 90px 1fr 110px auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border)
}

.cart-row img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px
}

.cart-row form {
    display: flex;
    gap: 6px
}

.cart-row input {
    width: 70px
}

.cart-totals {
    display: grid;
    gap: 5px;
    margin-block: 20px
}

.cart-totals p {
    display: flex;
    justify-content: space-between;
    margin: 0
}

.empty {
    text-align: center;
    grid-column: 1/-1;
    padding: 60px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--glass-radius)
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--surface-alt);
    font-size: .75rem;
    font-weight: 800
}

.about-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--glass-radius-lg);
    margin-bottom: 28px
}

footer {
    padding: 65px 0 20px;
    background: var(--inverse-bg);
    color: var(--inverse-text)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px
}

.footer-grid>div {
    display: grid;
    align-content: start;
    gap: 8px
}

.footer-grid h2 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em
}

.footer-grid a:not(.brand) {
    color: var(--inverse-muted)
}

.footer-bottom {
    text-align: center;
    margin: 50px 20px 0;
    padding-top: 18px;
    border-top: 1px solid var(--inverse-border);
    color: var(--inverse-muted);
    font-size: .8rem
}

.fa,
.fa-solid {
    font-family: 'Cham Icons';
    font-style: normal;
    font-weight: 900
}

.fa-arrow-right:before {
    content: '\f061'
}

.fa-cart-shopping:before {
    content: '\f07a'
}

.fa-circle-user:before {
    content: '\f2bd'
}

.fa-moon:before {
    content: '\f186'
}

.fa-sun:before {
    content: '\f185'
}

.fa-snowflake:before {
    content: '\f2dc'
}

.fa-image:before {
    content: '\f03e'
}

.fa-shirt:before {
    content: '\f553'
}

.fa-key:before {
    content: '\f084'
}

.fa-computer-mouse:before {
    content: '\f8cc'
}

.fa-puzzle-piece:before {
    content: '\f12e'
}

.fa-mug-hot:before {
    content: '\f7b6'
}

.fa-box-open:before {
    content: '\f49e'
}

@media(max-width:950px) {
    .header-row {
        gap: 12px
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto
    }

    nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 70px;
        display: none;
        align-items: stretch;
        padding: 14px;
        border-radius: 18px;
        background: var(--glass-bg-strong);
        border: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        backdrop-filter: blur(var(--glass-blur))
    }

    nav.open {
        display: grid
    }

    .header-actions {
        margin-left: 0
    }

    .user-name {
        display: none
    }

    .product-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .detail {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:620px) {
    .shell {
        width: min(100% - 24px, 1180px)
    }

    .header-row {
        min-height: 66px
    }

    .header-actions {
        gap: 4px
    }

    .menu-toggle {
        font-size: 0;
        width: 44px;
        padding: 0
    }

    .menu-toggle:before {
        content: '☰';
        font-size: 1.2rem
    }

    .search-row {
        display: none
    }

    .hero,
    .hero-stage {
        min-height: 620px
    }

    .hero-copy {
        width: calc(100% - 32px);
        padding-bottom: 110px
    }

    .hero-copy h1 {
        font-size: clamp(2.8rem, 17vw, 5.2rem)
    }

    .section {
        padding-block: 48px
    }

    .section-heading {
        align-items: start;
        flex-direction: column
    }

    .product-grid,
    .category-grid,
    .gallery-grid,
    .promotion-grid,
    .filters,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .category-grid>a {
        min-height: 260px
    }

    .cart-row {
        grid-template-columns: 64px 1fr
    }

    .cart-row img {
        width: 64px;
        height: 64px
    }

    .cart-row form,
    .cart-row>button {
        grid-column: 2
    }

    .inline-filter {
        flex-direction: column
    }

    .toast {
        left: 12px;
        right: 12px;
        top: 76px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px
}

.timeline article {
    padding: 22px;
    border-radius: var(--glass-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border)
}

.timeline h3 {
    line-height: 1.15
}

.step-number {
    font-size: 1.7rem;
    font-weight: 950;
    color: var(--accent-text)
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.vendor-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: var(--brand-spectrum);
    color: white;
    font-weight: 950;
    font-size: 1.2rem
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start
}

.contact-layout>form {
    display: grid;
    gap: 14px
}

.faq {
    display: grid;
    gap: 14px;
    max-width: 850px
}

.faq details {
    padding: 18px 22px;
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    background: var(--glass-bg)
}

.faq summary {
    cursor: pointer;
    color: var(--heading);
    font-weight: 850
}

.link-list {
    display: grid;
    gap: 8px;
    margin-top: 20px
}

.link-list a {
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-alt);
    font-weight: 800
}

.footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr
}

@media(max-width:950px) {
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .vendor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:620px) {

    .timeline,
    .vendor-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr
    }
}

/* GLASSMORPHISM SYSTEM
   Frontend-only visual layer. It deliberately reuses the existing CHAM palette. */
:root {
    --container-width: 1180px;
    --glass-radius: 4px;
    --glass-radius-lg: 6px;
    --glass-bg: rgb(255 255 255 / 56%);
    --glass-bg-soft: rgb(255 255 255 / 38%);
    --glass-bg-strong: rgb(248 250 255 / 78%);
    --glass-border: rgb(255 255 255 / 76%);
    --glass-border-subtle: rgb(10 54 157 / 17%);
    --glass-shadow: 0 10px 34px rgb(12 20 42 / 10%), inset 0 1px 0 rgb(255 255 255 / 60%);
    --glass-shadow-hover: 0 14px 38px rgb(12 20 42 / 15%), inset 0 1px 0 rgb(255 255 255 / 72%);
    --glass-blur: 16px;
    --page-bg: #edf3ff;
    --page-accent-1: rgb(0 196 255 / 18%);
    --page-accent-2: rgb(230 0 126 / 12%);
    --page-accent-3: rgb(255 199 0 / 10%);
    --footer-glass-bg: rgb(36 19 51 / 92%);
}

:root[data-theme='dark'] {
    --glass-bg: rgb(255 255 255 / 5%);
    --glass-bg-soft: rgb(255 255 255 / 4%);
    --glass-bg-strong: rgb(17 21 39 / 78%);
    --glass-border: rgb(255 255 255 / 13%);
    --glass-border-subtle: rgb(255 255 255 / 11%);
    --glass-shadow: 0 10px 34px rgb(255 255 255 / 5%), inset 0 1px 0 rgb(255 255 255 / 10%);
    --glass-shadow-hover: 0 14px 40px rgb(255 255 255 / 7%), inset 0 1px 0 rgb(255 255 255 / 14%);
    --page-bg: #0d1223;
    --page-accent-1: rgb(0 196 255 / 13%);
    --page-accent-2: rgb(230 0 126 / 11%);
    --page-accent-3: rgb(74 26 96 / 20%);
    --footer-glass-bg: rgb(9 12 25 / 88%);
}

html {
    background: var(--page-bg);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    background:
        radial-gradient(circle at 8% 10%, var(--page-accent-1), transparent 34rem),
        radial-gradient(circle at 92% 28%, var(--page-accent-2), transparent 31rem),
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 86%, var(--brand-cyan) 14%), var(--page-bg));
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    width: min(46vw, 540px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .7;
    pointer-events: none;
}

body::before {
    inset: 8vh auto auto -14vw;
    background: var(--page-accent-1);
}

body::after {
    inset: auto -15vw 6vh auto;
    background: linear-gradient(145deg, var(--page-accent-2), var(--page-accent-3));
}

main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

.shell {
    width: min(var(--container-width), calc(100% - 40px));
}

.glass-panel,
.glass-card,
.panel,
.product-card,
.promotion-grid article,
.gallery-grid figure,
.timeline article,
.filters,
.cart-row,
.faq details {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}

.glass-interactive,
.product-card,
.promotion-grid article,
.gallery-grid figure,
.category-item {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.glass-interactive:hover,
.product-card:hover,
.promotion-grid article:hover,
.gallery-grid figure:hover,
.category-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand-cyan) 38%, var(--glass-border));
    box-shadow: var(--glass-shadow-hover);
}

.site-header {
    background: var(--glass-bg-strong);
    border-bottom-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 2px));
    backdrop-filter: blur(calc(var(--glass-blur) + 2px));
}

nav {
    gap: 8px;
}

nav a {
    padding: 8px 10px;
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--glass-radius);
    background: var(--glass-bg-soft);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

nav a:hover,
nav a.active {
    background: var(--glass-bg-strong);
    border-color: color-mix(in srgb, var(--brand-cyan) 42%, var(--glass-border-subtle));
}

nav a::after {
    left: 9px;
    right: calc(100% - 9px);
    bottom: -1px;
    height: 3px;
    border-radius: 0;
}

nav a:hover::after,
nav a.active::after {
    right: 9px;
}

.icon-link,
.menu-toggle,
.account-dropdown,
.account-dropdown a,
.account-dropdown button,
button,
.button,
input,
select,
textarea,
.hero-controls,
.hero-controls button,
.badge,
.empty,
.detail-image,
.about-image,
.vendor-mark,
.link-list a {
    border-radius: var(--glass-radius);
}

.icon-link,
.menu-toggle,
.account-dropdown {
    background: var(--glass-bg-strong);
    border-color: var(--glass-border-subtle);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}

input,
select,
textarea {
    background: color-mix(in srgb, var(--glass-bg-strong) 82%, transparent);
    border-color: var(--glass-border-subtle);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

.hero {
    width: min(var(--container-width), calc(100% - 40px));
    height: clamp(420px, 55vw, 700px);
    min-height: 0;
    margin: clamp(18px, 3vw, 38px) auto 0;
    padding: 0;
    overflow: hidden;
    background: var(--glass-bg);
    isolation: isolate;
}

.hero-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: clamp(22px, 5vw, 58px);
    align-items: center;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgb(8 12 29 / 46%) 0%, rgb(8 12 29 / 18%) 58%, transparent 86%),
        linear-gradient(0deg, rgb(8 12 29 / 22%), transparent 48%);
}

.hero-copy {
    width: min(570px, 100%);
    margin: 0;
    padding: clamp(22px, 3.5vw, 40px);
    color: #fff;
    background: rgb(8 12 29 / 43%);
    border-color: rgb(255 255 255 / 22%);
    box-shadow: 0 12px 36px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 13%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
}

.hero-copy h1 {
    max-width: 12ch;
    margin: .18em 0;
    font-size: clamp(2.35rem, 5.3vw, 4.8rem);
    line-height: .96;
}

.hero-copy > p {
    max-width: 48ch;
}

.hero-controls {
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(18px, 3vw, 30px);
    background: rgb(8 12 29 / 48%);
    border-color: rgb(255 255 255 / 20%);
    box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.product-card,
.promotion-grid article,
.gallery-grid figure {
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image,
.detail-image {
    background: color-mix(in srgb, var(--glass-bg-strong) 70%, var(--surface-alt));
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.category-grid > .category-item {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    overflow: visible;
    border-radius: var(--glass-radius);
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text);
}

.category-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--brand-cyan) 28%, var(--glass-border));
    border-radius: var(--glass-radius);
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand-blue) 18%, transparent), color-mix(in srgb, var(--brand-magenta) 12%, transparent));
    color: var(--heading);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 5px 14px rgb(10 54 157 / 9%);
    font-size: 1.1rem;
    transition: transform 220ms ease, color 220ms ease;
}

.category-name {
    flex: 1;
    min-width: 0;
    font-weight: 800;
}

.category-arrow {
    color: var(--accent-text);
    font-size: .8rem;
    transition: transform 220ms ease;
}

.category-item:hover .category-icon {
    transform: scale(1.05);
    color: var(--brand-magenta);
}

.category-item:hover .category-arrow {
    transform: translateX(2px);
}

.timeline article,
.panel,
.filters,
.cart-row,
.faq details {
    border-radius: var(--glass-radius);
}

footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    background: var(--footer-glass-bg);
    border-top: 1px solid rgb(255 255 255 / 14%);
    box-shadow: 0 -10px 32px rgb(0 0 0 / 10%), inset 0 1px 0 rgb(255 255 255 / 6%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.fa-glass-water::before {
    content: '\e4f4';
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .glass-panel,
    .glass-card,
    .panel,
    .site-header,
    .account-dropdown {
        background: var(--surface-raised);
    }
}

@media (max-width: 950px) {
    nav {
        gap: 6px;
        border-radius: var(--glass-radius);
    }

    nav a {
        width: 100%;
    }

    .hero {
        height: clamp(430px, 68vw, 620px);
    }
}

@media (max-width: 640px) {
    .shell,
    .hero {
        width: calc(100% - 24px);
    }

    .hero {
        height: clamp(500px, 132vw, 620px);
        min-height: 0;
        margin-top: 12px;
    }

    .hero-stage {
        min-height: 0;
        padding: 16px;
        align-items: flex-end;
    }

    .hero-copy {
        width: 100%;
        padding: 20px;
        margin-bottom: 66px;
    }

    .hero-copy h1 {
        font-size: clamp(2.15rem, 11vw, 3.25rem);
    }

    .hero-controls {
        right: 16px;
        bottom: 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-grid > .category-item {
        min-height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* MOCK CATALOG + ART GALLERY
   Front-end-only content built from the local public/tt image library. */
[x-cloak] {
    display: none !important;
}

html.dialog-open,
html.dialog-open body {
    overflow: hidden;
}

.mock-showcase,
.art-preview,
.mock-catalog-shell,
.mock-gallery {
    overflow: clip;
}

.mock-catalog-shell,
.mock-gallery {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.mock-catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.mock-catalog-heading h2 {
    margin: .2em 0 .25em;
    color: var(--heading);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.mock-catalog-heading p,
.mock-gallery .section-heading p {
    max-width: 58ch;
    margin: 0;
    color: var(--text-muted);
}

.mock-catalog-heading code {
    padding: .18em .45em;
    border-radius: 6px;
    background: var(--surface-alt);
    color: var(--accent-text);
}

.view-switch,
.catalog-controls,
.gallery-pager {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
}

.view-switch {
    flex: 0 0 auto;
}

.view-switch button,
.mock-category-tabs button,
.gallery-pager button,
.catalog-controls button {
    width: auto;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
}

.view-switch button:hover,
.view-switch button.active,
.mock-category-tabs button:hover,
.mock-category-tabs button.active {
    background: var(--surface-alt);
    color: var(--heading);
    transform: none;
}

.view-switch button.active,
.mock-category-tabs button.active {
    border-color: color-mix(in srgb, var(--brand-cyan) 38%, var(--glass-border));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}

.mock-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.mock-category-tabs button {
    flex: 0 0 auto;
    gap: 7px;
    padding: 9px 13px;
    border-color: var(--glass-border-subtle);
    border-radius: 999px;
    background: var(--glass-bg-soft);
    backdrop-filter: blur(10px);
}

.mock-grid,
.mock-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mock-product-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
}

.mock-product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--brand-blue) 8%, transparent), color-mix(in srgb, var(--brand-magenta) 7%, transparent)),
        var(--surface-alt);
}

.mock-product-image img {
    width: 100%;
    height: 100%;
    padding: 5%;
    object-fit: contain;
    transition: transform 420ms ease;
}

.mock-product-card:hover .mock-product-image img {
    transform: scale(1.035);
}

.mock-product-copy {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 18px;
}

.mock-showcase .mock-product-copy {
    min-height: 210px;
}

.mock-product-copy h3 {
    margin: .35em 0 .25em;
    color: var(--heading);
    font-size: 1.05rem;
    line-height: 1.25;
}

.mock-product-copy p {
    margin: .35em 0 .8em;
    color: var(--text-muted);
    font-size: .9rem;
}

.mock-rating {
    margin-top: auto;
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 800;
}

.mock-rating span:first-child {
    color: var(--brand-yellow);
    letter-spacing: .06em;
}

.mock-price,
.catalog-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 10px 0 14px;
}

.mock-price strong,
.catalog-price strong {
    color: var(--accent-text);
    font-size: 1.25rem;
}

.mock-price del,
.catalog-price del {
    color: var(--text-muted);
    font-size: .85rem;
}

.mock-product-copy .button {
    width: 100%;
    margin-top: auto;
}

.catalog-experience {
    perspective: 1600px;
}

.catalog-book {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    min-height: 580px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius-lg);
    background: var(--glass-bg-soft);
    box-shadow: var(--glass-shadow);
    transform-style: preserve-3d;
}

.catalog-book::after {
    content: '';
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(transparent, var(--glass-border) 10% 90%, transparent);
    box-shadow: 0 0 22px rgb(0 0 0 / 12%);
    pointer-events: none;
}

.catalog-page {
    min-width: 0;
    transform-origin: center;
    backface-visibility: hidden;
}

.catalog-visual {
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 52px);
    background:
        radial-gradient(circle at 24% 20%, color-mix(in srgb, var(--brand-cyan) 18%, transparent), transparent 42%),
        radial-gradient(circle at 80% 85%, color-mix(in srgb, var(--brand-magenta) 14%, transparent), transparent 44%),
        var(--surface-alt);
}

.catalog-visual img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgb(0 0 0 / 12%));
}

.catalog-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 66px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.catalog-copy h3 {
    max-width: 15ch;
    margin: .3em 0;
    color: var(--heading);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.catalog-copy > p:not(.catalog-folio) {
    max-width: 38ch;
    color: var(--text-muted);
}

.catalog-folio {
    order: -1;
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.catalog-copy .button {
    align-self: flex-start;
    margin-top: 12px;
}

.catalog-controls {
    width: min(520px, calc(100% - 24px));
    margin: -22px auto 0;
    position: relative;
    z-index: 4;
    justify-content: space-between;
    background: var(--glass-bg-strong);
}

.catalog-controls button:hover,
.gallery-pager button:hover {
    background: var(--surface-alt);
    color: var(--heading);
    transform: none;
}

.catalog-controls strong,
.gallery-pager strong {
    padding-inline: 10px;
    color: var(--heading);
    font-size: .82rem;
    letter-spacing: .08em;
    white-space: nowrap;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
}

.art-piece {
    position: relative;
    grid-column: span 4;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface-alt);
}

.art-piece-1,
.art-piece-4 {
    grid-column: span 7;
}

.art-piece-2,
.art-piece-3 {
    grid-column: span 5;
}

.art-piece img {
    width: 100%;
    height: clamp(270px, 30vw, 420px);
    object-fit: contain;
    padding: clamp(8px, 1.2vw, 16px);
    transition: transform 520ms ease;
}

.art-piece:hover img {
    transform: scale(1.025);
}

.art-piece figcaption,
.art-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 14px;
    background: rgb(8 12 29 / 64%);
    color: white;
    text-align: left;
    backdrop-filter: blur(12px);
}

.art-piece figcaption > span,
.art-caption > b {
    color: var(--brand-yellow);
    font-size: .75rem;
    letter-spacing: .1em;
}

.art-piece figcaption div,
.art-caption > span {
    display: grid;
    min-width: 0;
}

.art-piece figcaption strong,
.art-caption strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-piece figcaption small,
.art-caption small {
    color: rgb(255 255 255 / 72%);
}

.art-button {
    display: block;
    width: auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    color: inherit;
    cursor: zoom-in;
}

.art-button:hover {
    background: var(--surface-alt);
    color: inherit;
    transform: translateY(-2px);
}

.gallery-pager {
    flex: 0 0 auto;
}

.gallery-pager button {
    min-width: 40px;
    height: 40px;
    padding: 0;
}

.art-dialog {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgb(7 10 24 / 74%);
    backdrop-filter: blur(10px);
}

.art-dialog-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    width: min(980px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 0;
    background: var(--glass-bg-strong);
}

.art-dialog-image {
    display: grid;
    place-items: center;
    min-height: 520px;
    padding: 30px;
    background: var(--surface-alt);
}

.art-dialog-image img {
    width: 100%;
    height: 100%;
    max-height: 640px;
    object-fit: contain;
}

.art-dialog-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 58px);
}

.art-dialog-copy h3 {
    margin: .25em 0;
    color: var(--heading);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.art-dialog-copy p {
    color: var(--text-muted);
}

.art-dialog-copy .button {
    align-self: flex-start;
    margin-top: 16px;
}

.art-dialog-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: var(--glass-bg-strong);
    color: var(--heading);
    font-size: 1.6rem;
    box-shadow: var(--glass-shadow);
}

@media (max-width: 1024px) {
    .mock-grid,
    .mock-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-book {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .mock-catalog-heading,
    .mock-gallery .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mock-grid,
    .mock-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-book {
        grid-template-columns: 1fr;
    }

    .catalog-book::after {
        display: none;
    }

    .catalog-visual {
        min-height: 430px;
    }

    .catalog-copy {
        min-height: 430px;
    }

    .art-piece,
    .art-piece-1,
    .art-piece-2,
    .art-piece-3,
    .art-piece-4 {
        grid-column: span 6;
    }

    .art-dialog-panel {
        grid-template-columns: 1fr;
    }

    .art-dialog-image {
        min-height: 340px;
    }
}

@media (max-width: 520px) {
    .mock-catalog-shell,
    .mock-gallery {
        width: calc(100% - 24px);
    }

    .view-switch {
        width: 100%;
    }

    .view-switch button {
        flex: 1;
        padding-inline: 9px;
    }

    .mock-grid,
    .mock-product-grid {
        grid-template-columns: 1fr;
    }

    .mock-product-copy {
        min-height: 0;
    }

    .catalog-visual {
        min-height: 330px;
        padding: 20px;
    }

    .catalog-copy {
        min-height: 390px;
        padding: 30px 24px 42px;
    }

    .catalog-copy h3 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .catalog-controls {
        width: calc(100% - 18px);
        gap: 2px;
    }

    .catalog-controls button {
        padding-inline: 10px;
        font-size: .78rem;
    }

    .art-piece,
    .art-piece-1,
    .art-piece-2,
    .art-piece-3,
    .art-piece-4 {
        grid-column: 1 / -1;
    }

    .art-piece img {
        height: 340px;
    }

    .art-dialog {
        padding: 10px;
    }

    .art-dialog-panel {
        max-height: calc(100vh - 20px);
    }

    .art-dialog-image {
        min-height: 280px;
        padding: 18px;
    }

    .art-dialog-copy {
        padding: 26px 22px 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-page,
    .art-piece,
    .mock-product-card {
        transform: none !important;
    }
}
