/* Creative Ecommerce Homepage - Complete Redesign */
/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF1179;
    --secondary-color: #3334A8;
    --accent-color: #FFCB3F;
    --gradient-start: #C764DB;
    --gradient-end: #3334A8;
    --dark-text: #1a1a2e;
    --light-text: #6c757d;
    --white: #ffffff;
    --light-bg: #f8f9fc;
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --border-radius-xl: 50px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Bar Strip - Modern Redesign */
.top-bar-strip {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gradient-end) 100%);
    color: var(--white);
    padding: 12px 0;
    font-size: 13px;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.top-bar-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to { left: 100%; }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left span,
.top-bar-right span {
    opacity: 0.9;
}

.top-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.top-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Main Header - Ultra Modern */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(51, 52, 168, 0.08);
}

.header-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Logo Styling */
.header-logo {
    position: relative;
}

.header-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-logo a:hover img {
    transform: scale(1.05);
}

.header-logo h1 {
    display: none; /* Hide if using SVG logo */
}

/* Search Bar - Glassmorphism Design */
.header-search {
    max-width: 650px;
    position: relative;
}

.search-form {
    display: flex;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 17, 121, 0.15);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background: transparent;
    color: var(--dark-text);
}

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

.search-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--primary-color));
    box-shadow: 0 6px 20px rgba(255, 17, 121, 0.3);
}

.search-button svg {
    transition: var(--transition);
}

.search-button:hover svg {
    transform: scale(1.1) rotate(-10deg);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 24px;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    position: relative;
}

.header-action-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-start));
    border-radius: 10px;
    transition: var(--transition);
}

.header-action-btn:hover {
    color: var(--primary-color);
}

.header-action-btn:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.header-action-btn svg {
    transition: var(--transition);
}

.header-action-btn:hover svg {
    transform: translateY(-3px);
}

/* Mobile Menu Toggle - Creative Burger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 10px;
}

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

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

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

.mobile-menu-toggle:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* Main Navigation - Premium Design */
.main-navigation {
    background: linear-gradient(to right, #fafbff, #f5f7ff);
    border-bottom: 1px solid rgba(51, 52, 168, 0.08);
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: center;
}

.nav-menu li a {
    display: block;
    padding: 16px 28px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
    background: rgba(255, 17, 121, 0.05);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Slider - Dynamic & Eye-Catching */
.hero-slider {
    margin: 0;
    padding: 0;
    position: relative;
}

.slider-wrapper {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.slide-text {
    color: var(--white);
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-title {
    font-size: 62px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #ffffff, #f0f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-subtitle {
    font-size: 26px;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    font-weight: 700;
    font-size: 17px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.btn-hero:hover::before {
    left: 100%;
}

.slide-image {
    animation: float 3s ease-in-out infinite;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.slide-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.3));
}

/* Decorative Elements for Hero */
.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
    pointer-events: none;
    z-index: 3;
}

/* Promo Section - Modern Cards */
.promo-section {
    padding: 60px 0;
    background: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.promo-card {
    padding: 45px 35px;
    border-radius: var(--border-radius-md);
    color: var(--white);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
    transform: scale(0);
    transition: var(--transition);
}

.promo-card:hover::before {
    transform: scale(1);
}

.promo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-content h3 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
}

.promo-content p {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 400;
}

/* Flash Deals Section */
.flash-deals-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe5ed 100%);
    position: relative;
    overflow: hidden;
}

.flash-deals-section::before {
    content: '⚡';
    position: absolute;
    font-size: 400px;
    opacity: 0.03;
    top: -100px;
    right: -100px;
    transform: rotate(-15deg);
    pointer-events: none;
}

.flash-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.flash-deals-title h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flash-deals-title p {
    color: var(--light-text);
    font-size: 16px;
    font-weight: 500;
}

/* Countdown Timer Styling */
.countdown-timer {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-color);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.time-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(255, 17, 121, 0.2);
}

