
:root {
    /* Primary Colors - Blue Theme */
    --primary-dark: #1a365d;
    --primary: #2c5282;
    --primary-light: #4299e1;
    --primary-lighter: #90cdf4;
    --primary-lightest: #ebf8ff;
    
    /* Secondary Colors */
    --secondary: #ed8936;
    --secondary-light: #f6ad55;
    --secondary-dark: #c05621;
    
    /* Neutrals - White Theme */
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    
    /* Status Colors */
    --success: #38a169;
    --success-light: #c6f6d5;
    --error: #e53e3e;
    --error-light: #fed7d7;
    --warning: #d69e2e;
    --warning-light: #fefcbf;
    --info: #3182ce;
    --info-light: #bee3f8;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.3s ease;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Container */
    --container-max: 1400px;
    --header-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo:hover {
    color: var(--primary);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    position: relative;
    padding: var(--space-sm) 0;
    font-weight: 600;
    color: var(--gray-700);
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-lightest);
    border: none;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-btn:hover {
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.nav-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}
#mobileMenu{
    visibility: hidden;
  }

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 4px 15px rgba(44, 82, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 20px rgba(44, 82, 130, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    color: var(--gray-700);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s ease-in-out infinite;
}

.hero-shape:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -100px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 400px; height: 400px; bottom: -100px; left: -100px; animation-delay: -5s; }
.hero-shape:nth-child(3) { width: 200px; height: 200px; top: 40%; left: 20%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-3xl) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-text h1 {
    color: var(--white);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: var(--space-lg) var(--space-2xl);
}

.hero-image {
    position: relative;
}

.hero-image-main {
    width: 100%;
    max-width: 600px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary);
    margin-left: auto;
    overflow: hidden;
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: var(--space-3xl) 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--primary-lighter) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.product-action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.product-info {
    padding: var(--space-lg);
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.stars {
    display: flex;
    color: var(--warning);
}

.rating-count {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: var(--space-sm);
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */

.product-detail {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.main-image {
    width: 100%;
    height: 500px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.thumbnail {
    height: 100px;
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.product-description {
    margin-bottom: var(--space-xl);
}

.product-description h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.product-options {
    margin-bottom: var(--space-xl);
}

.option-group {
    margin-bottom: var(--space-lg);
}

.option-label {
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.option-values {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.option-value {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.option-value:hover,
.option-value.selected {
    border-color: var(--primary);
    background: var(--primary-lightest);
    color: var(--primary);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-controls button {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.quantity-controls button:hover {
    background: var(--primary);
    color: var(--white);
}

.quantity-controls input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.product-tabs {
    margin-top: var(--space-3xl);
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--space-xl);
}

.tab-btn {
    padding: var(--space-md) var(--space-xl);
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   CART
   ============================================ */

.cart-page {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.cart-item-quantity .quantity-controls {
    border: 1px solid var(--gray-200);
}

.cart-item-quantity .quantity-controls button {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.cart-item-quantity .quantity-controls input {
    width: 40px;
    height: 32px;
    font-size: 1rem;
}

.cart-item-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    height: fit-content;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 2px solid var(--gray-200);
}

.cart-summary .btn {
    width: 100%;
    margin-top: var(--space-lg);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    color: var(--gray-500);
}

/* ============================================
   CHECKOUT
   ============================================ */

.checkout-page {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-2xl);
}

.checkout-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
}

.checkout-form h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-200);
}

.form-section {
    margin-bottom: var(--space-xl);
}

.form-section h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
}

.order-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    height: fit-content;
}

.order-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
}

.order-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-100);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.order-item-details span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   USER ACCOUNT
   ============================================ */

.account-page {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
}

.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
}

.account-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    height: fit-content;
}

.account-user {
    text-align: center;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.account-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 2.5rem;
    color: var(--white);
}

.account-user h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.account-user p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.account-nav {
    list-style: none;
}

.account-nav li {
    margin-bottom: var(--space-xs);
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--primary-lightest);
    color: var(--primary);
}

.account-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
}

/* ============================================
   ADMIN PANEL
   ============================================ */

.admin-page {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--primary-dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.admin-nav {
    padding: var(--space-lg) 0;
}

.admin-nav-section {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-lg);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left: 3px solid var(--secondary);
}

.admin-nav a i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: var(--space-xl);
    background: var(--gray-50);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: var(--primary-lightest); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--error-light); color: var(--error); }

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.stat-info .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.admin-card-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.admin-card-body {
    padding: var(--space-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--gray-50);
}

.data-table .actions {
    display: flex;
    gap: var(--space-sm);
}

.data-table .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

