/* ============================================
   Deebam Afromart - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #E65100;
    --primary-dark: #BF360C;
    --primary-light: #FF8F00;
    --secondary: #1B5E20;
    --secondary-dark: #003300;
    --accent: #F9A825;
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --text: #212121;
    --text-light: #757575;
    --text-lighter: #9E9E9E;
    --border: #E0E0E0;
    --border-light: #F5F5F5;
    --success: #2E7D32;
    --warning: #F57F17;
    --danger: #C62828;
    --info: #1565C0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1280px;
    --header-height: 80px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); font-size: 0.95rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; }
.main-content { flex: 1; min-height: calc(100vh - var(--header-height)); }

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--text);
    color: #ccc;
    font-size: 0.8rem;
    padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { margin-right: 20px; }
.top-bar-left i, .top-bar-right i { margin-right: 5px; color: var(--accent); }
.top-bar-right a { color: #ccc; margin-left: 12px; transition: var(--transition); }
.top-bar-right a:hover { color: var(--accent); }
.top-bar-divider { color: #555; margin: 0 8px; }

/* ---------- Header ---------- */
.header {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-height);
}
.mobile-menu-toggle {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--text);
    padding: 8px;
}

/* Logo */
.logo a { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}
.logo-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}
.logo-tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Search */
.header-search { flex: 1; max-width: 500px; }
.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    background: transparent;
}
.search-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
}
.header-action i { font-size: 1.3rem; }
.header-action:hover { color: var(--primary); }
.cart-action { position: relative; }
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Navigation ---------- */
.nav {
    background: var(--secondary);
    position: sticky;
    top: var(--header-height);
    z-index: 99;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-list {
    display: flex;
    align-items: center;
}
.nav-list li a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255,255,255,0.1);
}
.nav-list li a i { font-size: 0.7rem; margin-left: 4px; }
.nav-phone {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}
.nav-phone i { margin-right: 6px; }
.nav-overlay { display: none; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 200;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    padding: 10px 18px !important;
    color: var(--text) !important;
    font-size: 0.88rem !important;
    border-bottom: 1px solid var(--border-light);
}
.dropdown li a:hover {
    background: var(--bg) !important;
    color: var(--primary) !important;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B71C1C; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1B5E20; }

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-text h1 span { color: var(--accent); }
.hero-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--primary); }
.hero .btn-accent { background: var(--accent); color: var(--text); }
.hero .btn-accent:hover { background: #F57F17; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.hero-stat h3 { font-size: 2rem; font-weight: 800; }
.hero-stat p { font-size: 0.85rem; opacity: 0.8; }
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-placeholder {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    backdrop-filter: blur(10px);
}

/* ---------- Section Styles ---------- */
.section { padding: 60px 0; }
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}
.section-header h2 span { color: var(--primary); }
.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Category Cards ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.category-card .cat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    transition: var(--transition);
}
.category-card:hover .cat-icon { transform: scale(1.1); }
.category-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.category-card p { font-size: 0.78rem; color: var(--text-light); }

