/* ========================================
   Casa Bether - E-commerce Híbrido B2B/B2C
   Demo 2026 — La Forja Web
   ======================================== */

/* --- Custom Properties --- */
:root {
    --red: #B71C1C;
    --red-hover: #8E0000;
    --red-dark: #7B0000;
    --red-light: #FFCDD2;
    --red-50: #FFF5F5;

    --black: #0F0F0F;
    --white: #FFFFFF;
    --gray-50: #F7F7F7;
    --gray-100: #F2F2F2;
    --gray-200: #E8E8E8;
    --gray-300: #D5D5D5;
    --gray-400: #B0B0B0;
    --gray-500: #8A8A8A;
    --gray-600: #6B6B6B;
    --gray-700: #4A4A4A;
    --gray-800: #333333;
    --gray-900: #1A1A1A;

    --beige: #F3E5D8;
    --beige-dark: #D7C4B0;
    --beige-light: #FAFAF8;

    --success: #2E7D32;
    --warning: #F57F17;

    --font-display: 'DM Serif Display', serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.10);
    --shadow-red: 0 8px 32px rgba(183,28,28,0.3);

    --transition-fast: 150ms ease;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    --container-max: 1280px;
    --header-height: 100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: calc(var(--header-height) + 48px);
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--red-50);
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 16px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: translateX(-100%);
    transition: var(--transition);
}

.btn:hover::after { transform: translateX(0); }

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(198,40,40,0.35);
}

.btn-primary:hover {
    background: var(--red-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(198,40,40,0.45);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}

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

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

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

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 20px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-block { width: 100%; }

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: var(--black);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.82rem;
    overflow: hidden;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.announcement-bar a {
    color: var(--red-light);
    font-weight: 600;
}

.announcement-bar a:hover { color: var(--white); }

.announcement-items {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.announcement-items span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.85;
}

.announcement-items i { width: 14px; height: 14px; }

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    height: var(--header-height);
}

.header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
    --header-height: 76px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
    padding: 0 2rem;
}

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

.header-logo img {
    max-height: 70%;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.header-nav a {
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.header-nav a:hover {
    color: var(--red);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

.header-nav a.active {
    color: var(--red);
    font-weight: 600;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 0 1rem;
    flex: 0 1 320px;
    height: 42px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.header-search:focus-within {
    background: var(--white);
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-50);
}

.header-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 0 0.5rem;
    font-size: 0.88rem;
    color: var(--gray-900);
}

.header-search input::placeholder { color: var(--gray-400); }
.header-search i { color: var(--gray-400); width: 18px; height: 18px; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .btn-mayorista {
    background: var(--red);
    color: var(--white);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.header-actions .btn-mayorista:hover {
    background: var(--red-hover);
    transform: scale(1.03);
}

.header-cart {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.header-cart:hover { background: var(--gray-100); }

.header-cart i { width: 22px; height: 22px; color: var(--gray-700); }

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

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

.menu-toggle:hover { background: var(--gray-100); }
.menu-toggle i { width: 24px; height: 24px; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: #060606;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: contrast(1.2) brightness(0.85) saturate(0.8);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 50% 45% at 25% 50%, rgba(183,28,28,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 35% 50% at 75% 55%, rgba(183,28,28,0.05) 0%, transparent 60%),
        linear-gradient(160deg, rgba(6,6,6,0.97) 0%, rgba(6,6,6,0.7) 50%, rgba(123,0,0,0.18) 100%);
}

.hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5rem;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-content {
    max-width: 660px;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.hero-since {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--red-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-since::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--red);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 1.75rem;
}

.hero h1 span {
    color: var(--red-light);
    text-shadow: 0 0 80px rgba(183,28,28,0.2);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.85;
    margin-bottom: 3.5rem;
    max-width: 500px;
    letter-spacing: 0.01em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: heroFadeIn 1s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-stat {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 1.75rem 2.25rem;
    min-width: 200px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(183,28,28,0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(183,28,28,0.08);
}

.hero-stat .number {
    font-family: var(--font-body);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hero-stat .label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--white);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.trust-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.trust-icon {
    width: 54px;
    height: 54px;
    background: var(--red-50);
    color: var(--red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item:hover .trust-icon {
    background: var(--red);
    color: var(--white);
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(183,28,28,0.2);
}

.trust-icon i { width: 24px; height: 24px; }

.trust-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
}

.trust-item span {
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* --- Brands Marquee --- */
.brands-section {
    padding: 5.5rem 0;
    background: var(--gray-50);
    overflow: hidden;
}

.brands-marquee {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.brands-marquee:hover { animation-play-state: paused; }

.brand-logo {
    height: 50px;
    width: auto;
    opacity: 0.55;
    filter: grayscale(100%) contrast(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%) contrast(1);
    transform: scale(1.08);
}

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

/* --- Categories --- */
.categories-section {
    padding: 5.5rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.05) 65%);
    transition: var(--transition);
}

.category-card:hover::after {
    background: linear-gradient(to top, rgba(183,28,28,0.85) 0%, rgba(15,15,15,0.15) 65%);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(0);
    transition: var(--transition);
}

.category-card:hover .category-info {
    transform: translateY(-4px);
}

.category-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.category-info span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

.category-card .category-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.category-arrow i { width: 16px; height: 16px; color: var(--white); }

/* --- Products --- */
.products-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.products-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.products-tabs button {
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    background: var(--white);
    letter-spacing: 0.01em;
}

.products-tabs button:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-50);
}

.products-tabs button.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    box-shadow: 0 4px 12px rgba(15,15,15,0.15);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 10px;
}

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

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

.product-badge.wholesale {
    background: var(--black);
    color: var(--white);
}

.product-img {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}

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

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

.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.product-actions-overlay button {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-actions-overlay button:hover {
    background: var(--red);
    color: var(--white);
}

.product-actions-overlay button i { width: 18px; height: 18px; }

.product-body {
    padding: 1rem 1.1rem;
}

.product-brand {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--red);
}

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

.product-wholesale-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    background: var(--beige-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-700);
    border: 1px dashed var(--beige-dark);
}

.product-wholesale-price strong {
    color: var(--red-dark);
    font-weight: 700;
}

.product-footer {
    padding: 0 1.1rem 1.1rem;
}

.product-add-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.product-add-btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,15,15,0.15);
}

.product-add-btn i { width: 16px; height: 16px; }

/* --- Quick Order --- */
.quick-order {
    padding: 6rem 0;
    background: var(--white);
}

.quick-order-box {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.quick-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--black);
    color: var(--white);
}

.quick-order-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-order-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    padding: 0 1rem;
    height: 38px;
    min-width: 280px;
    border: 1px solid rgba(255,255,255,0.2);
}

