/* TechStore - WoodMart Electronics inspired theme */
:root {
    --primary: #1e73be;
    --primary-dark: #175d99;
    --accent: #e94e3c;
    --dark: #242424;
    --text: #333;
    --muted: #777;
    --border: #e5e5e5;
    --bg-gray: #f5f5f5;
    --green: #459647;
    --radius: 10px;
    --shadow: 0 5px 25px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #ccc; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 30px; padding: 22px 20px; }

.logo { font-size: 28px; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.logo span { color: var(--primary); }

.header-search {
    flex: 1;
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 999px;
    overflow: hidden;
    max-width: 620px;
}
.header-search .search-cat {
    border: none; outline: none;
    background: var(--bg-gray);
    padding: 0 14px;
    font-size: 13px;
    color: var(--muted);
    border-right: 1px solid var(--border);
    max-width: 160px;
}
.header-search input {
    flex: 1; border: none; outline: none;
    padding: 11px 16px;
}
.header-search button {
    background: var(--primary); color: #fff;
    border: none; padding: 0 22px;
    display: flex; align-items: center;
}
.header-search button:hover { background: var(--primary-dark); }

.header-actions { display: flex; gap: 24px; margin-left: auto; }
.header-action {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; font-size: 12px; color: var(--dark);
    position: relative;
}
.header-action:hover { color: var(--primary); }
.cart-count-badge {
    position: absolute; top: -6px; right: 2px;
    background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 17px; height: 17px; line-height: 17px;
    text-align: center; border-radius: 50%;
    padding: 0 3px;
}
.cart-action { padding-right: 8px; }

/* ---------- Nav ---------- */
.main-nav { border-top: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 30px; }

.nav-categories-toggle {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    background: var(--primary); color: #fff;
    font-weight: 600; font-size: 14px;
    padding: 13px 24px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    min-width: 240px;
}
.nav-categories-dropdown {
    display: none;
    position: absolute; top: 100%; left: 0;
    background: #fff; color: var(--text);
    min-width: 280px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 100;
}
.nav-categories-toggle:hover .nav-categories-dropdown { display: block; }
.nav-categories-dropdown a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #f2f2f2;
    font-weight: 500;
}
.nav-categories-dropdown a:hover { color: var(--primary); background: #fafafa; }
.nav-categories-dropdown img { width: 26px; height: 26px; object-fit: contain; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 14px; padding: 14px 0; color: var(--dark); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-hotline { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--dark); }
.nav-hotline small { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.nav-hotline strong { font-size: 15px; }

/* ---------- Hero ---------- */
.hero-section { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin: 20px auto; }
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #eef2f5;
    height: 460px;
}
.hero-slide {
    position: absolute; inset: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .7s ease, visibility .7s;
    z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-content { padding: 50px; position: relative; z-index: 3; }
.hero-slide-content .subtitle { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.hero-slide-content h2 { font-size: 38px; font-weight: 800; color: var(--dark); line-height: 1.15; margin-bottom: 12px; }
.hero-slide-content p { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.hero-slide-img { position: relative; height: 100%; overflow: hidden; }
.hero-slide-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transform: scale(1.06);
    transition: transform 6s ease;
}
.hero-slide.active .hero-slide-img img { transform: scale(1); }
.hero-dots {
    position: absolute; bottom: 18px; left: 0; right: 0;
    display: flex; gap: 8px; justify-content: center;
    z-index: 5;
}
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    border: none; background: #b8c2cb;
    padding: 0; cursor: pointer;
    transition: all .25s;
}
.hero-dots button.active { background: var(--primary); width: 26px; border-radius: 999px; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    width: 42px; height: 42px; border-radius: 50%;
    border: none; background: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,.14);
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    opacity: 0; transition: opacity .25s, background .2s, color .2s;
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--primary); color: #fff; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.hero-side { display: flex; flex-direction: column; gap: 20px; }
.hero-side-banner {
    flex: 1; position: relative;
    border-radius: var(--radius); overflow: hidden;
    background: #eef2f5;
    display: block;
}
.hero-side-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-banner .banner-text {
    position: absolute; top: 22px; left: 24px; right: 24px;
}
.hero-side-banner h3 { font-size: 19px; font-weight: 700; color: var(--dark); }
.hero-side-banner span { color: var(--primary); font-weight: 600; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--primary); color: #fff;
    font-weight: 600; font-size: 13px;
    padding: 11px 26px;
    border: none; border-radius: 999px;
    transition: background .2s;
    text-align: center;
}
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 9px 24px; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--dark); }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 14px 36px; font-size: 15px; }

