/* ===== Aspro LiteShop Style ===== */
:root {
    --theme-base-color: #5b7fff;
    --primary: #222222;
    --primary-light: #333333;
    --accent: #5b7fff;
    --accent-light: #7c9cff;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #222222;
    --text-muted: #777777;
    --text-light: #999999;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --success: #2d8a4e;
    --danger: #e53935;
    --warning: #f5a623;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
    --font: 'Inter', 'Open Sans', 'Segoe UI', -apple-system, sans-serif;
    --page-width: 1500px;
    --page-padding: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--page-padding); }

/* ===== Product Image Placeholders ===== */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #a0aec0;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}
.img-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(91,127,255,0.03) 0%, transparent 50%, rgba(184,134,11,0.03) 100%);
}
.img-placeholder .emoji {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.img-placeholder-sm { font-size: 24px; }
.img-placeholder-lg { font-size: 80px; }
.img-placeholder-xl { font-size: 120px; background: linear-gradient(135deg, #f0f2f5 0%, #e2e6ea 100%); }

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Product Gallery ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.product-gallery {
    position: sticky;
    top: 20px;
}
.product-gallery .main-image {
    width: 100%;
    height: 450px;
    background: #f7f7f7;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.product-gallery .thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-gallery .thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
    background: #f7f7f7;
}
.product-gallery .thumb.active,
.product-gallery .thumb:hover {
    border-color: var(--accent);
}
.product-info h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}
.product-info .sku {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.product-info .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}
.product-info .description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}
.product-info .variants {
    margin-bottom: 20px;
}
.product-info .variants label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}
.product-info .variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-info .variant-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}
.product-info .variant-btn.active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}
.product-info .quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.product-info .quantity-selector label {
    font-size: 13px;
    color: var(--text);
}
.product-info .quantity-selector .controls {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.product-info .quantity-selector button {
    width: 36px;
    height: 36px;
    background: #f7f7f7;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background var(--transition);
}
.product-info .quantity-selector button:hover {
    background: #e8ecf1;
}
.product-info .quantity-selector input {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
}
.product-info .product-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.product-info .product-meta p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.product-info .product-meta strong {
    color: var(--text);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-primary:hover {
    background: #4a6ae8;
}
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Top Bar ===== */
.top-bar {
    background: #f7f7f7;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: var(--text-muted); font-size: 13px; }
.top-bar a:hover { color: var(--accent); }
.top-bar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }

/* ===== Header ===== */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-main {
    padding: 16px 0;
}
.header-main .container {
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo img { height: 34px; width: auto; }
.logo-text {
    font-size: 18px; font-weight: 700;
    color: var(--text); letter-spacing: -0.02em;
}
.logo-sub {
    font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}
.header-logo img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}
.header-logo:hover { color: var(--text); }
.header-search {
    flex: 1; max-width: 500px; position: relative;
}
.header-search input {
    width: 100%; padding: 10px 44px 10px 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; background: #f7f7f7;
    transition: border-color var(--transition), background var(--transition);
}
.header-search input:focus { outline: none; border-color: var(--accent); background: white; }
.header-search button {
    position: absolute; right: 4px; top: 4px;
    background: var(--accent); border: none; border-radius: var(--radius-sm);
    padding: 6px 14px; color: white; cursor: pointer; font-size: 13px;
}
.header-icons {
    display: flex; gap: 16px; align-items: center; flex-shrink: 0;
}
.header-icons a {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-muted);
    transition: color var(--transition);
}
.header-icons a:hover { color: var(--accent); }
.header-icons .icon-badge {
    background: var(--accent); color: white;
    border-radius: 10px; padding: 1px 7px;
    font-size: 11px; font-weight: 600; margin-left: 2px;
}
.catalog-bar {
    background: white; border-top: 1px solid var(--border);
}
.catalog-bar .container {
    display: flex; align-items: center; gap: 0;
}
.catalog-btn {
    background: var(--accent); color: white;
    padding: 12px 24px; font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    border: none; transition: background var(--transition);
    text-decoration: none;
}
.catalog-btn:hover { background: #4a6ae8; color: white; }
/* Mega-menu under the catalog button (hover / keyboard focus) */
.catalog-menu { position: relative; }
.catalog-dropdown {
    display: none; position: absolute; top: 100%; left: 0;
    width: min(680px, calc(100vw - 40px));
    background: white; border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md); z-index: 60;
    grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px;
}
.catalog-menu:hover .catalog-dropdown,
.catalog-menu:focus-within .catalog-dropdown { display: grid; }
.cd-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px; border-radius: var(--radius);
    transition: background var(--transition);
}
.cd-item:hover { background: var(--bg); }
.cd-icon { font-size: 24px; line-height: 1.2; }
.cd-name { font-size: 13px; font-weight: 600; color: var(--text); }
.cd-item:hover .cd-name { color: var(--accent); }
.cd-desc { font-size: 12px; color: var(--text-muted); }
.catalog-nav {
    display: flex; gap: 0; flex: 1; padding-left: 8px;
}
.catalog-nav a {
    color: var(--text); padding: 12px 16px;
    font-size: 13px; font-weight: 500;
    transition: color var(--transition);
}
.catalog-nav a:hover { color: var(--accent); }

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative; background: #f5f7fa; overflow: hidden;
}
.hero-slide { display: none; }
.hero-slide.active {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 420px; align-items: center;
}
.hero-slide .slide-content { padding: 48px 60px; }
.hero-slide .slide-tag {
    display: inline-block; background: var(--accent); color: white;
    padding: 4px 12px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    border-radius: var(--radius-sm); margin-bottom: 16px;
}
.hero-slide h1 {
    font-size: 36px; font-weight: 700; line-height: 1.15;
    margin-bottom: 16px; color: var(--text);
}
.hero-slide p {
    font-size: 15px; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 24px; max-width: 480px;
}
.hero-slide .slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slide .btn {
    display: inline-block; padding: 12px 28px;
    border-radius: var(--radius); font-size: 13px; font-weight: 600;
    transition: all var(--transition);
}
.hero-slide .btn-primary { background: var(--accent); color: white; border: none; }
.hero-slide .btn-primary:hover { background: #4a6ae8; }
.hero-slide .btn-outline { background: white; color: var(--text); border: 1px solid var(--border); }
.hero-slide .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-slide .slide-image {
    display: flex; align-items: center; justify-content: center;
    background: #f0f2f5; font-size: 120px; position: relative;
    align-self: stretch; overflow: hidden;
}
.hero-slide .slide-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide .slide-image .discount-badge {
    position: absolute; top: 24px; right: 24px;
    background: var(--danger); color: white;
    padding: 8px 16px; font-size: 14px; font-weight: 700;
    border-radius: var(--radius);
}
.hero-dots {
    position: absolute; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.hero-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ccc; cursor: pointer; transition: background var(--transition);
}
.hero-dots span.active { background: var(--accent); }

/* ===== Quick categories ===== */
.quick-cats {
    display: grid; grid-template-columns: repeat(8, 1fr);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.quick-cats-5 { grid-template-columns: repeat(5, 1fr); }
.quick-cat {
    padding: 16px 8px; text-align: center;
    border-right: 1px solid var(--border);
    transition: background var(--transition); cursor: pointer;
}
.quick-cat:last-child { border-right: none; }
.quick-cat:hover { background: #f8f9fa; }
.quick-cat .icon { font-size: 32px; margin-bottom: 6px; }
.quick-cat .name { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ===== Section ===== */
.section { padding: 40px 0; }
.section-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.section-title { font-size: 22px; font-weight: 700; color: var(--text); }
.section-title a { color: var(--text); }
.section-title a:hover { color: var(--accent); }
.section-link { font-size: 13px; color: var(--accent); font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* ===== Catalog layout (sidebar + products) ===== */
.catalog-layout {
    display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.catalog-sidebar {
    width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px;
}
.catalog-main { flex: 1; min-width: 0; }
.catalog-side-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}
.catalog-side-card h4 { margin: 0 0 12px; }
.catalog-side-link {
    display: block; padding: 6px 0; font-size: 13px;
    color: var(--text); transition: color var(--transition);
}
.catalog-side-link:hover { color: var(--accent); }
.catalog-side-link.active { color: var(--accent); font-weight: 600; }
.page-nav {
    padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 13px; color: var(--text);
}
.page-nav:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Product cards ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.product-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
    position: relative;
    display: flex; flex-direction: column; /* equal-height cards, action pinned to bottom */
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: #d0d0d0; }
.product-card .badges {
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.product-badge {
    padding: 3px 8px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    border-radius: var(--radius-sm); color: white;
}
.badge-hit { background: #ff6b35; }
.badge-new { background: #5b7fff; }
.badge-sale { background: #e53935; }
.badge-recommend { background: #2d8a4e; }
.product-card .quick-view {
    position: absolute; top: 8px; right: 8px;
    width: 32px; height: 32px; background: white;
    border: 1px solid var(--border); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; opacity: 0; transition: opacity var(--transition); cursor: pointer; z-index: 2;
}
.product-card:hover .quick-view { opacity: 1; }
.product-card .image {
    height: 200px; display: flex;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: #f7f7f7;
}
.product-card .image .discount {
    position: absolute; top: 8px; right: 8px;
    background: var(--danger); color: white;
    padding: 4px 8px; font-size: 12px; font-weight: 700;
    border-radius: var(--radius-sm);
}
.product-card .info { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.product-card .name {
    font-size: 13px; font-weight: 500; margin-bottom: 6px;
    color: var(--text); line-height: 1.4; height: 36px; overflow: hidden;
}
.product-card .name a { color: var(--text); }
.product-card .name a:hover { color: var(--accent); }
.product-card .rating {
    font-size: 11px; color: var(--text-muted);
    margin-bottom: 6px; display: flex; align-items: center; gap: 4px;
}
.product-card .rating .stars { color: #f5a623; }
.product-card .price-row {
    display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.product-card .price { font-size: 18px; font-weight: 700; color: var(--text); }
.product-card .price-old { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.product-card .stock { font-size: 11px; color: var(--success); margin-bottom: 10px; }
.product-card .stock-order { color: var(--text-muted); }
.product-card .variants { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.product-card .variant-dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border); cursor: pointer;
    transition: border-color var(--transition);
}
.product-card .variant-dot:hover, .product-card .variant-dot.active { border-color: var(--accent); }
.product-card .btn-cart {
    display: block; width: 100%; padding: 8px;
    background: var(--accent); color: white; border: none;
    border-radius: var(--radius); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
    transition: background var(--transition);
}
.product-card .btn-cart:hover { background: #4a6ae8; }
/* Keep "add to cart" aligned on one line across the row, whatever info above it */
.product-card .info form { margin-top: auto; padding-top: 10px; }
.product-card .info > button.btn-cart { margin-top: auto; }

/* ===== Category banners ===== */
.cat-banners {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; margin: 32px 0;
}
.cat-banner {
    background: var(--primary); color: white;
    border-radius: var(--radius); padding: 32px 24px;
    position: relative; overflow: hidden; min-height: 180px;
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: background var(--transition);
}
.cat-banner:hover { background: var(--primary-light); }
.cat-banner .tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-light); margin-bottom: 8px; }
.cat-banner h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.cat-banner p { font-size: 13px; opacity: 0.6; margin-bottom: 12px; }
.cat-banner .btn {
    display: inline-block; padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2); color: white;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; border-radius: var(--radius);
    transition: all var(--transition); align-self: flex-start;
}
.cat-banner .btn:hover { background: white; color: var(--primary); border-color: white; }
.cat-banner .bg-icon { position: absolute; top: 16px; right: 16px; font-size: 72px; opacity: 0.06; }

/* ===== Brands ===== */
.brands-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1px; background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.brand-item {
    background: white; padding: 24px 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    transition: background var(--transition); cursor: pointer;
}
.brand-item:hover { background: #fafbfc; color: var(--text); }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.service-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    transition: box-shadow var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card .icon { font-size: 32px; margin-bottom: 12px; }
.service-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; text-transform: none; letter-spacing: 0; color: var(--text); }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.service-card .price { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 8px; }

/* ===== Advantages ===== */
.advantages-bar { background: var(--primary); color: white; padding: 20px 0; }
.advantages-bar .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.adv-item { display: flex; align-items: center; gap: 12px; }
.adv-item .icon { font-size: 24px; opacity: 0.7; }
.adv-item .text { font-size: 12px; line-height: 1.4; }
.adv-item .text strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.news-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card .image { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 48px; background: #f7f7f7; }
.news-card .info { padding: 16px; }
.news-card .meta { font-size: 11px; color: var(--text-light); margin-bottom: 8px; display: flex; gap: 12px; }
.news-card .meta .cat { color: var(--accent); font-weight: 500; }
.news-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== Footer ===== */
.footer { background: var(--primary); color: #999; padding: 48px 0 24px; font-size: 13px; }
.footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer p { margin-bottom: 6px; line-height: 1.6; }
.footer a { color: #999; transition: color var(--transition); }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 12px; }

/* ===== Promo code ===== */
.promo-card { margin-top: 16px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input {
    flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
}
.promo-form input:focus { outline: none; border-color: var(--accent); }
.promo-applied {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px dashed var(--accent);
    border-radius: var(--radius); padding: 4px 8px; margin-bottom: 8px;
}
.promo-badge { font-size: 12px; color: var(--accent); font-weight: 600; }
.cart-discount { font-size: 14px; color: var(--success, #1a7f37); margin-bottom: 4px; }

/* ===== Responsive ===== */
@media (max-width: 1200px) { .quick-cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
    .catalog-sidebar { width: 100%; }
    .hero-slide { grid-template-columns: 1fr; min-height: auto; }
    .hero-slide .slide-image { height: 200px; font-size: 80px; }
    .hero-slide .slide-content { padding: 32px 20px; }
    .hero-slide h1 { font-size: 24px; }
    .quick-cats { grid-template-columns: repeat(3, 1fr); }
    .cat-banners { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery { position: static; }
    .product-gallery .main-image { height: 300px; }
}
@media (max-width: 480px) {
    .quick-cats { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
    .hero-slide h1 { font-size: 20px; }
}

/* ===== Design system v2: tokens, forms, pages ===== */
:root {
    --radius-lg: 12px;
}

/* ---- Page scaffolding (account / checkout / info pages) ---- */
.flash-container { padding-top: 16px; }
.page-container { max-width: 1100px; }
.page-narrow { max-width: 860px; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.breadcrumbs {
    display: flex; gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
}
.breadcrumbs .current { color: var(--text); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-lg { border-radius: var(--radius-lg); padding: 32px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.page-sub { font-size: 16px; font-weight: 600; margin: 24px 0 12px; }
.muted { color: var(--text-muted); }

/* ---- Flash messages ---- */
.flash-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 8px; }
.flash-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.flash-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.flash-info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.flash-debug { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group label .hint { font-weight: 400; color: var(--text-muted); }
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 127, 255, 0.12);
}
textarea { resize: vertical; }
.form-group input:disabled {
    background: #f5f6f8;
    color: var(--text-muted);
    cursor: not-allowed;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
}
.checkbox-group input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); }
.filter-select {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 13px; background: white; color: var(--text);
}

/* ---- Buttons & links ---- */
.btn-block { width: 100%; text-align: center; }
.btn-as-link { display: inline-block; text-decoration: none; }
.link-accent { color: var(--accent); font-size: 13px; font-weight: 500; }
.link-accent:hover { text-decoration: underline; }
.link-center { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--accent); }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--accent); font-weight: 500; }

/* ---- Info pages ---- */
.info-text p { margin-bottom: 16px; line-height: 1.7; }
.info-text h2 { font-size: 18px; margin: 24px 0 12px; }
.info-text h3 { font-size: 16px; margin: 24px 0 12px; }
.info-text ol, .info-text ul { padding-left: 20px; line-height: 1.9; }
.info-box {
    background: #f1f5f9; border-radius: var(--radius);
    padding: 20px; margin-bottom: 16px; line-height: 1.7; font-size: 14px;
}
.requisites-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.requisites-table td { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.requisites-table tr:last-child td { border-bottom: none; }
.requisites-table td:first-child { font-weight: 600; width: 160px; }

/* ---- Auth pages ---- */
.auth-container { max-width: 460px; }
.auth-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.auth-note {
    margin-top: 16px; padding: 10px 12px;
    background: #f8fafc; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

/* ---- Account (profile) ---- */
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.account-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; height: fit-content;
}
.account-avatar {
    width: 64px; height: 64px; background: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 600; margin: 0 auto 12px;
}
.account-center { text-align: center; margin-bottom: 20px; }
.account-name { font-weight: 600; font-size: 16px; }
.account-detail { font-size: 13px; color: var(--text-muted); }
.account-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text-muted); margin-bottom: 4px;
    transition: background var(--transition), color var(--transition);
}
.account-menu a:hover { background: #f5f7fb; color: var(--accent); }
.account-menu a.active { background: #eef3ff; color: var(--accent); font-weight: 600; }
.account-menu a.danger { color: var(--danger); }
.account-menu a.danger:hover { background: #fef2f2; color: var(--danger); }

.order-item {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.order-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.order-head-space { justify-content: space-between; margin-bottom: 20px; }
.order-number { font-weight: 600; color: var(--text); }
.order-number:hover { color: var(--accent); }
.order-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.order-items { font-size: 14px; line-height: 1.6; }
.order-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.order-row:last-child { border-bottom: none; }

/* ---- Status badges ---- */
.badge {
    display: inline-block; padding: 4px 10px; border-radius: 2px;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.03em; white-space: nowrap;
    background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0;
}
.badge-new { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.badge-awaiting_payment { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-paid, .badge-issued { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.badge-preparing { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }
.badge-ready_for_pickup { background: #ecfdf5; color: #0d9488; border-color: #99f6e4; }
.badge-cancelled { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.badge-returned { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

/* ---- Cart ---- */
.cart-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.cart-line { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.cart-line + .cart-line { border-top: 1px solid var(--border); }
.cart-thumb {
    width: 64px; height: 64px; background: #f7f7f7;
    border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
}
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 14px; font-weight: 500; color: var(--text); }
.cart-name:hover { color: var(--accent); }
.cart-sku { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cart-error-note { font-size: 12px; color: var(--danger); margin-top: 4px; }
.cart-price { font-size: 14px; color: var(--text-muted); width: 90px; text-align: right; flex-shrink: 0; }
.cart-line-total { width: 100px; text-align: right; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.qty-stepper { display: flex; align-items: center; gap: 4px; }
.qty-stepper button {
    width: 30px; height: 30px; border: 1px solid var(--border);
    background: #f7f7f7; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 15px; color: var(--text);
    transition: border-color var(--transition), color var(--transition);
}
.qty-stepper button:hover { border-color: var(--accent); color: var(--accent); }
.qty-stepper input {
    width: 46px; height: 30px; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; background: #fff;
}
.icon-btn {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 16px; padding: 4px;
    transition: color var(--transition);
}
.icon-btn:hover { color: var(--danger); }
.cart-footer {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; margin-top: 24px; flex-wrap: wrap;
}
.cart-count-label { font-size: 14px; color: var(--text-muted); }
.cart-total { font-size: 22px; font-weight: 700; margin: 4px 0 16px; }

/* ---- Checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.summary-card { position: sticky; top: 20px; }
.summary-row {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: 13px; margin-bottom: 10px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.summary-rows .summary-row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.summary-meta {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--text-muted);
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.summary-total {
    display: flex; justify-content: space-between;
    font-size: 20px; font-weight: 700; margin-bottom: 20px;
}
.pickup-box {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px; background: #f8fafc;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; line-height: 1.5;
}
.pickup-box input[type="radio"] { margin-top: 3px; }
.fineprint { font-size: 11px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }

/* ---- Order detail ---- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: 14px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); }
.data-table th {
    background: #f8fafc; padding: 12px 16px; text-align: left;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted);
}
.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.data-table tbody tr:first-child td { border-top: none; }
.data-table .center { text-align: center; }
.data-table .num { text-align: right; }
.data-table .strong { font-weight: 600; }
.data-table .sku { color: var(--text-muted); font-size: 12px; }
.data-table tfoot td { background: #f8fafc; font-weight: 600; }
.data-table .grand-total { font-size: 18px; font-weight: 700; }
.history-row {
    display: flex; gap: 16px; padding: 8px 0;
    border-bottom: 1px solid var(--border-light); font-size: 14px; flex-wrap: wrap;
}
.history-row:last-child { border-bottom: none; }
.history-date { color: var(--text-muted); min-width: 140px; }
.notice-box {
    margin-top: 12px; padding: 10px 12px;
    border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5;
}
.notice-box.warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }

/* ---- Empty states ---- */
.empty-state {
    text-align: center; padding: 64px 24px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-state-compact { padding: 40px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { color: var(--text-muted); margin: 0 auto 20px; max-width: 440px; line-height: 1.6; }

/* ---- Responsive additions ---- */
@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .cart-line { flex-wrap: wrap; row-gap: 8px; }
    .cart-price { width: auto; }
    .cart-line-total { width: auto; }
}
