/**
 * Click VCard - Mobile-First App-Like Design System
 * Version: 3.0 - Production Ready
 * Premium Mobile Ecommerce Experience
 */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== MOBILE-FIRST CORE VARIABLES ===== */
:root {
    /* Colors */
    --mobile-primary: #00B67A;
    --mobile-primary-dark: #009966;
    --mobile-primary-light: #00d68f;
    --mobile-secondary: #1a237e;
    --mobile-accent: #ff6b35;
    --mobile-success: #25D366;
    --mobile-warning: #ffc107;
    --mobile-danger: #dc3545;
    --mobile-dark: #1f2937;
    --mobile-gray: #6c757d;
    --mobile-light: #f8f9fa;
    
    /* Spacing */
    --mobile-xs: 4px;
    --mobile-sm: 8px;
    --mobile-md: 16px;
    --mobile-lg: 24px;
    --mobile-xl: 32px;
    --mobile-2xl: 40px;
    --mobile-3xl: 48px;
    
    /* Border Radius */
    --mobile-radius-sm: 8px;
    --mobile-radius: 12px;
    --mobile-radius-lg: 16px;
    --mobile-radius-xl: 20px;
    --mobile-radius-full: 50px;
    
    /* Premium Shadows (Apple/CRED inspired) */
    --mobile-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --mobile-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --mobile-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
    --mobile-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.05);
    --mobile-shadow-glow: 0 0 20px rgba(0, 182, 122, 0.25);
    
    /* Glassmorphism */
    --mobile-glass: rgba(255, 255, 255, 0.85);
    --mobile-glass-border: rgba(255, 255, 255, 0.3);
    --mobile-blur: blur(20px) saturate(180%);
    
    /* Typography Scale (Desktop Base) */
    --mobile-xs-text: 12px;
    --mobile-sm-text: 14px;
    --mobile-base-text: 16px;
    --mobile-lg-text: 18px;
    --mobile-xl-text: 20px;
    --mobile-2xl-text: 24px;
    --mobile-3xl-text: 30px;
    --mobile-4xl-text: 36px;
    
    /* Premium Transitions */
    --mobile-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --mobile-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mobile-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --mobile-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-Index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 375px) {
    :root {
        --mobile-xs-text: 11px;
        --mobile-sm-text: 13px;
        --mobile-base-text: 14px;
        --mobile-lg-text: 16px;
        --mobile-xl-text: 18px;
        --mobile-2xl-text: 20px;
        --mobile-3xl-text: 24px;
    }
}

@media (min-width: 376px) and (max-width: 428px) {
    :root {
        --mobile-xs-text: 12px;
        --mobile-sm-text: 14px;
        --mobile-base-text: 15px;
        --mobile-lg-text: 17px;
        --mobile-xl-text: 19px;
        --mobile-2xl-text: 22px;
        --mobile-3xl-text: 26px;
    }
}

@media (min-width: 429px) and (max-width: 768px) {
    :root {
        --mobile-xs-text: 13px;
        --mobile-sm-text: 15px;
        --mobile-base-text: 16px;
        --mobile-lg-text: 18px;
        --mobile-xl-text: 20px;
        --mobile-2xl-text: 24px;
        --mobile-3xl-text: 28px;
    }
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--mobile-base-text);
    line-height: 1.5;
    color: var(--mobile-dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Allow text selection on form elements */
input, textarea, select, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

/* Font loading optimization */
.fonts-loaded body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== UTILITY CLASSES ===== */
.mobile-container {
    width: 100%;
    max-width: 100%;
    padding: 0 var(--mobile-md);
    margin: 0 auto;
}

.mobile-container-fluid {
    width: 100%;
    padding: 0 var(--mobile-md);
}

/* Typography Utilities */
.text-xs { font-size: var(--mobile-xs-text); }
.text-sm { font-size: var(--mobile-sm-text); }
.text-base { font-size: var(--mobile-base-text); }
.text-lg { font-size: var(--mobile-lg-text); }
.text-xl { font-size: var(--mobile-xl-text); }
.text-2xl { font-size: var(--mobile-2xl-text); }
.text-3xl { font-size: var(--mobile-3xl-text); }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--mobile-xs); }
.mt-2 { margin-top: var(--mobile-sm); }
.mt-3 { margin-top: var(--mobile-md); }
.mt-4 { margin-top: var(--mobile-lg); }
.mb-1 { margin-bottom: var(--mobile-xs); }
.mb-2 { margin-bottom: var(--mobile-sm); }
.mb-3 { margin-bottom: var(--mobile-md); }
.mb-4 { margin-bottom: var(--mobile-lg); }
.p-1 { padding: var(--mobile-xs); }
.p-2 { padding: var(--mobile-sm); }
.p-3 { padding: var(--mobile-md); }
.p-4 { padding: var(--mobile-lg); }

