/* ============================================
   ELEGANT GOWNS - E-COMMERCE STYLESHEET
   ============================================ */

:root {
    --primary: #8B2942;
    --primary-dark: #6B1F33;
    --primary-light: #B85569;
    --accent: #D4AF37;
    --accent-light: #E8C870;
    --dark: #2D1B2E;
    --gray: #6c757d;
    --light-gray: #f4f4f6;
    --border: #e0e0e6;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(139,41,66,0.2);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', 'DejaVu Sans', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background: #fafafa;
    line-height: 1.6;
}

a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--dark); }

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

/* ===== HEADER ===== */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.top-bar { background: var(--dark); color: var(--accent-light); text-align: center; padding: 8px; font-size: 13px; overflow: hidden; white-space: nowrap; }
.top-bar span { display: inline-block; }
.header-flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: nowrap; }
.logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--accent); }
.search-box { flex: 1; max-width: 500px; display: flex; min-width: 0; }
.search-box input {
    flex: 1; padding: 10px 16px; border: 2px solid var(--border); border-right: none;
    border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; outline: none; min-width: 0;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
    padding: 10px 18px; background: var(--primary); color: white; border: none;
    border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 16px; flex-shrink: 0;
}
.user-nav { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-link { font-size: 14px; color: var(--dark); font-weight: 500; position: relative; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav-link:hover { color: var(--primary); }
.cart-nav { position: relative; }
.btn-small { background: var(--primary); color: white !important; padding: 8px 16px; border-radius: var(--radius); }
.btn-small:hover { background: var(--primary-dark); }
.cart-badge {
    background: var(--accent); color: var(--dark); border-radius: 12px; padding: 1px 8px;
    font-size: 12px; font-weight: 600;
}
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ===== MAIN NAVIGATION ===== */
.main-nav { background: var(--primary); }
.nav-list { display: flex; list-style: none; gap: 0; }
.nav-list > li { position: relative; }
.nav-list > li.active > a { background: var(--primary-dark); color: var(--accent-light); }
.nav-list a { color: white; padding: 14px 22px; display: block; font-size: 14px; font-weight: 500; transition: var(--transition); white-space: nowrap; }
.nav-list a:hover { background: var(--primary-dark); color: var(--accent-light); }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; background: white; min-width: 220px;
    box-shadow: var(--shadow-hover); border-radius: 0 0 var(--radius) var(--radius); z-index: 100;
    max-height: 400px; overflow-y: auto;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { color: var(--dark); padding: 12px 20px; border-bottom: 1px solid var(--border); }
.dropdown-menu a:hover { background: var(--light-gray); color: var(--primary); }

/* Mobile slide-out menu overlay */
.menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 998; }
.menu-overlay.show { display: block; }

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--dark);
    min-height: 500px;
}
.hero-slides-track {
    position: relative;
    width: 100%;
    min-height: 500px;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* Background types */
.hero-bg-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #2D1B2E 0%, #8B2942 100%);
    z-index: 0;
}
.hero-bg-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-bg-video {
    position: absolute; inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-bg-video video {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.hero-bg-yt {
    position: absolute; inset: 0;
    overflow: hidden;
    z-index: 0;
    background: #000;
}
.hero-bg-yt iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.78vh; /* 16:9 ratio */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(30, 10, 30, 0.48);
    z-index: 1;
}

/* Slide content */
.hero-slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 80px 20px;
    max-width: 760px;
    margin: 0 auto;
    color: white;
}
.hero-slide-content h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-slide-content h1 span { color: var(--accent); }
.hero-slide-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.92;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Navigation arrows */
.hero-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.38);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}
.hero-arrow:hover { background: rgba(139,41,66,0.8); border-color: var(--accent); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }

/* Dot indicators */
.hero-dots {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex; gap: 8px;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    padding: 0;
}
.hero-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.3);
}
.hero-dot:hover { border-color: white; }

/* ===== OLD STATIC HERO (kept for fallback) ===== */
.hero {
    background: linear-gradient(135deg, #2D1B2E 0%, #8B2942 100%);
    color: white; padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.15), transparent); border-radius: 50%;
}
.hero h1 { color: white; font-size: 48px; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 20px; max-width: 600px; margin: 0 auto 30px; opacity: 0.9; }

