/* «Библиотека дыма»: тёмная тема витрины, корзины и административной части. */
:root {
  --bg: #080b0f;
  --surface: #0f141a;
  --surface-2: #151b23;
  --surface-3: #1b232d;
  --ink: #f4f7fb;
  --muted: #8f9aa8;
  --line: rgba(255, 255, 255, .11);
  --accent: #63e6d8;
  --accent-deep: #25b9ad;
  --blue: #4ca6ff;
  --purple: #bd8cff;
  --orange: #ffb35c;
  --danger: #ff7a7a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); font-family: "Manrope", sans-serif; }
a { color: inherit; }
.text-muted { color: var(--muted) !important; }
.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

/* Бренд и навигация. */
.site-nav { border-bottom: 1px solid var(--line); background: rgba(8, 11, 15, .88); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-family: "Unbounded", sans-serif; font-weight: 700; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(99, 230, 216, .55); border-radius: 10px; background: linear-gradient(145deg, rgba(99, 230, 216, .18), rgba(76, 166, 255, .05)); color: var(--accent); font-size: .66rem; letter-spacing: -.04em; box-shadow: inset 0 0 24px rgba(99, 230, 216, .08); }
.brand-word { font-size: 1rem; letter-spacing: -.05em; }
.brand-word > span { color: var(--accent); }
.nav-link { color: #aab3bf; font-size: .78rem; font-weight: 700; }
.nav-link:hover, .nav-link:focus { color: var(--accent); }
.navbar-toggler { filter: invert(1); }
.cart-button { display: flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: .82rem; font-weight: 800; }
.cart-button:hover { border-color: rgba(99, 230, 216, .5); background: rgba(99, 230, 216, .08); color: var(--accent); }
.cart-count { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 6px; background: var(--accent); color: #07100f; font-size: .67rem; }

/* Первый экран. */
.hero-section { position: relative; overflow: hidden; background: radial-gradient(circle at 75% 15%, rgba(76, 166, 255, .09), transparent 32%), var(--bg); }
.hero-section::before { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; content: ""; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.eyebrow { color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.display-title, .section-title, .detail-title { font-family: "Unbounded", sans-serif; font-weight: 600; letter-spacing: -.055em; }
.display-title { position: relative; z-index: 1; max-width: 900px; font-size: clamp(2.65rem, 6.2vw, 6.4rem); line-height: 1.01; }
.display-title span { color: var(--accent); }
.hero-copy { max-width: 680px; color: #aeb7c3; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.75; }
.btn-brand { border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #07100f; font-weight: 800; padding: .75rem 1.35rem; transition: .2s ease; }
.btn-brand:hover, .btn-brand:focus { border-color: #8df4e8; background: #8df4e8; color: #07100f; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99, 230, 216, .16); }
.trust-note { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.trust-note strong { color: var(--ink); }
.status-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(99, 230, 216, .1), 0 0 18px rgba(99, 230, 216, .75); }
.hero-showcase { position: relative; min-height: 510px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, #111820, #0b1016); box-shadow: var(--shadow); }
.hero-showcase::before { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.035) 50%, transparent 75%); content: ""; }
.showcase-top, .showcase-bottom { position: absolute; z-index: 5; right: 1.3rem; left: 1.3rem; display: flex; justify-content: space-between; color: #6f7b89; font-size: .56rem; font-weight: 800; letter-spacing: .17em; }
.showcase-top { top: 1.3rem; }
.showcase-bottom { bottom: 1.3rem; align-items: end; }
.showcase-bottom strong { color: var(--accent); font-family: "Unbounded"; font-size: 1.2rem; }
.showcase-product { --product-color: var(--accent); position: absolute; z-index: 3; display: flex; overflow: hidden; flex-direction: column; justify-content: end; width: 33%; min-height: 270px; padding: 1.15rem; border: 1px solid color-mix(in srgb, var(--product-color) 50%, transparent); border-radius: 18px; background: linear-gradient(165deg, color-mix(in srgb, var(--product-color) 18%, #121820), #0a0f14 65%); box-shadow: 0 28px 45px rgba(0,0,0,.4); }
.showcase-product::before { position: absolute; z-index: 1; inset: 16% 18% auto; height: 34%; border: 1px solid color-mix(in srgb, var(--product-color) 38%, transparent); border-radius: 50%; content: ""; box-shadow: 0 0 36px color-mix(in srgb, var(--product-color) 16%, transparent); }
.showcase-product::after { position: absolute; z-index: 1; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5,8,11,.92)); content: ""; }
.showcase-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-product small { position: relative; z-index: 2; color: var(--product-color); font-size: .58rem; font-weight: 800; letter-spacing: .13em; }
.showcase-product strong { position: relative; z-index: 2; max-width: 12ch; margin-top: .3rem; font-family: "Unbounded"; font-size: .75rem; line-height: 1.35; }
.showcase-product > span { position: absolute; z-index: 2; top: .8rem; right: .9rem; color: color-mix(in srgb, var(--product-color) 70%, white); font-family: "Unbounded"; font-size: .65rem; }
.showcase-product-1 { bottom: 12%; left: 12%; transform: rotate(-7deg); }
.showcase-product-2 { z-index: 4; bottom: 13%; left: 36%; transform: translateY(-18px); }
.showcase-product-3 { right: 9%; bottom: 12%; transform: rotate(8deg); }
.showcase-orbit { position: absolute; top: 20%; left: 25%; width: 50%; aspect-ratio: 1; border: 1px solid rgba(99,230,216,.12); border-radius: 50%; }
.showcase-cross { position: absolute; top: 11%; right: 9%; color: var(--accent); font-family: "Unbounded"; font-size: 2rem; }

/* Категории и каталог. */
.category-section { border-block: 1px solid var(--line); background: #0b1015; }
.category-tile { display: flex; min-height: 120px; align-items: center; gap: .85rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: .2s ease; }
.category-tile:hover, .category-tile.active { border-color: rgba(99,230,216,.55); background: #121a20; box-shadow: inset 0 0 30px rgba(99,230,216,.035); transform: translateY(-3px); }
.category-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-family: "Unbounded"; font-size: .66rem; }
.category-tile strong, .category-tile small { display: block; }
.category-tile strong { font-size: .82rem; line-height: 1.35; }
.category-tile small { margin-top: .28rem; color: var(--muted); font-size: .63rem; line-height: 1.45; }
.category-arrow { margin-left: auto; color: var(--muted); }
.catalog-section { background: #0a0e13; }
.section-title { font-size: clamp(1.8rem, 4vw, 3.25rem); }
.search-form { display: flex; min-width: min(100%, 370px); padding: .25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-form .form-control { border: 0; background: transparent; color: var(--ink); box-shadow: none; }
.search-form .form-control::placeholder { color: #687483; }
.search-form .btn { border-radius: 8px; background: var(--surface-3); }
.filter-row { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.filter-chip { flex: 0 0 auto; padding: .54rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: .76rem; font-weight: 700; text-decoration: none; }
.filter-chip:hover, .filter-chip.active { border-color: var(--accent); background: rgba(99,230,216,.08); color: var(--accent); }
.cat-card { display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: .25s ease; }
.cat-card:hover { border-color: rgba(255,255,255,.22); box-shadow: var(--shadow); transform: translateY(-5px); }
.cat-photo-link { position: relative; display: block; overflow: hidden; aspect-ratio: 1.25; text-decoration: none; }
.product-visual { --category-color: var(--accent); background: radial-gradient(circle at 68% 28%, color-mix(in srgb, var(--category-color) 19%, transparent), transparent 34%), linear-gradient(145deg, #151c24, #0c1117); }
.product-fallback { position: absolute; z-index: 0; inset: 0; display: block; }
.product-image, .detail-photo { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-disposables { --category-color: var(--accent); --product-color: var(--accent); }
.category-pods { --category-color: var(--blue); --product-color: var(--blue); }
.category-snus { --category-color: var(--purple); --product-color: var(--purple); }
.category-liquids { --category-color: var(--orange); --product-color: var(--orange); }
.visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom right, black, transparent 75%); }
.visual-orbit { position: absolute; top: 17%; right: 15%; width: 42%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--category-color) 36%, transparent); border-radius: 50%; box-shadow: 0 0 35px color-mix(in srgb, var(--category-color) 9%, transparent); }
.product-brand { position: absolute; top: 1.2rem; left: 1.2rem; color: var(--category-color); font-size: .58rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.product-monogram, .detail-monogram { position: absolute; right: 1.1rem; bottom: .7rem; color: rgba(255,255,255,.93); font-family: "Unbounded"; font-size: clamp(3.8rem, 8vw, 6.2rem); letter-spacing: -.12em; line-height: 1; text-transform: uppercase; text-shadow: 0 0 35px color-mix(in srgb, var(--category-color) 25%, transparent); }
.product-index { position: absolute; bottom: 1.2rem; left: 1.2rem; color: #697583; font-size: .55rem; font-weight: 800; letter-spacing: .16em; }
.category-pill { position: absolute; z-index: 3; top: 1rem; right: 1rem; padding: .42rem .62rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,11,15,.72); color: #c5cdd6; font-size: .58rem; font-weight: 800; backdrop-filter: blur(10px); }
.cat-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.cat-name { font-family: "Unbounded"; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.cat-meta, .cat-description { color: var(--muted); }
.cat-meta { font-size: .72rem; }
.cat-description { display: -webkit-box; overflow: hidden; margin: .95rem 0 1.15rem; font-size: .82rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.price { flex: 0 0 auto; color: var(--accent); font-size: .88rem; font-weight: 800; }
.btn-soft { border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: #d8dee6; font-size: .82rem; font-weight: 700; }
.btn-soft:hover { border-color: rgba(99,230,216,.45); background: rgba(99,230,216,.07); color: var(--accent); }
.add-button { width: 41px; height: 41px; padding: 0; border-color: var(--accent) !important; background: var(--accent) !important; color: #07100f !important; font-size: 1.3rem; }
.empty-state { padding: 5rem 1rem; border: 1px dashed rgba(255,255,255,.2); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state > span { display: block; margin-bottom: 1rem; color: var(--accent); font-family: "Unbounded"; font-size: 2rem; }
.empty-state p { color: var(--muted); }
.care-panel { display: flex; align-items: center; justify-content: space-between; gap: 4rem; padding: clamp(2rem, 6vw, 5rem); border: 1px solid rgba(99,230,216,.2); border-radius: 24px; background: linear-gradient(135deg, #121a20, #0d1218); }
.care-panel h2 { margin: .7rem 0 1rem; font-family: "Unbounded"; }
.care-panel p { max-width: 650px; margin: 0; color: #9ca7b4; }
.eyebrow-light { color: var(--accent); }
.care-points { display: grid; flex: 0 0 auto; gap: 1rem; color: #cbd3dc; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }

/* Детальная страница, корзина и формы. */
.back-link, .small-link { color: var(--muted); font-size: .8rem; font-weight: 700; text-decoration: none; }
.back-link:hover, .small-link:hover { color: var(--accent); }
.detail-photo-wrap { position: relative; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 24px; }
.detail-photo { border-radius: inherit; }
.detail-monogram { right: 7%; bottom: 7%; font-size: clamp(6rem, 14vw, 11rem); }
.detail-title { font-size: clamp(2.4rem, 6vw, 5.1rem); line-height: 1.05; }
.detail-subtitle { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-copy { margin: 2rem 0; color: #aab4c0; font-size: 1.02rem; line-height: 1.8; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.detail-facts > div { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.detail-facts small, .detail-facts strong { display: block; }
.detail-facts small { margin-bottom: .3rem; color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.detail-facts strong { font-size: .78rem; }
.detail-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.detail-buy small { color: var(--muted); }
.detail-price { font-family: "Unbounded"; font-size: 1.55rem; font-weight: 600; }
.fine-print { margin-top: 1rem; color: #687483; font-size: .69rem; }
.cart-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border: 0; }
.cart-thumb, .admin-thumb { --category-color: var(--accent); display: grid; flex: 0 0 auto; width: 72px; height: 72px; place-items: center; border: 1px solid color-mix(in srgb, var(--category-color) 45%, transparent); border-radius: 13px; background: color-mix(in srgb, var(--category-color) 10%, #11171e); color: var(--category-color); font-family: "Unbounded"; font-size: 1.15rem; text-transform: uppercase; }
.cart-image-wrap, .admin-image-wrap { --category-color: var(--accent); position: relative; display: grid; overflow: hidden; flex: 0 0 auto; width: 72px; height: 72px; place-items: center; border: 1px solid color-mix(in srgb, var(--category-color) 45%, transparent); border-radius: 13px; background: color-mix(in srgb, var(--category-color) 10%, #11171e); color: var(--category-color); font-family: "Unbounded"; text-transform: uppercase; }
.cart-image-wrap > span, .admin-image-wrap > span { font-size: 1rem; }
.cart-image-wrap img, .admin-image-wrap img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-item h2 { margin: 0 0 .25rem; font-family: "Unbounded"; font-size: .92rem; }
.cart-item p { margin: 0; color: var(--muted); font-size: .72rem; }
.remove-button { border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; }
.remove-button:hover { color: var(--danger); }
.cart-total { display: flex; justify-content: space-between; padding: 1.5rem 1rem; font-family: "Unbounded"; font-size: 1.15rem; }
.checkout-card, .admin-form { padding: clamp(1.35rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.checkout-card h2 { font-family: "Unbounded"; font-size: 1.25rem; }
.checkout-card > p { color: var(--muted); font-size: .82rem; }
.form-label { color: #cbd2dc; font-size: .7rem; font-weight: 800; }
.form-control, .form-select, .input-group-text { min-height: 46px; border-color: var(--line); border-radius: 10px; background-color: #0b1015; color: var(--ink); }
.form-control::placeholder { color: #5f6b79; }
.form-control:focus, .form-select:focus { border-color: var(--accent); background-color: #0b1015; color: var(--ink); box-shadow: 0 0 0 .18rem rgba(99,230,216,.1); }
.form-hint { display: block; margin-top: .4rem; color: #687483; font-size: .65rem; line-height: 1.4; }
.form-select { color-scheme: dark; }
.input-group-text { color: var(--muted); }
.input-group .input-group-text { border-radius: 10px 0 0 10px; }
.input-group .form-control { border-radius: 0 10px 10px 0; }
.success-section { min-height: 72vh; display: grid; place-items: center; }
.success-card { max-width: 780px; margin: auto; padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.success-icon { display: grid; width: 66px; height: 66px; margin: 0 auto 1.5rem; place-items: center; border: 1px solid rgba(99,230,216,.45); border-radius: 16px; background: rgba(99,230,216,.08); color: var(--accent); font-size: 1.5rem; }
.success-card h1 { margin: .5rem 0 1rem; font-family: "Unbounded"; }
.order-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0; border-block: 1px solid var(--line); }
.order-summary > div { padding: 1.25rem .5rem; }
.order-summary span, .order-summary strong { display: block; }
.order-summary span { color: var(--muted); font-size: .68rem; }
.success-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.success-cats span { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 8px; color: #b9c2cc; font-size: .72rem; }

/* Административная часть. */
.admin-nav { border-bottom: 1px solid var(--line); background: #0b1015; }
.admin-label { margin-right: 1rem; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-link { padding: .48rem .8rem; border-radius: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; text-decoration: none; }
.admin-link:hover, .admin-link.active { background: rgba(99,230,216,.08); color: var(--accent); }
.admin-section { min-height: 70vh; background: #090d12; }
.container-narrow { max-width: 900px; }
.stat-card { display: grid; min-height: 154px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.stat-card > span { color: var(--accent); font-family: "Unbounded"; font-size: .65rem; }
.stat-card strong { align-self: end; font-family: "Unbounded"; font-size: 1.85rem; }
.stat-card small { color: var(--muted); }
.stat-accent { border-color: rgba(99,230,216,.35); background: rgba(99,230,216,.07); }
.admin-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.border-bottom { border-color: var(--line) !important; }
.table { --bs-table-bg: transparent; --bs-table-color: #d9e0e8; --bs-table-border-color: var(--line); margin: 0; font-size: .8rem; }
.table > :not(caption) > * > * { padding: 1rem 1.15rem; border-color: var(--line); }
.table thead th { color: var(--muted); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.table td > strong, .table td > small { display: block; }
.table td > small { margin-top: .2rem; color: var(--muted); }
.table a { text-decoration: none; }
.table-action { color: var(--accent); font-weight: 800; white-space: nowrap; }
.admin-empty { padding: 4rem 1rem; color: var(--muted); text-align: center; }
.admin-cat { display: flex; min-width: 200px; align-items: center; gap: .7rem; }
.admin-thumb { width: 46px; height: 46px; border-radius: 9px; font-size: .7rem; }
.admin-image-wrap { width: 46px; height: 46px; border-radius: 9px; }
.admin-cat strong, .admin-cat small { display: block; }
.admin-cat small { color: var(--muted); font-size: .66rem; }
.availability { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 700; }
.availability span { display: block; width: 8px; height: 8px; border-radius: 50%; background: #5d6875; }
.availability.available { color: var(--accent); }
.availability.available span { background: var(--accent); box-shadow: 0 0 0 4px rgba(99,230,216,.1); }
.status-badge { display: inline-block; padding: .4rem .65rem; border-radius: 7px; background: #202833; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.status-new { background: rgba(189,140,255,.12); color: #caa3ff; }
.status-confirmed { background: rgba(76,166,255,.12); color: #75bbff; }
.status-preparing { background: rgba(255,179,92,.12); color: #ffc079; }
.status-completed { background: rgba(99,230,216,.12); color: var(--accent); }
.status-cancelled { background: rgba(255,122,122,.12); color: #ff9b9b; }
.status-large { padding: .6rem .9rem; font-size: .75rem; }
.login-section { min-height: 75vh; display: grid; place-items: center; }
.login-card { width: min(100%, 440px); margin: auto; padding: 2.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.login-card h1 { margin: .6rem 0 1rem; font-family: "Unbounded"; font-size: 1.5rem; }
.login-card p { color: var(--muted); font-size: .82rem; }
.login-card .form-label { display: block; text-align: left; }
.login-icon { margin-bottom: 1rem; color: var(--accent); font-family: "Unbounded"; font-size: 1.4rem; }
.order-item-row, .order-total-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.order-item-row small { display: block; color: var(--muted); }
.order-total-row { padding-bottom: 0; border: 0; font-family: "Unbounded"; font-size: 1.05rem; }
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0; }
.customer-grid .full { grid-column: 1 / -1; }
.customer-grid dt { margin-bottom: .25rem; color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.customer-grid dd { margin: 0; }
.customer-grid a { color: var(--accent); }
.admin-sticky { top: 100px; }
.status-track { position: relative; }
.track-step { position: relative; display: flex; gap: .75rem; min-height: 54px; color: #606c79; }
.track-step::before { position: absolute; top: 17px; bottom: -3px; left: 6px; width: 1px; background: var(--line); content: ""; }
.track-step:last-child::before { display: none; }
.track-step > span { position: relative; z-index: 1; display: block; flex: 0 0 13px; width: 13px; height: 13px; margin-top: 4px; border: 2px solid #56616e; border-radius: 50%; background: var(--surface); }
.track-step strong, .track-step small { display: block; }
.track-step strong { font-size: .77rem; }
.track-step small { margin-top: .15rem; font-size: .63rem; }
.track-step.current, .track-step.passed { color: var(--ink); }
.track-step.current > span, .track-step.passed > span { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(99,230,216,.1); }
.track-cancelled { margin-top: .5rem; padding: .75rem; border-radius: 9px; background: rgba(255,122,122,.1); color: #ff9b9b; font-size: .7rem; font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); background: #080b0f; }
.site-footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
.cart-toast { position: fixed; z-index: 1080; right: 1.25rem; bottom: 1.25rem; display: flex; width: min(360px, calc(100vw - 2rem)); align-items: center; gap: .8rem; padding: 1rem; border: 1px solid rgba(99,230,216,.35); border-radius: 14px; background: rgba(15,20,26,.97); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(18px); transition: opacity .22s ease, transform .22s ease; }
.cart-toast.show { opacity: 1; transform: translateY(0); }
.cart-toast.is-error { border-color: rgba(255,122,122,.42); }
.cart-toast-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(99,230,216,.12); color: var(--accent); font-weight: 900; }
.cart-toast.is-error .cart-toast-icon { background: rgba(255,122,122,.12); color: var(--danger); }
.cart-toast strong, .cart-toast small { display: block; }
.cart-toast strong { color: var(--ink); font-size: .82rem; }
.cart-toast small { overflow: hidden; max-width: 255px; margin-top: .16rem; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
form button[aria-busy="true"] { cursor: wait; opacity: .65; }

@media (max-width: 991.98px) {
  .py-lg-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .navbar-collapse { padding: 1rem 0; }
  .hero-showcase { min-height: 440px; }
  .care-panel { align-items: flex-start; flex-direction: column; gap: 2rem; }
}

@media (max-width: 575.98px) {
  .display-title { font-size: 2.5rem; }
  .hero-showcase { min-height: 360px; }
  .showcase-product { min-height: 200px; padding: .75rem; border-radius: 13px; }
  .showcase-product small { font-size: .46rem; }
  .showcase-product strong { font-size: .55rem; }
  .showcase-product-1 { left: 8%; }
  .showcase-product-3 { right: 7%; }
  .category-tile { min-height: 145px; align-items: flex-start; flex-direction: column; gap: .5rem; }
  .category-arrow { position: absolute; align-self: flex-end; }
  .search-form { width: 100%; }
  .care-panel { border-radius: 18px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-buy { align-items: stretch; flex-direction: column; }
  .detail-buy .btn { width: 100%; }
  .cart-item { align-items: flex-start; flex-wrap: wrap; }
  .cart-thumb, .cart-image-wrap { width: 62px; height: 62px; }
  .cart-toast { right: 1rem; bottom: 1rem; }
  .order-summary { grid-template-columns: 1fr; }
  .order-summary > div { border-bottom: 1px solid var(--line); }
  .order-summary > div:last-child { border: 0; }
  .admin-label { width: 100%; }
  .customer-grid { grid-template-columns: 1fr; }
  .customer-grid .full { grid-column: auto; }
}

/* Библиотека дыма: логотип, варианты вкуса, доставка, Telegram Mini App и 18+ gate. */
body.age-locked { overflow: hidden; }
.age-gate[hidden] { display: none !important; }
.age-gate { position: fixed; z-index: 2000; inset: 0; display: grid; min-height: 100dvh; place-items: center; padding: 1rem; background: radial-gradient(circle at 50% 15%, rgba(99,230,216,.12), transparent 30%), rgba(5,7,10,.98); backdrop-filter: blur(18px); }
.age-card { width: min(100%, 620px); padding: clamp(1.5rem, 6vw, 3.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 35px 120px rgba(0,0,0,.65); text-align: center; }
.age-card h1 { margin: .8rem 0 1rem; font-family: "Unbounded"; font-size: clamp(1.65rem, 5vw, 2.7rem); letter-spacing: -.05em; }
.age-card p { max-width: 480px; margin: 0 auto 1.75rem; color: var(--muted); line-height: 1.7; }
.age-logo { display: block; width: min(100%, 360px); height: auto; margin: -1rem auto .75rem; }
.age-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.age-denied-mark { display: grid; width: 78px; height: 78px; margin: 0 auto 1rem; place-items: center; border: 1px solid rgba(255,122,122,.45); border-radius: 20px; background: rgba(255,122,122,.08); color: #ff9b9b; font-family: "Unbounded"; }
.brand-logo-frame { display: block; width: 184px; background: transparent; }
.brand-logo { display: block; width: 100%; height: auto; }
.footer-logo-frame { width: 250px; }
.hero-brand-logo { display: block; width: min(100%, 360px); height: auto; margin: -1rem 0 .5rem; }
.telegram-user { max-width: 140px; overflow: hidden; color: var(--accent); font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-actions, .social-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.footer-actions { justify-content: flex-end; }
.footer-actions .btn, .social-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1rem; line-height: 1.25; text-align: center; white-space: normal; }
.footer-actions .btn { flex: 1 1 180px; }
.social-actions .btn { flex: 0 1 auto; }
.flavor-preview { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.flavor-preview span, .selected-flavor { display: inline-block; padding: .3rem .5rem; border: 1px solid rgba(99,230,216,.25); border-radius: 7px; background: rgba(99,230,216,.06); color: var(--accent); font-size: .63rem; font-weight: 700; }
.detail-cart-form { width: min(100%, 280px); }
.form-error { display: block; margin: .35rem 0; color: #ff9b9b; font-size: .68rem; font-weight: 700; }
.checkout-alert { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border: 1px solid rgba(255,179,92,.35); border-radius: 12px; background: rgba(255,179,92,.08); color: #ffd098; }
.minimum-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(255,179,92,.3); border-radius: 14px; background: rgba(255,179,92,.06); }
.minimum-card strong, .minimum-card small { display: block; }
.minimum-card small { margin-top: .25rem; color: var(--muted); }
.minimum-card > span { color: var(--orange); font-family: "Unbounded"; }
.minimum-card.complete { border-color: rgba(99,230,216,.35); background: rgba(99,230,216,.07); }
.minimum-card.complete > span { color: var(--accent); }
.delivery-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.delivery-option { position: relative; cursor: pointer; }
.delivery-option input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-option > span { display: block; height: 100%; padding: .9rem; border: 1px solid var(--line); border-radius: 11px; background: #0b1015; transition: .18s ease; }
.delivery-option strong, .delivery-option small { display: block; }
.delivery-option strong { font-size: .72rem; }
.delivery-option small { margin-top: .25rem; color: var(--muted); font-size: .62rem; line-height: 1.4; }
.delivery-option input:checked + span { border-color: var(--accent); background: rgba(99,230,216,.08); box-shadow: 0 0 0 3px rgba(99,230,216,.07); }
.btn:disabled, .btn.disabled { cursor: not-allowed; filter: saturate(.25); opacity: .48; transform: none !important; }
.success-delivery { margin: -1rem 0 2rem; color: var(--muted); font-size: .8rem; }
.telegram-mini-app body { padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); }

@media (max-width: 767.98px) {
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-actions { justify-content: flex-start; }
  .delivery-methods { grid-template-columns: 1fr; }
  .age-actions .btn { width: 100%; }
  .hero-brand-logo { width: 290px; }
  .footer-actions { width: 100%; }
  .footer-actions .btn, .social-actions .btn { flex-basis: 100%; width: 100%; }
}
