/* ============================================
   ShopVista - Main Stylesheet
   Modern E-Commerce Design
   ============================================ */

:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --primary-xlight: #d8f3dc;
    --accent: #e63946;
    --accent-dark: #c1121f;
    --accent-light: #ffd6da;
    --gold: #f4a261;
    --gold-dark: #e76f51;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #f0f2f5;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --border: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ============ TOP BAR ============ */
.topbar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar a, .topbar span { color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--white); }
.topbar i { font-size: 12px; }

/* ============ MAIN HEADER ============ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.main-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 15px 0;
}

/* Logo */
.logo, .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(45,106,79,0.3);
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.logo-name .accent { color: var(--primary); }
.logo-tagline { font-size: 10px; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; }

/* Search */
.header-search { position: relative; flex: 1; max-width: 500px; }
.header-search form { display: flex; }
.header-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--off-white);
}
.header-search input:focus { border-color: var(--primary); background: var(--white); }
.header-search button {
    padding: 12px 22px;
    background: var(--primary);
    color: white;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 16px;
    transition: var(--transition);
}
.header-search button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.action-btn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    transition: var(--transition);
}
.action-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-xlight); }
.action-btn .badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 20px; height: 20px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--white);
}
.cart-btn { background: var(--primary); color: white !important; border-color: var(--primary) !important; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}
.mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ NAVIGATION ============ */
.main-nav {
    background: var(--primary-dark);
    position: relative;
}
.main-nav .container { position: relative; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-list .arrow { font-size: 11px; transition: var(--transition); }
.nav-list li:hover .arrow { transform: rotate(180deg); }
.admin-link { background: rgba(246,178,107,0.15) !important; color: var(--gold) !important; }

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 600px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 500;
}
.has-dropdown:hover .mega-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-inner { display: flex; padding: 24px; gap: 30px; flex-wrap: wrap; }
.dropdown-col h4 { color: var(--primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.dropdown-col h4 a { color: var(--primary); }
.dropdown-col a { display: block; padding: 5px 0; color: var(--text-secondary); font-size: 13px; }
.dropdown-col a:hover { color: var(--primary); padding-left: 5px; }

/* Mobile Search */
.mobile-search-bar {
    display: none;
    padding: 10px 20px;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}
.mobile-search-bar form { display: flex; }
.mobile-search-bar input {
    flex: 1; padding: 10px 15px;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    font-size: 14px;
}
.mobile-search-bar button {
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============ HERO SLIDER ============ */
.hero-slider { position: relative; background: var(--primary-dark); }
.swiper-slide-content {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), #0d1b2a);
    z-index: 0;
}
.slide-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.slide-text {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    max-width: 600px;
}
.slide-text .badge-pill {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.slide-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 60px);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}
.slide-text h1 span { color: var(--gold); }
.slide-text p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.slide-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: var(--radius); font-size: 15px; font-weight: 600; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,0.35); }
.btn-outline-white { background: transparent; color: white; border: 2px solid white; }
.btn-outline-white:hover { background: white; color: var(--primary-dark); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-green { background: var(--primary); color: white; }
.btn-green:hover { background: var(--primary-dark); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* Swiper Controls */
.swiper-button-next, .swiper-button-prev {
    width: 48px !important; height: 48px !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 50% !important;
    color: white !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3) !important;
    transition: var(--transition) !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: white !important; color: var(--primary-dark) !important; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 16px !important; font-weight: 700 !important; }
.swiper-pagination-bullet-active { background: white !important; }

/* ============ SECTION STYLES ============ */
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .pre-title {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-title p { color: var(--text-secondary); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* Title Underline */
.section-title .title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.section-title .title-line span {
    height: 3px;
    border-radius: 2px;
}
.section-title .title-line .line-long { width: 60px; background: var(--border); }
.section-title .title-line .line-dot { width: 10px; height: 10px !important; border-radius: 50%; background: var(--primary); }

/* ============ CATEGORY STRIPS ============ */
.category-strip { padding: 30px 0; background: var(--off-white); }
.category-strip .cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}
.cat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--primary); }
.cat-card .cat-icon { font-size: 28px; margin-bottom: 8px; color: var(--primary); }
.cat-card span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.cat-card:hover span { color: var(--primary); }

