:root {
    --orange: #e66200;
    --orange-d: #c95400;
    --ink: #383838;
    --muted: #8d8d8d;
    --line: #ececec;
    --top: #f4f1eb;
    --soft: #f7f7f7;
    --green: #2f9e4f;
    --red: #d24b4b;
    --shadow: 0 8px 24px rgba(40, 30, 20, .06);
    --max: 1240px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Ubuntu, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar { background: var(--top); color: #6d6a64; font-size: 13px; }
.topbar-inner, .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-inner { min-height: 36px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
.topbar a:hover { color: var(--orange); }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-right a { margin-right: 0; margin-left: 16px; }
.site-header { background: #fff; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 84px; }
.logo img { display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-item > a {
    display: block;
    padding: 28px 12px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4a4a4a;
    font-weight: 500;
}
.nav-item:hover > a, .nav-item.active > a { color: var(--orange); }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    padding: 8px 0;
    z-index: 30;
}
.dropdown.wide { min-width: 360px; }
.dropdown.mega {
    width: 560px;
    columns: 2;
    column-gap: 0;
    padding: 10px 0;
}
.dropdown a {
    display: block;
    padding: 8px 16px;
    color: #444;
    font-size: 14px;
    break-inside: avoid;
}
.dropdown a:hover { color: var(--orange); background: #fff7f2; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { display: block; }
.header-tools { display: flex; align-items: center; gap: 14px; }
.search-form { display: flex; align-items: center; border-bottom: 1px solid #ddd; }
.search-form input {
    border: 0; width: 120px; padding: 6px 0; outline: none; background: transparent;
}
.search-form button { border: 0; background: transparent; color: #666; cursor: pointer; padding: 4px; }
.search-form svg { width: 18px; height: 18px; display: block; }
.cart-link { display: flex; align-items: center; gap: 8px; color: #444; min-width: 110px; }
.cart-link svg { width: 26px; height: 26px; }
.cart-link b, .cart-link small { display: block; line-height: 1.15; }
.cart-link b { font-weight: 500; font-size: 13px; }
.cart-link small { color: var(--muted); font-size: 12px; }
.burger { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 8px; }
.burger span { display: block; height: 2px; background: #333; margin: 5px 0; }

.hero { position: relative; height: 420px; background: #1b1b1b; overflow: hidden; }
.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity .45s ease;
}
.slide.active { opacity: 1; }
.slide a { display: block; width: 100%; height: 100%; }
.hero-nav, .hero-dots { position: absolute; z-index: 2; }
.hero-nav {
    top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.82); color: #333;
    cursor: pointer; font-size: 22px;
}
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-dots { left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer;
}
.hero-dots button.active { background: #fff; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; }
.benefit { display: flex; align-items: center; gap: 12px; color: #555; font-size: 14px; }
.benefit img { width: 46px; height: 40px; object-fit: contain; }
.benefit b { font-weight: 500; }

.section { padding: 10px 0 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tabs { display: flex; gap: 22px; }
.tabs button {
    border: 0; background: transparent; padding: 8px 0; cursor: pointer;
    color: #777; font-size: 16px; border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--orange); border-color: var(--orange); }
.car-btn {
    width: 32px; height: 32px; border: 1px solid #e5e5e5; background: #fff; cursor: pointer; border-radius: 4px;
}
.carousel { position: relative; }
.car-track {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: 12px 2px 18px;
}
.car-track::-webkit-scrollbar { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.pcard {
    flex: 0 0 220px; scroll-snap-align: start;
    background: #fff; border-radius: 2px; padding: 8px 10px 16px;
    display: flex; flex-direction: column; min-height: 360px;
    transition: box-shadow .2s ease;
}
.grid .pcard { flex: none; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard-img { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; }
.pcard-img img { max-height: 170px; width: auto; }
.badge {
    position: absolute; top: 8px; left: 6px; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .03em;
}
.badge.hit { background: var(--orange); }
.badge.rec { background: #ef8b2c; top: 54px; }
.badge.new { background: #3aaa6a; left: auto; right: 6px; }
.sku {
    position: absolute; right: 0; bottom: 0; font-size: 11px; color: #9a9a9a;
}
.sku b { background: #ececec; color: #666; font-weight: 500; padding: 2px 5px; margin-left: 3px; }
.pcard-name {
    margin-top: 8px; min-height: 44px; color: #3a3a3a; font-size: 14px;
}
.pcard:hover .pcard-name { color: var(--orange); }
.stock { font-size: 13px; margin-top: 6px; }
.stock.in { color: var(--green); }
.stock.out { color: var(--red); }
.stock.in::before { content: "✓ "; }
.price-label { color: #9a9a9a; font-size: 12px; margin-top: 8px; }
.price { font-weight: 700; font-size: 16px; }

.about-band { background: var(--soft); padding: 36px 0; }
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; }
.about-grid img.girl { width: 100%; max-width: 320px; }
.about-copy h2 { font-weight: 500; font-size: 32px; margin: 0 0 8px; }
.more { color: var(--orange); font-weight: 500; }
.about-copy .btn { margin-left: 16px; }
.partner-cta { margin: 8px 0 28px; }

.layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 28px 0 48px; }
.side-menu a, .crumbs a { color: #555; }
.side-menu a { display: block; padding: 8px 0; border-bottom: 1px solid #f2f2f2; }
.side-menu a.active, .side-menu a:hover, .crumbs a:hover, .more:hover { color: var(--orange); }
.crumbs { color: #999; font-size: 13px; margin-bottom: 14px; }
.page-title { font-size: 32px; font-weight: 500; margin: 0 0 8px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 8px 0 16px; color: #777; }
.toolbar-right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.toolbar select { border: 1px solid #e5e5e5; padding: 8px 10px; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.pager { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #eee; color: #555;
}
.pager .current { background: var(--orange); color: #fff; border-color: var(--orange); }

.product { display: grid; grid-template-columns: 420px 1fr; gap: 36px; padding: 28px 0; }
.product-photo {
    background: #fff; border: 1px solid #f2f2f2; min-height: 420px;
    display: flex; align-items: center; justify-content: center; position: relative; padding: 24px;
}
.product-photo img { max-height: 380px; }
.product h1 { font-size: 30px; font-weight: 500; margin: 0 0 12px; }
.buy-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.qty { width: 72px; padding: 12px; border: 1px solid #e5e5e5; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--orange); color: #fff; border: 0; min-height: 46px; padding: 0 22px;
    cursor: pointer; font-size: 15px; font-weight: 500;
}
.btn:hover { background: var(--orange-d); }
.btn.ghost { background: #fff; color: var(--orange); border: 1px solid var(--orange); }
.btn:disabled, .btn.disabled { background: #ccc; cursor: not-allowed; }
.prose { padding-bottom: 40px; }
.prose h2, .prose h3 { font-weight: 500; }
.prose img { height: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid #eee; padding: 8px; vertical-align: top; }
.related { padding-bottom: 40px; }
.related h2 { font-weight: 500; }

.cart-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.cart-table th { text-align: left; font-weight: 500; color: #777; font-size: 13px; padding: 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-product { display: flex; gap: 12px; align-items: center; }
.cart-product img { width: 72px; height: 72px; object-fit: contain; }
.cart-total { text-align: right; font-size: 20px; margin-bottom: 16px; }
.form { display: grid; gap: 12px; max-width: 640px; }
.form label { display: grid; gap: 4px; font-size: 14px; color: #555; }
.form input, .form textarea, .form select, .admin-form input, .admin-form textarea, .admin-form select {
    border: 1px solid #e3e3e3; padding: 10px 12px; font-size: 15px; width: 100%;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.narrow { max-width: 460px; padding: 28px 0 60px; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.checks label { display: flex; gap: 6px; align-items: center; }
.cat-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; max-height: 240px; overflow: auto; border: 1px solid #eee; padding: 10px; }

.stores-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.stores-head input { border: 1px solid #e5e5e5; padding: 10px 12px; min-width: 260px; }
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 40px; }
.store-card { display: flex; gap: 12px; border: 1px solid #f0f0f0; padding: 12px; }
.store-card img { width: 92px; height: 64px; object-fit: cover; background: #fafafa; }
.store-card b { font-weight: 500; }
.pill { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; padding: 1px 6px; margin-left: 6px; }

.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-bottom: 40px; }
.panel { border: 1px solid #f0f0f0; padding: 16px 18px; margin-bottom: 14px; }
.panel h2, .panel h3 { margin: 0 0 10px; font-weight: 500; }
.muted { color: var(--muted); }
.order { border-bottom: 1px solid #f2f2f2; padding: 12px 0; }
.status { color: var(--orange); font-weight: 500; }

.site-footer { background: #fafafa; border-top: 1px solid #f0f0f0; padding: 28px 0 18px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.footer-title { font-weight: 500; margin-bottom: 8px; }
.footer-grid a { display: block; color: #666; padding: 3px 0; }
.footer-grid a:hover { color: var(--orange); }
.footer-phone { font-size: 20px; color: var(--ink) !important; font-weight: 500; }
.socials { display: flex; gap: 8px; margin: 8px 0; }
.socials a { border: 1px solid #e5e5e5; padding: 4px 8px; }
.pays { display: flex; gap: 6px; flex-wrap: wrap; }
.pays span { border: 1px solid #eee; padding: 3px 6px; font-size: 12px; color: #888; }
.footer-copy { color: #999; font-size: 13px; margin-top: 18px; }
.flash, .notice { background: #fff6ef; border: 1px solid #ffd7bd; color: #8a3d00; padding: 10px 14px; margin: 12px 0; }
.empty { padding: 24px 0 40px; color: #777; }

.admin-bar { background: #2b2b2b; color: #fff; }
.admin-bar .container { display: flex; gap: 16px; align-items: center; min-height: 48px; }
.admin-bar a { color: #fff; opacity: .85; }
.admin-bar a:hover { opacity: 1; }
.admin-wrap { width: min(1100px, calc(100% - 32px)); margin: 20px auto 40px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { border-bottom: 1px solid #eee; padding: 8px; text-align: left; font-size: 14px; }
table.data th { color: #777; font-weight: 500; }
.admin-form { display: grid; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff7f2; padding: 16px; }
.stat b { display: block; font-size: 26px; color: var(--orange); }

@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .product { grid-template-columns: 320px 1fr; }
}
@media (max-width: 900px) {
    .burger { display: block; }
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch;
        border-bottom: 1px solid #eee; max-height: 70vh; overflow: auto; padding-bottom: 12px;
    }
    .nav.open { display: flex; }
    .nav-item > a { padding: 12px 16px; }
    .dropdown, .dropdown.mega { position: static; display: block; width: auto; columns: 1; box-shadow: none; padding: 0 0 8px 12px; }
    .header-inner { flex-wrap: wrap; min-height: 68px; position: relative; }
    .header-tools { margin-left: auto; }
    .search-form input { width: 80px; }
    .benefits, .footer-grid, .about-grid, .layout, .product, .account-grid, .store-grid, .stats, .form-row { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero { height: 220px; }
    .cat-checks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr 1fr; }
    .topbar-left a span, .cart-link small { display: none; }
    .pcard { flex-basis: 180px; min-height: 320px; }
}
