:root {
    /* Colors - Premium Navy & Gold Palette */
    --primary-color: #0f172a;
    /* Slate 900 */
    --primary-light: #334155;
    /* Slate 700 */
    --accent-color: #f59e0b;
    /* Amber 500 */
    --accent-hover: #d97706;
    /* Amber 600 */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --surface-color: #ffffff;
    --text-color: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Spacing - More breathing room */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px - Increased */
    --spacing-lg: 4rem;
    /* 64px - Increased */
    --spacing-xl: 8rem;
    /* 128px - Increased */

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

    /* Shadows - Soft & Modern */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.7);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 5000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #0f172a;
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.announcement-bar {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #f8fafc;
    font-size: 0.9rem;
    overflow: hidden;
}

.announcement-content {
    margin: 0;
    padding: 0.45rem var(--spacing-sm);
    display: inline-flex;
    width: max-content;
    max-width: none;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    padding-left: 100%;
    animation: announcementTicker 24s linear infinite;
}

.announcement-content:hover {
    animation-play-state: paused;
}

.announcement-content p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.announcement-content a {
    color: #fcd34d;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
.main-header {
    background-color: var(--surface-color);
    /* White header for cleanliness */
    color: var(--text-color);
    padding: var(--spacing-sm) 0;
    position: static;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo span {
    color: var(--accent-color);
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1.2rem 0.85rem 2.75rem;
    border: none;
    outline: none;
    font-size: 0.98rem;
    color: var(--text-color);
    background: transparent;
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary-color), #0f172a);
    border: none;
    padding: 0 1.4rem;
    cursor: pointer;
    color: #fff;
    transition: var(--transition-fast);
}

.search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.search-bar::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, 0.45);
    pointer-events: none;
}

.search-bar:focus-within {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.2);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
    background: none;
    border: none;
}

.cart-icon:hover {
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.cart-count.is-empty {
    display: none;
}

/* Navigation Bar (Secondary) */
.nav-links {
    background: linear-gradient(90deg, #0f172a, #111827);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.nav-links ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-links a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nav-links a.active {
    color: white;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    padding: 0;
    height: 500px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    /* Larger title */
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.05em;
    line-height: 1.2;
    text-shadow: none;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    color: #000;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide .container {
    padding: 2rem 1rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.25);
    cursor: pointer;
}

.hero-dot.active {
    background: #f59e0b;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Location Section */
.location-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 3.5rem 0 4rem;
    margin-bottom: 2rem;
}

.location-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.location-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.location-title h2 {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.location-title p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: #fff7ed;
    color: #f97316;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.location-details {
    display: grid;
    gap: 0.6rem;
    color: #334155;
    font-weight: 600;
}

.location-details i {
    color: #f59e0b;
    margin-right: 0.45rem;
}

.location-details a {
    color: #0f172a;
    text-decoration: none;
}

.location-actions {
    margin-top: auto;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    min-height: 360px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 360px;
}

@media (max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero CTA animation */
.hero .btn-primary {
    position: relative;
    animation: heroPulse 1.6s ease-in-out infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 rgba(245, 158, 11, 0.6);
}

.hero .btn-primary::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 2px solid rgba(245, 158, 11, 0.45);
    opacity: 0;
    animation: heroRing 1.6s ease-out infinite;
}

@keyframes heroPulse {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-4px) scale(1.03); }
    70% { transform: translateY(1px) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes heroRing {
    0% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 0; transform: scale(1.15); }
}

/* Product Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-left: none;
    /* Remove conflicting style */
    padding-left: 0;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

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

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Fix linting error */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}

