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

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
    --onos-dark: #1b1b1b;
    --onos-darker: #111111;
    --onos-gray: #2a2a2a;
    --onos-light-gray: #3a3a3a;
    --onos-primary: #0d6efd;
    --onos-primary-hover: #0a58ca;
    --onos-accent: #ff6b35;
    --onos-body-bg: #f4f6f8;
    --onos-card-bg: #ffffff;
    --onos-text-light: #ffffff;
    --onos-text-muted: #adb5bd;
    --onos-text-dark: #212529;
    --onos-border: #e0e0e0;
    --onos-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --onos-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --onos-radius: 8px;
    --onos-radius-lg: 12px;
    --onos-transition: all 0.3s ease;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--onos-body-bg);
    color: var(--onos-text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: var(--onos-transition);
}

/* ============================================
   Top Announcement Bar
   ============================================ */
.top-bar {
    background-color: var(--onos-darker);
    color: var(--onos-text-muted);
    font-size: 0.75rem;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.top-bar i {
    color: var(--onos-primary);
}

/* ============================================
   Main Header
   ============================================ */
.main-header {
    background-color: var(--onos-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
    transition: var(--onos-transition);
    max-height: 50px;
    width: auto;
}

.header-logo img:hover {
    filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.3));
}

/* Categories Wrapper */
.categories-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* Categories Toggle Button */
.btn-categories-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 2px solid var(--onos-primary);
    border-radius: var(--onos-radius);
    color: var(--onos-primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--onos-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-categories-toggle i {
    font-size: 1.1rem;
}

.btn-categories-toggle:hover {
    background: var(--onos-primary);
    color: #fff;
}

/* Search */
.search-form {
    flex: 1;
    display: flex;
    position: relative;
}

.search-form .search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--onos-light-gray);
    border-right: none;
    border-radius: var(--onos-radius) 0 0 var(--onos-radius);
    font-size: 0.92rem;
    color: var(--onos-text-light);
    background: var(--onos-gray);
    transition: var(--onos-transition);
    outline: none;
}

.search-form .search-input::placeholder {
    color: var(--onos-text-muted);
}

.search-form .search-input:focus {
    border-color: var(--onos-primary);
    background: var(--onos-gray);
    color: var(--onos-text-light);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.search-form-mobile {
    display: flex !important;
}

.btn-search {
    background-color: var(--onos-primary);
    color: white;
    border: 2px solid var(--onos-primary);
    padding: 10px 18px;
    font-size: 1.05rem;
    border-radius: 0 var(--onos-radius) var(--onos-radius) 0;
    cursor: pointer;
    transition: var(--onos-transition);
    display: flex;
    align-items: center;
}

.btn-search:hover {
    background-color: var(--onos-primary-hover);
    border-color: var(--onos-primary-hover);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--onos-text-light);
    padding: 8px 12px;
    border-radius: var(--onos-radius);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--onos-transition);
    text-decoration: none;
    line-height: 1.2;
}

.header-action-btn span:not(.cart-badge) {
    display: none;
}

.header-action-btn i {
    font-size: 1.4rem;
}

.header-action-btn:hover {
    color: var(--onos-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: var(--onos-accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
    font-family: Arial, sans-serif;
}

/* Mobile Menu Button */
.btn-mobile-menu {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--onos-text-light);
    padding: 4px 8px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================
   Quick Nav (Links bar below header)
   ============================================ */
.quick-nav {
    background: var(--onos-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: top 0.3s ease;
}

.quick-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
}

.quick-nav-links li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--onos-text-light);
    white-space: nowrap;
    transition: var(--onos-transition);
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.quick-nav-links li a:hover {
    color: var(--onos-primary);
    border-bottom-color: var(--onos-primary);
    background: rgba(255, 255, 255, 0.05);
}

.quick-nav-links .ofertas-link {
    color: #ffc107;
    font-weight: 600;
}

.quick-nav-links .ofertas-link:hover {
    color: #ffca2c;
    border-bottom-color: #ffc107;
}

/* Show header action labels on large screens */
@media (min-width: 992px) {
    .header-action-btn span:not(.cart-badge) {
        display: block;
    }
}

/* ============================================
   Categories Dropdown Panel
   ============================================ */
.categories-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    max-height: 70vh;
    background: var(--onos-dark);
    border: 1px solid var(--onos-light-gray);
    border-radius: 0 0 var(--onos-radius-lg) var(--onos-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: visible;
    z-index: 1100;
    display: none;
}

.categories-dropdown.open {
    display: block;
    animation: catDropIn 0.2s ease;
}

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

.categories-dropdown .cat-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.categories-dropdown .cat-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: var(--onos-text-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--onos-transition);
    border-left: 3px solid transparent;
}

