.product-template-default {
}

.custom-single-product {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: var(--padding-horizontal);
    padding: 5rem 2rem 0 2rem;
}

.related-products-section {
    padding-bottom: 80px;
}

.quantity {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity input {
    background-color: white;
    border: 1px solid var(--main-color);
}

.quantity::before {
    content: "Cantidad";
    color: var(--main-color);
}

.button {
    background-color: var(--main-color) !important;
    color: white;
    border-radius: 0 !important;
    margin-top: 20px;
}

.product-main-wrapper {
    display: grid;
    grid-template-columns: 65% 35%;
    min-height: 700px;
}


.storefront-breadcrumb {
    display: none;
}

.product-gallery-section {
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: 10px;
    height: 500px;
    min-height: 500px;
}

/* Mobile: Stack vertically with horizontal thumbnails below */
@media (max-width: 768px) {
    .product-gallery-section {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        height: auto;
        min-height: auto;
        grid-template-columns: none;
        grid-template-rows: none;
        width: calc(100vw - 40px);
    }
}

/* Swiper Styles */
.main-swiper {
    grid-area: 1 / 2 / 2 / 3;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    max-height: 500px;
    max-width: 100%;
}

.thumbs-swiper {
    grid-area: 1 / 1 / 2 / 2;
    height: 100%;
    width: 100%;
    max-height: 500px;
    max-width: 100px;
}

/* Mobile: Adjust main swiper height and thumbnails */
@media (max-width: 768px) {
    .main-swiper {
        height: 400px;
        max-height: 400px;
        width: 100%;
        min-width: 100%;
        grid-area: unset;
        flex-shrink: 0;
    }
    
    .thumbs-swiper {
        height: 100px;
        width: 100%;
        min-width: 100%;
        max-height: 100px;
        max-width: 100%;
        grid-area: unset;
        flex-shrink: 0;
    }
}

/* Ensure Swiper containers don't grow infinitely */
.swiper {
    overflow: hidden;
}

.swiper-wrapper {
    height: 100%;
}

/* Ensure proper width on mobile */
@media (max-width: 768px) {
    .swiper {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .swiper-wrapper {
        width: 100%;
    }
}

.main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    height: 100%;
    width: 100%;
}

.main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.thumbs-swiper .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    height: 80px;
    width: 100%;
}

/* Mobile: Square thumbnails for horizontal layout */
@media (max-width: 768px) {
    .thumbs-swiper .swiper-slide {
        height: 80px;
        width: 80px;
        flex-shrink: 0;
    }
}

.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
}

.thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--main-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: var(--main-color);
}

.swiper-pagination-bullet-active {
    background: var(--main-color);
}

.product-title {
    font-family: Raleway, sans-serif;
    font-size: 40px;
    font-weight: 300;
}

.product-main-wrapper {
    padding: 2rem 0;
}

.product-info-section {
    padding-left: 2rem;
}


/* Custom Variable Product Toggle Buttons */
.variation-group {
    margin-bottom: 1.5rem;
}

.variation-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.custom-variation-toggles .hidden-select {
    display: none;
}

.toggle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variation-toggle {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--main-color);
    background: #fff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.variation-toggle:hover {
    border-color: #999;
    background: #f8f8f8;
}

.variation-toggle.active {
    border-color: var(--main-color);
    ;
    background: var(--main-color);
    ;
    color: #fff;
}

.variation-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
}

.single_variation_wrap {
    margin-top: 2rem;
}

.woocommerce-variation-add-to-cart {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.woocommerce-variation-add-to-cart .quantity {
    grid-area: 1 / 1 / 2 / 3;
}

.woocommerce-variation-add-to-cart button[type="submit"] {
    grid-area: 2 / 1 / 3 / 2;
}

.checkout_button {
    grid-area: 2 / 2 / 3 / 3;
}

.single_add_to_cart_button {
    padding: 0.5rem 1rem;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.single_add_to_cart_button:hover {
    background: #005a87;
}

/* Checkout Button Styling */
.checkout_button {
    padding: 0.75rem 2rem;
    background: #fff !important;
    color: var(--main-color) !important;
    border: 1px solid var(--main-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-left: 0.5rem;
}

.simple-product-checkout {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .toggle-buttons {
        gap: 0.25rem;
    }

    .variation-toggle {
        padding: 0.5rem 1rem;
        font-size: 13px;
        min-width: 50px;
    }
}

/*related products*/

.products-grid {
    --auto-grid-min-size: 16rem;
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
    grid-gap: 2rem;
    row-gap: 2rem;
    margin-left: 0;
}

.product-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.frame-bg {
    background-image: url("../assets/shop/frame3.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    inset: 0;
}

.product-frame a {
    display: inline-block;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-frame img {
    width: 70%;
    height: 300px;
    object-fit: contain;
}

.product-title-related {
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--main-color);
    font-weight: bold;
    text-align: center;
}

.product-card {
    text-align: center;
    font-size: 1.2rem;
}

.product-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.related-products-section{
    border-top: 1px solid lightgray;
    margin-top: 40px;
}

.related-products-title{
    font-size: 50px;
    margin-top: 20px;
}

.product-wrapper {
    border: 1px solid var(--main-color);
    height: 100%;
}


.product-image-wrapper{
    height: 300px;
}

.product-image{
    height: 100%;
    width: 100%;
}

.product-image img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.product-title-related{
    border-top: 1px solid var(--main-color);
    margin: 0;
    text-align: center;
    padding: 20px;
}

.products-grid li{
    height: 100%;
}

/* Product Categories Styling */
.product-categories-section {
    margin-top: 1.5rem;
}

.product-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.categories-label {
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 0.5rem;
    display: block;
}

.category-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.parent-category {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.child-categories {
    margin-left: 1rem;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.child-categories::before {
    content: "→ ";
    color: var(--main-color);
    font-weight: bold;
}

@media (max-width: 768px) {

    .child-categories {
        margin-left: 0.75rem;
    }
}

@media (max-width: 768px) {
    .product-main-wrapper {
        grid-template-columns: 1fr;
    }

    .custom-single-product {
        padding: 2.3rem 1rem;
    }

    .product-info-section {
        padding-left: 0.5rem;
    }

    .product-gallery-section {
        grid-template-columns: 55px 1fr;
    }
}