/* ===================================================================
   PREMIUM SKINCARE E-COMMERCE - RESPONSIVE STYLES
   Mobile-First Approach | Fully Responsive Design
   =================================================================== */

/* ===================================================================
   CSS RESET & BASE STYLES
   =================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --color-primary: #D4A574;          /* Sophisticated Gold */
    --color-primary-dark: #B8904E;     /* Dark Gold */
    --color-text: #2E2E2E;
    --color-text-light: #757575;
    --color-text-lighter: #9E9E9E;
    --color-bg: #FFFFFF;               /* Pure White */
    --color-bg-light: #FFFBF5;         /* Light Gold Tint */
    --color-border: #E0E0E0;
    --color-success: #D4A574;          /* Gold for success states */
    --color-error: #F44336;
    
    /* Typography */
    --font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ===================================================================
   ACCESSIBILITY
   =================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===================================================================
   LAYOUT - CONTAINER
   =================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    overflow: visible;
}

main {
    overflow-x: hidden;
    width: 100%;
}

/* ===================================================================
   HEADER & NAVIGATION
   =================================================================== */
.site-header {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition-speed) var(--transition-timing);
    width: 100%;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    position: relative;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    transition: color var(--transition-speed) var(--transition-timing);
    flex-shrink: 0;
}

.brand:hover {
    color: var(--color-primary);
}

.brand img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.brand span {
    white-space: nowrap;
}

/* Navigation Menu */
.nav-menu {
    display: none;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: color var(--transition-speed) var(--transition-timing);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-speed) var(--transition-timing);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Nav Right Group */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Cart Badge */
.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Auth Links */
.auth-links {
    display: none;
}

.auth-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    transition: all var(--transition-speed) var(--transition-timing);
    white-space: nowrap;
    display: inline-block;
}

.auth-link:hover {
    background: var(--color-primary);
    color: white;
}

/* Mobile Auth Item - Hidden by default */
.mobile-auth-item {
    display: none;
}

/* Mobile Toggle Button */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-speed) var(--transition-timing);
}

.navbar.active .nav-toggle span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.navbar.active .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.active .nav-toggle span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu */
@media (max-width: 991px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed) var(--transition-timing);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .navbar.active .nav-menu {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--spacing-sm);
        font-size: 1rem;
    }
    
    /* Show mobile auth item in mobile menu */
    .mobile-auth-item {
        display: block !important;
        width: 100%;
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        border-top: 1px solid var(--color-border);
    }
    
    .mobile-auth-item .auth-link {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    /* Ensure mobile toggle is visible */
    .nav-toggle {
        display: flex !important;
    }
    
    /* Hide desktop auth links */
    .auth-links {
        display: none !important;
    }
}

/* Search Form */
.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--color-bg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) var(--transition-timing);
    z-index: 998;
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form-inner {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color var(--transition-speed) var(--transition-timing);
    min-width: 0;
}

.search-form input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-speed) var(--transition-timing);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.search-form button:hover {
    background: var(--color-primary-dark);
}

/* ===================================================================
   HERO SLIDER
   =================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF9F0 100%);
    min-height: 400px;
    width: 100%;
}

.hero-slide {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.hero-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-xl) 0;
    min-height: 400px;
}

.hero-text {
    text-align: center;
    order: 2;
}

.hero-label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-speed) var(--transition-timing);
    margin-top: var(--spacing-sm);
}

.hero-link:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-link svg {
    transition: transform var(--transition-speed) var(--transition-timing);
}

.hero-link:hover svg {
    transform: translateX(4px);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    padding: 0;
}

.dot.active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

.dot:hover {
    transform: scale(1.2);
}

/* ===================================================================
   SECTION STYLES
   =================================================================== */
.categories-section,
.bestsellers-section,
.features-section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* ===================================================================
   CATEGORIES GRID
   =================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
    min-height: 220px;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed) var(--transition-timing);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: all var(--transition-speed) var(--transition-timing);
}

.category-card:hover .category-image {
    opacity: 0.5;
    transform: scale(1.05);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    transition: all var(--transition-speed) var(--transition-timing);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.category-btn {
    display: inline-block;
    margin-top: var(--spacing-xs);
    padding: 0.5rem 1.5rem;
    background: white;
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-speed) var(--transition-timing);
}

.category-card:hover .category-btn {
    background: var(--color-primary);
    color: white;
}

/* ===================================================================
   PRODUCTS SLIDER & GRID
   =================================================================== */
.products-slider {
    position: relative;
    padding: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-speed) var(--transition-timing);
    color: var(--color-text);
}

.slider-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
    left: -60px;
}

.slider-arrow.next {
    right: -60px;
}

@media (max-width: 1200px) {
    .slider-arrow.prev {
        left: -24px;
    }
    
    .slider-arrow.next {
        right: -24px;
    }
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none !important;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
    width: 100%;
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: var(--color-bg-light);
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 1px solid var(--color-border);
    width: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition-timing);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    font-size: 0.875rem;
}

/* Product Actions */
.product-image .product-actions {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-speed) var(--transition-timing);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
}

.action-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.action-btn.active {
    background: var(--color-primary);
    color: white;
}

/* Product Info */
.product-info {
    padding: var(--spacing-md);
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.product-info h3 a {
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--transition-speed) var(--transition-timing);
}

.product-info h3 a:hover {
    color: var(--color-primary);
}

.product-rating {
    margin-bottom: var(--spacing-xs);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FFD700;
    font-size: 0.875rem;
}

.star:not(.filled) {
    color: var(--color-border);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--color-text);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-speed) var(--transition-timing);
}

.buy-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* ===================================================================
   FEATURES GRID
   =================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-speed) var(--transition-timing);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--color-primary);
    transition: all var(--transition-speed) var(--transition-timing);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* ===================================================================
   FOOTER - ENHANCED RESPONSIVE STYLES
   =================================================================== */
.site-footer {
    background: var(--color-text);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-grid > div h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-grid > div p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.footer-grid > div a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-speed) var(--transition-timing);
    padding: 0.375rem 0;
}

.footer-grid > div a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===================================================================
   FOOTER RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Extra Small Mobile - 320px to 374px */
@media (min-width: 320px) and (max-width: 374px) {
    .site-footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid > div {
        text-align: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-grid > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-grid > div h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-grid > div p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .footer-grid > div a {
        font-size: 0.875rem;
        padding: 0.375rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
    }
    
    .footer-grid > div a:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 1rem;
        line-height: 1.5;
    }
}

