/* =====================================================
   El Chacharas Inc. — Design System & Global Styles
   Paleta: Verde, Rojo, Amarillo, Naranja, Negro (del logo)
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Primary Colors — Mexican Palette */
    --color-green: #1B8C3A;
    --color-green-dark: #14692C;
    --color-green-light: #22A847;
    --color-green-bg: #E8F5EC;

    --color-red: #D42B2B;
    --color-red-dark: #A82222;
    --color-red-light: #E85050;
    --color-red-bg: #FDE8E8;

    --color-yellow: #F5A623;
    --color-yellow-dark: #D48E1A;
    --color-yellow-light: #FFBE4D;
    --color-yellow-bg: #FFF8E7;

    --color-orange: #E87A1E;
    --color-orange-dark: #C46518;
    --color-orange-light: #FF9540;
    --color-orange-bg: #FFF3E6;

    /* Neutrals */
    --color-black: #1A1A1A;
    --color-gray-900: #2D2D2D;
    --color-gray-800: #3D3D3D;
    --color-gray-700: #555555;
    --color-gray-600: #6B6B6B;
    --color-gray-500: #8A8A8A;
    --color-gray-400: #ABABAB;
    --color-gray-300: #CCCCCC;
    --color-gray-200: #E5E5E5;
    --color-gray-100: #F2F2F2;
    --color-gray-50: #F9F9F9;
    --color-white: #FFFFFF;

    /* Warm Background */
    --color-bg-warm: #FFF8F0;
    --color-bg-cream: #FDF5EB;
    --color-bg-body: #FFFFFF;

    /* Semantic */
    --color-success: #1B8C3A;
    --color-error: #D42B2B;
    --color-warning: #F5A623;
    --color-info: #2B7BD4;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-md: 1.125rem;   /* 18px */
    --text-lg: 1.25rem;    /* 20px */
    --text-xl: 1.5rem;     /* 24px */
    --text-2xl: 1.875rem;  /* 30px */
    --text-3xl: 2.25rem;   /* 36px */
    --text-4xl: 3rem;      /* 48px */
    --text-5xl: 3.75rem;   /* 60px */

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --header-height: 160px;
    --announcement-height: 40px;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

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

ul, ol {
    list-style: none;
}

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

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ── Announcement Bar ── */
.announcement-bar {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: var(--z-sticky);
    overflow: hidden;
}

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

@keyframes announcementShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.announcement-bar a {
    color: var(--color-yellow-light);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-bar .close-btn {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    font-size: var(--text-md);
    background: none;
    border: none;
    cursor: pointer;
}

.announcement-bar .close-btn:hover {
    opacity: 1;
}

/* ── Header ── */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-6);
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 140px;
    max-height: 145px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

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

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    justify-content: center;
}

.header-nav a {
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-800);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-green);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.header-nav a:hover {
    color: var(--color-green);
    background: var(--color-green-bg);
}

.header-nav a:hover::after {
    width: 60%;
}

.header-nav a.active {
    color: var(--color-green);
}

.header-nav a.active::after {
    width: 60%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 220px;
    padding: var(--space-2) var(--space-4);
    padding-left: var(--space-10);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    background: var(--color-gray-50);
    transition: all var(--transition-fast);
}

.header-search input:focus {
    outline: none;
    border-color: var(--color-green);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-green-bg);
    width: 280px;
}

.header-search .search-icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    width: 18px;
    height: 18px;
}

.header-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    color: var(--color-gray-700);
}

.header-action-btn:hover {
    background: var(--color-gray-100);
    color: var(--color-green);
}

.header-action-btn svg {
    width: 22px;
    height: 22px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    animation: cartBadgePop 0.3s var(--transition-spring);
}

@keyframes cartBadgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-gray-700);
}

.mobile-menu-toggle .hamburger {
    width: 22px;
    height: 16px;
    position: relative;
}

.mobile-menu-toggle .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: all var(--transition-base);
}

.mobile-menu-toggle .hamburger span:nth-child(1) { top: 0; }
.mobile-menu-toggle .hamburger span:nth-child(2) { top: 7px; }
.mobile-menu-toggle .hamburger span:nth-child(3) { top: 14px; }

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}
.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-bg-cream) 100%);
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 520px;
    padding: var(--space-20) 0;
    animation: fadeSlideIn 0.6s ease;
}

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

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: var(--color-green-bg);
    color: var(--color-green);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    animation: fadeIn 0.6s ease 0.2s both;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    animation: fadeIn 0.6s ease 0.3s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    animation: fadeIn 0.6s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    animation: fadeIn 0.6s ease 0.5s both;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, var(--color-bg-warm), transparent);
    z-index: 1;
}

.hero-dots {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    padding: var(--space-4) 0;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--color-gray-300);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-dot.active {
    background: var(--color-green);
    width: 32px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.3px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

.btn:active::after {
    width: 200%;
    height: 200%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(27, 140, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 140, 58, 0.4);
}

.btn-secondary {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--color-gray-900);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-green);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    color: var(--color-white);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 43, 43, 0.3);
}

.btn-ghost {
    color: var(--color-gray-700);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--color-gray-100);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-1) var(--space-4);
    font-size: var(--text-xs);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ── Section Heading ── */
.section {
    padding: var(--space-16) 0;
}

