:root {
    color-scheme: light;
    --ink: #18181b;
    --muted: #62646f;
    --line: #e4e7ec;
    --surface: #ffffff;
    --surface-soft: #f7f8fb;
    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-soft: #ccfbf1;
    --warning: #b45309;
    --sold: #b91c1c;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

a {
    color: inherit;
}

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

.site-header {
    display: grid;
    place-items: center;
    padding: clamp(2.4rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(228, 231, 236, 0.85);
    background:
        linear-gradient(135deg, rgba(204, 251, 241, 0.74), rgba(255, 255, 255, 0.88) 48%, rgba(219, 234, 254, 0.68)),
        rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
}

.site-header-content {
    width: min(880px, 100%);
    text-align: center;
}

.site-header-content p:last-child {
    max-width: 42rem;
    margin: 1.1rem auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    margin: 0 0 1rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 999px;
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-size: clamp(2.45rem, 8vw, 6.8rem);
    font-weight: 900;
    line-height: 0.88;
    text-decoration: none;
    background: transparent;
    box-shadow: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a,
.back-link {
    min-height: 2.35rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.back-link:hover {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 251, 0.94));
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-section h1,
.product-panel h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 0.98;
}

.hero-section p:not(.eyebrow) {
    max-width: 38rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.4rem;
    isolation: isolate;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.banner-track {
    display: flex;
    transition: transform 360ms ease;
}

.banner-slide {
    position: relative;
    display: grid;
    min-width: 100%;
    min-height: clamp(340px, 38vw, 460px);
    aspect-ratio: 16 / 6.25;
    overflow: hidden;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.banner-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -6px;
}

.banner-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-controls {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.slider-button,
.slider-dot {
    border: 1px solid rgba(15, 118, 110, 0.2);
    color: var(--accent-strong);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
    cursor: pointer;
}

.slider-button {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.slider-dot {
    width: 0.72rem;
    height: 0.72rem;
    padding: 0;
    border-radius: 50%;
}

.slider-dot[aria-current] {
    width: 1.8rem;
    border-radius: 999px;
    background: var(--accent);
}

.product-grid {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.product-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.filter-field {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 2.85rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: var(--radius);
    color: var(--ink);
    font: inherit;
    background: var(--surface);
}

.filter-field input:focus,
.filter-field select:focus {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    border-color: var(--accent);
}

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

.product-card,
.product-panel,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.product-card {
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.13);
}

.product-card-media,
.product-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #edf7f6;
}

.product-card-media img,
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(99, 102, 241, 0.08)),
        var(--surface-soft);
}

.product-placeholder span {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border: 1px solid rgba(15, 118, 110, 0.28);
    border-radius: var(--radius);
    color: var(--accent-strong);
    font-size: 2rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.72);
}

.product-card-body,
.product-panel {
    padding: 1.15rem;
}

.product-kicker,
.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0 0.55rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 999px;
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.discount-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0 0.55rem;
    border: 1px solid rgba(180, 83, 9, 0.24);
    border-radius: 999px;
    color: var(--warning);
    background: #ffedd5;
}

.status-pill:has(> :empty) {
    display: none;
}

.product-card h2 {
    margin: 0.8rem 0 0.35rem;
    font-size: 1.25rem;
    line-height: 1.2;
}

.product-card h2 a {
    text-decoration: none;
}

.price {
    margin: 0.6rem 0;
    color: var(--accent-strong);
    font-size: 1.55rem;
    font-weight: 900;
}

.quantity-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    background: var(--surface-soft);
}

.quantity-field select {
    min-width: 4.5rem;
    min-height: 2.15rem;
    padding: 0 0.7rem;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: var(--radius);
    color: var(--accent-strong);
    font: inherit;
    background: var(--surface);
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 900;
    font: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    cursor: pointer;
}

.button-primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 12px 25px rgba(15, 118, 110, 0.24);
}

.button-secondary {
    width: 100%;
    color: var(--accent-strong);
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(204, 251, 241, 0.42);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.18);
}

.cart-panel {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    width: min(360px, calc(100% - 2rem));
    max-height: min(460px, calc(100vh - 2rem));
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

.cart-panel-body {
    display: block;
}

.cart-panel-header,
.cart-total,
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-panel-header {
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.cart-panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.cart-header-status {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cart-count {
    display: grid;
    min-width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: var(--accent);
}

.cart-toggle-label {
    display: none;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 900;
}

.cart-items {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
}

.cart-empty {
    margin: 0;
    color: var(--muted);
}

.cart-item {
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.cart-item a {
    display: block;
    font-weight: 900;
    text-decoration: none;
}

.cart-item span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.cart-total {
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    font-weight: 900;
}

.cart-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.85rem;
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    background: #16a34a;
    box-shadow: 0 12px 25px rgba(22, 163, 74, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(22, 163, 74, 0.24);
}

.cart-checkout[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.5;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
}

.product-media {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-panel {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.product-panel .product-kicker {
    margin-top: 1rem;
}

.product-copy {
    color: var(--muted);
    line-height: 1.7;
}

.product-specs {
    display: grid;
    gap: 0.65rem;
    margin: 1.2rem 0 0;
}

.product-specs div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.product-specs dt {
    color: var(--muted);
    font-weight: 700;
}

.product-specs dd {
    margin: 0;
    font-weight: 900;
}

.empty-state {
    margin-top: 1.4rem;
    padding: 2rem;
    text-align: center;
}

.empty-state h2 {
    margin: 0;
}

.empty-state p {
    color: var(--muted);
}

.product-filter-empty {
    margin-top: 1.4rem;
}

.site-footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0;
    color: var(--muted);
}

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

@media (max-width: 860px) {
    .product-grid-responsive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .banner-slide {
        min-height: 310px;
        aspect-ratio: 16 / 7.4;
    }

    .slider-button {
        width: 2.45rem;
        height: 2.45rem;
        font-size: 1.55rem;
    }
}

@media (max-width: 720px) {
    .hero-section,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .button-primary {
        width: 100%;
    }

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

    .hero-section h1,
    .product-panel h1 {
        font-size: 2.35rem;
    }

    .brand {
        font-size: clamp(2.6rem, 14vw, 4.6rem);
    }

    .banner-slide {
        min-height: 360px;
        aspect-ratio: 4 / 5;
    }

    .banner-controls {
        right: 0.85rem;
        bottom: 0.85rem;
        left: 0.85rem;
        justify-content: space-between;
    }

    .slider-button {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.4rem;
    }

    .slider-dots {
        padding: 0.38rem;
    }

    .slider-dot {
        width: 0.62rem;
        height: 0.62rem;
    }

    .slider-dot[aria-current] {
        width: 1.45rem;
    }

    .cart-panel {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 78vh;
        padding: 0.85rem 1rem max(0.85rem, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .cart-panel::before {
        content: "";
        display: block;
        width: 2.75rem;
        height: 0.28rem;
        margin: 0 auto 0.7rem;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .cart-panel-body {
        display: none;
        max-height: 54vh;
        overflow: auto;
        padding-top: 0.5rem;
    }

    .cart-panel.is-open .cart-panel-body {
        display: block;
    }

    .cart-panel-header .eyebrow {
        display: none;
    }

    .cart-panel-header h2 {
        font-size: 1rem;
    }

    .cart-toggle-label {
        display: inline-flex;
    }

    .cart-items {
        margin: 0.75rem 0;
    }

    .cart-item {
        align-items: flex-start;
    }

    .site-footer {
        padding-bottom: 6rem;
    }
}

@media (max-width: 520px) {
    .product-grid-responsive {
        grid-template-columns: 1fr;
    }
}