.quick-order-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    color: var(--white);
    padding: 0 0.5rem;
    font-size: 0.85rem;
}

.quick-order-search input::placeholder { color: rgba(255,255,255,0.5); }
.quick-order-search i { color: rgba(255,255,255,0.5); width: 16px; height: 16px; }

.quick-order-table {
    width: 100%;
    border-collapse: collapse;
}

.quick-order-table thead {
    background: var(--gray-100);
}

.quick-order-table th {
    padding: 0.85rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.quick-order-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    vertical-align: middle;
}

.quick-order-table tr:hover {
    background: var(--gray-50);
}

.quick-order-table .product-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-order-table .product-cell img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.quick-order-table .product-cell span {
    font-weight: 500;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}

.qty-control button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--gray-700);
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.qty-control button:hover {
    background: var(--red);
    color: var(--white);
}

.qty-control input {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    outline: none;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--white);
}

.quick-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.quick-order-actions {
    display: flex;
    gap: 0.75rem;
}

.wholesale-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-order-total {
    font-size: 1.1rem;
    font-weight: 700;
}

.quick-order-total span {
    color: var(--red);
    font-size: 1.4rem;
}

/* --- Wholesale CTA --- */
.wholesale-cta {
    padding: 7rem 0;
    background: linear-gradient(135deg, #9B1B1B 0%, var(--red) 40%, #7B0000 100%);
    position: relative;
    overflow: hidden;
}

.wholesale-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.wholesale-cta::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0,0,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.wholesale-cta .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wholesale-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.wholesale-cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.wholesale-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wholesale-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.3rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wholesale-benefit:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.wholesale-benefit i {
    width: 20px;
    height: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.wholesale-benefit span {
    font-size: 0.88rem;
    color: var(--white);
    font-weight: 500;
}

/* --- About --- */
.about-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.about-image .about-year-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--red);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.about-year-badge .year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}

.about-year-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--black);
    margin-bottom: 1rem;
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-stat-item {
    text-align: center;
    padding: 1.75rem;
    background: var(--white);
    border-radius: 18px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid var(--gray-200);
}

.about-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    border-color: transparent;
}

.about-stat-item .num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--red);
    display: block;
}

.about-stat-item .label {
    font-size: 0.78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 6rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(183,28,28,0.3);
}

.footer-social a i { width: 20px; height: 20px; }

.footer h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer ul li {
    margin-bottom: 0.65rem;
}

.footer ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
}

.footer-contact i { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--red-light); }

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: var(--red-light);
}

.footer-bottom a:hover { color: var(--white); }

.footer-payments {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- Cart Drawer --- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: var(--white);
    z-index: 201;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}