/* ===== BUTTONS (Premium) ===== */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mobile-sm);
    padding: var(--mobile-md) var(--mobile-xl);
    min-height: 48px;
    font-size: var(--mobile-base-text);
    font-weight: 600;
    border-radius: var(--mobile-radius);
    border: none;
    cursor: pointer;
    transition: all var(--mobile-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Ripple Effect */
.mobile-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.5s;
    pointer-events: none;
}

.mobile-btn:active::after {
    opacity: 1;
    transform: scale(2.5);
    transition: 0s;
}

.mobile-btn:active {
    transform: scale(0.96);
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-primary-light));
    color: white;
    box-shadow: var(--mobile-shadow);
}

.mobile-btn-primary:hover,
.mobile-btn-primary:focus {
    background: linear-gradient(135deg, var(--mobile-primary-dark), var(--mobile-primary));
    box-shadow: var(--mobile-shadow-lg);
    transform: translateY(-2px);
}

.mobile-btn-secondary {
    background: var(--mobile-light);
    color: var(--mobile-secondary);
    border: 1px solid #e5e7eb;
}

.mobile-btn-outline {
    background: transparent;
    color: var(--mobile-primary);
    border: 2px solid var(--mobile-primary);
}

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

.mobile-btn-sm {
    padding: var(--mobile-sm) var(--mobile-lg);
    min-height: 40px;
    font-size: var(--mobile-sm-text);
}

.mobile-btn-lg {
    padding: var(--mobile-lg) var(--mobile-2xl);
    min-height: 56px;
    font-size: var(--mobile-lg-text);
}

.mobile-btn-block {
    width: 100%;
}

/* ===== CARDS ===== */
.mobile-card {
    background: white;
    border-radius: var(--mobile-radius-lg);
    box-shadow: var(--mobile-shadow-sm);
    overflow: hidden;
    transition: all var(--mobile-normal);
}

.mobile-card:hover {
    box-shadow: var(--mobile-shadow);
    transform: translateY(-2px);
}

.mobile-card-body {
    padding: var(--mobile-lg);
}

.mobile-card-header {
    padding: var(--mobile-lg);
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

/* ===== PRODUCT CARDS (Premium) ===== */
.mobile-product-card {
    background: white;
    border-radius: var(--mobile-radius-lg);
    box-shadow: var(--mobile-shadow-sm);
    overflow: hidden;
    transition: all var(--mobile-normal);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-product-card:hover,
.mobile-product-card:active {
    box-shadow: var(--mobile-shadow);
    transform: translateY(-3px);
    border-color: rgba(0, 182, 122, 0.15);
}

.mobile-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8, #e8eef3);
}

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

.mobile-product-card:hover .mobile-product-image img,
.mobile-product-card:active .mobile-product-image img {
    transform: scale(1.08);
}

/* Shimmer Skeleton Loading */
.mobile-product-image .shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f4f8 25%, #e8eef3 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.mobile-product-image img.loaded + .shimmer,
.mobile-product-image img:not([src]) + .shimmer {
    display: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mobile-product-content {
    padding: var(--mobile-md);
}

.mobile-product-title {
    font-size: var(--mobile-sm-text);
    font-weight: 600;
    margin-bottom: var(--mobile-xs);
    line-height: 1.4;
    color: var(--mobile-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.mobile-product-price {
    display: flex;
    align-items: center;
    gap: var(--mobile-sm);
    margin-bottom: var(--mobile-sm);
}

.mobile-current-price {
    font-size: var(--mobile-lg-text);
    font-weight: 700;
    color: var(--mobile-primary);
}

.mobile-original-price {
    font-size: var(--mobile-sm-text);
    color: var(--mobile-gray);
    text-decoration: line-through;
}

.mobile-product-badge {
    position: absolute;
    top: var(--mobile-sm);
    left: var(--mobile-sm);
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    padding: 3px 8px;
    border-radius: var(--mobile-radius-full);
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    letter-spacing: 0.3px;
}

/* Smaller Add to Cart button inside product cards */
.mobile-product-card .mobile-btn {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 13px;
    border-radius: var(--mobile-radius-sm);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.mobile-product-card .mobile-btn i {
    font-size: 12px;
}

/* ===== HEADER & NAVIGATION ===== */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--mobile-glass);
    backdrop-filter: var(--mobile-blur);
    -webkit-backdrop-filter: var(--mobile-blur);
    border-bottom: 1px solid var(--mobile-glass-border);
    box-shadow: var(--mobile-shadow-sm);
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--mobile-md);
    min-height: 56px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    background: none;
}

.mobile-logo img {
    height: 28px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}

.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--mobile-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mobile-dark);
    border-radius: 2px;
    transition: all var(--mobile-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: var(--mobile-sm);
}

.mobile-header-action {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--mobile-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mobile-dark);
    text-decoration: none;
    position: relative;
    transition: all var(--mobile-fast);
}

