/* ZERO hoodie store */
:root {
    --green: #173b30;
    --green-2: #22513f;
    --ink: #111;
    --muted: #6b6b6b;
    --line: #e6e6e6;
    --soft: #f2f2f1;
    --bg: #fff;
    --danger: #b3261e;
    --radius: 10px;
    --wrap: 1200px;
    --display: "Syncopate", "Arial Black", sans-serif;
    --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.4rem; border-radius: 8px; border: 1.5px solid var(--green); background: var(--green); color: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .45rem .9rem; font-size: .8rem; border-radius: 6px; }
.btn-lg { padding: .95rem 1.9rem; font-size: .95rem; border-radius: 10px; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
.link { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1rem; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: .82; letter-spacing: .02em; color: var(--green); display: grid; }
.logo span { display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; font-size: .9rem; color: #444; }
.nav-links a { padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); font-weight: 600; border-color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; padding: 0; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--green); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.lang { display: flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 600; }
.lang svg { width: 18px; height: 18px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .dropdown { position: absolute; right: 0; top: calc(100% + .6rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.08); min-width: 190px; padding: .4rem; display: grid; }
.user-menu .dropdown a, .user-menu .dropdown button { padding: .55rem .75rem; border-radius: 6px; font-size: .88rem; text-align: left; background: none; border: 0; cursor: pointer; }
.user-menu .dropdown a:hover, .user-menu .dropdown button:hover { background: var(--soft); }
.search-bar { display: none; border-top: 1px solid var(--line); padding: .9rem 0; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: .6rem; }
.menu-toggle { display: none; }

/* Hero */
.hero { background: var(--soft); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 520px; gap: 2rem; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: .01em; color: var(--green); text-transform: uppercase; margin: 0 0 1.2rem; }
.hero p { color: #555; max-width: 30rem; margin: 0 0 2rem; font-size: .98rem; }
.hero-img { align-self: end; justify-self: center; width: min(100%, 480px); margin-top: 2rem; }

/* Sections */
.section { padding: 4.2rem 0 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); text-transform: uppercase; color: var(--green); letter-spacing: .02em; margin: 0; }
.page-head { padding: 3rem 0 1.5rem; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 9 / 10; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.wish { position: absolute; top: 12px; right: 12px; margin: 0; }
.wish button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--green); background: #fff; color: var(--green); display: grid; place-items: center; cursor: pointer; padding: 0; }
.wish button svg { width: 15px; height: 15px; }
.wish button.on { background: var(--green); color: #fff; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .55rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.card-body { padding-top: .9rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-title { font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.swatches { display: flex; gap: .35rem; }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }
.price { font-size: 1.35rem; font-weight: 700; }
.price del { font-size: .9rem; font-weight: 500; color: var(--muted); margin-right: .35rem; }
.empty { padding: 3rem; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.6rem; align-items: start; }
.t-list { display: grid; gap: 1rem; }
.t-item { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: var(--soft); border: 0; cursor: pointer; text-align: left; width: 100%; transition: background .2s, color .2s; }
.t-item.active { background: var(--green); color: #fff; }
.t-item small { display: block; font-size: .75rem; opacity: .7; }
.t-item strong { font-weight: 600; }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; background: #cfd8d4; display: grid; place-items: center; font-weight: 700; color: var(--green); font-size: .9rem; }
.t-panel { display: none; }
.t-panel.active { display: block; animation: fade .3s ease; }
.t-panel h3 { font-size: 1.15rem; font-weight: 600; margin: .3rem 0 .4rem; }
.t-panel p { color: #555; margin: .7rem 0 0; }
.stars { color: var(--green); letter-spacing: .15em; font-size: 1.05rem; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { margin-top: 5rem; background: var(--soft); padding: 3rem 0 2rem; }
.footer-top { display: grid; justify-items: center; gap: 1.4rem; }
.footer-top .nav-links { gap: 1.6rem; font-size: .82rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.subscribe { display: flex; gap: .6rem; }
.subscribe input { width: 260px; }
.copyright { font-size: .78rem; color: var(--muted); }

/* Forms */
.input, .select, .textarea { width: 100%; padding: .7rem .85rem; border: 1.5px solid #cfcfcf; border-radius: 8px; background: #fff; font-size: .92rem; transition: border-color .2s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); }
.textarea { min-height: 110px; resize: vertical; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field .hint { font-size: .78rem; color: var(--muted); }
.error { color: var(--danger); font-size: .8rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }

/* Auth */
.auth { max-width: 440px; margin: 4rem auto; padding: 2.2rem; border: 1px solid var(--line); border-radius: 14px; }
.auth h1 { font-family: var(--display); font-size: 1.4rem; color: var(--green); margin: 0 0 .4rem; text-transform: uppercase; }
.auth p.sub { color: var(--muted); margin: 0 0 1.6rem; font-size: .92rem; }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem 0; }
.product-media { border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 9/10; border: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; margin: .5rem 0 1rem; }
.product .price { font-size: 1.8rem; }
.option-group { margin: 1.4rem 0; }
.option-group .label { font-size: .85rem; font-weight: 600; margin-bottom: .55rem; }
.options { display: flex; gap: .55rem; flex-wrap: wrap; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.opt-color { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #ccc; cursor: pointer; display: block; }
.options input:checked + .opt-color { box-shadow: 0 0 0 2px var(--green); }
.opt-size { min-width: 46px; padding: .5rem .7rem; border: 1.5px solid #cfcfcf; border-radius: 8px; text-align: center; font-weight: 600; font-size: .85rem; cursor: pointer; display: block; }
.options input:checked + .opt-size { border-color: var(--green); background: var(--green); color: #fff; }
.options input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.qty { width: 90px; }
.buy-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.muted { color: var(--muted); }
.breadcrumb { font-size: .82rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }

/* Tables (cart, orders, admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #fafafa; }
tr:last-child td { border-bottom: 0; }
.thumb { width: 60px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.summary { border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; position: sticky; top: 100px; background: #fff; }
.summary h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.summary .line { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .92rem; }
.summary .total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 700; font-size: 1.1rem; }
.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.status { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: capitalize; background: #eee; }
.status-pending { background: #fff4d6; color: #7a5800; }
.status-processing { background: #dfeefc; color: #134c80; }
.status-shipped { background: #e8e3fb; color: #47318f; }
.status-delivered { background: #dcf3e5; color: #17603a; }
.status-cancelled { background: #fbe1df; color: #8d1f17; }

/* Flash */
.flash { padding: .85rem 1.1rem; border-radius: 8px; margin: 1rem 0; font-size: .92rem; }
.flash-success { background: #e3f1ea; color: var(--green); }
.flash-error { background: #fbe4e2; color: var(--danger); }

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2.2rem 0 0; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: .88rem; }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .disabled { opacity: .4; }

/* Shop toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .45rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 600; }
.chip.active, .chip:hover { border-color: var(--green); color: var(--green); }

/* Admin */
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; background: #f6f7f6; }
.admin aside { background: var(--green); color: #fff; padding: 1.6rem 1rem; position: sticky; top: 0; height: 100vh; }
.admin aside .logo { color: #fff; margin: 0 .6rem 2rem; }
.admin aside nav { display: grid; gap: .2rem; }
.admin aside a, .admin aside button { padding: .65rem .8rem; border-radius: 8px; font-size: .9rem; color: rgba(255,255,255,.82); background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.admin aside a:hover, .admin aside a.active, .admin aside button:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin main { padding: 2rem 2.4rem; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 1.5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.stat small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.stat div { font-size: 1.6rem; font-weight: 700; margin-top: .2rem; color: var(--green); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 1.4rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials, .cart-layout, .product, .two-col { grid-template-columns: 1fr; }
    .summary { position: static; }
    .admin { grid-template-columns: 1fr; }
    .admin aside { position: static; height: auto; }
    .admin aside nav { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 760px) {
    .nav { height: 68px; }
    .menu-toggle { display: inline-grid; }
    .nav-links.main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
    .nav-links.main.open { display: flex; }
    .nav-links.main a { display: block; padding: .7rem 0; border: 0; }
    .lang { display: none; }
    .hero .wrap { grid-template-columns: 1fr; padding-top: 2.5rem; min-height: 0; }
    .hero-img { width: 80%; }
    .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .card-title { font-size: .92rem; }
    .price { font-size: 1.1rem; }
    .row { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
    .subscribe input { width: 100%; }
    .subscribe { width: 100%; }
    .admin main { padding: 1.4rem 1rem; }
}
@media (max-width: 460px) {
    .grid { grid-template-columns: 1fr; }
    .nav-actions .btn { display: none; }
}
.hero-photo { align-self: center; aspect-ratio: 9 / 10; object-fit: cover; border-radius: 18px; margin: 2.5rem 0; box-shadow: 0 24px 60px rgba(23,59,48,.18); }
.card-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
