:root {
    --store-bg: #f7f8fb;
    --store-surface: #ffffff;
    --store-ink: #0f4b9a;
    --store-ink-soft: #1d5fae;
    --store-warm: #ffd35f;
    --store-line: #d9e2ef;
    --store-text: #344357;
    --store-muted: #65748a;
    --store-radius: 1.2rem;
    --store-shadow-sm: 0 10px 24px rgba(12, 56, 122, 0.08);
    --store-shadow-lg: 0 20px 48px rgba(12, 56, 122, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--store-text);
    background:
        radial-gradient(1200px 500px at 95% -10%, rgba(255, 211, 95, 0.28), transparent 70%),
        radial-gradient(1000px 500px at 5% 0%, rgba(15, 75, 154, 0.10), transparent 65%),
        var(--store-bg);
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 2.2rem));
    margin: 0 auto;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(15, 75, 154, 0.09);
    background: rgba(247, 248, 251, 0.92);
    backdrop-filter: blur(10px);
}

.store-header__inner {
    min-height: 5.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.store-brand img {
    height: 3rem;
    width: auto;
}

.store-nav {
    display: flex;
    gap: 1.2rem;
    font-weight: 700;
    color: var(--store-muted);
}

.store-nav a[aria-current='page'] {
    color: var(--store-ink);
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 75, 154, 0.17);
    padding: 0.45rem 1rem;
    font-weight: 700;
    color: var(--store-ink);
    background: #fff;
}

.cart-pill strong {
    min-width: 2rem;
    text-align: center;
    border-radius: 999px;
    background: var(--store-warm);
    padding: 0.25rem 0.6rem;
    color: #29313f;
}

.store-hero {
    padding: 3rem 0 2.4rem;
}

.store-hero__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.3rem;
    align-items: stretch;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--store-ink);
}

.store-hero__copy h1 {
    margin: 0.5rem 0 1rem;
    font-family: 'Cormorant Garamond', serif;
    color: #123a78;
    font-size: clamp(2.2rem, 4.1vw, 3.6rem);
    line-height: 0.97;
}

.store-hero__copy p {
    margin: 0;
    max-width: 60ch;
    color: var(--store-muted);
}

.store-hero__cards {
    display: grid;
    gap: 0.9rem;
}

.store-hero__cards article {
    border-radius: var(--store-radius);
    background: linear-gradient(130deg, #1552a1, #1f68be);
    box-shadow: var(--store-shadow-sm);
    color: #fff;
    padding: 1.1rem 1.25rem;
}

.store-hero__cards article:last-child {
    background: linear-gradient(130deg, #efba37, #ffd769);
    color: #1f2430;
}

.store-hero__cards small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-hero__cards strong {
    font-size: 1.2rem;
}

.store-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.2rem;
    padding-bottom: 2.8rem;
}

.filters,
.products {
    background: var(--store-surface);
    border-radius: calc(var(--store-radius) + 0.2rem);
    box-shadow: var(--store-shadow-sm);
    border: 1px solid rgba(15, 75, 154, 0.08);
}

.filters {
    padding: 1.2rem;
    align-self: start;
    position: sticky;
    top: 6.3rem;
}

.filters__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.filters__head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #163f7a;
}

.text-action {
    border: 0;
    background: none;
    color: var(--store-ink-soft);
    font-weight: 700;
    cursor: pointer;
}

.filter-group {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}

.filter-group label,
.filter-group__label {
    font-size: 0.87rem;
    color: var(--store-muted);
}

.filter-group input[type='search'],
.filter-group select {
    border: 1px solid var(--store-line);
    border-radius: 0.9rem;
    min-height: 2.6rem;
    padding: 0 0.75rem;
    outline: none;
}

.filter-group input[type='search']:focus,
.filter-group select:focus {
    border-color: var(--store-ink-soft);
    box-shadow: 0 0 0 3px rgba(24, 87, 170, 0.14);
}

.filter-group input[type='range'] {
    accent-color: var(--store-ink);
}

.filter-group--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border: 1px solid var(--store-line);
    border-radius: 999px;
    min-height: 2rem;
    padding: 0 0.75rem;
    background: #fff;
    color: #3e4f65;
    font-weight: 700;
    cursor: pointer;
}

.chip.is-active {
    background: #1d5fae;
    border-color: #1d5fae;
    color: #fff;
}

.products {
    padding: 1.2rem;
}

.products__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.products__head h2 {
    margin: 0;
    font-size: 1.28rem;
    color: #163f7a;
}

.products__head p {
    margin: 0;
    color: var(--store-muted);
    font-size: 0.92rem;
}

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