.mobile-header-action:active {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(0.92);
}

.mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff4757, var(--mobile-danger));
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
    animation: badge-pop 0.3s var(--mobile-spring);
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ===== NAVIGATION DRAWER ===== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: var(--z-modal);
    transition: left var(--mobile-normal), box-shadow var(--mobile-normal);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    pointer-events: auto;
    border-radius: 0 var(--mobile-radius-xl) var(--mobile-radius-xl) 0;
}

.mobile-nav-drawer.open {
    left: 0;
    box-shadow: var(--mobile-shadow-xl);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--mobile-normal);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--mobile-md);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    background: var(--mobile-light);
    border: none;
    border-radius: var(--mobile-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mobile-dark);
    font-size: 16px;
}

/* Sidebar logo - prevent white box */
.mobile-nav-header .mobile-logo {
    background: none;
    height: auto;
}

.mobile-nav-header .mobile-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.mobile-nav-menu {
    padding: var(--mobile-md);
}

.mobile-nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b0b0b0;
    padding: var(--mobile-sm) var(--mobile-md);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--mobile-md);
    padding: var(--mobile-md);
    color: var(--mobile-dark);
    text-decoration: none;
    border-radius: var(--mobile-radius);
    transition: all var(--mobile-fast);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 182, 122, 0.08), rgba(0, 182, 122, 0.04));
    color: var(--mobile-primary);
}

.mobile-nav-item.active {
    font-weight: 700;
}

.mobile-nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 24px;
    background: var(--mobile-primary);
    border-radius: 0 3px 3px 0;
    transition: transform var(--mobile-fast);
}

.mobile-nav-item.active::after {
    transform: translateY(-50%) scaleY(1);
}

.mobile-nav-item i {
    width: 24px;
    font-size: 18px;
}

.mobile-nav-divider {
    height: 1px;
    background: #f0f0f0;
    margin: var(--mobile-sm) 0;
}

/* ===== BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mobile-glass);
    backdrop-filter: var(--mobile-blur);
    -webkit-backdrop-filter: var(--mobile-blur);
    border-top: 1px solid var(--mobile-glass-border);
    z-index: var(--z-fixed);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-bottom-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: var(--mobile-sm) var(--mobile-md);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #a0a0a0;
    text-decoration: none;
    transition: all var(--mobile-fast);
    position: relative;
    padding: 6px 12px;
    border-radius: var(--mobile-radius);
}

.mobile-bottom-nav-item:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.04);
}

.mobile-bottom-nav-item.active {
    color: var(--mobile-primary);
}

.mobile-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    width: 20px;
    height: 3px;
    background: var(--mobile-primary);
    border-radius: 2px;
    opacity: 0;
    animation: nav-indicator 0.3s var(--mobile-spring) forwards;
}

@keyframes nav-indicator {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

.mobile-bottom-nav-icon {
    font-size: 20px;
    transition: transform var(--mobile-fast);
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    transform: translateY(-2px);
}

.mobile-bottom-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Cart badge in bottom nav */
.mobile-bottom-nav-item {
    position: relative;
}

