.img-responsive {
    position: relative;
    overflow: hidden;
    display: flex;
    aspect-ratio: 1;
}

.img-responsive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px !important;
}

ul.products::before,
ul.products::after {
    display: none !important;
}

ul.products li.product {
    background-color: #fff;
    box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 !important;
    float: unset !important;
}

ul.products li.product .product-inner {
    padding: 1rem;
}

ul.products li.product .product-inner .button {
    background-color: #2ad2a9;
    box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
    border-radius: 4px;
    border: 0 !important;
    text-align: center;
    font-weight: 400;
    display: block;
    width: 100%;
    color: #fff;
    transition: all .15s linear;
}

ul.products li.product .product-inner .button:hover {
    background-color: #2ad2a9e6;
}

ul.products li.product .price {
    color: #2ad2a9 !important;
    font-size: 1em !important;
}

/**
 * FAQ Accordion
 */
.hp-faq-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-top: 20px;
}

.hp-faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.hp-faq-item:last-child {
    border-bottom: 0;
}

.hp-faq-header {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.2s ease;
}

.hp-faq-header:hover {
    background: #f8fafc;
}

.hp-faq-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.hp-faq-icon {
    position: relative;
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -5px;
}

.hp-faq-header.active .hp-faq-icon {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.hp-faq-content {
    background: #fff;
}

.hp-faq-content-inner {
    padding: 0 25px 25px;
    color: #475569;
    line-height: 1.6;
}

/**
 * Product Gallery
 */
.hp-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
}

.hp-gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1;
}

.hp-gallery-viewport {
    width: 100%;
    height: 100%;
    position: relative;
}

.hp-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hp-gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.hp-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nav Buttons */
.hp-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: #1e293b;
}

.hp-gallery-nav:hover {
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hp-gallery-nav.prev {
    left: 15px;
}

.hp-gallery-nav.next {
    right: 15px;
}

.hp-chevron {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.hp-chevron.left {
    transform: rotate(135deg);
    margin-left: 4px;
}

.hp-chevron.right {
    transform: rotate(-45deg);
    margin-right: 4px;
}

/* Pagination Dots */
.hp-gallery-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hp-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-gallery-dot.active {
    background: #1e293b;
    transform: scale(1.2);
}

/* Thumbnails */
.hp-gallery-thumbs {
    width: 100%;
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.hp-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.hp-gallery-thumbs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hp-gallery-thumbs-inner {
    display: flex;
    gap: 10px;
}

.hp-gallery-thumb {
    flex: 0 0 calc(33.333% - 6.666px);
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.6;
    background: #f8fafc;
    scroll-snap-align: start;
    user-select: none;
}

.hp-gallery-thumb.active {
    border-color: #1e293b;
    opacity: 1;
}

.hp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevenir drag nativo de imagen */
}

/**
 * Cross-Sells Widget
 */
.hp-cross-sells {
    margin-top: 30px;
    background: #fff;
}

.hp-cross-sells-title {
    margin: 0 0 15px;
    font-size: 1.1rem;
    font-weight: inherit;
    color: #1e293b;
}

.hp-cross-sells-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-cross-sell-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.hp-cross-sell-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hp-cross-sell-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.hp-cross-sell-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-cross-sell-info {
    flex-grow: 1;
}

.hp-cross-sell-name {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.hp-cross-sell-name a {
    color: inherit;
    text-decoration: none;
}

.hp-cross-sell-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

.hp-cross-sell-action {
    flex-shrink: 0;
}

.hp-cross-sell-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #2ad2a9;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.hp-cross-sell-add:hover {
    transform: scale(1.1);
    background-color: #24bfa0;
}

.hp-cross-sell-add.loading {
    opacity: 0.6;
    pointer-events: none;
}

/**
 * Product Filters
 */

.hp-filter-clear {
    display: block;
    color: #2ad2a9;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #2ad2a9;
    transition: all 0.2s ease;
}

.hp-filter-clear:hover {
    color: #1e293b;
    border-color: #1e293b;
}

.hp-filter-group {
    margin-bottom: 20px;
}

.hp-filter-group:last-child {
    margin-bottom: 0;
}

.hp-filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.hp-filter-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-filter-group-icon {
    position: relative;
    width: 10px;
    height: 10px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -5px;
}

.hp-filter-group.active .hp-filter-group-icon {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.hp-filter-group-content {
    display: none;
    /* Hidden by default, controlled by JS slideToggle */
}

.hp-filter-group.active .hp-filter-group-content {
    display: block;
}

/* Categories List */
.hp-filter-cats,
.hp-filter-attrs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hp-filter-cat-item {
    margin-bottom: 8px;
}

.hp-filter-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-filter-cat-name {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.hp-filter-cats>.hp-filter-active>.hp-filter-cat-row {
    background-color: #00112d;
    padding: 10px;
    border-radius: 4px;
}

.hp-filter-cats>.hp-filter-active>.hp-filter-cat-row>.hp-filter-cat-name {
    color: #fff;
    font-weight: 600;
}

.hp-filter-cats .hp-filter-cat-children .hp-filter-active {
    background-color: #2ad2a9;
    padding: 4px 10px;
    border-radius: 4px;
}

.hp-filter-cats .hp-filter-cat-children .hp-filter-active>.hp-filter-cat-row>.hp-filter-cat-name {
    color: #fff;
}

.hp-cat-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
}

.hp-cat-toggle:before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.hp-filter-child-active>.hp-filter-cat-row>.hp-cat-toggle:before {
    transform: rotate(-135deg);
}

.hp-filter-cat-children {
    margin-left: 15px;
    margin-top: 8px;
    display: none;
    border-left: 1px solid #f1f5f9;
    padding-left: 10px;
}

/* Checkboxes */
.hp-filter-attr-item {
    margin-bottom: 10px;
}

.hp-filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
}

.hp-attribute-filter {
    display: none;
}

.hp-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.hp-attribute-filter:checked+.hp-checkmark {
    background: #2ad2a9;
    border-color: #2ad2a9;
}

.hp-checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hp-attribute-filter:checked+.hp-checkmark:after {
    display: block;
}

/**
 * Cart Notice
 */
.hidroplus-cart-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(450px);
    transition: transform 0.3s ease-in-out;
}

.hidroplus-cart-notice.show {
    transform: translateX(0);
}

.hidroplus-cart-notice-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hidroplus-cart-notice-title:before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.hidroplus-cart-notice-message {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hidroplus-cart-notice {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-150px);
    }

    .hidroplus-cart-notice.show {
        transform: translateY(0);
    }
}

