:root {
    --primary: #EE4D2D;
    --primary-hover: #D73211;
    --primary-light: rgba(238,77,45,0.08);
    --primary-glow: rgba(238,77,45,0.3);
    --secondary: #FF6633;
    --bg: #EFEFEF;
    --bg-page: #EFEFEF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --surface: #F5F5F5;
    --surface-2: #FFFFFF;
    --text: #222222;
    --text-secondary: #555555;
    --text-muted: #999999;
    --text-link: #0055AA;
    --border: #E0E0E0;
    --border-light: #F0F0F0;
    --success: #26AA99;
    --danger: #EE4D2D;
    --warning: #FFA500;
    --star: #FFC107;
    --radius: 2px;
    --radius-sm: 2px;
    --radius-card: 0;
    --shadow: 0 1px 1px rgba(0,0,0,0.05);
    --shadow-hover: 0 2px 12px rgba(0,0,0,0.12);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.08);
    --header-bg: #EE4D2D;
    --header-text: #FFFFFF;
    --max-w: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--text-link); transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

/* ========== HEADER ========== */
.header { background: var(--header-bg); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.12); }

.header-top { padding: 12px 0; }

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo span { font-weight: 800; }

.search-bar { flex: 1; max-width: 600px; position: relative; }

.search-bar form {
    display: flex;
    background: #fff;
    border: 0;
    border-radius: 2px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder { color: #bbb; }

.search-bar button {
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.search-bar button:hover { background: var(--primary-hover); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-actions a {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.header-actions a:hover { opacity: 1; color: #fff; }
.header-actions a i { font-size: 16px; }

/* ========== NAV ========== */
.nav-bar { background: #fff; border-top: 1px solid rgba(255,255,255,0.15); }

.nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-inner a {
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.85;
    transition: all 0.2s;
}

.nav-inner a:hover, .nav-inner a.active {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 8px; }

/* ========== HERO CAROUSEL ========== */
.hero { padding: 16px 0 0; }

.carousel { position: relative; border-radius: 2px; overflow: hidden; }

.carousel-inner { display: flex; transition: transform 0.5s ease; }

.carousel-slide {
    min-width: 100%;
    padding: 60px 48px;
    display: flex;
    align-items: center;
    min-height: 260px;
    position: relative;
}

.carousel-slide h2 { font-size: 30px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.carousel-slide p { font-size: 15px; opacity: 0.9; max-width: 450px; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 5;
    transition: background 0.2s;
}

.carousel-btn:hover { background: rgba(0,0,0,0.6); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active { background: #fff; transform: scale(1.3); }

/* ========== FLASH SALE ========== */
.flash-sale-bar {
    background: linear-gradient(90deg, #EE4D2D, #FF6633);
    padding: 12px 0;
    margin-top: 16px;
    border-radius: 2px;
}

.flash-sale-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flash-sale-bar h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-countdown { display: flex; gap: 4px; }

.flash-countdown .cd-block {
    background: #333;
    color: #fff;
    padding: 4px 6px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.flash-countdown .cd-sep { color: #fff; font-weight: 700; }

/* ========== CATEGORIES ========== */
.categories-section { padding: 16px 0 8px; }

.categories-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.categories-grid::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s;
    text-align: center;
    color: var(--text-secondary);
    min-width: 90px;
    cursor: pointer;
}

.category-item:hover {
    color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary);
}

.category-item span { font-size: 12px; font-weight: 500; }

/* ========== SECTION TITLE ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .hot { color: var(--primary); font-size: 20px; }

.section-more {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover { color: var(--primary); }

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1px;
    background: var(--border);
}

/* ========== PRODUCT CARD ========== */
.product-card {
    background: #fff;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-badge.flash { background: #FF0000; }

.product-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-info { padding: 10px; flex: 1; display: flex; flex-direction: column; }

.product-name {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
    flex: 1;
}

.product-name a { color: #333; }
.product-name a:hover { color: var(--primary); }

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
}

.product-price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-discount {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.product-rating { display: flex; align-items: center; gap: 2px; }
.product-rating .stars { color: var(--star); font-size: 11px; }
.product-rating .count { color: var(--text-muted); }

.product-shipping {
    color: var(--text-muted);
    font-size: 12px;
}

.product-shipping.free { color: var(--success); font-weight: 600; }

/* ========== PRODUCTS CAROUSEL ========== */
.products-carousel-wrap { position: relative; }

.products-carousel {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background: var(--border);
}

.products-carousel::-webkit-scrollbar { display: none; }

.products-carousel .product-card { min-width: 190px; }

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 72px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    color: #666;
    cursor: pointer;
    font-size: 16px;
    z-index: 5;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover { color: var(--primary); border-color: var(--primary); }
.carousel-nav-btn.prev { left: 0; border-radius: 0; }
.carousel-nav-btn.next { right: 0; border-radius: 0; }

/* ========== PRODUCT DETAIL ========== */
.product-detail { background: #fff; padding: 20px; margin-top: 16px; }

.product-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

.product-gallery { position: relative; }

.product-main-image {
    width: 100%;
    border-radius: 2px;
    background: #f5f5f5;
}

.product-thumbnails {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-thumbnails::-webkit-scrollbar { display: none; }

.product-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.product-thumbnails img.active, .product-thumbnails img:hover { border-color: var(--primary); }

.product-detail-info h1 { font-size: 18px; font-weight: 500; line-height: 1.4; margin-bottom: 12px; }

.detail-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.detail-rating .stars { color: var(--star); font-size: 14px; }
.detail-rating .count { color: var(--text-muted); font-size: 13px; }

.detail-price-box {
    background: var(--surface);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 2px;
}

.detail-price-original {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-price {
    font-size: 30px;
    font-weight: 500;
    color: var(--primary);
}

.detail-discount {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 8px;
}

.detail-installment { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

.detail-subscription {
    background: var(--primary-light);
    border: 1px solid rgba(238,77,45,0.2);
    border-radius: 2px;
    padding: 12px;
    margin: 12px 0;
}

.detail-subscription .label { font-size: 13px; color: var(--text-secondary); }
.detail-subscription .price { font-size: 18px; font-weight: 700; color: var(--primary); }

.detail-info-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    display: flex;
    gap: 12px;
}

.detail-info-row .label { color: var(--text-muted); min-width: 120px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

.btn-buy {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-buy:hover { background: var(--primary-hover); }

.btn-add-cart {
    display: block;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-add-cart:hover { background: var(--primary-light); }

/* ========== CART ========== */
.cart-page { padding: 16px 0; min-height: 60vh; }

.cart-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    background: #fff;
}

.cart-empty i { font-size: 60px; margin-bottom: 16px; display: block; color: var(--border); }

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.cart-item:hover { background: var(--surface); }

.cart-item-img {
    width: 80px;
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 14px; font-weight: 400; margin-bottom: 4px; }
.cart-item-info .price { color: var(--primary); font-weight: 500; font-size: 16px; }
.cart-item-info .sub { color: var(--text-muted); font-size: 12px; }

.cart-item-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); }

.cart-item-qty button {
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.cart-item-qty button:hover { background: var(--surface); }

.cart-item-qty span {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    padding: 8px;
}

.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
    font-size: 18px;
    font-weight: 700;
}

.cart-summary-total .total-price { color: var(--primary); }

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
    background: transparent;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; color: var(--text-secondary); }

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ========== FOOTER ========== */
.footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 30px 0 16px;
    margin-top: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== CHATBOT ========== */
.chatbot-widget { position: fixed; bottom: 20px; right: 20px; z-index: 999; }

.chatbot-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: transform 0.2s;
}

.chatbot-toggle:hover { transform: scale(1.1); }

.chatbot-box {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 350px;
    height: 460px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.chatbot-box.open, .chatbot-box.active { display: flex; }

.chatbot-header {
    padding: 14px 16px;
    background: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-header-info h3 { font-size: 14px; font-weight: 600; color: #fff; }
.chatbot-header-info span { font-size: 11px; color: rgba(255,255,255,0.8); }

.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 85%;
}

.chat-message.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-message.bot {
    background: var(--surface);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chatbot-product-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-self: flex-start;
    max-width: 90%;
    cursor: pointer;
    transition: border-color 0.2s;
}

.chatbot-product-card:hover { border-color: var(--primary); }
.chatbot-product-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 2px; }
.chatbot-product-card .info { flex: 1; }
.chatbot-product-card .info h4 { font-size: 12px; font-weight: 500; line-height: 1.3; margin-bottom: 4px; color: #333; }
.chatbot-product-card .info .price { color: var(--primary); font-weight: 600; font-size: 14px; }

.chatbot-typing { display: none; padding: 0 14px 8px; gap: 4px; }
.chatbot-typing.active { display: flex; }

.chatbot-typing span {
    width: 7px;
    height: 7px;
    background: #ccc;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border);
    gap: 6px;
}

.chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
}

.chatbot-input input:focus { outline: none; border-color: var(--primary); }

.chatbot-input button {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chatbot-input button:hover { background: var(--primary-hover); }

/* ========== ADMIN ========== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }

.admin-sidebar {
    width: 240px;
    background: #1a1a2e;
    padding: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-header h2 { font-size: 16px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.admin-sidebar-header h2 i { color: var(--primary); }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

.admin-nav a.active {
    color: #fff;
    background: rgba(238,77,45,0.15);
    border-left-color: var(--primary);
}

.admin-nav a i { width: 18px; text-align: center; }

.admin-content { flex: 1; margin-left: 240px; padding: 24px; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 { font-size: 20px; font-weight: 700; color: var(--text); }

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 16px;
}

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px;
    text-align: center;
}

.stat-card .number { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th, .admin-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.admin-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; background: var(--surface); }
.admin-table tr:hover td { background: var(--surface); }

.alert { padding: 10px 14px; border-radius: 2px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-danger { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

/* ========== LOGIN ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    padding: 20px;
}

.login-box {
    background: #fff;
    border: none;
    border-radius: 2px;
    padding: 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.login-box h1 { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--primary); }
.login-box p { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; width: 100%; }
    .nav-toggle { display: block; }
    .nav-inner { display: none; }
    .nav-inner.open { display: flex; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
    .cart-item { flex-wrap: wrap; }
    .carousel-slide { padding: 40px 24px; min-height: 200px; }
    .carousel-slide h2 { font-size: 22px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
