:root {
    --bg: #080808;
    --bg-soft: #101010;
    --bg-card: #121212;
    --text: #f5f5f5;
    --muted: #b8b3b9;
    --line: rgba(255,255,255,.09);
    --line-soft: rgba(255,255,255,.06);
    --accent: #d946ef;
    --accent-2: #f472b6;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --shadow: 0 18px 42px rgba(0,0,0,.28);
    --container: 1380px;
    --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section-space { padding: 22px 0 56px; }
.section-tight { padding-top: 12px; }
.section-top { padding-top: 14px; }
.flash { margin: 14px 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); }
.flash.success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.28); }
.flash.error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.28); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 13px 20px; font-weight: 700; transition: .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #111; }
.btn-primary-dark { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 28px rgba(217,70,239,.22); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.08); }
.btn-linkish { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #f9a8d4; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; font-size: .73rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-heading h1, .page-heading h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.7rem); }
.page-heading p { margin: 8px 0 0; color: var(--muted); max-width: 680px; }
.top-strip { border-bottom: 1px solid var(--line-soft); background: #040404; }
.top-strip .container { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; padding: 10px 0; font-weight: 700; font-size: .9rem; color: #ebe7ec; }
.top-strip-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,8,8,.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.header-layout { display: grid; gap: 12px; padding: 14px 0 12px; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-nav-row { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 56px; height: 56px; border-radius: 18px; background: #111; object-fit: cover; border: 1px solid var(--line); }
.brand-copy { min-width: 0; }
.brand-name { font-size: clamp(1.25rem, 1.8vw, 1.8rem); font-weight: 900; line-height: 1; }
.brand-tagline { margin-top: 5px; color: var(--muted); line-height: 1.1; font-size: .98rem; }
.main-nav { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: #f0edf0; font-weight: 700; font-size: .93rem; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: #101010; white-space: nowrap; }
.main-nav a:hover { background: #171717; color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-inline { display: flex; align-items: center; gap: 10px; width: min(340px, 30vw); background: #121212; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; }
.search-inline input { width: 100%; height: 46px; background: transparent; border: 0; color: #fff; outline: none; }
.icon-btn, .cart-btn, .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #121212; color: #fff; }
.cart-btn { width: auto; min-width: 122px; padding: 0 16px; gap: 10px; font-weight: 800; }
.cart-badge { width: 29px; height: 29px; border-radius: 999px; display: inline-grid; place-items: center; background: #fff; color: #111; font-size: .9rem; font-weight: 900; }
.mobile-menu-btn { display: none; gap: 10px; width: auto; padding: 0 18px; background: linear-gradient(90deg, #7c3aed, #ec4899); border-color: transparent; font-weight: 800; }
.mobile-drawer { display: none; }
.hero { padding: 16px 0 18px; }
.hero-slider { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.hero-track::-webkit-scrollbar, .slider-row::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; min-height: 56vh; max-height: 700px; scroll-snap-align: start; display: grid; align-items: end; overflow: hidden; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) brightness(.68); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.42) 52%, rgba(0,0,0,.68) 100%); }
.hero-content { position: relative; z-index: 2; width: min(560px, calc(100% - 42px)); margin: 0 0 56px 48px; }
.hero-content h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: .96; margin: 12px 0; max-width: 9ch; }
.hero-content p { color: #ddd9de; font-size: 1rem; max-width: 500px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-side-cards { position: absolute; right: 22px; bottom: 22px; z-index: 2; display: grid; gap: 12px; width: min(280px, 22vw); }
.mini-product { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; border-radius: 20px; background: rgba(10,10,10,.78); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); }
.mini-product img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.mini-product small, .mini-product span { color: #d4c9d5; }
.mini-product strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 8px; font-size: .95rem; line-height: 1.25; }
.hero-dots { position: absolute; left: 48px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.34); border: 0; }
.hero-dot.is-active { background: #fff; }
.category-bar { padding: 14px 0 4px; }
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: 0 0 auto; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #121212; color: #fff; font-weight: 700; }
.chip.active, .chip:hover { background: #fff; color: #111; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.category-card { position: relative; min-height: 250px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #121212; }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 6%, rgba(0,0,0,.85) 100%); }
.category-card-content { position: absolute; inset: auto 18px 18px 18px; z-index: 2; }
.category-card h3 { margin: 8px 0 6px; font-size: 1.3rem; }
.category-card p { color: #d8d1d9; margin: 0 0 12px; font-size: .96rem; }
.section-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-row.compact-row h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.section-row h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-row p { margin: 0; color: var(--muted); max-width: 560px; }
.slider-shell { position: relative; }
.slider-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 240px); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.slider-products { padding-bottom: 6px; }
.product-card { background: #111; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; scroll-snap-align: start; }
.product-media { position: relative; aspect-ratio: 1 / 1.08; background: #161616; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; background: rgba(0,0,0,.72); border-radius: 999px; font-weight: 800; font-size: .78rem; }
.product-badge.sale { background: linear-gradient(90deg, #7c3aed, #ec4899); }
.product-badge.stock { right: 12px; left: auto; }
.product-body { padding: 16px; }
.product-category { color: #d4c8d5; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.product-title { margin: 7px 0 10px; font-size: 1rem; font-weight: 800; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.price-row strong { font-size: 1.05rem; }
.price-row del { color: #8d8b90; font-size: .92rem; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; padding: 11px 12px; font-size: .9rem; }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.filter-panel { position: sticky; top: 158px; align-self: start; border: 1px solid var(--line); background: #101010; border-radius: 22px; padding: 18px; }
.filter-panel h3 { margin: 0 0 16px; font-size: 1.08rem; }
.filter-stack { display: grid; gap: 14px; }
.filter-group { display: grid; gap: 10px; }
.filter-group label { font-size: .9rem; color: var(--muted); }
.filter-group .chip { width: 100%; justify-content: flex-start; border-radius: 16px; padding: 11px 14px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pagination a, .pagination span { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid var(--line); background: #111; }
.pagination .is-current { background: #fff; color: #111; font-weight: 900; }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.product-gallery, .product-panel, .summary-box, .cart-item, .checkout-card, .success-card, .admin-card { border: 1px solid var(--line); background: #101010; border-radius: 24px; box-shadow: var(--shadow); }
.product-gallery { overflow: hidden; }
.product-gallery img { width: 100%; aspect-ratio: 4/4.8; object-fit: cover; }
.product-panel { padding: 24px; }
.product-panel h1 { margin: 10px 0 16px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: #191919; border: 1px solid var(--line); }
.status-pill.is-ok { color: #86efac; }
.status-pill.is-low { color: #fbbf24; }
.status-pill.is-order { color: #fca5a5; }
.qty-wrap { display: flex; gap: 12px; align-items: center; margin: 18px 0 22px; }
.qty-wrap input { width: 96px; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: #090909; color: #fff; padding: 0 14px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.cart-list, .checkout-card { padding: 20px; }
.cart-items-stack, .summary-products { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto auto auto; gap: 14px; padding: 14px; align-items: center; }
.cart-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; }
.cart-qty-form { display: flex; gap: 8px; align-items: center; }
.cart-qty-form input { width: 72px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: #090909; color: #fff; padding: 0 12px; }
.summary-box { padding: 20px; position: sticky; top: 120px; }
.summary-box h3 { margin: 0 0 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0; color: var(--muted); }
.summary-line.total { color: #fff; font-size: 1.15rem; font-weight: 900; padding-top: 14px; border-top: 1px solid var(--line); }
.checkout-card form, .admin-form-grid { display: grid; gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.input, .select, .textarea, .admin-form-control, .admin-form-select { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #0a0a0a; color: #fff; padding: 14px 16px; min-height: 50px; }
.textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: .9rem; }
.success-card { padding: 28px; text-align: center; max-width: 720px; margin: 0 auto; }
.footer { border-top: 1px solid var(--line-soft); padding: 18px 0 34px; background: #050505; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.floating-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; background: #22c55e; color: white; box-shadow: 0 16px 40px rgba(34,197,94,.35); }

/* Admin */
.admin-body { background: #070707; color: #f5f5f5; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #090909; border-right: 1px solid var(--line); padding: 22px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-brand img { width: 54px; height: 54px; border-radius: 16px; }
.admin-brand strong { display: block; font-size: 1.12rem; }
.admin-nav { display: grid; gap: 6px; }
.admin-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; color: #e8e2e9; font-weight: 700; }
.admin-link.active, .admin-link:hover { background: #171717; }
.admin-link.text-danger { color: #fca5a5; }
.admin-main { padding: 22px; }
.admin-main > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.admin-topbar { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 16px; margin-bottom: 18px; }
.admin-topbar h1 { margin: 8px 0 4px; font-size: clamp(1.45rem, 3.5vw, 2.1rem); }
.admin-card { padding: 18px; }
.admin-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.metric { padding: 18px; border-radius: 20px; background: #101010; border: 1px solid var(--line); }
.metric small { color: var(--muted); display: block; margin-bottom: 8px; }
.metric strong { font-size: 1.8rem; }
.admin-table-wrap { overflow: auto; border-radius: 18px; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 740px; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.admin-table th { color: #c9c6cb; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.admin-thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-grid-full { grid-column: 1 / -1; }
.admin-grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid var(--line); background: #121212; color: #fff; padding: 11px 15px; font-weight: 700; }
.admin-button.primary { background: linear-gradient(90deg, #7c3aed, #ec4899); border-color: transparent; }
.switch { position: relative; width: 56px; height: 30px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-ui { position: absolute; inset: 0; background: #2a2a2a; border-radius: 999px; transition: .2s ease; }
.switch-ui::after { content: ''; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; border-radius: 50%; background: #fff; transition: .2s ease; }
.switch input:checked + .switch-ui { background: linear-gradient(90deg, #7c3aed, #ec4899); }
.switch input:checked + .switch-ui::after { transform: translateX(26px); }
.admin-mobile-toggle { display: none; }
.admin-mobile-panel { display: none; }
.badge { display: inline-flex; padding: 8px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.badge.success { background: rgba(34,197,94,.16); color: #86efac; }
.badge.warning { background: rgba(245,158,11,.16); color: #fcd34d; }
.badge.danger { background: rgba(239,68,68,.16); color: #fca5a5; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #2b102d 0%, #090909 40%); }
.login-card { width: min(100%, 460px); padding: 28px; border-radius: 28px; background: rgba(9,9,9,.94); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 20px; }

@media (max-width: 1280px) {
    .search-inline { width: min(300px, 24vw); }
    .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .catalog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .admin-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 1100px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .search-inline { width: 260px; }
}
@media (max-width: 992px) {
    .top-strip .container { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .header-layout { gap: 10px; }
    .header-main { grid-template-columns: 1fr auto; }
    .header-nav-row, .search-inline { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .mobile-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 80; padding: 0; display: none; }
    .mobile-drawer.is-open { display: block; }
    .mobile-drawer-inner { background: #0a0a0a; border-left: 1px solid var(--line); margin-left: auto; width: min(92vw, 380px); height: 100%; padding: 22px; overflow: auto; }
    .mobile-drawer-nav { display: grid; gap: 10px; margin: 20px 0; }
    .mobile-drawer-nav a { padding: 14px 16px; border-radius: 16px; background: #141414; font-weight: 700; }
    .mobile-search { display: flex; align-items: center; gap: 10px; background: #121212; border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; }
    .mobile-search input { width: 100%; height: 50px; border: 0; background: transparent; color: #fff; }
    .hero-slide { min-height: 48vh; }
    .hero-content { margin: 0 22px 54px; width: calc(100% - 44px); }
    .hero-side-cards { display: none; }
    .hero-dots { left: 22px; }
    .catalog-layout, .product-detail, .cart-layout, .checkout-layout, .admin-grid-main { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-mobile-toggle { display: inline-flex; }
    .admin-mobile-panel { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 120; }
    .admin-mobile-panel.is-open { display: block; }
    .admin-mobile-inner { width: min(86vw, 360px); height: 100%; background: #090909; border-right: 1px solid var(--line); padding: 22px; }
}
@media (max-width: 768px) {
    .container { width: min(100% - 18px, var(--container)); }
    .top-strip .container { grid-template-columns: 1fr; gap: 8px; }
    .brand-logo { width: 48px; height: 48px; border-radius: 16px; }
    .brand-name { font-size: 1.45rem; }
    .brand-tagline { font-size: .92rem; }
    .header-main { align-items: start; }
    .header-actions { width: auto; }
    .cart-btn { min-width: 112px; padding: 0 14px; }
    .hero-slide { min-height: 42vh; }
    .hero-content h1 { font-size: clamp(2.05rem, 10vw, 3.25rem); max-width: 10ch; }
    .hero-content p { font-size: .96rem; }
    .category-grid, .catalog-grid, .form-grid-2, .admin-grid-2, .admin-grid-4 { grid-template-columns: 1fr; }
    .slider-row { grid-auto-columns: minmax(190px, 72vw); }
    .page-heading, .section-row, .footer .container, .admin-topbar { display: grid; gap: 12px; justify-content: stretch; }
    .cart-item { grid-template-columns: 72px 1fr; }
    .cart-item .cart-qty-form, .cart-item .cart-total-col, .cart-item .cart-remove-col { grid-column: 2; }
    .summary-box { position: static; }
    .product-panel { padding: 20px; }
    .admin-main { padding: 16px; }
    .admin-table { min-width: 620px; }
    .metric strong { font-size: 1.5rem; }
}
