
/*
Theme Name: SokoLetu Marketplace Pro
Theme URI: https://sokoletu.co.tz
Author: SokoLetu Team
Author URI: https://sokoletu.co.tz
Description: Theme ya kisasa ya multi-vendor marketplace kwa Afrika Mashariki. Inafanana na Amazon/Jumia na ina muundo wa premium wenye gradients, shadows, na animations. Inafanya kazi na WooCommerce na Dokan/WCFM multi-vendor plugins. Lugha: Kiswahili 100%.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sokoletu
Tags: e-commerce, woocommerce, marketplace, multi-vendor, kiswahili, africa, responsive, modern, premium

SokoLetu Marketplace Pro - Soko la Mtandaoni Afrika Mashariki
*/

/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #eab308;
    --secondary-dark: #ca8a04;
    --secondary-light: #facc15;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f97316, #ea580c, #eab308);
    --gradient-hero: linear-gradient(135deg, #ea580c, #f97316, #eab308);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-green: linear-gradient(135deg, #22c55e, #10b981);
    --gradient-red: linear-gradient(135deg, #ef4444, #ec4899);
    --gradient-yellow: linear-gradient(135deg, #eab308, #f97316);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #a855f7);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-orange: 0 10px 25px -5px rgba(249, 115, 22, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --container-max: 1280px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-800);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p { margin-bottom: 1rem; }

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.sokoletu-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .sokoletu-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .sokoletu-container { padding: 0 2rem; }
}

/* ============================================
   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-weight: 600;
    font-size: var(--font-size-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
}

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

.btn-block {
    width: 100%;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--gray-700);
    background: white;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============================================
   HEADER
   ============================================ */
.sokoletu-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gradient-hero);
    box-shadow: var(--shadow-lg);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.header-logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.header-logo-text h1 {
    font-size: var(--font-size-xl);
    color: white;
    line-height: 1.2;
    margin: 0;
}

.header-logo-text span {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
}

.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.header-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.header-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent-red);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background 0.2s ease;
}

.header-user-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Navigation */
.header-nav {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.header-nav-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-nav-inner::-webkit-scrollbar {
    display: none;
}

.header-nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
    background: white;
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (max-width: 767px) {
    .header-search { display: none; }
    .header-actions { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-nav-inner { display: none; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(234, 179, 8, 0.1);
    border-radius: 50%;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-sm);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: var(--font-size-5xl);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title span {
    color: #fef08a;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .hero-title { font-size: var(--font-size-3xl); }
    .hero-subtitle { font-size: var(--font-size-lg); }
    .hero-section { padding: 3rem 0; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 3rem 0;
}

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

.section-title {
    font-size: var(--font-size-2xl);
    color: var(--gray-800);
    margin: 0;
}

.section-subtitle {
    color: var(--gray-500);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-body {
    padding: 1.25rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.product-card-image {
    position: relative;
    padding: 1rem;
    padding-bottom: 0;
}

.product-card-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.product-card-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.product-card-wishlist {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.2s ease;
    border: none;
    cursor: pointer;
}

.product-card:hover .product-card-wishlist {
    opacity: 1;
}

.product-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.product-card-vendor {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.product-card-title {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-card-rating .stars {
    color: #fbbf24;
    font-size: var(--font-size-sm);
}

.product-card-rating .count {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-card-price .current {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--primary);
}

.product-card-price .original {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-card-btn {
    width: 100%;
    padding: 0.625rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.product-card-btn:hover {
    box-shadow: var(--shadow-orange);
    transform: translateY(-1px);
}

/* ============================================
   GRIDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

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

.category-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

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

.category-card-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--gray-800);
}

.category-card-count {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-card-icon.blue { background: var(--gradient-blue); }
.stat-card-icon.green { background: var(--gradient-green); }
.stat-card-icon.red { background: var(--gradient-red); }
.stat-card-icon.yellow { background: var(--gradient-yellow); }

.stat-card-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-800);
}

.stat-card-label {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .dashboard-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 1rem);
        align-self: start;
    }
}

.dashboard-sidebar-profile {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-sidebar-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;
    flex-shrink: 0;
}

.dashboard-sidebar-name {
    font-weight: 700;
    color: var(--gray-800);
    font-size: var(--font-size-base);
}

.dashboard-sidebar-email {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    margin-top: 0.25rem;
}

.dashboard-nav {
    padding: 0.75rem;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.dashboard-nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.dashboard-nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-orange);
}

.dashboard-nav-item .emoji {
    font-size: var(--font-size-base);
}

/* ============================================
   FOOTER
   ============================================ */
.sokoletu-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    margin-top: auto;
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: var(--gray-800);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: var(--gray-300);
    transition: color 0.2s ease;
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    margin-bottom: 0.75rem;
}

.footer-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-payment-badge {
    padding: 0.375rem 0.75rem;
    background: var(--gray-800);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--gray-300);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ============================================
   BADGES & STATUS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-primary { background: #ffedd5; color: #9a3412; }

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    padding: 3rem;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PROFILE HEADER
   ============================================ */
.profile-header {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .profile-header-content {
        flex-direction: row;
    }
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-xl);
    flex-shrink: 0;
}

.profile-info {
    text-align: center;
}

@media (min-width: 768px) {
    .profile-info { text-align: left; }
}

.profile-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.profile-email {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .profile-badges { justify-content: flex-start; }
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: white;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--gray-700);
    background: var(--gray-50);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.tabs-content {
    padding: 1.5rem;
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ============================================
   FLASH DEALS SECTION
   ============================================ */
.flash-deals {
    background: linear-gradient(135deg, #dc2626, #f97316);
    padding: 2.5rem 0;
}

.flash-deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: white;
}

.flash-deals-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flash-deals-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-sm);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 25%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.cta-text {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-404-number {
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

@media (min-width: 768px) {
    .error-404-number { font-size: 12rem; }
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce ul.products li.product a img {
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    object-fit: cover;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500 !important;
    padding: 0.625rem 1.25rem !important;
    transition: all 0.3s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    box-shadow: var(--shadow-orange) !important;
    transform: translateY(-2px) !important;
}

.woocommerce .price {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border-radius: var(--radius-sm) !important;
    margin: 0 0.25rem !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--gradient-primary) !important;
    border: none !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
    .hide-desktop { display: none !important; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sokoletu-header,
    .sokoletu-footer,
    .dashboard-sidebar {
        display: none !important;
    }
}
