body {
    background: #F0F6FA;
    color: #415F73;
    margin: 0;
    scroll-behavior: smooth;
    padding-top: 56px;
}

main {
    background: linear-gradient(135deg, #E1EDF5 0%, #F0F6FA 100%);
    min-height: calc(100vh - 56px);
}

section[id] {
    scroll-margin-top: 88px; 
}

.inicio-section {
    border-radius: 12px;
    padding: 28px 20px;
    margin: 8px 0 20px 0;
    box-shadow: 0 6px 20px rgba(42, 68, 84, 0.06);
}

.inicio-inner {
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.inicio-title {
    font-size: 80px;
    color: #2A4454;
    margin: 0 0 14px 0;
    text-align: center;
}

.inicio-desc {
    font-size: 18px;
    color: #415F73;
    margin: 0 0 12px 0;
    font-weight: 400;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    text-align: justify;
}

.inicio-ctas {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary,
.btn-ghost {
    display: inline-block;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary {
    background: #88B0CB;
    color: #FFFFFF;
}

.btn-primary:hover { 
    background: #6B94B0; 
}

.btn-ghost {
    background: transparent;
    color: #415F73;
    border: 1px solid #D6E6F0;
}

.btn-ghost:hover { 
    background: #E1EDF5; 
}

.finalize-order-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #88B0CB; 
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.finalize-order-btn:hover { background: #6B94B0; }

.vaciar-carrito-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #E09A9A; /* Rojo pastel suave para no romper la armonía */
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: 700; 
    cursor: pointer;
    margin-top: 10px;
}

.vaciar-carrito-btn:hover { background: #C97D7D; }

#enviarWhatsAppBtn, #cerrarModalBtn {
    padding: 10px 16px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#enviarWhatsAppBtn {
    background: #88B0CB;
    color: white;
}

#cerrarModalBtn {
    background: #AEC5D6;
    color: white;
}

@media (max-width: 768px) {
    .inicio-inner { padding: 0 8px; }
    .inicio-title { font-size: 1.6rem; }
    .inicio-desc { font-size: 0.95rem; }
    .main-layout { padding: 12px; }
    body { padding-top: 64px; }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(240, 246, 250, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.6rem 1rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 8px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2A4454;
    white-space: nowrap;
}

nav {
    flex: 1;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.nav-links a {
    color: #415F73;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-links a:hover {
    background-color: #88B0CB;
    color: white;
}

.search-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    min-width: 260px;
}

.result-count {
    font-size: 0.9rem;
    color: #415F73;
    margin-left: 0.5rem;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #D6E6F0;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 1rem;
    background: #FFFFFF;
    transition: border-color 0.2s;
}

.search-bar input[type="text"]:focus {
    border-color: #88B0CB;
}

.search-bar button {
    padding: 10px 24px;
    border: none;
    background: #88B0CB;
    color: white;
    font-size: 1rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: #6B94B0;
}

.highlight {
    background: #E1EDF5;
    color: #2A4454;
}

.text-highlight {
    background-color: #E1EDF5;
    padding: 2px 0;
    border-radius: 2px;
    box-shadow: 0 0 0 2px #E1EDF5;
}

.search-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.search-options label {
    font-size: 0.9rem;
    color: #415F73;
}

.result-count {
    font-weight: 600;
    color: #2A4454;
}

header {
    transition: padding 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

header.compact {
    padding: 0.25rem 0.8rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.header-top {
    transition: gap 200ms ease, margin-top 200ms ease, align-items 200ms ease;
}

header.compact .header-top {
    gap: 0.75rem;
    margin-top: 2px;
    align-items: center;
}

.site-title {
    transition: font-size 200ms ease, color 200ms ease;
}

header.compact .site-title {
    font-size: 1rem;
}

.sijulio { transition: opacity 150ms ease, font-size 150ms ease; }
header.compact .sijulio { opacity: 0; height: 0; overflow: hidden; font-size: 0; }

.search-bar, .search-bar input, .search-bar button {
    transition: all 200ms ease;
}

header.compact .search-bar {
    min-width: 180px;
}

header.compact .search-bar input[type="text"] {
    padding: 6px 10px;
    font-size: 0.95rem;
    border-radius: 20px 0 0 20px;
}

header.compact .search-bar button {
    padding: 6px 12px;
    font-size: 0.95rem;
    border-radius: 0 20px 20px 0;
}

@media (max-width: 768px) {
    header.compact .search-bar { min-width: 140px; }
    header.compact .site-title { font-size: 0.95rem; }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 16px 0;
    justify-items: center;
    align-items: start;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #415F73;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(42, 68, 84, 0.05);
    margin: 20px 0;
    width: 100%;
}

.products-area {
    position: relative;
    display: block;
}

.product-card {
    border: 1px solid #D6E6F0;
    padding: 12px 12px 50px 12px;
    border-radius: 8px;
    background: #FFFFFF;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 4px 12px rgba(42, 68, 84, 0.04);
}

.product-card.out-of-stock {
    opacity: 0.65;
    position: relative;
}

.product-card .add-to-cart {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #88B0CB;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.product-card .add-to-cart.request-consulta {
    background: #6B94B0; 
}
.product-card .add-to-cart.request-consulta:hover {
    background: #4B738F;
}

.product-card .add-to-cart[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card .quantity-select {
    position: absolute;
    bottom: 50px;
    right: 12px;
    background: white;
    border: 1px solid #D6E6F0;
    border-radius: 4px;
    padding: 4px;
}

.product-card.out-of-stock .out-of-stock {
    color: #E09A9A;
    font-weight: 700;
    margin-top: 8px;
}

.product-name {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: #2A4454;
}

.product-price {
    color: #2A4454;
    font-weight: 700;
    margin: 6px 0;
}

.product-brand,
.product-cats {
    font-size: 0.85rem;
    color: #6B94B0;
    margin: 2px 0;
}

.image-disclaimer {
    font-size: 0.75rem;
    color: #92ADC2;
    margin: 4px 0 8px 0;
    font-style: italic;
    text-align: center;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    padding: 16px;
}

.pagination-button {
    background: #88B0CB;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.pagination-button:hover {
    background: #6B94B0;
    transform: translateY(-2px);
}

.pagination-button:disabled {
    background: #D6E6F0;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn,
.show-all-btn,
.show-less-btn {
    background: #88B0CB;
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    margin: 6px 8px;
    box-shadow: 0 6px 18px rgba(136, 176, 203, 0.2);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    display: inline-block;
}

.load-more-btn:hover,
.show-all-btn:hover,
.show-less-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(136, 176, 203, 0.3);
    background: #6B94B0;
}

.load-more-btn:active,
.show-all-btn:active,
.show-less-btn:active {
    transform: translateY(0);
}

.show-less-btn {
    background: #F0F6FA;
    color: #415F73;
    box-shadow: none;
    border: 1px solid #D6E6F0;
}

@media (max-width: 480px) {
    .load-more-btn, .show-all-btn, .show-less-btn {
        width: 90%;
        padding: 12px 14px;
        border-radius: 10px;
        display: block;
        margin: 8px auto;
    }
}

.cart-aside {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 0;
    display: none;
    flex-direction: column;
    z-index: 220;
    overflow: hidden;
    transition: width 200ms ease, box-shadow 200ms ease;
}

.cart-aside.open {
    width: 100vw;
    display: flex;
}

.cart-aside .cart-header {
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #E1EDF5;
    flex-shrink: 0;
}

.cart-aside .cart-list {
    padding: 6px 14px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none;
}

.cart-overlay[aria-hidden="false"] {
    display: block;
}

.cart-tab {
    position: fixed;
    right: 8px;
    bottom: 8px;
    top: auto;
    transform: none;
    z-index: 99999 !important;
    background: #88B0CB;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms ease;
}

.cart-tab .cart-tab-count {
    position: absolute;
    right: 4px;
    top: 4px;
    background: #E09A9A;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.85rem;
    display: none;
}

.cart-tab[aria-expanded="true"] {
    background: #6B94B0;
}

.cart-tab.show-count .cart-tab-count {
    display: inline-block;
}

.cart-tab[aria-expanded="true"],
.cart-aside.open~.cart-tab {
    display: none !important;
}

.cart-badge {
    background: #88B0CB;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.85rem;
    margin-left: auto;
}

.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    max-height: 34vh;
}

.cart-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px;
    border-bottom: 1px dashed #E1EDF5;
    font-size: 0.95rem;
    color: #415F73;
}

.cart-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 12px;
    line-height: 1;
    border-radius: 4px;
    color: #415F73;
    transition: all 0.2s;
}

.cart-close:hover {
    background-color: #E09A9A;
    color: white;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.cart-footer {
    padding: 14px;
    background: #fff;
    border-top: 1px solid #E1EDF5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.cart-total {
    font-weight: 700;
    margin-bottom: 8px;
    text-align: right;
    width: 100%;
    color: #2A4454;
}

.cart-footer .cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    width: 100%;
}

.cart-action {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #D6E6F0;
    background: #F0F6FA;
    color: #415F73;
    cursor: pointer;
    white-space: nowrap;
    min-width: calc(50% - 4px);
}

.cart-action.primary {
    background: #88B0CB;
    color: #FFFFFF;
    border-color: #88B0CB;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 68, 84, 0.4);
}

.modal-panel {
    position: absolute;
    left: 50%;
    top: 70px;
    transform: translateX(-50%);
    width: 92%;
    max-width: 720px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #E1EDF5;
    color: #2A4454;
}

.modal-body {
    padding: 12px 16px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.modal-product-body { display:flex; gap:12px; align-items:flex-start; }
.modal-carousel { flex:0 0 320px; margin-right:12px; max-width:320px }
.carousel-main { position:relative }
.carousel-main img { width:100%; height:auto; border-radius:8px; object-fit:cover; display:block }
.carousel-prev, .carousel-next {
    position:absolute; top:50%; transform:translateY(-50%);
    z-index:2; background:rgba(42, 68, 84, 0.6); color:white; border:none; border-radius:50%; width:32px; height:32px; cursor:pointer;
}
.carousel-prev { left:6px }
.carousel-next { right:6px }
.carousel-thumbs { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap }
.carousel-thumbs .thumb { width:60px; height:60px; object-fit:cover; border-radius:4px; cursor:pointer; border:2px solid transparent; transition: border-color 0.15s }
.carousel-thumbs .thumb.active { border-color: #88B0CB }

.modal-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    justify-content: flex-end;
    border-top: 1px solid #E1EDF5;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #415F73;
}

.modal-cart-list .modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    border-bottom: 1px dashed #E1EDF5;
}

.modal-cart-list .modal-item .controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.modal-cart-list .modal-item button {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #D6E6F0;
    background: #FFFFFF;
    cursor: pointer;
}

.modal-total {
    padding: 8px 6px;
    text-align: right;
    font-weight: 700;
    color: #2A4454;
}

#footer {
    background: linear-gradient(180deg, #E1EDF5, #F0F6FA);
    padding: 32px 20px 0; 
    position: relative;
    overflow: hidden; 
    z-index: 1100;
}

.footer-featured-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.footer-featured-text h4 {
    font-size: 1.3rem;
    color: #2A4454;
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

.footer-legal {
    text-align: center;
    max-width: 500px;
    margin: 10px auto 0 auto;
    padding: 15px;
    position: relative;
    z-index: 10;
}

.footer-legal-text {
    font-size: 0.95rem;
    color: #415F73;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.footer-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 180px;
}

#footer.contfooter, #footer .footer-grid {
    display: flex !important;
    flex-direction: row;
}
.footer-contact {
    flex: 1 1 60%;
}
.footer-location {
    flex: 0 0 35%;
}
.footer-grid p {
    font-size: 1.05rem; 
    margin: 8px 0;
    color: #415F73;
}
.footer-grid a {
    color: #6B94B0;
    text-decoration: underline;
}
.footer-grid strong {
    font-weight: 800;
    margin-right: 6px;
}
@media (max-width: 760px) {
    .footer-grid { flex-direction: column; gap: 16px; }
    .footer-location { flex-basis: auto; }
}

#footer .footer-contact,
#footer .footer-social,
#footer .footer-map-col {
    flex: 1 1 0;
}

#footer .footer-contact,
#footer .footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

#footer .footer-map-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer .footer-map,
#footer .footer-map-col iframe {
    width: 100%;
    height: 280px;
    max-height: 420px;
    border: 0;
    display: block;
}

#footer .footer-social img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

.footer-img-left,
.footer-img-right {
    position: absolute;
    bottom: 0;
    width: 500px;
    height: auto;
    pointer-events: none;
}

.footer-img-left { left: 0; }
.footer-img-right { right: 0; }

@media (max-width: 760px) {
    .footer-img-left,
    .footer-img-right { display: none; }
}

@media (max-width: 1024px) {
    #footer .footer-location iframe { height: 280px; }
}

@media (max-width: 900px) {
    .footer-grid { gap: 24px; }
    #footer .footer-map, #footer .footer-map-col iframe { height: 240px; }
    #footer .footer-social img { max-height: 240px; }
}

@media (max-width: 600px) {
    .footer-grid { flex-direction: column; }
    #footer .footer-map, #footer .footer-map-col iframe { height: 200px; }
    #footer .footer-social img { max-height: 200px; }
}

.hide-oos-wrap {
    margin: 8px 24px;
    display: flex;
    justify-content: flex-end;
}

.hide-oos-btn {
    background: #FFFFFF;
    border: 1px solid #D6E6F0;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #415F73;
}

.hide-oos-btn.active {
    background: #88B0CB;
    color: #FFFFFF;
    border-color: #6B94B0;
}

.main-layout {
    display: flex;
    gap: 24px;
    padding: 20px;
}

.left-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #FFFFFF;
    border: 1px solid #E1EDF5;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    transform: translateX(-320px);
    transition: transform 280ms ease;
    z-index: 240; 
}

.main-layout.show-sidebar .left-sidebar {
    transform: translateX(0);
}

.sidebar-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.categories-list,
.brands-list {
    overflow-y: auto;
    max-height: calc((100vh - 132px) / 2);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.categories-list.pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.categories-list::after,
.brands-list::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 8px;
    width: 8px;
    height: calc(100% - 16px);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    border-radius: 6px;
}

.sidebar-content h3 {
    color: #2A4454;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E1EDF5;
}

.filter-section h4 {
    color: #415F73;
    margin: 0 0 12px 0;
    font-size: 1em;
}

.reset-filter {
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    background: none;
    border: 1px solid #D6E6F0;
    border-radius: 4px;
    color: #415F73;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-filter:hover {
    background: #E1EDF5;
    color: #2A4454;
}

.products-section {
    flex: 1;
    margin-left: 0;
    position: relative;
    overflow: visible;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.products-section::before {
    content: "productos productos productos productos productos productos productos productos productos productos productos" "\A" "productos productos productos productos productos productos productos productos productos productos productos" "\A" "productos productos productos productos productos productos productos productos productos productos productos";
    position: absolute;
    left: 0;
    top: 8px;
    font-size: clamp(24px, 4.5vw, 80px);
    color: rgba(136, 176, 203, 0.08); /* Marca de agua sutil en celeste */
    font-weight: 900;
    letter-spacing: 6px;
    z-index: 0;
    pointer-events: none;
    white-space: pre; 
    text-transform: lowercase;
    width: 100%;
    overflow: hidden;
    line-height: 1;
    max-height: calc(3 * 1em); 
}

.products-header h2 {
    margin: 0;
    color: #2A4454;
}

.title-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sort-wrap label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #415F73;
}

.sort-wrap select {
    padding: 6px 8px;
    border: 1px solid #D6E6F0;
    border-radius: 6px;
    background: #FFFFFF;
    font-size: 0.9rem;
    color: #415F73;
}

@media (max-width: 1024px) {
    .left-sidebar {
        position: static;
        width: 200px;
    }
    .products-section {
        margin-left: 0;
    }
}

.categories-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc((100vh - 160px) / 2);
    padding: 8px;
    position: relative;
}

