@media (min-width: 1500px) {
    .container {
        width: 100%;
        max-width: 1500px;
        box-sizing: border-box;
    }
}

.search-product-numbers {
    display: none;
}

@media (min-width: 768px) {
    .header-top .search-widget form input[type="text"] {
        border: 1px solid #e1e1e1;
        border-left: 1px solid #e1e1e1;
        padding: 11px 15px;
        padding-right: 35px;
    }
}

#content-wrapper a{
    text-transform: none !important;
}

img.logo {
    width: 365px;
}

.page-product #wrapper .container .row {
    margin-top: 60px;
}

.page-product .images-container {
    display: flex;
    flex-direction: row-reverse;
}

.page-product ul.product-images.js-qv-product-images {
    display: flex;
    flex-direction: column;
}

.page-product #wrapper .breadcrumb {
    text-align: center;
}

.page-product li.label.out_of_stock {
    display: none;
}

.page-product .product-cover img {
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    border: 0;
}

.page-product#product .product-price {
    color: #BB9551;
}

.page-product#product .product-description {
    padding-top: 20px;
}

.page-product .product-description p {
    text-align: left !important;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 26px;
}

.page-product .product-description h3 {
    text-align: left !important;
    margin-bottom: 30px;
}

#products .product-title, .featured-products .product-title, .product-accessories .product-title, .product-item .product-miniature .product-title {
    text-align: center;
}

.page-product .product-cover {
    width: min(100vw, 100%);
}

.product-images > li.thumb-container > .thumb.selected, .product-images > li.thumb-container > .thumb:hover {
    border: 0;
}

.product-images > li.thumb-container > .thumb.selected, .product-images > li.thumb-container > .thumb:hover {
    border: 0;
}

.product-images > li.thumb-container > .thumb {
    border: 0;
}

.featured-products h2 span {
    text-transform: uppercase;
}

.tax-shipping-delivery-label {
    display: none;
}

.social-sharing {
    display: none;
}

.product-extra-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-attachments {
    display: flex;
}

.product-extra-buttons a.btn.btn-secondary {
    text-transform: none;
    font-weight: 400;
    display: flex;
    align-items: flex-end;
    background-color: transparent;
}

.product-cover .layer .zoom-in {
    margin-right: 100px;
}

.product-extra-buttons a.btn.btn-secondary img {
    margin-right: 10px;
}

#module-author_page-author #wrapper .container .row {
    display: flex;
}

#module-author_page-author .sidebar {
    max-width: 300px;
    margin-left: 15px;
}

#module-author_page-author div#content-wrapper {
    max-width: 1200px;
}

.content {
    display: flex;
    align-items: center;
    gap: 30px;
}

#module-author_page-author #wrapper .breadcrumb {
    text-align: center;
}

.authorBooksContainer {
    margin-top: 30px;
}

.authorBooksContainer h2 {
    text-align: center;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.authorBooksContainer {
    margin-top: 80px;
}

/* Estructura de las tarjetas de producto con altura uniforme */
.product-item {
    display: flex;
    height: 100%;
}

.product-item .product-miniature {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.product-item .thumbnail-container {
    flex-shrink: 0;
}

#products .product-description,
.featured-products .product-description,
.product-accessories .product-description,
.product-item .product-miniature .product-description {
    position: relative;
    width: auto;
    margin: 0;
    z-index: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-start;
}

/* Título del producto - mostrar título completo sin cortar */
.product-item .product-miniature .product-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
    min-height: 60px;
}

.product-item .product-miniature .product-title a {
    font-size: 19px;
    font-weight: 500;
    text-transform: none !important;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.4;
    display: block;
}

/* Precio alineado */
.product-price-and-shipping {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

span.price {
    font-size: 19px;
}

.display-mode {
    display: none !important;
}

li.label.out_of_stock {
    display: none;
}

.author-item.selected a {
    font-weight: 600;
}

.author-item.selected {
    background: #d2d8e4;
}

#module-author_page-author #wrapper .container .row {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

#module-author_page-author #wrapper .container .products.row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 30px;
}

li.label.new {
    display: none;
}

/* Ocultar campos no deseados en formularios de cliente */
.form-group[data-name="id_gender"],
input[name="id_gender"],
#field-id_gender,
.js-child-focus:has(input[name="id_gender"]),
.form-group:has(#field-id_gender-1),
.form-group:has(#field-id_gender-2) {
    display: none !important;
}

input[name="optin"],
.form-group:has(input[name="optin"]),
.js-child-focus:has(input[name="optin"]) {
    display: none !important;
}

input[name="customer_privacy"],
.form-group:has(input[name="customer_privacy"]),
.js-child-focus:has(input[name="customer_privacy"]) {
    display: none !important;
}


@media (min-width: 769px) {
    .footer-top {
        display: flex;
        justify-content: center;
    }

    .storeConfiguration {
        padding: 0px 10px 0px 0px;
        width: 25%;
        text-align: center;
    }
}

.storeConfiguration p {
    margin-bottom: 20px;
}

.storeConfiguration p img {
    margin-right: 5px;
}

.storeConfiguration p a {
    text-transform: none;
    color: #bb9551;
}

.socialLinks {
    display: flex;
    gap: 30px;
    margin-left: 5px;
    justify-content: center;
}

.socialLinks a i {
    font-size: 20px;
}

.socialLinks img {
    width: 16px;
    height: 16px;
}


div#carousel {
    display: block;
}

div#carouselMobile {
    display: none;
}