/**
 * Dynamic Product Loop Styles
 */
.hp-loop-cat-link {
    background-color: #2ad2a91a;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 400;
    color: #2ad2a9;
    text-decoration: none;
    margin-bottom: 5px;
    border-radius: 4px;
    padding: 5px 10px;
    line-height: 1em;
    transition: color 0.2s ease;
}

.hp-loop-cat-link:hover {
    color: #2ad2a9;
}

.hp-loop-dimensions {
    font-size: 0.78rem;
    color: #64748b;
    display: inline-block;
    margin-bottom: 10px;
}

.hp-loop-dimensions span {
    font-weight: 600;
    color: #334155;
}

.hp-loop-attributes {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 15px 0 !important;
    color: #64748b !important;
    font-size: 0.78em !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 5px;
}

.hp-loop-attributes::before,
.hp-loop-attributes::after {
    display: none !important;
}

.hp-loop-attributes li {
    font-size: inherit !important;
    padding: 0 !important;
    font-weight: 600;
    line-height: 1.4em;
}

.hp-loop-attributes strong {
    color: #64748b;
    font-weight: 400 !important;
}

.hp-loop-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

.hp-loop-excerpt :is(ul, ol) {
    font-size: .9em;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 !important;
    padding: 0;
}

.hp-loop-excerpt li {
    display: inline-flex;
    position: relative;
    padding: 0 0 0 14px;
    margin: 0;
}

.hp-loop-excerpt li:before {
    content: '';
    height: 4px;
    width: 4px;
    border-radius: 50%;
    background-color: #2ad2a9;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/**
 * AJAX Filtering Loading State
 */
ul.products.hp-products-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
    min-height: 300px;
}

ul.products.hp-products-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2ad2a9;
    border-radius: 50%;
    animation: hp-spin 1s linear infinite;
    z-index: 10;
}

@keyframes hp-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* QUANTITY */

.rnz-cart-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rnz-cart-qty .remove {
    font-size: .89em;
    font-weight: 600;
    margin-left: 5px;
}

.rnz-cart-qty .remove:hover {
    color: #0052CC !important;
}

:is(.rnz-cart-min, .rnz-cart-max) {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #00112d1a;
    border-radius: .375rem;
    box-sizing: border-box;
    color: #fff;
    width: 34px;
    height: 34px;
    text-indent: -999em;
    font-size: 1px;
    color: transparent;
    transition: all .2s linear;
    position: relative;
}

:is(.rnz-cart-min, .rnz-cart-max)::after {
    content: '';
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    transition: all .2s linear;
    pointer-events: none;
}

.rnz-cart-min {
    background-color: #fff;
}

.rnz-cart-min::after {
    background-image: url('../images/minus.svg');
}

.rnz-cart-max::after {
    background-image: url('../images/plus.svg');
}

:is(.rnz-cart-min, .rnz-cart-max):hover {
    background-color: #f8f9fa;
}

:is(.rnz-cart-min, .rnz-cart-max):hover::after {
    filter: unset;
}

.rnz-cart-qty input {
    height: 34px !important;
    border: 0 !important;
    background: transparent !important;
    outline: none !important;
}

#shipping-country,
#billing-country,
:is([for="shipping-country"], [for="billing-country"]),
.wc-block-components-country-input {
    display: none !important;
}

.hp-promo-excerpt {
    margin-bottom: 10px;
}

.hp-promo-savings {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: .89em;
}

.hp-promo-end-date {
    background-image: url('data:image/svg+xml,<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock w-4 h-4" aria-hidden="true"><path d="M12 6v6l4 2" stroke="oklab(0.182415 -0.0149421 -0.0610505 / 0.6)" fill="none" stroke-width="2px"></path><circle cx="12" cy="12" r="10" stroke="oklab(0.182415 -0.0149421 -0.0610505 / 0.6)" fill="none" stroke-width="2px"></circle></svg>');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: 0 center;
    font-size: .89em;
    padding-left: 26px;
}

.hp-promo-badge {
    position: absolute;
    right: 20px;
    top: 20px;
    line-height: 1em !important;
    padding: 10px 20px !important;
    font-size: 1em !important;
    font-weight: 400 !important;
    background-color: #d4183d !important;
    color: #fff !important;
    border-radius: 3px;
    z-index: 2;
}

li.product .onsale {
    position: absolute;
    margin: 0 !important;
    border-radius: 3px !important;
    overflow: hidden;
    left: 20px !important;
    top: 20px !important;
    right: unset !important;
    min-height: unset !important;
    min-width: unset !important;
    background-color: #2ad2a9 !important;
    border-radius: 0 !important;
    line-height: 1em !important;
    padding: 10px 20px !important;
    font-size: 1em !important;
    font-weight: 400 !important;
}

/*
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
*/