:root {
    --bg: #0e0e0e;
    --surface: #131313;
    --surface-2: #1c1b1b;
    --surface-3: #2a2a2a;
    --text: #e5e2e1;
    --muted: #a5a5a5;
    --line: rgba(255,255,255,.12);
    --accent: #c9c6c5;
    --black: #050505;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(20px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    background: rgba(14,14,14,.78);
    backdrop-filter: blur(18px);
}

.brand {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: .08em;
}

.main-nav {
    display: flex;
    gap: 28px;
    color: var(--muted);
    font-family: Geist, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.main-nav a:hover, .bag-link:hover { color: #fff; }

.bag-link {
    border: 1px solid var(--line);
    padding: 10px 14px;
    color: var(--accent);
    font-family: Geist, sans-serif;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: calc(100vh - 88px);
    display: grid;
    align-items: end;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(.35) contrast(1.05);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(255,255,255,.14), transparent 26%),
        linear-gradient(90deg, rgba(5,5,5,.94), rgba(5,5,5,.58), rgba(5,5,5,.86)),
        linear-gradient(0deg, #0e0e0e 0%, transparent 45%);
}

.hero-content {
    position: relative;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 64px) 120px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-family: Geist, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 920px;
    font-size: clamp(58px, 10vw, 132px);
    line-height: .88;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 560px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--line);
    padding: 0 24px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-family: Geist, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.btn.primary {
    border-color: var(--text);
    background: var(--text);
    color: var(--black);
}

.btn.ghost:hover, .btn.compact:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--black);
}

.btn.full { width: 100%; }
.btn.compact { min-height: 42px; }

.section {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 110px clamp(20px, 5vw, 64px);
}

.section-head {
    margin-bottom: 42px;
}

.section-head.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section h2, .section h1, .brand-panel h2 {
    font-size: clamp(34px, 6vw, 72px);
    line-height: .95;
    letter-spacing: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: var(--surface);
}

.category-tile span {
    color: var(--muted);
    font-family: Geist, sans-serif;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.category-tile strong {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 54px;
}

.filter-form {
    display: flex;
    align-items: end;
    gap: 12px;
}

.filter-form label {
    display: grid;
    gap: 8px;
    min-width: 190px;
    color: var(--muted);
    font-family: Geist, sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

input, select {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--black);
    color: var(--text);
    padding: 0 12px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.product-card {
    min-width: 0;
    background: var(--surface);
}

.product-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-2);
}

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

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

.product-body {
    min-height: 166px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.product-category {
    margin: 0 0 10px;
    color: var(--muted);
    font-family: Geist, sans-serif;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 18px;
    line-height: 1.15;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--accent);
    font-family: Geist, sans-serif;
    font-size: 12px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--text);
    color: var(--black);
    cursor: pointer;
    font-size: 22px;
}

.brand-panel {
    margin: 0;
    padding: 120px clamp(20px, 8vw, 140px);
    background: #666;
    color: #050505;
    text-align: center;
}

.brand-panel p:last-child {
    max-width: 720px;
    margin: 28px auto 0;
    line-height: 1.7;
}

.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 70px clamp(20px, 5vw, 64px);
    background: var(--black);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer strong {
    display: block;
    color: var(--text);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 30px;
    margin-bottom: 18px;
}

.site-footer span {
    display: block;
    color: var(--text);
    font-family: Geist, sans-serif;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.product-detail, .cart-page, .not-found {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 70px clamp(20px, 5vw, 64px) 120px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr);
    gap: 48px;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.gallery-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f4f4f4;
}

.gallery-main-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: #f4f4f4;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 64px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(5,5,5,.72);
    color: var(--text);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background .2s ease, color .2s ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
    background: var(--text);
    color: var(--black);
}

.gallery-arrow-prev { left: 16px; }
.gallery-arrow-next { right: 16px; }

.gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 9px 12px;
    background: rgba(5,5,5,.74);
    color: var(--text);
    font-family: Geist, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 10px;
}

.gallery-thumbnail {
    min-width: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: #f4f4f4;
    cursor: pointer;
    opacity: .62;
    transition: border-color .2s ease, opacity .2s ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus-visible,
.gallery-thumbnail.is-active {
    border-color: var(--text);
    opacity: 1;
}

.gallery-thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.buy-panel {
    position: sticky;
    top: 112px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.buy-panel h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: .98;
}

.buy-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.price-block {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 26px 0;
}

.price-block span, .spec-row span, .cart-summary span {
    display: block;
    color: var(--muted);
    font-family: Geist, sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.price-block strong {
    display: block;
    margin-top: 8px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 46px;
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.buy-panel .btn { margin-top: 14px; }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

.cart-items {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: var(--surface);
}

.cart-item h3 {
    font-size: 18px;
}

.cart-item button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 8px 10px;
    cursor: pointer;
}

.cart-summary {
    align-self: start;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.cart-summary strong {
    display: block;
    margin: 10px 0 18px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 44px;
}

.cart-summary p {
    color: var(--muted);
    line-height: 1.65;
}

.admin-page .section {
    padding-top: 70px;
}

.admin-note {
    min-width: 240px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.admin-note span,
.admin-stats span,
.admin-table td span,
.admin-panel-head p,
.empty-admin-state span {
    color: var(--muted);
}

.admin-note span,
.admin-stats span {
    display: block;
    margin-bottom: 8px;
    font-family: Geist, sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-note strong,
.admin-stats strong {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 28px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 36px;
    border: 1px solid var(--line);
    background: var(--line);
}

.admin-stats div {
    padding: 22px;
    background: var(--surface);
}

.admin-panel {
    margin-top: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.admin-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
    font-size: 30px;
}

.admin-panel-head p {
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-family: Geist, sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
    display: block;
}

.admin-table td span {
    margin-top: 6px;
    font-size: 13px;
}

.status-pill {
    display: inline-flex !important;
    margin: 0 !important;
    border: 1px solid var(--line);
    padding: 7px 10px;
    color: var(--text) !important;
    font-family: Geist, sans-serif;
    font-size: 11px !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.empty-admin-state {
    display: grid;
    gap: 8px;
    padding: 34px 24px;
}

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid, .cart-layout { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buy-panel { position: static; }
}

@media (max-width: 760px) {
    .main-nav { display: none; }
    .hero-content { padding-bottom: 78px; }
    .section { padding-top: 72px; padding-bottom: 72px; }
    .section-head.split, .filter-form { display: grid; }
    .filter-form label { min-width: 0; }
    .product-grid, .category-grid, .site-footer { grid-template-columns: 1fr; }
    .gallery-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gallery-arrow { width: 40px; height: 56px; }
    .gallery-arrow-prev { left: 10px; }
    .gallery-arrow-next { right: 10px; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-panel-head { display: grid; }
    .cart-item { grid-template-columns: 1fr; }
}
