:root {
    --orange: #F9972D;
    --orange-deep: #e58616;
    --ink: #161616;
    --text: #2b2b2b;
    --muted: #6f6f6f;
    --topbar: #181A19;
    --footer: #101010;
    --line: #ececec;
    --soft: #f7f7f7;
    --star: #F5A524;
    --shadow: 0 12px 30px rgba(16, 16, 16, 0.07);
    --container: 1180px;
    --font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.topbar {
    background: var(--topbar);
    color: #f3f3f3;
    font-size: 12px;
    font-weight: 500;
}
.topbar-inner {
    min-height: 38px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.topbar span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar span:last-child { justify-self: end; }
.topbar svg { width: 14px; height: 14px; flex: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.04); }
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { width: 34px; height: 28px; display: block; }
.logo-img { height: 40px; width: auto; }
.logo-word { font-weight: 800; letter-spacing: .04em; font-size: 22px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    padding: 8px 0;
    position: relative;
}
.main-nav a.active, .main-nav a:hover { color: var(--orange); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--orange);
}
.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 40px; height: 40px;
    border: 0; background: transparent; color: #1c1c1c;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--soft); color: var(--orange); }
.icon-btn svg { width: 20px; height: 20px; }
.badge {
    position: absolute; top: 4px; right: 2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 99px; background: var(--orange); color: #fff;
    font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.badge[hidden] { display: none; }
.nav-toggle { display: none; }

.hero { position: relative; background: #fff; overflow: hidden; }
.hero-slide {
    display: none;
    min-height: 620px;
    background: #fff;
    position: relative;
}
.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(340px, 540px) minmax(0, 1fr);
    align-items: center;
    animation: fadeSlide .55s ease;
}
.hero-photo {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero-photo img {
    width: 100%;
    height: 560px;
    object-fit: contain;
    object-position: center right;
}
.hero-copy {
    position: relative; z-index: 1;
    max-width: none;
    min-height: 560px;
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 12px 40px 72px;
    background: transparent;
}
.eyebrow {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    margin: 0 0 12px;
}
.hero-copy h1 {
    margin: 0;
    font-size: clamp(30px, 2.5vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
}
.lede { color: #5e5e5e; font-size: 16px; max-width: 420px; margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nav {
    position: absolute; top: 50%; z-index: 2;
    width: 42px; height: 42px; border-radius: 50%;
    border: 0; background: #fff; color: #222;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    transform: translateY(-50%);
}
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 18px; }
.hero-nav:hover { background: var(--ink); color: #fff; }
.hero-dots {
    position: absolute; left: 0; right: 0; bottom: 18px;
    display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.hero-dots button {
    width: 22px; height: 3px; border: 0; background: #d9d9d9; padding: 0;
}
.hero-dots button.is-active { background: var(--orange); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px;
    border-radius: 4px; border: 1px solid transparent;
    font-weight: 700; font-size: 14px; letter-spacing: .01em;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #dedede; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }

.section { padding: 72px 0; }
.section-title {
    text-align: center;
    font-size: 13px;
    letter-spacing: .22em;
    font-weight: 700;
    color: #1b1b1b;
    margin: 0 0 32px;
}
.cat-grid, .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card, .product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #f3f3f3;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover, .product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(16,16,16,.1); }
.cat-card { text-align: center; padding: 18px 18px 22px; display: block; }
.cat-card img, .img-fallback.cat-img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cat-card h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.shop-link { color: var(--orange); font-weight: 700; font-size: 13px; }
.product-media { position: relative; background: #fafafa; }
.product-media img, .product-media .img-fallback { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media img { transition: transform .45s ease; }
.sale-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--orange); color: #fff;
    font-size: 11px; font-weight: 700;
    border-radius: 4px; padding: 4px 8px;
}
.wish {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: #fff; color: #444;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    display: grid; place-items: center;
}
.wish.is-on, .wish:hover { color: var(--orange); }
.product-info { text-align: center; padding: 6px 14px 18px; }
.product-info h3 { margin: 0 0 6px; font-size: 15px; font-weight: 650; color: #222; }
.price { display: flex; gap: 8px; justify-content: center; align-items: baseline; }
.price .now { color: var(--orange); font-weight: 800; }
.price .was { color: #9a9a9a; text-decoration: line-through; font-size: 13px; }
.stars { color: #ddd; font-size: 13px; letter-spacing: 1px; margin-top: 4px; }
.stars .on { color: var(--star); }
.stars .count { color: #9a9a9a; letter-spacing: 0; margin-left: 4px; font-size: 12px; }

.best-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.best-visual { position: relative; min-height: 360px; }
.best-accent {
    position: absolute; left: 0; top: 16%;
    width: 46%; height: 68%; background: var(--orange);
}
.best-visual img, .best-visual .img-fallback {
    position: relative; z-index: 1;
    width: 84%; margin-left: 12%;
    aspect-ratio: 5/4; object-fit: cover; background: #111;
}
.best-copy h2 {
    margin: 8px 0 12px;
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1.1; letter-spacing: -.03em;
    color: var(--ink); font-weight: 800;
}
.best-copy p { color: var(--muted); max-width: 440px; }
.best-price { display: flex; gap: 12px; align-items: baseline; margin: 18px 0; }
.best-price .now { color: var(--orange); font-size: 28px; font-weight: 800; }
.best-price .was { color: #9a9a9a; text-decoration: line-through; }

.promo {
    position: relative;
    min-height: 250px;
    border-radius: 8px;
    overflow: hidden;
    display: flex; align-items: center;
    background: #1b1b1b center / cover no-repeat;
    color: #fff;
}
.promo::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.15) 70%);
}
.promo-accent {
    position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--orange); z-index: 1;
}
.promo-copy { position: relative; z-index: 1; padding: 40px 48px; max-width: 560px; }
.promo h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.promo p { margin: 0 0 18px; color: #f0f0f0; }

.trend-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: stretch; }
.news-card {
    background: var(--orange);
    color: #fff;
    border-radius: 16px;
    padding: 26px 20px;
    display: flex; flex-direction: column; justify-content: center;
    box-shadow: var(--shadow);
}
.news-card h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; font-weight: 800; }
.news-card p { margin: 0 0 16px; font-size: 14px; }
.news-card input {
    width: 100%; border: 0; border-radius: 4px; min-height: 44px; padding: 0 12px; margin-bottom: 10px;
}
.news-card button {
    width: 100%; min-height: 44px; border: 0; border-radius: 4px;
    background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .06em;
}
.news-card button:hover { background: #000; }
.field-error { color: #fff; background: rgba(0,0,0,.18); padding: 6px 8px; border-radius: 4px; font-size: 12px; }

.trust { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 12px; align-items: center; justify-content: center; text-align: left; }
.trust-item svg { width: 32px; height: 32px; color: #222; flex: none; }
.trust-item strong { display: block; font-size: 14px; color: var(--ink); }
.trust-item span { color: var(--muted); font-size: 12px; }

.site-footer { background: var(--footer); color: #d7d7d7; position: relative; overflow: hidden; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr 1fr .8fr;
    gap: 30px;
    padding: 56px 0 36px;
}
.footer-brand .logo-word, .footer-brand .logo { color: #fff; }
.tagline { margin: 12px 0 0; max-width: 240px; color: #bdbdbd; font-size: 14px; }
.site-footer h3 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: var(--orange); }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid #3a3a3a;
    display: grid; place-items: center; color: #fff;
}
.socials a:hover { background: var(--orange); border-color: var(--orange); }
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 0 22px; font-size: 13px; color: #b5b5b5;
}
.heart { color: #e25555; }
.footer-corner {
    position: absolute; right: 0; bottom: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 86px 86px;
    border-color: transparent transparent var(--orange) transparent;
}

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { margin: 6px 0 0; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.03em; color: var(--ink); }
.crumb { color: var(--muted); font-size: 13px; margin: 0; }
.crumb a:hover { color: var(--orange); }
.page-section { padding: 28px 0 72px; }
.layout-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); gap: 28px; align-items: start; }
.prose { color: #444; white-space: pre-line; }
.prose p { margin: 0 0 14px; white-space: pre-line; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a, .sort-select {
    border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; background: #fff;
}
.chips a.active, .chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.detail-photo { background: #fafafa; border-radius: 16px; padding: 24px; }
.detail-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; }
.qty-box { display: inline-flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.qty-box button, .qty-box input {
    width: 40px; height: 42px; border: 0; text-align: center; background: #fff; font-weight: 700;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; letter-spacing: .08em; color: var(--muted); padding-bottom: 10px; }
.cart-table td { border-top: 1px solid var(--line); padding: 14px 8px; vertical-align: middle; }
.cart-product { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.cart-product img { width: 72px; height: 72px; object-fit: contain; background: #fafafa; border-radius: 8px; }
.summary {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
    box-shadow: var(--shadow);
}
.summary row, .sum-line { display: flex; justify-content: space-between; margin: 8px 0; }
.sum-total { font-size: 20px; font-weight: 800; color: var(--ink); }
.form-grid { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 700; color: #333; display: block; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="search"], textarea, select {
    width: 100%; border: 1px solid #e4e4e4; border-radius: 6px; min-height: 46px; padding: 10px 12px; background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(249,151,45,.45); border-color: var(--orange); }
.auth-card, .panel {
    max-width: 480px; margin: 10px auto 40px; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { border: 1px solid #f2f2f2; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; display: block; }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card div { padding: 16px 16px 20px; }
.blog-card h2 { margin: 0 0 8px; font-size: 18px; }
.pager { display: flex; gap: 12px; justify-content: center; margin-top: 28px; align-items: center; }
.pager a { font-weight: 700; color: var(--orange); }
.flash { background: #f4fff6; color: #146c2e; border-bottom: 1px solid #d8f3df; padding: 12px 16px; text-align: center; }
.flash-error { background: #fff4f2; color: #9f2d20; border-bottom-color: #ffd9d3; }
.form-error { color: #9f2d20; font-size: 12px; margin-top: 4px; }
.empty { text-align: center; padding: 30px 10px 10px; color: var(--muted); }
.toast {
    position: fixed; right: 18px; bottom: 18px; z-index: 70;
    background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 8px;
    border-left: 4px solid var(--orange);
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s ease;
    max-width: min(320px, calc(100% - 36px));
}
.toast.show { opacity: 1; transform: none; }
.search-modal[hidden] { display: none; }
.search-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60;
    display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.search-panel { background: #fff; width: min(640px, calc(100% - 32px)); border-radius: 12px; padding: 18px; }
.reveal { animation: rise .7s ease both; }
.img-fallback {
    display: grid; place-items: center; text-align: center; color: #888; background:
    repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 8px, #ececec 8px, #ececec 16px);
    padding: 16px; font-size: 13px; font-weight: 700;
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeSlide { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
    .trend-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card { grid-column: 1 / -1; }
    .footer-grid, .best-grid, .detail, .layout-2, .split { grid-template-columns: 1fr; }
    .best-visual { max-width: 560px; }
}
@media (max-width: 900px) {
    .topbar-inner { grid-template-columns: 1fr; justify-items: center; padding: 8px 0; }
    .topbar-mid, .topbar span:last-child { display: none; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: flex-start;
        padding: 10px 22px 18px; border-bottom: 1px solid var(--line); gap: 4px;
        margin: 0;
    }
    .main-nav.is-open { display: flex; }
    .header-inner { position: relative; }
    .cat-grid, .product-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .hero-slide, .hero-copy, .hero-photo { min-height: 0; }
    .hero-slide.is-active { display: flex; flex-direction: column; }
    .hero-photo { width: 100%; order: 2; }
    .hero-photo img { height: 320px; object-position: center; }
    .hero-copy { order: 1; padding: 28px 20px 12px; }
    .hero-nav { top: auto; bottom: 118px; transform: none; }
    .icon-btn { width: 34px; height: 34px; }
    .logo-word { font-size: 18px; }
}
@media (max-width: 640px) {
    .container { width: min(var(--container), calc(100% - 28px)); }
    .section { padding: 48px 0; }
    .cat-grid, .product-grid { gap: 12px; }
    .trust-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 34px; }
    .cart-table { display: block; overflow-x: auto; }
    .footer-corner { border-width: 0 0 56px 56px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