.btn {
    display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-weight: 600;
    font-size: 15px; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: #1a0f1b; }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 36px; color: var(--primary); margin-bottom: 8px; }
.section-title p { color: var(--gray); font-size: 16px; }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
    background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-img {
    width: 100%; height: 320px; object-fit: cover; background: var(--light-gray);
    display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
    position: absolute; top: 12px; left: 12px; background: var(--primary); color: white;
    padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 600; z-index: 2;
}
.product-badge.rent { background: var(--accent); color: var(--dark); }
.product-badge.sale { background: var(--success); }
.product-info { padding: 16px; }
.product-cat { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.product-name { font-size: 16px; font-weight: 600; margin: 6px 0; font-family: 'Poppins', sans-serif; line-height: 1.4; }
.product-name a { color: var(--dark); }
.product-name a:hover { color: var(--primary); }
.stars { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.product-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-sale { font-size: 20px; font-weight: 700; color: var(--primary); }
.price-rent { font-size: 13px; color: var(--gray); }
.price-rent strong { color: var(--accent); }
.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-add { flex: 1; padding: 10px; font-size: 13px; }
.btn-rent { background: var(--accent); color: var(--dark); }
.btn-rent:hover { background: var(--accent-light); }
.btn-buy { background: var(--primary); color: white; }
.btn-buy:hover { background: var(--primary-dark); }

/* ===== SHOP LAYOUT ===== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 40px 0; }
.sidebar { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); height: fit-content; }
.sidebar h3 { font-size: 18px; margin-bottom: 16px; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 14px; margin-bottom: 10px; color: var(--dark); }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; cursor: pointer; color: var(--gray); }
.filter-group label:hover { color: var(--primary); }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--primary); }
.price-range { display: flex; gap: 8px; }
.price-range input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }

.shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.shop-header h1 { font-size: 28px; color: var(--primary); }
.shop-header .results-count { color: var(--gray); font-size: 14px; }
.sort-select { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span {
    padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; color: var(--dark);
}
.pagination a:hover { background: var(--light-gray); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }

/* Photo gallery area */
.product-main-media {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--light-gray);
    min-height: 380px;
    display: flex; align-items: center; justify-content: center;
}
.product-main-media img,
.product-main-media video {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}
.product-gallery { display: flex; flex-direction: column; gap: 12px; }

/* Thumbnails */
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb-item { position: relative; flex-shrink: 0; }
.gallery-thumb-item img:hover,
.gallery-thumb-item.active img { border-color: var(--primary) !important; }
.gallery-thumb-item div:hover { border-color: var(--primary) !important; }

.product-detail-info h1 { font-size: 32px; margin-bottom: 8px; }
.product-detail-info .product-cat { margin-bottom: 12px; }
.price-box { background: var(--light-gray); padding: 20px; border-radius: var(--radius); margin: 20px 0; }
.price-box .sale-price { font-size: 32px; font-weight: 700; color: var(--primary); }
.price-box .rental-price { font-size: 16px; color: var(--gray); margin-top: 6px; }
.price-box .rental-price strong { color: var(--accent); font-size: 20px; }
.option-group { margin: 20px 0; }
.option-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.option-group select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }

/* ── Size / Color option buttons ── */
.option-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
    padding: 7px 16px; border: 2px solid var(--border); border-radius: 20px;
    background: white; font-size: 14px; font-family: 'Poppins', sans-serif;
    cursor: pointer; transition: all 0.18s; color: var(--dark); font-weight: 500;
    line-height: 1.3;
}
.option-btn:hover { border-color: var(--primary); color: var(--primary); }
.option-btn.selected {
    border-color: var(--primary); background: var(--primary);
    color: white; box-shadow: 0 2px 6px rgba(139,41,66,0.25);
}
/* Color buttons get a square swatch feel */
.color-btn { min-width: 80px; text-align: center; }

/* ── Quantity row ── */
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-row > label { font-weight: 600; min-width: 36px; }
.qty-control, .qty-selector { display: flex; align-items: center; }
.qty-control button, .qty-selector button {
    width: 38px; height: 38px; border: 1px solid var(--border); background: white;
    cursor: pointer; font-size: 20px; line-height: 1; transition: background 0.15s;
    font-family: inherit;
}
.qty-control button:first-child, .qty-selector button:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}
.qty-control button:last-child, .qty-selector button:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}
.qty-control button:hover, .qty-selector button:hover { background: var(--light-gray); }
.qty-control input, .qty-selector input {
    width: 56px; height: 38px; text-align: center;
    border: 1px solid var(--border); border-left: none; border-right: none;
    font-size: 15px; font-family: inherit; outline: none;
}

.detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-large { padding: 16px 40px; font-size: 16px; }