.categories-dropdown .cat-list li a:hover {
    background: var(--onos-gray);
    color: var(--onos-primary);
    border-left-color: var(--onos-primary);
}

.categories-dropdown .cat-list li a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--onos-text-muted);
}

.categories-dropdown .cat-list li a:hover i {
    color: var(--onos-primary);
}

.categories-dropdown .cat-list .cat-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--onos-text-muted);
}

.categories-dropdown .cat-divider {
    border-top: 1px solid var(--onos-light-gray);
    margin: 4px 0;
}

/* Submenu panel (Intelaf style - appears on right) */
.categories-dropdown .cat-item {
    position: relative;
}

.categories-dropdown .cat-submenu {
    position: fixed;
    width: 320px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--onos-dark);
    border: 1px solid var(--onos-light-gray);
    border-radius: 0 var(--onos-radius-lg) var(--onos-radius-lg) 0;
    box-shadow: 8px 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1101;
    scrollbar-width: thin;
}

.categories-dropdown .cat-item.has-children:hover > .cat-submenu {
    display: block;
    animation: catSubIn 0.15s ease;
}

@keyframes catSubIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.categories-dropdown .cat-submenu ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.categories-dropdown .cat-submenu ul li a {
    border-left: none;
    padding: 11px 20px;
}

.categories-dropdown .cat-submenu ul li a:hover {
    background: var(--onos-gray);
    border-left: none;
}

.categories-dropdown .cat-ver-todo {
    color: var(--onos-primary) !important;
    font-weight: 600 !important;
}

.cat-dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 1099;
    display: none;
}

.cat-dropdown-overlay.open {
    display: block;
}

/* ============================================
   Offcanvas Categories Sidebar
   ============================================ */
.offcanvas-categorias {
    background-color: var(--onos-dark);
    color: var(--onos-text-light);
    width: 300px !important;
}

.offcanvas-categorias .offcanvas-header {
    border-bottom: 1px solid var(--onos-light-gray);
    padding: 16px 20px;
}

.offcanvas-categorias .offcanvas-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.category-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--onos-text-light);
    border-radius: var(--onos-radius);
    margin: 2px 0;
    transition: var(--onos-transition);
}

.category-sidebar-list li a:hover {
    background-color: var(--onos-primary);
    color: white;
}

.category-sidebar-list li a i:first-child {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Mobile subcategory list */
.category-sidebar-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--onos-radius);
}

.category-sidebar-sublist li a {
    padding: 10px 16px !important;
    font-size: 0.85rem;
    color: var(--onos-text-muted) !important;
}

.category-sidebar-sublist li a:hover {
    color: white !important;
}

.has-sub-toggle .mob-arrow {
    transition: transform 0.2s ease;
}

.has-sub-toggle[aria-expanded="true"] .mob-arrow {
    transform: rotate(180deg);
}


/* ============================================
   Subcategory Cards (Intelaf style)
   ============================================ */
.subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 20px;
    background-color: var(--onos-card-bg);
    border: 1px solid var(--onos-border);
    border-radius: var(--onos-radius-lg);
    transition: var(--onos-transition);
    color: var(--onos-text-dark);
    height: 100%;
}

.subcat-card:hover {
    border-color: var(--onos-primary);
    box-shadow: var(--onos-shadow-hover);
    transform: translateY(-4px);
    color: var(--onos-text-dark);
}

.subcat-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--onos-primary);
    border-radius: 50%;
    margin-bottom: 12px;
    font-size: 1.6rem;
    transition: var(--onos-transition);
}

.subcat-card:hover .subcat-card-icon {
    transform: scale(1.1);
}

.subcat-card-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.subcat-card-action {
    font-size: 0.8rem;
    color: var(--onos-primary);
    font-weight: 500;
}

.subcat-card-action i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.subcat-card:hover .subcat-card-action i {
    transform: translateX(3px);
}

/* "Ver todos" card variant */
.subcat-card-all {
    border-style: dashed;
    background: rgba(13, 110, 253, 0.02);
}

.subcat-card-all .subcat-card-icon {
    background-color: rgba(13, 110, 253, 0.06);
    color: var(--onos-primary);
}

.subcat-card-all:hover {
    border-color: var(--onos-primary);
    border-style: solid;
    background: rgba(13, 110, 253, 0.04);
}

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
    min-height: 60vh;
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--onos-text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--onos-primary);
}

.section-title .view-all {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--onos-primary);
}