/* ============ PRODUCT GRID ============ */
.products-section { background: var(--white); }
.product-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}
.product-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.product-label .label-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.label-new { background: var(--primary-xlight); color: var(--primary); }
.label-hot { background: #fff0e6; color: #e06c00; }
.label-featured { background: #fff3cd; color: #856404; }
.view-all-link { color: var(--primary); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.view-all-link:hover { gap: 10px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}
.products-grid-9 { grid-template-columns: repeat(9, 1fr); }

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.product-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--off-white);
}
.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

/* Product badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}
.badge-item {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-new { background: var(--primary); color: white; }
.badge-sale { background: var(--accent); color: white; }
.badge-featured { background: var(--gold); color: white; }
.badge-hot { background: #ff4500; color: white; }
.badge-out { background: var(--gray); color: white; }

.product-card-actions {
    position: absolute;
    top: 12px; right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.action-icon {
    width: 36px; height: 36px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.action-icon:hover { background: var(--primary); color: white; }
.action-icon.active { background: var(--accent); color: white; }

.product-card-body { padding: 15px; }
.product-brand { font-size: 11px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-short-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.stars { color: #ffc107; font-size: 12px; }
.rating-count { font-size: 11px; color: var(--gray); }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.price-current { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.price-original { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.price-discount { font-size: 12px; font-weight: 700; color: var(--accent); }
.product-card-footer { display: flex; gap: 8px; }
.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-add-cart:hover { background: var(--accent-dark); }
.btn-view {
    padding: 10px 14px;
    background: var(--primary-xlight);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap;
}
.btn-view:hover { background: var(--primary); color: white; }

/* ============ OFFER SECTION ============ */
/* ============ HERO SLIDER (unchanged base) ============ */
.hero-slider { position: relative; background: var(--primary-dark); }

/* ============ PRODUCTS PAGE OFFER BANNER — full width, 300px height ============ */
.products-offer-strip {
    width: 100%;
}
.products-offer-banner-full {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    text-decoration: none;
    transition: opacity 0.25s;
}
.products-offer-banner-full:hover { opacity: 0.93; }
.products-offer-banner-full:hover .products-offer-bg img { transform: scale(1.03); }

/* Image background */
.products-offer-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.products-offer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
/* Text overlay */
.products-offer-text {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.products-offer-text.no-image {
    background: none;
    padding: 0 60px;
}
.products-offer-tag {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.products-offer-text h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
    font-weight: 700;
}
.products-offer-text p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 18px;
    max-width: 500px;
}
.products-offer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 22px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    align-self: flex-start;
    transition: background 0.2s;
}
.products-offer-banner-full:hover .products-offer-btn { background: rgba(255,255,255,0.3); }
.products-offer-banner-full.text-only .products-offer-btn {
    background: rgba(0,0,0,0.15);
    border-color: currentColor;
}

