/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Trustworthy & Vibrant */
    --primary-navy: #1e3a5f;
    --primary-orange: #ff6b35;
    --accent-blue: #2563eb;
    --accent-light-blue: #3b82f6;

    /* Marketplace Colors */
    --amazon-blue: #00A8FF;
    --mercadolivre-yellow: #fff159;
    --shopee-orange: #ee4d2d;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-navy);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ===================================
   HEADER
   =================================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.mobile-menu-toggle:hover {
    color: var(--primary-orange);
}

.logo-link {
    display: block;
    transition: transform var(--transition-base);
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo {
    height: 100px;
    width: auto;
}

.nav {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-social {
    color: var(--gray-700);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.nav-social::after {
    display: none;
}

.nav-social:hover {
    color: #e4405f;
    /* Instagram brand color */
    transform: scale(1.1);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--accent-blue) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Static fallback content (shown while slideshow loads or when no slides) */
.hero-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Slideshow wrapper ──────────────────────────── */
.hero--slideshow {
    /* No visual overrides: padding and height remain as the original .hero */
}

/* Exact height rules for active slideshow to prevent image crop */
.hero--has-slides {
    padding: 0;
}

.hero--has-slides .hero-height-spacer {
    display: none;
}

.hero--has-slides .hero-slides-track {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* mobile recommended 800x800 */
}

@media (min-width: 640px) {
    .hero--has-slides .hero-slides-track {
        aspect-ratio: 1024 / 400;
        /* tablet recommended */
    }
}

@media (min-width: 1024px) {
    .hero--has-slides .hero-slides-track {
        aspect-ratio: 1440 / 400;
        /* desktop recommended */
    }
}

@media (min-width: 1440px) {
    .hero--has-slides .hero-slides-track {
        aspect-ratio: 1920 / 400;
        /* wide recommended */
    }
}

.hero--loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ─── Slide track & slides ──────────────────────── */

/* Spacer to preserve exact height even with absolute tracks */
.hero-height-spacer {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

.hero-slides-track {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    /* position stays absolute — height driven by .hero-height-spacer */
}

/* ─── Media (image / video) ─────────────────────── */
.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
}

.hero-slide-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── Text overlay ──────────────────────────────── */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-text-block {
    position: absolute;
    max-width: 70%;
    pointer-events: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    word-break: break-word;
    font-size: var(--hs-fs, 1rem);
    line-height: var(--hs-lh, 1.4);
}

/* Grid of 9 positions */
.hs-pos-tl {
    top: 8%;
    left: 5%;
}

.hs-pos-tc {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.hs-pos-tr {
    top: 8%;
    right: 5%;
    text-align: right;
}

.hs-pos-cl {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
}

.hs-pos-cc {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.hs-pos-cr {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    text-align: right;
}

.hs-pos-bl {
    bottom: 18%;
    left: 5%;
}

.hs-pos-bc {
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
}

.hs-pos-br {
    bottom: 18%;
    right: 5%;
    text-align: right;
}

/* ─── Reponsive Adaptation for Texts ────────────── */
@media (max-width: 1024px) {
    .hero-text-block {
        max-width: 90%;
        font-size: calc(var(--hs-fs, 1rem) * 0.85);
    }
}

@media (max-width: 640px) {

    /* Converte overlay de absoluto para flex no mobile */
    .hero-slide-overlay {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10% 8%;
        gap: 4%;
    }

    /* Blocos de texto fluem normalmente, sem sobreposição */
    .hero-text-block {
        position: static !important;
        transform: none !important;
        max-width: 90%;
        width: auto !important;
        text-align: center !important;
        font-size: calc(var(--hs-fs, 1rem) * 0.8);
        line-height: 1.3 !important;
    }

    /* CTA button também entra no fluxo */
    .hero-cta-btn {
        position: static;
        transform: none;
        margin-top: 0.5rem;
    }
}

/* ─── CTA button ────────────────────────────────── */
.hero-cta-btn {
    display: inline-block;
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-orange);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
}

.hero-cta-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ─── Navigation arrows ─────────────────────────── */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 200ms ease, background 200ms ease, transform 200ms ease;
}

.hero:hover .hero-nav-btn,
.hero:focus-within .hero-nav-btn {
    opacity: 1;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 1rem;
}

.hero-next {
    right: 1rem;
}

@media (max-width: 640px) {
    .hero-prev {
        left: 0.5rem;
    }

    .hero-next {
        right: 0.5rem;
    }

    .hero-nav-btn {
        opacity: 0.7;
        width: 36px;
        height: 36px;
    }
}

/* ─── Dots indicator ────────────────────────────── */
.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 200ms ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

/* ===================================
   PRODUCTS GRID
   =================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

/* ===================================
   PRODUCT CARD
   =================================== */

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: var(--gray-100);
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* ===================================
   CAROUSEL SYSTEM
   =================================== */

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.product-card:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-btn:hover {
    background: var(--white);
    color: var(--primary-orange);
}

.carousel-nav-prev {
    left: var(--spacing-xs);
}

.carousel-nav-next {
    right: var(--spacing-xs);
}

.carousel-counter {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 5;
}

.marketplace-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--white);
    color: var(--gray-800);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marketplace-badge.amazon {
    background: linear-gradient(135deg, #00A8FF 0%, #00B3FF 100%);
    color: #000000;
}

.marketplace-badge.mercadolivre {
    background: linear-gradient(135deg, #fff159 0%, #ffe600 100%);
    color: var(--gray-900);
}

.marketplace-badge.shopee {
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6347 100%);
    color: var(--white);
}

.marketplace-badge.aliexpress {
    background: linear-gradient(135deg, #e62e04 0%, #ff4500 100%);
    color: var(--white);
}

.product-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--warning);
    font-size: 0.875rem;
}

.star.empty {
    color: var(--gray-300);
}

.reviews-count {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.product-sales {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.product-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-orange);
    font-family: var(--font-display);
    line-height: 1;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-old {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
}

.price-main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.price-label-starting {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   MARKETPLACE FILTERS
   =================================== */

.marketplace-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.filter-chip {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-chip i {
    font-size: 0.75rem;
}

/* ===================================
   CATEGORIES SECTION
   =================================== */

.categories-section {
    background: var(--white);
}

.categories-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: 100%;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: transform var(--transition-base);
}

.category-item:hover {
    transform: scale(1.05);
}

.category-button {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 3px solid var(--gray-300);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.category-button:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-lg);
}

.category-button.active {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8555 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.category-caption {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    max-width: 100px;
}

.category-item.active .category-caption {
    color: var(--primary-orange);
}

.category-count {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

.btn-show-more {
    background: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-show-more:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-show-more i {
    transition: transform var(--transition-base);
}

.btn-show-more.expanded i {
    transform: rotate(180deg);
}

/* Hidden categories */
.category-item.hidden {
    display: none;
}

/* ===================================
   FILTERED SECTION
   =================================== */

.filtered-section {
    background: var(--gray-50);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: center;
}

.footer-logo .logo {
    height: 60px;
    margin-bottom: var(--spacing-md);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-sm);
}

.footer-disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

.footer-nav {
    margin-bottom: var(--spacing-md);
}

.footer-link {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-base);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.footer-link:hover {
    color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.1);
    text-decoration-thickness: 2px;
}

/* Footer Social Section */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.social-cta {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.instagram-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.instagram-link i {
    font-size: 1.5rem;
}


/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--spacing-md);
    }

    .category-button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .category-caption {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .header-content {
        height: 80px;
    }

    .logo {
        height: 60px;
    }

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

    .header-nav-wrapper {
        flex: 0;
        width: 0;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: var(--spacing-2xl);
        gap: var(--spacing-xl);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
    }

    .nav.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
    }

    .nav-link::after {
        display: none;
    }

    .header-actions {
        gap: var(--spacing-sm);
    }

    .btn-login {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

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

    .categories-list {
        gap: var(--spacing-md);
    }

    .category-button {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Stagger animation for products */
.product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-card:nth-child(5) {
    animation-delay: 0.25s;
}

.flip-horizontal {
    display: inline-block;
    transform: scaleX(-1);
}

/* ===================================
   FEATURED SECTION OPTIMIZATIONS (COMPACT)
   =================================== */
.featured-section {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.featured-section .section-header {
    margin-bottom: 20px;
}

.featured-section .section-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.featured-section .section-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

.featured-section .products-grid {
    gap: 14px;
}

.featured-section .product-card {
    height: 280px;
    position: relative;
    display: block;
    overflow: hidden;
}

.featured-section .product-image-container {
    padding-top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.featured-section .product-content {
    padding: 12px;
    padding-top: 50px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
}

.featured-section .product-card:hover .product-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.featured-section .product-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 4px;
}

.featured-section .product-title {
    font-size: 14px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.6em;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.featured-section .product-rating {
    margin: 4px 0;
    gap: 2px;
}

.featured-section .product-rating .star {
    font-size: 12px;
}

.featured-section .product-rating .rating-value,
.featured-section .product-rating .reviews-count {
    font-size: 12px;
    color: #ffffff !important;
}

.featured-section .product-sales {
    font-size: 12px;
    margin: 4px 0;
    color: #a7f3d0;
}

.featured-section .product-price {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.featured-section .price-old {
    color: #d1d5db;
}

.featured-section .price-label-starting {
    color: #f3f4f6;
}

.featured-section .marketplace-badge {
    font-size: 10px;
    padding: 3px 6px;
    z-index: 3;
}

.featured-section .carousel-nav-btn {
    z-index: 4;
}

.featured-section .carousel-counter {
    z-index: 3;
    bottom: auto;
    top: 10px;
    right: auto;
    left: 10px;
}