/* Propuesta de Diseño Premium - Dark Mode */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-header: #000000;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --brand-red: #D32F2F;
    --brand-red-hover: #b71c1c;
    --brand-gold: #FFD700;
    /* For badges/accents */
    --accent-gold: #FDD835;
    --border-color: #333;

    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Top Bar */
.top-bar {
    background-color: var(--brand-red);
    color: white;
    margin-top: -25px;
    padding: 5px 0;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.top-bar-message {
    margin: 0;
    white-space: nowrap;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.top-bar-contact span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Header */
.header {
    background-color: var(--bg-header);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

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

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(420px, 34vw);
    margin: 0 22px;
}

.header-search-form input {
    width: 100%;
    min-width: 0;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0 16px;
    font-size: 0.92rem;
}

.header-search-form input::placeholder {
    color: #a9a9a9;
}

.header-search-form input:focus {
    outline: none;
    border-color: rgba(211, 47, 47, 0.9);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.18);
}

.header-search-form button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--brand-red);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search-form button:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1483985988355-763728e1935b?q=80&w=2070&auto=format&fit=crop');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.promo-banner+.hero,
.promo-banner~.hero {
    margin-top: -26px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 72%, rgba(10, 10, 10, 0.9) 92%, rgba(10, 10, 10, 1) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    padding-left: 0;
    margin-left: -6;
    /* Aligned with the container's left edge */
    position: relative;
    z-index: 1;
}

.tag-badge {
    background-color: var(--brand-red);
    color: white;
    padding: 8px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 25px;
    margin-top: 30px;
    /* Added margin to avoid overlap with the banner */
    border-radius: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    font-style: italic;
    color: var(--brand-red);
}

.hero-offer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    border: 1px solid rgba(255, 215, 0, 0.32);
    padding: 8px 10px 8px 14px;
    border-radius: 50px;
    width: fit-content;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
}

.price-circle {
    background-color: #f5d21d;
    color: black;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.price-circle::after {
    content: '';
    position: absolute;
    top: -35%;
    left: -45%;
    width: 42%;
    height: 170%;
    transform: rotate(24deg);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 100%);
    animation: priceShine 3.8s ease-in-out infinite;
}

@keyframes priceShine {
    0% {
        left: -55%;
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    44% {
        left: 125%;
        opacity: 0;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

.offer-text {
    font-size: 2.05rem;
    line-height: 1.15;
    font-weight: 600;
}

.offer-label {
    color: #f5d21d;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.hero-offer-meta {
    margin-top: 12px;
    color: #aeb2b9;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
}

/* Categories */
.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 50px;
}

.categories-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.cat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-item:hover .cat-circle {
    border-color: var(--brand-red);
    transform: scale(1.05);
}

.cat-name {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
}

/* Products */
.products-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.product-card {
    background: var(--bg-card);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
}

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

.prod-img-container {
    position: relative;
    height: 350px;
    background: #222;
    overflow: hidden;
}

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

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

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .card-actions {
    opacity: 1;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
    background: var(--brand-red);
    color: white;
}

.btn-add-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--brand-red);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-red);
    color: white;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.prod-info {
    padding: 20px;
}

.prod-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.prod-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-red);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
}