/* ============ REVIEWS SECTION ============ */
.reviews-section { padding: 70px 0; background: var(--off-white); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.review-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-left-color: var(--primary); }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 15px; }
.review-date { font-size: 12px; color: var(--gray); }
.review-google-badge { color: #4285f4; font-size: 22px; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ============ ABOUT PAGE ============ */
.about-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-hero h1 { font-family: var(--font-heading); font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; position: relative; }
.about-hero p { font-size: 18px; opacity: 0.85; max-width: 600px; margin: 0 auto; position: relative; }
.mission-vision { padding: 80px 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.mv-grid.reverse { direction: rtl; }
.mv-grid.reverse > * { direction: ltr; }
.mv-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.mv-image img { width: 100%; height: 350px; object-fit: cover; }
.mv-content .pre-title { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.mv-content h2 { font-family: var(--font-heading); font-size: 36px; margin-bottom: 16px; }
.mv-content p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 60px 0; }
.stat-card { text-align: center; padding: 30px 20px; background: var(--off-white); border-radius: var(--radius); transition: var(--transition); }
.stat-card:hover { background: var(--primary); color: white; transform: translateY(-4px); }
.stat-num { font-family: var(--font-heading); font-size: 42px; font-weight: 700; color: var(--primary); margin-bottom: 6px; transition: var(--transition); }
.stat-card:hover .stat-num { color: white; }
.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; transition: var(--transition); }
.stat-card:hover .stat-label { color: rgba(255,255,255,0.85); }
.team-section { padding: 80px 0; background: var(--off-white); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.team-card { background: white; border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-img { width: 100%; height: 260px; object-fit: cover; }
.team-info { padding: 20px; }
.team-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.team-role { color: var(--primary); font-size: 13px; font-weight: 600; }

/* ============ PRODUCT LISTING PAGE ============ */
.products-page { padding: 40px 0; }
.products-page-inner { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }

/* Sidebar */
.products-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.sidebar-header h3 { font-size: 16px; font-weight: 700; }
.clear-filters { color: var(--accent); font-size: 13px; cursor: pointer; }
.filter-group { padding: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-secondary); }
.filter-option input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.filter-option:hover { color: var(--primary); }
.filter-count { margin-left: auto; background: var(--light-gray); padding: 2px 8px; border-radius: 10px; font-size: 11px; }

/* Price Range - Modern Dual Slider */
.price-range-modern { padding: 8px 0 4px; }
.price-display-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.price-pill {
    background: #e8f5e9;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
    border: 1.5px solid var(--primary);
}
.price-dash { color: #aaa; font-size: 14px; }
.dual-range-wrap {
    position: relative;
    height: 28px;
    margin: 0 6px;
}
.dual-range-track {
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
    transform: translateY(-50%);
    pointer-events: none;
}
.dual-range-fill {
    position: absolute;
    top: 0; height: 100%;
    background: var(--primary);
    border-radius: 4px;
}
.dual-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.dual-range::-webkit-slider-runnable-track {
    background: transparent;
    height: 4px;
}
.dual-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    transition: box-shadow 0.15s, transform 0.15s;
    position: relative;
    z-index: 1;
}
.dual-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 7px rgba(45,106,79,0.12);
    transform: scale(1.12);
}
.dual-range::-moz-range-track { background: transparent; height: 4px; }
.dual-range::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
#rangeMin { z-index: 4; }
#rangeMax { z-index: 5; }

/* Products Main */
.products-main {}
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid var(--border);
}
.toolbar-left { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select {
    padding: 8px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}
.view-toggle { display: flex; gap: 5px; }
.view-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--gray);
    border: 2px solid var(--border);
    transition: var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.products-listing { }
