/* ===================== Base ===================== */
:root {
    --primary: #1d63d1;
    --primary-dark: #144a9e;
    --navy: #16204f;
    --navy-light: #1f2c6b;
    --dark: #1a2433;
    --gray: #6b7280;
    --light-gray: #f2f6fb;
    --border: #e0e7f0;
    --success: #2f9e44;
    --warning: #e8a33d;
    --radius: 10px;
    --max-width: 1280px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Noto Sans Thai", "Noto Sans Myanmar", "Segoe UI", Tahoma, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.page-content { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }

h1, h2, h3 { line-height: 1.3; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    text-align: center;
}
.btn:hover { background: var(--primary-dark); }
.btn.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.btn-secondary { background: var(--dark); }
.btn.btn-block { width: 100%; }
.btn.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { background: var(--gray); cursor: not-allowed; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-preorder { background: #ffd43b; color: #6b4d00; font-weight: 700; }
.badge-stock { background: #e6f6ea; color: var(--success); }
.badge-out { background: #fdeaea; color: #c0392b; }
.badge-status { background: var(--light-gray); color: var(--gray); }
.badge-cat { background: rgba(22,32,79,.85); color: #fff; font-weight: 600; }

/* ===================== Header ===================== */

/* --- แถบบนสุด: ติดต่อ / สลับภาษา --- */
.utility-bar { background: var(--navy); color: #cfd6ec; }
.utility-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; font-size: 12.5px; }
.utility-contact { display: flex; align-items: center; gap: 6px; opacity: .9; }
.utility-bar .lang-switch { display: flex; gap: 4px; }
.utility-bar .lang-switch a { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; color: #cfd6ec; }
.utility-bar .lang-switch a.active { background: rgba(255,255,255,.18); color: #fff; }

/* --- แถบหลัก: โลโก้ / เมนู / ไอคอน --- */
.site-header { position: sticky; top: 0; background: #fff; z-index: 50; box-shadow: 0 1px 0 var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 16px; }
.logo { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: .5px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    color: var(--navy); padding: 10px 12px; background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link .chevron { font-size: 10px; transition: transform .15s; }
.nav-item.open .nav-link .chevron { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(20,30,60,.12);
    padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.nav-item.open .dropdown-menu { display: flex; }
.dropdown-menu a, .dropdown-menu .dropdown-divider {
    padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--dark); font-weight: 500;
}
.dropdown-menu a:hover { background: var(--light-gray); color: var(--primary); }
.dropdown-menu .dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; padding: 0; height: 1px; }

@media (min-width: 721px) {
    .nav-item:hover .dropdown-menu { display: flex; }
}

.header-icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; font-size: 19px; color: var(--navy);
    background: none; border: none; cursor: pointer; font-family: inherit;
}
.icon-btn:hover { background: var(--light-gray); }
.icon-btn .cart-count {
    position: absolute; top: 2px; right: 2px; background: var(--primary); color: #fff;
    font-size: 10.5px; font-weight: 700; border-radius: 50%; min-width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.search-panel { display: none; border-top: 1px solid var(--border); background: var(--light-gray); }
.search-panel.open { display: block; }
.search-panel .container { padding: 14px 16px; }
.search-panel form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.search-panel input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }

/* --- แถบหมวดหมู่แนวนอน --- */
.category-bar { border-bottom: 1px solid var(--border); background: #fff; }
.category-bar-inner {
    display: flex; gap: 26px; padding: 12px 16px; overflow-x: auto;
    white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.category-bar-inner a { font-size: 12.5px; font-weight: 700; letter-spacing: .4px; color: var(--gray); text-transform: uppercase; }
.category-bar-inner a:hover, .category-bar-inner a.active { color: var(--primary); }

.cart-link { position: relative; font-size: 20px; }
.cart-count { position: absolute; top: -8px; right: -12px; background: var(--primary); color: #fff; font-size: 11px; border-radius: 50%; padding: 1px 6px; }

/* ===================== Hero / Home ===================== */
.hero {
    background: linear-gradient(135deg, var(--primary), #5aa5f0);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 30px;
    margin-bottom: 32px;
}
.hero h1 { font-size: 28px; margin: 0 0 8px; }
.hero p { margin: 0; opacity: .9; }

/* ===================== Hero Slider (Banner) ===================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 32px;
    background: var(--navy);
    /* Desktop: กว้างจอ อัตราส่วนกว้างเตี้ย */
    aspect-ratio: 21 / 7;
}
.hero-slider-track {
    display: flex;
    height: 100%;
    transition: transform .5s ease;
}
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
}
.hero-slide-link { display: block; width: 100%; height: 100%; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 28px;
    background: linear-gradient(0deg, rgba(22,32,79,.85), rgba(22,32,79,0));
    color: #fff;
}
.hero-slide-caption h2 { margin: 0 0 4px; font-size: 22px; }
.hero-slide-caption p { margin: 0; opacity: .9; font-size: 14px; }

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22,32,79,.55);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hero-slider-arrow:hover { background: rgba(22,32,79,.85); }
.hero-slider-arrow.prev { left: 12px; }
.hero-slider-arrow.next { right: 12px; }

.hero-slider-dots {
    position: absolute;
    left: 0; right: 0; bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}
.hero-slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    padding: 0;
}
.hero-slider-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* มือถือ: ปรับสัดส่วนภาพให้สูงขึ้น (ใกล้เคียงสี่เหลี่ยม) เพื่อไม่ให้ภาพถูกครอปมากเกินไป */
@media (max-width: 720px) {
    .hero-slider { aspect-ratio: 4 / 3; border-radius: 10px; }
    .hero-slide-caption { padding: 12px 16px; }
    .hero-slide-caption h2 { font-size: 17px; }
    .hero-slider-arrow { width: 30px; height: 30px; }
}

.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 32px 0 16px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title a { font-size: 14px; color: var(--primary); }

/* ===================== Category grid ===================== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.category-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 10px;
    text-align: center;
    background: var(--light-gray);
}
.category-card:hover { border-color: var(--primary); }
.category-card .icon { font-size: 30px; margin-bottom: 8px; }

/* ===================== Product grid/card ===================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.product-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(22,32,79,.12); transform: translateY(-2px); }
.product-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--light-gray); position: relative; display: block; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .thumb .badge { position: absolute; top: 8px; z-index: 1; }
.product-card .thumb .badge-preorder { left: 8px; }
.product-card .thumb .badge-cat { right: 8px; font-size: 11px; padding: 3px 9px; }
.product-card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .name { font-size: 14.5px; font-weight: 600; min-height: 40px; line-height: 1.35; }
.product-card .name a { color: var(--dark); }
.product-card .name a:hover { color: var(--primary); }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.product-card .price { color: var(--primary); font-weight: 700; font-size: 16px; }
.product-card .actions { margin-top: auto; }

/* ===================== Product detail ===================== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product-detail .thumb { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-detail .price { font-size: 26px; color: var(--primary); font-weight: 800; margin: 10px 0; }
.product-detail .meta-row { display: flex; gap: 10px; margin: 6px 0; font-size: 14px; color: var(--gray); }
.product-detail form { margin-top: 20px; display: flex; gap: 10px; align-items: center; }
.product-detail input[type=number] { width: 80px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.preorder-notice { background: #fff8e6; border: 1px solid #f2d38a; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin-top: 14px; }

@media (max-width: 720px) {
    .product-detail { grid-template-columns: 1fr; }
}

/* ===================== Forms ===================== */
.form-card {
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}
.form-card.wide { max-width: 720px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { text-align: center; margin-top: 16px; font-size: 14px; color: var(--gray); }
.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdeaea; color: #c0392b; border: 1px solid #f3b6b6; }
.alert-success { background: #e6f6ea; color: var(--success); border: 1px solid #b7e3c2; }

/* ===================== Cart / Checkout ===================== */
table.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
table.cart-table th, table.cart-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
table.cart-table .prod-cell { display: flex; align-items: center; gap: 10px; }
table.cart-table .prod-cell img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
table.cart-table input[type=number] { width: 70px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; }
.cart-summary { text-align: right; font-size: 16px; margin-bottom: 20px; }
.cart-summary strong { color: var(--primary); font-size: 20px; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.order-summary-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--light-gray); height: fit-content; }
.order-summary-box .item-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.bank-info { background: #fff; border: 1px dashed var(--primary); border-radius: var(--radius); padding: 14px; margin: 14px 0; font-size: 14px; }

@media (max-width: 800px) {
    .checkout-grid { grid-template-columns: 1fr; }
}

/* ===================== Orders table ===================== */
table.orders-table { width: 100%; border-collapse: collapse; }
table.orders-table th, table.orders-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
table.orders-table th { background: var(--light-gray); }

/* ===================== Membership card ===================== */
.member-card {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 26px;
    background: linear-gradient(135deg, #10274d, #1d63d1);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.member-card .top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.member-card .brand { font-weight: 800; font-size: 18px; }
.member-card .level { font-size: 12px; background: rgba(255,255,255,.15); padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.member-card .code { font-size: 22px; letter-spacing: 3px; margin: 20px 0; font-family: monospace; }
.member-card .name { font-size: 16px; font-weight: 600; }
.member-card .bottom-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 20px; font-size: 12px; opacity: .85; }
.member-card .qr { background: #fff; padding: 6px; border-radius: 8px; }
.member-card .qr img { width: 90px; height: 90px; }
.member-info-list { max-width: 420px; margin: 20px auto 0; }
.member-info-list .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }

/* ===================== Status timeline ===================== */
.status-timeline { list-style: none; margin: 0; padding: 0; }
.status-timeline li {
    position: relative;
    padding: 4px 0 14px 22px;
    border-left: 2px solid var(--border);
    margin-left: 6px;
}
.status-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.status-timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--primary);
}
.status-timeline .timeline-date { font-size: 12px; color: var(--gray); margin-left: 8px; }
.status-timeline .timeline-note { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ===================== Notifications ===================== */
.notification-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notification-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: #fff;
}
.notification-item.unread { background: #eef4fd; border-color: var(--primary); }
.notification-item .notification-link { display: block; }
.notification-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.notification-message { font-size: 14px; color: var(--dark); margin-bottom: 6px; }
.notification-date { font-size: 12px; color: var(--gray); }

/* ===================== Misc pages ===================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===================== FAQ ===================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--primary); font-weight: 800; }
.faq-item[open] summary::before { content: "− "; }
.faq-item p { margin: 10px 0 2px; color: var(--gray); font-size: 14.5px; line-height: 1.7; }

/* ===================== Static content pages ===================== */
.static-page { max-width: 820px; margin: 0 auto; }
.static-page h2 { margin-top: 28px; font-size: 18px; }
.static-page p, .static-page li { color: var(--dark); font-size: 14.5px; line-height: 1.8; }

/* ===================== Footer ===================== */
.site-footer { background: var(--navy); color: #cfd6ec; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 44px 16px 30px; }
.footer-inner a { color: #cfd6ec; font-size: 14px; }
.footer-inner a:hover { color: #fff; }
.footer-inner p { margin: 6px 0; font-size: 13.5px; line-height: 1.6; opacity: .92; }
.footer-col .footer-heading { display: inline-block; color: #fff; font-size: 15px; margin-bottom: 10px; letter-spacing: .3px; }
.footer-address { font-size: 13px; }

.footer-payment-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12.5px;
    color: #e6eaf7;
}

.footer-social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 15px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.social-icon:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    font-size: 12.5px;
    border-top: 1px solid rgba(255,255,255,.12);
    opacity: .9;
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: #cfd6ec; }
.footer-bottom-links a:hover { color: #fff; }

.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 40;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--navy-light); }

@media (max-width: 720px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 32px 16px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .nav-toggle { display: block; order: 3; margin-left: auto; }
    .logo { flex: 1; }
    .header-icons { order: 4; }
    .main-nav {
        display: none; width: 100%; order: 5;
        flex-direction: column; align-items: stretch; gap: 0;
        border-top: 1px solid var(--border); margin-top: 10px; padding-top: 6px;
    }
    .main-nav.open { display: flex; }
    .nav-link { justify-content: space-between; width: 100%; padding: 12px 4px; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 6px 12px; }
    .utility-bar-inner { flex-wrap: wrap; gap: 6px; justify-content: center; text-align: center; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ===================== Admin ===================== */
.admin-body { background: var(--light-gray); }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--dark); color: #fff; flex-shrink: 0; }
.admin-sidebar .brand { padding: 20px; font-weight: 800; font-size: 18px; border-bottom: 1px solid #3a3f4b; }
.admin-sidebar nav { display: flex; flex-direction: column; padding: 10px 0; }
.admin-sidebar nav a { padding: 12px 20px; color: #cfd3da; font-size: 14px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { flex: 1; padding: 24px 30px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-topbar h1 { font-size: 20px; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.stat-card .value { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--gray); }

.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 20px; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 13.5px; text-align: left; vertical-align: middle; }
table.admin-table th { background: var(--light-gray); }
table.admin-table img.thumb-sm { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.admin-actions { display: flex; gap: 6px; }
.admin-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-filters select, .admin-filters input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }

@media (max-width: 900px) {
    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
}