@media (max-width: 767px) {

    div#carousel {
        display: none;
    }

    div#carouselMobile {
        display: block;
    }


}

.img-block a img {
    width: 100%;
    height: auto;
}

#blockcart-modal .cart-content .cart-content-btn .btn-primary {
    background-color: #BB9551;
}

.cart-content-btn {
    margin-top: 20px;
}

#blockcart-modal .modal-dialog .modal-content .modal-header {
    background: black;
    border: 1px solid white;
}

#blockcart-modal .modal-header .close .material-icons {
    color: white;
}

.blockreassurance_product p {
    font-size: 12px;
    color: #4b4b4b !important;
}

.blockreassurance_product div {
    margin-bottom: 10px;
}

.blockreassurance_product .item-product {
    height: 45px;
    margin-right: 10px;
}

.blockreassurance_product path#color {
    fill: #000000;
}

.blockreassurance_product path#fill {
    fill: gray;
}

@media (max-width: 768px) {
    #module-author_page-author #wrapper .container .row {
        display: flex;
        flex-direction: column;
    }

    #module-author_page-author .authorPage .content {
        flex-direction: column;
    }

    .author-list {
        display: none;
    }

    #module-author_page-author #wrapper .container .products.row {
        flex-wrap: nowrap;
    }

}

@media (max-width: 426px) {
    #module-author_page-author .container .authorPage .content {
        display: flex;
        align-items: center;
        gap: 30px;
        flex-direction: column;
    }
}

.product-features > dl.data-sheet dd.value, .product-features > dl.data-sheet dt.name {
    text-transform: none;
}

#product-availability {
    display: none;
}

.row.sort-by-row {
    display: none;
}

section#content {
    z-index: 0;
}

.new-product-slider .owl-controls.clickable {
    display: none !important;
}

.new-product-slider .owl-wrapper {
    display: flex;
    width: 100vw !important;
    flex-wrap: wrap;
    transform: none !important;
}

.new-product-slider.owl-carousel .owl-item {
    margin-bottom: 30px;
}

footer.form-footer.text-sm-center.clearfix {
    text-align: center;
}

@media (max-width: 479px) {
    .col-md-6.col-xs-6.qty {
        padding-right: 0px;
        padding-left: 0px;
    }
}

.cart-grid-body a.label:hover {
    color: #BB9551;
}

@media (max-width: 479px) {
    .checkout.cart-detailed-actions.card-block a.btn.btn-primary {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #header .logo {
        width: 50%;
    }
}

.footer-links > li > a {
    text-transform: none;
}

#footer #block_myaccount_infos {
    display: none;
}

@media (min-width: 768px) {
    #header .header-msg-block .message span {
        text-transform: none;
    }
}

@media (min-width: 768px) {
    #header a {
        text-transform: none;
    }
}

