/* ============================================
   TOP FASHION TRADING - GLOBAL STYLES
   Version: 2.0 (Consolidated)
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors */
    --primary: #E63946;
    --primary-dark: #C1121F;
    --primary-light: #FF6B6B;
    --secondary: #1A1A2E;
    --secondary-light: #16213E;
    --accent: #FDCB6E;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E63946;
    --info: #0984E3;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #F1F3F5;
    --gray-300: #E9ECEF;
    --gray-400: #DEE2E6;
    --gray-500: #CED4DA;
    --gray-600: #ADB5BD;
    --gray-700: #6C757D;
    --gray-800: #495057;
    --gray-900: #343A40;
    --black: #212529;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-modal: 400;
    --z-toast: 500;
    --z-tooltip: 600;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--gray-100);
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.form-group .error-message {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: var(--spacing-xs);
}

/* ========== CARDS ========== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-300);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-300);
}

/* ========== NAVBAR STYLES ========== */
.navbar {
    background: var(--secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    position: relative;
}

.logo a {
    color: white;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-icons a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
}

.nav-icons a:hover {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white;
    font-size: 20px;
}

.cart-icon:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.welcome-text {
    color: var(--accent);
}

.logout-link {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.logout-link:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* ========== DESKTOP MEGA MENU ========== */
.desktop-menu {
    display: block;
}

.category-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-menu > a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.category-menu > a:hover {
    color: var(--primary);
}

.all-products-link {
    color: white !important;
    font-weight: 600 !important;
}

.mega-dropdown {
    position: relative;
}

.mega-dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}

.mega-dropdown-toggle i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 800px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    margin-top: 10px;
    overflow: hidden;
}

.mega-dropdown:hover .mega-menu {
    display: flex;
}

.mega-dropdown:hover .mega-dropdown-toggle i {
    transform: rotate(180deg);
}

.mega-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
    background: white;
}

.mega-column h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

.mega-column h4 a {
    color: var(--secondary);
    text-decoration: none;
}

.mega-column h4 a:hover {
    color: var(--primary);
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column ul li {
    margin-bottom: 8px;
}

.mega-column ul li a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.mega-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.view-all {
    margin-top: 8px;
}

.view-all-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary) !important;
}

.mega-banner.text-only {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.mega-banner.text-only .banner-overlay {
    padding: 20px;
}

.mega-banner.text-only .banner-overlay i {
    color: white;
    opacity: 0.6;
}

.banner-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.banner-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 20px;
}

.banner-btn {
    display: inline-block;
    background: white;
    color: var(--primary) !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: translateX(5px);
    background: var(--secondary);
    color: white !important;
}

/* ========== MOBILE ACCORDION MENU ========== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--secondary);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-container {
    padding: 20px;
}

.mobile-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-link:hover {
    color: var(--primary);
}

.mobile-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
}

.accordion-title {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.accordion-title:hover {
    color: var(--primary);
}

.accordion-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-left: 15px;
    margin-bottom: 10px;
}

.accordion-content.open {
    display: block;
}

.mobile-sub-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
}

.mobile-sub-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.mobile-logout-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--primary);
    text-align: left;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-logout-btn:hover {
    color: var(--primary-dark);
}

/* ========== BREADCRUMB STYLES ========== */
.breadcrumb {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 40px;
    font-size: 14px;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span:last-child {
    color: var(--secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0 20px;
        font-size: 12px;
    }
}

/* ========== CATEGORY TREE (SIDEBAR) ========== */
.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree li {
    list-style: none;
    margin-bottom: 6px;
}

.category-tree > li {
    margin-bottom: 10px;
}

.category-tree .subcategories {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.category-tree a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.category-tree a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.category-tree a.active {
    color: var(--primary);
    font-weight: 600;
}

.product-count {
    font-size: 11px;
    color: var(--gray-500);
    margin-left: 5px;
}

/* Category Icons (Optional) */
.category-tree > li > a::before {
    content: "📁 ";
    font-size: 12px;
}

.category-tree .subcategories li a::before {
    content: "📄 ";
    font-size: 10px;
    opacity: 0.7;
}

/* ========== SHOP PAGE STYLES ========== */
.shop-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    min-height: 500px;
}

.sidebar {
    width: 280px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.products-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--gray-400);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* ========== PRODUCT GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--gray-200);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Quick Add Button */
