:root {
    --blue: #0f4c81;
    --green: #10b981;
    --white: #fff;
    --text: #0f172a;
    --muted: #475569;
    --border: #dbeafe;
    --shadow: 0 24px 80px rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fbff, #eff7f9);
    min-height: 100vh
}

.page-shell {
    max-width: 1300px;
    margin: auto;
    padding: 0 24px 48px
}

.site-header {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1240px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 20px;
    z-index: 60
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 18px;
    background: #000
}

.brand-name,
.brand-tagline {
    display: block;
    color: #fff
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800
}

.brand-tagline {
    margin-top: 4px;
    color: rgba(255, 255, 255, .85)
}

.site-nav,
.account-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600
}

#accountStatus {
    color: rgba(255, 255, 255, .9);
    font-weight: 600
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green))
}

.button-secondary {
    color: var(--blue);
    background: rgba(15, 76, 129, .1)
}

.hidden {
    display: none !important
}

.hero-section {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 18px 0 12px
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 78vh;
    border-radius: 20px;
    overflow: hidden;
    background: #dfeaf7;
    box-shadow: var(--shadow)
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s
}

.hero-slide.active {
    opacity: 1
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero-slider-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 26px 24px 20px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .8));
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 16px
}

.hero-slider-copy {
    max-width: 72%
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55)
}

.hero-dot.active {
    background: #fff
}

.hero-copy h1 {
    font-size: clamp(1.5rem, 2.1vw, 2.5rem);
    line-height: 1.18
}

.hero-copy p,
.product-card p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.7
}

.hero-actions,
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px
}

.shop-tools {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.search-box {
    flex: 1 1 360px
}

.search-box input,
.shop-filter-box select {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font: inherit
}

.search-meta {
    color: var(--muted)
}

.section-heading {
    margin: 64px 0 24px
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.6rem)
}

.section-heading p {
    margin-top: 12px;
    color: var(--muted);
    max-width: 760px
}

.product-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px
}

.product-card .product-image-carousel {
    min-height: 260px;
    overflow: hidden
}

.product-card .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-card .product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue)
}

.product-card .buy-button {
    flex: 1;
    min-width: 140px
}

.features-section,
.contact-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px
}

.feature-card,
.contact-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px
}

.contact-section {
    margin-top: 48px
}

.contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.contact-card a {
    color: var(--blue);
    word-break: break-word
}

.page-footer {
    margin-top: 72px;
    padding: 26px 0;
    color: var(--muted);
    border-top: 1px solid rgba(15, 23, 42, .08)
}

@media(max-width:900px) {
    .hero-slider {
        min-height: 62vh
    }

    .site-header {
        width: calc(100% - 32px);
        padding: 10px 14px
    }
}

@media(max-width:840px) {
    .site-header {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-bottom: 18px;
        background: var(--blue);
        border-radius: 0 0 20px 20px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start
    }

    .site-nav {
        width: 100%
    }

    .product-grid,
    .features-section,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .shop-tools {
        flex-direction: column;
        align-items: stretch
    }

    .search-box {
        flex: none;
        width: 100%;
    }

    .shop-filter-box {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .shop-filter-box label {
        flex: 0 0 auto;
        font-weight: 700;
        color: var(--muted);
    }

    .shop-filter-box select {
        flex: 1;
        min-width: 0;
    }
}

@media(max-width:620px) {
    .page-shell {
        padding: 0 16px 32px
    }

    .site-header {
        padding: 16px;
        gap: 16px;
        align-items: stretch
    }

    .brand-logo {
        width: 46px;
        height: 46px
    }

    .product-grid {
        grid-template-columns: 1fr
    }

    .button {
        width: 100%
    }

    .hero-slider {
        min-height: 36vh
    }

    .hero-slider-overlay {
        display: none;
    }

    .hero-slider-overlay {
        padding: 18px 16px 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .hero-slider-copy {
        max-width: 100%;
    }

    .hero-slider-copy h2 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .hero-slider-copy p {
        font-size: .84rem;
        line-height: 1.4;
        margin: 0;
    }

    .hero-slider-indicators {
        display: flex;
        gap: 6px;
    }

    .hero-dot {
        width: 9px;
        height: 9px;
    }
}