.brand-section.ht-home-brands.top-margin.bottom-margin {
    display: none;
}

.product-comments {
    display: none;
}

/* Newsletter module - black background */
.email_subscription.block_newsletter {
    background-color: #000000;
    padding: 20px;
}

.email_subscription.block_newsletter h4 {
    color: #ffffff;
}

.email_subscription.block_newsletter input[type="email"] {
    color: #000000;
}

.email_subscription.block_newsletter p {
    color: #ffffff;
}

/* Newsletter conditions checkbox */
.email_subscription.block_newsletter .newsletter-conditions {
    margin: 15px 0;
}

.email_subscription.block_newsletter .custom-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    user-select: none;
}

.email_subscription.block_newsletter .custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.email_subscription.block_newsletter .custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.email_subscription.block_newsletter .custom-checkbox:hover .checkmark {
    background-color: #f0f0f0;
}

.email_subscription.block_newsletter .custom-checkbox input:checked ~ .checkmark {
    background-color: #000000;
    border-color: #ffffff;
}

.email_subscription.block_newsletter .custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.email_subscription.block_newsletter .custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.email_subscription.block_newsletter .custom-checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.email_subscription.block_newsletter .condition-text {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
}

.email_subscription.block_newsletter .condition-text a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.email_subscription.block_newsletter .condition-text a:hover {
    opacity: 0.8;
}

/* Error state for unchecked checkbox */
.email_subscription.block_newsletter .custom-checkbox input:invalid {
    box-shadow: none;
}

.email_subscription.block_newsletter form:invalid .custom-checkbox .checkmark {
    border-color: #ff6b6b;
}

#footer .footer-before {
    background: #141414;
}

#footer .footer-socials .content-block > ul > li > a {
    background: #414141;
}

#footer .footer-socials .content-block > ul > li > a:hover {
    background: #333333;
}

#footer .newsletter-block .block.newsletter .field.newsletter .actions input:hover {
    color: #414141;
}

label.psgdpr_consent_message {
    color: white;
    padding-top: 15px;
}

i.material-icons.rtl-no-flip.checkbox-checked.psgdpr_consent_icon {
    color: white;
}

.custom-checkbox input[type=checkbox] + span {
    border-color: white;
}

.custom-checkbox a {
    color: white;
    font-weight: 600;
}

button.wishlist-button-add {
    display: none;
}

.copyright-block {
    display: none;
}

.block_newsletter form input {
    height: 60px;
    box-shadow: none;
}

.advertising-block {
    display: none;
}

@media (max-width: 767px) {
    .page-product .product-cover {
        width: min(100vw, 100%);
        display: flex;
        justify-content: center;
    }

    .product-features > dl.data-sheet dd.value, .product-features > dl.data-sheet dt.name {
        text-transform: none;
        flex: 1 0 80%;
    }

    dd.value {
        background: #e5e5e5 !important;
        margin-bottom: 20px !important;
    }

    dt.name {
        font-weight: 600 !important;
    }
}

.product-actions .add-to-cart {
    padding-top: 8px;
    padding-left: 75px;
    padding-right: 75px;
}

/* ===============================================
   Quantity + Buy Button - Always same row
   =============================================== */