.quick-add {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 12px;
    transition: bottom 0.3s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.product-card:hover .quick-add {
    bottom: 0;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
}

.original-price {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: normal;
}

.product-stock {
    font-size: 12px;
    margin-top: 8px;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.in-stock {
    background: #D4EDDA;
    color: #155724;
}

.low-stock {
    background: #FFF3CD;
    color: #856404;
}

.out-of-stock {
    background: #F8D7DA;
    color: #721C24;
}

/* ========== PRODUCT BADGES ========== */
.product-badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.product-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    letter-spacing: 0.3px;
}

.product-badge i {
    font-size: 11px;
}

.badge-bestseller {
    background: #F59E0B;
}

.badge-new {
    background: #3B82F6;
}

.badge-hot {
    background: var(--primary);
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sale-badge i {
    font-size: 11px;
}

/* ========== CATEGORY PAGE STYLES ========== */
.category-header {
    max-width: 1400px;
    margin: 20px auto 20px;
    padding: 0 40px;
}

.category-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.category-description {
    color: var(--gray-600);
    font-size: 16px;
    margin-top: 10px;
}

.shop-controls {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: var(--gray-600);
    font-size: 14px;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
    max-width: 1400px;
    margin: 20px auto 60px;
    padding: 0 40px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.product-images {
    position: sticky;
    top: 100px;
}

.main-image-container {
    background: var(--gray-100);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    color: var(--secondary);
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.nav-arrow:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
    left: 15px;
}

.nav-arrow.next {
    right: 15px;
}

.thumbnail-gallery {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.2);
}

.product-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stars {
    color: var(--accent);
    font-size: 16px;
}

.description {
    margin: 25px 0;
    line-height: 1.8;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-300);
    padding-top: 25px;
}

.variant-selector {
    margin: 20px 0;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 20px;
}

.attribute-group {
    margin-bottom: 25px;
}

.attribute-group strong {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attribute-option {
    padding: 10px 24px;
    border: 2px solid var(--gray-400);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    background: white;
}

.attribute-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.attribute-option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.attribute-option.out-of-stock {
    opacity: 0.5;
    text-decoration: line-through;
    cursor: not-allowed;
}

.reset-attributes-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 15px;
    display: inline-block;
}

.stock-status {
    margin: 20px 0;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.quantity-section {
    margin: 25px 0;
}

.quantity-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quantity {
    font-size: 20px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.btn-add-cart:disabled {
    background: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-wishlist {
    width: 100%;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wishlist:hover {
    background: var(--primary);
    color: white;
}

.shipping-info {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-300);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.shipping-info p {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 14px;
}

.shipping-info i {
    font-size: 20px;
    color: var(--primary);
}

/* ========== IMAGE ZOOM & LIGHTBOX STYLES ========== */
.main-image-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.main-image {
    transition: transform 0.3s ease;
    transform-origin: 0 0;
}

.main-image-container:hover .main-image {
    transform: scale(2);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #E63946;
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: #E63946;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    z-index: 10001;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== STICKY ADD TO CART (Mobile) ========== */
.mobile-sticky-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-cart.visible {
    transform: translateY(0);
}

.sticky-cart-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sticky-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.sticky-original-price {
    font-size: 16px;
    color: #B2BEC3;
    text-decoration: line-through;
    margin-left: 8px;
}

.sticky-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    padding: 5px 10px;
    border-radius: 50px;
}

.sticky-quantity button {
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid var(--gray-400);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.sticky-quantity span {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.sticky-add-btn {
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    font-size: 16px;
}

.sticky-add-btn:disabled {
    background: #B2BEC3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .mobile-sticky-cart {
        display: block;
    }
    .btn-add-cart {
        display: none;
    }
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* ========== RELATED PRODUCTS ========== */
.related-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}

.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.related-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.related-info {
    padding: 15px;
}

.related-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.related-price {
    font-weight: 700;
    color: var(--primary);
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-300);
}

.reviews-summary {
    background: var(--gray-100);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.rating-box .rating-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.rating-stars {
    color: var(--accent);
    font-size: 20px;
    margin: 10px 0;
}

.rating-count {
    color: var(--gray-600);
    font-size: 14px;
}

.reviews-list h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.review-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-info strong {
    font-size: 16px;
    margin-right: 15px;
}

.review-stars {
    color: var(--accent);
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: var(--gray-600);
}

.review-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.review-content {
    color: var(--gray-800);
    line-height: 1.5;
    margin-bottom: 8px;
}

.verified-badge {
    font-size: 12px;
    color: var(--success);
    margin-top: 5px;
}

.write-review {
    background: var(--gray-100);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.write-review h3 {
    margin-bottom: 20px;
}

.rating-select {
    padding: 10px;
    border: 1px solid var(--gray-400);
    border-radius: 8px;
    width: 100%;
}

.btn-submit-review {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-submit-review:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.already-reviewed,
.login-to-review {
    text-align: center;
    padding: 30px;
    background: var(--gray-100);
    border-radius: 15px;
    margin-top: 20px;
}

.already-reviewed i {
    color: var(--success);
    margin-right: 8px;
}

.login-to-review a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* ========== HOME PAGE STYLES ========== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-slide {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-content {
    flex: 1;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    animation: fadeInUp 0.6s ease;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease;
}

.hero-image {
    flex: 0.5;
    text-align: center;
}

.hero-image i {
    font-size: 200px;
    color: rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.trust-banner {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 48px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.flash-sale {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    padding: 32px;
    margin-bottom: 48px;
    color: white;
}

.sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.countdown-timer {
    display: flex;
    gap: 12px;
    font-family: monospace;
    font-size: 28px;
    font-weight: 700;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.countdown-unit span:first-child {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.countdown-unit span:last-child {
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
}

.section {
    margin-bottom: 64px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-header p {
    margin-top: 16px;
    color: var(--gray-600);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: 30px;
    padding: 48px;
    text-align: center;
    margin-bottom: 48px;
    color: white;
}

.newsletter-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: white;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.recently-viewed-section {
    margin: 60px 0 40px;
    padding: 20px 0;
    background: var(--gray-100);
    border-radius: 20px;
}

.recently-viewed-grid {
    padding: 0 20px;
}

/* ========== CART DRAWER ========== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: calc(var(--z-modal) + 1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    padding: 25px;
    background: var(--secondary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h2 {
    font-size: 20px;
    margin: 0;
    color: white;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.close-drawer:hover {
    color: var(--primary);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drawer-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-300);
}

.drawer-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.drawer-item-details {
    flex: 1;
}

.drawer-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.drawer-item-price {
    color: var(--primary);
    font-weight: bold;
}

.drawer-item-quantity {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 5px;
}

.drawer-item-total {
    font-weight: bold;
}

.remove-item {
    background: none;
    border: none;
    color: #FF7675;
    cursor: pointer;
    font-size: 18px;
}

.remove-item:hover {
    color: var(--primary);
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 2px solid var(--gray-300);
    background: var(--gray-100);
}

.drawer-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.drawer-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    border-top: 1px solid var(--gray-300);
    padding-top: 15px;
    margin-top: 10px;
}

.view-cart-btn,
.checkout-btn-drawer {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.view-cart-btn {
    background: var(--gray-800);
    color: white;
}

.checkout-btn-drawer {
    background: var(--primary);
    color: white;
}

.empty-cart-drawer {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

/* ========== LOADING STATES ========== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--spacing-sm);
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: var(--spacing-md);
}

.skeleton-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.skeleton-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    animation: pulse 1.5s infinite;
}

.skeleton-image {
    height: 280px;
}

.skeleton-text {
    height: 80px;
    margin: 15px;
    border-radius: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    animation: slideInRight 0.3s ease;
    min-width: 280px;
    max-width: 400px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========== ALERTS ========== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.alert-info {
    background: #CCE5FF;
    color: #004085;
    border: 1px solid #B8DAFF;
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: white;
    border-radius: var(--radius-xl);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-800);
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-section p {
    margin: 10px 0;
    color: var(--gray-400);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray-600); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ========== NEWLY ADDED PAGE STYLES (Account, Cart, Checkout, etc.) ========== */

/* Account Page */
.account-container {
    max-width: 1000px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    flex-wrap: wrap;
    gap: 15px;
}
.account-header h1 {
    font-size: 28px;
    color: var(--secondary);
    margin: 0;
}
.account-badge {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}
.info-note {
    color: var(--gray-600);
    font-size: 12px;
    margin-top: 5px;
}
.btn-orders {
    background: #2A9D8F;
    color: white;
}
.btn-orders:hover {
    background: #1E7A6F;
}
.btn-logout {
    background: #636E72;
}
.btn-logout:hover {
    background: #4A5559;
}

/* Cart Page */
.cart-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}
.cart-header {
    margin-bottom: 30px;
}
.cart-header h1 {
    font-size: 36px;
    font-weight: 700;
}
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}
.cart-items {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-300);
    align-items: center;
}
.cart-item:last-child {
    border-bottom: none;
}
.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}
.item-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}
.item-stock {
    font-size: 12px;
    color: var(--success);
    margin-top: 5px;
    display: inline-block;
    padding: 4px 12px;
    background: #D4EDDA;
    border-radius: 20px;
}
.item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quantity-btn {
    width: 35px;
    height: 35px;
    background: var(--gray-100);
    border: 1px solid var(--gray-400);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}
.quantity-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.quantity {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}
.remove-btn {
    background: none;
    border: none;
    color: #FF7675;
    cursor: pointer;
    font-size: 20px;
}
.remove-btn:hover {
    color: var(--primary);
}
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}
.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
    color: var(--gray-700);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
}
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,57,70,0.3);
}
.continue-shopping {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.empty-cart {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
}
.empty-cart i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}
.shop-now-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
}
.shop-now-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Checkout Page */
.checkout-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}
.checkout-header {
    margin-bottom: 30px;
}
.checkout-header h1 {
    font-size: 36px;
    font-weight: 700;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}
.checkout-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-300);
}
.form-section:last-child {
    border-bottom: none;
}
.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section h2 i {
    color: var(--primary);
}
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--gray-400);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary);
    background: #FFF5F5;
}
.payment-option input {
    width: auto;
    margin: 0;
}
.payment-details {
    flex: 1;
}
.payment-name {
    font-weight: 600;
}
.payment-desc {
    font-size: 12px;
    color: var(--gray-700);
}
.place-order-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,57,70,0.3);
}
.free-shipping-badge {
    background: #D4EDDA;
    color: #155724;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}
.free-shipping-message {
    margin-top: 15px;
    padding: 10px;
    background: #FFF3CD;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
}
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Order Confirmation Page */
.confirmation-container {
    max-width: 600px;
    margin: 60px auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}
.confirmation-container h1 {
    color: var(--success);
    margin-bottom: 15px;
}
.order-number {
    background: var(--gray-100);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
}
.order-number span {
    font-weight: bold;
    color: var(--primary);
    font-size: 20px;
}
.message {
    color: var(--gray-700);
    margin-bottom: 30px;
    line-height: 1.6;
}
.buttons .btn-primary,
.buttons .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 10px;
}
.btn-secondary {
    background: #2A9D8F;
    color: white;
}
.btn-secondary:hover {
    background: #1E7A6F;
}