/* ---------- Sections ---------- */
.section { margin: 50px auto; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; font-weight: 800; color: var(--dark); }
.section-head .view-all { color: var(--dark); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.section-head .view-all:hover { color: var(--primary); }

/* ---------- Category tiles ---------- */
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.category-tile {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 22px 10px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}
.category-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.category-tile img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 12px; }
.category-tile span { font-size: 13px; font-weight: 600; color: var(--dark); display: block; line-height: 1.3; }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow .25s;
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); }

.product-thumb { position: relative; background: #fff; }
.product-thumb a { display: block; aspect-ratio: 270/309; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.product-thumb .img-hover { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .img-hover { opacity: 1; }
.product-card:hover .img-main { opacity: 0; }

.badge {
    position: absolute; z-index: 2;
    font-size: 11px; font-weight: 700;
    color: #fff; padding: 3px 10px;
    border-radius: 999px;
    top: 12px; left: 12px;
}
.badge-hot { background: var(--accent); }
.badge-sale { background: var(--green); }
.badge-hot + .badge-sale, .badge-sale + .badge-hot { top: 40px; }

.wishlist-btn {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none; background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    opacity: 0; transition: opacity .2s, color .2s;
}
.product-card:hover .wishlist-btn { opacity: 1; }
.wishlist-btn:hover, .wishlist-btn.in-wishlist { color: var(--accent); }

.product-info { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-rating { font-size: 13px; letter-spacing: 1px; }
.star { color: #d9d9d9; }
.star.filled { color: #eabe12; }
.product-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.product-title a:hover { color: var(--primary); }
.product-price { font-size: 16px; font-weight: 700; color: var(--dark); margin-top: auto; }
.product-price del { color: var(--muted); font-weight: 400; font-size: 13px; margin-right: 6px; }
.product-price ins { text-decoration: none; color: var(--accent); }
.btn-add { margin-top: 10px; width: 100%; }

/* ---------- Deals banners ---------- */
.deals-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.deal-banner {
    position: relative; border-radius: var(--radius); overflow: hidden;
    display: block; background: #eef2f5;
    min-height: 250px;
}
.deal-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.deal-banner-content { position: relative; z-index: 1; padding: 34px; max-width: 55%; }
.deal-banner-content .product-name { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.deal-banner-content h3 { font-size: 24px; font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 18px; }

.countdown { display: flex; gap: 8px; margin: 10px 0 0; }
.countdown div {
    background: var(--dark); color: #fff;
    border-radius: 8px; padding: 8px 10px;
    text-align: center; min-width: 54px;
}
.countdown div strong { display: block; font-size: 18px; }
.countdown div small { font-size: 10px; color: #aaa; text-transform: uppercase; }
.section-head .countdown { margin: 0; }
.section-head-deals { display: flex; align-items: center; gap: 22px; }

/* ---------- Brands ---------- */
.brands-strip {
    display: grid; grid-template-columns: repeat(10, 1fr);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.brand-cell {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    display: flex; align-items: center; justify-content: center;
    filter: grayscale(1); opacity: .7;
    transition: filter .2s, opacity .2s;
    background: #fff;
}
.brand-cell:hover { filter: none; opacity: 1; }
.brand-cell img { max-height: 60px; object-fit: contain; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; }
.tab-btn {
    background: var(--bg-gray); border: none;
    padding: 9px 22px; border-radius: 999px;
    font-weight: 600; font-size: 13px; color: var(--dark);
}
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Shop page ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; margin: 30px auto; }
.shop-sidebar h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-block { margin-bottom: 30px; }
.filter-block a { display: block; padding: 5px 0; color: var(--text); font-size: 14px; }
.filter-block a:hover, .filter-block a.active { color: var(--primary); font-weight: 600; }
.filter-block label { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.price-inputs { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.price-inputs input { width: 80px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; }

.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 15px; flex-wrap: wrap;
}
.shop-toolbar .result-count { color: var(--muted); }
.shop-toolbar select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; outline: none; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 36px 0; }
.pagination a, .pagination span {
    min-width: 38px; height: 38px; line-height: 36px;
    text-align: center; border: 1px solid var(--border);
    border-radius: 50%; font-weight: 600; font-size: 13px;
    display: inline-block;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span.sep { margin: 0 7px; }

/* ---------- Product page ---------- */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 20px auto 50px; }
.product-gallery { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-gallery .main-img { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.product-gallery .main-img img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.gallery-thumbs img {
    width: 74px; height: 74px; object-fit: contain;
    border: 2px solid transparent; border-radius: 8px; cursor: pointer;
}
.gallery-thumbs img.active { border-color: var(--primary); }

.product-detail h1 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.2; }
.product-detail .meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.product-detail .price-big { font-size: 30px; font-weight: 800; color: var(--dark); margin: 14px 0; }
.product-detail .price-big del { font-size: 20px; color: var(--muted); font-weight: 400; margin-right: 10px; }
.product-detail .price-big ins { text-decoration: none; color: var(--accent); }
.product-detail .short-desc { color: var(--muted); margin-bottom: 18px; }

.option-group { margin-bottom: 16px; }
.option-group .option-label { font-weight: 600; margin-bottom: 8px; display: block; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-value {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 7px 15px; font-size: 13px; cursor: pointer;
    background: #fff; transition: all .15s;
}
.option-value:hover { border-color: var(--primary); }
.option-value.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.option-value .option-extra { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.option-value.selected .option-extra { color: #fff; }

.buy-row { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.qty-box { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-box button { width: 40px; height: 46px; background: #fff; border: none; font-size: 17px; }
.qty-box button:hover { background: var(--bg-gray); }
.qty-box input { width: 50px; text-align: center; border: none; outline: none; font-weight: 600; }

.stock-status { color: var(--green); font-weight: 600; font-size: 13px; }
.stock-status.out { color: var(--accent); }

.product-meta-list { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.product-meta-list div { padding: 3px 0; }
.product-meta-list strong { color: var(--dark); }

.product-tabs { margin: 30px auto 60px; }
.product-tabs .tabs { border-bottom: 1px solid var(--border); padding-bottom: 0; gap: 0; }
.product-tabs .tab-btn { background: none; border-radius: 0; padding: 13px 26px; font-size: 15px; border-bottom: 2px solid transparent; }
.product-tabs .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }
.product-tabs .tab-content { padding: 26px 4px; color: #555; max-width: 900px; }

/* ---------- Cart page ---------- */
.page-title { font-size: 30px; font-weight: 800; color: var(--dark); margin: 26px 0 22px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; margin-bottom: 60px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left; font-size: 12px; text-transform: uppercase;
    color: var(--muted); padding: 12px; border-bottom: 2px solid var(--border);
}
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 14px; }
.cart-prod img { width: 70px; height: 80px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; }
.cart-prod .name { font-weight: 600; color: var(--dark); }
.cart-prod .options { font-size: 12px; color: var(--muted); }
.cart-remove { background: none; border: none; color: var(--muted); font-size: 20px; line-height: 1; }
.cart-remove:hover { color: var(--accent); }

.cart-summary {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; background: var(--bg-gray);
}
.cart-summary h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); }
.summary-row.total { font-size: 18px; font-weight: 800; border-bottom: none; color: var(--dark); }
.cart-summary .btn { width: 100%; margin-top: 16px; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; color: var(--dark); }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form-page { max-width: 460px; margin: 40px auto 70px; }
.form-page.wide { max-width: 1100px; }
.form-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: 8px;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-note { text-align: center; margin-top: 16px; color: var(--muted); }
.form-note a { color: var(--primary); font-weight: 600; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fdecea; color: #b3261e; }
.alert-success { background: #e6f4ea; color: #1e7e34; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; margin-bottom: 60px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-option {
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid var(--border); border-radius: 8px;
    padding: 13px 16px; margin-bottom: 10px; cursor: pointer;
}
.payment-option input { margin-top: 3px; flex-shrink: 0; }
.payment-option:has(input:checked) { border-color: var(--primary); background: #f2f8fd; }

/* ---------- Account / admin tables ---------- */
.data-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.data-table th { text-align: left; background: var(--bg-gray); padding: 11px 13px; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.data-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); }
.status-pill { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-block; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #e2d9f3; color: #493777; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin: 30px auto 60px; min-height: 60vh; }
.admin-nav { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; align-self: start; }
.admin-nav a { display: block; padding: 13px 18px; border-bottom: 1px solid var(--border); font-weight: 600; }
.admin-nav a:hover, .admin-nav a.active { background: var(--primary); color: #fff; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .num { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-card .label { color: var(--muted); font-size: 13px; }
.admin-actions-cell a { color: var(--primary); font-weight: 600; margin-right: 10px; }
.admin-actions-cell a.danger { color: var(--accent); }

/* Product attribute builder (admin) */
.attr-builder { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: var(--bg-gray); }
.attr-builder > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.attr-group { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.attr-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.attr-group-name { flex: 1; min-width: 180px; font-weight: 600; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; }
.attr-images-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin: 0; white-space: nowrap; }
.attr-images-toggle input { width: auto; margin: 0; }
.attr-remove-group, .attr-remove-opt {
    border: none; background: #fdecea; color: #b3261e;
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1;
}
.attr-option-header, .attr-option-row { display: grid; grid-template-columns: 1fr 90px 32px; gap: 8px; align-items: center; }
.attr-group.attr-show-images .attr-option-header,
.attr-group.attr-show-images .attr-option-row { grid-template-columns: 1fr 90px 1fr 1fr 32px; }
.attr-group:not(.attr-show-images) .attr-col-image { display: none; }
.attr-option-header { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.attr-opt-name, .attr-opt-price, .attr-opt-image { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.attr-opt-price { text-align: right; }
.attr-add-opt { margin-top: 10px; padding: 8px 14px; font-size: 13px; }
#attr-add-group { margin-top: 4px; padding: 8px 16px; font-size: 13px; }
.attr-json-toggle { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--primary); font-weight: 600; }
.attr-json-panel { margin-top: 10px; }
.attr-json-panel textarea { font-family: monospace; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; bottom: 26px; right: 26px; z-index: 999;
    background: var(--dark); color: #fff;
    padding: 14px 22px; border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    opacity: 0; transform: translateY(15px);
    transition: all .3s; pointer-events: none;
    font-weight: 500;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-gray); margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 50px 20px 40px; }
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-col p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; color: var(--dark); }
.footer-col a { display: block; padding: 4px 0; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--primary); }
.footer-contact strong { color: var(--dark); font-size: 17px; }
.footer-bottom { border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }

/* ---------- Static pages ---------- */
.static-content { max-width: 820px; margin: 30px auto 60px; }
.static-content h1 { font-size: 30px; margin-bottom: 18px; color: var(--dark); }
.static-content h2 { font-size: 20px; margin: 26px 0 10px; color: var(--dark); }
.static-content p { margin-bottom: 12px; color: #555; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .brands-strip { grid-template-columns: repeat(5, 1fr); }
    .hero-section { grid-template-columns: 1fr; }
    .hero-side { flex-direction: row; }
    .nav-hotline { display: none; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; }
    .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
    .shop-layout { grid-template-columns: 1fr; }
    .product-page { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .deals-banners { grid-template-columns: 1fr; }
    .nav-links { overflow-x: auto; }
    .admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .hero-slide { grid-template-columns: 1fr; align-items: end; }
    .hero-slide-img { position: absolute; inset: 0; }
    .hero-slide-img img { opacity: .35; }
    .hero-slide-content { padding: 34px 30px 56px; }
    .hero-slide-content h2 { font-size: 28px; }
}
@media (max-width: 600px) {
    .product-grid, .product-grid.cols-5, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-strip { grid-template-columns: repeat(3, 1fr); }
    .hero-side { flex-direction: column; }
    .topbar-inner { justify-content: center; }
    .topbar-inner > span { display: none; }
}