.time-label {
    font-size: 11px;
    color: var(--light-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.time-separator {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 -4px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* Flash Deals Grid */
.flash-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.flash-deal-card {
    position: relative;
    background: var(--white);
    border: 2px solid transparent;
    transition: var(--transition);
}

.flash-deal-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 17, 121, 0.25);
}

.flash-badge {
    background: linear-gradient(135deg, #ff1744, #ff6f00);
    animation: pulse-badge 2s infinite;
}

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

/* Stock Indicator */
.stock-indicator {
    margin-top: 15px;
    margin-bottom: 15px;
}

.stock-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stock-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-start));
    border-radius: 10px;
    transition: width 0.5s ease;
    animation: progress-animation 1.5s ease-in-out infinite;
}

@keyframes progress-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stock-text {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.flash-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff4081);
    position: relative;
    overflow: hidden;
}

.flash-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.flash-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Categories Section - Grid Mastery */
.categories-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

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

.section-header h2 {
    font-size: 42px;
    color: var(--dark-text);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-xl);
}

.view-all:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,17,121,0.05), rgba(199,100,219,0.05));
    transition: var(--transition);
}

.category-card:hover::before {
    left: 0;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 70px;
    margin-bottom: 25px;
    transition: var(--transition);
    display: inline-block;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark-text);
    font-weight: 600;
}

.category-card p {
    color: var(--light-text);
    font-size: 15px;
    font-weight: 400;
}

/* Featured Products - Premium Cards */
.featured-products {
    padding: 80px 0;
    background: var(--white);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    color: var(--dark-text);
}

.filter-tab:hover {
    background: rgba(255, 17, 121, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 17, 121, 0.3);
}

.products-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.product-card-home {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius-lg);
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.4);
}

.product-image-home {
    position: relative;
    overflow: hidden;
    height: 320px;
    background: var(--light-bg);
}

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

.product-card-home:hover .product-image-home img {
    transform: scale(1.15);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,17,121,0.9), rgba(51,52,168,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card-home:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    padding: 14px 35px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.quick-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.product-info-home {
    padding: 30px;
}

.product-category-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,17,121,0.1), rgba(199,100,219,0.1));
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: var(--border-radius-lg);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.product-title-home {
    font-size: 19px;
    margin-bottom: 14px;
    color: var(--dark-text);
    line-height: 1.5;
    font-weight: 600;
    height: 57px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: var(--accent-color);
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-count {
    color: var(--light-text);
    font-size: 13px;
    font-weight: 500;
}

.product-price-home {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.price-new {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-old {
    font-size: 18px;
    color: #adb5bd;
    text-decoration: line-through;
    font-weight: 500;
}

.btn-add-cart {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 17, 121, 0.3);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 17, 121, 0.4);
}

.view-more-wrapper {
    text-align: center;
    margin-top: 60px;
}

.btn-view-more {
    display: inline-block;
    padding: 18px 55px;
    background: transparent;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.btn-view-more:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 17, 121, 0.3);
}

/* Best Selling Products Section */
.best-selling-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.best-selling-section .section-header h2 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.best-selling-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.best-selling-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.best-selling-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.bestseller-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border: 3px solid var(--white);
}

.product-image-small {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

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

.best-selling-card:hover .product-image-small img {
    transform: scale(1.1);
}

.product-details-compact {
    flex: 1;
}

.product-details-compact h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-rating-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-rating-compact .stars {
    color: #fbbf24;
    font-size: 14px;
}

.sales-count {
    font-size: 12px;
    color: var(--light-text);
    font-weight: 500;
}

.product-price-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price-compact .price-new {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-compact .price-old {
    font-size: 14px;
    color: var(--light-text);
    text-decoration: line-through;
}

.btn-view-compact {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.btn-view-compact:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 17, 121, 0.3);
}

/* Deals Section - Vibrant & Urgent */
.deals-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.deals-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    animation: rotate 20s linear infinite;
}

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