/* Order History & Order Detail Pages */
.orders-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.orders-header h1 {
    font-size: 36px;
    font-weight: 700;
}
.order-stats {
    display: flex;
    gap: 20px;
}
.stat-card {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 12px;
    color: var(--gray-700);
    margin-top: 5px;
}
.no-orders {
    text-align: center;
    padding: 80px;
    background: white;
    border-radius: 20px;
}
.no-orders i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.order-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 15px;
}
.order-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}
.order-number span {
    color: var(--primary);
}
.order-date {
    color: var(--gray-700);
    font-size: 14px;
}
.order-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}
.badge-pending { background: #FFF3CD; color: #856404; }
.badge-processing { background: #CCE5FF; color: #004085; }
.badge-shipped { background: #D4EDDA; color: #155724; }
.badge-delivered { background: #D1ECF1; color: #0C5460; }
.badge-cancelled { background: #F8D7DA; color: #721C24; }
.order-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-300);
}
.btn-view, .btn-reorder, .btn-cancel {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.btn-view {
    background: var(--primary);
    color: white;
}
.btn-view:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-reorder {
    background: var(--gray-800);
    color: white;
}
.btn-reorder:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}
.btn-cancel {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-cancel:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Order Detail Page Specific */
.order-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}
.order-detail-container .order-card {
    margin-bottom: 30px;
}
.order-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
}
.order-header h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.info-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
}
.info-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}
.info-value {
    font-size: 18px;
    font-weight: 600;
}
.section {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-300);
}
.items-table {
    width: 100%;
    border-collapse: collapse;
}
.items-table th,
.items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-300);
}
.items-table th {
    background: var(--gray-100);
    font-weight: 600;
}
.product-price {
    color: var(--primary);
    font-weight: 600;
}
.totals {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}
.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.totals-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    margin-top: 10px;
    padding-top: 15px;
}
.shipping-address {
    background: var(--gray-100);
    padding: 15px;
    border-radius: 10px;
    line-height: 1.6;
}

