/**
 * eCommerce Frontend Styles - Enhanced & Themeable
 * Mobile-First, Modern Design with Multiple Theme Support
 * Version: 2.0.0
 *
 * THEME ACTIVATION:
 * Add one of these classes to the <body> tag to activate a theme:
 * - theme-blue (default - Professional Blue)
 * - theme-green (Modern Green/Teal)
 * - theme-purple (Elegant Purple)
 * - theme-orange (Warm Orange)
 * - theme-dark (Dark Mode)
 *
 * Example: <body class="theme-green">
 */

/* ========================================
   CSS VARIABLES - THEME SYSTEM
   ======================================== */

/* DEFAULT THEME - Professional Blue */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #1e40af;
    --primary-light: #dbeafe;
    --primary-lighter: #eff6ff;

    /* Secondary Colors */
    --secondary-color: #0891b2;
    --secondary-hover: #0e7490;

    /* Accent Colors */
    --accent-color: #f59e0b;
    --accent-hover: #d97706;

    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;

    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;

    /* State Colors */
    --success-color: #10b981;
    --success-bg: #d1fae5;
    --danger-color: #ef4444;
    --danger-bg: #fee2e2;
    --warning-color: #f59e0b;
    --warning-bg: #fef3c7;
    --info-color: #3b82f6;
    --info-bg: #dbeafe;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* THEME: Modern Green/Teal */
body.theme-green {
    --primary-color: #059669;
    --primary-hover: #047857;
    --primary-light: #d1fae5;
    --primary-lighter: #ecfdf5;

    --secondary-color: #0d9488;
    --secondary-hover: #0f766e;

    --accent-color: #14b8a6;
    --accent-hover: #0d9488;
}

/* THEME: Elegant Purple */
body.theme-purple {
    --primary-color: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-light: #ede9fe;
    --primary-lighter: #f5f3ff;

    --secondary-color: #a855f7;
    --secondary-hover: #9333ea;

    --accent-color: #ec4899;
    --accent-hover: #db2777;
}

/* THEME: Warm Orange */
body.theme-orange {
    --primary-color: #ea580c;
    --primary-hover: #c2410c;
    --primary-light: #fed7aa;
    --primary-lighter: #ffedd5;

    --secondary-color: #f59e0b;
    --secondary-hover: #d97706;

    --accent-color: #f97316;
    --accent-hover: #ea580c;
}

/* THEME: Dark Mode */
body.theme-dark {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #1e3a5f;
    --primary-lighter: #1e293b;

    --secondary-color: #06b6d4;
    --secondary-hover: #0891b2;

    --accent-color: #f59e0b;
    --accent-hover: #d97706;

    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;

    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #0f172a;

    --border-light: #374151;
    --border-medium: #4b5563;
    --border-dark: #6b7280;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.store-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-slow);
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 10px 0;
    font-size: 12px;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-base);
}

.header-links a:hover {
    color: #ffffff;
}

.header-links a i {
    font-size: 14px;
}

/* Header Contact Information */
.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-contact-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-base);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
}

.header-contact-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.header-contact-link i {
    font-size: 14px;
}

.header-contact-link.whatsapp-link {
    background: rgba(37, 211, 102, 0.3);
}

.header-contact-link.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.5);
}

.header-contact-link.whatsapp-link i {
    color: #25d366;
}

/* Mobile responsive - stack contacts and links */
@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-contacts {
        order: 1;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .header-contact-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .header-links {
        order: 2;
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .header-links a {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .header-contacts {
        gap: 6px;
    }

    .header-contact-link {
        padding: 5px 8px;
        font-size: 11px;
    }

    .header-contact-link i {
        font-size: 12px;
    }

    .header-links {
        gap: 10px;
    }

    .header-links a {
        font-size: 11px;
    }
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.store-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.store-logo-link:hover {
    transform: scale(1.02);
}

.store-logo {
    max-height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.store-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-icon-link {
    position: relative;
    color: var(--text-primary);
    font-size: 24px;
    transition: color var(--transition-base), transform var(--transition-base);
}

.header-icon-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
}

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

.store-search-container {
    width: 100%;
}

.store-search {
    position: relative;
    width: 100%;
}

.store-search input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.store-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.store-search input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    transition: color var(--transition-base);
}

.store-search:hover .search-icon {
    color: var(--primary-color);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

/* ========================================
   FILTERS & SORTING
   ======================================== */
.filters-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.filters-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* ========================================
   PRODUCT GRID
   ======================================== */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.results-count {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 0.03;
}

.product-image-container {
    position: relative;
    padding-top: 100%;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.product-badge.hot-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    animation: hotPulse 1.5s ease-in-out infinite;
}

.product-badge.hot-badge i {
    margin-right: 4px;
}

@keyframes hotPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
    }
}

.product-info {
    padding: 18px;
    position: relative;
    z-index: 1;
}

.product-brand {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 44px;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-stock {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
}

.in-stock {
    color: var(--success-color);
}

.out-of-stock {
    color: var(--danger-color);
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    overflow-x: hidden;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    /*position: sticky;*/
    top: 120px;
}

.main-image-container {
    position: relative;
    padding-top: 100%;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 20px;
    cursor: zoom-in;
    border: 2px solid var(--border-light);
    transition: border-color var(--transition-base);
}

.main-image-container:hover {
    border-color: var(--primary-color);
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail-container {
    position: relative;
    padding-top: 100%;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: all var(--transition-base);
}

.thumbnail-container:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-container.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding-top: 10px;
}

.product-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-detail-brand {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-price {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.variation-selector {
    margin: 35px 0;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.variation-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.variation-option {
    padding: 14px 24px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    font-weight: 600;
    color: var(--text-primary);
}

.variation-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.variation-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-buy-now {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.product-description {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.description-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ========================================
   SHOPPING CART
   ======================================== */
.cart-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.cart-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 30px;
    position: relative;
}

.cart-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-base);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: var(--bg-secondary);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cart-item-variant {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-remove {
    background: var(--danger-color);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.cart-summary {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    /*position: sticky;*/
    top: 120px;
    height: fit-content;
}

.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 2px solid var(--border-light);
    margin-top: 15px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.summary-row.total .summary-value {
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.store-footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #111827 100%);
    color: #d1d5db;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    color: #9ca3af;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    transition: all var(--transition-base);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #9ca3af;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dpos-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-powered-text {
    color: #9ca3af;
}

.footer-powered-link {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-powered-link:hover {
    color: var(--secondary-color);
}

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 15px;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.error-text {
    font-size: 13px;
    color: var(--danger-color);
    margin-top: 6px;
    font-weight: 600;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-color);
    border-color: var(--info-color);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-primary);
    color: #ffffff;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: slideInUp 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 12px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-base);
    font-weight: 600;
}

.pagination a:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.pagination .active span {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* ========================================
   IMAGE ZOOM
   ======================================== */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.zoom-overlay.active {
    display: flex;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: var(--shadow-xl);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .header-top-content {
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        gap: 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image-container {
        padding-top: 75%;
    }

    .main-image {
        padding: 15px;
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .main-image-container {
        padding-top: 65%;
    }

    .main-image {
        padding: 10px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .action-buttons {
        flex-direction: column;
    }

    .quantity-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========================================
   ACCOUNT/DASHBOARD PAGES
   ======================================== */
.account-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.account-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.account-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.account-subtitle {
    font-size: 16px;
    opacity: 0.95;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-base);
}

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

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-color);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-color);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-color);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
    display: flex;
}