.drawer.active { transform: translateX(0); }

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

.drawer-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drawer-close:hover { background: var(--gray-100); }
.drawer-close i { width: 20px; height: 20px; }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-400);
    gap: 1rem;
}

.drawer-empty i { width: 48px; height: 48px; }

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

.cart-item img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.88rem; margin-bottom: 0.25rem; }
.cart-item-price { font-weight: 700; color: var(--red); font-size: 0.95rem; }

.drawer-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.drawer-total span:last-child { color: var(--red); font-size: 1.25rem; }

.drawer-footer .btn { margin-bottom: 0.5rem; }

/* --- Auth Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--white);
    border-radius: 24px;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.75rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-spring);
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--gray-100); }
.modal-close i { width: 20px; height: 20px; }

.modal h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.modal .subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-light);
}

.form-group input[type="radio"] {
    accent-color: var(--red);
    width: 1.2rem;
    height: 1.2rem;
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-50);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 0.82rem;
    color: var(--gray-400);
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--gray-500);
}

.auth-switch a {
    color: var(--red);
    font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* --- Quick Order Discount Note --- */
.quick-order-discount-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--red-50);
    color: var(--gray-700);
    font-size: 0.88rem;
    border-top: 1px solid var(--gray-200);
}

.quick-order-discount-note i {
    width: 18px;
    height: 18px;
    color: var(--red);
    flex-shrink: 0;
}

/* --- Reseller Welcome Banner --- */
.reseller-banner {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reseller-banner.active {
    opacity: 1;
    visibility: visible;
}

.reseller-banner-content {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-spring);
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.reseller-banner.active .reseller-banner-content {
    transform: scale(1) translateY(0);
}

.reseller-banner-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    transition: var(--transition);
}

.reseller-banner-close:hover {
    background: var(--gray-200);
}

.reseller-banner-close i { width: 18px; height: 18px; }