.mobile-bottom-nav-item .mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 1px 4px;
    font-size: 9px;
}

/* ===== FORMS ===== */
.mobile-form-group {
    margin-bottom: var(--mobile-lg);
}

.mobile-form-label {
    display: block;
    margin-bottom: var(--mobile-sm);
    font-weight: 600;
    color: var(--mobile-dark);
}

.mobile-form-input,
.mobile-form-select,
.mobile-form-textarea {
    width: 100%;
    padding: var(--mobile-md);
    border: 1px solid #e5e7eb;
    border-radius: var(--mobile-radius);
    font-size: var(--mobile-base-text);
    transition: border-color var(--mobile-fast);
}

.mobile-form-input:focus,
.mobile-form-select:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: var(--mobile-primary);
}

/* ===== PRODUCT GRID ===== */
.mobile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mobile-md);
    padding: var(--mobile-md) 0;
}

@media (min-width: 480px) {
    .mobile-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== REAL SHOP PAGE MOBILE STYLES ===== */
@media (max-width: 767px) {
    .product-card {
        border-radius: var(--mobile-radius-lg);
        box-shadow: var(--mobile-shadow-sm);
        overflow: hidden;
        background: white;
        border: 1px solid rgba(0,0,0,0.04);
        transition: all var(--mobile-normal);
    }
    
    .product-card:hover,
    .product-card:active {
        box-shadow: var(--mobile-shadow);
        transform: translateY(-2px);
        border-color: rgba(0, 182, 122, 0.12);
    }
    
    .product-image-wrapper {
        position: relative;
        aspect-ratio: 1;
        overflow: hidden;
        background: linear-gradient(135deg, #f0f4f8, #e8eef3);
    }
    
    .product-image-wrapper img,
    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform var(--mobile-slow);
    }
    
    .product-card:hover .product-image-wrapper img,
    .product-card:active .product-image-wrapper img {
        transform: scale(1.06);
    }
    
    .product-content {
        padding: var(--mobile-md);
    }
    
    .product-title {
        font-size: var(--mobile-sm-text);
        font-weight: 600;
        margin-bottom: var(--mobile-xs);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
        color: var(--mobile-dark);
    }
    
    .product-price {
        font-size: var(--mobile-lg-text);
        font-weight: 700;
        color: var(--mobile-primary);
        margin-bottom: var(--mobile-sm);
    }
    
    .product-price .original {
        font-size: var(--mobile-sm-text);
        color: var(--mobile-gray);
        text-decoration: line-through;
        margin-left: var(--mobile-sm);
        font-weight: 500;
    }
    
    /* Fix Add to Cart button size */
    .product-content .btn {
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        border-radius: var(--mobile-radius-sm);
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        letter-spacing: 0.2px;
    }
    
    .product-content .btn i {
        font-size: 12px;
    }
    
    .product-content .btn.w-100 {
        width: auto;
        min-width: 110px;
    }
    
    /* Ensure shop grid is proper on mobile */
    .shop-products-grid .row {
        --bs-gutter-x: var(--mobile-sm);
        --bs-gutter-y: var(--mobile-sm);
    }
    
    .shop-products-grid .col-md-6,
    .shop-products-grid .col-xl-4 {
        padding: var(--mobile-xs);
    }
    
    /* Product badge */
    .product-badge {
        background: linear-gradient(135deg, #ff4757, #ff6b81);
        padding: 3px 8px;
        font-size: 10px;
        font-weight: 700;
        border-radius: var(--mobile-radius-full);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    }
}

/* ===== CART ITEMS (Premium Mobile) ===== */
.mobile-cart-item {
    background: white;
    border-radius: var(--mobile-radius-lg);
    padding: var(--mobile-md);
    margin-bottom: var(--mobile-md);
    box-shadow: var(--mobile-shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.mobile-cart-product {
    display: flex;
    gap: var(--mobile-md);
    margin-bottom: var(--mobile-sm);
}

.mobile-cart-image {
    width: 72px;
    height: 72px;
    border-radius: var(--mobile-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f4f8, #e8eef3);
}

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

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

.mobile-cart-name {
    font-size: var(--mobile-sm-text);
    font-weight: 600;
    color: var(--mobile-dark);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.mobile-cart-price {
    font-size: var(--mobile-lg-text);
    font-weight: 700;
    color: var(--mobile-primary);
}

/* Quantity controls - horizontal inline */
.mobile-cart-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #f8f9fa;
    border-radius: var(--mobile-radius-sm);
    padding: 3px;
    border: 1px solid #e9ecef;
}

.mobile-quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mobile-dark);
    font-size: 12px;
    transition: all var(--mobile-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mobile-quantity-btn:active {
    transform: scale(0.88);
    background: var(--mobile-light);
}

.mobile-quantity-input {
    width: 40px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--mobile-dark);
    -moz-appearance: textfield;
    appearance: textfield;
}

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

/* Cart item bottom row: qty + total + remove */
.mobile-cart-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--mobile-sm);
    padding-top: var(--mobile-sm);
    border-top: 1px solid #f0f0f0;
}

.mobile-cart-total-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.mobile-cart-total-label {
    font-size: 11px;
    color: var(--mobile-gray);
    font-weight: 500;
}

.mobile-cart-total-price {
    font-size: var(--mobile-base-text);
    font-weight: 700;
    color: var(--mobile-dark);
}

.mobile-cart-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--mobile-radius-sm);
    cursor: pointer;
    transition: all var(--mobile-fast);
}

