body.single-product .ct-container[data-vertical-spacing*="top"] {
    padding-top: 15px; 
}

.product-breadcrumb, 
.product-main-content,
.related-products {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0; 
    padding-right: 0;
}

.product-main-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px; 
}
.product-breadcrumb-desktop {
    display: block; 
}
.product-breadcrumb-mobile {
    display: none; 
}

.product-left-column {
    flex: 5;
    min-width: 300px;
    margin-right: 30px;
}

.product-title-mobile {
    display: none;
}

.product-image {
    position: relative;
    margin-bottom: 15px;
    border-radius: 15px; 
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    aspect-ratio: 1/1; 
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px; 
    cursor: pointer;
}

.product-info {
    flex: 7;
    min-width: 300px;
}

.product-title {
    color: #007744 !important; 
    font-size: 40px !important; 
    margin-bottom: 15px !important; 
}

.product-tabs-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px; 
}

.product-tabs {
    display: flex;
    margin-bottom: 0; 
}

.tab-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 15px; 
    margin-right: 5px;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.tab-btn.active {
    background-color: #007744 !important; 
    color: white !important; 
}

.tab-content {
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px; 
    margin-top: 0; 
    border: 1px solid #eee; 
}

.tab-content.active {
    display: block;
}

.info-content, .usage-content, .indications-content {
    line-height: 1.4;
    font-size: 15px;
    color: #000;
}

.info-content p, .usage-content p, .indications-content p {
    margin-bottom: 15px;
    color: #000;
}

.info-content h3, .usage-content h3, .indications-content h3 {
    color: #007744 !important; 
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-actions {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 15px;
    margin-bottom: 10px;
}

.contact-btn {
    background-color: #007744 !important; 
    color: white !important; 
}

.product-page-btn {
    background-color: #f5f5f5;
    color: #007744 !important; 
}

.btn i {
    margin-right: 8px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.section-title {
    color: #007744 !important; 
    margin-bottom: 30px;
    font-size: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 16px;
    margin: 15px 0 5px;
    color: #333;
}

@media (min-width: 769px) {
    .tab-content {
        max-height: 400px;
        overflow-y: auto;
        scrollbar-width: thin;
    }
    
    .tab-content::-webkit-scrollbar {
        width: 8px;
    }
    
    .tab-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .tab-content::-webkit-scrollbar-thumb {
        background: #007744 !important; 
        border-radius: 4px;
    }
    
    .tab-content::-webkit-scrollbar-thumb:hover {
        background: #005533 !important; 
    }

    .product-breadcrumb-desktop {
        display: block;
    }
    .product-breadcrumb-mobile {
        display: none;
    }
    .product-title-mobile {
        display: none;
    }
    .product-title-desktop { 
        display: block;
        font-size: 40px !important; 
        color: #007744 !important; 
    }
}

@media (max-width: 768px) {
    body.single-product .ct-container[data-vertical-spacing*="top"] {
        padding-top: 5px !important; 
    }

    .product-title-mobile,
    .product-breadcrumb-mobile,
    .product-left-column, 
    .product-info,
    .product-tabs-wrapper,
    .product-actions,
    .related-products {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .product-main-content {
        flex-direction: column;
    }
    
    .product-left-column {
        margin-right: 0;
        margin-bottom: 20px;
        flex: none;
        width: 100%;
    }
    
    .product-info {
        flex: none;
        width: 100%;
    }
    
    .product-breadcrumb-desktop {
        display: none;
    }
    .product-breadcrumb-mobile {
        display: block;
        font-size: 13px;
        margin-top: 10px; 
        margin-bottom: 5px; 
    }

    .product-title-desktop {
        display: none;
    }
    .product-title-mobile {
        display: block;
        font-size: 34px; 
        text-align: left;
        margin-top: 15px; 
        margin-bottom: 10px; 
        color: #007744 !important; 
    }
    
    .product-image {
        aspect-ratio: 1/1;
        max-height: none;
        overflow: hidden;
        margin-bottom: 15px;
    }
    
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        max-height: none;
        object-fit: cover;
    }
    
    .product-tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 15px; 
    }
    
    .product-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .product-tabs {
        display: flex;
        flex-wrap: nowrap;
        width: auto;
    }
    
    .tab-btn { 
        flex: 0 0 auto;
        font-size: 15px;
        font-weight: bold;
        padding: 10px 15px;
    }
    
    .tab-content {
        padding: 15px; 
        margin: 0;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 21px; 
    margin-top: 20px; 
}

.related-products .product-card {
    background-color: transparent; 
    overflow: hidden;          
    text-align: center;        
    padding: 0;            
    border: none !important; 
    box-shadow: none !important; 
}

.related-products .product-card a {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-decoration: none;
    color: inherit; 
    padding: 0; 
}

.related-products .product-card .wp-post-image, 
.related-products .product-card img[alt="Placeholder"] {
    display: block;
    width: 100%; 
    height: auto; 
    aspect-ratio: 1 / 1;
    object-fit: cover; 
    margin-bottom: 10px; 
    border-radius: 15px !important; 
}

.related-products .product-card h3 {
    font-size: 16px; 
    color: #007744; 
    margin: 0;         
    line-height: 1.3;
    padding: 0 5px; 
}

@media (max-width: 991px) { 
    .related-products .products-grid {
        grid-template-columns: repeat(3, 1fr); 
        gap: 15px; 
    }
}

@media (max-width: 767px) { 
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .related-products .product-card .wp-post-image, 
    .related-products .product-card img[alt="Placeholder"] {
        margin-bottom: 8px; 
    }
    .related-products .product-card h3 {
        font-size: 16px; 
    }
}