/* ---------- Product Cards ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.product-card-image {
    position: relative;
    padding-top: 100%;
    background: var(--bg);
    overflow: hidden;
}
.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-new { background: var(--secondary); color: #fff; }
.badge-hot { background: var(--warning); color: #fff; }
.badge-deal { background: var(--accent); color: var(--text); }
.product-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}
.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}
.product-card-action {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text);
    font-size: 0.85rem;
}
.product-card-action:hover {
    background: var(--primary);
    color: #fff;
}
.product-card-body { padding: 16px; }
.product-card-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title a:hover { color: var(--primary); }
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.product-card-rating .stars { color: var(--accent); font-size: 0.8rem; }
.product-card-rating span { font-size: 0.78rem; color: var(--text-light); }
.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.product-card-price .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.product-card-price .original {
    font-size: 0.9rem;
    color: var(--text-lighter);
    text-decoration: line-through;
}
.product-card-add {
    width: 100%;
    padding: 10px;
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.product-card-add:hover {
    background: var(--primary);
}

/* ---------- Product Quick View / Single Page ---------- */
.product-page { padding: 40px 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.product-gallery {
    position: sticky;
    top: 120px;
    align-self: start;
}
.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    margin-bottom: 12px;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails {
    display: flex;
    gap: 10px;
}
.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-thumb.active,
.product-thumb:hover { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--text-light);
}
.product-meta span { display: flex; align-items: center; gap: 5px; }
.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}
.product-price-block .current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.product-price-block .original {
    font-size: 1.2rem;
    color: var(--text-lighter);
    text-decoration: line-through;
}
.product-price-block .save {
    background: #FFF3E0;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}
.product-description {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}
.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.product-stock.in-stock { background: #E8F5E9; color: var(--success); }
.product-stock.low-stock { background: #FFF3E0; color: var(--warning); }
.product-stock.out-of-stock { background: #FFEBEE; color: var(--danger); }

.product-add-section { margin-bottom: 24px; }
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}
.quantity-btn {
    width: 44px;
    height: 44px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}
.quantity-btn:hover { background: var(--border); }
.quantity-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 600;
    font-size: 1rem;
}
.add-to-cart-section {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.add-to-cart-section .btn { flex: 1; }

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.product-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-light);
}
.product-feature i { color: var(--primary); font-size: 1.1rem; }

/* Tabs */
.product-tabs { margin-top: 40px; }
.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.tab-btn {
    padding: 14px 24px;
    background: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}
.tab-btn.active,
.tab-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------- Shop Page ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 30px 0;
}
.shop-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 140px;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i { color: var(--primary); }
.filter-list li {
    margin-bottom: 6px;
}
.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}
.filter-list a:hover,
.filter-list a.active {
    background: #FFF3E0;
    color: var(--primary);
}
.filter-list .count {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.price-range-form { display: flex; gap: 10px; align-items: center; }
.price-range-form input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.shop-header h2 { font-size: 1.3rem; font-weight: 700; }
.shop-header .results { color: var(--text-light); font-size: 0.9rem; }
.shop-sort select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 0.9rem;
}

/* ---------- Cart Page ---------- */
.cart-page { padding: 40px 0; }
.cart-page h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border);
}
.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-product img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.cart-product-name { font-weight: 600; font-size: 0.95rem; }
.cart-product-attr { font-size: 0.8rem; color: var(--text-light); }
.cart-remove {
    color: var(--text-lighter);
    transition: var(--transition);
    padding: 6px;
}
.cart-remove:hover { color: var(--danger); }
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 140px;
}
.cart-summary h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.cart-summary-row.total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    padding-top: 14px;
    margin-top: 14px;
    border-top: 2px solid var(--border);
}
.cart-summary .btn { margin-top: 16px; }
.coupon-form {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}
.coupon-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* ---------- Checkout ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    padding: 40px 0;
}
.checkout-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.checkout-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-section h2 .step-num {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group label .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-card);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}
.form-control.error { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }

/* ---------- Auth Pages ---------- */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-card .logo { justify-content: center; margin-bottom: 24px; }
.auth-card .logo a { justify-content: center; }
.auth-card h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-lighter);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span { padding: 0 14px; }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #E8F5E9; color: var(--success); border-left: 4px solid var(--success); }
.alert-error { background: #FFEBEE; color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warning { background: #FFF8E1; color: var(--warning); border-left: 4px solid var(--warning); }
.alert-info { background: #E3F2FD; color: var(--info); border-left: 4px solid var(--info); }

/* ---------- Newsletter ---------- */
.newsletter-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 60px 0;
    color: #fff;
}
.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.newsletter-text h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.newsletter-text p { opacity: 0.85; }
.newsletter-input-group {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.newsletter-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #fff;
    min-width: 300px;
    font-size: 0.95rem;
}
.newsletter-input-group input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-input-group .btn { border-radius: 0; }

/* ---------- Features ---------- */
.features-section { padding: 50px 0; border-bottom: 1px solid var(--border-light); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.feature-item:hover { background: var(--bg-card); box-shadow: var(--shadow); }
.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    width: 56px;
    height: 56px;
    background: #FFF3E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.feature-item p { font-size: 0.8rem; color: var(--text-light); }

/* ---------- Footer ---------- */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}
.footer-logo .logo-name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.footer-contact p { margin-bottom: 8px; font-size: 0.88rem; }
.footer-contact i { color: var(--accent); margin-right: 8px; width: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.9rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--primary); padding-left: 4px; }
.payment-methods { margin-top: 20px; }
.payment-methods h5 { font-size: 0.85rem; margin-bottom: 8px; color: #fff; }
.payment-icons { display: flex; gap: 10px; }
.payment-icons i { font-size: 2rem; color: var(--accent); }
.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i { font-size: 4rem; color: var(--border); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-light); margin-bottom: 24px; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Account Pages ---------- */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 30px 0;
}
.account-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
}
.account-user { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.account-user .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 10px;
}
.account-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.account-nav li a:hover,
.account-nav li a.active { background: #FFF3E0; color: var(--primary); }
.account-nav li a i { width: 20px; }
.account-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.account-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

/* ---------- Order Status Badge ---------- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-pending { background: #FFF8E1; color: var(--warning); }
.status-processing { background: #E3F2FD; color: var(--info); }
.status-shipped { background: #F3E5F5; color: #7B1FA2; }
.status-delivered { background: #E8F5E9; color: var(--success); }
.status-cancelled { background: #FFEBEE; color: var(--danger); }

/* ---------- Admin Styles ---------- */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: #1a1a2e;
    color: #ccc;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar-logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.admin-sidebar-logo .logo-name { font-size: 1rem; font-weight: 700; color: #fff; }
.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--primary);
}
.admin-nav li a i { width: 20px; text-align: center; }
.admin-nav-section {
    padding: 0 20px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    font-weight: 700;
}
.admin-main {
    background: #F0F2F5;
    min-height: 100vh;
}
.admin-topbar {
    background: #fff;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar h1 { font-size: 1.3rem; font-weight: 700; }
.admin-topbar-actions { display: flex; align-items: center; gap: 16px; }
.admin-content { padding: 30px; }

/* Admin Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-icon.blue { background: #E3F2FD; color: var(--info); }
.stat-icon.green { background: #E8F5E9; color: var(--success); }
.stat-icon.orange { background: #FFF3E0; color: var(--primary); }
.stat-icon.purple { background: #F3E5F5; color: #7B1FA2; }
.stat-info h3 { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-info p { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.stat-info .change { font-size: 0.78rem; font-weight: 600; margin-top: 4px; }
.stat-info .change.up { color: var(--success); }
.stat-info .change.down { color: var(--danger); }

/* Admin Table */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.admin-card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}
.admin-card-header h3 { font-size: 1.1rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    padding: 14px 20px;
    background: var(--bg);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}