.mobile-cart-remove:active {
    background: rgba(220, 53, 69, 0.08);
    transform: scale(0.95);
}

/* Cart meta (customization details) */
.mobile-cart-meta {
    font-size: 11px;
    color: var(--mobile-gray);
    margin-top: 4px;
    line-height: 1.5;
}

.mobile-cart-meta div {
    margin-bottom: 2px;
}

/* Sticky Checkout Bar - positioned above bottom nav */
.mobile-sticky-checkout {
    position: fixed;
    bottom: 64px; /* Above bottom nav */
    left: 0;
    right: 0;
    background: var(--mobile-glass);
    backdrop-filter: var(--mobile-blur);
    -webkit-backdrop-filter: var(--mobile-blur);
    border-top: 1px solid var(--mobile-glass-border);
    z-index: var(--z-fixed);
    padding: 10px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-checkout-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mobile-md);
    max-width: 600px;
    margin: 0 auto;
}

.mobile-checkout-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-checkout-label {
    font-size: 11px;
    color: var(--mobile-gray);
    font-weight: 500;
}

.mobile-checkout-price {
    font-size: var(--mobile-xl-text);
    font-weight: 800;
    color: var(--mobile-dark);
    letter-spacing: -0.3px;
}

.mobile-checkout-btn {
    padding: 12px 24px !important;
    min-height: 48px;
    font-size: var(--mobile-base-text) !important;
    font-weight: 700 !important;
    border-radius: var(--mobile-radius) !important;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--mobile-shadow) !important;
}

/* Empty cart state */
.mobile-empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.mobile-empty-cart i {
    font-size: 64px;
    color: #e9ecef;
    margin-bottom: var(--mobile-md);
}

.mobile-empty-cart h3 {
    font-size: var(--mobile-xl-text);
    font-weight: 700;
    color: var(--mobile-dark);
    margin-bottom: var(--mobile-xs);
}

.mobile-empty-cart p {
    font-size: var(--mobile-sm-text);
    color: var(--mobile-gray);
    margin-bottom: var(--mobile-lg);
}