/* Keep quantity selector and buy button on same row */
.product-quantity.clearfix {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.product-quantity .qty {
    flex: 0 1 auto;
    min-width: 0;
}

.product-quantity .add {
    flex: 0 1 auto;
    min-width: 0;
}

/* Reduce button padding on smaller screens to ensure it fits */
@media (max-width: 991px) {
    .product-quantity .add-to-cart {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 767px) {
    .product-quantity .add-to-cart {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 479px) {
    .product-quantity .add-to-cart {
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: nowrap;
    }
}


/* ===============================================
   Infinite Scroll Styles
   =============================================== */

/* Loading indicator */
.infinite-scroll-loader {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
}

.infinite-scroll-loader .loader-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.infinite-scroll-loader .loader-spinner i {
    font-size: 32px;
    color: #0066cc;
}

.infinite-scroll-loader .loader-spinner p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Error state */
.infinite-scroll-loader .loader-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #dc3545;
}

.infinite-scroll-loader .loader-error i {
    font-size: 32px;
}

.infinite-scroll-loader .loader-error a {
    color: #0066cc;
    text-decoration: underline;
}

/* End message */
.infinite-scroll-end-message {
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.infinite-scroll-end-message p {
    margin: 0;
    color: #28a745;
    font-size: 16px;
    font-weight: 500;
}

.infinite-scroll-end-message i {
    margin-right: 8px;
    font-size: 18px;
}

/* Hide original pagination when infinite scroll is active */
.pagination {
    display: none !important;
}

/* Smooth fade-in animation for new products */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products > .product-item {
    animation: fadeInUp 0.4s ease-out;
}

/* Loading state for product list */
.infinite-scroll-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .infinite-scroll-loader .loader-spinner i {
        font-size: 24px;
    }
    
    .infinite-scroll-loader .loader-spinner p {
        font-size: 14px;
    }
    
    .infinite-scroll-end-message p {
        font-size: 14px;
    }
}

/* ===============================================
   Sticky Sidebar (Category Menu)
   =============================================== */

/* Ensure left column has relative positioning for absolute child */
#left-column {
    position: relative;
}

/* Smooth transitions for sticky sidebar */
.block-categories {
    transition: all 0.3s ease-out;
    min-width: 345px;
}

/* When sidebar is sticky/fixed, add shadow for depth */
.block-categories[style*="position: fixed"],
.block-categories[style*="position: absolute"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Prevent layout shifts */
@media (min-width: 992px) {
    #left-column {
        min-height: 100%;
    }
}

/* Disable sticky on mobile */
@media (max-width: 991px) {
    .block-categories {
        position: static !important;
        width: auto !important;
        top: auto !important;
    }
}

.distribucion-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.distribucion-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px solid #141414;
}

.distribucion-header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.region-section {
    margin-bottom: 60px;
}

.region-title {
    background: #141414;
    color: white;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    font-size: 1.8em;
    font-weight: bold;
}

.distribuidores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.distribuidor-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.distribuidor-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.pais-nombre {
    color: #141414;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #141414;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empresa-nombre {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.direccion {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.direccion p {
    margin: 5px 0;
}

.contacto-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: #555;
}

.contacto-item i {
    color: #141414;
    width: 20px;
}

.contacto-item a {
    color: #141414;
    text-decoration: none;
}

.contacto-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .distribuidores-grid {
        grid-template-columns: 1fr;
    }

    .distribucion-header h1 {
        font-size: 1.8em;
    }

    .region-title {
        font-size: 1.4em;
    }
}

.quienes-somos-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.quienes-somos-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #141414;
}

.quienes-somos-header h1 {
    color: #141414;
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quienes-somos-header .subtitulo {
    color: #666;
    font-size: 1.3em;
    font-style: italic;
    margin-top: 15px;
}

.contenido-principal {
    background: #f8f9fa;
    border-left: 5px solid #141414;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contenido-principal p {
    color: #333;
    font-size: 1.15em;
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: justify;
}

.contenido-principal p:last-child {
    margin-bottom: 0;
}

.secciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.seccion-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.seccion-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    border-color: #141414;
}

.seccion-card h3 {
    color: #141414;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #141414;
}

.seccion-card h3 i {
    font-size: 1.2em;
}

.seccion-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.seccion-card ul li {
    color: #555;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.seccion-card ul li::before {
    content: "▸";
    color: #141414;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.objetivo-destacado {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.objetivo-destacado h3 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.objetivo-destacado h3 i {
    font-size: 1.3em;
}

.objetivo-destacado p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #f0f0f0;
    margin: 0;
}

.autores-destacados {
    margin-top: 15px;
    color: #ddd;
    font-style: italic;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .quienes-somos-header h1 {
        font-size: 2em;
    }

    .contenido-principal {
        padding: 25px;
    }

    .contenido-principal p {
        font-size: 1.05em;
        text-align: left;
    }

    .secciones-grid {
        grid-template-columns: 1fr;
    }

    .objetivo-destacado {
        padding: 30px 20px;
    }

    .objetivo-destacado h3 {
        font-size: 1.4em;
        flex-direction: column;
        gap: 10px;
    }
}