.products-listing.list-view .products-grid { grid-template-columns: 1fr; }
.products-listing.list-view .product-card { display: grid; grid-template-columns: 200px 1fr; }
.products-listing.list-view .product-card-image { aspect-ratio: auto; height: 200px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 30px 0; }
.page-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ============ PRODUCT DETAIL PAGE ============ */
.product-detail { padding: 40px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-gallery {}
.gallery-main {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--off-white);
    margin-bottom: 14px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumb {
    flex-shrink: 0;
    width: 70px; height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info {}
.product-info .product-brand-link { color: var(--primary); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.product-info h1 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; line-height: 1.3; margin: 10px 0; }
.product-info .product-meta { display: flex; align-items: center; gap: 20px; color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.product-info .product-rating-detail { display: flex; align-items: center; gap: 8px; }
.product-info .price-detail { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.product-info .price-detail .price-main { font-size: 32px; font-weight: 700; color: var(--primary-dark); font-family: var(--font-heading); }
.product-info .price-detail .price-old { font-size: 18px; text-decoration: line-through; color: var(--gray); }
.product-info .price-detail .savings { font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 4px 10px; border-radius: 4px; }

.product-short-info { background: var(--off-white); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.info-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--gray); min-width: 120px; font-weight: 500; }
.info-row .value { color: var(--text-primary); font-weight: 600; }
.in-stock { color: var(--primary); }
.out-stock { color: var(--accent); }

.variant-select { margin: 16px 0; }
.variant-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.variant-options { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-opt {
    padding: 8px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.variant-opt:hover, .variant-opt.active { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }

.quantity-control { display: flex; align-items: center; gap: 0; margin: 16px 0; }
.qty-btn {
    width: 44px; height: 44px;
    background: var(--light-gray);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty-btn:hover { background: var(--primary); color: white; }
.qty-input {
    width: 60px; height: 44px;
    border: 2px solid var(--light-gray);
    border-left: none; border-right: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.product-actions { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.btn-buy-now { flex: 1; padding: 15px; background: var(--primary); color: white; border-radius: var(--radius); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.btn-buy-now:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,0.3); }
.btn-add-to-cart-detail { flex: 1; padding: 15px; background: var(--accent); color: white; border-radius: var(--radius); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.btn-add-to-cart-detail:hover { background: var(--accent-dark); transform: translateY(-2px); }

.delivery-info { background: var(--off-white); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.delivery-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.delivery-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.delivery-row i { color: var(--primary); width: 18px; }
.delivery-row strong { color: var(--text-primary); }

/* Tabs */
.product-tabs { margin-top: 50px; }
.tab-list { display: flex; border-bottom: 2px solid var(--border); gap: 0; overflow-x: auto; }
.tab-btn {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { padding: 30px 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============ CART PAGE ============ */
.cart-page { padding: 40px 0; }
.cart-inner { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.cart-table { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-table table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--off-white); padding: 14px 20px; text-align: left; font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.cart-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-brand { font-size: 12px; color: var(--primary); font-weight: 600; }
.cart-item-remove { color: var(--accent); cursor: pointer; font-size: 16px; transition: var(--transition); }
.cart-item-remove:hover { color: var(--accent-dark); transform: scale(1.2); }

/* Cart Summary */
.cart-summary { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.cart-summary h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.summary-row.total .amount { color: var(--primary-dark); }
.coupon-form { margin: 16px 0; display: flex; gap: 10px; }
.coupon-form input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; }
.coupon-form input:focus { border-color: var(--primary); }
.btn-apply { padding: 10px 18px; background: var(--primary); color: white; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: var(--transition); }
.btn-checkout { display: block; width: 100%; padding: 16px; background: var(--primary); color: white; border-radius: var(--radius); font-size: 16px; font-weight: 700; text-align: center; margin-top: 16px; transition: var(--transition); }
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,0.3); }

/* ============ CHECKOUT ============ */
.checkout-page { padding: 40px 0; }
.checkout-inner { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }
.checkout-form { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.checkout-section { padding: 24px; border-bottom: 1px solid var(--border); }
.checkout-section:last-child { border-bottom: none; }
.checkout-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 i { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { height: 100px; resize: vertical; }
.full-width { grid-column: 1 / -1; }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.payment-option.active { border-color: var(--primary); background: var(--primary-xlight); }
.payment-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.payment-option .method-info h4 { font-weight: 700; font-size: 14px; }
.payment-option .method-info p { font-size: 12px; color: var(--text-secondary); }
.payment-option .method-icon { font-size: 24px; margin-left: auto; color: var(--primary); }

/* ============ ACCOUNT DASHBOARD ============ */
.account-page { padding: 40px 0; }
.account-inner { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.account-sidebar {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.account-profile { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 30px 20px; text-align: center; }
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.4);
}
.profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.profile-email { font-size: 13px; opacity: 0.85; }
.account-nav { padding: 10px 0; }
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.account-nav-item:hover, .account-nav-item.active { color: var(--primary); background: var(--primary-xlight); border-left-color: var(--primary); }
.account-nav-item i { width: 18px; text-align: center; }
.account-nav-item.logout { color: var(--accent); }
.account-nav-item.logout:hover { background: var(--accent-light); border-left-color: var(--accent); }

.account-main {}
.account-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.account-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.account-card-header h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.account-card-header h3 i { color: var(--primary); }
.account-card-body { padding: 24px; }

/* Orders Table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; background: var(--off-white); border-bottom: 2px solid var(--border); }
.orders-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-placed { background: #e3f2fd; color: #1565c0; }
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-processing { background: #fff3e0; color: #e65100; }
.status-shipped { background: #f3e5f5; color: #6a1b9a; }
.status-out_for_delivery { background: #e0f2f1; color: #00695c; }
.status-delivered { background: #e8f5e9; color: #1b5e20; }
.status-cancelled { background: #ffebee; color: #b71c1c; }
.status-returned { background: #fafafa; color: #616161; }

/* Order Progress */
.order-progress { padding: 20px; }
.progress-steps { display: flex; align-items: flex-start; position: relative; margin: 20px 0; }
.progress-steps::before { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; height: 3px; background: var(--border); z-index: 0; }
.progress-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: var(--gray);
    border: 3px solid white;
    transition: var(--transition);
}
.step-dot.done { background: var(--primary); color: white; }
.step-dot.current { background: var(--gold); color: white; box-shadow: 0 0 0 4px rgba(244,162,97,0.2); }
.step-label { font-size: 11px; font-weight: 600; color: var(--gray); }
.step-label.done { color: var(--primary); }
.step-label.current { color: var(--gold); }

/* ============ ADMIN PANEL ============ */
.admin-body { background: var(--off-white); font-family: var(--font-body); }
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--primary-dark);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    transition: width 0.3s ease, min-width 0.3s ease;
    flex-shrink: 0;
}
.admin-sidebar.collapsed { width: 70px; min-width: 70px; }
.admin-sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-header .admin-logo { display: flex; align-items: center; gap: 10px; color: white; }
.admin-sidebar-header .admin-logo .logo-icon { width: 38px; height: 38px; font-size: 18px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.admin-sidebar-header .logo-name { font-size: 18px; font-weight: 700; }
.admin-sidebar-header .logo-tagline { font-size: 10px; opacity: 0.6; }
.admin-nav { padding: 15px 0; }
.admin-nav-title { padding: 10px 20px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; }
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active { color: white; background: rgba(255,255,255,0.1); border-left-color: var(--gold); }
.admin-nav-item i { width: 20px; text-align: center; font-size: 16px; }
.admin-nav-item.danger { color: rgba(255,100,100,0.8); }
.admin-nav-item.danger:hover { background: rgba(255,50,50,0.15); border-left-color: #ff6464; color: #ff6464; }

/* Admin Main */
.admin-main {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    min-width: 0;
    width: calc(100% - 260px);
    transition: margin-left 0.3s ease, width 0.3s ease;
    overflow-x: hidden;
}
.admin-main.expanded {
    margin-left: 70px;
    width: calc(100% - 70px);
}
.admin-topbar {
    background: white;
    padding: 0 30px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}
.admin-topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--off-white); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: var(--transition); }
.sidebar-toggle:hover { background: var(--primary); color: white; }
.admin-topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; overflow: hidden; }
.admin-user-info { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.admin-user-name { font-size: 14px; font-weight: 600; }

/* Admin Content */
.admin-content { padding: 30px; }
.admin-page-title { margin-bottom: 24px; }
.admin-page-title h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.admin-page-title p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* Stats Cards */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-widget {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 4px solid;
    transition: var(--transition);
}
.stat-widget:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-widget.green { border-left-color: var(--primary); }
.stat-widget.blue { border-left-color: #2196f3; }
.stat-widget.orange { border-left-color: #ff9800; }
.stat-widget.red { border-left-color: var(--accent); }
.stat-widget-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-widget.green .stat-widget-icon { background: var(--primary-xlight); color: var(--primary); }
.stat-widget.blue .stat-widget-icon { background: #e3f2fd; color: #2196f3; }
.stat-widget.orange .stat-widget-icon { background: #fff3e0; color: #ff9800; }
.stat-widget.red .stat-widget-icon { background: var(--accent-light); color: var(--accent); }
.stat-widget-info h3 { font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-widget-info p { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.stat-widget-info .trend { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.trend.up { color: var(--primary); }
.trend.down { color: var(--accent); }

/* Admin Table */
.admin-table-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.admin-table-header { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.admin-table-header h3 { font-size: 16px; font-weight: 700; }
.table-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.table-search { padding: 8px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; min-width: 200px; }
.table-search:focus { border-color: var(--primary); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; background: var(--off-white); border-bottom: 2px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--off-white); }
.admin-table .product-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }

.btn-edit { padding: 6px 14px; background: #e3f2fd; color: #1565c0; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; transition: var(--transition); }
.btn-edit:hover { background: #1565c0; color: white; }
.btn-delete { padding: 6px 14px; background: var(--accent-light); color: var(--accent); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; transition: var(--transition); }
.btn-delete:hover { background: var(--accent); color: white; }
.btn-view-detail { padding: 6px 14px; background: var(--primary-xlight); color: var(--primary); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; transition: var(--transition); }
.btn-view-detail:hover { background: var(--primary); color: white; }

/* Admin Forms */
.admin-form-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.admin-form-header { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.admin-form-body { padding: 24px; }

/* ============ UTILITY CLASSES ============ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--gray); }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent); }
.font-bold { font-weight: 700; }
.w-100 { width: 100%; }

/* Alert */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--primary); }
.alert-error { background: #f8d7da; color: #721c24; border-left: 4px solid var(--accent); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--gold); }

/* ============ CART SIDEBAR ============ */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    background: white;
    z-index: 2001;
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-sidebar-header h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.close-cart { width: 36px; height: 36px; border-radius: 50%; background: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: var(--transition); }
.close-cart:hover { background: var(--accent); color: white; }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 15px; }
.cart-sidebar-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-sidebar-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-sidebar-item .item-info { flex: 1; }
.cart-sidebar-item .item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-sidebar-item .item-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.cart-sidebar-item .item-qty { font-size: 12px; color: var(--gray); }
.cart-sidebar-item .remove-item { color: var(--accent); cursor: pointer; font-size: 16px; align-self: flex-start; padding: 4px; }
.cart-sidebar-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total-line { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.btn-view-cart { display: block; padding: 12px; border: 2px solid var(--primary); color: var(--primary); border-radius: var(--radius); text-align: center; font-weight: 700; margin-bottom: 10px; transition: var(--transition); }
.btn-view-cart:hover { background: var(--primary); color: white; }
.btn-checkout-now { display: block; padding: 14px; background: var(--primary); color: white; border-radius: var(--radius); text-align: center; font-weight: 700; font-size: 16px; transition: var(--transition); }
.btn-checkout-now:hover { background: var(--primary-dark); }

/* Empty States */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 60px; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }

/* Toast */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}
.toast.error { border-left-color: var(--accent); }
.toast.warning { border-left-color: var(--gold); }
.toast i { font-size: 18px; color: var(--primary); }
.toast.error i { color: var(--accent); }
.toast .toast-msg { font-size: 14px; font-weight: 500; }
.toast .toast-close { margin-left: auto; cursor: pointer; color: var(--gray); transition: var(--transition); }
.toast .toast-close:hover { color: var(--text-primary); }

/* Loading */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 40px; font-size: 28px; color: var(--primary); }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px; height: 46px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: white; border-radius: var(--radius-lg); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(0.9); transition: var(--transition); box-shadow: var(--shadow-lg); }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; background: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: var(--transition); }
.modal-close:hover { background: var(--accent); color: white; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* ============ ANIMATIONS ============ */
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fa-spinner { animation: spin 1s linear infinite; }
.animate-up { animation: fadeInUp 0.5s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .products-grid-9 { grid-template-columns: repeat(6, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .header-inner { grid-template-columns: auto auto; }
    .header-search { display: none; }
    .mobile-search-bar { display: block; }
    .mobile-toggle { display: flex; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; padding: 10px 0; }
    .nav-list > li > a { padding: 13px 20px; }
    .mega-dropdown { position: static; min-width: unset; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.05); border-radius: 0; display: none; }
    .has-dropdown.open .mega-dropdown { display: block; }
    .dropdown-inner { flex-direction: column; gap: 15px; }
    .products-page-inner { grid-template-columns: 1fr; }
    .products-sidebar { position: static; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .cart-inner { grid-template-columns: 1fr; }
    .checkout-inner { grid-template-columns: 1fr; }
    .account-inner { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .mv-grid { grid-template-columns: 1fr; }
    .mv-grid.reverse { direction: ltr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .products-offer-banner-full { height: 200px; }
    .products-offer-text { padding: 0 24px; }
    .products-offer-text h3 { font-size: 22px; }
    .products-grid-9 { grid-template-columns: repeat(3, 1fr); }
    .admin-main { margin-left: 0 !important; width: 100% !important; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.mobile-open { transform: translateX(0); }
    .cart-sidebar { width: 100%; max-width: 380px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .logo-tagline { display: none; }
    .swiper-slide-content { min-height: 350px; }
    .slide-text { padding: 40px 0; }
    .slide-text p { display: none; }
    .section { padding: 50px 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .products-grid-9 { grid-template-columns: repeat(2, 1fr); }
    .about-hero { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: 15px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .orders-table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-body { padding: 10px; }
    .product-name { font-size: 12px; }
    .price-current { font-size: 15px; }
    .product-card-footer { flex-direction: row; flex-wrap:nowrap; gap:6px; }
    .btn-add-cart { font-size:11px; padding:8px 6px; }
    .btn-view { font-size:11px; padding:8px 6px; }
    .admin-stats { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.8); }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col {}
.footer-logo .logo-name { color: white; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin: 16px 0; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-title { font-size: 15px; font-weight: 700; color: white; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 35px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-links a i { font-size: 11px; color: var(--primary); }
.contact-info li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.contact-info i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.contact-info a { color: rgba(255,255,255,0.65); }
.contact-info a:hover { color: white; }
.footer-map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(255,255,255,0.1); }
.footer-bottom { background: #111122; padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; font-size: 13px; }
.payment-icons { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); }
.payment-icons i { font-size: 24px; }

/* Login Page */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 30px 20px; }
.auth-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-title { font-family: var(--font-heading); font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--gray); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Breadcrumb */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { color: var(--gray); }

/* Input icon */
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray); font-size: 15px; }
.input-with-icon input { padding-left: 42px; }
.input-icon-right i { left: auto; right: 14px; cursor: pointer; }
.input-icon-right input { padding-left: 16px; padding-right: 42px; }

/* Contact Page */
.contact-page { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info-card { background: var(--off-white); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-icon { width: 52px; height: 52px; background: var(--primary); color: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info-item h4 { font-weight: 700; margin-bottom: 4px; }
.contact-info-item p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.contact-form-card { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }

/* Newsletter */
.newsletter-section { padding: 60px 0; background: var(--primary); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.newsletter-text h3 { font-family: var(--font-heading); font-size: 28px; color: white; margin-bottom: 8px; }
.newsletter-text p { color: rgba(255,255,255,0.8); font-size: 15px; }
.newsletter-form { display: flex; gap: 0; max-width: 450px; flex: 1; }
.newsletter-form input { flex: 1; padding: 14px 20px; border: none; border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; outline: none; }
.newsletter-form button { padding: 14px 26px; background: var(--primary-dark); color: white; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; font-size: 14px; transition: var(--transition); white-space: nowrap; }
.newsletter-form button:hover { background: #0d1117; }

/* Features Strip */
.features-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-item { display: flex; align-items: center; gap: 16px; }
.feature-icon { width: 52px; height: 52px; background: var(--primary-xlight); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); flex-shrink: 0; }
.feature-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--gray); }
@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