.color-swatches {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.swatch {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: #000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #111;
    padding: 40px;
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    background: #1a1a1a;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 25px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Big Button Area */
.catalog-btn-area {
    text-align: center;
    padding-bottom: 80px;
}

.btn-catalog-rounded {
    background: var(--brand-red);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-catalog-rounded:hover {
    transform: scale(1.05);
    background: var(--brand-red-hover);
}

/* Lifestyle CTA Section */
.lifestyle-cta {
    position: relative;
    padding: 150px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.cta-tag {
    color: var(--brand-red);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.lifestyle-cta h2 {
    font-size: 4rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Location / Map Section */
.location-section {
    background-color: #000;
    padding: 80px 0;
    border-top: 1px solid #222;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.location-info h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 20px;
}

.location-info .red-accent {
    color: var(--brand-red);
    font-style: italic;
}

.map-container {
    height: 400px;
    background: #222;
    filter: grayscale(100%) invert(92%) contrast(83%);
    /* Dark map style */
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer (Bottom) */
.main-footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--brand-red);
    color: white;
}

.hidden-admin-link,
.hidden-admin-link:visited,
.hidden-admin-link:hover,
.hidden-admin-link:focus {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.status-badge {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 3px solid #2ecc71;
}

.btn-primary {
    background-color: var(--brand-red);
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
    margin-top: 20px;
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 15px;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* Promotion Banner */
.promo-banner {
    background: linear-gradient(90deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    padding: 15px 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
    /* Ensure it's above hero content if they overlap */
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.promo-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.promo-text p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Product Options (Chips) */
.product-options {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.option-group {
    margin-bottom: 20px;
}

.option-group-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.option-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: var(--brand-red);
}

.option-btn.selected {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}


.promo-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-list-btn {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.promo-list-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.promo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
}

.promo-badge span {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-left: 5px;
    font-weight: 400;
}

.promo-close {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: 0.3s;
}

.promo-close:hover {
    opacity: 1;
}

/* Modal de promociones */
#promotionsModal.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

#promotionsModal.modal-overlay.active {
    display: flex;
}

#promotionsModal .modal-content {
    width: min(900px, 100%);
    max-height: 86vh;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111;
    color: #fff;
}

#promotionsModal .modal-header {
    background: linear-gradient(90deg, #D32F2F 0%, #B71C1C 100%);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#promotionsModal .modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#promotionsModal .modal-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

#promotionsModal .modal-body {
    padding: 16px;
    max-height: calc(86vh - 70px);
    overflow-y: auto;
}

#promotionsModal .loading-spinner {
    text-align: center;
    color: #c7c7c7;
    padding: 20px 10px;
}

#promotionsModal .promotion-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

#promotionsModal .promotion-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

#promotionsModal .promotion-title {
    font-size: 1rem;
    margin: 0;
}

#promotionsModal .promotion-status {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

#promotionsModal .promotion-status.activa {
    background: rgba(39, 174, 96, 0.18);
    color: #8ce3ad;
}

#promotionsModal .promotion-description {
    color: #cecece;
    margin: 8px 0 10px;
}

#promotionsModal .promotion-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

#promotionsModal .promotion-discount {
    background: rgba(211, 47, 47, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

#promotionsModal .promotion-dates {
    color: #bbb;
    font-size: 0.78rem;
}

#promotionsModal .no-promotions {
    text-align: center;
    color: #c7c7c7;
    padding: 24px 12px;
}

@media (max-width: 768px) {
    .top-bar .container {
        justify-content: center;
    }

    .top-bar-message {
        text-align: center;
        white-space: normal;
    }

    .top-bar-contact {
        display: none;
    }

    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .promo-banner+.hero,
    .promo-banner~.hero {
        margin-top: -3px;
    }

    .hero-content {
        margin-left: 0;
    }

    .hero-offer {
        padding: 8px 10px;
        gap: 10px;
    }

    .offer-label {
        font-size: 0.82rem;
    }

    .offer-text {
        font-size: 1.2rem;
    }

    .price-circle {
        width: 58px;
        height: 58px;
        font-size: 1.42rem;
    }

    .promo-right {
        gap: 10px;
    }

    .promo-list-btn {
        font-size: 0.72rem;
        padding: 7px 10px;
    }

    .promo-badge {
        font-size: 0.95rem;
    }

    #promotionsModal .promotion-details {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

/* Category Layout Enhancements */
.category-layout {
    display: flex;
    gap: 30px;
    padding: 60px 0;
    align-items: flex-start;
}

.category-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-color);
}

.category-content-area {
    flex-grow: 1;
    min-width: 0;
    /* Prevents overflow optimization issues */
}

/* Sidebar Styles */
.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: white;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 20px;
    /* Slight movement effect */
}

