/* =====================================================
   STRIDE - Enterprise E-commerce Styles
   Premium Design matching AJIO/Flipkart standards
   ===================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Light Theme Background with Dark Accents */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1a;

    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #ffffff;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --sale: #ff3366;

    --border-color: #e9ecef;
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-mega: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Header Heights */
    --utility-height: 36px;
    --header-height: 64px;
    --total-header: 100px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =====================================================
   Utility Bar
   ===================================================== */
.utility-bar {
    background: var(--bg-dark);
    color: var(--text-light);
    height: var(--utility-height);
    font-size: 0.75rem;
}

.utility-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
}

.utility-left:hover {
    opacity: 0.8;
}

.location-pin {
    font-size: 0.9rem;
}

.chevron-down {
    opacity: 0.7;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.utility-link {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.utility-link:hover {
    opacity: 1;
}

.utility-link.highlight {
    background: var(--accent-gradient);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    opacity: 1;
}

/* =====================================================
   Main Header
   ===================================================== */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.25rem;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0 var(--space-md);
    height: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-chevron {
    opacity: 0.5;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-chevron {
    transform: rotate(180deg);
}

.sale-link {
    color: var(--sale) !important;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-mega);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.mega-column h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent-primary);
}

.mega-column ul li {
    margin-bottom: var(--space-sm);
}

.mega-column ul li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mega-column ul li a:hover {
    color: var(--accent-primary);
    padding-left: var(--space-xs);
}

.mega-banner {
    grid-column: 1 / -1;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.mega-deal {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.deal-icon {
    font-size: 1.1rem;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 var(--space-md);
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    margin-top: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.search-container:focus-within .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-section h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.trend-tag {
    background: var(--bg-tertiary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.trend-tag:hover {
    background: var(--accent-primary);
    color: white;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    position: relative;
}

.action-item:hover {
    color: var(--accent-primary);
}

.action-label {
    font-size: 0.7rem;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   Offer Strip
   ===================================================== */
.offer-strip {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-sm) 0;
    overflow: hidden;
}

.offer-scroll {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    animation: scroll 30s linear infinite;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    white-space: nowrap;
}

.offer-icon {
    font-size: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =====================================================
   Hero Carousel
   ===================================================== */
.hero-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slides {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-background {
    position: absolute;
    inset: 0;
}

.slide-bg-1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.slide-bg-2 {
    background: linear-gradient(135deg, #0d7377 0%, #14919b 50%, #32e0c4 100%);
}

.slide-bg-3 {
    background: linear-gradient(135deg, #6b21a8 0%, #9333ea 50%, #c026d3 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-3xl);
    color: white;
}

.slide-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.slide-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.slide-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.slide-actions {
    display: flex;
    gap: var(--space-md);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: var(--space-xl);
}

.carousel-nav.next {
    right: var(--space-xl);
}

.carousel-dots {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

.btn-sparkle {
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =====================================================
   Category Tiles
   ===================================================== */
.category-tiles {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.view-all {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-md);
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.tile-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.tile-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.sale-tile {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3366 100%);
    border-color: transparent;
    color: white;
}

.sale-tile .tile-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   Products Section
   ===================================================== */
.products-section {
    padding: var(--space-3xl) 0;
}

.filter-tabs {
    display: flex;
    gap: var(--space-sm);
}

.filter-tab {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-wishlist {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.product-card:hover .product-wishlist {
    opacity: 1;
    transform: scale(1);
}

.product-wishlist:hover {
    background: var(--error);
    color: white;
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--error);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.product-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: var(--space-md);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.product-card:hover .product-quick-view {
    transform: translateY(0);
}

.product-info {
    padding: var(--space-lg);
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.product-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

.products-loading {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-more-container {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* =====================================================
   AI Banner
   ===================================================== */
.ai-banner {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ai-banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(10px);
}

.ai-banner-icon {
    position: relative;
    flex-shrink: 0;
}

.ai-bot {
    font-size: 3rem;
}

.ai-pulse {
    position: absolute;
    top: -10px;
    right: -10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.ai-banner-text {
    flex: 1;
    color: white;
}

.ai-banner-text h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.ai-banner-text p {
    opacity: 0.8;
    margin-bottom: var(--space-md);
}

.ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ai-example {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* =====================================================
   Trust Section
   ===================================================== */
.trust-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.trust-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.trust-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =====================================================
   Footer
   ===================================================== */
.footer-dark {
    background: var(--bg-darker);
    color: var(--text-light);
    padding-top: var(--space-3xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul li a {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-column ul li a:hover {
    opacity: 1;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.app-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-icon {
    font-size: 1.5rem;
}

.app-text small {
    display: block;
    font-size: 0.65rem;
    opacity: 0.7;
}

.app-text strong {
    font-size: 0.85rem;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-dark);
}

.payment-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.payment-icons {
    display: flex;
    gap: var(--space-md);
}

.payment-icon {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a:hover {
    opacity: 1;
}

.powered-by strong {
    color: var(--accent-primary);
}

/* =====================================================
   Chat Widget (Enhanced)
   ===================================================== */
.chat-widget {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 1000;
}

.chat-toggle {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-base);
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.chat-toggle-icon,
.chat-toggle-close {
    color: white;
    position: absolute;
    transition: all var(--transition-base);
}

.chat-toggle-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.chat-widget.open .chat-toggle-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.chat-widget.open .chat-toggle-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.chat-badge.pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-mega);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
}

.chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-dark);
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-header-text h4 {
    font-size: 1rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-status.online::before {
    content: '●';
    color: var(--success);
    margin-right: var(--space-xs);
}

.chat-header-actions {
    display: flex;
    gap: var(--space-sm);
}

.chat-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    background: var(--bg-secondary);
}

.chat-message {
    display: flex;
    gap: var(--space-md);
    max-width: 90%;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: var(--bg-tertiary);
}

.message-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.chat-message.user .message-content {
    background: var(--accent-primary);
    color: white;
}

.message-content p {
    margin-bottom: var(--space-sm);
}

.message-content p:last-child {
    margin-bottom: 0;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.quick-action-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.quick-action-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Chat Product Cards */
.chat-products {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.chat-product-card {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-product-card:hover {
    border-color: var(--accent-primary);
    background: white;
}

.chat-product-image {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chat-product-info {
    flex: 1;
    min-width: 0;
}

.chat-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-product-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-product-price .current {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--success);
}

.chat-product-price .original {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.chat-product-price .discount {
    font-size: 0.7rem;
    background: var(--error);
    color: white;
    padding: 1px 4px;
    border-radius: var(--radius-sm);
}

.chat-product-colors {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-product-btn {
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.view-product-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Product card highlight when scrolled to from chat */
.product-card.highlight {
    animation: highlightPulse 0.5s ease-in-out 3;
    box-shadow: 0 0 0 4px var(--accent-primary);
}

@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px var(--accent-primary);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.3);
    }
}

/* Chat Input */
.chat-input-container {
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-top: 1px solid var(--border-color);
}

.chat-form {
    display: flex;
    gap: var(--space-sm);
}

.chat-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--accent-primary);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-sm);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1200px) {
    .tiles-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .mega-menu {
        width: 700px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .tiles-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .utility-bar {
        display: none;
    }

    .header-content {
        gap: var(--space-md);
    }

    .search-container {
        display: none;
    }

    .action-label {
        display: none;
    }

    .hero-carousel {
        height: 400px;
    }

    .slide-content {
        padding: 0 var(--space-lg);
    }

    .slide-title {
        font-size: 2rem;
    }

    .tiles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }

    .tile-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .tile-label {
        font-size: 0.7rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .filter-tabs {
        overflow-x: auto;
        width: 100%;
        padding-bottom: var(--space-sm);
    }

    .ai-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .chat-widget {
        bottom: var(--space-md);
        right: var(--space-md);
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        bottom: 70px;
        right: -8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .tiles-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .product-info {
        padding: var(--space-md);
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =====================================================
   Scrollbar Styles
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =====================================================
   Modal
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 5% auto;
    padding: var(--space-2xl);
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 1000px;
    border-radius: var(--radius-2xl);
    position: relative;
    box-shadow: var(--shadow-mega);
    animation: slideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--text-muted);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Product Detail Layout */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.product-detail-image {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-brand {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.product-detail-name {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.detail-price-current {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.detail-price-original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-price-discount {
    background: var(--error);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
}

.product-detail-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.detail-section {
    margin-bottom: var(--space-xl);
}

.detail-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.size-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.color-grid {
    display: flex;
    gap: var(--space-md);
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--border-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.color-dot.active {
    box-shadow: 0 0 0 2px var(--accent-primary);
    transform: scale(1.1);
}

.detail-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

.detail-actions .btn {
    flex: 1;
    padding: var(--space-md) var(--space-xl);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        height: 350px;
    }

    .modal-content {
        width: 100%;
        margin: 0;
        height: 100%;
        border-radius: 0;
    }
}