/* ===== CART ===== */
.cart-layout { padding: 40px 0; }
.cart-layout h1 { font-size: 32px; margin-bottom: 24px; color: var(--primary); }
.cart-table { width: 100%; background: white; border-radius: var(--radius); box-shadow: var(--shadow); border-collapse: collapse; }
.cart-table th { background: var(--light-gray); padding: 16px; text-align: left; font-size: 13px; text-transform: uppercase; color: var(--gray); }
.cart-table td { padding: 16px; border-top: 1px solid var(--border); }
.cart-item-img { width: 80px; height: 100px; object-fit: cover; border-radius: 6px; }
.cart-summary { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-top: 24px; }
.cart-summary h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 12px; padding-top: 16px; font-size: 20px; font-weight: 700; color: var(--primary); }
.cart-grid { display: grid; grid-template-columns: 1fr 350px; gap: 30px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state .icon { font-size: 64px; margin-bottom: 16px; }

/* ===== FORMS ===== */
.form-card { max-width: 450px; margin: 40px auto; background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { text-align: center; margin-bottom: 24px; color: var(--primary); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: 'Poppins', sans-serif; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,41,66,0.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-full { width: 100%; }
.form-footer { text-align: center; margin-top: 16px; font-size: 14px; }

/* ===== ALERTS ===== */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }

/* ===== ACCOUNT DASHBOARD ===== */
.dashboard { display: grid; grid-template-columns: 250px 1fr; gap: 30px; padding: 40px 0; }
.dashboard-sidebar { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); height: fit-content; }
.dashboard-sidebar h3 { color: var(--primary); margin-bottom: 16px; }
.dashboard-sidebar ul { list-style: none; }
.dashboard-sidebar a { display: block; padding: 12px 16px; border-radius: 6px; color: var(--dark); font-size: 14px; margin-bottom: 4px; }
.dashboard-sidebar a:hover, .dashboard-sidebar a.active { background: var(--primary); color: white; }
.dashboard-content { background: white; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-status { padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }
.status-returned { background: #e2d9f3; color: #5b2c87; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 40px;
}
.site-footer a { color: #aaa; text-decoration: none; transition: var(--transition); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 12px;
}
.footer-col h3 span { color: var(--accent); }
.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 14px;
    font-family: 'Poppins', sans-serif;
}
.footer-col p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; color: #999; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; }
.footer-col .social { display: flex; gap: 10px; margin-top: 16px; }
.footer-col .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    transition: var(--transition);
}
.footer-col .social a svg { display: block; }
.footer-col .social a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
}
.footer-bottom p { margin: 0; }

/* ===== ADMIN ===== */
.admin-header { background: var(--dark); color: white; padding: 14px 0; }
.admin-header .container { display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: var(--accent-light); }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }
.admin-sidebar { background: var(--dark); padding: 20px 0; }
.admin-sidebar a { display: block; padding: 14px 24px; color: #ccc; font-size: 14px; transition: var(--transition); }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--primary); color: white; }
.admin-content { padding: 30px; background: #f5f5f8; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card h4 { color: var(--gray); font-size: 13px; text-transform: uppercase; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.admin-table { width: 100%; background: white; border-radius: var(--radius); box-shadow: var(--shadow); border-collapse: collapse; overflow: hidden; }
.admin-table th { background: var(--primary); color: white; padding: 14px; text-align: left; font-size: 13px; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 14px; }
.admin-table tr:hover { background: var(--light-gray); }
.badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }

/* Admin filter buttons (visible on light background) */
.filter-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    transition: var(--transition);
}
.filter-btn:hover { background: var(--primary); color: white !important; }
.filter-btn.filter-active { background: var(--accent); color: var(--dark) !important; border-color: var(--accent); }
.filter-btn.filter-active:hover { background: var(--accent-light); color: var(--dark) !important; }

/* ===== FEATURES BAR ===== */
.features-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 40px 0; background: white; }
.feature-item { text-align: center; padding: 20px; }
.feature-item .icon { font-size: 40px; margin-bottom: 12px; }
.feature-item h4 { font-size: 18px; margin-bottom: 6px; }
.feature-item p { color: var(--gray); font-size: 14px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--gray); }
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* ===== CATEGORY CARDS ===== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.category-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); text-align: center; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card-img { height: 160px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: white; font-size: 48px; }
.category-card-body { padding: 16px; }
.category-card-body h3 { font-size: 16px; margin-bottom: 4px; }