.product-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-cart {
    flex: 1;
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-cart:hover {
    background-color: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-buy {
    flex: 1;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 0.6rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-buy:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp-product {
    flex: 1 1 100%;
    background-color: #16a34a;
    border: 1px solid #16a34a;
    color: #fff;
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-whatsapp-product:hover {
    background-color: #15803d;
    border-color: #15803d;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    /* Dark Navy */
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 4px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.75rem;
    color: #94a3b8;
    /* Slate 400 */
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Catalog Sidebar */
.catalog-layout {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-group {
    background: white;
    padding: var(--spacing-sm);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.brand-filter-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-group h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.filter-item input {
    margin-right: 0.5rem;
}

.filter-item:hover {
    background: #f8fafc;
}

.filter-item span:first-child {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-item-main {
    margin-bottom: 0.25rem;
}

.filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-toggle {
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.filter-toggle:hover {
    background: #e2e8f0;
}

.filter-accordion.open .filter-toggle {
    transform: rotate(180deg);
}

.subcategory-list {
    display: none;
    padding: 0.25rem 0.25rem 0.75rem;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-accordion.open .subcategory-list {
    display: flex;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subcategory-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.filter-count {
    font-size: 0.75rem;
    color: #64748b;
    background: #eef2f7;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    min-width: 2rem;
    text-align: center;
}

/* About Page */
.about-content {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-top: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

/* Additions for Cart */
.btn-qty {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

/* Ensure images in product grid are contained */
.product-image img {
    object-position: center;
}

/* Sidebar Inputs */
.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Mobile Sidebar Toggle - Hidden on Desktop */
#mobile-filter-toggle {
    display: none;
    margin-bottom: var(--spacing-sm);
    width: 100%;
}

.mobile-only {
    display: none;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition-fast);
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Media Queries */
@media (max-width: 768px) {

    /* Header */
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
    }

    .nav-links ul {
        gap: 1rem;
        font-size: 0.9rem;
        justify-content: space-between;
    }

    .announcement-content {
        font-size: 0.82rem;
        gap: 1.3rem;
        animation-duration: 13s;
    }

    /* Catalog Layout */
    .catalog-layout {
        flex-direction: column;
        gap: 1rem;
    }

    /* Sidebar Mobile */
    #mobile-filter-toggle {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: white;
        z-index: 1000;
        padding: 1rem;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
    }

    /* Filters inside Sidebar */
    .filter-group {
        border: none;
        padding: 0;
        margin-bottom: 1.5rem;
    }

    /* Cart Modal Mobile */
    #cartModal>div {
        width: 90% !important;
        max-width: 400px;
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 1rem;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    /* Space for shadow */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    animation: carouselFloat 6s ease-in-out infinite;
}

/* Hide scrollbar */
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .product-card {
    min-width: 250px;
    /* Fixed width for carousel items */
    max-width: 250px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

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

.carousel-track .product-card {
    animation: cardFloat 4.5s ease-in-out infinite;
}

.carousel-track .product-card:nth-child(2n) {
    animation-delay: 0.6s;
}

.carousel-track .product-card:nth-child(3n) {
    animation-delay: 1.2s;
}

@keyframes cardFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes carouselFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
}

.search-results-dropdown.active {
    display: block;
}

.search-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    padding: 0.75rem 1rem 0.25rem;
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 0.75rem;
}

.search-chip {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    color: #0f172a;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-chip:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.search-product-chip {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 600;
}

.search-product-chip strong {
    color: #111827;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f8fafc;
}

.search-item.active {
    background: #eef2ff;
}

.search-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.search-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    color: var(--text-color);
}

.search-item-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.search-mark {
    background: rgba(176, 138, 74, 0.22);
    color: inherit;
    border-radius: 4px;
    padding: 0 0.18em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.search-item-price {
    margin-left: auto;
    font-weight: 700;
    color: #111827;
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 3000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float i {
    font-size: 1.2rem;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 110px;
        right: 14px;
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #475569;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.product-rating {
    display: none;
}

.search-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
}


/* Product Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s;
}

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

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.detail-image-container {
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.detail-image-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.image-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.detail-info-container {
    display: flex;
    flex-direction: column;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.detail-section li {
    margin-bottom: 0.25rem;
}

.detail-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-whatsapp-detail {
    background-color: #16a34a;
    border: 1px solid #16a34a;
    color: #fff;
}

.btn-whatsapp-detail:hover {
    background-color: #15803d;
    border-color: #15803d;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.qty-selector button {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    font-weight: bold;
    cursor: pointer;
}

.qty-selector span {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    /* Mobile Header Adjustments */
    .header-container {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block !important;
        /* Force show on mobile */
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-color);
        cursor: pointer;
        padding: 0.5rem;
        order: 1;
        /* Adjust order if needed */
        margin-left: 1rem;
    }

    /* Hide standard nav layout */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        /* Off-screen */
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        /* Space for close button or spacing */
        transition: left 0.3s ease-in-out;
        z-index: 2000;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
        display: flex !important;
        /* Override any potential display:none */
    }

    .nav-links.mobile-active {
        left: 0;
        /* Slide in */
    }

    .nav-links ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 0 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        padding: 1rem 0;
    }

    /* Overlay */
    .nav-links.mobile-active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 100%;
        /* Starts at the right edge of menu */
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 10px;
        display: flex;
    }

    .nav-icons {
        display: flex;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-content {
        animation: none;
        width: 100%;
        max-width: 1200px;
        padding-left: var(--spacing-sm);
        justify-content: space-between;
        white-space: normal;
    }

    .home-hero-slide,
    .home-hero-slide.is-active {
        transition: none;
        animation: none;
    }
}

/* Unified UI Layer */
.mobile-menu-btn {
    display: none;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-hero {
    position: relative;
    margin: 0 0 1.75rem;
    background: #0f172a;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.home-hero-track {
    position: relative;
    aspect-ratio: 4 / 1;
    perspective: 1800px;
    perspective-origin: center;
    transform-style: preserve-3d;
    isolation: isolate;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(88deg);
    transform-origin: right center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    z-index: 1;
    pointer-events: none;
}

.home-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
    z-index: 3;
    pointer-events: auto;
}

.home-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(2, 6, 23, 0.26), transparent 36%),
        linear-gradient(to top, rgba(15, 23, 42, 0.25), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.home-hero-slide.is-entering,
.home-hero-slide.is-leaving {
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    animation-duration: 1.3s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-slide.is-entering {
    z-index: 4;
}

.home-hero-slide.is-leaving {
    z-index: 5;
}

.home-hero-slide.is-entering.to-next {
    transform-origin: right center;
    animation-name: heroPageInNext;
}

.home-hero-slide.is-leaving.to-next {
    transform-origin: left center;
    animation-name: heroPageOutNext;
}

.home-hero-slide.is-entering.to-prev {
    transform-origin: left center;
    animation-name: heroPageInPrev;
}

.home-hero-slide.is-leaving.to-prev {
    transform-origin: right center;
    animation-name: heroPageOutPrev;
}

.home-hero-media {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
}

.home-hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.home-hero-dots {
    display: inline-flex;
    gap: 0.45rem;
}

.home-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}

.home-hero-dot.is-active {
    background: #fff;
    transform: scale(1.18);
}

.home-hero-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.home-hero-nav:hover {
    transform: translateY(-1px) scale(1.03);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.92);
}

@keyframes heroPageOutNext {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(-88deg);
        opacity: 0.34;
    }
}

@keyframes heroPageInNext {
    0% {
        transform: rotateY(88deg);
        opacity: 0.42;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@keyframes heroPageOutPrev {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(88deg);
        opacity: 0.34;
    }
}

@keyframes heroPageInPrev {
    0% {
        transform: rotateY(-88deg);
        opacity: 0.42;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.conversion-strip {
    margin-bottom: 2rem;
}

.conversion-strip-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.conversion-strip-card p {
    color: var(--text-light);
}

.conversion-strip-card strong {
    margin-right: auto;
}

.conversion-strip-actions {
    display: inline-flex;
    gap: 0.6rem;
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background: #fff;
}

.catalog-main {
    flex: 1;
    min-width: 0;
}

.catalog-toolbar-zone {
    position: static;
    margin-bottom: 0.9rem;
}

.catalog-toolbar {
    position: sticky;
    top: 0.5rem;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.catalog-sort {
    min-width: 220px;
}

.catalog-title {
    margin: 0;
    padding: 0;
}

.catalog-results-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 0.25rem;
}

.filter-chip {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.filter-chip.clear-all {
    background: var(--primary-color);
    color: #fff;
}

.cart-modal-shell {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 2000;
}

.cart-modal-panel {
    background: #fff;
    width: min(420px, 95vw);
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.cart-close-btn {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
}

.cart-items-scroll {
    flex: 1;
    overflow-y: auto;
}

.cart-modal-footer {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-sm);
}

.cart-field {
    width: 100%;
    padding: 0.55rem 0.6rem;
    margin-bottom: 0.45rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
}

.cart-consent {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0.75rem 0;
}

.cart-action-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.mobile-bottom-nav {
    display: none;
}

.favorite-btn,
.product-badge,
.product-rating-inline,
.trust-badges,
.trust-metrics {
    display: none !important;
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 94px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-to-top.visible {
    display: inline-flex;
}

.toast-container {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 2100;
    display: grid;
    gap: 0.55rem;
}

.toast {
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 250px;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

@media (max-width: 900px) {
    .conversion-strip-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .conversion-strip-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .catalog-toolbar {
        top: 0.35rem;
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-sort {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    body {
        padding-bottom: 74px;
    }

    .home-hero-track {
        aspect-ratio: 3 / 2;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: space-around;
        background: #fff;
        border-top: 1px solid var(--border-color);
        padding: 0.6rem 0;
        z-index: 1001;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        font-size: 0.75rem;
        color: var(--text-light);
    }

    .mobile-bottom-nav a.active {
        color: var(--accent-color);
    }

    .whatsapp-float {
        bottom: 88px;
        right: 12px;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .whatsapp-float span {
        display: none;
    }
}
