/**
 * TechStore E-commerce - Premium Stylesheet
 * Complete Modern Design
 */

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Secondary & Accent */
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Text */
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Border */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-primary: 0 10px 40px rgba(79,70,229,0.3);
    
    /* Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Layout */
    --container: 1320px;
    --header-height: 80px;
    --nav-height: 56px;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =====================================================
   Container
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   Top Bar
   ===================================================== */
.top-bar {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: var(--primary-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.top-bar-right a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.top-bar-right .divider {
    color: rgba(255,255,255,0.2);
}

/* =====================================================
   Main Header
   ===================================================== */
.main-header {
    background: var(--bg-white);
    padding: 12px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: var(--shadow-primary);
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.logo-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.search-bar form {
    position: relative;
}

.search-input-wrapper {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-light);
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    opacity: 0.9;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--bg-light);
}

.search-suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.header-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    color: var(--text-body);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.header-actions .action-btn i {
    font-size: 20px;
}

.header-actions .action-btn .action-text {
    font-size: 11px;
    font-weight: 600;
}

.header-actions .action-btn:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.header-actions .cart-btn .cart-count {
    position: absolute;
    top: -8px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    background: var(--danger);
    color: white;
    font-size: 8px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* =====================================================
   Main Navigation
   ===================================================== */
.main-nav {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    align-items: stretch;
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 220px;
}

.categories-btn:hover {
    opacity: 0.95;
}

.categories-btn i:last-child {
    margin-left: auto;
    font-size: 12px;
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: 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: 100;
}

.categories-dropdown:hover .categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-list {
    padding: 8px 0;
}

.category-item {
    position: relative;
}

.category-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-body);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.category-item > a i:first-child {
    width: 20px;
    color: var(--primary);
    text-align: center;
}

.category-item > a span {
    flex: 1;
}

.category-item > a .arrow {
    font-size: 11px;
    color: var(--text-muted);
}

.category-item:hover > a {
    background: var(--bg-light);
    color: var(--primary);
}

/* Subcategory Menu */
.subcategory-menu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 220px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}

.category-item:hover .subcategory-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.subcategory-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 14px;
    transition: var(--transition);
}

.subcategory-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Main Menu */
.main-menu {
    display: flex;
    align-items: stretch;
    margin-left: 0;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    color: var(--text-body);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    height: 100%;
}

.main-menu > li > a i {
    font-size: 10px;
}

.main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

.main-menu > li > a:hover,
.main-menu > li > a.active {
    color: var(--primary);
}

.main-menu > li > a:hover::after,
.main-menu > li > a.active::after {
    width: 30px;
}

.main-menu > li > a.highlight {
    color: var(--danger);
}

.main-menu > li > a.highlight:hover {
    color: var(--danger);
}

/* Dropdown Menu */
.main-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.main-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Nav Hotline */
.nav-hotline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding: 10px 0;
}

.nav-hotline > i {
    font-size: 28px;
    color: var(--primary);
}

.hotline-info {
    display: flex;
    flex-direction: column;
}

.hotline-text {
    font-size: 12px;
    color: var(--text-muted);
}

.hotline-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

/* =====================================================
   Mobile Navigation
   ===================================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.mobile-nav-header .logo-text {
    font-size: 22px;
}

.close-mobile-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-full);
    font-size: 18px;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
}

.close-mobile-nav:hover {
    background: var(--danger);
    color: white;
}

.mobile-search {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-search form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.mobile-search input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.mobile-search button {
    padding: 10px 15px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    padding: 10px 0;
}

.mobile-menu > li > a {
    display: block;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-body);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.mobile-menu > li > a i:first-child {
    width: 20px;
    color: var(--primary);
    text-align: center;
}

.mobile-menu > li > a i:last-child {
    margin-left: auto;
    font-size: 12px;
    transition: var(--transition);
}

.mobile-menu > li > a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Mobile Dropdown */
.mobile-dropdown .mobile-submenu {
    display: none;
    background: var(--bg-light);
    padding: 5px 0;
}

.mobile-dropdown.active .mobile-submenu {
    display: block;
}

.mobile-dropdown.active > a i:last-child {
    transform: rotate(180deg);
}

.mobile-submenu li a {
    display: block;
    padding: 10px 20px 10px 52px;
    color: var(--text-body);
    font-size: 14px;
    transition: var(--transition);
}

.mobile-submenu li a:hover {
    color: var(--primary);
}

.mobile-account {
    padding: 20px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.mobile-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-body);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.mobile-account-link:last-child {
    border-bottom: none;
}

.mobile-account-link:hover {
    color: var(--primary);
}

.mobile-account-link i {
    width: 20px;
    color: var(--primary);
}

/* =====================================================
   Flash Messages
   ===================================================== */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =====================================================
   Hero Slider
   ===================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.slider-container {
    position: relative;
}

.slide {
    display: none;
    position: relative;
    min-height: 480px;
}

.slide.active {
    display: block;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.slide-text {
    max-width: 600px;
    color: white;
}

.slide-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.slide-desc {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: var(--radius-full);
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-prev { left: 30px; }
.slider-next { right: 30px; }

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
    color: white;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background: white;
    width: 32px;
}

/* =====================================================
   Category Boxes
   ===================================================== */
.category-boxes {
    padding: 60px 0;
    background: linear-gradient(to bottom, #fafbfc 0%, #f4f6f9 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: stretch;
}

.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    min-height: 160px;
}

.category-box:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.12);
    transform: translateY(-6px);
}

.category-box .category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-box:hover .category-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.category-box .category-info {
    width: 100%;
}

.category-box .category-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.category-box:hover .category-info h4 {
    color: var(--primary);
}

.category-box .category-info span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =====================================================
   Products Section
   ===================================================== */
.products-section {
    padding: 60px 0;
}

.products-section.bg-light {
    background: var(--bg-gray);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header.text-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 22px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
    font-size: 14px;
}

.view-all-link:hover {
    background: var(--primary);
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Homepage Products Grid - 4 columns */
.products-section .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Shop Page Products Grid - 3 columns (keep as default) */
.shop-content .products-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* =====================================================
   Product Card
   ===================================================== */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.badge-sale {
    background: var(--danger);
    color: white;
}

.badge-new {
    background: var(--success);
    color: white;
}

.badge-hot {
    background: var(--warning);
    color: white;
}

.badge-sold-out {
    background: #374151;
    color: white;
}

.badge-low-stock {
    background: var(--warning);
    color: white;
}

/* Wishlist Button */
.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.product-card .wishlist-btn:hover,
.product-card .wishlist-btn.active {
    background: var(--danger);
    color: white;
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* Product Actions */
.product-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 5;
}

.product-card:hover .product-actions {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.product-actions .action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.product-actions .action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 18px;
}

.product-category {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-category:hover {
    color: var(--primary);
}

.product-name {
    margin-bottom: 10px;
}

.product-name a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name a:hover {
    color: var(--primary);
}

.product-brand {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 12px;
}

.stars .empty {
    color: #e5e7eb;
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

/* Product Stock */
.product-stock {
    margin-top: 10px;
    font-size: 12px;
}

.in-stock {
    color: var(--success);
    font-weight: 500;
}

.low-stock {
    color: var(--warning);
    font-weight: 500;
}

.out-of-stock {
    color: var(--danger);
    font-weight: 500;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* =====================================================
   Promo Banners
   ===================================================== */
.promo-banners {
    padding: 60px 0;
    background: var(--bg-white);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 260px;
}

.promo-banner.promo-large {
    grid-row: span 2;
    min-height: 100%;
}

.promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    width: fit-content;
}

.promo-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.promo-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.promo-banner:not(.promo-large) .promo-content h3 {
    font-size: 22px;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    width: fit-content;
}

.btn-white:hover {
    background: var(--text-dark);
    color: white;
}

.btn-white-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    width: fit-content;
}

.btn-white-outline:hover {
    background: white;
    color: var(--text-dark);
}

/* =====================================================
   Features Banner
   ===================================================== */
.features-banner {
    padding: 45px 0;
    background: var(--primary-gradient);
}

.features-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-banner-item {
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
}

.feature-banner-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.feature-banner-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.feature-banner-content p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

/* =====================================================
   Brands Section
   ===================================================== */
.brands-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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='%234f46e5' fill-opacity='0.03'%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");
    pointer-events: none;
}

.brands-section .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

/* Brands Slider Container */
.brands-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.brands-slider {
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    gap: 40px;
    animation: slide 30s linear infinite;
    width: fit-content;
}

/* Pause animation on hover */
.brands-slider:hover .brands-track {
    animation-play-state: paused;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Brand Slide */
.brand-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 40px;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 180px;
    min-height: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}

.brand-item img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.brand-item:hover .brand-name {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .brands-section {
        padding: 50px 0;
    }
    
    .brands-track {
        gap: 25px;
        animation-duration: 20s;
    }
    
    .brand-item {
        padding: 20px 30px;
        min-width: 140px;
        min-height: 80px;
    }
    
    .brand-item img {
        max-width: 110px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .brands-section {
        padding: 40px 0;
    }
    
    .brands-track {
        gap: 20px;
        animation-duration: 15s;
    }
    
    .brand-item {
        padding: 15px 25px;
        min-width: 120px;
        min-height: 70px;
        border-radius: 12px;
    }
    
    .brand-item img {
        max-width: 90px;
        max-height: 40px;
    }
    
    .brand-name {
        font-size: 14px;
    }
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    padding: 70px 0;
    background: var(--primary-gradient);
}

.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-content {
    max-width: 600px;
    color: white;
}

.cta-content h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 18px;
    color: white;
}

.cta-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}

.cta-image {
    font-size: 160px;
    color: rgba(255,255,255,0.15);
}

/* =====================================================
   Newsletter Section
   ===================================================== */