.categories-list.pills {
    flex-direction: column;
    flex-wrap: nowrap;
}

.cat-btn {
    border: 1px solid #D6E6F0;
    background: #FFFFFF;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
    font-weight: 700;
    color: #415F73;
    white-space: normal;
}

.categories-list::-webkit-scrollbar {
    width: 8px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: rgba(136, 176, 203, 0.2);
    border-radius: 4px;
}

.categories-list,
.brands-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    position: relative;
}

.category-btn,
.brand-btn {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 1px solid #D6E6F0;
    background: #FFFFFF;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
    color: #415F73;
}

.brand-btn:hover, .category-btn:hover {
    background: #E1EDF5;
}

.category-btn.active,
.brand-btn.active {
    background: #88B0CB;
    color: #FFFFFF;
    border-color: #6B94B0;
}

.categories-list::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 12px;
    width: 28px;
    height: calc(100% - 24px);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    border-radius: 6px;
}

.cat-btn {
    border: 1px solid #D6E6F0;
    background: #FFFFFF;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
    font-weight: 700;
    color: #415F73;
    white-space: nowrap;
}

.cat-btn:hover {
    background: #E1EDF5;
    border-color: #88B0CB;
}

.cat-btn .count {
    background: rgba(136, 176, 203, 0.15);
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #2A4454;
}