/* Search Results Page */
.search-header {
    max-width: 1400px;
    margin: 40px auto 20px;
    padding: 0 40px;
}
.search-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}
.search-header p {
    color: var(--gray-700);
}
.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    margin: 40px auto;
}
.no-results i {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Track Order Pages */
.track-container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
}
.track-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.track-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
}
.track-card h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--secondary);
}
.track-card p {
    color: var(--gray-700);
    margin-bottom: 30px;
}
.btn-track {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,57,70,0.3);
}

/* Track Order Result Page */
.track-result-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}
.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    z-index: 2;
    background: white;
    border: 2px solid var(--gray-400);
}
.timeline-icon.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.timeline-icon.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.timeline-content {
    flex: 1;
}
.timeline-status {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}
.timeline-description {
    color: var(--gray-700);
    font-size: 13px;
    margin-bottom: 5px;
}
.timeline-date {
    font-size: 12px;
    color: #ADB5BD;
}
.timeline-line {
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: var(--gray-400);
    z-index: 1;
}
.timeline-item:last-child .timeline-line {
    display: none;
}

/* Wishlist Page */
.wishlist-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}
.wishlist-header {
    margin-bottom: 30px;
}
.wishlist-header h1 {
    font-size: 36px;
    font-weight: 700;
}
.wishlist-header p {
    color: var(--gray-700);
    margin-top: 5px;
}
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stats-card .count {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}
.stats-card .label {
    color: var(--gray-700);
}
.remove-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}
.remove-wishlist:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
.empty-wishlist {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
}
.empty-wishlist i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Forgot Password & Reset Password */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.auth-header {
    margin-bottom: 30px;
}
.auth-header h1 {
    font-size: 28px;
    color: var(--secondary);
}
.auth-header p {
    color: var(--gray-700);
    font-size: 14px;
}
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,57,70,0.3);
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
}
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.password-hint {
    color: var(--gray-700);
    font-size: 12px;
    margin-top: 5px;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 968px) {
    .shop-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 240px;
    }

    .nav-top {
        flex-wrap: nowrap;
    }

    .mobile-menu-toggle {
        display: block;
        order: 0;
    }

    .logo {
        order: 1;
        margin-right: auto;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }

    .nav-icons {
        order: 2;
    }

    .desktop-menu {
        display: none;
    }

    .nav-top {
        flex-wrap: wrap;
    }

    .product-detail {
        padding: 0 20px;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .product-images {
        position: static;
    }

    .product-info h1 {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .mega-menu {
        position: static;
        width: 100%;
        display: none;
        flex-direction: column;
        margin-top: 5px;
        box-shadow: none;
        background: transparent;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        padding: 10px 0 10px 20px;
        gap: 10px;
    }

    .mega-banner.text-only {
        display: none;
    }

    .mega-dropdown:hover .mega-menu {
        display: none;
    }

    .mega-dropdown.active .mega-menu {
        display: flex;
    }

    .category-menu {
        gap: 15px;
        justify-content: center;
    }

    .category-menu > a {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero-slide {
        padding: 40px 24px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-image {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .countdown-unit {
        padding: 4px 8px;
        min-width: 50px;
    }

    .countdown-unit span:first-child {
        font-size: 18px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
    }

    .shipping-info {
        flex-direction: column;
    }

    .attribute-option {
        padding: 8px 16px;
        font-size: 12px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-box .rating-number {
        font-size: 36px;
    }

    .category-header h1 {
        font-size: 28px;
    }

    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .breadcrumb {
        padding: 0 20px;
        font-size: 12px;
    }

    .category-header,
    .products-grid,
    .shop-controls,
    .loading-skeleton {
        padding: 0 20px;
    }

    button,
    .btn,
    a,
    .cart-icon,
    .attribute-option {
        cursor: pointer;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Additional responsive for new pages */
    .cart-container,
    .checkout-container,
    .orders-container,
    .wishlist-container,
    .order-detail-container {
        padding: 0 20px;
    }
    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .item-actions {
        justify-content: center;
    }
    .item-image {
        margin: 0 auto;
    }
    .orders-header {
        flex-direction: column;
        text-align: center;
    }
    .order-stats {
        width: 100%;
        justify-content: center;
    }
    .order-header {
        flex-direction: column;
        text-align: center;
    }
    .order-actions {
        justify-content: center;
    }
    .timeline-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    .timeline-line {
        left: 19px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

@media (min-width: 969px) {
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .footer,
    .cart-drawer,
    .whatsapp-float,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: white;
    }

    .card,
    .product-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* ========== ACCESSIBILITY ========== */
:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.4);
}

:focus:not(:focus-visible) {
    box-shadow: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== PROFESSIONAL HERO SECTION ========== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 48px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?w=1600&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.hero:hover .hero-background {
    transform: scale(1.05);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.6s ease;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease;
}

.hero-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease;
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230,57,70,0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 400px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1rem;
        padding: 0 20px;
    }
    .hero-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
}