.section-heading {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-heading .section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: var(--color-orange-bg);
    color: var(--color-orange);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.section-heading h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.section-heading p {
    font-size: var(--text-md);
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Product Card ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    border: 1px solid var(--color-gray-100);
}

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

.product-card-image {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
    background: var(--color-gray-50);
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-card-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.badge-sold {
    background: var(--color-gray-700);
    color: var(--color-white);
}

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

.product-card-actions {
    position: absolute;
    bottom: var(--space-3);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 2;
}

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

.product-card-actions .btn {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-black);
    box-shadow: var(--shadow-md);
    font-size: var(--text-xs);
    text-transform: uppercase;
}

.product-card-actions .btn:hover {
    background: var(--color-green);
    color: var(--color-white);
}

.product-card-body {
    padding: var(--space-4);
}

.product-card-category {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.product-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--color-black);
    margin-bottom: var(--space-2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.product-card:hover .product-card-name {
    color: var(--color-green);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-card-price .current-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-black);
}

.product-card-price .compare-price {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    text-decoration: line-through;
}

.product-card-price .discount-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-red);
    background: var(--color-red-bg);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ── Category Cards ── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.category-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-card-overlay h3 {
    color: var(--color-white);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.category-card-overlay span {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.category-card-overlay .btn {
    margin-top: var(--space-3);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.category-card:hover .category-card-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

/* ── Features Bar ── */
.features-bar {
    background: var(--color-bg-warm);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    padding: var(--space-8) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.feature-item {
    text-align: center;
    padding: var(--space-4);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    font-size: 24px;
}

.feature-icon.green { background: var(--color-green-bg); color: var(--color-green); }
.feature-icon.red { background: var(--color-red-bg); color: var(--color-red); }
.feature-icon.yellow { background: var(--color-yellow-bg); color: var(--color-yellow); }
.feature-icon.orange { background: var(--color-orange-bg); color: var(--color-orange); }

.feature-item h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ── Newsletter ── */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 50%, var(--color-green-light) 100%);
    color: var(--color-white);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.newsletter-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    color: var(--color-white);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-md);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: var(--space-3);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-3) var(--space-5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-size: var(--text-base);
    backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-form .btn {
    background: var(--color-white);
    color: var(--color-green);
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: var(--space-3) var(--space-8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ── Footer ── */
.site-footer {
    background: var(--color-black);
    color: var(--color-gray-400);
    padding: var(--space-16) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 320px;
}

.footer-brand img {
    height: 140px;
    max-height: 150px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-4);
    mix-blend-mode: lighten;
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

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

.footer-social a:hover {
    background: var(--color-green);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--color-white);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.footer-column ul li {
    margin-bottom: var(--space-2);
}

.footer-column ul li a {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--color-green-light);
    padding-left: var(--space-2);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding: var(--space-5) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-payments img {
    height: 24px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.footer-payments img:hover {
    opacity: 1;
}

/* ── Form Styles ── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--color-black);
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px var(--color-green-bg);
}

.form-input.error {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px var(--color-red-bg);
}

.form-error {
    font-size: var(--text-sm);
    color: var(--color-red);
    margin-top: var(--space-1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.breadcrumbs a:hover {
    color: var(--color-green);
}

.breadcrumbs .separator {
    color: var(--color-gray-300);
}

.breadcrumbs .current {
    color: var(--color-black);
    font-weight: 500;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-8) 0;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
}

.pagination a:hover {
    background: var(--color-green-bg);
    border-color: var(--color-green);
    color: var(--color-green);
}

.pagination .active {
    background: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
}

/* ── Toast / Flash Messages ── */
.toast {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    font-weight: 500;
    z-index: var(--z-toast);
    animation: toastIn 0.4s var(--transition-spring);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: 400px;
}

.toast.success { background: var(--color-green); }
.toast.error { background: var(--color-red); }
.toast.warning { background: var(--color-orange); }
.toast.info { background: var(--color-info); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(100px); }
}

/* ── Mini Cart Drawer ── */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-white);
    z-index: var(--z-modal);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header h3 {
    font-size: var(--text-lg);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-6);
}

.cart-drawer-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-lg);
}

.cart-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.cart-item-image {
    width: 72px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-gray-50);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.cart-item-variant {
    font-size: var(--text-xs);
    color: var(--color-gray-500);
    margin-bottom: var(--space-2);
}

.cart-item-price {
    font-weight: 700;
    color: var(--color-green);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--color-green-bg);
    border-color: var(--color-green);
    color: var(--color-green);
}

.cart-item-remove {
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--color-red);
}

/* ── Loading Spinner ── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--color-gray-500);
    margin-bottom: var(--space-6);
}

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 90px;
    }

    .header-logo img {
        height: 75px;
        max-height: 78px;
    }

    .header-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-2);
        z-index: var(--z-overlay);
        overflow-y: auto;
        justify-content: flex-start;
    }

    .header-nav.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .header-nav a {
        font-size: var(--text-lg);
        padding: var(--space-3) var(--space-4);
        border-bottom: 1px solid var(--color-gray-100);
        width: 100%;
    }

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

    .header-search {
        display: none;
    }

    .hero-slide {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .hero-slide.active {
        flex-direction: column;
        gap: var(--space-4);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-description {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 240px;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .hero-image::before {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section {
        padding: var(--space-10) 0;
    }

    .section-heading h2 {
        font-size: var(--text-2xl);
    }

    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }

    .product-card-body {
        padding: var(--space-3);
    }

    .product-card-name {
        font-size: var(--text-sm);
    }

    .product-card-price .current-price {
        font-size: var(--text-base);
    }

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

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

    .category-card {
        aspect-ratio: 16/9;
    }
}

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.text-orange { color: var(--color-orange); }
.text-gray { color: var(--color-gray-500); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.hidden { display: none; }

/* ── WhatsApp Floating Widget ── */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── Scroll to top ── */
.scroll-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: var(--color-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(27, 140, 58, 0.3);
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(27, 140, 58, 0.4);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}