.section-title .view-all:hover {
    text-decoration: underline;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    background: var(--onos-card-bg);
    border: 1px solid var(--onos-border);
    border-radius: var(--onos-radius-lg);
    overflow: hidden;
    transition: var(--onos-transition);
    height: 100%;
    position: relative;
}

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

.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-card .product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

/* Product Badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

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

.badge-sale {
    background-color: #dc3545;
    color: white;
}

.badge-coming {
    background-color: #6c757d;
    color: white;
}

.badge-featured {
    background-color: #ffc107;
    color: #212529;
}

/* Product Quick Actions */
.product-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--onos-transition);
    z-index: 2;
}

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

.product-quick-actions .action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--onos-border);
    border-radius: 50%;
    color: #555;
    font-size: 0.9rem;
    transition: var(--onos-transition);
    cursor: pointer;
}

.product-quick-actions .action-btn:hover {
    background-color: var(--onos-primary);
    color: white;
    border-color: var(--onos-primary);
    transform: scale(1.1);
}

.product-quick-actions .action-btn.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.product-quick-actions .action-btn.active:hover {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
}

/* Product Info */
.product-info {
    padding: 14px 16px 16px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--onos-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--onos-text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    color: var(--onos-primary);
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--onos-primary);
}

.product-price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.product-discount {
    font-size: 0.72rem;
    font-weight: 600;
    color: #dc3545;
    background-color: #ffe4e8;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-add-cart {
    width: 100%;
    background-color: var(--onos-primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: var(--onos-radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--onos-transition);
    cursor: pointer;
}

.btn-add-cart:hover {
    background-color: var(--onos-primary-hover);
    color: white;
}

.btn-add-cart i {
    margin-right: 4px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    margin-top: auto;
}

/* Benefits Bar */
.benefits-bar {
    background-color: var(--onos-dark);
    border-bottom: 1px solid var(--onos-light-gray);
    padding: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    justify-content: center;
}

.benefit-item i {
    font-size: 2rem;
    color: var(--onos-primary);
    flex-shrink: 0;
}

.benefit-item h6 {
    color: var(--onos-text-light);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.benefit-item p {
    color: var(--onos-text-muted);
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Footer Main */
.footer-main {
    background-color: var(--onos-dark);
    padding: 40px 0;
    color: var(--onos-text-light);
}

.footer-logo-wrap {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.footer-title {
    color: var(--onos-text-light);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--onos-primary);
}

.footer-subtitle {
    color: var(--onos-text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    padding: 4px 0;
    color: var(--onos-text-muted);
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--onos-primary);
    margin-right: 8px;
    width: 16px;
}

.footer-contact li a {
    color: var(--onos-text-muted);
}

.footer-contact li a:hover {
    color: var(--onos-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    padding: 3px 0;
}

.footer-links li a {
    color: var(--onos-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-links li a::before {
    content: '\203A';
    font-size: 1.2rem;
    line-height: 1;
}

.footer-links li a:hover {
    color: var(--onos-primary);
    padding-left: 4px;
}

.footer-text {
    color: var(--onos-text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-schedule {
    color: var(--onos-text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-schedule i {
    color: var(--onos-primary);
    margin-right: 4px;
}

/* Newsletter */
.footer-newsletter .form-control {
    background-color: var(--onos-gray);
    border: 1px solid var(--onos-light-gray);
    color: var(--onos-text-light);
    font-size: 0.9rem;
}

.footer-newsletter .form-control::placeholder {
    color: var(--onos-text-muted);
}

.footer-newsletter .form-control:focus {
    background-color: var(--onos-gray);
    border-color: var(--onos-primary);
    color: var(--onos-text-light);
    box-shadow: none;
}

.btn-newsletter {
    background-color: var(--onos-primary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    padding: 8px 16px;
    white-space: nowrap;
}

.btn-newsletter:hover {
    background-color: var(--onos-primary-hover);
    color: white;
}

/* Response server message */
.respuestaServer {
    border-radius: var(--onos-radius);
    padding: 0;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s ease-out;
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
}

.respuestaServer.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.respuestaServer.hidden {
    opacity: 0;
    display: none;
}

.todoOK {
    background-color: var(--bs-success);
    color: white;
    padding: 8px 12px;
    border-radius: var(--onos-radius);
}

.nadaOK {
    background-color: var(--bs-danger);
    color: white;
    padding: 8px 12px;
    border-radius: var(--onos-radius);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--onos-gray);
    border-radius: 50%;
    color: var(--onos-text-light);
    font-size: 1.1rem;
    transition: var(--onos-transition);
}

.social-links a:hover {
    background-color: var(--onos-primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--onos-darker);
    padding: 16px 0;
    border-top: 1px solid var(--onos-light-gray);
}

.footer-bottom p {
    color: var(--onos-text-muted);
    font-size: 0.82rem;
    margin: 0;
}

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

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

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--onos-transition);
}

.whatsapp-float:hover {
    background-color: #20bd5a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ============================================
   Go to Top Button
   ============================================ */
.go-top-btn {
    position: fixed;
    bottom: 24px;
    right: -60px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--onos-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--onos-transition);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.go-top-btn:hover {
    background-color: var(--onos-primary-hover);
    transform: translateY(-2px);
}

.go-top-btn.show {
    right: 24px;
    opacity: 1;
    visibility: visible;
}

.go-top-btn.hidden {
    right: -60px;
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Large tablets / small desktops */
@media (max-width: 991px) {
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }

    .footer-main {
        padding: 32px 0;
    }
}

/* Tablets - subcat cards */
@media (max-width: 768px) {
    .subcat-card {
        padding: 20px 12px 16px;
    }

    .subcat-card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

    .subcat-card-name {
        font-size: 0.88rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.7rem;
        padding: 5px 0;
    }

    .top-bar .d-flex {
        gap: 8px;
    }

    .header-row {
        gap: 8px;
        padding: 8px 0;
        justify-content: space-between;
    }

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

    .header-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .header-action-btn {
        padding: 6px;
    }

    .header-action-btn i {
        font-size: 1.2rem;
    }

    .search-form .search-input {
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .btn-search {
        padding: 8px 14px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .product-card .product-info {
        padding: 10px 12px 14px;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .btn-add-cart {
        padding: 7px;
        font-size: 0.82rem;
    }

    .product-card .product-quick-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .benefit-item i {
        font-size: 1.6rem;
    }

    .benefit-item h6 {
        font-size: 0.88rem;
    }

    .benefit-item p {
        font-size: 0.75rem;
    }

    .benefits-bar {
        padding: 20px 0;
    }

    .footer-main {
        padding: 28px 0;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .footer-links li a,
    .footer-contact li,
    .footer-text {
        font-size: 0.85rem;
    }

    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .go-top-btn.show {
        right: 16px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .top-bar {
        font-size: 0.65rem;
        padding: 4px 0;
    }

    .top-bar .d-flex {
        justify-content: center !important;
        gap: 10px;
    }

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

    .header-actions {
        gap: 0;
        flex: 1;
        justify-content: flex-end;
    }

    .header-action-btn {
        padding: 6px;
    }

    .header-action-btn i {
        font-size: 1.15rem;
    }

    .cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.55rem;
        padding: 0 3px;
        line-height: 16px;
    }

    .offcanvas-categorias {
        width: 260px !important;
    }

    .section-title {
        font-size: 1.1rem;
        gap: 6px;
    }

    .section-title i {
        font-size: 1rem;
    }

    .product-card {
        border-radius: var(--onos-radius);
    }

    .product-card .product-img-wrap {
        padding: 10px;
    }

    .product-badge {
        font-size: 0.65rem;
        padding: 3px 7px;
        top: 6px;
        left: 6px;
    }

    .product-card .product-quick-actions .action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .product-card .product-info {
        padding: 8px 10px 12px;
    }

    .product-category {
        font-size: 0.68rem;
    }

    .product-name {
        font-size: 0.8rem;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
    }

    .product-pricing {
        gap: 4px;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-price-old {
        font-size: 0.72rem;
    }

    .product-discount {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    .btn-add-cart {
        padding: 6px;
        font-size: 0.78rem;
        border-radius: 6px;
    }

    .btn-add-cart i {
        margin-right: 2px;
    }

    .benefits-bar {
        padding: 16px 0;
    }

    .benefit-item i {
        font-size: 1.4rem;
    }

    .benefit-item h6 {
        font-size: 0.82rem;
    }

    .benefit-item p {
        font-size: 0.72rem;
    }

    .footer-main {
        padding: 24px 0;
    }

    .footer-logo {
        max-width: 160px;
    }

    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .footer-links li a,
    .footer-contact li {
        font-size: 0.82rem;
        padding: 2px 0;
    }

    .footer-schedule {
        font-size: 0.78rem;
    }

    .footer-newsletter .form-control {
        font-size: 0.82rem;
    }

    .btn-newsletter {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    .whatsapp-float {
        bottom: 12px;
        left: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .go-top-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .go-top-btn.show {
        right: 12px;
        bottom: 12px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .header-logo img {
        width: 60px;
    }

    .header-action-btn {
        padding: 4px;
    }

    .product-card .product-info {
        padding: 6px 8px 10px;
    }

    .product-name {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: 0.88rem;
    }

    .btn-add-cart {
        font-size: 0.72rem;
        padding: 5px;
    }
}

/* ============================================
   Cart Toast Notifications
   ============================================ */
.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: var(--onos-radius);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.cart-toast.show {
    transform: translateX(0);
}

.cart-toast-success {
    background: #198754;
    color: white;
}

.cart-toast-error {
    background: #dc3545;
    color: white;
}

/* ============================================
   Global Action Loader
   ============================================ */
.action-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.action-loader-box {
    background: white;
    border-radius: var(--onos-radius-lg);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.action-loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--onos-border);
    border-top-color: var(--onos-primary);
    border-radius: 50%;
    animation: loaderSpin 0.7s linear infinite;
}

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

.action-loader-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--onos-text-dark);
}

/* Button inline spinner (for buttons that show loading state) */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: loaderSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ============================================
   Email Verification Banner
   ============================================ */
.email-verify-banner {
    background: #fff3cd;
    color: #664d03;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #ffecb5;
}

.email-verify-banner i {
    color: #cc8800;
}

.btn-verify-resend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #664d03;
    color: white;
    padding: 5px 14px;
    border-radius: var(--onos-radius);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--onos-transition);
    white-space: nowrap;
}

.btn-verify-resend:hover {
    background: #4a3802;
    color: white;
}

/* ============================================
   Quick View Modal
   ============================================ */
.quick-view-content {
    border: none;
    border-radius: var(--onos-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.quick-view-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0.8;
    padding: 0;
}

.quick-view-close:hover {
    opacity: 1;
}

.quick-view-img {
    position: relative;
    background: var(--onos-body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
}

.quick-view-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 420px;
    padding: 20px;
}

.qv-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--onos-radius);
    font-size: 0.75rem;
    font-weight: 700;
}

.quick-view-info {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.qv-category {
    font-size: 0.78rem;
    color: var(--onos-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.qv-name {
    font-weight: 700;
    color: var(--onos-text-dark);
    font-size: 1.15rem;
    margin-bottom: 14px;
    line-height: 1.3;
}

.qv-pricing {
    margin-bottom: 12px;
}

.qv-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--onos-primary);
}

.qv-price-old {
    font-size: 0.95rem;
    color: #adb5bd;
    text-decoration: line-through;
    margin-left: 8px;
}

.qv-discount {
    font-size: 0.78rem;
    background: #fff0f0;
    color: #dc3545;
    padding: 2px 8px;
    border-radius: var(--onos-radius);
    font-weight: 700;
    margin-left: 8px;
}

.qv-promo-tag {
    font-size: 0.75rem;
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 4px;
}

.qv-stock {
    margin-bottom: 16px;
}

.qv-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--onos-radius);
}

.qv-stock-available {
    background: #d1e7dd;
    color: #0f5132;
}

.qv-stock-out {
    background: #f8d7da;
    color: #842029;
}

.qv-stock-fabricado {
    background: #cfe2ff;
    color: #084298;
}

.qv-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

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

.qv-qty .qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--onos-text-dark);
    transition: var(--onos-transition);
}

.qv-qty .qty-btn:hover {
    background: var(--onos-body-bg);
}

.qv-qty input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--onos-border);
    border-right: 1px solid var(--onos-border);
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    -moz-appearance: textfield;
}

.qv-qty input::-webkit-outer-spin-button,
.qv-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qv-btn-cart {
    flex: 1;
    min-width: 160px;
    padding: 8px 16px;
    background: var(--onos-primary);
    color: #fff;
    border: none;
    border-radius: var(--onos-radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--onos-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qv-btn-cart:hover {
    background: #0b5ed7;
}

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

.qv-btn-fav {
    width: 38px;
    height: 38px;
    border: 1px solid var(--onos-border);
    border-radius: var(--onos-radius);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6c757d;
    transition: var(--onos-transition);
}

.qv-btn-fav:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
}

.qv-btn-fav.active {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
}

.qv-btn-fav.active i::before {
    content: "\f415";
}

.qv-view-full {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--onos-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--onos-border);
}

.qv-view-full:hover {
    text-decoration: underline;
}

/* Quick View loading state */
.qv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    width: 100%;
}

.qv-loading .action-loader-spinner {
    width: 36px;
    height: 36px;
}

@media (max-width: 767.98px) {
    .quick-view-img {
        min-height: 250px;
    }
    .quick-view-info {
        padding: 20px 16px;
    }
    .qv-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .qv-qty {
        justify-content: center;
    }
    .qv-btn-cart {
        min-width: auto;
    }
}
