/* ============================================
   WIDERANGE TECHNOLOGY - Modern E-Commerce CSS
   Professional ICT Store Design System
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Light Green & White Theme */
    --primary: #4ade80;
    --primary-dark: #22c55e;
    --primary-light: #86efac;
    --secondary: #166534;
    --accent: #a3e635;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* WhatsApp */
    --whatsapp: #25d366;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--gray-700);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 4px;
}

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

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: var(--gray-300);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i {
    color: var(--primary-light);
}

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

.top-bar-right a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-300);
}

.top-bar-right a:hover {
    color: var(--primary-light);
}

.currency-selector select {
    background: transparent;
    border: 1px solid var(--gray-600);
    color: var(--gray-300);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--secondary);
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    background: var(--white);
}

.search-category {
    border-right: 1px solid var(--gray-200);
}

.search-category select {
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--gray-600);
    cursor: pointer;
    min-width: 140px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    outline: none;
    font-size: 0.95rem;
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--gray-600);
    font-size: 0.8rem;
    position: relative;
}

.header-action i {
    font-size: 1.3rem;
}

.header-action .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.cart-action {
    flex-direction: row;
    gap: 8px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-total {
    font-weight: 700;
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition);
}

/* Main Navigation */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
    min-width: 220px;
    justify-content: space-between;
}

.categories-btn:hover {
    background: var(--primary-dark);
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.categories-dropdown:hover .categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.categories-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.categories-menu a i {
    width: 20px;
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 18px;
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 80%;
}

.nav-menu > li > a i.fa-fire {
    color: var(--danger);
}

/* Mega Menu */
.has-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    min-width: 600px;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.mega-col a {
    display: block;
    padding: 8px 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.mega-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Nav Actions */
.nav-actions {
    margin-left: auto;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
}

.hotline i {
    font-size: 2rem;
    color: var(--primary);
}

.hotline span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.hotline strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary);
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-swiper {
    height: 550px;
}

.hero-slide {
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary-light);
}

.hero-text p {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

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

/* Swiper Customization */
.swiper-button-prev,
.swiper-button-next {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

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

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Features Bar */
.features-bar {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--gray-50);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent);
}

.section-header p {
    color: var(--gray-500);
    margin-top: 5px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

.view-all:hover {
    gap: 12px;
}

/* Countdown */
.countdown {
    display: flex;
    gap: 10px;
}

.countdown-item {
    background: var(--danger);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 60px;
}

.countdown-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 25px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

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

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.category-card span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-100);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.sale {
    background: var(--danger);
    color: var(--white);
}

.product-badge.hot {
    background: var(--accent);
    color: var(--white);
}

.product-badge.bestseller {
    background: var(--success);
    color: var(--white);
}

.product-badge.new {
    background: var(--info);
    color: var(--white);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 38px;
    height: 38px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    padding: 20px;
    background: var(--gray-50);
    text-align: center;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 180px;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.product-rating i {
    color: var(--accent);
    font-size: 0.85rem;
}

.product-rating span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

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

.current-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

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

.product-buttons {
    display: flex;
    gap: 10px;
}

.product-buttons .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.85rem;
}

.product-buttons .btn-outline {
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.product-buttons .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gray-50);
}

/* Banner Section */
.banner-section {
    padding: 60px 0;
}

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

.banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.banner-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.banner-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 15px;
}

.banner-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.banner-image {
    position: absolute;
    right: 20px;
    bottom: 0;
}

.banner-image img {
    max-height: 200px;
    object-fit: contain;
}

/* Products Slider */
.products-slider {
    position: relative;
}

.products-swiper .swiper-slide {
    height: auto;
}

.products-swiper .swiper-button-prev,
.products-swiper .swiper-button-next {
    background: var(--white);
    color: var(--gray-700);
    box-shadow: var(--shadow-lg);
    width: 45px;
    height: 45px;
}

.products-swiper .swiper-button-prev:hover,
.products-swiper .swiper-button-next:hover {
    background: var(--primary);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-text p {
    color: var(--gray-300);
    font-size: 1.1rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* Brands Section */
.brands-section {
    background: var(--white);
}

.brands-swiper {
    padding: 20px 0;
}

.brands-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brands-swiper .swiper-slide:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brands-swiper img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
}

/* Testimonials */
.testimonials-section {
    background: var(--gray-100);
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: var(--accent);
}

.testimonial-text {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.2rem;
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.newsletter-text p {
    color: rgba(255,255,255,0.8);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn {
    border-radius: var(--radius-full);
    background: var(--secondary);
}

.newsletter-form .btn:hover {
    background: var(--gray-800);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--gray-300);
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: var(--primary);
}

.footer-logo .logo-main {
    color: var(--white);
}

.footer-col > p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

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

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 25px;
}

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

.footer-col ul a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--primary-light);
    margin-top: 3px;
}

.footer-bottom {
    background: var(--gray-900);
    padding: 20px 0;
}

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

.footer-links {
    display: flex;
    gap: 25px;
}

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

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

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods img {
    height: 25px;
    filter: grayscale(100%) brightness(2);
    opacity: 0.7;
}

.payment-methods .ecocash {
    background: #00a651;
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    animation: pulse 2s infinite;
    position: relative;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-600);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mega-menu {
        min-width: 500px;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .top-bar-left {
        display: none;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        flex: 0 0 100%;
        margin-top: 15px;
    }
    
    .nav-content {
        flex-wrap: wrap;
    }
    
    .categories-dropdown {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-swiper {
        height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banners-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        text-align: center;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-content {
        text-align: center;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .cart-info {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-card {
        padding: 25px;
    }
    
    .banner-card h3 {
        font-size: 1.4rem;
    }
    
    .banner-image {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