.deals-banner {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.deals-label {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 10px 25px;
    border-radius: var(--border-radius-xl);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.deals-content h2 {
    font-size: 56px;
    margin-bottom: 18px;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.deals-content p {
    font-size: 22px;
    margin-bottom: 50px;
    opacity: 0.95;
    font-weight: 400;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.time-box {
    background: rgba(255,255,255,0.15);
    padding: 30px 40px;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.time-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.time-value {
    display: block;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.time-label {
    display: block;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-deals {
    display: inline-block;
    padding: 18px 55px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    font-weight: 700;
    font-size: 17px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-deals:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Features Section - Trust Builders */
.features-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.feature-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 70px;
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--dark-text);
    font-weight: 600;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 15px;
}

/* Footer - Modern & Clean */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding: 80px 0 50px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

.footer-column p {
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    margin-bottom: 25px;
    font-size: 15px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 15px;
}

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

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
    line-height: 1.9;
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-start));
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 17, 121, 0.4);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Sidebar Styles (for products page) */
.sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 120px;
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-widget {
    margin-bottom: 35px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--dark-text);
    font-weight: 600;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--dark-text);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
    background: var(--light-bg);
}

.category-list a:hover,
.category-list a.active {
    background: linear-gradient(135deg, rgba(255,17,121,0.1), rgba(199,100,219,0.1));
    color: var(--primary-color);
    padding-left: 24px;
}

.category-list .count {
    color: var(--light-text);
    font-size: 13px;
    font-weight: 600;
}

/* Products Layout (for products page) */
.products-section {
    padding: 40px 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.products-container {
    min-height: 400px;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--light-text);
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-wrapper {
        grid-template-columns: 200px 1fr auto;
        gap: 30px;
    }

    .products-grid-home {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .slide-title {
        font-size: 48px;
    }

    .slide-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .countdown-timer {
        gap: 15px;
    }

    .time-box {
        padding: 20px 30px;
    }

    .time-value {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    /* Mobile Header */
    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header-wrapper {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .header-actions {
        display: none;
    }

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

    /* Mobile Navigation */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 80px 0 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 18px 30px;
        border-radius: 0;
        border-left: 4px solid transparent;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: var(--light-bg);
        border-left-color: var(--primary-color);
    }

    .nav-menu li a::after {
        display: none;
    }

    /* Mobile Overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }

    /* Hero Slider Mobile */
    .slider-wrapper {
        height: 500px;
    }

    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .slide-image {
        display: none;
    }

    .slide-title {
        font-size: 36px;
    }

    .slide-subtitle {
        font-size: 18px;
    }

    /* Products Layout Mobile */
    .products-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none; /* Hide sidebar on mobile - categories in burger menu */
    }

    .products-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .deals-content h2 {
        font-size: 36px;
    }

    .countdown-timer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .time-box {
        flex: 1;
        min-width: 120px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0 40px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    /* Flash Deals Mobile */
    .flash-deals-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .flash-deals-title h2 {
        font-size: 32px;
    }

    .countdown-timer {
        width: 100%;
        padding: 15px 20px;
        gap: 8px;
        justify-content: center;
    }

    .time-unit {
        min-width: 55px;
    }

    .time-value {
        font-size: 24px;
    }

    .time-label {
        font-size: 10px;
    }

    .time-separator {
        font-size: 20px;
    }

    .flash-deals-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Best Selling Mobile */
    .best-selling-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .best-selling-card {
        padding: 20px;
    }

    .product-image-small {
        width: 80px;
        height: 80px;
    }

    .product-details-compact h4 {
        font-size: 14px;
    }

    .btn-view-compact {
        padding: 8px 16px;
        font-size: 13px;
    }
}

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

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

    .slide-title {
        font-size: 28px;
    }

    .slide-subtitle {
        font-size: 16px;
    }

    .deals-content h2 {
        font-size: 28px;
    }

    .promo-card {
        padding: 35px 25px;
    }

    .btn-hero,
    .btn-deals,
    .btn-view-more {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* Additional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