/* ===== LOADING STATES ===== */
.mobile-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--mobile-light);
    border-top-color: var(--mobile-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== IMAGE OPTIMIZATION ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img.lazy {
    opacity: 0;
    transition: opacity var(--mobile-normal);
}

img.loaded {
    opacity: 1;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

/* ===== HERO SECTION MOBILE OPTIMIZATION ===== */
@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 1.25rem !important;
        background: linear-gradient(135deg, #00B67A 0%, #00d68f 50%, #00c896 100%) !important;
        position: relative;
        overflow: hidden;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 80%;
        height: 150%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .hero-section h1 {
        font-size: var(--mobile-2xl-text) !important;
        margin-bottom: var(--mobile-md) !important;
        color: white !important;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -0.5px;
        position: relative;
        z-index: 1;
    }
    
    .hero-section .lead {
        font-size: var(--mobile-sm-text) !important;
        color: rgba(255, 255, 255, 0.92) !important;
        line-height: 1.6;
        position: relative;
        z-index: 1;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: var(--mobile-sm);
        min-height: 52px;
        font-weight: 700;
        font-size: var(--mobile-base-text);
        border-radius: var(--mobile-radius);
        letter-spacing: 0.3px;
        position: relative;
        z-index: 1;
    }
    
    .hero-section .btn-primary {
        background: white !important;
        color: var(--mobile-primary) !important;
        border: none !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    }
    
    .hero-section .btn-outline-light {
        border: 2px solid rgba(255,255,255,0.4) !important;
        background: rgba(255,255,255,0.1) !important;
        backdrop-filter: blur(10px);
    }
    
    /* Trust badges in hero */
    .hero-section .trust-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(10px);
        padding: 6px 12px;
        border-radius: var(--mobile-radius-full);
        font-size: 12px;
        color: white;
        margin: 4px;
        border: 1px solid rgba(255,255,255,0.1);
    }
}

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

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--mobile-primary);
    outline-offset: 2px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .mobile-card,
    .mobile-product-card {
        border: 1px solid currentColor;
    }
}

/* ===== PAGE TRANSITIONS ===== */
@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

main, section[data-aos] {
    animation: page-fade-in 0.4s var(--mobile-normal) both;
}

/* ===== TOAST NOTIFICATIONS ===== */
.mobile-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--mobile-dark);
    color: white;
    padding: 12px 20px;
    border-radius: var(--mobile-radius);
    font-size: var(--mobile-sm-text);
    font-weight: 500;
    z-index: var(--z-tooltip);
    opacity: 0;
    transition: all var(--mobile-normal);
    box-shadow: var(--mobile-shadow-lg);
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.mobile-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mobile-toast.success {
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-primary-dark));
}

/* ===== MOBILE CART IMPROVEMENTS (overrides) ===== */
@media (max-width: 767px) {
    .mobile-cart-item {
        border: 1px solid rgba(0,0,0,0.04);
        transition: all var(--mobile-fast);
    }
    
    .mobile-cart-item:active {
        transform: scale(0.98);
    }
    
    /* Cart page extra bottom padding for sticky checkout */
    body:has(.mobile-sticky-checkout) {
        padding-bottom: 134px !important;
    }
    
    /* Cart page header */
    .cart-page-header {
        padding: 1.5rem 1rem !important;
        background: linear-gradient(135deg, #f8f9fa, #ffffff) !important;
    }
    
    .cart-page-header h1 {
        font-size: var(--mobile-xl-text) !important;
        font-weight: 800;
        margin-bottom: 0 !important;
    }
    
    .cart-page-header .badge {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: var(--mobile-radius-full);
        background: var(--mobile-primary) !important;
    }
    
    /* Cart action buttons */
    .cart-actions-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--mobile-sm);
        margin-bottom: var(--mobile-lg);
    }
    
    .cart-actions-grid .mobile-btn-outline {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 42px;
        border-radius: var(--mobile-radius-sm);
    }
    
    /* Buy Now button - prominent */
    .cart-buy-now-btn {
        padding: 14px 20px !important;
        min-height: 52px !important;
        font-size: var(--mobile-base-text) !important;
        font-weight: 800 !important;
        border-radius: var(--mobile-radius) !important;
        background: linear-gradient(135deg, #ff4757, #ff6b81) !important;
        border: none !important;
        box-shadow: 0 4px 16px rgba(255, 71, 87, 0.3) !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        animation: buy-now-pulse 2s ease-in-out infinite;
    }
    
    @keyframes buy-now-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
    
    .cart-buy-now-btn:active {
        transform: scale(0.96) !important;
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3) !important;
    }
    
    /* Free shipping progress bar */
    .cart-shipping-progress {
        background: #f8f9fa;
        border-radius: var(--mobile-radius);
        padding: var(--mobile-md);
        margin-bottom: var(--mobile-md);
        border: 1px solid rgba(0,0,0,0.04);
    }
    
    .cart-shipping-progress .progress {
        height: 6px;
        border-radius: 3px;
        background: #e9ecef;
        overflow: hidden;
    }
    
    .cart-shipping-progress .progress-bar {
        border-radius: 3px;
        background: linear-gradient(90deg, var(--mobile-primary), var(--mobile-primary-light)) !important;
    }
    
    .cart-shipping-text {
        font-size: 12px;
        color: var(--mobile-gray);
        margin-top: 8px;
        text-align: center;
    }
    
    .cart-shipping-text strong {
        color: var(--mobile-primary);
    }
}