/* ===== MOBILE BOTTOM NAV (Webview App Style) ===== */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: white;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12); z-index: 999; padding: 6px 0;
    border-top: 1px solid var(--border);
}
.mobile-bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: var(--gray); font-size: 10px; padding: 4px 2px; position: relative;
}
.mobile-bottom-nav a.active { color: var(--primary); }
.mobile-bottom-nav .mbn-icon { font-size: 20px; line-height: 1; }
.mobile-bottom-nav .mbn-label { font-size: 10px; font-weight: 500; }
.mobile-bottom-nav .mbn-badge {
    position: absolute; top: 0; right: 20%; background: var(--accent); color: var(--dark);
    border-radius: 10px; padding: 0 6px; font-size: 10px; font-weight: 700; min-width: 16px; text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .shop-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-grid { grid-template-columns: 1fr; }
    .dashboard { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-slide-content h1 { font-size: 32px; }
    .hero-slide-content p { font-size: 16px; }
}

@media (max-width: 768px) {
    /* Add bottom padding so content isn't hidden behind mobile nav */
    .site-main { padding-bottom: 70px; }
    .site-footer { padding-bottom: 70px; }
    .mobile-bottom-nav { display: flex; }

    /* Header: compact for mobile */
    .header-flex { padding: 10px 12px; gap: 8px; }
    .logo { font-size: 20px; }
    .mobile-toggle { display: block; order: -1; }

    /* Search bar goes full width on its own row */
    .search-box { order: 5; flex-basis: 100%; max-width: 100%; margin-top: 8px; }

    /* User nav: icons only, hide text */
    .user-nav { gap: 10px; }
    .nav-link .cart-text, .nav-link .user-text { display: none; }
    .nav-link .btn-small { display: none; }
    .user-nav .btn-small { display: inline-block; padding: 6px 10px; font-size: 12px; }
    .cart-icon, .user-icon { font-size: 18px; }

    /* Main nav: slide-out drawer */
    .main-nav { display: none; position: fixed; top: 0; left: 0; width: 80%; max-width: 320px; height: 100%; background: var(--primary); z-index: 999; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.3); }
    .main-nav.open { display: block; }
    .main-nav .container { padding: 0; }
    .nav-list { flex-direction: column; }
    .nav-list > li { width: 100%; }
    .nav-list a { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown-menu { position: static; box-shadow: none; background: var(--primary-dark); max-height: none; border-radius: 0; }
    .dropdown-menu a { color: var(--accent-light); padding: 12px 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .dropdown-menu a:hover { background: var(--primary); }

    /* Top bar: smaller, allow scroll */
    .top-bar { font-size: 11px; padding: 6px; }

    /* Hero slider mobile */
    .hero-slider { min-height: 380px; }
    .hero-slides-track { min-height: 380px; }
    .hero-slide { min-height: 380px; }
    .hero-slide-content { padding: 50px 16px; }
    .hero-slide-content h1 { font-size: 26px; }
    .hero-slide-content p { font-size: 14px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }
    .hero-arrow { width: 38px; height: 38px; font-size: 14px; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }

    .section { padding: 40px 0; }
    .section-title h2 { font-size: 26px; }

    /* Product grid: 2 columns on mobile */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-img { height: 220px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; }
    .price-sale { font-size: 16px; }
    .product-actions { flex-direction: column; gap: 6px; }
    .btn-add { font-size: 12px; padding: 8px; }

    /* Category grid */
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card-img { height: 120px; font-size: 36px; }

    /* Features bar: 2 columns */
    .features-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 30px 0; }
    .feature-item .icon { font-size: 32px; }
    .feature-item h4 { font-size: 15px; }

    /* Shop: sidebar becomes collapsible */
    .sidebar { position: relative; }
    .shop-header h1 { font-size: 22px; }

    /* Product detail */
    .product-detail-info h1 { font-size: 22px; }
    .price-box .sale-price { font-size: 26px; }
    .detail-actions { flex-direction: column; }
    .detail-actions .btn { width: 100%; }

    /* Gallery thumbs on mobile */
    .gallery-thumbs { gap: 8px; }
    .gallery-thumb-item img,
    .gallery-thumb-item > div { width: 60px !important; height: 60px !important; }

    /* Forms */
    .form-card { margin: 16px; padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }

    /* Cart table: make it scrollable or card-style */
    .cart-table { font-size: 13px; }
    .cart-table th, .cart-table td { padding: 10px 8px; }

    /* Admin */
    .admin-stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card .stat-value { font-size: 24px; }
    .admin-content { padding: 16px; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px 6px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .top-bar span { font-size: 10px; }
    .logo { font-size: 18px; }
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .features-bar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-slide-content h1 { font-size: 22px; }
    .admin-stat-grid { grid-template-columns: 1fr; }

    /* Cart becomes stacked cards on very small screens */
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
    .cart-table td { border: none; border-bottom: 1px solid var(--border); padding: 8px; text-align: right; }
    .cart-table td:first-child { text-align: left; }
}

/* Hide mobile bottom nav on larger screens */
@media (min-width: 769px) {
    .mobile-bottom-nav { display: none !important; }
}
