/* ═══════════════════════════════════════════════════════════════════
   Base Tokens & Resets
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --bg-dark:        #121212;
    --bg-card:        #1e1e1e;
    --bg-card-hover:  #262626;
    --text-primary:   #f8f9fa;
    --text-secondary: #adb5bd;
    --accent:         #800000;
    --accent-hover:   #600000;
    --accent-light:   rgba(128, 0, 0, 0.15);
    --border:         #333333;
    --glass-bg:       rgba(18, 18, 18, 0.85);
    --whatsapp:       #25D366;
    --whatsapp-hover: #128c7e;
    --shadow-sm:      0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-md:      0 10px 15px -3px rgba(0,0,0,.3), 0 4px 6px -2px rgba(0,0,0,.15);
    --radius-md:      12px;
    --radius-lg:      16px;
    --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar                { width: 10px; height: 10px; }
::-webkit-scrollbar-track          { background: #1e1e1e; border-radius: 5px; }
::-webkit-scrollbar-thumb          { background: #555; border-radius: 5px; border: 2px solid #1e1e1e; }
::-webkit-scrollbar-thumb:hover    { background: #777; }


/* ═══════════════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--glass-bg);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand img {
    height: 65px;
    object-fit: contain;
}

/* Search Bar */
.search-bar {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-bar i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
}
.search-bar input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 16px 12px 48px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Cart Trigger */
.cart-trigger {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}
.cart-trigger:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: 0; right: 0;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    height: 20px;
    min-width: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    transform: translate(25%, -25%);
    border: 2px solid var(--glass-bg);
}


/* ═══════════════════════════════════════════════════════════════════
   Featured Carousel
   ═══════════════════════════════════════════════════════════════════ */
.featured-carousel-section {
    margin-top: 80px; /* height of navbar */
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* "Los más vendidos" badge header */
.featured-header {
    background: linear-gradient(90deg, #1a0505 0%, #0d0d0d 100%);
    border-bottom: 1px solid rgba(255, 77, 77, 0.2);
    padding: 10px 0;
}
.featured-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ff4d4d;
}
.featured-header-inner i {
    font-size: 1rem;
    animation: fire-pulse 1.4s ease-in-out infinite;
}
@keyframes fire-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(1.2); }
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: #0d0d0d;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Slide: split layout ── */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    background: linear-gradient(135deg, #170505 0%, #0d0d0d 55%, #141414 100%);
    border-bottom: 1px solid var(--border);
}

.carousel-slide-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    gap: 32px;
}

/* Left: text content */
.carousel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px 40px 72px;
}

/* Right: product image */
.carousel-image-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 40px 28px 16px;
    position: relative;
}

.carousel-product-img {
    max-height: 88%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.75));
    border-radius: 8px;
    animation: float-img 3.8s ease-in-out infinite;
}

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

/* Text elements inside slide */
.carousel-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.12);
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 12px;
}

.carousel-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--whatsapp);
    margin-bottom: 28px;
}

.carousel-cta {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(128, 0, 0, 0.4);
    align-self: flex-start;
}
.carousel-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(128, 0, 0, 0.5);
}

/* Navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.carousel-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}



/* ═══════════════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════════════ */
.layout-container {
    max-width: 1400px;
    margin: 32px auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
}

/* No carousel offset — carousel takes its own space */

/* Sidebar */
.sidebar {
    background-color: transparent;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 2px solid #ff4d4d;
    padding-bottom: 12px;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-list li {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.category-list li:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
}
.category-list li.active {
    background-color: #ff4d4d;
    color: #ffffff;
    font-weight: 700;
}

/* Mobile dropdown */
.mobile-categories {
    display: none;
    margin-bottom: 16px;
}
.mobile-categories select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}


/* ═══════════════════════════════════════════════════════════════════
   Catalog Controls (sort + count)
   ═══════════════════════════════════════════════════════════════════ */
.catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.products-count {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    transition: var(--transition);
}
.sort-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.sort-group label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}
.sort-group select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}
.sort-group select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════════════════
   Products Grid
   ═══════════════════════════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.loader-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-secondary);
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Product Card */
.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    background-color: var(--bg-card-hover);
}

/* Highlight flash when navigating from carousel */
@keyframes highlight-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 77, 77, 0.7); border-color: #ff4d4d; }
    50%  { box-shadow: 0 0 0 12px rgba(255, 77, 77, 0); border-color: #ff4d4d; }
    100% { box-shadow: 0 0 0 0   rgba(255, 77, 77, 0); border-color: transparent; }
}
.product-card.highlight-flash {
    animation: highlight-pulse 1.6s ease-out;
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background-color: #2a2a2a;
    border-bottom: 1px solid var(--border);
    cursor: zoom-in;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff4d4d;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--whatsapp);
}