.categories-list::-webkit-scrollbar {
    height: 8px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: rgba(136, 176, 203, 0.2);
    border-radius: 4px;
}

.products-area.collapsed .categories-sidebar .cat-btn {
    padding: 6px 10px;
    min-width: 64px;
    font-size: 0.92rem;
}

.contfooter {
    display: grid;
}

.main-layout.show-sidebar .products-grid,
.main-layout.show-sidebar .products-header,
.main-layout.show-sidebar .contfooter {
    margin-left: 270px;
}

.products-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}
.product-card {
    height: 100%;
}

.sijulio{
    color: #415F73;
    margin-top: 1px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#rightPanel {
    width: 250px;
    flex-shrink: 0;
    position: fixed;
    right: 20px;
    background: #FFFFFF;
    border: 1px solid #D6E6F0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    transform: translateX(320px);
    transition: transform 280ms ease;
    z-index: 999;
}

#rightPanel .sidebar-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

#rightPanel .sidebar-content h3 {
    color: #2A4454;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E1EDF5;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #415F73;
}

.quantity-btn {
    background: #88B0CB;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 4px;
}

.quantity-btn:hover {
    background: #6B94B0;
}

.filters-toggle-tab {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1000;
    background: #88B0CB;
    color: #FFFFFF;
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    cursor: pointer;
    font-weight: 700;
}

.main-layout.show-sidebar .filters-toggle-tab {
    display: none;
}

.left-sidebar { position: fixed; }
.left-sidebar .filters-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #415F73;
    z-index: 1200;
}

.left-sidebar .sidebar-content { padding-top: 40px; }

.left-sidebar.hide-on-footer {
    transform: translateX(-320px) !important;
    pointer-events: none;
    opacity: 0;
}

#footer {
    position: relative;
    z-index: 9999;
}

#panelToggleBtn {
    z-index: 99999 !important;
}