﻿/*
Theme Name: WPressTheme
Theme URI: http://localhost/wpresstheme
Author: WPressTheme
Author URI: http://localhost
Description: A ThemeForest-like marketplace theme with WooCommerce integration
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
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: WPressTheme
Tags: e-commerce, theme-options, custom-menu, featured-images, threaded-comments, translation-ready
WooCommerce: 8.0.0
*/

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    --primary-color: #82b541;
    --primary-dark: #6a9635;
    --secondary-color: #1e3a5f;
    --accent-color: #ff6b6b;
    --dark-bg: #1c1c1c;
    --darker-bg: #121212;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #0073aa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   HEADER STYLES
   ===================================================== */
.site-header {
    background-color: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-top {
    background-color: var(--darker-bg);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-links a {
    color: var(--text-muted);
    margin-right: 20px;
}

.header-top-links a:hover {
    color: var(--primary-color);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
}

.site-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.site-logo .logo-text span {
    color: var(--primary-color);
}

/* Navigation */
.main-navigation {
    flex-shrink: 0;
}

.main-navigation ul {
    display: flex;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: var(--white);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Dropdown menu */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 0;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--light-bg);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 350px;
    min-width: 200px;
}

.search-form {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 0.85rem;
    min-width: 0;
}

.search-form button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions .action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-weight: 500;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.header-actions .action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-actions .action-btn i {
    font-size: 1.15rem;
}

.cart-count {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 3px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(130, 181, 65, 0.4);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 10px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/hero-pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary-color);
    display: inline;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-search {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 8px;
    display: flex;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

.hero-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    border-radius: var(--border-radius);
    min-width: 0;
}

.hero-search button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-search button:hover {
    transform: scale(1.02);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 15%;
    right: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 15%;
    left: 0;
    animation-delay: 1.5s;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.floating-card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        min-height: 300px;
    }
    
    .floating-card.card-1,
    .floating-card.card-2 {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-search {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-search button {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        text-align: center;
    }
}

/* =====================================================
   CATEGORIES SECTION
   ===================================================== */
.categories-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 2rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.category-count {
    display: inline-block;
    background: var(--light-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.category-links a {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.category-links a:hover {
    text-decoration: underline;
}

/* =====================================================
   PRODUCTS GRID
   ===================================================== */
.products-section {
    padding: 80px 0;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header-flex h2 {
    font-size: 2rem;
    font-weight: 800;
}

.section-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.section-tabs button {
    padding: 10px 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.section-tabs button.active,
.section-tabs button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
}

.products-grid .product-card {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-thumbnail img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    padding: 12px 20px;
    background: var(--white);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-overlay .btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.product-overlay .btn-preview {
    background: var(--primary-color);
    color: var(--white);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-featured {
    background: var(--warning-color);
    color: var(--text-primary);
}

.badge-new {
    background: var(--primary-color);
    color: var(--white);
}

.badge-sale {
    background: var(--accent-color);
    color: var(--white);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-author {
    color: var(--primary-color);
}

.product-category {
    background: var(--light-bg);
    padding: 3px 10px;
    border-radius: 4px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating .stars {
    color: var(--warning-color);
}

.product-rating .count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =====================================================
   FEATURED SECTION
   ===================================================== */
.featured-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
}

.featured-section .section-header h2,
.featured-section .section-header p {
    color: var(--white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.featured-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   AUTHOR/CREATOR SECTION
   ===================================================== */
.creator-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.creator-spotlight {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.creator-info {
    text-align: center;
}

.creator-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    overflow: hidden;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.creator-title {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.creator-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.creator-stat {
    text-align: center;
}

.creator-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.creator-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.creator-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.creator-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.creator-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* =====================================================
   BESTSELLERS SECTION
   ===================================================== */
.bestsellers-section {
    padding: 80px 0;
}

.bestseller-card {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.bestseller-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.bestseller-rank {
    width: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.bestseller-image {
    width: 200px;
}

.bestseller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bestseller-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bestseller-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.bestseller-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bestseller-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: flex-end;
}

.bestseller-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bestseller-sales {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================
   VALUE PROPOSITION
   ===================================================== */
.value-props {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 40px;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--text-secondary);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
}

.footer-main {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about .site-logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.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;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-column ul a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-stats {
    display: flex;
    gap: 30px;
}

.footer-stats span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-stats strong {
    color: var(--primary-color);
}

/* =====================================================
   SINGLE PRODUCT PAGE
   ===================================================== */
.single-product-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
    padding: 40px 0;
}

.product-breadcrumb {
    margin-bottom: 20px;
}

.product-breadcrumb a,
.product-breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.single-product-main {
    padding: 60px 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-thumbnails img {
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: var(--primary-color);
}

.product-details h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.product-details-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-details-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-actions .btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.product-features {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-features ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-features ul li:last-child {
    border-bottom: none;
}

.product-features ul li i {
    color: var(--primary-color);
}

/* =====================================================
   PREVIEW MODAL
   ===================================================== */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.preview-modal.active {
    opacity: 1;
    visibility: visible;
}

.preview-header {
    background: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.preview-title {
    font-weight: 600;
}

.preview-actions {
    display: flex;
    gap: 15px;
}

.preview-close {
    font-size: 1.5rem;
    color: var(--text-primary);
    padding: 10px;
}

.preview-frame {
    flex: 1;
    width: 100%;
    border: none;
}

.device-selector {
    display: flex;
    gap: 10px;
}

.device-selector button {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: var(--light-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-selector button.active,
.device-selector button:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* =====================================================
   WOOCOMMERCE OVERRIDES
   ===================================================== */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.woocommerce .products li.product {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

.woocommerce ul.products li.product .onsale {
    background-color: var(--accent-color);
    top: 15px;
    right: auto;
    left: 15px;
    min-height: auto;
    min-width: auto;
    padding: 5px 12px;
    line-height: 1.4;
    border-radius: 4px;
    font-weight: 600;
}

.woocommerce ul.products li.product .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.woocommerce ul.products li.product .button {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--primary-dark);
}

/* Cart */
.woocommerce .woocommerce-cart-form table {
    border-collapse: collapse;
}

.woocommerce table.cart td,
.woocommerce table.cart th {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce table.cart img {
    width: 80px;
    border-radius: var(--border-radius);
}

.woocommerce .cart-collaterals {
    margin-top: 40px;
}

.woocommerce .cart_totals {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
}

.woocommerce .cart_totals h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.woocommerce .cart_totals table {
    border: none;
}

.woocommerce .cart_totals table td,
.woocommerce .cart_totals table th {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce a.checkout-button,
.woocommerce button.checkout-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.woocommerce a.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(130, 181, 65, 0.4);
}

/* Checkout */
.woocommerce-checkout {
    padding: 60px 0;
}

.woocommerce form.checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.woocommerce-checkout #order_review {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
}

.woocommerce #place_order {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
}

.woocommerce #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(130, 181, 65, 0.4);
}

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-bg));
}

.auth-container {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    margin-top: 10px;
}

.auth-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(130, 181, 65, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--text-muted);
    position: relative;
}

.social-login {
    display: flex;
    gap: 15px;
}

.social-login button {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.social-login button:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

/* =====================================================
   MY ACCOUNT - FIX WIDTH
   ===================================================== */
.woocommerce-account .woocommerce {
    max-width: 100% !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 280px !important;
    min-width: 280px !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: calc(100% - 300px) !important;
    flex: 1 !important;
}

/* =====================================================
   MY ACCOUNT - DASHBOARD (NEW)
   ===================================================== */
.account-dashboard {
    background: #f5f7fa !important;
    min-height: calc(100vh - 80px) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.account-wrapper {
    display: flex !important;
    flex-direction: row !important;
    min-height: calc(100vh - 80px) !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Sidebar */
.account-dashboard .account-sidebar,
.account-wrapper > .account-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
    background: #1a1a2e !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 80px) !important;
}

.sidebar-profile {
    padding: 40px 25px 30px !important;
    text-align: center !important;
    background: linear-gradient(180deg, rgba(130, 181, 65, 0.15) 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.profile-avatar {
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
}

.profile-avatar img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 3px solid #82b541 !important;
    object-fit: cover !important;
}

.profile-avatar .status-badge {
    position: absolute !important;
    bottom: 5px !important;
    right: 5px !important;
    width: 16px !important;
    height: 16px !important;
    background: #82b541 !important;
    border: 2px solid #1a1a2e !important;
    border-radius: 50% !important;
}

.profile-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 0 5px !important;
    color: #fff !important;
}

.profile-email {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    word-break: break-all !important;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0 !important;
    flex: 1 !important;
}

.sidebar-nav .nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 25px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.sidebar-nav .nav-item.active {
    background: rgba(130, 181, 65, 0.15) !important;
    color: #82b541 !important;
    border-left-color: #82b541 !important;
}

.sidebar-nav .nav-item i {
    width: 20px !important;
    text-align: center !important;
    font-size: 1rem !important;
}

/* Main Content */
.account-main {
    flex: 1 !important;
    padding: 40px !important;
    overflow-y: auto !important;
    background: #f5f7fa !important;
    min-width: 0 !important;
}

.account-content-wrapper {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    min-height: 300px !important;
}

/* Dashboard Content Styles */
.account-content-wrapper h2,
.account-content-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.account-content-wrapper p {
    color: #666;
    line-height: 1.7;
}

.account-content-wrapper a:not(.button):not(.btn-auth) {
    color: #82b541;
    font-weight: 500;
}

.account-content-wrapper a:not(.button):not(.btn-auth):hover {
    text-decoration: underline;
}

/* WooCommerce Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.woocommerce-orders-table thead th {
    background: #f8f9fa;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e8e8e8;
    font-size: 0.9rem;
}

.woocommerce-orders-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    vertical-align: middle;
}

.woocommerce-orders-table tbody tr:hover td {
    background: #fafafa;
}

.woocommerce-orders-table .button,
.woocommerce-orders-table .woocommerce-button {
    background: #82b541;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.woocommerce-orders-table .button:hover {
    background: #6a9a35;
}

/* Form Styles */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    max-width: 600px;
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9rem;
}

.woocommerce-EditAccountForm input,
.woocommerce-EditAccountForm select,
.woocommerce-address-fields input,
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #fff;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus {
    border-color: #82b541;
    outline: none;
}

.woocommerce-EditAccountForm button[type="submit"],
.woocommerce-address-fields button[type="submit"],
.account-content-wrapper .button {
    background: linear-gradient(135deg, #82b541, #6a9a35);
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-address-fields button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(130, 181, 65, 0.4);
}

/* Messages & Info */
.woocommerce-message,
.woocommerce-info {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.woocommerce-info {
    background: #e8f4fd;
    border-color: #b8daff;
    color: #004085;
}

.woocommerce-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    list-style: none;
}

/* No Orders / Empty State */
.woocommerce-Message--info {
    text-align: center;
    padding: 40px 20px;
}

.woocommerce-Message--info .woocommerce-Button {
    margin-top: 15px;
}

/* =====================================================
   AUTH PAGE (Login/Register) - NEW
   ===================================================== */
.auth-page-new {
    min-height: calc(100vh - 150px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #82b541, #6a9a35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.auth-logo i {
    font-size: 28px;
    color: #fff;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.auth-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: 25px;
}

.auth-form .form-field {
    margin-bottom: 20px;
}

.auth-form .form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 8px;
}

.auth-form .input-wrapper {
    position: relative;
}

.auth-form .input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
}

.auth-form .input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.auth-form .input-wrapper input:focus {
    border-color: #82b541;
    background: #fff;
    outline: none;
}

.auth-form .input-wrapper input::placeholder {
    color: #bbb;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #82b541;
}

.forgot-link {
    color: #82b541;
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #82b541, #6a9a35);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 181, 65, 0.4);
}

.btn-auth i {
    font-size: 0.9rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #82b541;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .account-wrapper {
        flex-direction: column;
    }
    
    .account-dashboard .account-sidebar {
        width: 100%;
        min-width: 100%;
    }
    
    .sidebar-profile {
        padding: 25px 20px;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        gap: 0;
    }
    
    .sidebar-nav .nav-item {
        padding: 15px 20px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .sidebar-nav .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #82b541;
    }
    
    .account-main {
        padding: 20px;
    }
    
    .account-content-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 25px;
    }
    
    .sidebar-nav .nav-item span {
        display: none;
    }
    
    .sidebar-nav .nav-item {
        padding: 15px;
    }
}

/* =====================================================
   FILTER SIDEBAR
   ===================================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.filter-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-widget ul li {
    padding: 8px 0;
}

.filter-widget ul li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.filter-widget ul li a:hover {
    color: var(--primary-color);
}

.filter-widget ul li .count {
    background: var(--light-bg);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.price-range {
    margin-top: 15px;
}

.price-range input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 8px 15px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    color: var(--white);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.pagination a:hover,
.pagination span.current {
    background: var(--primary-color);
    color: var(--white);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        background: var(--darker-bg);
        border-radius: var(--border-radius);
        padding: 15px;
        margin-top: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
    }
    
    .creator-spotlight {
        grid-template-columns: 1fr;
    }
    
    .creator-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bestseller-card {
        flex-direction: column;
    }
    
    .bestseller-rank {
        width: 100%;
        padding: 10px;
    }
    
    .bestseller-image {
        width: 100%;
    }
    
    .auth-container {
        padding: 30px;
    }
    
    .woocommerce form.checkout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-header-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-login {
        flex-direction: column;
    }
}

/* =====================================================
   LOADING ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-skeleton {
    background: linear-gradient(90deg, var(--light-bg) 25%, var(--border-color) 50%, var(--light-bg) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--border-radius);
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== NOTIFICATION POPUP ===== */
.tm-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 320px;
    border-left: 4px solid #4361ee;
    font-size: 13px;
}

.tm-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.tm-notification i {
    font-size: 18px;
    flex-shrink: 0;
}

.tm-notification span {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.3;
}

.tm-notification.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.tm-notification.success i {
    color: #28a745;
}

.tm-notification.success span {
    color: #155724;
}

.tm-notification.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.tm-notification.error i {
    color: #dc3545;
}

.tm-notification.error span {
    color: #721c24;
}

.tm-notification.info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.tm-notification.info i {
    color: #17a2b8;
}

.tm-notification.info span {
    color: #0c5460;
}

/* Cart Added Animation */
.cart-btn.cart-added {
    animation: cartBounce 0.6s ease;
}

.cart-btn.cart-added .cart-count {
    animation: countPop 0.4s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); background-color: #28a745; }
    100% { transform: scale(1); }
}

/* Add to Cart Button Loading */
.btn-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-add-to-cart {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
}

.btn-add-to-cart:hover {
    background: var(--primary-hover) !important;
}

/* ===== MINI CART / SIDE CART ===== */
.mini-cart-dropdown {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.mini-cart-dropdown.active {
    right: 0;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-bg);
}

.mini-cart-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.close-mini-cart {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.close-mini-cart:hover {
    color: var(--dark-color);
    transform: rotate(90deg);
}

.mini-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* WooCommerce Mini Cart Styling */
.mini-cart-content .woocommerce-mini-cart {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-cart-content .woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mini-cart-content .woocommerce-mini-cart-item a:not(.remove) {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    flex: 1;
}

.mini-cart-content .woocommerce-mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.mini-cart-content .woocommerce-mini-cart-item .remove {
    color: var(--text-muted) !important;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
    margin-left: auto;
}

.mini-cart-content .woocommerce-mini-cart-item .remove:hover {
    color: #dc3545 !important;
}

.mini-cart-content .woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.mini-cart-content .woocommerce-mini-cart-item .amount {
    font-weight: 600;
    color: var(--primary-color);
}

.mini-cart-content .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-bg);
    font-size: 16px;
    font-weight: 600;
    border-top: 1px solid var(--border-color);
}

.mini-cart-content .woocommerce-mini-cart__total .amount {
    font-size: 20px;
    color: var(--primary-color);
}

.mini-cart-content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.mini-cart-content .woocommerce-mini-cart__buttons a {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.mini-cart-content .woocommerce-mini-cart__buttons .wc-forward:first-child {
    background: var(--light-bg);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.mini-cart-content .woocommerce-mini-cart__buttons .wc-forward:first-child:hover {
    background: var(--border-color);
}

.mini-cart-content .woocommerce-mini-cart__buttons .checkout {
    background: var(--primary-color);
    color: var(--white);
}

.mini-cart-content .woocommerce-mini-cart__buttons .checkout:hover {
    background: var(--primary-hover);
}

.mini-cart-content .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.mini-cart-content .woocommerce-mini-cart__empty-message::before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
}

.quantity-selector .qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--light-bg);
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-selector .qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-selector .qty-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== SINGLE PRODUCT ADD TO CART ===== */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: stretch;
    margin: 25px 0;
}

.btn-add-to-cart-single {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-to-cart-single:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(130, 180, 0, 0.4);
}

.btn-add-to-cart-single .price-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 5px;
}

.btn-add-to-cart-single.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-wishlist {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.btn-wishlist.active i {
    font-weight: 900;
}

/* ===== OVERLAY ===== */
.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 576px) {
    .mini-cart-dropdown {
        width: 100%;
        right: -100%;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-to-cart-single {
        width: 100%;
        order: 2;
    }
    
    .btn-wishlist {
        order: 3;
    }
}

/* =====================================================
   NEW MODERN HOMEPAGE STYLES
   ===================================================== */

/* Hero Modern */
.hero-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(130, 181, 65, 0.1), rgba(130, 181, 65, 0.05));
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 30%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(130, 181, 65, 0.15);
    border: 1px solid rgba(130, 181, 65, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-badge i {
    color: #ff6b6b;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #a8e063);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search-box {
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-search-form {
    display: flex;
    background: #fff;
    border-radius: 60px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.search-input-wrapper i {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 18px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), #6a9635);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(130, 181, 65, 0.4);
}

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.popular-searches span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.popular-searches a {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.popular-searches a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Stats */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-stat .stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(130, 181, 65, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}

.hero-stat .stat-info {
    text-align: left;
}

.hero-stat .stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Section Styles */
.section-heading {
    margin-bottom: 50px;
}

.section-heading.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(130, 181, 65, 0.1), rgba(130, 181, 65, 0.2));
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.section-heading h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-heading-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 0;
}

.view-all-btn:hover {
    gap: 12px;
}

/* Categories Showcase */
.categories-showcase {
    padding: 80px 0;
    background: var(--light-bg);
}

.categories-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card-modern {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--cat-color);
}

.category-card-modern .cat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--cat-color), var(--cat-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 28px;
    transition: all 0.3s ease;
}

.category-card-modern:hover .cat-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card-modern h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-card-modern p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.category-card-modern .cat-count {
    display: inline-block;
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.category-card-modern .cat-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--cat-color);
}

.category-card-modern:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Featured Themes Modern */
.featured-themes-section {
    padding: 80px 0;
}

.featured-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.featured-card-large {
    grid-row: span 2;
}

.featured-card-large,
.featured-card-small {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-card-large:hover,
.featured-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.fc-image {
    position: relative;
    overflow: hidden;
}

.featured-card-large .fc-image {
    height: 400px;
}

.featured-card-small .fc-image {
    height: 180px;
}

.fc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fc-image:hover img {
    transform: scale(1.05);
}

.fc-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.badge-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fc-image:hover .fc-overlay {
    opacity: 1;
    visibility: visible;
}

.btn-preview-modern,
.btn-details-modern {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-preview-modern {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-preview-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-details-modern {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-details-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.fc-content {
    padding: 20px;
}

.fc-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.fc-content h3 a:hover {
    color: var(--primary-color);
}

.fc-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.fc-rating {
    color: #f59e0b;
}

.fc-rating i {
    margin-right: 4px;
}

.fc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.fc-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.fc-sales {
    font-size: 13px;
    color: var(--text-muted);
}

.fc-sales i {
    margin-right: 5px;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #a8e063);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #fff;
    font-size: 32px;
}

.feature-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Newest Themes Section */
.newest-themes-section {
    padding: 80px 0;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--light-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.product-card-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pc-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .pc-image img {
    transform: scale(1.08);
}

.pc-quick-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card-modern:hover .pc-quick-actions {
    opacity: 1;
    visibility: visible;
}

.qa-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.qa-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.pc-content {
    padding: 20px;
}

.pc-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-content h3 a:hover {
    color: var(--primary-color);
}

.pc-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.pc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pc-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.pc-stats i {
    color: #f59e0b;
    margin-right: 3px;
}

.section-cta {
    text-align: center;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), #6a9635);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(130, 181, 65, 0.4);
    color: #fff;
}

/* Bestsellers Modern */
.bestsellers-modern-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bestseller-card-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.bestseller-card-modern:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bs-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #6a9635);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.bs-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.bs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-content {
    flex: 1;
    min-width: 0;
}

.bs-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-content h4 a:hover {
    color: var(--primary-color);
}

.bs-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.bs-rating {
    color: #f59e0b;
}

.bs-actions {
    text-align: right;
    flex-shrink: 0;
}

.bs-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.bs-sales {
    font-size: 12px;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tc-stars {
    margin-bottom: 20px;
    color: #f59e0b;
    font-size: 14px;
}

.tc-stars i {
    margin-right: 3px;
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.tc-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tc-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.tc-author strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
}

.tc-author span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary-color), #6a9635);
    color: #fff;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(130, 181, 65, 0.4);
}

/* Author CTA Section */
.author-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a8f2d 100%);
}

.author-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.author-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.author-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.author-benefits {
    margin-bottom: 35px;
}

.author-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

.author-benefits li i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--primary-dark);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-author:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

.author-cta-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.author-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1200px) {
    .categories-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats-row {
        gap: 30px;
    }
    
    .featured-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .featured-card-large {
        grid-row: span 1;
    }
    
    .featured-card-large .fc-image {
        height: 280px;
    }
    
    .bestsellers-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }
    
    .author-cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-benefits {
        display: inline-block;
        text-align: left;
    }
    
    .author-cta-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-search-form {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-input-wrapper {
        padding: 10px 20px;
    }
    
    .search-btn {
        border-radius: 12px;
        margin: 0 8px 8px;
    }
    
    .hero-stats-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .categories-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .categories-cards {
        grid-template-columns: 1fr;
    }
    
    .products-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .pc-image {
        height: 220px;
    }
    
    .newsletter-box {
        padding: 40px 25px;
    }
    
    .author-cta-content h2 {
        font-size: 1.75rem;
    }
}

/* =====================================================
   ANIMATIONS & KEYFRAMES
   ===================================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Shimmer Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Rotate Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Enhanced Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(130, 181, 65, 0.4);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Button Animation Effects */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-animated:hover::before {
    left: 100%;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Image Hover Effects */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Card Tilt Effect */
.card-tilt {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Floating Elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Spinning Loader */
.spinner {
    animation: rotate 1s linear infinite;
}

/* Product Card Enhanced Animations */
.product-card-modern,
.product-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover,
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-card-modern .pc-overlay,
.product-card .product-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-modern:hover .pc-overlay,
.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card-modern .pc-overlay .overlay-btns,
.product-card .product-overlay .overlay-buttons {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.product-card-modern:hover .pc-overlay .overlay-btns,
.product-card:hover .product-overlay .overlay-buttons {
    transform: translateY(0);
}

/* Category Card Animations */
.category-card-modern {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card-modern .cc-icon {
    transition: transform 0.4s ease, background 0.3s ease;
}

.category-card-modern:hover .cc-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: white;
}

/* Hero Section Animations */
.hero-modern .hero-content-modern {
    animation: fadeInUp 1s ease forwards;
}

.hero-modern .hero-title {
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-modern .hero-subtitle {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-modern .hero-search-modern {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-modern .hero-stats-modern {
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}

.hero-modern .floating-card {
    animation: float 4s ease-in-out infinite;
}

.hero-modern .floating-card:nth-child(2) {
    animation-delay: 1s;
}

.hero-modern .floating-card:nth-child(3) {
    animation-delay: 2s;
}

/* Section Header Animations */
.section-header-modern {
    animation: fadeIn 0.8s ease;
}

/* Newsletter Section */
.newsletter-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(130, 181, 65, 0.3);
}

/* Stats Counter Animation */
.stat-number-modern {
    transition: transform 0.3s ease;
}

.stat-item-modern:hover .stat-number-modern {
    transform: scale(1.1);
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease;
}

/* Notification Pop Animation */
@keyframes notificationPop {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    50% {
        transform: translateX(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.notification-popup {
    animation: notificationPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Mini Cart Slide */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#mini-cart.active {
    animation: slideInFromRight 0.3s ease forwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