/* ===== SECTION HEADERS ===== */
@media (max-width: 767px) {
    .section-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: var(--mobile-xl-text);
        font-weight: 700;
        color: var(--mobile-dark);
        margin-bottom: var(--mobile-xs);
        letter-spacing: -0.3px;
    }
    
    .section-subtitle {
        font-size: var(--mobile-sm-text);
        color: var(--mobile-gray);
        max-width: 90%;
        margin: 0 auto;
        line-height: 1.5;
    }
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--mobile-fast);
    animation: whatsapp-bounce 2s ease-in-out infinite;
}

.whatsapp-float:active {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

@keyframes whatsapp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ===== MOBILE FOOTER ===== */
@media (max-width: 767px) {
    footer {
        padding-bottom: 80px;
        background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    }
    
    footer .footer-bottom {
        background: var(--mobile-dark);
        color: rgba(255,255,255,0.7);
        padding: 1.5rem 1rem;
        font-size: 12px;
    }
    
    footer .footer-bottom a {
        color: rgba(255,255,255,0.9);
    }
    
    footer .footer-social a {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        color: white;
        margin: 0 4px;
        transition: all var(--mobile-fast);
    }
    
    footer .footer-social a:active {
        background: var(--mobile-primary);
        transform: scale(0.9);
    }
}

/* ===== MOBILE SECTION IMPROVEMENTS ===== */
@media (max-width: 767px) {
    .section-padding {
        padding: 2rem 0 !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 1.5rem 1rem;
        border-radius: var(--mobile-radius-lg);
        background: white;
        box-shadow: var(--mobile-shadow-sm);
        border: 1px solid rgba(0,0,0,0.04);
        margin-bottom: var(--mobile-md);
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        border-radius: var(--mobile-radius);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin-bottom: var(--mobile-sm);
    }
    
    .feature-title {
        font-size: var(--mobile-base-text);
        font-weight: 700;
        margin-bottom: var(--mobile-xs);
        color: var(--mobile-dark);
    }
    
    .feature-text {
        font-size: var(--mobile-sm-text);
        color: var(--mobile-gray);
        line-height: 1.5;
    }
    
    /* Statistics/Trust badges */
    .trust-stat {
        text-align: center;
        padding: var(--mobile-md);
    }
    
    .trust-stat-number {
        font-size: var(--mobile-xl-text);
        font-weight: 800;
        color: var(--mobile-primary);
        display: block;
    }
    
    .trust-stat-label {
        font-size: var(--mobile-xs-text);
        color: var(--mobile-gray);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* CTA buttons */
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: var(--mobile-base-text);
        min-height: 52px;
    }
    
    /* Cards general */
    .card {
        border-radius: var(--mobile-radius-lg);
        border: 1px solid rgba(0,0,0,0.04);
        overflow: hidden;
    }
    
    /* Smooth page scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Prevent text size adjust on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    /* iOS momentum scrolling */
    .mobile-scroll-container {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    
    /* Horizontal scroll for product/category carousels */
    .mobile-scroll-x {
        display: flex;
        gap: var(--mobile-sm);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: var(--mobile-sm) var(--mobile-md);
        margin: 0 -1rem;
        scrollbar-width: none;
    }
    
    .mobile-scroll-x::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-scroll-x > * {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .mobile-header,
    .mobile-bottom-nav,
    .mobile-nav-drawer,
    .mobile-nav-overlay,
    .whatsapp-float {
        display: none !important;
    }
    
    body {
        padding: 0 !important;
    }
}