/* =============================================
   Vita Max KW — CSS الرئيسي (نسخة مصلحة)
   RTL | Arabic | E-commerce
   ============================================= */

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

:root {
    --green:        #2e7d32;
    --green-light:  #4caf50;
    --green-dark:   #1b5e20;
    --orange:       #f57c00;
    --orange-light: #ffa726;
    --red:          #c62828;
    --bg:           #f4f7f4;
    --card:         #ffffff;
    --nav-bg:       #1b5e20;
    --text:         #1c1c1c;
    --muted:        #666;
    --border:       #e0e0e0;
    --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
    --shadow:       0 2px 14px rgba(0,0,0,.10);
    --shadow-lg:    0 6px 28px rgba(0,0,0,.14);
    --radius:       12px;
    --ease:         .22s ease;
}

body.dark {
    --bg:      #0d1a0e;
    --card:    #162217;
    --nav-bg:  #091409;
    --text:    #e6f0e7;
    --muted:   #8fbb92;
    --border:  #263d27;
    --shadow:  0 2px 14px rgba(0,0,0,.40);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    font-size: 15px;
    line-height: 1.7;
    transition: background var(--ease), color var(--ease);
}

a  { color: var(--green); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
ul  { list-style: none; padding: 0; margin: 0; }

/* ============ LAYOUT ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ============ TOP BAR ============ */
.topbar {
    background: var(--green-dark);
    color: #c8e6c9;
    font-size: 13px;
    padding: 7px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.topbar-links { display: flex; gap: 14px; }
.topbar-links a { color: #a5d6a7; }
.topbar-links a:hover { color: #fff; }

/* ============ SITE HEADER ============ */
.site-header {
    background: var(--card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text);
    text-decoration: none;
}
.logo-icon { font-size: 30px; line-height: 1; }
.logo-text strong { display: block; font-size: 16px; font-weight: 900; color: var(--green); line-height: 1.2; }
.logo-text small   { font-size: 11px; color: var(--muted); }

.search-form {
    flex: 1;
    max-width: 460px;
    display: flex;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--ease);
    background: var(--bg);
}
.search-form:focus-within { border-color: var(--green-light); }
.search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 16px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    min-width: 0;
}
.search-form button {
    padding: 9px 16px;
    background: var(--green);
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: white;
    transition: background var(--ease);
    flex-shrink: 0;
}
.search-form button:hover { background: var(--green-dark); }

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

.btn-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg);
    border: none;
    cursor: pointer;
    font-size: 17px;
    position: relative;
    transition: background var(--ease), transform var(--ease);
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.btn-icon:hover { background: var(--green-light); color: #fff; transform: scale(1.08); }

.cart-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    width: 17px; height: 17px;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

/* ============ NAV ============ */
.main-nav { background: var(--nav-bg); }
.main-nav .container { overflow-x: auto; }
.main-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}
.main-nav a {
    display: block;
    padding: 11px 15px;
    color: #c8e6c9;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease);
    text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { background: var(--green-light); color: #fff; }
.nav-cart { color: var(--orange-light) !important; }

/* ============ FLASH ============ */
.flash-message { padding: 11px 0; text-align: center; font-weight: 700; font-size: 14px; }
.flash-success { background: #e8f5e9; color: #2e7d32; border-bottom: 2px solid #66bb6a; }
.flash-error   { background: #ffebee; color: #c62828; border-bottom: 2px solid #ef5350; }

/* ============ MAIN ============ */
.main-content { min-height: 65vh; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary  { background: var(--green);  color: #fff; }
.btn-primary:hover  { background: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,125,50,.35); }
.btn-accent   { background: var(--orange); color: #fff; }
.btn-accent:hover   { background: #e65100; color: #fff; }
.btn-outline  { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover  { background: var(--green); color: #fff; }
.btn-danger   { background: var(--red);    color: #fff; }
.btn-white    { background: #fff; color: var(--green); }
.btn-white:hover    { background: #f1f8e9; color: var(--green-dark); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }
.btn-sm   { padding: 6px 14px; font-size: 12px; }
.btn-block{ width: 100%; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
    color: #fff;
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 { font-size: clamp(26px, 5vw, 50px); font-weight: 900; margin-bottom: 14px; }
.hero p  { font-size: clamp(15px, 2vw, 19px); opacity: .9; margin-bottom: 26px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { font-size: 15px; padding: 12px 28px; }

/* ============ SECTIONS ============ */
.section { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-size: clamp(20px, 3vw, 30px); font-weight: 900; display: inline-block; padding-bottom: 10px; position: relative; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 55px; height: 4px; background: var(--green-light); border-radius: 2px; }
.section-title p { color: var(--muted); margin-top: 8px; font-size: 14px; }

/* ============ CATEGORIES ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.category-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--ease);
    display: block;
    color: var(--text);
    text-decoration: none;
}
.category-card:hover, .category-card.active {
    border-color: var(--green-light);
    background: #f1f8e9;
    color: var(--green);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
body.dark .category-card:hover { background: #1e3d20; }
.category-card .cat-icon { font-size: 34px; margin-bottom: 8px; display: block; line-height: 1; }
.category-card .cat-name { font-size: 13px; font-weight: 700; line-height: 1.3; }

/* ============ PRODUCTS ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-badge { position: absolute; top: 9px; right: 9px; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; z-index: 2; }
.badge-out { background: #757575; }
.product-image { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f5f7f5; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-info  { padding: 13px; flex: 1; display: flex; flex-direction: column; }
.product-cat   { font-size: 10px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name  {
    font-size: 13.5px; font-weight: 700; color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.45; flex: 1; text-decoration: none;
}
.product-name:hover { color: var(--green); }
.product-rating { font-size: 13px; color: var(--orange); margin-bottom: 7px; }
.product-rating .count { color: var(--muted); font-size: 11px; }
.product-price  { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.price-current  { font-size: 17px; font-weight: 900; color: var(--green); }
.price-old      { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price-single   { font-size: 17px; font-weight: 900; color: var(--text); }
.product-stock  { font-size: 11.5px; color: var(--muted); margin-bottom: 9px; }
.stock-low  { color: var(--orange); }
.stock-out  { color: var(--red); }
.btn-add-cart {
    width: 100%; padding: 9px; background: var(--green); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-family: inherit;
    font-weight: 700; font-size: 13px; transition: background var(--ease); margin-top: auto;
}
.btn-add-cart:hover    { background: var(--green-dark); }
.btn-add-cart:disabled { background: #bdbdbd; cursor: not-allowed; }

/* ============ SHOP ============ */
.shop-layout { display: grid; grid-template-columns: 255px 1fr; gap: 24px; }
.sidebar { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); height: fit-content; position: sticky; top: 74px; }
.sidebar h3 { font-size: 15px; font-weight: 900; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.sidebar-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); transition: all var(--ease); text-decoration: none; margin-bottom: 2px; }
.sidebar-cats a:hover, .sidebar-cats a.active { background: var(--green); color: #fff; }
.cat-count { background: var(--bg); border-radius: 50px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.sidebar-cats a:hover .cat-count, .sidebar-cats a.active .cat-count { background: rgba(255,255,255,.2); color: #fff; }
.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.shop-results { font-size: 14px; color: var(--muted); }
.sort-select { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-family: inherit; font-size: 13px; cursor: pointer; }

/* ============ PRODUCT DETAIL ============ */
.product-detail { padding: 36px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; background: #f5f5f5; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: clamp(18px, 3vw, 26px); font-weight: 900; margin-bottom: 10px; }
.product-detail-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.detail-price-current { font-size: 32px; font-weight: 900; color: var(--green); }
.detail-price-old { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.discount-badge { background: var(--red); color: #fff; padding: 3px 10px; border-radius: 50px; font-size: 13px; font-weight: 700; }
.product-meta p { padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.product-meta strong { color: var(--muted); margin-left: 6px; }
.qty-input { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.qty-input label { font-weight: 700; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-control button { width: 38px; height: 38px; background: var(--bg); border: none; cursor: pointer; font-size: 17px; color: var(--text); transition: background var(--ease); }
.qty-control button:hover { background: var(--green-light); color: #fff; }
.qty-control input { width: 52px; text-align: center; border: none; outline: none; background: transparent; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text); }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.product-actions .btn { flex: 1; min-width: 140px; }

/* ============ REVIEWS ============ */
.review-card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.reviewer-name { font-weight: 700; }
.review-date   { font-size: 12px; color: var(--muted); }
.stars         { color: var(--orange); font-size: 16px; }
.review-form   { background: var(--card); border-radius: var(--radius); padding: 22px; margin-top: 18px; box-shadow: var(--shadow-sm); }

/* ============ CART ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cart-table th { background: var(--green); color: #fff; padding: 12px 14px; text-align: right; font-size: 13px; }
.cart-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border: none; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-product-name { font-weight: 700; font-size: 13px; }
.cart-remove { color: var(--red); cursor: pointer; background: none; border: none; font-size: 20px; transition: transform var(--ease); padding: 0; line-height: 1; }
.cart-remove:hover { transform: scale(1.2); }
.order-summary { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 80px; }
.order-summary h3 { font-size: 17px; font-weight: 900; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.summary-row:last-of-type { border: none; }
.summary-total { font-size: 19px !important; font-weight: 900 !important; color: var(--green) !important; }
.empty-cart { text-align: center; padding: 70px 20px; }
.empty-cart .empty-icon { font-size: 72px; margin-bottom: 18px; display: block; }
.empty-cart h2 { font-size: 22px; margin-bottom: 10px; }
.empty-cart p  { color: var(--muted); margin-bottom: 22px; }

/* ============ CHECKOUT ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }

/* ============ FORMS ============ */
.form-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 17px; font-weight: 900; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text); font-family: inherit; font-size: 14px;
    transition: border-color var(--ease); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-light); background: var(--card); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: all var(--ease); }
.payment-option:hover { border-color: var(--green-light); background: #f1f8e9; }
.payment-option input[type="radio"] { accent-color: var(--green); width: 17px; height: 17px; flex-shrink: 0; }

/* ============ AUTH ============ */
.auth-wrapper { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); width: 100%; max-width: 430px; }
.auth-card h1 { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 13.5px; }
.auth-logo  { text-align: center; font-size: 44px; margin-bottom: 8px; }
.auth-footer{ text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-footer a { color: var(--green); font-weight: 700; }

/* ============ BREADCRUMB ============ */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 6px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--card); color: var(--text); font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm); transition: all var(--ease); text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--green); color: #fff; }

/* ============ ALERTS ============ */
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ============ FOOTER ============ */
.site-footer { background: var(--nav-bg); color: #c8e6c9; margin-top: 60px; padding-top: 46px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer-col p  { font-size: 13.5px; margin-bottom: 7px; color: #a5d6a7; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a { color: #a5d6a7; font-size: 13.5px; transition: color var(--ease); text-decoration: none; }
.footer-col ul a:hover { color: #fff; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.social-btn { padding: 7px 12px; background: rgba(255,255,255,.1); border-radius: 50px; font-size: 12.5px; color: #fff; transition: background var(--ease); text-decoration: none; }
.social-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.footer-bottom { margin-top: 36px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer-bottom p { font-size: 13px; color: #81c784; }

/* ============ BACK TO TOP ============ */
.back-to-top { position: fixed; bottom: 22px; left: 22px; width: 44px; height: 44px; background: var(--green); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 17px; box-shadow: 0 3px 10px rgba(0,0,0,.2); display: none; z-index: 800; transition: all var(--ease); align-items: center; justify-content: center; }
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ============ ADMIN ============ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #111827; color: #d1d5db; }
.admin-sidebar .admin-logo { padding: 20px 18px; background: #0d1320; font-size: 15px; font-weight: 900; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav a { display: flex; align-items: center; gap: 9px; padding: 12px 18px; color: #9ca3af; font-size: 13.5px; transition: all var(--ease); border-right: 3px solid transparent; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.07); color: #fff; border-right-color: var(--green-light); }
.admin-main { background: #f3f4f6; padding: 24px; }
body.dark .admin-main { background: #0a0f0a; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-header h1 { font-size: 21px; font-weight: 900; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 14px; }
body.dark .stat-card { background: #162217; }
.stat-icon { font-size: 32px; line-height: 1; }
.stat-info .stat-value { font-size: 26px; font-weight: 900; color: var(--green); line-height: 1; }
.stat-info .stat-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
body.dark .admin-table { background: #162217; }
.admin-table th { background: var(--green); color: #fff; padding: 12px 14px; text-align: right; font-size: 12.5px; font-weight: 700; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }

.badge { padding: 3px 9px; border-radius: 50px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff8e1; color: #f57f17; }
.badge-danger  { background: #ffebee; color: #c62828; }
.badge-info    { background: #e3f2fd; color: #1565c0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
    .shop-layout         { grid-template-columns: 1fr; }
    .sidebar             { position: static; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .cart-layout         { grid-template-columns: 1fr; }
    .checkout-layout     { grid-template-columns: 1fr; }
    .admin-layout        { grid-template-columns: 1fr; }
    .admin-sidebar       { display: none; }
}

@media (max-width: 768px) {
    .header-inner   { flex-wrap: wrap; padding: 10px 14px; }
    .search-form    { order: 3; width: 100%; max-width: 100%; flex: unset; }
    .menu-toggle    { display: block; }
    .main-nav       { display: none; }
    .main-nav.open  { display: block; }
    .main-nav ul    { flex-direction: column; }
    .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .categories-grid{ grid-template-columns: repeat(3, 1fr); }
    .form-row       { grid-template-columns: 1fr; }
    .hero           { padding: 44px 16px; }
    .footer-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .products-grid  { grid-template-columns: 1fr; }
    .categories-grid{ grid-template-columns: repeat(2, 1fr); }
    .auth-card      { padding: 22px 16px; }
    .footer-grid    { grid-template-columns: 1fr; }
}