.reseller-banner-icon {
    width: 64px;
    height: 64px;
    background: var(--red-50);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.reseller-banner-icon i { width: 28px; height: 28px; }

.reseller-banner-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.reseller-banner-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.reseller-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 100;
    transition: var(--transition);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

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

.whatsapp-float i { width: 28px; height: 28px; color: white; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }
.reveal-delay-4 { transition-delay: 480ms; }

/* --- Mobile Nav --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99;
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    color: var(--gray-700);
}

.mobile-nav a:hover { background: var(--gray-100); color: var(--red); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: row; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .wholesale-cta .container { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
}

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

    /* Announcement bar: hide extra items, shrink link */
    .announcement-bar { font-size: 0.75rem; }
    .announcement-bar .container { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .announcement-items span:nth-child(n+3) { display: none; }
    .announcement-bar a { font-size: 0.72rem; }

    /* Header */
    .header .container { padding: 0 1rem; gap: 1rem; }
    .header-nav { display: none; }
    .header-search { display: none; }
    .menu-toggle { display: flex; }
    .mobile-nav { display: flex; }
    .header-logo img { max-height: 65%; }

    /* Hero */
    .hero { min-height: auto; padding: 4rem 0 3rem; }
    .hero .container { padding-top: 2rem; padding-bottom: 2rem; gap: 2.5rem; }
    .hero h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 1.25rem; }
    .hero-desc { font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.7; }
    .hero-since { margin-bottom: 1.25rem; font-size: 0.78rem; }
    .hero-stats { flex-wrap: wrap; gap: 0.75rem; }
    .hero-stat { min-width: 120px; padding: 1.25rem 1.5rem; border-radius: 16px; }
    .hero-stat .number { font-size: 1.75rem; }
    .hero-stat .label { font-size: 0.65rem; }
    .hero-buttons .btn-lg { padding: 0.9rem 1.75rem; font-size: 0.92rem; }

    /* Trust bar */
    .trust-bar { padding: 2.5rem 0; }
    .trust-bar .container { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .trust-icon { width: 46px; height: 46px; border-radius: 12px; }
    .trust-icon i { width: 20px; height: 20px; }
    .trust-item strong { font-size: 0.85rem; }
    .trust-item span { font-size: 0.75rem; }

    /* Brands */
    .brands-section { padding: 3.5rem 0; }
    .brand-logo { height: 36px; }
    .brands-marquee { gap: 2.5rem; }

    /* Categories */
    .categories-grid { grid-template-columns: 1fr; gap: 1rem; }
    .category-card { aspect-ratio: 2/1; }

    /* Products */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .products-tabs { gap: 0.35rem; margin-bottom: 2rem; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
    .products-tabs button { flex-shrink: 0; padding: 0.55rem 1.1rem; font-size: 0.82rem; }
    .product-card { border-radius: 14px; }
    .product-body { padding: 0.75rem 0.85rem; }
    .product-brand { font-size: 0.65rem; margin-bottom: 0.15rem; }
    .product-name { font-size: 0.8rem; margin-bottom: 0.35rem; }
    .product-price { font-size: 0.95rem; }
    .product-pricing { margin-bottom: 0.25rem; }
    .product-wholesale-price { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
    .product-add-btn { padding: 0.55rem; font-size: 0.75rem; border-radius: 10px; }
    .product-footer { padding: 0 0.85rem 0.85rem; }
    .product-badge { padding: 0.2rem 0.55rem; font-size: 0.6rem; top: 0.5rem; left: 0.5rem; }
    .product-actions-overlay { display: none; }

    /* Quick Order — CRITICAL: hide Marca and Subtotal, keep Cantidad visible */
    .quick-order-header { flex-direction: column; gap: 1rem; align-items: stretch; padding: 1.25rem 1.25rem; }
    .quick-order-search { min-width: auto; }
    .quick-order-table { font-size: 0.82rem; }
    .quick-order-table th:nth-child(2),
    .quick-order-table td:nth-child(2),
    .quick-order-table th:nth-child(5),
    .quick-order-table td:nth-child(5) { display: none; }
    .quick-order-table th, .quick-order-table td { padding: 0.75rem 0.75rem; }
    .quick-order-table .product-cell img { width: 36px; height: 36px; }
    .quick-order-table .product-cell span { font-size: 0.78rem; }
    .quick-order-footer { flex-direction: column; gap: 1rem; align-items: stretch; padding: 1.25rem; }
    .quick-order-actions { flex-direction: column; width: 100%; }
    .quick-order-actions .btn { width: 100%; justify-content: center; }
    .quick-order-discount-note { padding: 0.85rem 1.25rem; font-size: 0.8rem; }

    /* Wholesale CTA */
    .wholesale-cta { padding: 5rem 0; }
    .wholesale-cta h2 { font-size: 1.75rem; }
    .wholesale-cta p { font-size: 0.95rem; }
    .wholesale-benefits { grid-template-columns: 1fr; gap: 0.75rem; }
    .wholesale-cta-buttons { flex-direction: column; }
    .wholesale-cta-buttons .btn { width: 100%; justify-content: center; }

    /* About */
    .about-content h2 { font-size: 1.5rem; }
    .about-stats-grid { gap: 0.75rem; }
    .about-stat-item { padding: 1.25rem 0.75rem; }
    .about-stat-item .num { font-size: 1.4rem; }
    .about-stat-item .label { font-size: 0.7rem; }

    /* Footer */
    .footer { padding: 4rem 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-payments { flex-wrap: wrap; justify-content: center; gap: 0.5rem; font-size: 0.78rem; }

    /* Modals */
    .modal { padding: 2rem 1.5rem; border-radius: 20px; max-width: 95%; }
    .modal h2 { font-size: 1.35rem; }
    .modal form [style*="grid-template-columns: 1fr 1fr"],
    .modal form [style*="grid-template-columns:1fr 1fr"] { display: flex !important; flex-direction: column !important; }
    .reseller-banner-content { padding: 2rem 1.5rem; border-radius: 20px; }

    /* Sections global */
    .section { padding: 4.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.65rem; }
    .section-header p { font-size: 0.92rem; }
}

@media (max-width: 480px) {
    /* Hero */
    .hero .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; align-items: stretch; }
    .hero-stat { min-width: auto; }

    /* Trust */
    .trust-bar .container { grid-template-columns: 1fr; gap: 1rem; }
    .trust-item { justify-content: flex-start; }

    /* Products — 2 columns, ultra compact */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .product-body { padding: 0.6rem 0.7rem; }
    .product-name { font-size: 0.75rem; -webkit-line-clamp: 1; line-clamp: 1; }
    .product-footer { padding: 0 0.7rem 0.7rem; }

    /* Categories */
    .category-card { aspect-ratio: 5/3; }

    /* Quick order */
    .quick-order-table .product-cell img { display: none; }
    .qty-control button { width: 32px; height: 32px; }
    .qty-control input { width: 40px; height: 32px; font-size: 0.82rem; }

    /* Sections */
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2rem; }

    /* Container */
    .container { padding: 0 1.15rem; }

    /* About */
    .about-image { aspect-ratio: 16/10; }
    .about-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Mobile Search Bar --- */
.mobile-search-bar {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.5rem 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-search-bar.active {
    max-height: 60px;
    padding: 0.6rem 0;
}

@media (max-width: 768px) {
    .mobile-search-bar { display: block; }
    #mobileSearchBtn { display: flex !important; }
}

/* --- Toast Animations --- */
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}