.status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.status-badge.pending { background: var(--warning-light); color: var(--warning); }
.status-badge.processing { background: var(--info-light); color: var(--info); }
.status-badge.shipped { background: var(--primary-lightest); color: var(--primary); }
.status-badge.delivered { background: var(--success-light); color: var(--success); }
.status-badge.cancelled { background: var(--error-light); color: var(--error); }

/* ============================================
   AUTH PAGES
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--space-xl);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl) var(--space-lg);
    background: var(--primary-lightest);
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: var(--space-md);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--gray-500);
    margin-bottom: 0;
}

.auth-body {
    padding: var(--space-xl);
}

.auth-footer {
    text-align: center;
    padding: var(--space-lg);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.auth-footer a {
    font-weight: 600;
}

.social-login {
    margin-bottom: var(--space-xl);
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: var(--space-md);
}

.social-btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--gray-400);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews-section {
    margin-top: var(--space-3xl);
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-lightest);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
}

.review-author-info h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.review-author-info span {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.review-content p {
    margin-bottom: 0;
    color: var(--gray-600);
}

.review-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.star-rating {
    display: flex;
    gap: var(--space-xs);
    font-size: 1.5rem;
    color: var(--gray-300);
    cursor: pointer;
}

.star-rating .star {
    transition: var(--transition);
}

.star-rating .star.active,
.star-rating .star:hover {
    color: var(--warning);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: var(--space-sm);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-payments {
    display: flex;
    gap: var(--space-md);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

.notification {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    background: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 9999;
    transform: translateX(calc(100% + var(--space-md)));
    transition: var(--transition);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--error);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-info {
    border-left: 4px solid var(--info);
}

.notification button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--gray-400);
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error);
    color: var(--white);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* Large Modal */
.modal-large {
    max-width: 800px;
    max-height: 95vh;
}

.modal-body-scroll {
    max-height: calc(95vh - 160px);
    overflow-y: auto;
    padding: var(--space-xl);
}

/* Form Section */
.form-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-section-title i {
    font-size: 1.125rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

/* Enhanced Image Upload */
#dropZone {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed var(--primary-lighter);
    background: var(--primary-lightest);
}

#dropZone:hover,
#dropZone.drag-over {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

#dropZone.drag-over {
    transform: scale(1.02);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    color: var(--gray-400);
    text-align: center;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.image-count {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.image-count.success {
    color: var(--success);
}

.image-count.error {
    color: var(--error);
}

.image-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-preview-item:hover .image-preview-overlay {
    opacity: 1;
}

.image-number {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    background: var(--primary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.remove-image-btn {
    background: var(--error);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.remove-image-btn:hover,
.remove-image-btn:active {
    background: var(--gray-800);
    transform: scale(1.1);
}

/* Product Preview Card */
.product-preview-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 150px;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: var(--gray-400);
}

.preview-placeholder i {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.preview-product {
    display: flex;
    gap: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow);
}

.preview-image {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.preview-image-count {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--gray-800);
}

.preview-category {
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    text-transform: capitalize;
}

.preview-description {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.preview-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.preview-price .current-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

/* Form Checkbox Enhancement */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    transition: background 0.2s ease;
}

.form-checkbox:hover {
    background: var(--gray-100);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-checkbox span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-summary,
    .order-summary {
        position: static;
    }
    
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Modal Responsive */
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-large {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body-scroll {
        max-height: calc(90vh - 140px);
        padding: var(--space-lg);
    }
    
    .form-row,
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-md);
    }
    
    .preview-product {
        flex-direction: column;
    }
    
    .preview-image {
        width: 100%;
        height: 150px;
    }
    
    .modal-footer {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .product-detail-price {
        font-size: 2rem;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }
.p-5 { padding: var(--space-2xl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-grid { display: grid; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.bg-white { background: var(--white); }
.bg-gray { background: var(--gray-100); }
.bg-primary { background: var(--primary); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

/* Image Preview */
.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--gray-200);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview button {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    width: 24px;
    height: 24px;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.search-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-box i {
    color: var(--gray-400);
    font-size: 1.25rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    color: var(--gray-800);
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-left: 45px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-input:focus {
    background: var(--white);
    border-color: var(--primary);
    outline: none;
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--gray-600);
}

.trust-badge-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-lightest);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--gray-800);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-md);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.filter-group {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.filter-option input {
    accent-color: var(--primary);
}

/* Google Reviews Widget */
.google-reviews {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.google-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.google-reviews-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.overall-rating {
    text-align: center;
}

.rating-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Related Products */
.related-products {
    margin-top: var(--space-3xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--gray-200);
}

.related-products h2 {
    margin-bottom: var(--space-xl);
}
 
 
 