.product-card {
    border: 1px solid rgba(15, 75, 154, 0.1);
    border-radius: var(--store-radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(12, 56, 122, 0.08);
}

.product-card__media {
    min-height: 7.4rem;
    padding: 1rem;
    background: linear-gradient(140deg, rgba(15, 75, 154, 0.92), rgba(32, 101, 181, 0.88));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-card__category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    opacity: 0.92;
}

.product-card__badge {
    font-size: 1.12rem;
}

.product-card__body {
    padding: 1rem;
}

.product-card__name {
    margin: 0 0 0.35rem;
    color: #183f77;
}

.product-card__desc {
    margin: 0;
    color: var(--store-muted);
    font-size: 0.94rem;
}

.product-card__meta {
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-card__meta li {
    border-radius: 999px;
    border: 1px solid rgba(15, 75, 154, 0.15);
    font-size: 0.74rem;
    padding: 0.25rem 0.55rem;
    color: #2a537f;
    font-weight: 700;
}

.product-card__size-field {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.4rem;
}

.product-card__size-field span {
    font-size: 0.76rem;
    color: #5d6f87;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card__size-select {
    border: 1px solid var(--store-line);
    border-radius: 0.8rem;
    min-height: 2.4rem;
    padding: 0 0.65rem;
    color: #274b79;
    background: #fff;
}

.product-card__size-select:focus {
    outline: none;
    border-color: var(--store-ink-soft);
    box-shadow: 0 0 0 3px rgba(24, 87, 170, 0.14);
}

.product-card__footer {
    margin-top: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.product-card__footer small {
    display: block;
    color: var(--store-muted);
    font-size: 0.73rem;
}

.product-card__footer strong {
    font-size: 1.1rem;
    color: #123f7f;
}

.button-add {
    border: 0;
    border-radius: 999px;
    min-height: 2.5rem;
    padding: 0 1rem;
    font-weight: 800;
    background: var(--store-ink);
    color: #fff;
    cursor: pointer;
}

.button-add[disabled] {
    cursor: not-allowed;
    background: #9ba9bc;
}

.product-empty {
    border: 1px dashed rgba(15, 75, 154, 0.3);
    border-radius: var(--store-radius);
    padding: 1.4rem;
    color: var(--store-muted);
    text-align: center;
    background: #f9fbff;
}

.checkout-page {
    padding-bottom: 2.8rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.2rem;
}

.checkout-form,
.checkout-summary {
    background: #fff;
    border-radius: calc(var(--store-radius) + 0.2rem);
    box-shadow: var(--store-shadow-sm);
    border: 1px solid rgba(15, 75, 154, 0.08);
}

.checkout-form {
    padding: 1.2rem;
}

.checkout-form h2 {
    margin: 0;
    color: #173f7a;
}

.checkout-form__lead {
    margin: 0.45rem 0 1rem;
    color: var(--store-muted);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.checkout-form label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: #5e7088;
    margin-top: 0.8rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    border: 1px solid var(--store-line);
    border-radius: 0.9rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.75rem;
    outline: none;
}

.checkout-form textarea {
    resize: vertical;
    min-height: 6.4rem;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: var(--store-ink-soft);
    box-shadow: 0 0 0 3px rgba(24, 87, 170, 0.14);
}

.checkout-submit {
    margin-top: 1.1rem;
    border: 0;
    border-radius: 999px;
    min-height: 2.9rem;
    width: 100%;
    font-weight: 800;
    color: #fff;
    background: var(--store-ink);
    cursor: pointer;
}

.checkout-status {
    min-height: 1.35rem;
    margin: 0.7rem 0 0;
    font-size: 0.92rem;
    color: #0f4b9a;
}

.checkout-summary {
    padding: 1.2rem;
    align-self: start;
    position: sticky;
    top: 6.3rem;
}

.checkout-summary__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.checkout-summary__head h2 {
    margin: 0;
    color: #173f7a;
}

.checkout-summary__head a {
    color: var(--store-ink-soft);
    font-weight: 700;
    font-size: 0.9rem;
}

.checkout-items {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.checkout-item {
    border: 1px solid rgba(15, 75, 154, 0.11);
    border-radius: 1rem;
    padding: 0.85rem;
    display: grid;
    gap: 0.8rem;
}

.checkout-item__name {
    margin: 0;
    color: #1c447d;
    font-size: 1rem;
}

.checkout-item__meta {
    margin: 0.3rem 0 0;
    color: var(--store-muted);
    font-size: 0.87rem;
}

.checkout-item__size-field {
    display: grid;
    gap: 0.35rem;
}

.checkout-item__size-field span {
    font-size: 0.76rem;
    color: #5d6f87;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-item__size-select {
    border: 1px solid var(--store-line);
    border-radius: 0.75rem;
    min-height: 2.2rem;
    padding: 0 0.65rem;
    color: #274b79;
    background: #fff;
}

.checkout-item__size-select:focus {
    outline: none;
    border-color: var(--store-ink-soft);
    box-shadow: 0 0 0 3px rgba(24, 87, 170, 0.14);
}

.checkout-item__controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.checkout-item__controls button {
    border: 1px solid var(--store-line);
    border-radius: 999px;
    min-height: 2rem;
    min-width: 2rem;
    background: #fff;
    color: #24558f;
    font-weight: 800;
    cursor: pointer;
}

.checkout-item__qty {
    min-width: 2rem;
    text-align: center;
}

.checkout-item__remove {
    padding: 0 0.65rem;
}

.checkout-totals {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.checkout-totals div {
    display: flex;
    justify-content: space-between;
    color: #4f6179;
}

.checkout-totals dt,
.checkout-totals dd {
    margin: 0;
}

.checkout-totals__grand {
    border-top: 1px solid rgba(15, 75, 154, 0.14);
    margin-top: 0.45rem;
    padding-top: 0.65rem;
    font-size: 1.06rem;
    color: #163f79;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 820px) {
    .store-header__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.8rem 0;
    }

    .store-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .store-hero__grid {
        grid-template-columns: 1fr;
    }

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

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

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