.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    vertical-align: middle;
}
.admin-table tr:hover { background: #FAFAFA; }
.admin-table .product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-table .product-cell img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.admin-actions { display: flex; gap: 6px; }
.admin-actions .btn-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-icon.edit { background: #E3F2FD; color: var(--info); }
.btn-icon.edit:hover { background: var(--info); color: #fff; }
.btn-icon.delete { background: #FFEBEE; color: var(--danger); }
.btn-icon.delete:hover { background: var(--danger); color: #fff; }
.btn-icon.view { background: #E8F5E9; color: var(--success); }
.btn-icon.view:hover { background: var(--success); color: #fff; }

/* Admin Form Grid */
.admin-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.admin-form-sidebar .admin-card { position: sticky; top: 80px; }

/* Image upload area */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.image-upload-area:hover { border-color: var(--primary); background: #FFF8F0; }
.image-upload-area i { font-size: 2.5rem; color: var(--text-lighter); margin-bottom: 10px; }
.image-upload-area p { color: var(--text-light); font-size: 0.9rem; }
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
}

/* Chart placeholder */
.chart-placeholder {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-lighter);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #fff;
    padding: 40px 0;
}
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 8px;
}
.page-header .breadcrumb a:hover { opacity: 1; color: var(--accent); }
.page-header .breadcrumb i { font-size: 0.7rem; }

/* ---------- Wishlist ---------- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ---------- FAQ ---------- */
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question i { transition: transform 0.3s; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .account-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-search { display: none; }
    .mobile-menu-toggle { display: block; }
    .nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 200;
        transition: left 0.3s ease;
    }
    .nav.active { left: 0; }
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 199;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav.active .nav-overlay { opacity: 1; visibility: visible; }
    .nav-inner { flex-direction: column; padding: 20px 0; }
    .nav-list { flex-direction: column; width: 100%; }
    .nav-list li a { padding: 12px 20px; }
    .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,0.1); }
    .dropdown li a { color: #ccc !important; }
    .hero { padding: 40px 0; }
    .hero-text h1 { font-size: 2rem; }
    .hero-stats { gap: 20px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .features-grid { grid-template-columns: 1fr; }
    .newsletter-content { flex-direction: column; text-align: center; }
    .newsletter-input-group { flex-direction: column; }
    .newsletter-input-group input { min-width: unset; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.5rem; }
    .product-info h1 { font-size: 1.4rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .categories-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
    .auth-card { padding: 28px 20px; }
    .hero-text h1 { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { padding: 14px 24px; }
}

/* ---------- Loading ---------- */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast Notification ---------- */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--success);
}
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
