@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;650;700;750;800&display=swap');

:root {
    color-scheme: light;
    --ink: #111c32;
    --muted: #4b5870;
    --blue: #2348da;
    --blue-dark: #1739ac;
    --border: #dbe2ed;
    --surface: #f3f6fb;
    --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: Lexend, system-ui, sans-serif; color: var(--ink); background: #fcfdff; font-size: 1rem; }
a { color: var(--blue-dark); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #657df0; outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .65rem; font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.3rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { font-size: 1.16rem; }
p { line-height: 1.65; }
.shell { width: min(1280px, calc(100% - 72px)); margin-inline: auto; }
.page-shell { flex: 1; padding-block: 30px 64px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.nav-shell, .footer-shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-shell { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.045em; font-size: 1.4rem; }
.brand-icon { position: relative; display: inline-block; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); }
.brand-icon::before { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid white; border-radius: 3px; inset: 11px 10px 9px; }
.brand-icon::after { content: ""; position: absolute; width: 7px; height: 5px; border: 2px solid white; border-bottom: 0; border-radius: 3px 3px 0 0; inset: 7px auto auto 13.5px; }
.shop-nav, .account-nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.6rem, 2vw, 1.25rem); }
.shop-nav a, .account-nav a, .link-button { text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 550; }
.shop-nav a:hover, .account-nav a:hover, .link-button:hover { text-decoration: underline; }
.cart-link { display: inline-flex; gap: .5rem; align-items: center; background: #edf1ff; padding: .6rem .9rem; border-radius: 32px; white-space: nowrap; }
.cart-link span { display: grid; place-items: center; padding: 0 .25rem; min-width: 1.35rem; height: 1.35rem; color: white; background: var(--blue-dark); border-radius: 1rem; font-size: .8rem; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 3; transform: translateY(-200%); background: white; padding: .6rem; }
.skip-link:focus { transform: none; }
.shop-hero { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 435px; overflow: hidden; border-radius: 24px; background: #e8efff; }
.hero-copy { align-self: center; padding: clamp(24px, 4vw, 68px); }
.hero-copy h1 { font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 750; line-height: 1.04; letter-spacing: -.065em; margin-bottom: 1.1rem; }
.hero-copy p { color: var(--muted); max-width: 32ch; margin-bottom: 1.55rem; }
.hero-image { width: 100%; height: 100%; min-height: 435px; object-fit: cover; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: .63rem 1rem; font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); color: white; }
.secondary { border-color: var(--border); background: white; color: var(--ink); }
.secondary:hover { background: #edf1ff; color: var(--blue-dark); }
.small { min-height: 38px; font-size: .82rem; padding: .55rem .75rem; }
.danger { background: #a32135; color: white; }
.danger-link { color: #a32135 !important; }
.link-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.catalog { scroll-margin-top: 18px; margin-top: clamp(28px, 5vw, 60px); }
.page-shell > .catalog:first-child { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.1rem; margin-bottom: 1rem; }
.section-head h1, .section-head h2, .section-head p { margin: 0; }
.section-head p, .muted { color: var(--muted); font-size: .92rem; }
.search { display: flex; align-items: center; gap: .55rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filters a { text-decoration: none; padding: .55rem .9rem; background: white; color: var(--ink); font-size: .9rem; border: 1px solid var(--border); border-radius: 24px; }
.filters .selected { background: #e6edff; border-color: #a9b8f4; color: var(--blue-dark); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; }
.product-card { border: 1px solid var(--border); border-radius: 17px; overflow: hidden; background: white; }
.product-photo { display: block; background: var(--surface); }
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-copy { padding: 1rem; }
.product-copy h3 { margin-top: .25rem; }
.product-copy a { color: inherit; text-decoration: none; }
.product-copy a:hover { text-decoration: underline; }
.product-buy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem; }
.product-buy strong { font-size: 1.05rem; }
.panel { border: 1px solid var(--border); border-radius: 16px; background: white; }
.detail-grid, .checkout-grid { display: grid; align-items: start; gap: 1.25rem; }
.detail-grid { grid-template-columns: 1fr 1fr; }
.checkout-grid { grid-template-columns: minmax(0, 2.3fr) minmax(230px, 1fr); }
.detail-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.detail-copy, .summary-panel, .form-panel { padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.summary-panel h2 { font-size: 1.24rem; letter-spacing: -.02em; }
.form-panel { max-width: 720px; }
.large-price { color: var(--blue-dark); font-size: 1.65rem; font-weight: 700; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; margin-block: 1.25rem; }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.back-link { display: inline-block; margin-bottom: 1.2rem; font-weight: 550; }
.field { display: grid; gap: .3rem; margin-bottom: 1.15rem; }
.field label { font-weight: 600; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 44px; color: var(--ink); background: white; border: 1px solid #aebad0; border-radius: 8px; padding: .6rem .75rem; font: inherit; }
input[type=file] { max-width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.form-error { color: #a32135; }
.form-error:empty { display: none; }
.form-photo { width: 105px; height: 105px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.store-table { width: 100%; border-collapse: collapse; text-align: left; }
.store-table th, .store-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border); }
.store-table th { color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.table-product { display: flex; align-items: center; gap: .65rem; min-width: 155px; color: var(--ink); font-weight: 550; }
.table-product img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; }
.quantity-form { display: flex; gap: .4rem; align-items: center; }
.quantity-form input { width: 69px !important; }
.empty, .notice { padding: 1.2rem; }
.notice { color: #183b62; background: #ebf2ff; border-radius: 10px; font-weight: 500; }
.confirmation { margin: 2rem auto; text-align: center; }
.confirmation-icon { font-size: 1.85rem; color: var(--blue-dark); }
.site-footer { border-top: 1px solid var(--border); padding-block: 1.4rem; background: var(--surface); }
.site-footer p { margin: 0; color: var(--muted); }
@media(max-width: 920px) {
    .shell { width: calc(100% - 42px); }
    .shop-hero, .hero-image { min-height: 365px; }
    .checkout-grid { grid-template-columns: minmax(0, 1fr); }
}
@media(max-width: 700px) {
    .shell { width: calc(100% - 30px); }
    .nav-shell { flex-wrap: wrap; gap: .6rem; padding-block: .7rem; }
    .shop-nav { order: 3; width: 100%; }
    .brand { font-size: 1.17rem; }
    .brand-icon { transform: scale(.88); margin-right: -.15rem; }
    .account-nav { justify-content: flex-end; }
    .shop-hero, .detail-grid { grid-template-columns: 1fr; }
    .hero-image { min-height: 0; height: 250px; }
    .hero-copy { padding: 1.5rem; }
    .hero-copy h1 { font-size: clamp(2.45rem, 9vw, 3.4rem); }
    .search { width: 100%; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .product-copy { padding: .75rem; }
    .footer-shell { flex-wrap: wrap; }
}
@media(max-width: 380px) {
    .form-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}