.add-to-cart-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.add-to-cart-btn:hover {
    background-color: var(--accent-hover);
}


/* ═══════════════════════════════════════════════════════════════════
   Pagination
   ═══════════════════════════════════════════════════════════════════ */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.page-btn:hover:not(:disabled) {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}
.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 120px;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════
   Shopping Cart Sidebar
   ═══════════════════════════════════════════════════════════════════ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 100%; max-width: 400px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 1001;
    box-shadow: -4px 0 24px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.cart-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}
.close-cart:hover {
    color: white;
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 16px;
    font-size: 1.1rem;
}
.empty-cart i { font-size: 3rem; }

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

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

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.cart-item-price {
    color: var(--whatsapp);
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-dark);
    border-radius: 6px;
    padding: 4px 8px;
}
.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
}

.remove-item {
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}
.remove-item:hover { color: #ff4757; }

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-card);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--whatsapp);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}
.checkout-btn:hover:not(:disabled) {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}
.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════════════
   Floating WhatsApp FAB
   ═══════════════════════════════════════════════════════════════════ */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px; height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: var(--transition);
}
.fab-whatsapp:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.5);
    background-color: var(--whatsapp-hover);
}


/* ═══════════════════════════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%; max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-overlay.active .lightbox-img { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}
.lightbox-close:hover { color: var(--accent); }


/* ═══════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
    background-color: #0d0d0d;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-logo {
    height: 50px;
    object-fit: contain;
    object-position: left;
    filter: brightness(0.85);
    transition: filter var(--transition);
}
.footer-logo:hover { filter: brightness(1); }

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-contact h4,
.footer-info h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--whatsapp);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-link:hover {
    color: #fff;
    gap: 12px;
}

.footer-info p {
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}


/* ═══════════════════════════════════════════════════════════════════
   Responsive — ≤ 900px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .layout-container {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .sidebar { display: none; }

    .mobile-categories { display: block; }

    .brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
    .brand img { height: 55px; }

    .cart-trigger { margin-left: auto; }

    .search-bar {
        position: absolute;
        top: 80px; left: 0; right: 0;
        max-width: 100%;
        padding: 15px 24px;
        background-color: var(--glass-bg);
        border-bottom: 1px solid var(--border);
    }
    .search-bar i { left: 40px; }
    .search-bar input { border-radius: 8px; }

    /* Push layout below navbar + search bar */
    .featured-carousel-section { margin-top: 150px; }
    .layout-container           { margin-top: 20px; }

    /* Carousel — tablet: still split but tighter */
    .carousel-wrapper          { height: 300px; }
    .carousel-slide-inner      { padding: 0 16px; gap: 16px; }
    .carousel-content          { padding: 24px 16px 24px 16px; }
    .carousel-title            { font-size: 1.3rem; }
    .carousel-price            { font-size: 1.1rem; margin-bottom: 18px; }
    .carousel-image-wrapper    { padding: 16px 16px; min-height: 140px; }
    .carousel-arrow            { width: 34px; height: 34px; font-size: 0.75rem; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }

    .featured-header-inner {
        font-size: 0.85rem;
        letter-spacing: 1px;
        justify-content: center;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    .product-info  { padding: 12px; }
    .product-image { height: 160px; }
    .product-name  { font-size: 1rem; }
    .add-to-cart-btn span { display: none; }

    /* Carousel — mobile: show only image on top + text below, stacked */
    .carousel-wrapper       { height: 320px; }
    .carousel-slide-inner   {
        flex-direction: column-reverse;
        padding: 0;
        gap: 0;
        align-items: stretch;
    }
    .carousel-content       {
        padding: 12px 20px 32px;
        flex: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .carousel-image-wrapper {
        flex: 1.2;
        padding: 20px 20px 0;
    }
    .carousel-product-img   { animation: none; max-height: 100%; }
    .carousel-title         { font-size: 1.1rem; margin-bottom: 6px; }
    .carousel-price         { font-size: 1rem; margin-bottom: 14px; }
    .carousel-cta           { padding: 10px 22px; font-size: 0.9rem; align-self: center; margin-bottom: 4px; }

    .pagination-controls { gap: 12px; padding-bottom: 80px; }
    .page-btn            { padding: 8px 16px; font-size: 0.85rem; }
}