.sidebar-link.active {
    background: rgba(211, 47, 47, 0.1);
    color: var(--brand-red);
    border-left: 3px solid var(--brand-red);
    font-weight: 500;
}

/* Horizontal Subcategory Scroll */
.filter-scroll-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.filter-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--brand-red) var(--bg-card);
    display: flex;
    gap: 10px;
}

.filter-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.filter-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.filter-scroll-container::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 4px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
    user-select: none;
}

.filter-pill:hover {
    background: #222;
    color: white;
    transform: translateY(-2px);
}

.filter-pill.active {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .category-layout {
        flex-direction: column;
        padding: 30px 0;
    }

    .category-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        /* Make sidebar collapsible or horizontal on mobile if preferred, 
           but for now keeping it simple as a block */
        display: none;
        /* Hide sidebar on mobile to prioritize horizontal scroll of subcats */
    }

    /* On mobile, maybe show a "Categories" dropdown instead of full sidebar, 
       but the horizontal pills are the main navigation requested */
}

/* Category and Category List Pages */
.breadcrumb {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #d7d7d7;
}

.breadcrumb span,
.breadcrumb i {
    color: #9f9f9f;
}

.category-banner {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(1100px 320px at 85% 0%, rgba(211, 47, 47, 0.2), transparent 58%),
        linear-gradient(145deg, #131313 0%, #0a0a0a 55%, #121212 100%);
}

.category-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: saturate(1.1);
}

.category-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0.84) 100%);
    pointer-events: none;
}

.category-banner .container {
    position: relative;
    z-index: 1;
}

.category-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.category-banner-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 10px;
}

.category-banner-text p {
    color: #c9c9c9;
    font-size: 1.05rem;
}

.category-banner-visual {
    flex-shrink: 0;
}

.category-banner-icon,
.category-banner-image {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
}

.category-banner-icon i {
    font-size: 2rem;
    color: #fff;
}

.category-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.category-content {
    position: relative;
    background:
        radial-gradient(1000px 240px at 18% 0%, rgba(255, 255, 255, 0.03), transparent 60%),
        var(--bg-dark);
}

.categories-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
}

.categories-kicker {
    display: inline-block;
    color: #e64a4a;
    font-weight: 700;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
}

.categories-title {
    margin-bottom: 0;
}

.categories-link-all {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    padding-bottom: 5px;
    font-weight: 500;
}

.categories-link-all:hover {
    color: #fff;
    border-bottom-color: var(--brand-red);
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    position: relative;
    padding: 6px;
}

.cat-circle {
    width: clamp(150px, 15vw, 190px);
    height: clamp(150px, 15vw, 190px);
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    background: #171717;
    position: relative;
}

.cat-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 35%);
    pointer-events: none;
}