.newsletter-section {
    padding: 45px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-content h3 i {
    font-size: 32px;
}

.newsletter-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    background: white;
    border: none;
    border-radius: 12px;
    color: var(--text-dark);
    outline: none;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.newsletter-form button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* =====================================================
   Features Section
   ===================================================== */
.features-section {
    padding: 35px 0;
    background: white;
    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: 18px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 26px;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.feature-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* =====================================================
   Footer
   ===================================================== */
.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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.02'%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");
    opacity: 0.5;
    pointer-events: none;
}

.footer-top {
    padding: 50px 0 35px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 35px;
}

/* Footer Logo Column */
.footer-about-col {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.footer-logo .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.footer-logo .logo-text span {
    color: var(--primary);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    border-color: var(--primary);
}

/* Footer Columns */
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact li i {
    width: 20px;
    height: 20px;
    background: rgba(79, 70, 229, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact li span {
    flex: 1;
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.payment-methods i {
    font-size: 20px;
    color: var(--primary);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* =====================================================
   Forms
   ===================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    display: block !important;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

select.form-control {
    appearance: auto;
    cursor: pointer;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.card-body {
    padding: 22px;
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    border-left: 4px solid;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: #1e40af;
}

/* =====================================================
   Page Content
   ===================================================== */
.main-content {
    min-height: 50vh;
    padding: 0;
}

.page-content {
    padding: 24px 0;
    min-height: 60vh;
}

/* =====================================================
   Breadcrumbs
   ===================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 600;
}

/* =====================================================
   Pagination
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-body);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* =====================================================
   Shop Page
   ===================================================== */
.breadcrumb-section {
    padding: 20px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

/* Category Header */
.category-header {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.category-header-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.category-header-text h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-header-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.subcategory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.subcategory-filter-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subcategory-filter-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
    color: var(--primary);
}

.subcategory-filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.subcategory-filter-btn .count {
    font-size: 12px;
    opacity: 0.8;
}

/* Deals Page Header */
.deals-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.deals-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.deals-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.deals-header-text h1 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.deals-header-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* Deal Stats */
.deals-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.deal-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.deal-stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.deal-stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.deal-stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.deal-stat-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Deal Type Filters */
.deal-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.deal-type-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.deal-type-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.deal-type-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

.deal-type-btn i {
    font-size: 16px;
}

/* =====================================================
   Contact Page
   ===================================================== */
.contact-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-hero .hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.contact-hero .hero-content h1 i {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-hero .hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    margin: 0;
}

.contact-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Contact Info */
.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-info .info-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.info-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.contact-form-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-form .required {
    color: #e74c3c;
}

.contact-form .form-control {
    width: 100%;
    padding: 14px 40px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form select.form-control {
    cursor: pointer;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.6;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Map Section */
.alert i {
    font-size: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert ul {
    margin: 5px 0 0;
    padding-left: 20px;
}

.alert li {
    margin: 3px 0;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
}

.success-message {
    text-align: center;
    padding: 40px 0;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.map-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.shop-section {
    padding: 40px 0;
    background: var(--bg-gray);
}

.shop-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Shop Sidebar */
.shop-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 90px;
    overflow: hidden;
}

.sidebar-header {
    padding: 24px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-sidebar {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255,255,255,0.3);
}

#filterForm {
    padding: 0;
}

/* Filter Groups */
.filter-group {
    border-bottom: 1px solid var(--border);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-title {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.filter-title:hover {
    background: var(--bg-light);
}

.filter-title span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-title i {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.filter-group.collapsed .filter-title i {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 0 24px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.filter-group.collapsed .filter-content {
    display: none;
}

/* Scrollbar for filter content */
.filter-content::-webkit-scrollbar {
    width: 5px;
}

.filter-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Category Filter */
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list > li {
    margin-bottom: 10px;
}

.category-filter-list > li:last-child {
    margin-bottom: 0;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    font-size: 14px;
    color: var(--text-body);
}

.filter-checkbox:hover {
    background: var(--bg-light);
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
    display: none;
}

.filter-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.filter-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input[type="radio"]:checked + .checkmark::after {
    width: 8px;
    height: 8px;
    border: none;
    background: white;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transform: none;
}

/* Subcategory List */
.subcategory-list {
    list-style: none;
    padding: 8px 0 0 28px;
    margin: 0;
}

.subcategory-list li {
    margin-top: 8px;
}

/* Price Range */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.price-input input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.price-input input:focus {
    border-color: var(--primary);
}

.price-separator {
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 20px;
}

.price-range-slider {
    margin-top: 10px;
}

.price-range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.price-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Brand Filter */
.brand-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Filter Actions */
.filter-actions {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Shop Content */
.shop-content {
    flex: 1;
}

/* Shop Header */
.shop-header {
    background: white;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.results-count {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.results-count strong {
    color: var(--text-dark);
    font-weight: 700;
}

.shop-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-control label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.sort-control select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.sort-control select:focus {
    border-color: var(--primary);
}

.view-controls {
    display: flex;
    gap: 8px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 10px;
}

.view-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: var(--primary);
}

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Active Filters */
.active-filters {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.active-filters-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
}

.filter-tag a {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.filter-tag a:hover {
    color: var(--primary);
}

.clear-all-filters {
    margin-left: auto;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.clear-all-filters:hover {
    color: var(--primary-dark);
}

/* No Products */
.no-products {
    background: white;
    padding: 80px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.no-products-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 50px;
    color: var(--text-muted);
}

.no-products h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.no-products p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* List View */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: none;
}

.products-grid.list-view .product-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.products-grid.list-view .product-info {
    flex: 1;
    text-align: left;
}

.products-grid.list-view .product-actions {
    flex-direction: row;
    gap: 12px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Homepage - 3 columns on tablet */
    .products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Shop page - 2 columns on tablet */
    .shop-content .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .promo-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .promo-banner.promo-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    /* Deals page responsive */
    .deals-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deal-type-filters {
        justify-content: center;
    }
    
    .nav-hotline {
        display: none;
    }
}

@media (max-width: 992px) {
    .top-bar-left {
        display: none;
    }
    
    .header-wrapper {
        flex-wrap: nowrap;
    }
    
    .search-bar {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .features-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact page tablet */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-about-col {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .cta-image {
        display: none;
    }
    
    /* Deals header mobile */
    .deals-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .deals-header-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .deals-header-text h1 {
        font-size: 28px;
    }
    
    .deals-header-text p {
        font-size: 16px;
    }
    
    .deals-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .deal-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .deal-stat-info h3 {
        font-size: 24px;
    }
    
    /* Category header responsive */
    .category-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .category-header-text h1 {
        font-size: 26px;
    }
    
    .subcategory-filters {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Homepage - 2 columns on mobile */
    .products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Shop page - 2 columns on mobile */
    .shop-content .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .category-box {
        padding: 24px 16px;
        min-height: 140px;
    }
    
    .category-box .category-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    /* Shop page responsive */
    .shop-wrapper {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 320px;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.4s ease;
        border-radius: 0;
        top: 0;
    }
    
    .shop-sidebar.active {
        left: 0;
    }
    
    .close-sidebar {
        display: flex;
    }
    
    .filter-toggle-btn {
        display: flex;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-control {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-control select {
        width: 100%;
    }
    
    .view-controls {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content h3 {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-actions .action-text {
        display: none;
    }
    
    .header-actions .action-btn {
        padding: 6px 8px;
    }
    
    .header-actions .action-btn i {
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .main-header {
        padding: 8px 0;
    }
    
    .header-wrapper {
        /* gap: 8px; */
    }
    
    .top-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .top-bar-right a {
        padding: 2px 6px;
        font-size: 12px;
        gap: 4px;
    }
    
    .top-bar-right .divider {
        font-size: 10px;
    }
    
    /* Single column products on mobile */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .products-section .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .shop-content .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr !important;
    }
    
    .slide {
        min-height: 300px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-content {
        padding: 30px 0;
    }
    
    .slide-subtitle {
        font-size: 13px;
    }
    
    .slide-desc {
        font-size: 13px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .category-box {
        padding: 22px 14px;
        min-height: 130px;
    }
    
    .category-box .category-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .category-box .category-info h4 {
        font-size: 15px;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .newsletter-content h3 {
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
    }
    
    .newsletter-content p {
        font-size: 14px;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .features-banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-banner-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-about-col {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-col h4 {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-contact li {
        text-align: center;
        justify-content: center;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slider-prev { left: 15px; }
    .slider-next { right: 15px; }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    
    /* Deals header small mobile */
    .deals-header {
        padding: 30px 0;
    }
    
    .deals-header-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .deals-header-text h1 {
        font-size: 24px;
    }
    
    .deals-header-text p {
        font-size: 14px;
    }
    
    .deals-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .deal-stat-card {
        padding: 16px;
    }
    
    .deal-type-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    /* Category header mobile */
    .category-header {
        padding: 30px 0;
    }
    
    .category-header-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .category-header-text h1 {
        font-size: 22px;
    }
    
    .category-header-text p {
        font-size: 14px;
    }
    
    .subcategory-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Contact page mobile */
    .contact-hero {
        padding: 40px 0;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-hero p {
        font-size: 16px;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper {
        padding: 28px 20px;
    }
    
    .contact-form-wrapper h2 {
        font-size: 24px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-name a {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .category-box {
        padding: 16px 12px;
        min-height: auto;
        flex-direction: row;
        gap: 14px;
        border-radius: 12px;
    }
    
    .category-box .category-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border-radius: 14px;
    }
    
    .category-box .category-info h4 {
        font-size: 14px;
    }
    
    .category-box .category-info span {
        font-size: 12px;
    }
    
    .newsletter-section {
        padding: 40px 0;
    }
    
    .newsletter-content h3 {
        font-size: 20px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .features-section {
        padding: 30px 0;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .feature-content h4 {
        font-size: 14px;
    }
    
    .feature-content p {
        font-size: 13px;
    }
    
    .slide {
        min-height: 320px;
    }
    
    .slide-title {
        font-size: 26px;
    }
    
    .slide-desc {
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 22px;
        font-size: 14px;
    }
    
    /* Shop page mobile */
    .shop-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .clear-all-filters {
        margin-left: 0;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image-wrapper {
        width: 100%;
    }
    
    .promo-content {
        padding: 25px;
    }
    
    .promo-content h3 {
        font-size: 22px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .header-actions .action-btn {
        padding: 4px 6px;
    }
    
    .header-actions .action-btn i {
        font-size: 16px;
    }
    
    .header-wrapper {
        /* gap: 6px; */
    }
    
    .top-bar {
        padding: 4px 0;
        font-size: 11px;
    }
    
    .top-bar-right a {
        padding: 2px 4px;
        font-size: 11px;
    }
    
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .category-box {
        padding: 16px 12px;
        min-height: auto;
        flex-direction: row;
        gap: 12px;
    }
    
    .category-box .category-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr !important;
    }
    
    .slide {
        min-height: 250px;
    }
    
    .slide-title {
        font-size: 20px;
    }
    
    .footer-grid {
        gap: 24px;
    }
    
    .footer-col h4 {
        font-size: 16px;
    }
}

/* =====================================================
   Utilities
   ===================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.d-none { display: none; }
.d-flex { display: flex; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   Mini Cart Sidebar
   ===================================================== */
.mini-cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-cart-sidebar.active {
    right: 0;
}

.mini-cart-header {
    padding: 24px 28px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mini-cart-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-mini-cart {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.close-mini-cart:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-light);
}

.mini-cart-body::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mini-cart-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.mini-cart-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   Back to Top Button
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
}

/* =====================================================
   Loading Overlay
   ===================================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.loader span {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* =====================================================
   Toast Notifications
   ===================================================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid var(--primary);
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.toast-close {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive for mini cart */
@media (max-width: 576px) {
    .mini-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* =====================================================
   Cart Button Animations & Feedback
   ===================================================== */

/* Add to Cart Button Success Animation */
.add-to-cart-btn.added,
.add-cart-btn.added {
    animation: cartAddedPulse 0.6s ease;
}

@keyframes cartAddedPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Button Disabled State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:disabled:hover {
    transform: none;
}

/* Cart Count Badge Animation */
.cart-count.has-items {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Loading State for Buttons */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Auth Pages (Login, Register, Forgot Password)
   ===================================================== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: var(--primary-gradient);
    transform: rotate(-15deg);
    opacity: 0.03;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: var(--secondary);
    transform: rotate(20deg);
    opacity: 0.02;
    pointer-events: none;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Auth Banner - Left Side */
.auth-banner {
    background: var(--primary-gradient);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-banner::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.auth-banner-content {
    position: relative;
    z-index: 1;
    color: white;
}

.auth-banner-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.auth-banner-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.7;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.auth-feature:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(10px);
}

.auth-feature i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
}

.auth-feature span {
    font-size: 1rem;
    font-weight: 500;
}

/* Auth Illustration */
.auth-illustration {
    margin-top: 50px;
    text-align: center;
}

.auth-illustration img {
    max-width: 80%;
    opacity: 0.9;
}

/* Auth Form Container - Right Side */
.auth-form-container {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    margin-bottom: 35px;
    text-align: center;
}

.auth-form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-form-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.auth-form .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 1;
    transition: var(--transition);
}

.auth-form .input-group input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.auth-form .input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-form .input-group input:focus + .input-icon,
.auth-form .input-group:focus-within .input-icon {
    color: var(--primary);
}

.auth-form .toggle-password {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.auth-form .toggle-password:hover {
    color: var(--primary);
}

/* Form Options (Remember me, Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -5px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-body);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Auth Submit Button */
.auth-form .btn-primary {
    padding: 16px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 10px;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}

/* Social Login */
.social-login {
    margin-top: 30px;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-divider span {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.social-btn.google-btn i {
    color: #ea4335;
}

.social-btn.facebook-btn i {
    color: #1877f2;
}

/* Auth Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Auth Page Alert Messages */
.auth-form-container .alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-form-container .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-form-container .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-form-container .alert p {
    margin: 0;
    font-size: 0.95rem;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.strength-bar-fill.weak { width: 25%; background: var(--danger); }
.strength-bar-fill.fair { width: 50%; background: var(--warning); }
.strength-bar-fill.good { width: 75%; background: var(--info); }
.strength-bar-fill.strong { width: 100%; background: var(--success); }

.strength-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Auth Page Responsive */
@media (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .auth-banner {
        display: none;
    }
    
    .auth-form-container {
        padding: 50px 40px;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 30px 15px;
    }
    
    .auth-form-container {
        padding: 35px 25px;
    }
    
    .auth-form-header h1 {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

/* Form Row for side-by-side inputs */
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Required Field Indicator */
.auth-form .required {
    color: var(--danger);
    font-weight: 500;
}

/* Form Hint Text */
.auth-form .form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Focused Form Group */
.auth-form .form-group.focused label {
    color: var(--primary);
}

/* Terms Checkbox */
.auth-form .checkbox-label a {
    color: var(--primary);
    font-weight: 500;
}

.auth-form .checkbox-label a:hover {
    text-decoration: underline;
}

/* Narrow Auth Wrapper (for forgot password, reset password) */
.auth-wrapper.auth-wrapper-narrow {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.auth-wrapper-narrow .auth-form-container {
    padding: 50px;
}

.auth-wrapper-narrow .auth-form-header {
    text-align: center;
}

/* Auth Icon */
.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-primary);
}

.auth-icon i {
    font-size: 2rem;
    color: white;
}

@media (max-width: 576px) {
    .auth-wrapper-narrow .auth-form-container {
        padding: 35px 25px;
    }
    
    .auth-icon {
        width: 70px;
        height: 70px;
    }
    
    .auth-icon i {
        font-size: 1.75rem;
    }
}

/* Verified Mobile Badge */
.verified-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-full);
    color: #166534;
    font-weight: 500;
    margin-top: 15px;
}

.verified-mobile i {
    color: #22c55e;
}

/* Auth Icon Success Variant */
.auth-icon.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Form Hint */
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.password-strength-bar .strength-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-bar .strength-fill.weak {
    width: 25%;
    background: var(--danger);
}

.password-strength-bar .strength-fill.fair {
    width: 50%;
    background: var(--warning);
}

.password-strength-bar .strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.password-strength-bar .strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* =====================================================
   Product Details Page
   ===================================================== */
.product-details-section {
    padding: 40px 0 60px;
    background: var(--bg-white);
}

.product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    margin-bottom: 15px;
}

.main-image-wrapper {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
}

.main-image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.main-image-wrapper:hover img {
    transform: scale(1.05);
}

.main-image-wrapper .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.main-image-wrapper .sale-badge {
    background: var(--danger);
    color: white;
}

.main-image-wrapper .new-badge {
    background: var(--success);
    color: white;
    top: 55px;
}

.main-image-wrapper .zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-body);
}

.main-image-wrapper .zoom-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbs .thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumbs .thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Product Info Details */
.product-info-details {
    padding: 10px 0;
}

.product-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-brand-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-brand-badge a {
    color: white;
}

.product-sku {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-rating-box .stars {
    color: #f59e0b;
    font-size: 1rem;
}

.product-rating-box .rating-value {
    font-weight: 700;
    color: var(--text-dark);
}

.product-rating-box .rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-rating-box .write-review-link {
    color: var(--primary);
    font-weight: 500;
    margin-left: 10px;
}

.product-rating-box .write-review-link:hover {
    text-decoration: underline;
}

/* Product Price Box */
.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-price-box .current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.product-price-box .original-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-box .discount-tag {
    background: #fef2f2;
    color: var(--danger);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Stock Status Box */
.stock-status-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.stock-status.in-stock {
    color: var(--success);
}

.stock-status.out-of-stock {
    color: var(--danger);
}

.low-stock-warning {
    color: var(--warning);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Short Description */
.product-short-desc {
    margin-bottom: 25px;
    color: var(--text-body);
    line-height: 1.7;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

/* Key Specs */
.key-specs {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.key-specs h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.specs-list {
    display: grid;
    gap: 10px;
}

.specs-list li {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list .spec-name {
    color: var(--text-muted);
    min-width: 120px;
}

.specs-list .spec-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* Add to Cart Box */
.add-to-cart-box {
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
}

.quantity-input .qty-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-body);
    transition: var(--transition);
}

.quantity-input .qty-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-input .qty-btn.minus {
    border-radius: var(--radius) 0 0 var(--radius);
}

.quantity-input .qty-btn.plus {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quantity-input input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--border);
    border-right: 2px solid var(--border);
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
}

.quantity-input input:focus {
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.action-buttons .btn-primary {
    flex: 1;
    padding: 16px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius);
}

.action-buttons .btn-outline {
    width: 55px;
    height: 55px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-body);
    font-size: 1.25rem;
}

.action-buttons .btn-outline:hover,
.action-buttons .btn-outline.active {
    border-color: var(--danger);
    color: var(--danger);
    background: #fef2f2;
}

.buy-now-btn {
    width: 100%;
    padding: 16px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--success);
    border: none;
    border-radius: var(--radius);
    color: white;
}

.buy-now-btn:hover {
    background: #059669;
}

/* Out of Stock Box */
.out-of-stock-box {
    padding: 25px;
    background: #fef2f2;
    border: 2px dashed var(--danger);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    text-align: center;
}

.out-of-stock-box p {
    color: var(--text-body);
    margin-bottom: 15px;
}

.out-of-stock-box p i {
    color: var(--danger);
    margin-right: 8px;
}

.notify-form {
    display: flex;
    gap: 10px;
}

.notify-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.notify-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.product-features .feature {
    text-align: center;
    padding: 15px 10px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.product-features .feature:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.product-features .feature i {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-features .feature span {
    font-size: 0.85rem;
    color: var(--text-body);
    font-weight: 500;
}

/* Product Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-share span {
    font-weight: 600;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy-link {
    background: var(--text-muted);
}

/* Product Tabs */
.product-tabs {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 18px 25px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--bg-white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.description-content {
    color: var(--text-body);
    line-height: 1.8;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background: var(--bg-light);
}

.specs-table th,
.specs-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.specs-table th {
    font-weight: 600;
    color: var(--text-dark);
    width: 35%;
    background: var(--bg-light);
}

.specs-table td {
    color: var(--text-body);
}

/* Reviews Section */
.reviews-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-big {
    text-align: center;
}

.rating-big .rating-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.rating-big .stars {
    color: #f59e0b;
    margin: 8px 0;
}

.rating-big .total-reviews {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Related Products Section */
.related-products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Product Page Responsive */
@media (max-width: 992px) {
    .product-details-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-details-section {
        padding: 24px 0 40px;
    }
    
    .product-details-wrapper {
        gap: 24px;
    }
    
    .gallery-thumbs {
        gap: 8px;
    }
    
    .gallery-thumbs .thumb {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 1.35rem;
    }
    
    .product-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .product-price-box {
        padding: 14px 16px;
    }
    
    .product-price-box .current-price {
        font-size: 1.65rem;
    }
    
    .add-to-cart-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-outline {
        width: 100%;
    }
    
    .product-features {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-feature-item {
        padding: 12px;
    }
    
    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }
    
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 12px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.25rem;
    }
    
    .product-price-box .current-price {
        font-size: 1.4rem;
    }
    
    .product-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .tabs-nav {
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-outline {
        width: 100%;
    }
    
    .key-specs {
        grid-template-columns: 1fr;
    }
    
    .product-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

/* =====================================================
   Cart Page
   ===================================================== */
.cart-section {
    padding: 40px 0 60px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon i {
    font-size: 3.5rem;
    color: var(--text-muted);
}

.empty-cart h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    padding: 18px 25px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    padding: 20px 25px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.cart-item-row:hover {
    background: var(--bg-light);
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-product-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-product-info h4 a {
    color: var(--text-dark);
}

.cart-product-info h4 a:hover {
    color: var(--primary);
}

.cart-product-info .product-variant {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cart-price {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-quantity .quantity-input {
    display: inline-flex;
}

.cart-quantity .quantity-input input {
    width: 45px;
}

.cart-subtotal {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.cart-remove {
    width: 35px;
    height: 35px;
    border-radius: var(--radius);
    border: none;
    background: #fef2f2;
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove:hover {
    background: var(--danger);
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text-body);
}

.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 15px;
    padding-top: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-row.total span:last-child {
    color: var(--primary);
    font-size: 1.35rem;
}

.cart-summary .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    background: var(--primary-gradient);
}

.cart-summary .btn-secondary {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Coupon Form */
.coupon-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.coupon-form input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.coupon-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.coupon-form button {
    padding: 12px 18px;
    white-space: nowrap;
}

/* Cart Responsive */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-price,
    .cart-quantity,
    .cart-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-price::before { content: 'Price: '; color: var(--text-muted); }
    .cart-subtotal::before { content: 'Subtotal: '; color: var(--text-muted); }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 24px 0 40px;
    }
    
    .page-title {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }
    
    .cart-items-wrapper {
        padding: 16px;
    }
    
    .cart-item-row {
        padding: 16px 0;
        gap: 12px;
    }
    
    .cart-product {
        flex-direction: row;
        gap: 12px;
    }
    
    .cart-product-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .cart-product-info h4 {
        font-size: 0.9rem;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    .cart-summary h3 {
        font-size: 1.1rem;
    }
    
    .coupon-form {
        flex-direction: column;
    }
    
    .coupon-form button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cart-section {
        padding: 16px 0 30px;
    }
    
    .cart-items-wrapper {
        padding: 12px;
        border-radius: var(--radius);
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-product-info h4 {
        font-size: 0.85rem;
    }
    
    .quantity-input {
        gap: 0;
    }
    
    .quantity-input input {
        width: 36px;
        font-size: 0.85rem;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
    }
    
    .cart-summary {
        padding: 16px;
    }
}

/* =====================================================
   Checkout Page
   ===================================================== */
.checkout-section {
    padding: 40px 0 60px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

.checkout-form-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
}

.checkout-form-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-form-section h2 i {
    color: var(--primary);
}

/* Address Cards */
.address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.address-card {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.address-card:hover {
    border-color: var(--primary-light);
}

.address-card.selected {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.address-card input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
    accent-color: var(--primary);
}

.address-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.address-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.address-card .address-type {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Order Summary - Checkout */
.order-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.order-summary-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}

.order-summary-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.order-items {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px 25px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.order-item-info .item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.order-totals {
    padding: 20px 25px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.order-totals .summary-row {
    padding: 10px 0;
}

/* Checkout Responsive */
@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 24px 0 40px;
    }
    
    .checkout-form-section {
        padding: 20px;
    }
    
    .checkout-form-section h2 {
        font-size: 1.1rem;
    }
    
    .address-card {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .checkout-section {
        padding: 16px 0 30px;
    }
    
    .checkout-form-section {
        padding: 16px;
        border-radius: var(--radius);
    }
    
    .checkout-form-section h2 {
        font-size: 1rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .address-card {
        padding: 14px;
    }
    
    .order-summary {
        border-radius: var(--radius);
    }
}

/* =====================================================
   Order Confirmation Page
   ===================================================== */
.order-confirmation-section {
    padding: 60px 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.confirmation-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 50px;
    text-align: center;
}

.confirmation-header {
    margin-bottom: 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

.confirmation-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.confirmation-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.confirmation-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.info-card {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.info-card label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-card strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.confirmation-support {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.confirmation-support a {
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .confirmation-wrapper {
        padding: 30px 20px;
    }
    
    .confirmation-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}

/* =====================================================
   User Dashboard Pages
   ===================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 24px 0 40px;
}

.dashboard-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.user-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dashboard-nav ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-body);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.dashboard-nav a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.dashboard-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dashboard-nav a:hover i {
    color: var(--primary);
}

.dashboard-nav a.active {
    background: var(--primary-gradient);
    color: white;
}

.dashboard-nav a.active i {
    color: white;
}

.dashboard-nav a.logout-link {
    color: var(--danger);
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.dashboard-nav a.logout-link i {
    color: var(--danger);
}

.dashboard-content {
    min-height: 400px;
}

.dashboard-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--bg-light);
    color: var(--primary);
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 3px;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.quick-actions h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    color: var(--text-body);
}

.action-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.action-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.action-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recent Orders Table */
.recent-orders {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.recent-orders h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.orders-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    background: var(--bg-light);
}

.orders-table td {
    font-size: 0.95rem;
}

.order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.order-status.processing {
    background: #dbeafe;
    color: #2563eb;
}

.order-status.shipped {
    background: #e0e7ff;
    color: #4f46e5;
}

.order-status.delivered {
    background: #d1fae5;
    color: #059669;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Dashboard Responsive */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0 30px;
    }
    
    .dashboard-sidebar {
        position: static;
        padding: 16px;
    }
    
    .dashboard-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }
    
    .dashboard-nav ul::-webkit-scrollbar {
        display: none;
    }
    
    .dashboard-nav a {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
    }
    
    .dashboard-nav .badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .user-welcome {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .stats-grid,
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-content {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .dashboard-layout {
        padding: 12px 0 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 14px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .stat-info h3 {
        font-size: 1.25rem;
    }
    
    .stat-info p {
        font-size: 0.8rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .action-card {
        padding: 12px 8px;
    }
    
    .action-card i {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .action-card span {
        font-size: 0.8rem;
    }
    
    .dashboard-nav ul {
        gap: 3px;
    }
    
    .dashboard-nav a {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .recent-orders {
        padding: 14px;
    }
    
    .quick-actions {
        padding: 14px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .dashboard-title {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }
}

/* =====================================================
   Contact Page
   ===================================================== */
.contact-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    padding: 25px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-info-card .icon {
    width: 55px;
    height: 55px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-info-card a {
    color: var(--primary);
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 35px;
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   About, FAQ, Legal Pages
   ===================================================== */
.page-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 0;
}

.content-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 40px;
}

.content-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--text-dark);
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-card ul,
.content-card ol {
    color: var(--text-body);
    line-height: 2;
    padding-left: 25px;
    margin-bottom: 15px;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question {
    background: var(--primary);
    color: white;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 20px;
    color: var(--text-body);
    line-height: 1.7;
    border-top: 1px solid var(--border);
}

/* =====================================================
   Cart Table Alternative Styles
   ===================================================== */
.cart-table-wrapper {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.cart-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-light);
    border-bottom: 2px solid var(--border);
}

.cart-table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.cart-table .cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-table .product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-table .product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-table .product-details .product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-table .product-details .product-name a {
    color: var(--text-dark);
}

.cart-table .product-details .product-name a:hover {
    color: var(--primary);
}

.cart-table .product-details .product-sku {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.cart-table .low-stock-warn {
    font-size: 0.8rem;
    color: var(--warning);
    font-weight: 500;
}

.cart-table .current-price {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 2px;
}

.cart-table .item-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-table .remove-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #fef2f2;
    color: var(--danger);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-table .remove-btn:hover {
    background: var(--danger);
    color: white;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Cart Wrapper */
.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Summary Card */
.summary-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text-body);
}

.summary-row .free-shipping {
    color: var(--success);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    margin-top: 15px;
    border-top: 2px solid var(--border);
    font-size: 1.15rem;
    font-weight: 700;
}

.summary-total span:last-child {
    color: var(--primary);
    font-size: 1.35rem;
}

/* Free Shipping Progress */
.free-shipping-progress {
    padding: 15px;
    background: #f0fdf4;
    border-radius: var(--radius);
    margin: 15px 0;
}

.free-shipping-progress p {
    font-size: 0.9rem;
    color: var(--success);
    margin-bottom: 10px;
}

.progress-bar {
    height: 6px;
    background: #d1fae5;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background: var(--success);
    border-radius: var(--radius-full);
}

/* Coupon Section */
.coupon-section {
    padding: 18px 0;
    border-top: 1px solid var(--border);
    margin-top: 15px;
}

.coupon-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.payment-info {
    text-align: center;
    padding: 15px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-info i {
    color: var(--success);
    margin-right: 5px;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.secure-checkout i {
    color: var(--success);
}

/* Cart Features */
.cart-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.cart-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.cart-feature i {
    color: var(--primary);
    font-size: 1.25rem;
}

.cart-feature span {
    font-size: 0.9rem;
    color: var(--text-body);
}

@media (max-width: 992px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody td {
        display: block;
        padding: 10px 20px;
    }
    
    .cart-table tbody td:first-child {
        padding-top: 20px;
    }
    
    .cart-table tbody td:last-child {
        padding-bottom: 20px;
    }
    
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        display: block;
        margin-bottom: 5px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .cart-table tbody td {
        padding: 8px 14px;
    }
    
    .cart-table .cart-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-table .product-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .summary-card {
        padding: 18px;
        border-radius: var(--radius);
    }
}

/* =====================================================
   Page Banner (Alternative Hero)
   ===================================================== */
.page-banner {
    background: var(--primary-gradient);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner-content {
    text-align: center;
    color: white;
}

.page-banner .page-title {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.page-banner .breadcrumb {
    justify-content: center;
    padding: 0;
}

.page-banner .breadcrumb a,
.page-banner .breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner .breadcrumb a:hover {
    color: white;
}

.page-banner .breadcrumb .current {
    color: white;
}

/* =====================================================
   Form Controls (Global)
   ===================================================== */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-label .required {
    color: var(--danger);
}

.form-label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Alert Messages
   ===================================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 1.25rem;
    margin-top: 2px;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-success i {
    color: #22c55e;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-danger i {
    color: #ef4444;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-warning i {
    color: #f59e0b;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-info i {
    color: #3b82f6;
}

/* =====================================================
   Button Variations
   ===================================================== */
.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* =====================================================
   Text Utilities
   ===================================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--primary);
}

/* =====================================================
   Section Styles
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   Miscellaneous
   ===================================================== */
.divider {
    height: 1px;
    background: var(--border);
    margin: 25px 0;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-gray) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal Improvements */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.open,
.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* =====================================================
   Dashboard Page Header
   ===================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header .item-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 6px 15px;
    border-radius: var(--radius-full);
}

/* =====================================================
   Breadcrumb Navigation (Dashboard Style)
   ===================================================== */
.breadcrumb-nav {
    background: var(--bg-light);
    padding: 15px 0;
    margin-bottom: 0;
}

.breadcrumb-nav .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav .breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-nav .breadcrumb li::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb-nav .breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb-nav .breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumb-nav .breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-nav .breadcrumb .active {
    color: var(--text-dark);
    font-weight: 500;
}

/* =====================================================
   User Welcome Card in Sidebar
   ===================================================== */
.user-welcome .user-avatar i {
    font-size: 2rem;
}

.user-info .greeting {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.user-info .user-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Dashboard Nav Active with li */
.dashboard-nav li.active a {
    background: var(--primary-gradient);
    color: white;
}

.dashboard-nav li.active a i {
    color: white;
}

.dashboard-nav .badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.dashboard-nav li.active .badge {
    background: rgba(255, 255, 255, 0.25);
}

/* =====================================================
   Stat Card Icons by Type
   ===================================================== */
.stat-icon.orders {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.stat-icon.wishlist {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.stat-icon.addresses {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-icon.reviews {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* =====================================================
   Quick Actions Section
   ===================================================== */
.quick-actions h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* =====================================================
   Recent Orders Section
   ===================================================== */
.recent-orders .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.recent-orders .section-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

.orders-table-wrapper {
    overflow-x: auto;
}

/* =====================================================
   Empty State
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* =====================================================
   Account Info Cards
   ===================================================== */
.account-info {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.account-info h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    position: relative;
}

.info-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 i {
    color: var(--primary);
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 5px;
    line-height: 1.6;
}

.info-content p strong {
    color: var(--text-dark);
}

.edit-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.edit-link:hover {
    text-decoration: underline;
}

/* =====================================================
   Wishlist Page Styles
   ===================================================== */
.wishlist-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.wishlist-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.wishlist-item .item-image {
    position: relative;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item .item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wishlist-item .item-image .unavailable-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.wishlist-item .item-image .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}

.wishlist-item .item-image .remove-btn:hover {
    background: var(--danger);
    color: white;
}

.wishlist-item .item-details {
    padding: 20px;
}

.wishlist-item .item-brand {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wishlist-item .item-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.wishlist-item .item-name a {
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item .item-name a:hover {
    color: var(--primary);
}

.wishlist-item .item-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.wishlist-item .item-price .current-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.wishlist-item .item-price .original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.wishlist-item .item-price .discount-badge {
    background: #fef2f2;
    color: var(--danger);
    padding: 3px 8px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.wishlist-item .item-stock {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.wishlist-item .item-stock.in-stock {
    color: var(--success);
}

.wishlist-item .item-stock.out-of-stock {
    color: var(--danger);
}

.wishlist-item .item-stock i {
    margin-right: 5px;
}

.wishlist-item .item-actions {
    margin-bottom: 12px;
}

.wishlist-item .item-actions .btn {
    width: 100%;
}

.wishlist-item .added-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =====================================================
   Orders Page Styles
   ===================================================== */
.order-filters {
    display: flex;
    gap: 15px;
}

.order-filters select {
    min-width: 180px;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    font-size: 0.95rem;
    cursor: pointer;
}

.order-filters select:focus {
    border-color: var(--primary);
    outline: none;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.order-card .order-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-card .order-number {
    font-weight: 600;
    color: var(--text-dark);
}

.order-card .order-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-card .order-body {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.order-card .order-products {
    flex: 1;
}

.order-card .products-text {
    display: block;
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.order-card .items-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-card .order-summary {
    display: flex;
    gap: 30px;
    text-align: right;
}

.order-card .order-total .label,
.order-card .order-payment .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.order-card .order-total .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.order-card .order-payment .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.order-card .order-footer {
    padding: 15px 25px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .order-actions {
    display: flex;
    gap: 10px;
}

.order-card .delivery-estimate {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-card .delivery-estimate i {
    margin-right: 5px;
    color: var(--primary);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-processing {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge.status-shipped {
    background: #e0e7ff;
    color: #4f46e5;
}

.status-badge.status-delivered {
    background: #d1fae5;
    color: #059669;
}

.status-badge.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.large {
    font-size: 0.9rem;
    padding: 8px 18px;
}

/* =====================================================
   Addresses Page Styles
   ===================================================== */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.address-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid transparent;
    transition: var(--transition);
}

.address-card.default {
    border-color: var(--primary);
}

.address-card .address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.address-card .address-type {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius);
}

.address-card .default-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: var(--radius);
}

.address-card .address-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.address-card .address-text {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

.address-card .address-phone {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.address-card .address-phone i {
    margin-right: 8px;
}

.address-card .address-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.address-card .address-actions button,
.address-card .address-actions a {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.add-address-card {
    border: 2px dashed var(--border);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    transition: var(--transition);
}

.add-address-card:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.03);
}

.add-address-card i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.add-address-card span {
    font-weight: 600;
    color: var(--text-muted);
}

/* =====================================================
   Profile Page Styles
   ===================================================== */
.profile-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.profile-form input,
.profile-form select,
.profile-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.profile-form input[readonly] {
    background: var(--bg-light);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.danger-zone {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: 25px;
}

.danger-zone h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 10px;
}

.danger-zone p {
    font-size: 0.9rem;
    color: #991b1b;
    margin-bottom: 15px;
}

/* =====================================================
   Change Password Page Styles
   ===================================================== */
.password-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 500px;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.password-input-wrapper .toggle-password:hover {
    color: var(--primary);
}

.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.password-requirements h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
}

.password-requirements li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements li i {
    font-size: 0.8rem;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid i {
    color: var(--success);
}

.password-strength-meter {
    margin-top: 10px;
}

.password-strength-meter label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.strength-bar {
    height: 5px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-bar .fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}

.match-text {
    font-size: 0.85rem;
    margin-top: 8px;
}

.match-text.success {
    color: var(--success);
}

.match-text.error {
    color: var(--danger);
}

/* =====================================================
   Order Detail Page Styles
   ===================================================== */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.order-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.order-title span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.order-timeline {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.order-timeline h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.timeline-step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.timeline-step.current .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    animation: pulse 2s infinite;
}

.timeline-step .step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

.timeline-step .step-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
}

.tracking-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-info i {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-right: 15px;
}

.tracking-info span {
    font-weight: 500;
    color: #1e40af;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    margin-bottom: 25px;
}

.order-items-section,
.order-summary-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.order-items-section h3,
.order-summary-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.order-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item .item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item .item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.order-item .item-info {
    flex: 1;
}

.order-item .item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item .item-name a {
    color: var(--text-dark);
}

.order-item .item-name a:hover {
    color: var(--primary);
}

.order-item .item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-item .item-price {
    text-align: right;
}

.order-item .unit-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

.order-item .total-price {
    font-weight: 600;
    color: var(--text-dark);
}

.order-totals .total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.order-totals .total-row.grand-total {
    border-top: 2px solid var(--border);
    padding-top: 15px;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.order-totals .grand-total .value {
    color: var(--primary);
}

.shipping-address-section,
.status-history-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.shipping-address-section h3,
.status-history-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-history-section .history-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.status-history-section .history-item:last-child {
    border-bottom: none;
}

.status-history-section .history-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 120px;
}

.status-history-section .history-status {
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =====================================================
   Notification Toast
   ===================================================== */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-white);
    padding: 16px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-error i {
    color: var(--danger);
}

/* =====================================================
   Dashboard Responsive Updates
   ===================================================== */
@media (max-width: 992px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline::before {
        top: 0;
        bottom: 0;
        left: 25px;
        width: 3px;
        height: auto;
        right: auto;
    }
    
    .timeline-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    
    .timeline-step .step-icon {
        margin: 0;
        flex-shrink: 0;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .order-card .order-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-card .order-summary {
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wishlist-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .wishlist-actions .btn {
        width: 100%;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr !important;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-card .order-header {
        padding: 14px 16px;
    }
    
    .order-card .order-body {
        padding: 16px;
    }
    
    .order-card .order-footer {
        padding: 12px 16px;
    }
    
    .order-detail-header {
        margin-bottom: 20px;
    }
    
    .order-title h1 {
        font-size: 1.25rem;
    }
    
    .order-timeline {
        padding: 18px;
    }
    
    .order-items-section,
    .order-summary-section {
        padding: 18px;
    }
    
    .order-item .item-image {
        width: 65px;
        height: 65px;
    }
    
    .shipping-address-section,
    .status-history-section {
        padding: 18px;
    }
    
    .tracking-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .profile-form-wrapper {
        padding: 20px;
    }
    
    .password-form-wrapper {
        padding: 20px;
    }
    
    .address-card {
        padding: 18px;
    }
    
    .add-address-card {
        min-height: 140px;
    }
    
    .wishlist-item .item-image {
        height: 180px;
    }
    
    .wishlist-item .item-details {
        padding: 16px;
    }
    
    .order-filters {
        flex-direction: column;
    }
    
    .order-filters select {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 576px) {
    .order-card .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }
    
    .order-card .order-body {
        padding: 14px;
    }
    
    .order-card .order-footer {
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }
    
    .order-card .order-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .order-card .order-actions .btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .order-card .order-summary {
        gap: 16px;
    }
    
    .wishlist-item .item-image {
        height: 160px;
    }
    
    .wishlist-item .item-details {
        padding: 14px;
    }
    
    .wishlist-item .item-name {
        font-size: 0.9rem;
    }
    
    .wishlist-item .item-price .current-price {
        font-size: 1rem;
    }
    
    .address-card {
        padding: 14px;
    }
    
    .address-card .address-actions {
        flex-wrap: wrap;
    }
    
    .address-card .address-actions button,
    .address-card .address-actions a {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .profile-form-wrapper {
        padding: 16px;
        border-radius: var(--radius);
    }
    
    .form-section h3 {
        font-size: 0.95rem;
    }
    
    .profile-form input,
    .profile-form select,
    .profile-form textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .order-item {
        gap: 12px;
    }
    
    .order-item .item-image {
        width: 60px;
        height: 60px;
    }
    
    .order-item .item-name {
        font-size: 0.9rem;
    }
    
    .order-timeline {
        padding: 14px;
    }
    
    .timeline-step .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-step .step-label {
        font-size: 0.8rem;
    }
    
    .notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

/* =====================================================
   COMPREHENSIVE USER PAGES MOBILE RESPONSIVE
   ===================================================== */

/* --- 992px: Tablet & Below --- */
@media (max-width: 992px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* --- 768px: Mobile Landscape & Small Tablets --- */
@media (max-width: 768px) {
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: 10px 0;
    }
    
    .breadcrumb-nav .breadcrumb li {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    /* Dashboard layout spacing */
    .dashboard-layout {
        gap: 14px;
        padding: 14px 0 28px;
    }
    
    .dashboard-sidebar {
        padding: 14px;
    }
    
    .dashboard-content {
        min-height: auto;
    }
    
    .dashboard-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    /* User sidebar compact */
    .user-welcome {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .user-info .user-name {
        font-size: 0.9rem;
    }
    
    .user-info .greeting {
        font-size: 0.75rem;
    }
    
    /* Stats grid 2 cols */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
    
    .stat-value {
        font-size: 1.35rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Quick actions 2 cols */
    .actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .action-card {
        padding: 14px 10px;
    }
    
    .action-card i {
        font-size: 1.3rem;
    }
    
    .action-card span {
        font-size: 0.82rem;
    }
    
    /* Quick actions & recent orders sections */
    .quick-actions,
    .recent-orders,
    .account-info {
        padding: 16px;
        border-radius: var(--radius);
    }
    
    .quick-actions h2,
    .recent-orders .section-header h2,
    .account-info h2 {
        font-size: 0.95rem;
    }
    
    /* Orders table to stacked cards on mobile */
    .orders-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .orders-table thead {
        display: none;
    }
    
    .orders-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 14px;
        border-bottom: 2px solid var(--border);
        background: var(--bg-white);
    }
    
    .orders-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .orders-table tbody td {
        padding: 4px 0;
        border-bottom: none;
        font-size: 0.85rem;
    }
    
    .orders-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-bottom: 3px;
    }
    
    .orders-table tbody td.order-id {
        font-weight: 700;
        color: var(--primary);
    }
    
    .orders-table tbody td.order-action {
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 8px;
    }
    
    /* Info cards single column */
    .info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .info-card h3 {
        font-size: 0.85rem;
    }
    
    .info-content p {
        font-size: 0.85rem;
    }
    
    .edit-link {
        top: 16px;
        right: 16px;
        font-size: 0.8rem;
    }
    
    /* Page header mobile */
    .page-header {
        padding-bottom: 14px;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .page-header .dashboard-title {
        font-size: 1.35rem;
    }
    
    .page-header .btn-primary {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }
    
    .page-header .item-count {
        font-size: 0.85rem;
    }
    
    /* Alert messages */
    .alert {
        padding: 12px 16px;
        font-size: 0.88rem;
        border-radius: var(--radius);
    }
    
    .alert ul {
        padding-left: 16px;
    }
    
    /* Pagination */
    .pagination-wrapper {
        margin-top: 24px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Empty state */
    .empty-state {
        padding: 30px 16px;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.05rem;
    }
    
    .empty-state p {
        font-size: 0.88rem;
    }
    
    /* Order card adjustments */
    .order-card .order-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .order-card .order-number {
        font-size: 0.95rem;
    }
    
    .order-card .order-date {
        font-size: 0.8rem;
    }
    
    .order-card .products-text {
        font-size: 0.88rem;
    }
    
    .order-card .items-count {
        font-size: 0.8rem;
    }
    
    .order-card .order-total .value {
        font-size: 1rem;
    }
    
    .order-card .delivery-estimate {
        font-size: 0.8rem;
    }
    
    .order-card .order-actions .btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    /* Wishlist responsive */
    .wishlist-item .item-brand {
        font-size: 0.75rem;
    }
    
    .wishlist-item .item-name {
        font-size: 0.95rem;
        margin: 6px 0 10px;
    }
    
    .wishlist-item .added-date {
        font-size: 0.75rem;
    }
    
    /* Address card responsive */
    .address-card .address-type {
        font-size: 0.75rem;
    }
    
    .address-card .default-badge {
        font-size: 0.7rem;
    }
    
    .address-card .address-content .name {
        font-size: 0.95rem;
    }
    
    .address-card .address-content .street,
    .address-card .address-content .city-state,
    .address-card .address-content .country,
    .address-card .address-content .phone {
        font-size: 0.85rem;
    }
    
    .address-card .address-actions {
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .address-card .address-actions .btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    
    .add-address-card {
        min-height: 120px;
        border-radius: var(--radius);
    }
    
    .add-address-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .add-address-card span {
        font-size: 0.9rem;
    }
    
    /* Profile form */
    .profile-form-wrapper {
        padding: 20px;
    }
    
    .form-section {
        margin-bottom: 24px;
    }
    
    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .profile-form .form-group {
        margin-bottom: 16px;
    }
    
    .profile-form label {
        font-size: 0.88rem;
        margin-bottom: 6px;
    }
    
    .profile-form input,
    .profile-form select,
    .profile-form textarea {
        padding: 11px 14px;
        font-size: 0.9rem;
    }
    
    /* Info row in profile */
    .info-row {
        padding: 10px 0;
        font-size: 0.9rem;
    }
    
    .info-row .label {
        font-weight: 600;
        color: var(--text-muted);
    }
    
    /* Danger zone */
    .danger-zone {
        padding: 18px;
    }
    
    .danger-zone h3 {
        font-size: 0.95rem;
    }
    
    .danger-zone p {
        font-size: 0.85rem;
    }
    
    /* Password form */
    .password-form-wrapper {
        padding: 24px;
        max-width: 100%;
    }
    
    .password-form .form-group {
        margin-bottom: 20px;
    }
    
    .password-form label {
        font-size: 0.9rem;
    }
    
    .password-form .password-input-wrapper input {
        padding: 12px 45px 12px 14px;
        font-size: 0.9rem;
    }
    
    .password-requirements {
        padding: 12px;
    }
    
    .password-requirements li {
        font-size: 0.82rem;
        gap: 8px;
    }
    
    .password-form .form-actions {
        flex-direction: column;
    }
    
    .password-form .form-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .security-tips {
        padding: 18px;
        margin-top: 24px;
    }
    
    .security-tips h4 {
        font-size: 0.95rem;
    }
    
    .security-tips li {
        font-size: 0.85rem;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: var(--radius-lg);
        margin: 10px;
    }
    
    .modal-header {
        padding: 18px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.15rem;
    }
    
    .modal-close {
        width: 34px;
        height: 34px;
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .modal-body .form-group {
        margin-bottom: 16px;
    }
    
    .modal-body .form-group label {
        font-size: 0.88rem;
        margin-bottom: 6px;
    }
    
    .modal-body .form-group input,
    .modal-body .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .modal-body .form-group.checkbox-group {
        margin-top: 0;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* --- 576px: Small Phones --- */
@media (max-width: 576px) {
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: 8px 0;
    }
    
    .breadcrumb-nav .breadcrumb li {
        font-size: 0.75rem;
        gap: 5px;
    }
    
    .breadcrumb-nav .breadcrumb li::after {
        font-size: 0.65rem;
    }
    
    /* Dashboard layout tighter */
    .dashboard-layout {
        gap: 12px;
        padding: 10px 0 20px;
    }
    
    .dashboard-sidebar {
        padding: 12px;
    }
    
    .dashboard-title {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }
    
    .dashboard-nav a {
        padding: 6px 9px;
        font-size: 11px;
        gap: 4px;
    }
    
    .dashboard-nav a i {
        font-size: 11px;
    }
    
    .dashboard-nav .badge {
        font-size: 9px;
        padding: 1px 5px;
    }
    
    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .user-info .user-name {
        font-size: 0.85rem;
    }
    
    /* Stats single col option for very narrow */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Actions grid */
    .actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .action-card {
        padding: 10px 6px;
    }
    
    .action-card i {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .action-card span {
        font-size: 0.75rem;
    }
    
    /* Recent orders & account sections */
    .quick-actions,
    .recent-orders,
    .account-info {
        padding: 12px;
    }
    
    .quick-actions h2,
    .recent-orders .section-header h2,
    .account-info h2 {
        font-size: 0.9rem;
    }
    
    .view-all {
        font-size: 0.8rem;
    }
    
    /* Orders table stacked */
    .orders-table tbody tr {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 12px;
    }
    
    .orders-table tbody td {
        font-size: 0.8rem;
    }
    
    .orders-table tbody td::before {
        font-size: 0.7rem;
    }
    
    /* Info cards */
    .info-card {
        padding: 14px;
    }
    
    .info-card h3 {
        font-size: 0.82rem;
        gap: 6px;
    }
    
    .info-content p {
        font-size: 0.82rem;
    }
    
    /* Page header */
    .page-header {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .page-header .dashboard-title {
        font-size: 1.2rem;
    }
    
    .page-header .item-count {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    /* Empty state compact */
    .empty-state {
        padding: 24px 14px;
    }
    
    .empty-state i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .empty-state h3 {
        font-size: 0.95rem;
    }
    
    .empty-state p {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }
    
    .empty-state .btn {
        width: 100%;
        padding: 10px 18px;
        font-size: 0.88rem;
    }
    
    /* Order cards compact */
    .orders-list {
        gap: 14px;
    }
    
    .order-card .order-header {
        padding: 12px 14px;
    }
    
    .order-card .order-number {
        font-size: 0.88rem;
    }
    
    .order-card .order-date {
        font-size: 0.75rem;
    }
    
    .status-badge {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
    
    .order-card .order-body {
        padding: 12px 14px;
        gap: 14px;
    }
    
    .order-card .products-text {
        font-size: 0.82rem;
    }
    
    .order-card .items-count {
        font-size: 0.75rem;
    }
    
    .order-card .order-total .label,
    .order-card .order-payment .label {
        font-size: 0.72rem;
    }
    
    .order-card .order-total .value {
        font-size: 0.95rem;
    }
    
    .order-card .order-footer {
        padding: 10px 14px;
    }
    
    .order-card .order-actions .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .order-card .delivery-estimate {
        font-size: 0.75rem;
    }
    
    /* Pagination compact */
    .pagination {
        gap: 3px;
    }
    
    .page-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* Wishlist compact */
    .wishlist-actions {
        gap: 10px;
        margin-bottom: 18px;
    }
    
    .wishlist-actions .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .wishlist-item .item-image {
        height: 150px;
    }
    
    .wishlist-item .item-details {
        padding: 12px;
    }
    
    .wishlist-item .item-brand {
        font-size: 0.7rem;
    }
    
    .wishlist-item .item-name {
        font-size: 0.88rem;
        margin: 5px 0 8px;
    }
    
    .wishlist-item .item-price .current-price {
        font-size: 0.95rem;
    }
    
    .wishlist-item .item-price .original-price {
        font-size: 0.8rem;
    }
    
    .wishlist-item .item-price .discount-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .wishlist-item .item-stock {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .wishlist-item .item-actions .btn {
        padding: 9px 14px;
        font-size: 0.82rem;
    }
    
    .wishlist-item .added-date {
        font-size: 0.72rem;
    }
    
    .wishlist-item .item-image .remove-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }
    
    /* Address card compact */
    .addresses-grid {
        gap: 14px;
        margin-top: 16px;
    }
    
    .address-card {
        padding: 16px;
    }
    
    .address-card .address-header {
        margin-bottom: 10px;
    }
    
    .address-card .address-type {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    
    .address-card .default-badge {
        font-size: 0.68rem;
        padding: 3px 8px;
    }
    
    .address-card .address-content .name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .address-card .address-content .street,
    .address-card .address-content .city-state,
    .address-card .address-content .country {
        font-size: 0.82rem;
        line-height: 1.6;
    }
    
    .address-card .address-content .phone {
        font-size: 0.82rem;
        margin-top: 6px;
    }
    
    .address-card .address-actions {
        gap: 6px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .address-card .address-actions .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .add-address-card {
        min-height: 100px;
    }
    
    .add-address-card i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .add-address-card span {
        font-size: 0.82rem;
    }
    
    /* Profile form compact */
    .profile-form-wrapper {
        padding: 16px;
        border-radius: var(--radius);
    }
    
    .form-section {
        margin-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 0.92rem;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    
    .profile-form .form-group {
        margin-bottom: 14px;
    }
    
    .profile-form label {
        font-size: 0.82rem;
        margin-bottom: 5px;
    }
    
    .profile-form input,
    .profile-form select,
    .profile-form textarea {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
    
    .info-row {
        padding: 8px 0;
        font-size: 0.85rem;
    }
    
    .form-actions {
        gap: 10px;
        padding-top: 16px;
    }
    
    .form-actions .btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
    
    /* Danger zone */
    .danger-zone {
        padding: 14px;
        border-radius: var(--radius);
    }
    
    .danger-zone h3 {
        font-size: 0.9rem;
    }
    
    .danger-zone p {
        font-size: 0.82rem;
        margin-bottom: 12px;
    }
    
    .danger-zone .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    /* Password form compact */
    .password-form-wrapper {
        padding: 18px;
        max-width: 100%;
        border-radius: var(--radius);
    }
    
    .password-form .form-group {
        margin-bottom: 18px;
    }
    
    .password-form label {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .password-form .password-input-wrapper input {
        padding: 10px 42px 10px 12px;
        font-size: 0.88rem;
    }
    
    .password-form .toggle-password {
        right: 10px;
        padding: 6px;
    }
    
    .password-strength {
        margin-top: 10px;
    }
    
    .strength-bar {
        height: 5px;
    }
    
    .strength-text {
        font-size: 0.8rem;
    }
    
    .password-requirements {
        padding: 10px;
        margin-top: 10px;
    }
    
    .password-requirements li {
        font-size: 0.78rem;
        margin-bottom: 6px;
        gap: 7px;
    }
    
    .password-requirements li i {
        font-size: 0.75rem;
    }
    
    .match-text {
        font-size: 0.82rem;
    }
    
    .password-form .form-actions {
        gap: 10px;
        padding-top: 18px;
    }
    
    .password-form .form-actions .btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
    
    .security-tips {
        padding: 14px;
        margin-top: 20px;
    }
    
    .security-tips h4 {
        font-size: 0.88rem;
        margin-bottom: 10px;
    }
    
    .security-tips li {
        font-size: 0.82rem;
        margin-bottom: 8px;
        padding-left: 20px;
    }
    
    /* Alert compact */
    .alert {
        padding: 10px 14px;
        font-size: 0.82rem;
        margin-bottom: 16px;
    }
    
    .alert ul {
        padding-left: 14px;
    }
    
    .alert ul li {
        margin-bottom: 3px;
    }
    
    /* Modal compact */
    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: var(--radius) var(--radius) 0 0;
        margin: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-header h2 {
        font-size: 1.05rem;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 16px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .modal-body .form-group {
        margin-bottom: 14px;
    }
    
    .modal-body .form-group label {
        font-size: 0.82rem;
        margin-bottom: 5px;
    }
    
    .modal-body .form-group input,
    .modal-body .form-group select {
        padding: 9px 11px;
        font-size: 0.85rem;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .modal-footer .btn {
        padding: 10px 16px;
        font-size: 0.88rem;
    }
    
    /* Checkbox group in modal */
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    /* Inline forms in address card */
    .inline-form {
        display: inline;
    }
    
    /* Confirmation info grid on small screen */
    .confirmation-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirmation-actions .btn {
        width: 100%;
    }
}

/* --- 400px: Extra Small Phones --- */
@media (max-width: 400px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .dashboard-layout {
        gap: 10px;
        padding: 8px 0 16px;
    }
    
    .dashboard-sidebar {
        padding: 10px;
    }
    
    .dashboard-title {
        font-size: 1rem;
    }
    
    .dashboard-nav a {
        padding: 5px 7px;
        font-size: 10px;
    }
    
    .stats-grid {
        gap: 6px;
    }
    
    .stat-card {
        padding: 10px;
        gap: 8px;
    }
    
    .stat-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .actions-grid {
        gap: 5px;
    }
    
    .action-card {
        padding: 8px 5px;
    }
    
    .action-card i {
        font-size: 1rem;
    }
    
    .action-card span {
        font-size: 0.7rem;
    }
    
    .page-header .dashboard-title {
        font-size: 1.05rem;
    }
    
    .order-card .order-header {
        padding: 10px 12px;
    }
    
    .order-card .order-body {
        padding: 10px 12px;
    }
    
    .order-card .order-footer {
        padding: 10px 12px;
    }
    
    .address-card {
        padding: 12px;
    }
    
    .profile-form-wrapper,
    .password-form-wrapper {
        padding: 12px;
    }
    
    .wishlist-item .item-image {
        height: 140px;
    }
    
    .wishlist-item .item-details {
        padding: 10px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-footer {
        padding: 10px 12px;
    }
}

/* =====================================================
   ENHANCED UI - Change Password Page
   ===================================================== */
.password-form-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.password-form .form-group {
    margin-bottom: 25px;
}

.password-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.password-form .password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-form .password-input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.password-form .password-input-wrapper input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.password-form .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.password-form .toggle-password:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 12px;
}

.strength-bar {
    height: 6px;
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: all 0.4s ease;
    width: 0;
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

/* Password Requirements List */
.password-requirements {
    list-style: none;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--radius);
    margin-top: 12px;
    border: 1px solid var(--border-light);
}

.password-requirements li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

.password-requirements li i {
    font-size: 0.9rem;
    color: var(--text-light);
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid i {
    color: var(--success);
}

/* Match Text */
.match-text {
    font-size: 0.88rem;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

.match-text.success {
    color: var(--success);
}

.match-text.error {
    color: var(--danger);
}

/* Form Actions */
.password-form .form-actions {
    display: flex;
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid var(--border-light);
    margin-top: 10px;
}

.password-form .form-actions .btn {
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.password-form .form-actions .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.password-form .form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.password-form .form-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-body);
}

.password-form .form-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Security Tips Section */
.security-tips {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: var(--radius-lg);
    border: 1px solid #a7f3d0;
}

.security-tips h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-tips h4 i {
    color: #10b981;
    font-size: 1.2rem;
}

.security-tips ul {
    list-style: none;
    padding: 0;
}

.security-tips li {
    font-size: 0.9rem;
    color: #047857;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.security-tips li:last-child {
    margin-bottom: 0;
}

.security-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* =====================================================
   ENHANCED UI - Addresses Page & Modal
   ===================================================== */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.page-header .dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.page-header .btn-primary {
    background: var(--primary-gradient);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.page-header .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Addresses Grid */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* Enhanced Address Card */
.address-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.address-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.address-card.default {
    border-color: var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.address-card.default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Default Badge */
.default-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--primary-gradient);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Address Type Badge */
.address-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.address-type i {
    font-size: 0.9rem;
}

/* Address Content */
.address-content {
    margin-top: 15px;
}

.address-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 6px;
}

.address-content .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.address-content .street {
    color: var(--text-body);
}

.address-content .city-state {
    color: var(--text-body);
}

.address-content .country {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.address-content .phone {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.address-content .phone i {
    color: var(--primary);
}

/* Address Actions */
.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.address-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.address-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-body);
}

.address-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.address-actions .btn-danger {
    background: transparent;
    border: 2px solid #fecaca;
    color: var(--danger);
}

.address-actions .btn-danger:hover {
    border-color: var(--danger);
    background: #fef2f2;
}

.address-actions .btn-success {
    background: var(--success);
    border: none;
    color: white;
}

.address-actions .btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.empty-state .btn-primary {
    background: var(--primary-gradient);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* =====================================================
   ENHANCED MODAL
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-light);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 2px solid var(--border-light);
    background: var(--bg-light);
}

/* Modal Form Styles */
.modal-body .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 32px;
}

.modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.92rem;
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.modal-body input:focus,
.modal-body select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-body input::placeholder {
    color: var(--text-light);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-body);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Modal Buttons */
.modal-footer .btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.modal-footer .btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-body);
}

.modal-footer .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.modal-footer .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .password-form-wrapper {
        padding: 25px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =====================================================
   ENHANCED UI - Checkout Page
   ===================================================== */

/* Checkout Section */
.checkout-section {
    padding: 50px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.checkout-section .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-section .page-title i {
    color: var(--primary);
    font-size: 1.8rem;
}

/* Checkout Wrapper */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    align-items: start;
}

/* Checkout Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-section-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.08);
    transition: var(--transition);
}

.checkout-section-box:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.checkout-section-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-section-box h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Saved Addresses Grid */
.saved-addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

/* Enhanced Address Card - Checkout */
.checkout-section-box .address-card {
    position: relative;
    padding: 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.checkout-section-box .address-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.checkout-section-box .address-card input[type="radio"] {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkout-section-box .address-card input[type="radio"]:checked ~ .address-content {
    color: var(--text-dark);
}

.checkout-section-box .address-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

.checkout-section-box .address-card.default {
    border-color: var(--primary-light);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 35px;
}

.address-header strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.checkout-section-box .address-type {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.12);
    padding: 4px 10px;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
}

.checkout-section-box .default-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: var(--success);
    padding: 4px 10px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-content .address-text {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 10px;
}

.address-content .address-phone {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.address-content .address-phone i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* New Address Card Button */
.new-address-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px dashed var(--border);
    background: transparent;
    gap: 12px;
}

.new-address-card:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.new-address-card i {
    font-size: 2rem;
    color: var(--primary);
}

.new-address-card span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* New Address Form */
.new-address-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.new-address-form.hidden {
    display: none;
}

.new-address-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.new-address-form .form-group {
    margin-bottom: 20px;
}

.new-address-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 0.93rem;
}

.new-address-form label .required {
    color: var(--danger);
    margin-left: 2px;
}

.new-address-form input,
.new-address-form select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.new-address-form input:focus,
.new-address-form select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.new-address-form input::placeholder {
    color: var(--text-light);
}

.new-address-form input.error {
    border-color: var(--danger);
}

/* Address Type Radio Buttons */
.address-type-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-btn {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.radio-btn input[type="radio"]:checked + span {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    color: var(--primary);
}

.radio-btn:hover span {
    border-color: var(--primary-light);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    position: relative;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: white;
}

.payment-method:hover .payment-content {
    border-color: var(--primary-light);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.12);
}

.payment-method input[type="radio"]:checked ~ .payment-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.payment-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon i {
    font-size: 1.6rem;
    color: white;
}

.payment-info {
    flex: 1;
}

.payment-info strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.payment-info span {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.check-icon {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.payment-method input[type="radio"]:checked ~ .payment-content .check-icon {
    opacity: 1;
}

/* COD Note */
.cod-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius);
    border: 1px solid #bfdbfe;
}

.cod-note i {
    color: #3b82f6;
    font-size: 1.1rem;
    margin-top: 2px;
}

.cod-note p {
    font-size: 0.9rem;
    color: #1e40af;
    line-height: 1.6;
    margin: 0;
}

/* Order Notes Textarea */
.checkout-section-box textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.checkout-section-box textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.checkout-section-box textarea::placeholder {
    color: var(--text-light);
}

/* =====================================================
   Checkout Summary (Order Summary Sidebar)
   ===================================================== */
.checkout-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.summary-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 25px 28px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Summary Items */
.summary-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px 28px;
}

.summary-items::-webkit-scrollbar {
    width: 6px;
}

.summary-items::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.summary-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-item:last-child {
    border-bottom: none;
}

.item-image {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-gradient);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.4);
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Summary Divider */
.summary-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 15px 0;
}

/* Summary Totals */
.summary-totals {
    padding: 25px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
}

.summary-row span:first-child {
    color: var(--text-body);
    font-weight: 500;
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-row .free {
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 18px;
    margin-top: 10px;
}

.summary-row.total span {
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: var(--primary);
}

/* Place Order Button */
.summary-card .btn-primary {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius);
    color: white;
    margin: 20px 28px 0 28px;
    width: calc(100% - 56px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.summary-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

/* Terms Note */
.terms-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 15px 28px 20px;
    line-height: 1.6;
}

.terms-note a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.terms-note a:hover {
    color: var(--primary-dark);
}

/* Secure Checkout */
.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px 25px;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

.secure-checkout i {
    font-size: 1rem;
}

/* Back to Cart Link */
.back-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-body);
    font-weight: 600;
    transition: var(--transition);
}

.back-to-cart:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    transform: translateX(-5px);
}

/* Alert Styling in Checkout */
.checkout-section .alert {
    margin-bottom: 30px;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow);
}

.checkout-section .alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.checkout-section .alert-danger p {
    margin: 4px 0;
    font-size: 0.92rem;
}

/* Responsive Checkout */
@media (max-width: 1024px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
        order: -1;
    }
    
    .saved-addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 30px 0 50px;
    }
    
    .checkout-section .page-title {
        font-size: 1.6rem;
    }
    
    .checkout-section-box {
        padding: 22px;
    }
    
    .checkout-section-box h3 {
        font-size: 1.15rem;
    }
    
    .new-address-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .address-type-options {
        flex-direction: column;
    }
    
    .summary-card .btn-primary {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .checkout-section {
        padding: 20px 0 35px;
    }
    
    .checkout-section .page-title {
        font-size: 1.35rem;
    }
    
    .checkout-section-box {
        padding: 16px;
        border-radius: var(--radius);
    }
    
    .checkout-section-box h3 {
        font-size: 1rem;
    }
    
    .payment-content {
        padding: 14px;
        gap: 12px;
    }
    
    .payment-icon {
        width: 42px;
        height: 42px;
    }
    
    .payment-icon i {
        font-size: 1.2rem;
    }
    
    .payment-info strong {
        font-size: 0.95rem;
    }
    
    .payment-info span {
        font-size: 0.8rem;
    }
    
    .checkout-section-box .address-card {
        padding: 14px;
    }
    
    .summary-card {
        padding: 18px;
    }
    
    .summary-card .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .confirmation-wrapper {
        padding: 30px 20px;
    }
}

/* Order Confirmation Section */
.order-confirmation-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
}

.confirmation-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 60px 50px;
    text-align: center;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

/* Confirmation Header */
.confirmation-header {
    margin-bottom: 50px;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    50% { 
        transform: scale(1.15);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
    }
}

.success-icon i {
    font-size: 3.5rem;
    color: white;
    animation: checkDraw 0.5s ease 0.3s both;
}

@keyframes checkDraw {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.confirmation-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Confirmation Info Cards */
.confirmation-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    text-align: left;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
    transform: translateY(-3px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.4rem;
    color: white;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

/* Confirmation Details */
.confirmation-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 50px;
    text-align: left;
}

.details-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 2px solid var(--border-light);
}

.details-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.details-section h3 i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Order Items */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.order-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.order-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item .item-info {
    flex: 1;
    min-width: 0;
}

.order-item .item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.order-item .item-sku {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.order-item .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-body);
}

.order-item .item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

/* Order Totals */
.order-totals {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
}

.total-row span:first-child {
    color: var(--text-body);
    font-weight: 500;
}

.total-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.total-row.final {
    border-top: 2px solid var(--border);
    padding-top: 18px;
    margin-top: 10px;
}

.total-row.final span {
    font-size: 1.4rem;
    font-weight: 700;
}

.total-row.final span:last-child {
    color: var(--primary);
}

/* Shipping Address */
.shipping-address {
    padding: 25px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    line-height: 1.8;
}

.shipping-address strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 12px;
}

.shipping-address p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 6px;
}

.shipping-address p:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}

.shipping-address i {
    color: var(--primary);
    margin-right: 8px;
}

/* Next Steps Section */
.confirmation-next-steps {
    margin-bottom: 50px;
    text-align: left;
}

.confirmation-next-steps h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
    transform: translateY(-5px);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.step-icon i {
    font-size: 1.8rem;
    color: white;
}

.step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 40px;
}

.confirmation-actions .btn {
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.confirmation-actions .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.confirmation-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.confirmation-actions .btn-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-body);
}

.confirmation-actions .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Confirmation Support */
.confirmation-support {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-light);
    text-align: center;
}

.confirmation-support p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.confirmation-support a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
}

.confirmation-support a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Order Confirmation */
@media (max-width: 992px) {
    .confirmation-details {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .order-confirmation-section {
        padding: 50px 0;
    }
    
    .confirmation-wrapper {
        padding: 40px 25px;
    }
    
    .confirmation-header h1 {
        font-size: 1.75rem;
    }
    
    .success-icon {
        width: 100px;
        height: 100px;
    }
    
    .success-icon i {
        font-size: 3rem;
    }
    
    .confirmation-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .info-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
    }
    
    .info-icon i {
        font-size: 1.2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .details-section {
        padding: 22px;
    }
}

@media (max-width: 576px) {
    .confirmation-info {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ENHANCED UI - Order Detail Page
   ===================================================== */

/* Order Detail Header */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.1);
    flex-wrap: wrap;
    gap: 18px;
}

.order-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.order-title .order-date {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: block;
}

.status-badge.large {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Order Timeline */
.order-timeline {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.order-timeline h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 5%;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0 0%, #e2e8f0 100%);
    border-radius: var(--radius-full);
    z-index: 0;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    transition: var(--transition);
}

.timeline-step .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 4px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.4rem;
    color: #cbd5e1;
    transition: all 0.4s ease;
    position: relative;
}

.timeline-step.completed .step-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.timeline-step.completed .step-icon i {
    animation: checkPop 0.5s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.timeline-step.current .step-icon {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    animation: currentPulse 2s infinite;
}

@keyframes currentPulse {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4); 
        transform: scale(1.05);
    }
    50% { 
        box-shadow: 0 8px 35px rgba(79, 70, 229, 0.6); 
        transform: scale(1.1);
    }
}

.timeline-step.cancelled .step-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.timeline-step .step-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-step.completed .step-label {
    color: #10b981;
}

.timeline-step.current .step-label {
    color: var(--primary);
}

.timeline-step.cancelled .step-label {
    color: #ef4444;
}

/* Tracking Info */
.tracking-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 25px 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tracking-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 15px;
}

.tracking-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tracking-details p {
    font-size: 0.95rem;
    color: #1e40af;
    margin: 0;
}

.tracking-details strong {
    font-weight: 700;
    color: #1e3a8a;
}

/* Order Detail Grid */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.order-items-section,
.order-summary-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.order-items-section h3,
.order-summary-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-dark);
}

/* Enhanced Order Items */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
    transform: translateX(5px);
}

.order-item .item-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
}

.order-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.order-item .item-image:hover img {
    transform: scale(1.1);
}

.order-item .item-details {
    flex: 1;
    min-width: 0;
}

.order-item .item-details h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.order-item .item-details h4 a {
    color: var(--text-dark);
    transition: var(--transition);
}

.order-item .item-details h4 a:hover {
    color: var(--primary);
}

.order-item .item-price {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.order-item .item-subtotal {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.order-item .btn {
    margin-top: 8px;
}

/* Order Summary */
.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: var(--text-body);
    font-weight: 500;
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-row.discount span:last-child {
    color: var(--success);
}

.summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 20px;
    margin-top: 10px;
}

.summary-row.total span {
    font-size: 1.4rem;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: var(--primary);
}

/* Payment Info */
.payment-info {
    padding: 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    margin-top: 20px;
}

.payment-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.payment-info p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-info i {
    color: var(--primary);
}

.payment-status {
    font-weight: 600;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

/* Shipping Address Section */
.shipping-address-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.shipping-address-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.shipping-address-section .address-card {
    padding: 22px;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border-light);
    line-height: 1.8;
}

.shipping-address-section .address-card .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.shipping-address-section .address-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 4px;
}

.shipping-address-section .address-card i {
    color: var(--primary);
    margin-right: 8px;
}

/* Status History */
.status-history-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.status-history-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.status-history {
    position: relative;
    padding-left: 35px;
}

.status-history::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%);
}

.history-item {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    position: relative;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-icon {
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: -35px;
    top: 3px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.history-icon i {
    font-size: 0.6rem;
    color: white;
}

.history-content {
    flex: 1;
}

.history-status {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.history-notes {
    font-size: 0.9rem;
    color: var(--text-body);
    display: block;
    margin-bottom: 4px;
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

/* Order Notes */
.order-notes-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.order-notes-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
}

.order-notes-section p {
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.7;
}

/* Enhanced Order Actions */
.order-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.order-actions .btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.order-actions .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}

.order-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.order-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-body);
}

.order-actions .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.order-actions .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}

.order-actions .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

/* Responsive Order Detail */
@media (max-width: 992px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding: 0;
    }
    
    .timeline::before {
        left: 5%;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .order-detail-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .order-title h1 {
        font-size: 1.4rem;
    }
    
    .order-timeline {
        padding: 25px 20px;
    }
    
    .timeline {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-step {
        flex: 0 0 calc(50% - 10px);
    }
    
    .timeline-step .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .order-items-section,
    .order-summary-section,
    .shipping-address-section {
        padding: 22px;
    }
    
    .order-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .order-item .item-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .order-actions {
        flex-direction: column;
        padding: 22px;
    }
    
    .order-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .timeline-step {
        flex: 0 0 100%;
    }
}

/* =====================================================
   FINAL MOBILE RESPONSIVE OVERRIDE (MUST BE LAST)
   Fixes all overflow/width issues on user pages
   ===================================================== */

/* Global overflow prevention */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-width: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ---- 992px: Tablet ---- */
@media (max-width: 992px) {
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        max-width: 100%;
        overflow: hidden;
    }
    
    .dashboard-content {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .dashboard-sidebar {
        max-width: 100%;
        overflow: hidden;
    }
}

/* ---- 768px: Mobile Landscape ---- */
@media (max-width: 768px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Force all grids to respect container */
    .dashboard-layout {
        gap: 12px !important;
        padding: 12px 0 24px !important;
    }
    
    .dashboard-content {
        min-width: 0 !important;
        width: 100% !important;
    }
    
    /* Page header - fix width */
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
        padding-bottom: 16px !important;
    }
    
    .page-header .dashboard-title {
        font-size: 1.3rem !important;
        margin: 0 !important;
        word-break: break-word;
    }
    
    .page-header .btn-primary,
    .page-header .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 20px !important;
    }
    
    /* Sidebar - horizontal scroll nav */
    .dashboard-sidebar {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    
    .user-welcome {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .user-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    .user-info .user-name {
        font-size: 0.88rem !important;
    }
    
    .user-info .greeting {
        font-size: 0.75rem !important;
    }
    
    .dashboard-nav ul {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 4px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px !important;
    }
    
    .dashboard-nav ul::-webkit-scrollbar {
        display: none !important;
    }
    
    .dashboard-nav a {
        padding: 7px 11px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        gap: 5px !important;
    }
    
    .dashboard-nav .badge {
        font-size: 10px !important;
        padding: 1px 6px !important;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .stat-card {
        padding: 14px !important;
        gap: 10px !important;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    
    .stat-value {
        font-size: 1.3rem !important;
    }
    
    .stat-label {
        font-size: 0.78rem !important;
    }
    
    /* Actions grid */
    .actions-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    
    .action-card {
        padding: 12px 8px !important;
    }
    
    .action-card i {
        font-size: 1.2rem !important;
    }
    
    .action-card span {
        font-size: 0.78rem !important;
    }
    
    /* Dashboard sections */
    .quick-actions,
    .recent-orders,
    .account-info {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    
    .quick-actions h2,
    .recent-orders .section-header h2,
    .account-info h2 {
        font-size: 0.95rem !important;
    }
    
    .section-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .view-all {
        font-size: 0.8rem !important;
    }
    
    /* Orders table - stacked */
    .orders-table-wrapper {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    .orders-table {
        width: 100% !important;
        table-layout: fixed !important;
    }
    
    .orders-table thead {
        display: none !important;
    }
    
    .orders-table tbody tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 14px !important;
        border-bottom: 2px solid var(--border) !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
        background: var(--bg-white) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
    
    .orders-table tbody td {
        padding: 4px 0 !important;
        border: none !important;
        font-size: 0.85rem !important;
        /* overflow: hidden !important; */
        text-overflow: ellipsis !important;
    }
    
    .orders-table tbody td::before {
        content: attr(data-label) !important;
        display: block !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        margin-bottom: 4px !important;
    }
    
    .orders-table tbody td.order-action {
        grid-column: 1 / -1 !important;
        text-align: center !important;
        padding-top: 10px !important;
    }
    
    /* Info cards */
    .info-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .info-card {
        padding: 16px !important;
    }
    
    .info-card h3 {
        font-size: 0.88rem !important;
    }
    
    /* Order filters */
    .order-filters {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .order-filters select {
        width: 100% !important;
    }
    
    /* Orders list */
    .orders-list {
        gap: 14px !important;
    }
    
    .order-card {
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .order-card .order-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 14px !important;
    }
    
    .order-card .order-info {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .order-card .order-number {
        font-size: 0.9rem !important;
        word-break: break-all !important;
    }
    
    .order-card .order-date {
        font-size: 0.78rem !important;
    }
    
    .status-badge {
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
        flex-shrink: 0 !important;
    }
    
    .order-card .order-body {
        padding: 14px !important;
        gap: 12px !important;
    }
    
    .order-card .order-products {
        min-width: 0 !important;
    }
    
    .order-card .products-text {
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .order-card .items-count {
        font-size: 0.78rem !important;
    }
    
    .order-card .order-summary {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .order-card .order-total .label,
    .order-card .order-payment .label {
        font-size: 0.72rem !important;
    }
    
    .order-card .order-total .value {
        font-size: 1rem !important;
    }
    
    .order-card .order-footer {
        padding: 12px 14px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .order-card .order-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .order-card .order-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .order-card .delivery-estimate {
        font-size: 0.78rem !important;
        text-align: center !important;
    }
    
    /* Pagination */
    .pagination-wrapper {
        margin-top: 20px !important;
    }
    
    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }
    
    .page-link {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
    }
    
    /* Wishlist */
    .wishlist-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .wishlist-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }
    
    .wishlist-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .wishlist-item {
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .wishlist-item:hover {
        transform: none !important;
    }
    
    .wishlist-item .item-image {
        height: auto !important;
        min-height: 180px !important;
        max-height: 250px !important;
        overflow: hidden !important;
    }
    
    .wishlist-item .item-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 250px !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    .wishlist-item .item-image .remove-btn {
        width: 32px !important;
        height: 32px !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    .wishlist-item .item-details {
        padding: 14px !important;
    }
    
    .wishlist-item .item-brand {
        font-size: 0.75rem !important;
    }
    
    .wishlist-item .item-name {
        font-size: 0.95rem !important;
        margin: 6px 0 10px !important;
    }
    
    .wishlist-item .item-name a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .wishlist-item .item-price {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .wishlist-item .item-price .current-price {
        font-size: 1rem !important;
    }
    
    .wishlist-item .item-price .original-price {
        font-size: 0.82rem !important;
    }
    
    .wishlist-item .item-price .discount-badge {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
    }
    
    .wishlist-item .item-stock {
        font-size: 0.82rem !important;
        margin-bottom: 12px !important;
    }
    
    .wishlist-item .item-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .wishlist-item .item-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 0.88rem !important;
    }
    
    .wishlist-item .added-date {
        font-size: 0.72rem !important;
        margin-top: 10px !important;
    }
    
    /* Addresses */
    .addresses-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 16px !important;
    }
    
    .address-card {
        padding: 18px !important;
        border-radius: 12px !important;
    }
    
    .address-card:hover {
        transform: none !important;
    }
    
    .default-badge {
        top: 14px !important;
        right: 14px !important;
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
    }
    
    .address-type {
        font-size: 0.78rem !important;
        padding: 4px 10px !important;
        margin-bottom: 12px !important;
    }
    
    .address-content {
        margin-top: 10px !important;
    }
    
    .address-content p {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
    }
    
    .address-content .name {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .address-content .phone {
        font-size: 0.85rem !important;
    }
    
    .address-actions {
        gap: 8px !important;
        margin-top: 14px !important;
        padding-top: 14px !important;
        flex-wrap: wrap !important;
    }
    
    .address-actions .btn {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .add-address-card {
        min-height: 100px !important;
        border-radius: 12px !important;
    }
    
    .add-address-card i {
        font-size: 1.8rem !important;
    }
    
    .add-address-card span {
        font-size: 0.88rem !important;
    }
    
    /* Profile form */
    .profile-form-wrapper {
        padding: 18px !important;
        max-width: 100% !important;
        border-radius: 12px !important;
    }
    
    .form-section {
        margin-bottom: 20px !important;
    }
    
    .form-section h3 {
        font-size: 0.95rem !important;
        margin-bottom: 14px !important;
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .profile-form .form-group {
        margin-bottom: 14px !important;
    }
    
    .profile-form label {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }
    
    .profile-form input,
    .profile-form select,
    .profile-form textarea {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .info-row {
        padding: 8px 0 !important;
        font-size: 0.88rem !important;
        flex-wrap: wrap !important;
    }
    
    .form-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding-top: 16px !important;
    }
    
    .form-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Danger zone */
    .danger-zone {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    .danger-zone h3 {
        font-size: 0.9rem !important;
    }
    
    .danger-zone p {
        font-size: 0.82rem !important;
    }
    
    .danger-zone .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 16px !important;
    }
    
    /* Password form */
    .password-form-wrapper {
        padding: 20px !important;
        max-width: 100% !important;
        border-radius: 12px !important;
    }
    
    .password-form .form-group {
        margin-bottom: 18px !important;
    }
    
    .password-form label {
        font-size: 0.88rem !important;
        margin-bottom: 8px !important;
    }
    
    .password-form .password-input-wrapper input {
        padding: 11px 45px 11px 14px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
    }
    
    .password-form .toggle-password {
        right: 12px !important;
    }
    
    .password-strength {
        margin-top: 10px !important;
    }
    
    .strength-bar {
        height: 5px !important;
    }
    
    .strength-text {
        font-size: 0.8rem !important;
    }
    
    .password-requirements {
        padding: 12px !important;
        margin-top: 10px !important;
    }
    
    .password-requirements li {
        font-size: 0.82rem !important;
        gap: 8px !important;
        margin-bottom: 6px !important;
    }
    
    .match-text {
        font-size: 0.82rem !important;
    }
    
    .password-form .form-actions {
        flex-direction: column !important;
        gap: 8px !important;
        padding-top: 16px !important;
    }
    
    .password-form .form-actions .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Security tips */
    .security-tips {
        padding: 16px !important;
        margin-top: 20px !important;
        border-radius: 12px !important;
    }
    
    .security-tips h4 {
        font-size: 0.92rem !important;
        margin-bottom: 12px !important;
    }
    
    .security-tips li {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        padding-left: 22px !important;
    }
    
    /* Modal */
    .modal-content {
        width: 95% !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
        margin: auto !important;
    }
    
    .modal-header {
        padding: 16px 18px !important;
    }
    
    .modal-header h2 {
        font-size: 1.1rem !important;
    }
    
    .modal-close {
        width: 32px !important;
        height: 32px !important;
    }
    
    .modal-body {
        padding: 18px !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
    }
    
    .modal-body .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .modal-body .form-group {
        margin-bottom: 14px !important;
    }
    
    .modal-body label {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }
    
    .modal-body input,
    .modal-body select {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
    }
    
    .modal-body .form-group.checkbox-group {
        margin-top: 0 !important;
    }
    
    .modal-footer {
        padding: 14px 18px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .modal-footer .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 18px !important;
    }
    
    /* Alert messages */
    .alert {
        padding: 12px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
        word-wrap: break-word !important;
    }
    
    /* Empty state */
    .empty-state {
        padding: 30px 16px !important;
        border-radius: 12px !important;
    }
    
    .empty-state i {
        font-size: 2.5rem !important;
        margin-bottom: 16px !important;
    }
    
    .empty-state h3 {
        font-size: 1.1rem !important;
    }
    
    .empty-state p {
        font-size: 0.9rem !important;
        margin-bottom: 16px !important;
    }
    
    .empty-state .btn {
        width: 100% !important;
        padding: 12px 24px !important;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: 8px 0 !important;
    }
    
    .breadcrumb-nav .breadcrumb {
        flex-wrap: wrap !important;
    }
    
    .breadcrumb-nav .breadcrumb li {
        font-size: 0.78rem !important;
    }
    
    /* Newsletter & Footer within user pages */
    .newsletter-wrapper {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    
    .newsletter-form {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100% !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ---- 576px: Small Phones ---- */
@media (max-width: 576px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .dashboard-layout {
        gap: 10px !important;
        padding: 8px 0 16px !important;
    }
    
    .dashboard-sidebar {
        padding: 10px !important;
    }
    
    .dashboard-title {
        font-size: 1.05rem !important;
    }
    
    .dashboard-nav a {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    
    .dashboard-nav a i {
        font-size: 11px !important;
    }
    
    .dashboard-nav .badge {
        font-size: 9px !important;
    }
    
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    .user-info .user-name {
        font-size: 0.82rem !important;
    }
    
    .stats-grid {
        gap: 6px !important;
    }
    
    .stat-card {
        padding: 10px !important;
    }
    
    .stat-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }
    
    .stat-value {
        font-size: 1.15rem !important;
    }
    
    .stat-label {
        font-size: 0.72rem !important;
    }
    
    .actions-grid {
        gap: 5px !important;
    }
    
    .action-card {
        padding: 8px 5px !important;
    }
    
    .action-card i {
        font-size: 1rem !important;
    }
    
    .action-card span {
        font-size: 0.72rem !important;
    }
    
    .quick-actions,
    .recent-orders,
    .account-info {
        padding: 10px !important;
    }
    
    .orders-table tbody tr {
        padding: 10px !important;
        gap: 5px !important;
    }
    
    .orders-table tbody td {
        font-size: 0.78rem !important;
    }
    
    .orders-table tbody td::before {
        font-size: 0.68rem !important;
    }
    
    .info-card {
        padding: 12px !important;
    }
    
    .page-header .dashboard-title {
        font-size: 1.15rem !important;
    }
    
    .page-header .item-count {
        font-size: 0.78rem !important;
        padding: 3px 10px !important;
    }
    
    .order-card .order-header {
        padding: 10px 12px !important;
    }
    
    .order-card .order-number {
        font-size: 0.82rem !important;
    }
    
    .order-card .order-date {
        font-size: 0.72rem !important;
    }
    
    .order-card .order-body {
        padding: 10px 12px !important;
    }
    
    .order-card .products-text {
        font-size: 0.8rem !important;
    }
    
    .order-card .order-total .value {
        font-size: 0.92rem !important;
    }
    
    .order-card .order-footer {
        padding: 10px 12px !important;
    }
    
    .order-card .order-actions .btn {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
    }
    
    .page-link {
        padding: 6px 9px !important;
        font-size: 0.78rem !important;
    }
    
    .wishlist-item .item-image {
        min-height: 160px !important;
        max-height: 220px !important;
    }
    
    .wishlist-item .item-details {
        padding: 12px !important;
    }
    
    .wishlist-item .item-name {
        font-size: 0.88rem !important;
    }
    
    .wishlist-item .item-actions .btn {
        padding: 9px 14px !important;
        font-size: 0.82rem !important;
    }
    
    .address-card {
        padding: 14px !important;
    }
    
    .address-content .name {
        font-size: 0.92rem !important;
    }
    
    .address-content p {
        font-size: 0.82rem !important;
    }
    
    .address-actions .btn {
        padding: 7px 10px !important;
        font-size: 0.78rem !important;
    }
    
    .profile-form-wrapper {
        padding: 14px !important;
    }
    
    .form-section h3 {
        font-size: 0.9rem !important;
    }
    
    .profile-form input,
    .profile-form select,
    .profile-form textarea {
        padding: 9px 10px !important;
        font-size: 0.85rem !important;
    }
    
    .danger-zone {
        padding: 12px !important;
    }
    
    .password-form-wrapper {
        padding: 14px !important;
    }
    
    .password-form .password-input-wrapper input {
        padding: 10px 42px 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .password-requirements {
        padding: 10px !important;
    }
    
    .password-requirements li {
        font-size: 0.78rem !important;
    }
    
    .security-tips {
        padding: 12px !important;
    }
    
    .security-tips li {
        font-size: 0.8rem !important;
    }
    
    .modal-content {
        width: 98% !important;
        max-width: 98vw !important;
    }
    
    .modal-header {
        padding: 12px 14px !important;
    }
    
    .modal-header h2 {
        font-size: 1rem !important;
    }
    
    .modal-body {
        padding: 14px !important;
    }
    
    .modal-footer {
        padding: 12px 14px !important;
    }
    
    .empty-state {
        padding: 24px 12px !important;
    }
    
    .empty-state i {
        font-size: 2rem !important;
    }
    
    .empty-state h3 {
        font-size: 0.95rem !important;
    }
    
    .empty-state p {
        font-size: 0.82rem !important;
    }
    
    .newsletter-section {
        padding: 25px 0 !important;
    }
    
    .newsletter-content h3 {
        font-size: 1.1rem !important;
    }
    
    .newsletter-content p {
        font-size: 0.82rem !important;
    }
}

/* ---- 400px: Ultra Small ---- */
@media (max-width: 400px) {
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .dashboard-layout {
        gap: 8px !important;
    }
    
    .dashboard-sidebar {
        padding: 8px !important;
    }
    
    .dashboard-nav a {
        padding: 5px 6px !important;
        font-size: 10px !important;
    }
    
    .stat-card {
        padding: 8px !important;
    }
    
    .stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    
    .stat-value {
        font-size: 1rem !important;
    }
    
    .action-card {
        padding: 6px 4px !important;
    }
    
    .action-card i {
        font-size: 0.9rem !important;
    }
    
    .action-card span {
        font-size: 0.68rem !important;
    }
    
    .order-card .order-header,
    .order-card .order-body,
    .order-card .order-footer {
        padding: 8px 10px !important;
    }
    
    .address-card {
        padding: 10px !important;
    }
    
    .profile-form-wrapper,
    .password-form-wrapper {
        padding: 10px !important;
    }
    
    .wishlist-item .item-image {
        min-height: 140px !important;
        max-height: 200px !important;
    }
    
    .wishlist-item .item-details {
        padding: 10px !important;
    }
    
    .modal-content {
        width: 100% !important;
        max-width: 100vw !important;
        border-radius: 12px 12px 0 0 !important;
        max-height: 95vh !important;
    }
    
    .modal-body {
        padding: 10px !important;
    }
}
