/* ========================================
   PREMIUM E-COMMERCE CSS
   For wowfactorfinds.com
   ======================================== */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #1a1a2e;
    --text: #2d3748;
    --text-light: #718096;
    --text-muted: #a0aec0;
    --white: #ffffff;
    --light-bg: #f7fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    color: var(--text); 
    line-height: 1.6; 
    background: var(--white);
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-gradient { 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.5);
}
.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}
.nav-wrapper {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.navbar.scrolled .nav-wrapper {
    box-shadow: var(--shadow);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}
.logo-text { color: var(--dark); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link i { font-size: 12px; margin-left: 4px; }

/* Dropdown Menu */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 20px;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.dropdown-header .view-all {
    color: var(--primary);
    font-size: 14px;
}
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    transition: var(--transition);
}
.dropdown-item:hover {
    background: var(--light-bg);
}
.dropdown-item-name { font-size: 14px; }
.dropdown-item-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--light-bg);
    padding: 2px 8px;
    border-radius: 20px;
}
.dropdown-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.dropdown-footer a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/* Nav Search */
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-search input {
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    width: 200px;
    transition: var(--transition);
}
.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    width: 250px;
}
.nav-search i {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 24px;
    transform: translateX(-100%);
    transition: var(--transition);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.mobile-categories { padding: 20px 0; }
.mobile-categories-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.mobile-category-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 14px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 50%, rgba(240,147,251,0.05) 100%);
}
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(102,126,234,0.4), rgba(118,75,162,0.4));
    top: -150px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}
.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(240,147,251,0.4), rgba(245,87,108,0.3));
    bottom: -100px;
    right: -100px;
    animation: float 25s ease-in-out infinite reverse;
}
.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(79,172,254,0.3), rgba(0,242,254,0.3));
    top: 40%;
    left: 40%;
    animation: float 30s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -30px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(20px, 10px); }
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { max-width: 600px; }
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}
.hero-label i { color: #fbbf24; }
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 20px;
}
.hero-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}
.hero-trust {
    display: flex;
    gap: 32px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}
.trust-item i {
    color: var(--primary);
}

/* Hero Showcase */
.hero-showcase {
    position: relative;
}
.showcase-main {
    margin-bottom: 16px;
}
.showcase-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
}
.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.showcase-card:hover img {
    transform: scale(1.05);
}
.showcase-card-main {
    height: 350px;
}
.showcase-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
}
.showcase-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}
.showcase-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.showcase-price {
    font-size: 20px;
    font-weight: 800;
}
.showcase-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.showcase-card-small {
    height: 180px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(102,126,234,0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.categories-section {
    padding: 80px 0;
    background: var(--light-bg);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
}
.category-content { flex: 1; }
.category-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.category-content span {
    font-size: 13px;
    color: var(--text-light);
}
.category-arrow {
    color: var(--text-muted);
    transition: var(--transition);
}
.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* ========================================
   FEATURED PRODUCTS
   ======================================== */
.featured-section {
    padding: 80px 0;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--light-bg);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
}
.badge-hot {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.product-actions {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .product-actions {
    opacity: 1;
}
.action-btn {
    padding: 12px 24px;
    background: var(--white);
    color: var(--dark);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}
.product-details {
    padding: 20px;
}
.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}
.product-rating i {
    color: #fbbf24;
    font-size: 12px;
}
.product-rating span {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
}
.product-views {
    font-size: 13px;
    color: var(--text-light);
}
.product-views i { margin-right: 4px; }
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}
.product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.product-link i { margin-left: 4px; font-size: 12px; }

/* ========================================
   PROMO BANNER
   ======================================== */
.promo-banner {
    padding: 0 24px;
    margin: 60px 0;
}
.promo-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}
.promo-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.promo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}
.promo-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.promo-icon {
    font-size: 120px;
    opacity: 0.3;
}

/* ========================================
   ALL PRODUCTS SECTION
   ======================================== */
.all-products-section {
    padding: 80px 0;
    background: var(--light-bg);
}
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.toolbar-left h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}
.products-count {
    font-size: 14px;
    color: var(--text-light);
}
.sort-select {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: var(--white);
}
.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}
.filter-group {
    margin-bottom: 28px;
}
.filter-group:last-child { margin-bottom: 0; }
.filter-group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}
.filter-group h3 i {
    color: var(--primary);
}
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.filter-option:hover {
    background: var(--light-bg);
}
.filter-option.active {
    background: rgba(102,126,234,0.1);
}
.filter-option input {
    display: none;
}
.option-name {
    flex: 1;
    font-size: 14px;
}
.option-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--light-bg);
    padding: 2px 8px;
    border-radius: 20px;
}
.filter-option.active .option-count {
    background: var(--primary);
    color: var(--white);
}

/* Products Grid */
.products-grid-wrapper {
    flex: 1;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
    padding: 60px 0;
    background: var(--white);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.trust-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--light-bg);
    border-radius: var(--radius);
    transition: var(--transition);
}
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.trust-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}
.trust-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.trust-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--white);
}
.footer-main {
    padding: 60px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-brand { }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}
.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}
.footer-brand > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.footer-col ul a:hover {
    color: var(--white);
}
.payment-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    font-size: 28px;
    opacity: 0.7;
}
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .hero-title { font-size: 46px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 968px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 38px; }
    .hero-showcase { order: -1; }
    
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    
    .products-layout { grid-template-columns: 1fr; }
    .filters-sidebar { 
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    
    .promo-content { flex-direction: column; text-align: center; padding: 40px; }
    .promo-icon { display: none; }
    
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 32px; }
    .hero-cta { flex-direction: column; }
    .hero-trust { flex-direction: column; gap: 12px; }
    
    .section-title { font-size: 28px; }
    .categories-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .filters-sidebar { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .dropdown-menu { min-width: 300px; }
    .dropdown-grid { grid-template-columns: 1fr; }
}