.cat-circle img {
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.cat-item:hover .cat-circle {
    transform: translateY(-6px) scale(1.02);
    border-color: #e65151;
}

.cat-item:hover .cat-circle img {
    transform: scale(1.1);
}

.cat-name {
    font-size: 1.04rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.all-categories-page .category-sidebar {
    width: 300px;
}

.sidebar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.accordion-toggle {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #d5d5d5;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.accordion-toggle:hover,
.accordion-toggle[aria-expanded='true'] {
    background: rgba(211, 47, 47, 0.2);
    border-color: rgba(211, 47, 47, 0.72);
    color: #fff;
}

.accordion-toggle i {
    transition: transform 0.25s ease;
}

.accordion-toggle[aria-expanded='true'] i {
    transform: rotate(180deg);
}

.sidebar-submenu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    margin-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.14);
    padding-left: 12px;
}

.sidebar-submenu.is-open {
    opacity: 1;
    transform: translateY(0);
}

.submenu-link {
    display: block;
    padding: 8px 0;
    color: #b9b9b9;
    font-size: 0.9rem;
}

.submenu-link:hover {
    color: #fff;
}

.all-categories-head {
    margin-bottom: 18px;
}

.all-categories-head p {
    color: #bbbbbb;
}

.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.category-card-large {
    background: linear-gradient(180deg, #171717, #111111);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-card-large:hover {
    transform: translateY(-6px);
    border-color: rgba(211, 47, 47, 0.65);
}

.cat-large-image {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
}

.cat-large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.cat-large-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 14px;
    text-align: center;
    font-weight: 600;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

.cat-large-info {
    padding: 18px;
}

.cat-large-info h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.cat-large-info p {
    color: #a4a4a4;
    font-size: 0.92rem;
}

.categories-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #bdbdbd;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-grid .product-card {
    background: linear-gradient(180deg, #191919, #111111);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.product-grid .product-card>a,
.product-grid .product-card>a img {
    display: block;
    width: 100%;
}

.product-grid .product-card>a img {
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 16px;
}

.product-info .brand {
    color: #a7a7a7;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.product-info h3 {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.35;
}

.product-info .price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.current-price {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.old-price {
    color: #b6b6b6;
    font-size: 0.84rem;
}

.product-actions {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.btn-view,
.btn-add {
    border: none;
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 0;
}

.btn-view {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-add {
    background: var(--brand-red);
    color: #fff;
    flex: 1;
}

.badge-featured,
.badge-stock {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-featured {
    left: 10px;
    background: rgba(211, 47, 47, 0.92);
}

.badge-stock {
    right: 10px;
    background: rgba(255, 255, 255, 0.88);
    color: #202020;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
    clip-path: inset(50%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .all-categories-page .category-sidebar {
        width: 280px;
    }
}

@media (max-width: 900px) {
    .category-sidebar {
        display: block;
    }

    .category-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-banner-icon,
    .category-banner-image {
        width: 84px;
        height: 84px;
        border-radius: 18px;
    }

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

@media (prefers-reduced-motion: reduce) {

    .price-circle::after {
        animation: none !important;
    }

    [data-reveal],
    .cat-circle,
    .cat-circle img,
    .category-card-large,
    .accordion-toggle i,
    .sidebar-submenu {
        transition: none !important;
    }
}

/* Product Detail and Cart */
.product-detail {
    padding: 56px 0 72px;
    background:
        radial-gradient(900px 220px at 10% 0%, rgba(211, 47, 47, 0.12), transparent 60%),
        var(--bg-dark);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.product-image-section {
    position: sticky;
    top: 110px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.product-image-section img {
    width: 100%;
    height: min(560px, 64vh);
    object-fit: cover;
    display: block;
}

.product-info-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 28px;
}

.product-info-section .brand {
    display: inline-flex;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff7d7d;
    margin-bottom: 10px;
}

.product-info-section h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 14px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.price-main {
    font-size: 2.1rem;
    color: #fff;
    font-weight: 700;
}

.price-installment {
    color: #bbb;
    font-size: 0.94rem;
}

.stock-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #ccecd3;
}

.stock-out-icon,
.stock-out-text {
    color: #ff6d6d;
}

.product-description,
.product-specs {
    margin-top: 18px;
}

.product-description h3,
.product-specs h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.product-description p {
    color: #cbcbcb;
    line-height: 1.7;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-specs td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.92rem;
}

.product-specs td:first-child {
    color: #b7b7b7;
    width: 45%;
}

.quantity-selector {
    margin-top: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    color: #d4d4d4;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px;
}

.quantity-controls .qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-controls input {
    width: 64px;
    border: none;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 0.96rem;
}

.product-actions-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.product-actions-detail .btn-add-cart,
.product-actions-detail .btn-whatsapp,
.btn-estimate {
    min-height: 48px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-actions-detail .btn-add-cart {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    padding: 0 14px;
    background: var(--brand-red);
    color: #fff;
}

.product-actions-detail .btn-add-cart.disabled {
    background: #555;
    cursor: not-allowed;
}

.product-actions-detail .btn-whatsapp {
    background: #1fa855;
    color: #fff;
}

.btn-estimate {
    margin-top: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.product-features {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    color: #d0d0d0;
    font-size: 0.86rem;
}

.feature-item i {
    color: #ff6b6b;
}

.cart-notification {
    position: fixed;
    top: 96px;
    right: 18px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #23a054;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.product-calculator-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-calculator-modal.active {
    display: flex;
}

.product-calculator-modal .modal-content {
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
}

.calc-subtitle,
.calc-disclaimer {
    color: #bbb;
    margin-bottom: 14px;
}

.installment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.installment-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px;
}

.installment-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.installment-amount {
    color: #ff9b9b;
    font-weight: 700;
}

.installment-total,
.installment-note {
    color: #c8c8c8;
    font-size: 0.88rem;
}

.cart-section {
    padding: 56px 0 72px;
    background:
        radial-gradient(950px 240px at 18% 0%, rgba(255, 255, 255, 0.035), transparent 62%),
        var(--bg-dark);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 16px;
}

.cart-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h1 i {
    color: #ff6b6b;
}

.btn-empty-cart {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 10px;
    min-height: 42px;
    padding: 0 14px;
    cursor: pointer;
}

.cart-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.cart-items,
.cart-summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 20px;
}

.cart-items {
    min-height: 360px;
}

.empty-cart-message {
    min-height: 300px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 10px;
    color: #c8c8c8;
}

.empty-cart-message i {
    font-size: 2.2rem;
    color: #ff6b6b;
}

.empty-cart-message .btn-primary {
    width: fit-content;
    margin: 8px auto 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 130px 110px 46px;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

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

.cart-item img {
    width: 94px;
    height: 94px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-item-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.cart-item-info .brand,
.cart-item-total {
    color: #aaa;
    font-size: 0.87rem;
}

.item-price,
.item-total {
    color: #fff;
    font-weight: 700;
    margin-top: 4px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-quantity .qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cart-item-quantity input {
    width: 52px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #0f0f0f;
    color: #fff;
    text-align: center;
}

.btn-remove-item {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 90, 90, 0.16);
    color: #ff8383;
    cursor: pointer;
}

.cart-summary h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #d0d0d0;
}

.summary-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 8px 0;
}

.summary-total {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.financing-info {
    margin-top: 10px;
    color: #a9a9a9;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cart-actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.btn-continue,
.btn-checkout {
    min-height: 46px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.btn-continue {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-checkout {
    border: none;
    background: var(--brand-red);
    color: #fff;
    cursor: pointer;
}

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

@media (max-width: 1080px) {

    .product-detail-grid,
    .cart-content {
        grid-template-columns: 1fr;
    }

    .product-image-section {
        position: static;
    }

    .product-actions-detail {
        grid-template-columns: 1fr;
    }

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 760px) {
    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
    }

    .cart-item-quantity,
    .cart-item-total,
    .btn-remove-item {
        grid-column: 2;
    }

    .cart-item img {
        width: 72px;
        height: 72px;
    }
}

/* Cart Icon Badge */
.cart-icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--brand-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-count:not(:empty):not([innerText="0"]) {
    opacity: 1;
    transform: scale(1);
}

/* Animation for adding to cart */
@keyframes cartBump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.cart-count.bump {
    animation: cartBump 0.3s ease-out;
}

/* Adjust Product Buttons Layout */
.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.product-actions-detail .btn-add-cart,
.product-actions-detail .btn-whatsapp {
    flex: 1;
    /* Make them equal width */
    min-width: 0;
    /* Prevent overflow */
    white-space: nowrap;
    /* Keep text on one line if possible, or allow wrap if needed */
}

/* Allow stacking only on very small screens */
@media (max-width: 450px) {
    .product-actions-detail {
        flex-direction: column;
    }
}

/* Override previous media query stacking */
@media (max-width: 1080px) {
    .product-actions-detail {
        grid-template-columns: unset;
        /* Reset grid if it was used */
    }
}

/* Public responsive fixes */
.hero-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 500px;
}

.products-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.products-head-link {
    color: #fff;
    font-size: 0.9rem;
}

.lifestyle-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 7px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1003;
}

.hamburger span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
    position: absolute;
    left: 8px;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 19px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}

.hamburger.active span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
}

.hamburger.active {
    position: fixed;
    top: 14px;
    right: 14px;
    background: #111;
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-overlay {
    display: none;
}

.search-results {
    padding: 56px 0 72px;
    background: radial-gradient(900px 200px at 10% 0%, rgba(211, 47, 47, 0.11), transparent 60%), var(--bg-dark);
}

.search-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
    margin-bottom: 8px;
}

.search-stats {
    color: #bcbcbc;
    margin-bottom: 18px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 26px;
}

.search-form input,
.search-form button {
    min-height: 46px;
    border-radius: 10px;
}

.search-form input {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #111;
    color: #fff;
    padding: 0 14px;
    min-width: 0;
}

.search-form button {
    width: 52px;
    border: none;
    background: var(--brand-red);
    color: #fff;
    cursor: pointer;
}

mark {
    background: rgba(211, 47, 47, 0.28);
    color: #fff;
    padding: 0 4px;
    border-radius: 4px;
}

.no-results {
    margin-top: 28px;
    text-align: center;
    padding: 34px 20px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    color: #c9c9c9;
}

.no-results i {
    font-size: 2rem;
    color: #ff8b8b;
    margin-bottom: 10px;
}

.search-suggestions {
    margin-top: 26px;
}

.search-suggestions h4 {
    margin-bottom: 10px;
}

.suggestion-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestion-links a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    color: #e2e2e2;
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .header-inner {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px;
    }

    .hamburger {
        display: inline-flex;
        margin-left: auto;
        order: 2;
    }

    .header-icons {
        order: 3;
        margin-left: auto;
    }

    .header-search-form {
        order: 5;
        width: 100%;
        margin: 2px 0 0;
    }

    .main-nav {
        order: 4;
        width: 100%;
    }

    .main-nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 86vw);
        height: 100vh;
        padding: 88px 22px 24px;
        background: #0b0b0b;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        transition: transform 0.28s ease;
        z-index: 1002;
        overflow-y: auto;
        transform: translateX(100%);
    }

    .main-nav ul.active {
        transform: translateX(0);
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
        z-index: 1001;
        display: block;
    }

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

    .hero {
        min-height: 520px;
        height: auto;
        padding: 90px 0 70px;
    }

    .hero-description {
        font-size: 1.02rem;
    }

    .products-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 26px;
    }

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

    .feature-card {
        min-width: 0;
        padding: 24px;
    }

    .category-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .category-content .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .category-layout,
    .category-content-area,
    .product-grid,
    .product-grid .product-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .category-layout {
        gap: 14px;
    }

    .breadcrumb .container {
        flex-wrap: wrap;
        gap: 8px;
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .breadcrumb i {
        display: none;
    }

    .main-nav ul {
        width: 100%;
    }

    .header-icons {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .header-search-form {
        width: 100%;
        margin: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-buttons .btn-outline {
        margin-left: 0;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-form button {
        width: 100%;
    }

    .lifestyle-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .lifestyle-actions a {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }

    .categories-grid,
    .categories-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .categories-grid .cat-item {
        width: 100%;
    }

    .categories-grid .cat-circle {
        width: min(100%, 150px);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .products-grid .prod-img-container,
    .product-grid .product-card > a img {
        height: 170px;
    }

    .products-grid .prod-info,
    .product-grid .product-info {
        padding: 10px;
    }

    .products-grid .prod-title,
    .product-grid .product-info h3 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .products-grid .prod-price,
    .product-grid .current-price {
        font-size: 0.95rem;
    }

    .product-grid .product-actions {
        gap: 6px;
    }

    .product-grid .btn-view,
    .product-grid .btn-add {
        padding: 8px 8px;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