/* Small Mobile - 375px to 424px */
@media (min-width: 375px) and (max-width: 424px) {
    .site-footer {
        padding: 2.5rem 0 1rem;
        margin-top: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid > div {
        text-align: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-grid > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-grid > div h4 {
        font-size: 1.0625rem;
        margin-bottom: 1rem;
    }
    
    .footer-grid > div p {
        font-size: 0.875rem;
    }
    
    .footer-grid > div a {
        font-size: 0.875rem;
        padding: 0.375rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
    }
    
    .footer-grid > div a:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        font-size: 0.8125rem;
        padding-top: 1rem;
    }
}

/* Medium Mobile - 425px to 599px */
@media (min-width: 425px) and (max-width: 599px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-grid > div {
        text-align: center;
    }
    
    .footer-grid > div h4 {
        font-size: 1.0625rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid > div p {
        font-size: 0.9375rem;
    }
    
    .footer-grid > div a {
        font-size: 0.9375rem;
        padding: 0.375rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-grid > div a:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        font-size: 0.8125rem;
        padding-top: 1.5rem;
    }
}

/* Small Tablet - 600px to 767px */
@media (min-width: 600px) and (max-width: 767px) {
    .site-footer {
        padding: 4rem 0 1.5rem;
        margin-top: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        margin-bottom: 3rem;
        row-gap: 2rem;
    }
    
    .footer-grid > div:first-child {
        grid-column: span 2;
        text-align: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-grid > div {
        text-align: left;
    }
    
    .footer-grid > div h4 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid > div p {
        font-size: 0.9375rem;
    }
    
    .footer-grid > div a {
        font-size: 0.9375rem;
        padding: 0.375rem 0;
        display: block;
    }
    
    .footer-bottom {
        font-size: 0.875rem;
        padding-top: 1.5rem;
    }
}

/* Tablet - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .site-footer {
        padding: 4rem 0 2rem;
        margin-top: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        margin-bottom: 3rem;
        row-gap: 3rem;
    }
    
    .footer-grid > div:first-child {
        grid-column: span 2;
        text-align: center;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 1rem;
    }
    
    .footer-grid > div {
        text-align: left;
    }
    
    .footer-grid > div:first-child p {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-grid > div h4 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid > div p {
        font-size: 1rem;
    }
    
    .footer-grid > div a {
        font-size: 0.9375rem;
        padding: 0.375rem 0;
    }
    
    .footer-bottom {
        font-size: 0.875rem;
        padding-top: 2rem;
    }
}

/* Laptop - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .site-footer {
        padding: 4rem 0 2rem;
        margin-top: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        margin-bottom: 3rem;
    }
    
    .footer-grid > div:first-child {
        grid-column: auto;
        text-align: left;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .footer-grid > div:first-child p {
        max-width: none;
        margin: 0;
    }
    
    .footer-grid > div h4 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid > div p {
        font-size: 0.9375rem;
    }
    
    .footer-grid > div a {
        font-size: 0.9375rem;
        padding: 0.375rem 0;
    }
    
    .footer-bottom {
        font-size: 0.875rem;
        padding-top: 2rem;
    }
}

/* Desktop - 1200px and up */
@media (min-width: 1200px) {
    .site-footer {
        padding: 6rem 0 3rem;
        margin-top: 6rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 4rem;
        margin-bottom: 4rem;
    }
    
    .footer-grid > div:first-child {
        grid-column: auto;
        text-align: left;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .footer-grid > div h4 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-grid > div p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .footer-grid > div a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .footer-grid > div a:hover {
        color: white;
        padding-left: 8px;
    }
    
    .footer-bottom {
        font-size: 0.9375rem;
        padding-top: 3rem;
    }
}

/* Extra Large Desktop - 1400px and up */
@media (min-width: 1400px) {
    .site-footer {
        padding: 8rem 0 3rem;
    }
    
    .footer-grid {
        gap: 6rem;
    }
    
    .footer-grid > div h4 {
        font-size: 1.375rem;
    }
    
    .footer-grid > div p {
        font-size: 1.0625rem;
    }
    
    .footer-grid > div a {
        font-size: 1.0625rem;
    }
}

/* ===================================================================
   FOOTER - MOBILE TOUCH OPTIMIZATIONS
   =================================================================== */
@media (max-width: 767px) {
    .footer-grid > div a {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===================================================================
   FOOTER - PRINT STYLES
   =================================================================== */
@media print {
    .site-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
        page-break-inside: avoid;
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid > div h4 {
        color: #333 !important;
    }
    
    .footer-grid > div p,
    .footer-grid > div a {
        color: #666 !important;
    }
    
    .footer-bottom {
        border-top-color: rgba(0, 0, 0, 0.1);
        color: rgba(0, 0, 0, 0.6) !important;
    }
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Extra Small Mobile - 320px (iPhone SE, older devices) */
@media (min-width: 320px) and (max-width: 374px) {
    :root {
        --container-padding: 0.75rem;
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
    
    /* Navbar - Critical: Reduce spacing to fit all elements */
    .navbar {
        gap: 0.5rem;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .nav-icons {
        gap: 0.25rem;
    }
    
    /* Brand */
    .brand {
        font-size: 1rem;
        gap: 0.5rem;
        max-width: 140px;
    }
    
    .brand img {
        height: 32px;
    }
    
    .brand span {
        font-size: 0.9rem;
    }
    
    /* Icons - Make smaller to fit */
    .icon-btn {
        width: 32px;
        height: 32px;
    }
    
    .icon-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Cart badge - adjust for smaller button */
    .cart-count {
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        font-size: 0.5625rem;
        padding: 0 3px;
    }
    
    /* Mobile Toggle */
    .nav-toggle {
        width: 24px;
        height: 18px;
    }
    
    .nav-toggle span {
        height: 2px;
    }
    
    .navbar.active .nav-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .navbar.active .nav-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-slider {
        min-height: 350px;
    }
    
    .hero-content {
        min-height: 350px;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-link {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    /* Slider Dots */
    .slider-dots {
        gap: 0.375rem;
        padding: var(--spacing-sm) 0;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.375rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }
    
    /* Categories */
    .category-card {
        min-height: 180px;
        padding: var(--spacing-lg);
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .category-content h3 {
        font-size: 1rem;
    }
    
    .category-btn {
        padding: 0.375rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Products */
    .product-info {
        padding: var(--spacing-sm);
    }
    
    .product-info h3 {
        font-size: 0.9375rem;
    }
    
    .product-price {
        font-size: 1.125rem;
    }
    
    .buy-btn {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    /* Features */
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
    }
    
    /* Search Form */
    .search-form {
        padding: var(--spacing-sm);
    }
    
    .search-form input {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .search-form button {
        padding: 0.625rem 1rem;
    }
    
    /* Mobile Menu */
    .nav-menu {
        padding: var(--spacing-sm);
    }
    
    .nav-menu a {
        padding: 0.625rem;
        font-size: 0.9375rem;
    }
    
    .mobile-auth-item .auth-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* Small Mobile - 375px (iPhone 6/7/8, Galaxy S8/S9) */
@media (min-width: 375px) and (max-width: 424px) {
    :root {
        --container-padding: 0.875rem;
        --spacing-xs: 0.4375rem;
        --spacing-sm: 0.875rem;
        --spacing-md: 1.25rem;
        --spacing-lg: 1.75rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }
    
    /* Navbar - Ensure proper spacing */
    .navbar {
        gap: 0.625rem;
    }
    
    .nav-right {
        gap: 0.625rem;
    }
    
    .nav-icons {
        gap: 0.375rem;
    }
    
    /* Brand */
    .brand {
        font-size: 1.125rem;
        max-width: 160px;
    }
    
    .brand img {
        height: 36px;
    }
    
    /* Icons - Slightly smaller for better fit */
    .icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .icon-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Cart badge */
    .cart-count {
        top: 3px;
        right: 3px;
        min-width: 17px;
        height: 17px;
        font-size: 0.5938rem;
    }
    
    /* Mobile Toggle */
    .nav-toggle {
        width: 26px;
        height: 20px;
    }
    
    .nav-toggle span {
        height: 2.5px;
    }
    
    .navbar.active .nav-toggle span:nth-child(1) {
        transform: translateY(8.75px) rotate(45deg);
    }
    
    .navbar.active .nav-toggle span:nth-child(3) {
        transform: translateY(-8.75px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-slider {
        min-height: 380px;
    }
    
    .hero-content {
        min-height: 380px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-link {
        padding: 0.75rem 1.75rem;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
    }
    
    /* Categories */
    .category-card {
        min-height: 200px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
    
    .category-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .category-content h3 {
        font-size: 1.125rem;
    }
    
    /* Products */
    .product-info h3 {
        font-size: 0.9375rem;
    }
    
    .product-price {
        font-size: 1.125rem;
    }
    
    /* Features */
    .feature-icon {
        width: 65px;
        height: 65px;
    }
    
    .feature-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* Medium Mobile - 425px (iPhone Plus, Pixel) */
@media (min-width: 425px) and (max-width: 599px) {
    :root {
        --container-padding: 1rem;
        --spacing-xl: 2.75rem;
        --spacing-xxl: 3.5rem;
    }
    
    /* Hero Section */
    .hero-slider {
        min-height: 400px;
    }
    
    .hero-content {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-image img {
        max-width: 320px;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.625rem;
    }
    
    /* Categories */
    .category-card {
        min-height: 210px;
    }
    
    /* Products - Consider 2 column layout for larger phones */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Small Tablets (600px and up) */
@media (min-width: 600px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-xl: 3.5rem;
        --spacing-xxl: 5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card.large {
        grid-column: span 2;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        min-height: 450px;
    }
    
    .search-form-inner {
        flex-direction: row;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        min-height: 500px;
    }
    
    .hero-text {
        text-align: left;
        order: 1;
    }
    
    .hero-image {
        order: 2;
        justify-content: flex-end;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slider-arrow {
        display: flex;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    :root {
        --container-padding: 2rem;
        --spacing-xl: 4rem;
        --spacing-xxl: 6rem;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .auth-links {
        display: block;
    }
    
    .mobile-auth-item {
        display: none !important;
    }
    
    .hero-content {
        min-height: 550px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-image img {
        max-width: 450px;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-card.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-image img {
        max-width: 500px;
    }
    
    .category-card {
        min-height: 250px;
    }
}

/* Extra Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1320px;
    }
}

/* ===================================================================
   UTILITIES
   =================================================================== */

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .site-header,
    .hero-slider,
    .slider-arrow,
    .nav-toggle,
    .search-form {
        display: none;
    }
    
    .product-card,
    .category-card,
    .feature-card {
        break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hide brand text, keep only logo */
.brand span {
    display: none;
}

.brand {
    min-width: auto;
    max-width: 50px;
}

/* ===================================================================
   QUICK FIX: Add this to your CSS to fix navbar on all pages
   This ensures cart button and menu toggle stay visible on small screens
   =================================================================== */

/* Hide profile icon on very small screens (320px - 424px) */
@media (max-width: 424px) {
    /* Hide profile icon to save space */
    .icon-btn[href="profile.php"] {
        display: none !important;
    }
    
    /* Ensure navbar fits properly */
    .navbar {
        gap: 0.375rem !important;
    }
    
    .nav-right {
        gap: 0.375rem !important;
    }
    
    .nav-icons {
        gap: 0.25rem !important;
    }
    
    /* Make icons slightly smaller */
    .icon-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    .icon-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Smaller toggle button */
    .nav-toggle {
        width: 22px !important;
        height: 18px !important;
    }
    
    /* Limit brand width */
    .brand {
        max-width: 120px !important;
        overflow: hidden;
    }
    
    .brand span {
        font-size: 0.9rem;
    }
    
    /* Adjust cart badge for smaller button */
    .cart-count {
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        font-size: 0.5625rem;
        padding: 0 3px;
    }
}

/* Additional refinement for 375px screens */
@media (min-width: 375px) and (max-width: 424px) {
    .navbar {
        gap: 0.5rem !important;
    }
    
    .nav-right {
        gap: 0.5rem !important;
    }
    
    .nav-icons {
        gap: 0.375rem !important;
    }
    
    .icon-btn {
        width: 34px !important;
        height: 34px !important;
    }
    
    .brand {
        max-width: 140px !important;
    }
}

/* ===================================================================
   SHOP PAGE - RESPONSIVE STYLES
   Complete responsive design for shop.php
   =================================================================== */

/* ===================================================================
   SHOP HERO SECTION
   =================================================================== */
.shop-hero {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF9F0 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    width: 100%;
}

.shop-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.shop-hero-content p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.active-filters {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.625rem 1.25rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.active-filters span {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
}

.clear-filters {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) var(--transition-timing);
}

.clear-filters:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===================================================================
   SHOP FILTERS SECTION
   =================================================================== */
.shop-filters {
    padding: var(--spacing-lg) 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 70px;
    z-index: 100;
    width: 100%;
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    width: 100%;
}

.filter-item {
    position: relative;
    width: 100%;
}

/* Filter Search */
.filter-search {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.filter-search input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    transition: border-color var(--transition-speed) var(--transition-timing);
}

.filter-search input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.filter-search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
}

.filter-search button:hover {
    background: var(--color-primary-dark);
}

/* Filter Select */
.filter-select select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition-speed) var(--transition-timing);
}

.filter-select select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.filter-select select:hover {
    border-color: var(--color-text-light);
}

/* Results Count */
.results-count {
    text-align: center;
    padding: var(--spacing-sm) 0;
}

.results-count span {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ===================================================================
   SHOP PRODUCTS SECTION
   =================================================================== */
.shop-products-section {
    padding: var(--spacing-xl) 0;
}

/* Empty Results */
.empty-results {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: 50%;
    color: var(--color-text-light);
}

.empty-results h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.empty-results p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-clear-filters {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-speed) var(--transition-timing);
}

.btn-clear-filters:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Shop Product Grid */
.shop-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    width: 100%;
}

/* Shop Product Card */
.shop-product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 1px solid var(--color-border);
    position: relative;
}

.shop-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Product Image */
.shop-product-image {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-bg-light);
    text-decoration: none;
}

.shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition-timing);
}

.shop-product-card:hover .shop-product-image img {
    transform: scale(1.05);
}

.shop-product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    transition: all var(--transition-speed) var(--transition-timing);
    opacity: 0;
    transform: translateY(-10px);
    z-index: 2;
}

.shop-product-card:hover .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* Product Info */
.shop-product-info {
    padding: var(--spacing-md);
}

.shop-product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.shop-product-info h3 a {
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--transition-speed) var(--transition-timing);
}

.shop-product-info h3 a:hover {
    color: var(--color-primary);
}

/* Product Rating */
.shop-product-rating {
    margin-bottom: var(--spacing-xs);
}

.shop-product-rating .stars {
    display: flex;
    gap: 2px;
}

.shop-product-rating .star {
    color: #FFD700;
    font-size: 0.875rem;
}

.shop-product-rating .star:not(.filled) {
    color: var(--color-border);
}

/* Product Price */
.shop-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* Buy Button */
.shop-buy-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: var(--color-text);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-speed) var(--transition-timing);
}

.shop-buy-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS - SHOP PAGE
   =================================================================== */

/* Extra Small Mobile - 320px */
@media (min-width: 320px) and (max-width: 374px) {
    .shop-hero {
        padding: var(--spacing-lg) 0;
    }
    
    .shop-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .shop-hero-content p {
        font-size: 0.875rem;
        padding: 0 var(--spacing-sm);
    }
    
    .active-filters {
        padding: 0.5rem 0.875rem;
        gap: 0.5rem;
    }
    
    .active-filters span,
    .clear-filters {
        font-size: 0.8125rem;
    }
    
    .shop-filters {
        padding: var(--spacing-sm) 0;
        top: 60px;
    }
    
    .filters-grid {
        gap: 0.625rem;
    }
    
    .filter-search input,
    .filter-select select {
        padding: 0.625rem 2.5rem 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .filter-search button {
        width: 32px;
        height: 32px;
    }
    
    .filter-search button svg {
        width: 16px;
        height: 16px;
    }
    
    .results-count span {
        font-size: 0.875rem;
    }
    
    .shop-products-section {
        padding: var(--spacing-lg) 0;
    }
    
    .shop-product-grid {
        gap: var(--spacing-md);
    }
    
    .shop-product-info {
        padding: var(--spacing-sm);
    }
    
    .shop-product-info h3 {
        font-size: 0.9375rem;
    }
    
    .shop-product-price {
        font-size: 1.125rem;
    }
    
    .shop-buy-btn {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .wishlist-btn {
        width: 36px;
        height: 36px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .wishlist-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .empty-icon {
        width: 60px;
        height: 60px;
    }
    
    .empty-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .empty-results h2 {
        font-size: 1.25rem;
    }
    
    .empty-results p {
        font-size: 0.9375rem;
    }
}

/* Small Mobile - 375px */
@media (min-width: 375px) and (max-width: 424px) {
    .shop-hero {
        padding: var(--spacing-lg) 0;
    }
    
    .shop-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .shop-hero-content p {
        font-size: 0.9375rem;
    }
    
    .shop-filters {
        top: 62px;
    }
    
    .filter-search input,
    .filter-select select {
        padding: 0.625rem 2.5rem 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .shop-product-grid {
        gap: var(--spacing-md);
    }
    
    .empty-icon {
        width: 70px;
        height: 70px;
    }
    
    .empty-results h2 {
        font-size: 1.375rem;
    }
}

/* Medium Mobile - 425px */
@media (min-width: 425px) and (max-width: 599px) {
    .shop-hero-content h1 {
        font-size: 1.875rem;
    }
    
    .shop-filters {
        top: 64px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-search {
        grid-column: span 2;
    }
    
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .empty-results h2 {
        font-size: 1.5rem;
    }
}

/* Small Tablets - 600px */
@media (min-width: 600px) {
    .shop-hero {
        padding: var(--spacing-xxl) 0;
    }
    
    .shop-hero-content h1 {
        font-size: 2.25rem;
    }
    
    .shop-hero-content p {
        font-size: 1.0625rem;
    }
    
    .shop-filters {
        top: 68px;
    }
    
    .filters-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .filter-search {
        grid-column: auto;
    }
    
    .results-count {
        text-align: right;
    }
    
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .empty-results {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }
    
    .empty-results h2 {
        font-size: 1.75rem;
    }
    
    .empty-results p {
        font-size: 1.0625rem;
    }
}

/* Tablets - 768px */
@media (min-width: 768px) {
    .shop-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .shop-hero-content p {
        font-size: 1.125rem;
    }
    
    .shop-filters {
        top: 70px;
    }
    
    .filters-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-lg);
    }
    
    .filters-grid {
        flex: 1;
        max-width: 800px;
    }
    
    .results-count {
        flex-shrink: 0;
        padding: 0;
        white-space: nowrap;
    }
    
    .shop-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wishlist-btn {
        opacity: 0;
    }
    
    .shop-product-card:hover .wishlist-btn {
        opacity: 1;
    }
    
    .empty-results h2 {
        font-size: 2rem;
    }
}

/* Desktop - 992px */
@media (min-width: 992px) {
    .shop-hero {
        padding: var(--spacing-xxl) 0;
    }
    
    .shop-hero-content h1 {
        font-size: 3rem;
    }
    
    .shop-hero-content p {
        font-size: 1.125rem;
        max-width: 600px;
        margin: 0 auto var(--spacing-md);
    }
    
    .active-filters {
        padding: 0.75rem 1.5rem;
        gap: var(--spacing-md);
    }
    
    .shop-filters {
        padding: var(--spacing-xl) 0;
    }
    
    .shop-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
    
    .shop-product-info {
        padding: var(--spacing-lg);
    }
    
    .shop-product-info h3 {
        font-size: 1.0625rem;
    }
    
    .empty-results {
        padding: calc(var(--spacing-xxl) * 1.5) var(--spacing-xl);
    }
    
    .empty-icon {
        width: 100px;
        height: 100px;
    }
    
    .empty-icon svg {
        width: 72px;
        height: 72px;
    }
    
    .empty-results h2 {
        font-size: 2.25rem;
    }
}

/* Large Desktop - 1200px */
@media (min-width: 1200px) {
    .shop-hero-content h1 {
        font-size: 3.5rem;
    }
    
    .shop-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .empty-results h2 {
        font-size: 2.5rem;
    }
    
    .empty-results p {
        font-size: 1.125rem;
        max-width: 500px;
    }
}

/* Extra Large Desktop - 1400px */
@media (min-width: 1400px) {
    .shop-product-grid {
        gap: var(--spacing-xxl);
    }
    
    .filters-grid {
        max-width: 900px;
    }
}

/* ===================================================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   =================================================================== */

/* Touch-friendly interactions on mobile */
@media (max-width: 767px) {
    .wishlist-btn {
        opacity: 1;
        transform: translateY(0);
    }
    
    .filter-search input,
    .filter-select select {
        min-height: 44px;
    }
    
    .shop-buy-btn {
        min-height: 44px;
    }
}

/* Prevent horizontal scroll on all mobile devices */
@media (max-width: 599px) {
    .shop-hero,
    .shop-filters,
    .shop-products-section {
        overflow-x: hidden;
    }
    
    .filters-grid,
    .shop-product-grid {
        width: 100%;
        max-width: 100%;
    }
}

/* Hide profile icon on very small screens for shop page too */
@media (max-width: 424px) {
    .icon-btn[href="profile.php"] {
        display: none !important;
    }
}

/* ===================================================================
   CRITICAL MOBILE FIX - PRODUCTS GRID
   FORCES GRID LAYOUT ON ALL MOBILE DEVICES
   =================================================================== */

/* MOBILE FIRST - 1 Column on phones */
@media screen and (max-width: 599px) {
    .products-grid,
    .shop-product-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 0 !important;
    }
    
    .product-card,
    .shop-product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .product-image,
    .shop-product-image {
        aspect-ratio: 3 / 4 !important;
        width: 100% !important;
        max-height: 400px !important;
    }
    
    .product-image img,
    .shop-product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Reduce padding on mobile */
    .product-info,
    .shop-product-info {
        padding: 1rem !important;
    }
    
    .product-info h3,
    .shop-product-info h3 {
        font-size: 0.9375rem !important;
    }
    
    .product-price,
    .shop-product-price {
        font-size: 1.125rem !important;
    }
    
    .buy-btn,
    .shop-buy-btn {
        padding: 0.625rem !important;
        font-size: 0.875rem !important;
    }
}

/* SMALL PHONES - 375px to 424px - 2 Columns */
@media screen and (min-width: 375px) and (max-width: 424px) {
    .products-grid,
    .shop-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .product-card,
    .shop-product-card {
        width: 100% !important;
    }
}

/* MEDIUM PHONES - 425px to 599px - 2 Columns */
@media screen and (min-width: 425px) and (max-width: 599px) {
    .products-grid,
    .shop-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .product-card,
    .shop-product-card {
        width: 100% !important;
    }
}

/* TABLETS - 600px to 767px - 2 Columns */
@media screen and (min-width: 600px) and (max-width: 767px) {
    .products-grid,
    .shop-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* TABLETS - 768px to 991px - 3 Columns */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .products-grid,
    .shop-product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* DESKTOP - 992px and up - 4 Columns */
@media screen and (min-width: 992px) {
    .products-grid,
    .shop-product-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2rem !important;
    }
}

/* LARGE DESKTOP - 1200px+ - 4 Columns */
@media screen and (min-width: 1200px) {
    .products-grid,
    .shop-product-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2rem !important;
    }
}

/* ===================================================================
   PRODUCT PAGE - FULLY RESPONSIVE STYLES
   Add these styles to the end of your style.css file
   =================================================================== */

/* ===================================================================
   PRODUCT PAGE - BASE STYLES
   =================================================================== */
.product-page {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
    min-height: calc(100vh - 70px);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ===================================================================
   PRODUCT GALLERY
   =================================================================== */
.product-gallery {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.product-gallery img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--color-text-lighter);
    text-align: center;
    padding: var(--spacing-xl);
}

.no-image-placeholder svg {
    opacity: 0.3;
}

.no-image-placeholder p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* ===================================================================
   PRODUCT META
   =================================================================== */
.product-meta {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.product-meta h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

/* Price Display */
.product-price-display {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #F1F8E9 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
}

.price-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.price-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

/* Product Description */
.product-description {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

/* ===================================================================
   SIZE SELECTION SECTION
   =================================================================== */
.size-selection-section {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.size-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Size Row */
.size-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-md);
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
}

.size-row:hover:not(.disabled) {
    border-color: var(--color-text-light);
    box-shadow: var(--shadow-sm);
}

.size-row.selected {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.1);
}

.size-row.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--color-bg-light);
}

/* Size Info */
.size-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

.size-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.size-checkbox:disabled {
    cursor: not-allowed;
}

.size-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.size-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.size-stock {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.size-row.disabled .size-stock {
    color: var(--color-error);
    font-weight: 500;
}

.size-row.selected .size-name {
    color: var(--color-primary);
}

.size-row.selected .size-price {
    color: var(--color-primary);
}

/* Size Price */
.size-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 0.25rem;
}

/* ===================================================================
   QUANTITY CONTROLS
   =================================================================== */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    flex-shrink: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-speed) var(--transition-timing);
    padding: 0;
}

.qty-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 0.25rem;
}

.qty-input:disabled {
    color: var(--color-text-lighter);
}

.qty-input:focus {
    outline: none;
    background: white;
    border-radius: var(--radius-sm);
}

/* Remove spinner arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* ===================================================================
   FORM ERROR
   =================================================================== */
.form-error {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: #FEE2E2;
    color: var(--color-error);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-error);
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
    animation: shake 0.5s ease-in-out;
}

.form-error svg {
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===================================================================
   PRODUCT ACTIONS (BUTTONS)
   =================================================================== */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    min-height: 48px;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--color-border);
    border-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===================================================================
   PRODUCT BENEFITS
   =================================================================== */
.product-benefits {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--color-border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.benefit-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-speed) var(--transition-timing);
}

.benefit-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.benefit-content {
    flex: 1;
}

.benefit-content strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.benefit-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* ===================================================================
   EMPTY STATE
   =================================================================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.empty-state svg {
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-lighter);
}

.empty-state .muted {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS - PRODUCT PAGE
   =================================================================== */

/* ===================================================================
   EXTRA SMALL MOBILE - 320px to 374px
   =================================================================== */
@media (min-width: 320px) and (max-width: 374px) {
    .product-page {
        padding: var(--spacing-md) 0;
    }
    
    .product-layout {
        gap: var(--spacing-md);
    }
    
    /* Gallery */
    .product-gallery {
        padding: var(--spacing-sm);
        min-height: 250px;
    }
    
    /* Meta */
    .product-meta {
        padding: var(--spacing-sm);
    }
    
    .product-meta h1 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Price Display */
    .product-price-display {
        padding: var(--spacing-sm);
    }
    
    .price-label {
        font-size: 0.75rem;
    }
    
    .price-value {
        font-size: 1.375rem;
    }
    
    /* Description */
    .product-description {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    /* Size Selection */
    .section-title {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .size-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }
    
    .size-info {
        grid-column: 1;
        gap: 0.625rem;
    }
    
    .size-checkbox {
        width: 18px;
        height: 18px;
    }
    
    .size-name {
        font-size: 0.875rem;
    }
    
    .size-stock {
        font-size: 0.75rem;
    }
    
    .size-price {
        font-size: 1rem;
        grid-column: 1;
        justify-self: end;
        margin-top: var(--spacing-xs);
    }
    
    .qty-controls {
        grid-column: 1;
        justify-self: center;
        margin-top: var(--spacing-xs);
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
    }
    
    .qty-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .qty-input {
        width: 45px;
        font-size: 0.875rem;
    }
    
    /* Buttons */
    .product-actions {
        gap: 0.625rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
        min-height: 44px;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Benefits */
    .product-benefits {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }
    
    .benefit-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .benefit-icon {
        font-size: 1.75rem;
    }
    
    .benefit-content strong {
        font-size: 0.875rem;
    }
    
    .benefit-content p {
        font-size: 0.8125rem;
    }
}

/* ===================================================================
   SMALL MOBILE - 375px to 424px
   =================================================================== */
@media (min-width: 375px) and (max-width: 424px) {
    .product-page {
        padding: var(--spacing-md) 0;
    }
    
    .product-layout {
        gap: var(--spacing-lg);
    }
    
    /* Gallery */
    .product-gallery {
        padding: var(--spacing-md);
        min-height: 280px;
    }
    
    /* Meta */
    .product-meta {
        padding: var(--spacing-md);
    }
    
    .product-meta h1 {
        font-size: 1.5rem;
    }
    
    /* Price */
    .price-value {
        font-size: 1.5rem;
    }
    
    /* Size Row */
    .size-row {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
    }
    
    .size-price {
        justify-self: end;
        margin-top: var(--spacing-xs);
    }
    
    .qty-controls {
        justify-self: center;
        margin-top: var(--spacing-xs);
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
    }
    
    .qty-input {
        width: 48px;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    /* Benefits */
    .benefit-card {
        flex-direction: row;
        text-align: left;
    }
    
    .benefit-icon {
        font-size: 1.875rem;
    }
}

/* ===================================================================
   MEDIUM MOBILE - 425px to 599px
   =================================================================== */
@media (min-width: 425px) and (max-width: 599px) {
    .product-gallery {
        min-height: 320px;
    }
    
    .product-meta h1 {
        font-size: 1.625rem;
    }
    
    .price-value {
        font-size: 1.625rem;
    }
    
    /* Size Row - Can fit in one row on larger phones */
    .size-row {
        grid-template-columns: 1fr auto auto;
        padding: var(--spacing-md);
    }
    
    .size-price {
        margin-top: 0;
    }
    
    .qty-controls {
        margin-top: 0;
        justify-self: auto;
    }
    
    .qty-btn {
        width: 32px;
        height: 32px;
    }
}

/* ===================================================================
   SMALL TABLET - 600px to 767px
   =================================================================== */
@media (min-width: 600px) {
    .product-page {
        padding: var(--spacing-lg) 0;
    }
    
    .product-layout {
        gap: var(--spacing-xl);
    }
    
    /* Gallery */
    .product-gallery {
        padding: var(--spacing-xl);
        min-height: 400px;
    }
    
    /* Meta */
    .product-meta {
        padding: var(--spacing-xl);
    }
    
    .product-meta h1 {
        font-size: 2rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    /* Size Row */
    .size-row {
        grid-template-columns: 1fr auto auto;
        padding: var(--spacing-md);
    }
    
    /* Buttons */
    .product-actions {
        flex-direction: row;
        gap: var(--spacing-md);
    }
    
    .btn {
        flex: 1;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   TABLET - 768px to 991px
   =================================================================== */
@media (min-width: 768px) {
    .product-page {
        padding: var(--spacing-xl) 0;
    }
    
    /* Two Column Layout */
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }
    
    /* Gallery - Sticky */
    .product-gallery {
        position: sticky;
        top: calc(70px + var(--spacing-md));
        min-height: 500px;
    }
    
    .product-meta h1 {
        font-size: 2.25rem;
    }
    
    .price-value {
        font-size: 2.25rem;
    }
    
    .product-description {
        font-size: 1rem;
    }
    
    /* Buttons */
    .product-actions {
        flex-direction: row;
    }
    
    .btn {
        flex: 1;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   LAPTOP - 992px to 1199px
   =================================================================== */
@media (min-width: 992px) {
    .product-page {
        padding: var(--spacing-xxl) 0;
    }
    
    .product-layout {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .product-gallery {
        padding: var(--spacing-xxl);
        min-height: 550px;
    }
    
    .product-meta {
        padding: var(--spacing-xxl);
    }
    
    .product-meta h1 {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    /* Size Row */
    .size-row {
        padding: var(--spacing-lg);
    }
    
    .size-name {
        font-size: 1rem;
    }
    
    .size-stock {
        font-size: 0.875rem;
    }
    
    .size-price {
        font-size: 1.25rem;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: var(--spacing-lg);
    }
    
    .benefit-icon {
        font-size: 2.25rem;
    }
    
    .benefit-content strong {
        font-size: 1rem;
    }
    
    .benefit-content p {
        font-size: 0.9375rem;
    }
}

/* ===================================================================
   DESKTOP - 1200px and up
   =================================================================== */
@media (min-width: 1200px) {
    .product-layout {
        grid-template-columns: 1.3fr 1fr;
        gap: var(--spacing-xxl);
    }
    
    .product-gallery {
        min-height: 600px;
    }
    
    .product-gallery img {
        max-width: 550px;
    }
    
    .product-meta h1 {
        font-size: 2.75rem;
    }
    
    .price-value {
        font-size: 2.75rem;
    }
}

/* ===================================================================
   EXTRA LARGE DESKTOP - 1400px and up
   =================================================================== */
@media (min-width: 1400px) {
    .product-gallery img {
        max-width: 600px;
    }
}

/* ===================================================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================================================== */
@media (max-width: 767px) {
    /* Ensure all interactive elements are touch-friendly */
    .size-row {
        min-height: 44px;
    }
    
    .size-checkbox {
        min-width: 24px;
        min-height: 24px;
    }
    
    .qty-btn {
        min-width: 32px;
        min-height: 32px;
    }
    
    .btn {
        min-height: 48px;
    }
}

/* ===================================================================
   LANDSCAPE ORIENTATION
   =================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .product-gallery {
        min-height: 250px;
    }
    
    .product-meta h1 {
        font-size: 1.5rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .product-actions,
    .site-header,
    .site-footer {
        display: none !important;
    }
    
    .product-page {
        padding: 0;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .product-gallery,
    .product-meta {
        box-shadow: none;
        border: 1px solid var(--color-border);
        page-break-inside: avoid;
    }
}

/* ===================================================================
   HIGH CONTRAST MODE
   =================================================================== */
@media (prefers-contrast: high) {
    .size-row,
    .benefit-card,
    .product-gallery,
    .product-meta {
        border: 2px solid currentColor;
    }
}

/* ===================================================================
   SHOPPING CART - RESPONSIVE STYLES
   Add these styles to your style.css file
   Mobile-First Approach | Fully Responsive
   =================================================================== */

/* ===================================================================
   CART PAGE BASE STYLES
   =================================================================== */
.cart-page {
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
}

/* Cart Header */
.cart-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.cart-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.cart-header-subtitle {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ===================================================================
   FLASH MESSAGES
   =================================================================== */
.flash-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    animation: slideDown 0.3s ease-out;
    transition: opacity 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash-message svg {
    flex-shrink: 0;
}

.flash-message span {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    color: inherit;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ===================================================================
   EMPTY CART STATE
   =================================================================== */
.empty-cart {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.empty-icon {
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-lighter);
}

.empty-cart h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.empty-cart .muted {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* ===================================================================
   CART LAYOUT
   =================================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ===================================================================
   CART TABLE (Desktop View)
   =================================================================== */
.cart-table-wrapper {
    overflow-x: auto;
    display: none; /* Hidden on mobile, shown on tablets+ */
    -webkit-overflow-scrolling: touch;
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table thead {
    background: var(--color-bg-light);
}

.cart-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cart-table th.col-product {
    min-width: 300px;
}

.cart-table th.col-price,
.cart-table th.col-quantity,
.cart-table th.col-subtotal {
    text-align: center;
    min-width: 120px;
}

.cart-table th.col-actions {
    width: 60px;
    text-align: center;
}

.cart-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s ease;
}

.cart-table tbody tr:hover {
    background: var(--color-bg-light);
}

.cart-table td {
    padding: var(--spacing-md);
    vertical-align: middle;
}

/* Product Column */
.cart-product {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cart-product-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-details {
    flex: 1;
    min-width: 0;
}

.cart-product-name {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 0.25rem;
}

.cart-product-name:hover {
    color: var(--color-primary);
}

.cart-product-meta {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cart-stock-warning {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ff6b6b;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.cart-stock-warning svg {
    flex-shrink: 0;
}

/* Price, Subtotal Columns */
.cart-item-price,
.cart-item-quantity,
.cart-item-subtotal {
    text-align: center;
}

.cart-price,
.cart-subtotal {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

/* Quantity Controls */
.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.qty-btn:hover {
    background: var(--color-primary);
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-qty-input {
    width: 50px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9375rem;
    background: white;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-qty-input:focus {
    outline: none;
    background: var(--color-bg-light);
}

/* Remove Button */
.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-light);
    transition: all 0.2s ease;
    text-decoration: none;
}

.cart-remove-btn:hover {
    background: #fee;
    color: #d32f2f;
}

/* ===================================================================
   MOBILE CARDS VIEW
   =================================================================== */
.cart-mobile-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.cart-mobile-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.cart-mobile-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.cart-mobile-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-mobile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-mobile-info {
    flex: 1;
    min-width: 0;
}

.cart-mobile-name {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.cart-mobile-name:hover {
    color: var(--color-primary);
}

.cart-mobile-meta {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.cart-mobile-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.cart-mobile-remove:hover {
    background: #fee;
    color: #d32f2f;
}

.cart-mobile-body {
    padding: var(--spacing-md);
}

.cart-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.cart-mobile-row.cart-mobile-total {
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.cart-mobile-label {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.cart-mobile-value {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.cart-mobile-total .cart-mobile-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

.cart-mobile-total .cart-mobile-value {
    color: var(--color-primary);
    font-size: 1.125rem;
}

/* ===================================================================
   CART ACTIONS
   =================================================================== */
.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0;
    justify-content: center;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-text {
    background: transparent;
    color: var(--color-text-light);
    border-color: transparent;
    padding: 0.75rem 1rem;
}

.btn-text:hover {
    color: #d32f2f;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================================================
   CART SUMMARY
   =================================================================== */
.cart-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    position: sticky;
    top: calc(var(--spacing-lg) + 70px); /* Account for header height */
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
}

.cart-summary-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    color: var(--color-text);
}

.summary-row span:first-child {
    color: var(--color-text-light);
}

.summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--spacing-sm) 0;
}

.summary-total {
    font-size: 1.125rem;
    font-weight: 700;
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.summary-total span:last-child {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.text-muted {
    color: var(--color-text-lighter);
    font-size: 0.8125rem;
}

.cart-summary-actions {
    margin-top: var(--spacing-md);
}

/* Trust Badges */
.cart-trust-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.trust-badge svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    color: var(--color-text-lighter);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Extra Small Mobile - 320px */
@media (min-width: 320px) and (max-width: 374px) {
    .cart-page {
        padding: var(--spacing-lg) 0;
    }
    
    .cart-header h1 {
        font-size: 1.5rem;
    }
    
    .cart-header-subtitle {
        font-size: 0.875rem;
    }
    
    .flash-message {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .cart-mobile-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-mobile-name {
        font-size: 0.875rem;
    }
    
    .cart-mobile-meta {
        font-size: 0.75rem;
    }
    
    .cart-mobile-body {
        padding: var(--spacing-sm);
    }
    
    .cart-mobile-label,
    .cart-mobile-value {
        font-size: 0.8125rem;
    }
    
    .cart-mobile-total .cart-mobile-value {
        font-size: 1rem;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
    }
    
    .qty-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .cart-qty-input {
        width: 40px;
        height: 28px;
        font-size: 0.875rem;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }
    
    .cart-summary {
        padding: var(--spacing-md);
        position: static;
    }
    
    .cart-summary-title {
        font-size: 1.125rem;
    }
    
    .summary-total {
        font-size: 1rem;
    }
    
    .summary-total span:last-child {
        font-size: 1.25rem;
    }
    
    .cart-stock-warning {
        font-size: 0.75rem;
    }
    
    .empty-cart {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .empty-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .empty-cart h2 {
        font-size: 1.25rem;
    }
}

/* Small Mobile - 375px */
@media (min-width: 375px) and (max-width: 424px) {
    .cart-page {
        padding: var(--spacing-xl) 0;
    }
    
    .cart-header h1 {
        font-size: 1.625rem;
    }
    
    .cart-mobile-image {
        width: 65px;
        height: 65px;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
    }
    
    .cart-qty-input {
        width: 45px;
        height: 30px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .cart-summary {
        position: static;
    }
}

/* Medium Mobile - 425px */
@media (min-width: 425px) and (max-width: 599px) {
    .cart-header h1 {
        font-size: 1.75rem;
    }
    
    .cart-mobile-cards {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1 1 auto;
        min-width: 150px;
    }
    
    .btn-text {
        flex-basis: 100%;
    }
}

/* Small Tablets - 600px */
@media (min-width: 600px) and (max-width: 767px) {
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .cart-layout {
        gap: var(--spacing-lg);
    }
    
    .cart-mobile-cards {
        grid-template-columns: 1fr;
    }
    
    .cart-mobile-card {
        display: flex;
        flex-direction: column;
    }
    
    .cart-mobile-header {
        padding: var(--spacing-lg);
    }
    
    .cart-mobile-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-mobile-body {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .cart-actions {
        justify-content: flex-start;
    }
    
    .btn {
        width: auto;
    }
    
    .cart-summary {
        position: static;
    }
}

/* Tablets - 768px */
@media (min-width: 768px) {
    /* Show table view, hide mobile cards */
    .cart-table-wrapper {
        display: block;
    }
    
    .cart-mobile-cards {
        display: none;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .cart-header h1 {
        font-size: 2.25rem;
    }
    
    .cart-actions {
        justify-content: flex-start;
    }
    
    .btn {
        width: auto;
    }
    
    .cart-summary {
        position: static;
    }
}

/* Laptops - 992px */
@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr 380px;
        gap: var(--spacing-xl);
    }
    
    .cart-summary {
        position: sticky;
        top: calc(var(--spacing-lg) + 70px);
    }
    
    .cart-product-image {
        width: 90px;
        height: 90px;
    }
    
    .cart-actions {
        padding-top: var(--spacing-lg);
    }
}

/* Desktops - 1200px */
@media (min-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr 420px;
        gap: var(--spacing-xxl);
    }
    
    .cart-header h1 {
        font-size: 2.5rem;
    }
    
    .cart-product-image {
        width: 100px;
        height: 100px;
    }
    
    .cart-summary {
        padding: var(--spacing-xl);
    }
    
    .cart-summary-title {
        font-size: 1.375rem;
    }
}

/* Extra Large Desktops - 1400px+ */
@media (min-width: 1400px) {
    .cart-page {
        padding: var(--spacing-xxl) 0;
    }
    
    .cart-header {
        margin-bottom: var(--spacing-xxl);
    }
    
    .cart-layout {
        gap: 3rem;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .cart-page {
        padding: 1rem 0;
    }
    
    .site-header,
    .site-footer,
    .cart-actions,
    .cart-remove-btn,
    .flash-message,
    .qty-btn,
    .nav-toggle {
        display: none !important;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-table-wrapper {
        display: block;
    }
    
    .cart-mobile-cards {
        display: none;
    }
    
    .cart-table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cart-summary {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}

/* ===================================================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   =================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .qty-btn {
        width: 40px;
        height: 40px;
    }
    
    .cart-remove-btn,
    .cart-mobile-remove {
        width: 44px;
        height: 44px;
    }
    
    .btn {
        padding: 0.875rem 1.75rem;
        min-height: 44px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cart-table {
        border: 2px solid currentColor;
    }
    
    .cart-mobile-card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
    /* Example:
    .cart-table {
        background: #1a1a1a;
        color: #ffffff;
    }
    */
}

/* ===================================================================
   CHECKOUT PAGE - RESPONSIVE STYLES
   Add these styles to your style.css file
   Mobile-First Approach | Fully Responsive
   =================================================================== */

/* ===================================================================
   CHECKOUT PAGE BASE STYLES
   =================================================================== */
.checkout-page {
    padding: var(--spacing-xl) 0;
    min-height: 70vh;
    background: var(--color-bg-light);
}

/* ===================================================================
   CHECKOUT HEADER
   =================================================================== */
.checkout-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.checkout-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.checkout-subtitle {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ===================================================================
   PROGRESS STEPS
   =================================================================== */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-number {
    font-weight: 700;
    color: var(--color-text-light);
    font-size: 1rem;
}

.step-check {
    display: none;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Active Step */
.checkout-step.active .step-indicator {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.2);
}

.checkout-step.active .step-number {
    color: white;
}

.checkout-step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

/* Completed Step */
.checkout-step.completed .step-indicator {
    background: var(--color-success);
    border-color: var(--color-success);
}

.checkout-step.completed .step-number {
    display: none;
}

.checkout-step.completed .step-check {
    display: block;
}

.checkout-step.completed .step-label {
    color: var(--color-success);
}

/* Step Divider */
.step-divider {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin: 0 var(--spacing-xs);
    flex-shrink: 0;
}

/* ===================================================================
   ERROR MESSAGES
   =================================================================== */
.checkout-error {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-icon {
    flex-shrink: 0;
    color: #f56565;
}

.error-content {
    flex: 1;
}

.error-content strong {
    display: block;
    color: #c53030;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.error-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-content li {
    color: #742a2a;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.25rem;
}

.error-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f56565;
    font-weight: bold;
}

/* ===================================================================
   CHECKOUT LAYOUT
   =================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* ===================================================================
   CHECKOUT CARDS
   =================================================================== */
.checkout-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: var(--spacing-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.card-header svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* ===================================================================
   FORM STYLES
   =================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.required {
    color: #e53e3e;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-lighter);
}

.form-input.error,
.form-textarea.error {
    border-color: #f56565;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===================================================================
   PAYMENT OPTIONS
   =================================================================== */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-option:hover {
    border-color: var(--color-primary);
    background: rgba(212, 165, 116, 0.02);
}

.payment-radio {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.payment-radio:checked ~ .payment-option-content {
    color: var(--color-text);
}

.payment-option:has(.payment-radio:checked) {
    border-color: var(--color-primary);
    background: rgba(212, 165, 116, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.payment-option-content {
    flex: 1;
}

.payment-option-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.payment-option-header svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.payment-option-title {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

.payment-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-option-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* ===================================================================
   ORDER SUMMARY
   =================================================================== */
.order-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    position: sticky;
    top: calc(var(--spacing-lg) + 70px);
}

.order-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.order-summary-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.items-count {
    color: var(--color-text-light);
    font-size: 0.875rem;
    background: var(--color-bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* Summary Items */
.summary-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.summary-items::-webkit-scrollbar {
    width: 6px;
}

.summary-items::-webkit-scrollbar-track {
    background: var(--color-bg-light);
    border-radius: 3px;
}

.summary-items::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.summary-items::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.summary-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-details {
    flex: 1;
    min-width: 0;
}

.summary-item-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.summary-item-meta {
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

.summary-item-price {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

/* Summary Totals */
.summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--spacing-md) 0;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
}

.summary-label {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.summary-value {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.summary-row.total {
    padding-top: var(--spacing-sm);
    font-size: 1.125rem;
}

.summary-row.total .summary-label {
    font-weight: 700;
    color: var(--color-text);
}

.summary-row.total .summary-value {
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* ===================================================================
   PLACE ORDER BUTTON
   =================================================================== */
.place-order-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.place-order-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
}

.place-order-btn:active {
    transform: translateY(0);
}

.place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===================================================================
   CHECKOUT DISCLAIMER
   =================================================================== */
.checkout-disclaimer {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

/* ===================================================================
   TRUST BADGES
   =================================================================== */
.checkout-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-text-light);
    font-size: 0.75rem;
}

.trust-badge svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    color: var(--color-text-lighter);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Extra Small Mobile - 320px */
@media (min-width: 320px) and (max-width: 374px) {
    .checkout-page {
        padding: var(--spacing-md) 0;
    }
    
    .checkout-header h1 {
        font-size: 1.5rem;
    }
    
    .checkout-subtitle {
        font-size: 0.875rem;
    }
    
    /* Progress Steps - Compact */
    .checkout-steps {
        padding: var(--spacing-sm) 0;
        margin-bottom: var(--spacing-md);
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
    }
    
    .step-number {
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-divider {
        width: 40px;
    }
    
    /* Cards */
    .checkout-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .card-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }
    
    .card-header h2 {
        font-size: 1.125rem;
    }
    
    /* Form */
    .form-grid {
        gap: var(--spacing-sm);
    }
    
    .form-input,
    .form-textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    /* Payment Options */
    .payment-option {
        padding: var(--spacing-sm);
    }
    
    .payment-option-title {
        font-size: 0.9375rem;
    }
    
    .payment-badge {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
    }
    
    /* Order Summary */
    .order-summary {
        padding: var(--spacing-md);
        position: static;
    }
    
    .order-summary-header h3 {
        font-size: 1.125rem;
    }
    
    .summary-item-image {
        width: 50px;
        height: 50px;
    }
    
    .summary-item-name {
        font-size: 0.875rem;
    }
    
    .summary-row.total {
        font-size: 1rem;
    }
    
    .summary-row.total .summary-value {
        font-size: 1.25rem;
    }
    
    .place-order-btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    .trust-badge {
        font-size: 0.6875rem;
    }
    
    /* Error Message */
    .checkout-error {
        flex-direction: column;
        padding: var(--spacing-sm);
    }
}

/* Small Mobile - 375px */
@media (min-width: 375px) and (max-width: 424px) {
    .checkout-page {
        padding: var(--spacing-lg) 0;
    }
    
    .checkout-header h1 {
        font-size: 1.625rem;
    }
    
    .step-indicator {
        width: 36px;
        height: 36px;
    }
    
    .step-divider {
        width: 50px;
    }
    
    .checkout-card {
        padding: var(--spacing-md);
    }
    
    .card-header h2 {
        font-size: 1.125rem;
    }
    
    .order-summary {
        position: static;
    }
    
    .summary-item-image {
        width: 55px;
        height: 55px;
    }
}

/* Medium Mobile - 425px */
@media (min-width: 425px) and (max-width: 599px) {
    .checkout-header h1 {
        font-size: 1.75rem;
    }
    
    .checkout-card {
        padding: var(--spacing-lg);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-summary {
        position: static;
    }
}

/* Small Tablets - 600px */
@media (min-width: 600px) and (max-width: 767px) {
    .checkout-header h1 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout-layout {
        gap: var(--spacing-xl);
    }
    
    .order-summary {
        position: static;
    }
}

/* Tablets - 768px */
@media (min-width: 768px) {
    .checkout-page {
        padding: var(--spacing-xxl) 0;
    }
    
    .checkout-header h1 {
        font-size: 2.25rem;
    }
    
    .checkout-steps {
        margin-bottom: var(--spacing-xxl);
    }
    
    .step-indicator {
        width: 48px;
        height: 48px;
    }
    
    .step-number {
        font-size: 1.125rem;
    }
    
    .step-label {
        font-size: 1rem;
    }
    
    .step-divider {
        width: 80px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .order-summary {
        position: static;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}

/* Laptops - 992px */
@media (min-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--spacing-xxl);
    }
    
    .order-summary {
        position: sticky;
        top: calc(var(--spacing-lg) + 70px);
    }
    
    .checkout-card {
        padding: var(--spacing-xl);
    }
    
    .card-header h2 {
        font-size: 1.375rem;
    }
}

/* Desktops - 1200px */
@media (min-width: 1200px) {
    .checkout-page {
        padding: 3rem 0;
    }
    
    .checkout-header {
        margin-bottom: 3rem;
    }
    
    .checkout-header h1 {
        font-size: 2.5rem;
    }
    
    .checkout-layout {
        grid-template-columns: 1.6fr 1fr;
        gap: 3rem;
    }
    
    .order-summary {
        padding: var(--spacing-xl);
    }
    
    .order-summary-header h3 {
        font-size: 1.375rem;
    }
    
    .summary-item-image {
        width: 70px;
        height: 70px;
    }
}

/* Extra Large Desktops - 1400px+ */
@media (min-width: 1400px) {
    .checkout-page {
        padding: 4rem 0;
    }
    
    .checkout-header {
        margin-bottom: 4rem;
    }
    
    .checkout-layout {
        gap: 4rem;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .checkout-page {
        padding: 1rem 0;
        background: white;
    }
    
    .site-header,
    .site-footer,
    .checkout-steps,
    .place-order-btn,
    .checkout-trust,
    .nav-toggle {
        display: none !important;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-card,
    .order-summary {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .checkout-error {
        border: 2px solid #000;
    }
}

/* ===================================================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   =================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .form-input,
    .form-textarea,
    .payment-option {
        min-height: 44px;
    }
    
    .place-order-btn {
        min-height: 48px;
        padding: 1.125rem;
    }
    
    .payment-radio {
        width: 24px;
        height: 24px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .checkout-card,
    .order-summary {
        border: 2px solid currentColor;
    }
    
    .form-input,
    .form-textarea,
    .payment-option {
        border-width: 2px;
    }
    
    .place-order-btn {
        border: 2px solid currentColor;
    }
}

/* ===================================================================
   LOADING STATE (OPTIONAL)
   =================================================================== */
.place-order-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.place-order-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================================================
   ORDER SUCCESS PAGE - FULLY RESPONSIVE STYLES
   Add these to your style.css file
   =================================================================== */

/* ===================================================================
   ORDER SUCCESS PAGE - BASE STYLES
   =================================================================== */
.order-success-page {
    min-height: calc(100vh - 70px);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #F1F8E9 0%, #E8F5E9 50%, #F1F8E9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success Card Container */
.success-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xxl) var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status-based card styling */
.success-card.success {
    border-top: 4px solid var(--color-success);
}

.success-card.error {
    border-top: 4px solid var(--color-error);
}

.success-card.warning {
    border-top: 4px solid var(--color-warning);
}

/* Success Icon Wrapper */
.success-icon-wrapper {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.success-icon-wrapper.animate .success-icon {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success Icon */
.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.success-icon.success {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: var(--color-success);
}

.success-icon.error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: var(--color-error);
}

.success-icon.warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: var(--color-warning);
}

.success-icon svg {
    width: 56px;
    height: 56px;
    stroke-width: 2.5;
}

/* Success Title */
.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

/* Success Message */
.success-message {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Order Reference Box */
.order-ref-box {
    background: var(--color-bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    border: 2px dashed var(--color-border);
}

.order-ref-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-ref-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Order Details Box */
.order-details-box {
    background: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.order-details-box h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
    gap: var(--spacing-md);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.item-size {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.item-qty-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.item-qty {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.item-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Order Total */
.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    border-top: 2px solid var(--color-primary);
    font-size: 1.125rem;
    font-weight: 700;
}

.total-amount {
    color: var(--color-primary);
    font-size: 1.375rem;
}

/* Success Actions */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.success-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    min-height: 48px;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Support Text */
.support-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.support-text svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.support-text p {
    margin: 0;
    line-height: 1.5;
}

.support-text a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) var(--transition-timing);
}

.support-text a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS - ORDER SUCCESS PAGE
   =================================================================== */

/* ===================================================================
   EXTRA SMALL MOBILE - 320px to 374px
   =================================================================== */
@media (min-width: 320px) and (max-width: 374px) {
    .order-success-page {
        padding: var(--spacing-md) 0;
    }

    .success-card {
        padding: var(--spacing-lg) var(--spacing-sm);
        border-radius: var(--radius-lg);
    }

    /* Icon */
    .success-icon {
        width: 70px;
        height: 70px;
    }

    .success-icon svg {
        width: 40px;
        height: 40px;
    }

    /* Title */
    .success-title {
        font-size: 1.375rem;
        margin-bottom: var(--spacing-sm);
    }

    /* Message */
    .success-message {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-md);
    }

    /* Order Reference */
    .order-ref-box {
        padding: var(--spacing-sm);
    }

    .order-ref-label {
        font-size: 0.75rem;
    }

    .order-ref-value {
        font-size: 1rem;
        word-break: break-all;
    }

    /* Order Details */
    .order-details-box {
        padding: var(--spacing-sm);
    }

    .order-details-box h2 {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .order-item {
        flex-direction: column;
        padding: var(--spacing-xs);
    }

    .item-name {
        font-size: 0.875rem;
    }

    .item-size {
        font-size: 0.75rem;
    }

    .item-qty-price {
        width: 100%;
        justify-content: space-between;
        padding-top: var(--spacing-xs);
        border-top: 1px solid var(--color-border);
    }

    .item-price {
        font-size: 0.875rem;
    }

    .order-total {
        padding: var(--spacing-sm);
        font-size: 1rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .total-amount {
        font-size: 1.125rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }

    .btn svg {
        width: 16px;
        height: 16px;
    }

    /* Support Text */
    .support-text {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm);
        font-size: 0.8125rem;
    }
}

/* ===================================================================
   SMALL MOBILE - 375px to 424px
   =================================================================== */
@media (min-width: 375px) and (max-width: 424px) {
    .order-success-page {
        padding: var(--spacing-lg) 0;
    }

    .success-card {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    /* Icon */
    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon svg {
        width: 48px;
        height: 48px;
    }

    /* Title */
    .success-title {
        font-size: 1.5rem;
    }

    /* Message */
    .success-message {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-lg);
    }

    /* Order Reference */
    .order-ref-value {
        font-size: 1.125rem;
    }

    /* Order Details */
    .order-details-box {
        padding: var(--spacing-md);
    }

    .order-item {
        flex-direction: column;
    }

    .item-qty-price {
        width: 100%;
        justify-content: space-between;
        padding-top: var(--spacing-xs);
        border-top: 1px solid var(--color-border);
    }

    /* Buttons */
    .btn {
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.9375rem 2rem;
        font-size: 0.9375rem;
    }

    /* Support Text */
    .support-text {
        flex-direction: row;
        font-size: 0.875rem;
    }
}

/* ===================================================================
   LARGE MOBILE - 425px to 599px
   =================================================================== */
@media (min-width: 425px) and (max-width: 599px) {
    .success-card {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    /* Icon */
    .success-icon {
        width: 90px;
        height: 90px;
    }

    .success-icon svg {
        width: 52px;
        height: 52px;
    }

    /* Title */
    .success-title {
        font-size: 1.75rem;
    }

    /* Message */
    .success-message {
        font-size: 1rem;
    }

    /* Order Item - Can fit in one row */
    .order-item {
        flex-direction: row;
    }

    .item-qty-price {
        width: auto;
        padding-top: 0;
        border-top: none;
    }

    /* Buttons */
    .success-actions {
        flex-direction: row;
    }

    .success-actions .btn {
        flex: 1;
    }
}

/* ===================================================================
   SMALL TABLET - 600px to 767px
   =================================================================== */
@media (min-width: 600px) {
    .order-success-page {
        padding: var(--spacing-xxl) 0;
    }

    .success-card {
        padding: var(--spacing-xxl) var(--spacing-xl);
    }

    /* Icon */
    .success-icon {
        width: 100px;
        height: 100px;
    }

    .success-icon svg {
        width: 56px;
        height: 56px;
    }

    /* Title */
    .success-title {
        font-size: 2rem;
    }

    /* Message */
    .success-message {
        font-size: 1.0625rem;
    }

    /* Order Details */
    .order-details-box {
        padding: var(--spacing-lg);
    }

    .order-details-box h2 {
        font-size: 1.125rem;
    }

    .order-item {
        padding: var(--spacing-sm);
    }

    /* Buttons */
    .success-actions {
        flex-direction: row;
    }

    .success-actions .btn {
        flex: 1;
    }

    .btn-lg {
        padding: 1rem 2rem;
    }
}

/* ===================================================================
   TABLET - 768px to 991px
   =================================================================== */
@media (min-width: 768px) {
    .success-card {
        max-width: 700px;
        padding: 3rem 2.5rem;
    }

    /* Icon */
    .success-icon-wrapper {
        margin-bottom: var(--spacing-xl);
    }

    .success-icon {
        width: 110px;
        height: 110px;
    }

    .success-icon svg {
        width: 60px;
        height: 60px;
    }

    /* Title */
    .success-title {
        font-size: 2.25rem;
        margin-bottom: var(--spacing-lg);
    }

    /* Message */
    .success-message {
        font-size: 1.125rem;
        max-width: 550px;
    }

    /* Order Reference */
    .order-ref-box {
        padding: var(--spacing-lg);
    }

    .order-ref-label {
        font-size: 0.9375rem;
    }

    .order-ref-value {
        font-size: 1.375rem;
    }

    /* Order Details */
    .order-details-box {
        padding: var(--spacing-xl);
    }

    .order-details-box h2 {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-lg);
    }

    .order-item {
        padding: var(--spacing-md);
    }

    .item-name {
        font-size: 1rem;
    }

    .item-size {
        font-size: 0.875rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .order-total {
        padding: var(--spacing-lg);
        font-size: 1.25rem;
    }

    .total-amount {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn-lg {
        padding: 1.125rem 2.5rem;
        font-size: 1rem;
    }

    /* Support Text */
    .support-text {
        padding: var(--spacing-lg);
        font-size: 0.9375rem;
    }
}

/* ===================================================================
   LAPTOP & DESKTOP - 992px and up
   =================================================================== */
@media (min-width: 992px) {
    .order-success-page {
        padding: 4rem 0;
    }

    .success-card {
        max-width: 750px;
        padding: 3.5rem 3rem;
    }

    /* Icon */
    .success-icon {
        width: 120px;
        height: 120px;
    }

    .success-icon svg {
        width: 64px;
        height: 64px;
    }

    /* Title */
    .success-title {
        font-size: 2.5rem;
    }

    /* Message */
    .success-message {
        font-size: 1.125rem;
        max-width: 600px;
    }

    /* Order Details */
    .order-details-box h2 {
        font-size: 1.375rem;
    }

    /* Hover effects */
    .order-item {
        transition: all var(--transition-speed) var(--transition-timing);
    }

    .order-item:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-sm);
    }

    .btn-lg {
        padding: 1.25rem 3rem;
        font-size: 1.0625rem;
    }

    /* Support Text */
    .support-text {
        font-size: 1rem;
    }
}

/* ===================================================================
   LARGE DESKTOP - 1200px and up
   =================================================================== */
@media (min-width: 1200px) {
    .success-card {
        max-width: 800px;
        padding: 4rem 3.5rem;
    }

    .success-title {
        font-size: 2.75rem;
    }

    .order-ref-value {
        font-size: 1.5rem;
    }
}

/* ===================================================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================================================== */
@media (max-width: 767px) {
    /* Ensure all interactive elements are touch-friendly */
    .btn {
        min-height: 48px;
        font-size: 0.9375rem;
    }

    /* Better tap targets */
    .support-text a {
        padding: var(--spacing-xs);
        margin: calc(var(--spacing-xs) * -1);
    }
}

/* ===================================================================
   LANDSCAPE ORIENTATION
   =================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .order-success-page {
        padding: var(--spacing-lg) 0;
    }

    .success-card {
        padding: var(--spacing-lg);
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon svg {
        width: 36px;
        height: 36px;
    }

    .success-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .success-message {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-md);
    }

    .success-icon-wrapper {
        margin-bottom: var(--spacing-sm);
    }

    .order-details-box {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .order-success-page {
        background: white;
        padding: 0;
    }

    .site-header,
    .site-footer,
    .success-actions,
    .support-text {
        display: none !important;
    }

    .success-card {
        box-shadow: none;
        border: 1px solid var(--color-border);
        page-break-inside: avoid;
        max-width: 100%;
    }

    .success-icon {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .order-details-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===================================================================
   HIGH CONTRAST MODE
   =================================================================== */
@media (prefers-contrast: high) {
    .success-card,
    .order-details-box,
    .order-ref-box {
        border: 2px solid currentColor;
    }

    .success-icon {
        border: 2px solid currentColor;
    }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    .success-card,
    .success-icon-wrapper,
    .order-item,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Override profile icon hiding on mobile */
@media (max-width: 424px) {
    .icon-btn[href="profile.php"] {
        display: flex !important;
    }
}

/* ===================================================================
   ABOUT PAGE - RESPONSIVE STYLES
   Add these styles to your style.css file
   Mobile-First Approach | Fully Responsive
   =================================================================== */

/* ===================================================================
   ABOUT PAGE BASE STYLES
   =================================================================== */
.about-page {
    overflow-x: hidden;
    width: 100%;
}

/* ===================================================================
   ABOUT HERO SECTION
   =================================================================== */
.about-hero {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF9F0 100%);
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    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="rgba(212,165,116,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.5;
    pointer-events: none;
}

.about-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.about-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.about-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================================================
   MISSION SECTION
   =================================================================== */
.about-mission {
    padding: var(--spacing-xxl) 0;
    background: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.mission-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.mission-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

/* Mission Stats */
.mission-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Mission Image */
.mission-image {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.mission-image.animate-in {
    opacity: 1;
    transform: scale(1);
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

/* ===================================================================
   VALUES SECTION
   =================================================================== */
.about-values {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.value-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.value-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0;
}

/* ===================================================================
   PROCESS SECTION
   =================================================================== */
.about-process {
    padding: var(--spacing-xxl) 0;
    background: white;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-md);
    align-items: start;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.process-step.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.step-content {
    background: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.step-content:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.step-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0;
}

/* Timeline connector on larger screens */
.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: var(--color-border);
    display: none;
}

/* ===================================================================
   CTA SECTION
   =================================================================== */
.about-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--spacing-xxl) 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xl);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Extra Small Mobile - 320px */
@media (min-width: 320px) and (max-width: 374px) {
    .about-hero {
        padding: var(--spacing-lg) 0;
    }
    
    .about-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .about-hero h1 {
        font-size: 1.5rem;
    }
    
    .about-lead {
        font-size: 0.9375rem;
    }
    
    .about-mission,
    .about-values,
    .about-process,
    .about-cta {
        padding: var(--spacing-lg) 0;
    }
    
    .mission-content h2 {
        font-size: 1.5rem;
    }
    
    .mission-content p {
        font-size: 0.9375rem;
    }
    
    .mission-stats {
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    .value-card {
        padding: var(--spacing-md);
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .value-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .value-card h3 {
        font-size: 1.125rem;
    }
    
    .value-card p {
        font-size: 0.875rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }
    
    .step-content {
        padding: var(--spacing-md);
    }
    
    .step-content h3 {
        font-size: 1.125rem;
    }
    
    .step-content p {
        font-size: 0.875rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Mobile - 375px */
@media (min-width: 375px) and (max-width: 424px) {
    .about-hero {
        padding: var(--spacing-xl) 0;
    }
    
    .about-hero h1 {
        font-size: 1.75rem;
    }
    
    .about-lead {
        font-size: 1rem;
    }
    
    .about-mission,
    .about-values,
    .about-process,
    .about-cta {
        padding: var(--spacing-xl) 0;
    }
    
    .mission-content h2 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .section-header h2 {
        font-size: 1.625rem;
    }
    
    .value-icon {
        width: 55px;
        height: 55px;
    }
    
    .value-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Medium Mobile - 425px */
@media (min-width: 425px) and (max-width: 599px) {
    .about-hero h1 {
        font-size: 1.875rem;
    }
    
    .mission-content h2 {
        font-size: 1.875rem;
    }
    
    .mission-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .cta-content h2 {
        font-size: 1.875rem;
    }
    
    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        flex: 1;
        min-width: 180px;
    }
}

/* Small Tablets - 600px */
@media (min-width: 600px) and (max-width: 767px) {
    .about-hero h1 {
        font-size: 2.25rem;
    }
    
    .about-lead {
        font-size: 1.125rem;
    }
    
    .mission-content h2 {
        font-size: 2.25rem;
    }
    
    .mission-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-actions {
        flex-direction: row;
    }
    
    .btn {
        width: auto;
    }
}

/* Tablets - 768px */
@media (min-width: 768px) {
    .about-hero {
        padding: 5rem 0;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-lead {
        font-size: 1.25rem;
    }
    
    .about-mission,
    .about-values,
    .about-process,
    .about-cta {
        padding: 5rem 0;
    }
    
    .mission-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }
    
    .mission-content {
        order: 1;
    }
    
    .mission-image {
        order: 2;
    }
    
    .mission-content h2 {
        font-size: 2.5rem;
    }
    
    .mission-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline::before {
        display: block;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.25rem;
    }
    
    .cta-actions {
        flex-direction: row;
    }
}

/* Laptops - 992px */
@media (min-width: 992px) {
    .about-hero h1 {
        font-size: 3rem;
    }
    
    .mission-content h2 {
        font-size: 2.75rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .value-card {
        padding: var(--spacing-xl);
    }
    
    .step-content {
        padding: var(--spacing-xl);
    }
}

/* Desktops - 1200px */
@media (min-width: 1200px) {
    .about-hero {
        padding: 6rem 0;
    }
    
    .about-hero h1 {
        font-size: 3.5rem;
    }
    
    .about-lead {
        font-size: 1.375rem;
    }
    
    .about-mission,
    .about-values,
    .about-process,
    .about-cta {
        padding: 6rem 0;
    }
    
    .mission-content h2 {
        font-size: 3rem;
    }
    
    .mission-content p {
        font-size: 1.125rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-text {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2.75rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
    }
    
    .value-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .value-card h3 {
        font-size: 1.375rem;
    }
    
    .value-card p {
        font-size: 1rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.375rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 3rem;
    }
    
    .cta-content p {
        font-size: 1.375rem;
    }
}

/* Extra Large Desktops - 1400px+ */
@media (min-width: 1400px) {
    .about-hero {
        padding: 8rem 0;
    }
    
    .about-hero h1 {
        font-size: 4rem;
    }
    
    .about-mission,
    .about-values,
    .about-process,
    .about-cta {
        padding: 8rem 0;
    }
    
    .mission-content h2,
    .section-header h2,
    .cta-content h2 {
        font-size: 3.5rem;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .about-page {
        background: white;
    }
    
    .site-header,
    .site-footer,
    .cta-actions,
    .nav-toggle {
        display: none !important;
    }
    
    .about-hero,
    .about-mission,
    .about-values,
    .about-process,
    .about-cta {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .about-hero {
        background: white !important;
    }
    
    .about-cta {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    .value-card,
    .step-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   =================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }
    
    .value-card,
    .step-content {
        padding: var(--spacing-lg);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .stat-item,
    .value-card,
    .process-step,
    .mission-content,
    .mission-image {
        opacity: 1;
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .value-card,
    .step-content {
        border: 2px solid currentColor;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* ===================================================================
   PROFILE PAGE - FULLY RESPONSIVE STYLES
   Add these to your style.css file
   =================================================================== */

/* ===================================================================
   PROFILE PAGE - BASE STYLES
   =================================================================== */
.profile-page {
    min-height: calc(100vh - 70px);
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

/* ===================================================================
   PROFILE HEADER
   =================================================================== */
.profile-header {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Avatar */
.profile-avatar {
    grid-column: 1;
    grid-row: 1 / 3;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) var(--transition-timing);
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.avatar-circle svg {
    width: 48px;
    height: 48px;
}

/* Profile Info */
.profile-info {
    grid-column: 2;
    grid-row: 1;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.profile-email,
.profile-phone,
.profile-member-since {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.profile-email svg,
.profile-phone svg,
.profile-member-since svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* Profile Actions */
.profile-actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

/* ===================================================================
   STATS GRID
   =================================================================== */
.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-speed) var(--transition-timing);
    border: 1px solid var(--color-border);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

/* Stat Icon */
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-speed) var(--transition-timing);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon-primary {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.2) 100%);
    color: var(--color-primary);
}

.stat-icon-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.2) 100%);
    color: var(--color-success);
}

.stat-icon-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.2) 100%);
    color: #2196F3;
}

.stat-icon-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.2) 100%);
    color: #FF9800;
}

/* Stat Content */
.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================================================
   PROFILE SECTION (Recent Orders)
   =================================================================== */
.profile-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
}

.view-all-link:hover {
    color: var(--color-primary-dark);
    gap: 0.5rem;
}

.view-all-link svg {
    transition: transform var(--transition-speed) var(--transition-timing);
}

.view-all-link:hover svg {
    transform: translateX(4px);
}

/* ===================================================================
   ORDERS LIST COMPACT
   =================================================================== */
.orders-list-compact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.order-item-compact {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
}

.order-item-compact:hover {
    background: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

/* Order Icon */
.order-item-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.order-item-compact:hover .order-item-icon {
    background: var(--color-primary);
    color: white;
}

/* Order Details */
.order-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.order-item-ref {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: 'Courier New', monospace;
}

.order-item-date {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* Order Amount */
.order-item-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Order Status */
.order-item-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.status-processing {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.status-shipped {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.status-delivered {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* ===================================================================
   EMPTY STATE
   =================================================================== */
.empty-state-small {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
}

.empty-state-small svg {
    color: var(--color-text-lighter);
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.empty-state-small p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS - PROFILE PAGE
   =================================================================== */

/* ===================================================================
   EXTRA SMALL MOBILE - 320px to 374px
   =================================================================== */
@media (min-width: 320px) and (max-width: 374px) {
    .profile-page {
        padding: var(--spacing-md) 0;
    }

    /* Profile Header */
    .profile-header {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        text-align: center;
    }

    .profile-avatar {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .avatar-circle {
        width: 80px;
        height: 80px;
    }

    .avatar-circle svg {
        width: 40px;
        height: 40px;
    }

    .profile-info {
        grid-column: 1;
        grid-row: 2;
    }

    .profile-name {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xs);
    }

    .profile-meta {
        align-items: center;
    }

    .profile-email,
    .profile-phone,
    .profile-member-since {
        font-size: 0.8125rem;
        justify-content: center;
    }

    .profile-actions {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
        margin-top: var(--spacing-sm);
    }

    /* Stats Grid */
    .profile-stats-grid {
        gap: var(--spacing-sm);
    }

    .stat-card {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 1.375rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Profile Section */
    .profile-section {
        padding: var(--spacing-md);
    }

    .section-header-with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .section-title {
        font-size: 1.125rem;
    }

    .view-all-link {
        font-size: 0.875rem;
    }

    /* Orders List */
    .order-item-compact {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .order-item-icon {
        display: none;
    }

    .order-item-details {
        grid-column: 1;
    }

    .order-item-amount {
        grid-column: 1;
        font-size: 1.125rem;
    }

    .order-item-status {
        grid-column: 1;
        justify-self: start;
    }

    .order-item-ref {
        font-size: 0.875rem;
    }

    .order-item-date {
        font-size: 0.75rem;
    }

    .status-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    /* Empty State */
    .empty-state-small {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .empty-state-small svg {
        width: 48px;
        height: 48px;
    }

    .empty-state-small p {
        font-size: 0.9375rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* ===================================================================
   SMALL MOBILE - 375px to 424px
   =================================================================== */
@media (min-width: 375px) and (max-width: 424px) {
    .profile-page {
        padding: var(--spacing-lg) 0;
    }

    /* Profile Header */
    .profile-header {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
        text-align: center;
    }

    .profile-avatar {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .avatar-circle {
        width: 90px;
        height: 90px;
    }

    .avatar-circle svg {
        width: 44px;
        height: 44px;
    }

    .profile-info {
        grid-column: 1;
        grid-row: 2;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-meta {
        align-items: center;
    }

    .profile-email,
    .profile-phone,
    .profile-member-since {
        font-size: 0.875rem;
        justify-content: center;
    }

    .profile-actions {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
    }

    /* Stats */
    .stat-icon {
        width: 52px;
        height: 52px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    /* Orders */
    .order-item-compact {
        grid-template-columns: auto 1fr auto;
        padding: var(--spacing-md);
    }

    .order-item-icon {
        display: flex;
        grid-column: 1;
    }

    .order-item-details {
        grid-column: 2;
    }

    .order-item-amount {
        grid-column: 3;
        grid-row: 1;
    }

    .order-item-status {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: end;
        margin-top: var(--spacing-xs);
    }
}

/* ===================================================================
   LARGE MOBILE - 425px to 599px
   =================================================================== */
@media (min-width: 425px) and (max-width: 599px) {
    /* Profile Header */
    .profile-header {
        grid-template-columns: auto 1fr;
        text-align: left;
    }

    .profile-avatar {
        grid-column: 1;
        grid-row: 1 / 3;
        justify-self: start;
    }

    .avatar-circle {
        width: 100px;
        height: 100px;
    }

    .avatar-circle svg {
        width: 48px;
        height: 48px;
    }

    .profile-info {
        grid-column: 2;
        grid-row: 1;
    }

    .profile-name {
        font-size: 1.625rem;
    }

    .profile-meta {
        align-items: flex-start;
    }

    .profile-email,
    .profile-phone,
    .profile-member-since {
        justify-content: flex-start;
    }

    .profile-actions {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start;
    }

    /* Orders */
    .order-item-compact {
        grid-template-columns: auto 1fr auto auto;
    }

    .order-item-status {
        grid-column: 4;
        grid-row: 1;
        justify-self: auto;
        margin-top: 0;
    }
}

/* ===================================================================
   SMALL TABLET - 600px to 767px
   =================================================================== */
@media (min-width: 600px) {
    .profile-page {
        padding: var(--spacing-xl) 0;
    }

    .profile-header {
        padding: var(--spacing-xl);
    }

    /* Stats Grid - 2 columns */
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .stat-card {
        padding: var(--spacing-lg);
    }

    .stat-icon {
        width: 56px;
        height: 56px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.375rem;
    }
}

/* ===================================================================
   TABLET - 768px to 991px
   =================================================================== */
@media (min-width: 768px) {
    /* Profile Header */
    .profile-header {
        padding: 2rem;
    }

    .avatar-circle {
        width: 110px;
        height: 110px;
    }

    .avatar-circle svg {
        width: 52px;
        height: 52px;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-email,
    .profile-phone,
    .profile-member-since {
        font-size: 1rem;
    }

    /* Stats Grid - 4 columns */
    .profile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Profile Section */
    .profile-section {
        padding: 2rem;
    }

    .section-header-with-action {
        flex-direction: row;
        align-items: center;
    }

    /* Orders */
    .order-item-compact {
        padding: var(--spacing-lg);
    }

    .order-item-ref {
        font-size: 1rem;
    }

    .order-item-date {
        font-size: 0.875rem;
    }

    .order-item-amount {
        font-size: 1.125rem;
    }

    .status-badge {
        font-size: 0.75rem;
    }
}

/* ===================================================================
   LAPTOP & DESKTOP - 992px and up
   =================================================================== */
@media (min-width: 992px) {
    .profile-page {
        padding: var(--spacing-xxl) 0;
    }

    .profile-header {
        padding: 2.5rem;
    }

    .avatar-circle {
        width: 120px;
        height: 120px;
    }

    .avatar-circle svg {
        width: 56px;
        height: 56px;
    }

    .profile-name {
        font-size: 2.25rem;
    }

    /* Stats hover effects */
    .stat-card {
        cursor: pointer;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    /* Section */
    .profile-section {
        padding: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Orders hover effects */
    .order-item-compact {
        cursor: pointer;
    }
}

/* ===================================================================
   LARGE DESKTOP - 1200px and up
   =================================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .profile-header {
        padding: 3rem;
    }

    .avatar-circle {
        width: 130px;
        height: 130px;
    }

    .avatar-circle svg {
        width: 60px;
        height: 60px;
    }

    .profile-name {
        font-size: 2.5rem;
    }

    .stat-value {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.625rem;
    }
}

/* ===================================================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================================================== */
@media (max-width: 767px) {
    /* Ensure all interactive elements are touch-friendly */
    .btn {
        min-height: 48px;
    }

    .order-item-compact {
        min-height: 60px;
    }

    .stat-card {
        min-height: 80px;
    }

    /* Better tap targets */
    .view-all-link {
        padding: var(--spacing-xs);
        margin: calc(var(--spacing-xs) * -1);
    }
}

/* ===================================================================
   LANDSCAPE ORIENTATION
   =================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .profile-page {
        padding: var(--spacing-md) 0;
    }

    .profile-header {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .avatar-circle {
        width: 70px;
        height: 70px;
    }

    .avatar-circle svg {
        width: 36px;
        height: 36px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: var(--spacing-sm);
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .profile-page {
        background: white;
        padding: 0;
    }

    .site-header,
    .site-footer,
    .profile-actions,
    .view-all-link,
    .search-btn {
        display: none !important;
    }

    .profile-header,
    .profile-section,
    .stat-card {
        box-shadow: none;
        border: 1px solid var(--color-border);
        page-break-inside: avoid;
    }

    .order-item-compact {
        border: 1px solid var(--color-border);
    }
}

/* ===================================================================
   HIGH CONTRAST MODE
   =================================================================== */
@media (prefers-contrast: high) {
    .profile-header,
    .stat-card,
    .profile-section,
    .order-item-compact {
        border: 2px solid currentColor;
    }

    .avatar-circle {
        border: 2px solid currentColor;
    }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    .profile-header,
    .stat-card,
    .order-item-compact,
    .avatar-circle,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}

/* ===================================================================
   MY ORDERS PAGE - FULLY RESPONSIVE STYLES
   Mobile-First Approach for all device sizes
   =================================================================== */

/* ===================================================================
   ORDERS PAGE - BASE STYLES
   =================================================================== */
.orders-page {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
    min-height: calc(100vh - 70px);
}

/* ===================================================================
   ORDERS HEADER
   =================================================================== */
.orders-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.orders-header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.orders-header-content p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.orders-header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===================================================================
   ORDERS STATS
   =================================================================== */
.orders-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-timing);
    border: 1px solid var(--color-border);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #F1F8E9 100%);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ===================================================================
   ORDERS LIST
   =================================================================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* ===================================================================
   ORDER CARD
   =================================================================== */
.order-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-timing);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Order Header */
.order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #F1F8E9 100%);
    border-bottom: 1px solid var(--color-border);
}

.order-ref {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

.order-ref-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.order-ref-details {
    flex: 1;
    min-width: 0;
}

.order-ref-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.order-date svg {
    flex-shrink: 0;
}

.order-date time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-header-status {
    flex-shrink: 0;
}

/* Order Body */
.order-body {
    padding: var(--spacing-md);
}

.order-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.order-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.detail-label svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.detail-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.detail-value-price {
    color: var(--color-primary);
    font-size: 1.125rem;
}

/* Hide desktop status on mobile */
.order-detail-status-desktop {
    display: none;
}

/* ===================================================================
   STATUS BADGES
   =================================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Payment Status Colors */
.status-badge.status-paid {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.status-pending {
    background: #FFF3E0;
    color: #EF6C00;
}

.status-badge.status-failed {
    background: #FFEBEE;
    color: #C62828;
}

/* Order Status Colors */
.status-badge.status-confirmed,
.status-badge.status-processing {
    background: #E3F2FD;
    color: #1565C0;
}

.status-badge.status-shipped {
    background: #F3E5F5;
    color: #6A1B9A;
}

.status-badge.status-delivered {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.status-cancelled {
    background: #FFEBEE;
    color: #C62828;
}

/* ===================================================================
   ORDER ACTIONS
   =================================================================== */
.order-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.order-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    white-space: nowrap;
}

.order-action-btn svg {
    flex-shrink: 0;
}

.order-action-btn-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.order-action-btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.order-action-btn-secondary {
    background: white;
    color: var(--color-text);
    border-color: var(--color-border);
}

.order-action-btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text);
}

/* ===================================================================
   EMPTY STATE
   =================================================================== */
.empty-orders {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.empty-orders-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: 50%;
    color: var(--color-text-lighter);
}

.empty-orders h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.empty-orders p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================================
   BUTTON STYLES
   =================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS - MY ORDERS PAGE
   =================================================================== */

/* ===================================================================
   EXTRA SMALL MOBILE - 320px to 374px
   =================================================================== */
@media (min-width: 320px) and (max-width: 374px) {
    .orders-page {
        padding: var(--spacing-md) 0;
    }

    /* Header */
    .orders-header {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .orders-header-content h1 {
        font-size: 1.375rem;
    }

    .orders-header-content p {
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Stats */
    .orders-stats {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    /* Order Card */
    .order-card {
        border-radius: var(--radius-lg);
    }

    .order-header {
        padding: var(--spacing-sm);
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .order-ref-icon {
        width: 32px;
        height: 32px;
    }

    .order-ref-icon svg {
        width: 16px;
        height: 16px;
    }

    .order-ref-number {
        font-size: 0.9375rem;
    }

    .order-date {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .order-date svg {
        width: 12px;
        height: 12px;
    }

    .order-header-status {
        width: 100%;
    }

    .order-header-status .status-badge {
        width: 100%;
        justify-content: center;
    }

    .order-body {
        padding: var(--spacing-sm);
    }

    .order-details {
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
        padding-bottom: var(--spacing-sm);
    }

    .detail-label {
        font-size: 0.8125rem;
    }

    .detail-label svg {
        width: 16px;
        height: 16px;
    }

    .detail-value {
        font-size: 0.875rem;
    }

    .detail-value-price {
        font-size: 1rem;
    }

    .status-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }

    .order-actions {
        gap: 0.625rem;
    }

    .order-action-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .order-action-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Empty State */
    .empty-orders {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .empty-orders-icon {
        width: 70px;
        height: 70px;
        margin-bottom: var(--spacing-md);
    }

    .empty-orders-icon svg {
        width: 56px;
        height: 56px;
    }

    .empty-orders h2 {
        font-size: 1.25rem;
    }

    .empty-orders p {
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ===================================================================
   SMALL MOBILE - 375px to 424px
   =================================================================== */
@media (min-width: 375px) and (max-width: 424px) {
    .orders-page {
        padding: var(--spacing-lg) 0;
    }

    .orders-header {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .orders-header-content h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-icon {
        width: 45px;
        height: 45px;
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .stat-value {
        font-size: 1.375rem;
    }

    .order-header {
        padding: var(--spacing-md);
        flex-direction: column;
    }

    .order-header-status {
        width: 100%;
    }

    .order-header-status .status-badge {
        width: 100%;
        justify-content: center;
    }

    .order-body {
        padding: var(--spacing-md);
    }

    .empty-orders-icon {
        width: 80px;
        height: 80px;
    }

    .empty-orders h2 {
        font-size: 1.375rem;
    }
}

/* ===================================================================
   MEDIUM MOBILE - 425px to 599px
   =================================================================== */
@media (min-width: 425px) and (max-width: 599px) {
    .orders-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .orders-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:last-child {
        grid-column: span 2;
    }

    .order-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .order-header-status {
        width: auto;
    }

    .order-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-actions {
        flex-direction: row;
    }

    .order-action-btn {
        flex: 1;
    }
}

/* ===================================================================
   SMALL TABLETS - 600px to 767px
   =================================================================== */
@media (min-width: 600px) {
    .orders-page {
        padding: var(--spacing-xxl) 0;
    }

    .orders-header-content h1 {
        font-size: 2rem;
    }

    .orders-header-content p {
        font-size: 1rem;
    }

    .orders-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card {
        padding: var(--spacing-lg);
    }

    .stat-icon {
        width: 55px;
        height: 55px;
    }

    .stat-value {
        font-size: 1.625rem;
    }

    .stat-label {
        font-size: 0.9375rem;
    }

    .order-header {
        padding: var(--spacing-lg);
    }

    .order-ref-icon {
        width: 40px;
        height: 40px;
    }

    .order-ref-number {
        font-size: 1.125rem;
    }

    .order-date {
        font-size: 0.875rem;
    }

    .order-body {
        padding: var(--spacing-lg);
    }

    .order-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-actions {
        flex-direction: row;
    }

    .order-action-btn {
        flex: 1;
    }

    .empty-orders {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }

    .empty-orders-icon {
        width: 120px;
        height: 120px;
    }

    .empty-orders h2 {
        font-size: 1.75rem;
    }

    .empty-orders p {
        font-size: 1.0625rem;
    }
}

/* ===================================================================
   TABLETS - 768px to 991px
   =================================================================== */
@media (min-width: 768px) {
    .orders-header-content h1 {
        font-size: 2.25rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon svg {
        width: 28px;
        height: 28px;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .order-details {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Show desktop status, hide mobile status */
    .order-detail-status-desktop {
        display: flex;
    }

    .order-header-status {
        display: none;
    }

    .order-actions {
        justify-content: flex-start;
    }

    .order-action-btn {
        flex: 0 0 auto;
        min-width: 180px;
    }

    .empty-orders h2 {
        font-size: 2rem;
    }
}

/* ===================================================================
   LAPTOPS - 992px to 1199px
   =================================================================== */
@media (min-width: 992px) {
    .orders-page {
        padding: var(--spacing-xxl) 0;
    }

    .orders-header {
        padding: var(--spacing-xl);
    }

    .orders-header-content h1 {
        font-size: 2.5rem;
    }

    .stat-card {
        padding: var(--spacing-xl);
    }

    .stat-icon {
        width: 70px;
        height: 70px;
    }

    .stat-icon svg {
        width: 32px;
        height: 32px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .order-card {
        border-radius: var(--radius-xl);
    }

    .order-header {
        padding: var(--spacing-xl);
    }

    .order-ref-icon {
        width: 44px;
        height: 44px;
    }

    .order-ref-icon svg {
        width: 20px;
        height: 20px;
    }

    .order-ref-number {
        font-size: 1.25rem;
    }

    .order-date {
        font-size: 0.9375rem;
    }

    .order-body {
        padding: var(--spacing-xl);
    }

    .order-details {
        gap: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .detail-label {
        font-size: 0.9375rem;
    }

    .detail-value {
        font-size: 1rem;
    }

    .detail-value-price {
        font-size: 1.25rem;
    }

    .order-action-btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .empty-orders {
        padding: calc(var(--spacing-xxl) * 1.5) var(--spacing-xl);
    }

    .empty-orders-icon {
        width: 140px;
        height: 140px;
    }

    .empty-orders h2 {
        font-size: 2.25rem;
    }

    .empty-orders p {
        font-size: 1.125rem;
        max-width: 500px;
    }
}

/* ===================================================================
   DESKTOPS - 1200px and up
   =================================================================== */
@media (min-width: 1200px) {
    .orders-header-content h1 {
        font-size: 2.75rem;
    }

    .stat-value {
        font-size: 2.25rem;
    }

    .order-ref-number {
        font-size: 1.375rem;
    }

    .order-date {
        font-size: 1rem;
    }

    .empty-orders h2 {
        font-size: 2.5rem;
    }
}

/* ===================================================================
   EXTRA LARGE DESKTOPS - 1400px and up
   =================================================================== */
@media (min-width: 1400px) {
    .orders-page .container {
        max-width: 1320px;
    }
}

/* ===================================================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================================================== */
@media (max-width: 991px) {
    /* Ensure all interactive elements are touch-friendly */
    .order-action-btn {
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
    }

    .stat-card {
        min-height: 80px;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .site-header,
    .site-footer,
    .order-actions,
    .orders-header-actions {
        display: none !important;
    }

    .orders-page {
        padding: 0;
        background: white;
    }

    .order-card,
    .stat-card,
    .orders-header {
        box-shadow: none;
        border: 1px solid var(--color-border);
        page-break-inside: avoid;
    }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    .order-card,
    .stat-card,
    .order-action-btn,
    .btn {
        transition: none !important;
    }
}

/* ===================================================================
   HIGH CONTRAST MODE
   =================================================================== */
@media (prefers-contrast: high) {
    .order-card,
    .stat-card,
    .orders-header {
        border: 2px solid currentColor;
    }

    .status-badge {
        border: 1px solid currentColor;
    }
}

/* ===================================================================
   ORDER DETAILS PAGE - RESPONSIVE STYLES
   Mobile-First Approach: 320px → 375px → 425px → 600px → 768px → Desktop
   =================================================================== */

/* ===================================================================
   BASE STYLES (Mobile-First - 320px+)
   =================================================================== */

/* Main Container */
.order-details-main {
    min-height: calc(100vh - 200px);
    background: var(--color-bg-light);
    padding: var(--spacing-md) 0;
}

.order-details-page {
    width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: var(--color-text-lighter);
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

/* Order Header */
.order-header {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.order-header-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.order-header-left {
    flex: 1;
}

.order-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.order-date svg {
    flex-shrink: 0;
}

.order-header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
    white-space: nowrap;
    border: 2px solid transparent;
    width: 100%;
}

.btn-action svg {
    flex-shrink: 0;
}

.btn-text {
    display: inline;
}

.btn-action-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-action-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-action-secondary {
    background: white;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-action-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text);
}

/* Status Badges */
.order-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
}

.status-badge svg {
    flex-shrink: 0;
}

/* Status Colors */
.status-pending {
    background: #FFF4E6;
    color: #D97706;
}

.status-confirmed {
    background: #E0F2FE;
    color: #0284C7;
}

.status-processing {
    background: #F3E8FF;
    color: #9333EA;
}

.status-shipped {
    background: #DBEAFE;
    color: #2563EB;
}

.status-delivered {
    background: #D1FAE5;
    color: #059669;
}

.status-cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.status-paid {
    background: #D1FAE5;
    color: #059669;
}

.status-unpaid {
    background: #FEE2E2;
    color: #DC2626;
}

/* Content Grid */
.order-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

/* Section Card */
.section-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.section-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.section-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    background: var(--color-primary);
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.section-card-body {
    padding: var(--spacing-md);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--color-text-light);
}

.empty-state svg {
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Order Item Card */
.order-item-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-speed);
}

.order-item-card:hover {
    box-shadow: var(--shadow-sm);
}

.order-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    background: var(--color-bg-light);
}

.order-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.order-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.order-item-meta {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin: 0;
}

.order-item-price-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.order-item-unit-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.order-item-quantity {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.order-item-pricing {
    display: none;
}

/* Sidebar */
.order-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-card-header {
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.sidebar-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.sidebar-card-title svg {
    flex-shrink: 0;
}

.sidebar-card-body {
    padding: var(--spacing-md);
}

/* Summary Rows */
.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.summary-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}

.summary-free {
    color: var(--color-success);
}

.summary-row-total {
    padding-top: 0.75rem;
    border-top: 2px solid var(--color-border);
    margin-top: 0.25rem;
}

.summary-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Info Rows */
.info-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.info-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
}

/* Delivery Address */
.delivery-address {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.delivery-address p {
    margin: 0;
    line-height: 1.5;
}

.delivery-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.delivery-phone,
.delivery-street,
.delivery-city {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Cancel Order Button */
.btn-cancel-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: white;
    color: var(--color-error);
    border: 2px solid var(--color-error);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-cancel-order:hover {
    background: var(--color-error);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cancel-order svg {
    flex-shrink: 0;
}

/* ===================================================================
   RESPONSIVE: 375px (Medium Mobile)
   =================================================================== */
@media (min-width: 375px) {
    .order-title {
        font-size: 1.375rem;
    }
    
    .order-item-image {
        width: 80px;
        height: 80px;
    }
    
    .order-item-name {
        font-size: 1rem;
    }
}

/* ===================================================================
   RESPONSIVE: 425px (Large Mobile)
   =================================================================== */
@media (min-width: 425px) {
    .order-details-main {
        padding: var(--spacing-lg) 0;
    }
    
    .order-header {
        padding: var(--spacing-lg);
    }
    
    .order-title {
        font-size: 1.5rem;
    }
    
    .order-header-actions {
        flex-direction: row;
        width: auto;
    }
    
    .btn-action {
        width: auto;
    }
    
    .order-item-image {
        width: 90px;
        height: 90px;
    }
    
    .section-card-body {
        padding: var(--spacing-lg);
    }
    
    .sidebar-card-body {
        padding: var(--spacing-lg);
    }
}

/* ===================================================================
   RESPONSIVE: 600px (Small Tablets)
   =================================================================== */
@media (min-width: 600px) {
    .order-content-grid {
        grid-template-columns: 1fr 350px;
        gap: var(--spacing-lg);
    }
    
    .order-title {
        font-size: 1.75rem;
    }
    
    .order-header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .order-header-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .order-item-card {
        grid-template-columns: auto 1fr auto;
        gap: var(--spacing-md);
    }
    
    .order-item-image {
        width: 100px;
        height: 100px;
    }
    
    .order-item-price-mobile {
        display: none;
    }
    
    .order-item-pricing {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
        justify-content: center;
    }
    
    .order-item-price-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        min-width: 140px;
    }
    
    .order-item-label {
        font-size: 0.8125rem;
        color: var(--color-text-light);
    }
    
    .order-item-value {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--color-text);
        text-align: right;
    }
    
    .order-item-total-row {
        padding-top: 0.5rem;
        border-top: 1px solid var(--color-border);
    }
    
    .order-item-total {
        font-size: 1rem;
        font-weight: 700;
        color: var(--color-primary);
    }
}

/* ===================================================================
   RESPONSIVE: 768px (Tablets)
   =================================================================== */
@media (min-width: 768px) {
    .order-details-main {
        padding: var(--spacing-xl) 0;
    }
    
    .breadcrumb {
        margin-bottom: var(--spacing-lg);
        font-size: 0.875rem;
    }
    
    .order-header {
        padding: var(--spacing-xl);
    }
    
    .order-title {
        font-size: 2rem;
    }
    
    .order-date {
        font-size: 0.9375rem;
    }
    
    .btn-action {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .order-status-badges {
        gap: 0.75rem;
    }
    
    .status-badge {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .order-content-grid {
        grid-template-columns: 1fr 380px;
    }
    
    .section-card-header {
        padding: var(--spacing-lg);
    }
    
    .section-card-title {
        font-size: 1.25rem;
    }
    
    .section-card-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .order-items-list {
        gap: var(--spacing-md);
    }
    
    .order-item-card {
        padding: var(--spacing-lg);
    }
    
    .order-item-image {
        width: 110px;
        height: 110px;
    }
    
    .order-item-name {
        font-size: 1.0625rem;
    }
    
    .order-item-meta {
        font-size: 0.875rem;
    }
    
    .sidebar-card-header {
        padding: var(--spacing-lg);
    }
    
    .sidebar-card-title {
        font-size: 1.0625rem;
    }
    
    .summary-rows {
        gap: 1rem;
    }
    
    .summary-label {
        font-size: 0.9375rem;
    }
    
    .summary-value {
        font-size: 1rem;
    }
    
    .summary-total {
        font-size: 1.25rem;
    }
    
    .delivery-name {
        font-size: 1.0625rem;
    }
    
    .delivery-phone,
    .delivery-street,
    .delivery-city {
        font-size: 1rem;
    }
}

/* ===================================================================
   RESPONSIVE: 992px (Laptops)
   =================================================================== */
@media (min-width: 992px) {
    .order-content-grid {
        grid-template-columns: 1fr 400px;
    }
    
    .order-item-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }
    
    .order-item-price-row {
        min-width: 160px;
    }
}

/* ===================================================================
   RESPONSIVE: 1200px+ (Desktops)
   =================================================================== */
@media (min-width: 1200px) {
    .order-title {
        font-size: 2.25rem;
    }
    
    .order-content-grid {
        grid-template-columns: 1fr 420px;
    }
    
    .order-item-image {
        width: 120px;
        height: 120px;
    }
    
    .order-item-name {
        font-size: 1.125rem;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .site-header,
    .breadcrumb,
    .order-header-actions,
    .btn-cancel-order {
        display: none !important;
    }
    
    .order-details-main {
        background: white;
    }
    
    .order-header,
    .section-card,
    .sidebar-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================================================
   CONTACT PAGE - RESPONSIVE STYLES
   Mobile-First Approach: 320px → 375px → 425px → 600px → 768px → Desktop
   =================================================================== */

/* ===================================================================
   BASE STYLES (Mobile-First - 320px+)
   =================================================================== */

/* Contact Page Main */
.contact-page {
    background: var(--color-bg-light);
    min-height: calc(100vh - 200px);
}

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: white;
}

.contact-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.contact-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.contact-lead {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Content Section */
.contact-content-section {
    padding: var(--spacing-xl) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    order: 1;
}

.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

/* Alert Messages */
.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.contact-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-alert p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.contact-alert-success svg {
    color: #10B981;
}

.contact-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #DC2626;
}

.contact-alert-error svg {
    color: #DC2626;
}

.contact-alert-error p + p {
    margin-top: 0.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-family);
    color: var(--color-text);
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-speed) var(--transition-timing);
    appearance: none;
}

.form-input:hover {
    border-color: var(--color-text-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-lighter);
}

.form-input.is-invalid {
    border-color: var(--color-error);
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-error);
    margin-top: 0.25rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-family);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    order: 2;
}

.contact-info-card,
.contact-social-card,
.contact-response-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.contact-info-card h3,
.contact-social-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.contact-info-subtitle,
.contact-social-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

/* Contact Info List */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-speed);
}

.contact-info-item:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-info-content {
    flex: 1;
}

.contact-info-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-content p,
.contact-info-content a {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-info-content a {
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-info-content a:hover {
    color: var(--color-primary);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.social-link:hover {
    background: white;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateX(4px);
}

.social-link svg {
    flex-shrink: 0;
}

/* Response Card */
.contact-response-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.response-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    color: white;
    margin-bottom: var(--spacing-md);
}

.contact-response-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.contact-response-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===================================================================
   RESPONSIVE: 375px (Medium Mobile)
   =================================================================== */
@media (min-width: 375px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-lead {
        font-size: 1rem;
    }
    
    .contact-form-card h2 {
        font-size: 1.625rem;
    }
    
    .contact-info-icon {
        width: 52px;
        height: 52px;
    }
}

/* ===================================================================
   RESPONSIVE: 425px (Large Mobile)
   =================================================================== */
@media (min-width: 425px) {
    .contact-hero {
        padding: calc(var(--spacing-xl) * 1.25) 0;
    }
    
    .contact-hero h1 {
        font-size: 2.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info-icon {
        width: 56px;
        height: 56px;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .social-link {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}

/* ===================================================================
   RESPONSIVE: 600px (Small Tablets)
   =================================================================== */
@media (min-width: 600px) {
    .contact-content-section {
        padding: var(--spacing-xxl) 0;
    }
    
    .contact-layout {
        grid-template-columns: 1fr 380px;
        gap: var(--spacing-xl);
    }
    
    .contact-form-wrapper {
        order: 1;
    }
    
    .contact-info-wrapper {
        order: 2;
    }
    
    .contact-form-card {
        padding: var(--spacing-xl);
    }
    
    .contact-info-card,
    .contact-social-card,
    .contact-response-card {
        padding: var(--spacing-xl);
    }
    
    textarea.form-input {
        min-height: 150px;
    }
}

/* ===================================================================
   RESPONSIVE: 768px (Tablets)
   =================================================================== */
@media (min-width: 768px) {
    .contact-hero {
        padding: calc(var(--spacing-xxl) * 1.25) 0;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-lead {
        font-size: 1.125rem;
    }
    
    .contact-label {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr 400px;
    }
    
    .contact-form-card h2 {
        font-size: 1.75rem;
    }
    
    .contact-info-card h3,
    .contact-social-card h3 {
        font-size: 1.375rem;
    }
    
    .contact-info-item {
        padding: var(--spacing-lg);
    }
    
    .contact-info-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-info-content h4 {
        font-size: 0.9375rem;
    }
    
    .contact-info-content p,
    .contact-info-content a {
        font-size: 1rem;
    }
    
    .social-link {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .response-icon {
        width: 72px;
        height: 72px;
    }
    
    .contact-response-card h4 {
        font-size: 1.25rem;
    }
    
    .contact-response-card p {
        font-size: 1rem;
    }
}

/* ===================================================================
   RESPONSIVE: 992px (Laptops)
   =================================================================== */
@media (min-width: 992px) {
    .contact-hero h1 {
        font-size: 2.75rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr 420px;
    }
    
    .contact-form-card {
        transition: box-shadow var(--transition-speed);
    }
    
    .contact-form-card:hover {
        box-shadow: var(--shadow-md);
    }
    
    .form-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    textarea.form-input {
        min-height: 180px;
    }
    
    .btn-lg {
        padding: 1.125rem 2.5rem;
        font-size: 1rem;
    }
}

/* ===================================================================
   RESPONSIVE: 1200px+ (Large Desktops)
   =================================================================== */
@media (min-width: 1200px) {
    .contact-hero h1 {
        font-size: 3rem;
    }
    
    .contact-lead {
        font-size: 1.1875rem;
    }
    
    .contact-form-card h2 {
        font-size: 2rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr 440px;
    }
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-card,
.contact-info-card,
.contact-social-card,
.contact-response-card {
    animation: fadeInUp 0.6s ease-out;
}

.contact-info-card {
    animation-delay: 0.1s;
}

.contact-social-card {
    animation-delay: 0.2s;
}

.contact-response-card {
    animation-delay: 0.3s;
}

/* ===================================================================
   LOADING STATE
   =================================================================== */
.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .site-header,
    .contact-hero,
    .contact-social-card,
    .contact-response-card {
        display: none;
    }
    
    .contact-page {
        background: white;
    }
    
    .contact-form-card,
    .contact-info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   ACCESSIBILITY ENHANCEMENTS
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .contact-alert-success {
        border-width: 3px;
    }
    
    .contact-alert-error {
        border-width: 3px;
    }
    
    .form-input {
        border-width: 3px;
    }
    
    .form-input:focus {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ===================================================================
   EDIT PROFILE PAGE - RESPONSIVE STYLES
   Add these styles to your style.css file
   Mobile-First Approach | Fully Responsive
   =================================================================== */

/* ===================================================================
   EDIT PROFILE PAGE BASE STYLES
   =================================================================== */
.edit-profile-page {
    padding: var(--spacing-xl) 0;
    min-height: 70vh;
    background: var(--color-bg-light);
}

/* ===================================================================
   PROFILE HEADER
   =================================================================== */
.profile-header {
    margin-bottom: var(--spacing-xl);
}

.profile-header-content {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary);
    transform: translateX(-4px);
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.profile-subtitle {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ===================================================================
   ALERT MESSAGES
   =================================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.alert-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-content li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.25rem;
}

.alert-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================================================
   PROFILE EDIT CONTAINER
   =================================================================== */
.profile-edit-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-form {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

/* ===================================================================
   FORM SECTIONS
   =================================================================== */
.form-section {
    margin-bottom: var(--spacing-xl);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.form-section-header svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.form-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* ===================================================================
   FORM GRID
   =================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

/* ===================================================================
   FORM GROUP
   =================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.required {
    color: #e53e3e;
}

.optional {
    color: var(--color-text-lighter);
    font-weight: 400;
    font-size: 0.875rem;
}

/* ===================================================================
   FORM INPUTS
   =================================================================== */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-lighter);
}

.form-input:disabled {
    background: var(--color-bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-hint {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===================================================================
   PASSWORD INPUT WITH TOGGLE
   =================================================================== */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-light);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--color-primary);
}

.toggle-password:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===================================================================
   PASSWORD INFO
   =================================================================== */
.password-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: var(--spacing-sm);
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    color: #856404;
    font-size: 0.875rem;
}

.password-info svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===================================================================
   FORM ACTIONS
   =================================================================== */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-bg-light);
    border-color: var(--color-text-light);
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* Extra Small Mobile - 320px */
@media (min-width: 320px) and (max-width: 374px) {
    .edit-profile-page {
        padding: var(--spacing-md) 0;
    }
    
    .profile-header {
        margin-bottom: var(--spacing-md);
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .profile-subtitle {
        font-size: 0.875rem;
    }
    
    .profile-form {
        padding: var(--spacing-md);
    }
    
    .form-section {
        margin-bottom: var(--spacing-lg);
    }
    
    .form-section-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }
    
    .form-section-header svg {
        width: 20px;
        height: 20px;
    }
    
    .form-section-header h2 {
        font-size: 1.125rem;
    }
    
    .form-grid {
        gap: var(--spacing-sm);
    }
    
    .form-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .password-input-wrapper .form-input {
        padding-right: 2.75rem;
    }
    
    .toggle-password {
        right: 0.5rem;
    }
    
    .toggle-password svg {
        width: 18px;
        height: 18px;
    }
    
    .password-info {
        padding: var(--spacing-xs);
        font-size: 0.8125rem;
    }
    
    .form-actions {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
    }
    
    .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .alert {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .back-link {
        font-size: 0.875rem;
    }
}

/* Small Mobile - 375px */
@media (min-width: 375px) and (max-width: 424px) {
    .edit-profile-page {
        padding: var(--spacing-lg) 0;
    }
    
    .profile-header h1 {
        font-size: 1.75rem;
    }
    
    .profile-subtitle {
        font-size: 0.9375rem;
    }
    
    .profile-form {
        padding: var(--spacing-lg);
    }
    
    .form-section-header svg {
        width: 22px;
        height: 22px;
    }
    
    .form-section-header h2 {
        font-size: 1.1875rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Medium Mobile - 425px */
@media (min-width: 425px) and (max-width: 599px) {
    .profile-header h1 {
        font-size: 1.875rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Small Tablets - 600px */
@media (min-width: 600px) and (max-width: 767px) {
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .btn {
        width: auto;
        min-width: 150px;
    }
    
    .btn-outline {
        order: -1;
    }
}

/* Tablets - 768px */
@media (min-width: 768px) {
    .edit-profile-page {
        padding: var(--spacing-xxl) 0;
    }
    
    .profile-header {
        margin-bottom: var(--spacing-xxl);
    }
    
    .profile-header h1 {
        font-size: 2.25rem;
    }
    
    .profile-subtitle {
        font-size: 1.125rem;
    }
    
    .profile-form {
        padding: var(--spacing-xl);
    }
    
    .form-section {
        margin-bottom: var(--spacing-xxl);
    }
    
    .form-section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .form-section-header h2 {
        font-size: 1.375rem;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .form-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .btn {
        width: auto;
        min-width: 160px;
    }
    
    .btn-outline {
        order: -1;
    }
}

/* Laptops - 992px */
@media (min-width: 992px) {
    .profile-header h1 {
        font-size: 2.5rem;
    }
    
    .form-section-header h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        min-width: 180px;
    }
}

/* Desktops - 1200px */
@media (min-width: 1200px) {
    .edit-profile-page {
        padding: 3rem 0;
    }
    
    .profile-header {
        margin-bottom: 3rem;
    }
    
    .profile-header h1 {
        font-size: 2.75rem;
    }
    
    .profile-edit-container {
        max-width: 900px;
    }
    
    .profile-form {
        padding: 2.5rem;
    }
}

/* Extra Large Desktops - 1400px+ */
@media (min-width: 1400px) {
    .edit-profile-page {
        padding: 4rem 0;
    }
    
    .profile-header h1 {
        font-size: 3rem;
    }
    
    .profile-edit-container {
        max-width: 1000px;
    }
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
    .edit-profile-page {
        padding: 1rem 0;
        background: white;
    }
    
    .site-header,
    .site-footer,
    .form-actions,
    .back-link,
    .toggle-password,
    .nav-toggle {
        display: none !important;
    }
    
    .profile-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .alert {
        border: 2px solid currentColor;
    }
    
    .form-input {
        border: 1px solid #000;
    }
}

/* ===================================================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   =================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .form-input {
        min-height: 48px;
        padding: 0.875rem 1rem;
    }
    
    .password-input-wrapper .form-input {
        padding-right: 3.5rem;
    }
    
    .toggle-password {
        width: 44px;
        height: 44px;
        right: 0.25rem;
    }
    
    .btn {
        min-height: 48px;
        padding: 1rem 1.75rem;
    }
    
    .back-link {
        min-height: 44px;
        padding: 0.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .profile-form,
    .alert {
        border: 2px solid currentColor;
    }
    
    .form-input {
        border-width: 2px;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* ===================================================================
   DARK MODE SUPPORT (OPTIONAL)
   =================================================================== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
    /*
    .edit-profile-page {
        background: #1a1a1a;
    }
    
    .profile-form {
        background: #2d2d2d;
        color: #ffffff;
    }
    */
}

/* ===================================================================
   VALIDATION STATES
   =================================================================== */
.form-input:invalid:not(:placeholder-shown) {
    border-color: #f56565;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: var(--color-success);
}

/* Show validation on blur or after interaction */
.form-input.touched:invalid {
    border-color: #f56565;
}

.form-input.touched:valid {
    border-color: var(--color-success);
}

/* ===================================================================
   LOADING STATE
   =================================================================== */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    color: white;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
