/*
 * Yewodze Enterprise - Enhanced Product Detail Page Styles
 * Theme: Green, Yellow, and White
 */

/* Product Detail Section */
.product-detail {
    padding: 5rem 0;
    position: relative;
    background-color: #fff;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background-color: transparent;
    color: #2e8b57;
    border: 2px solid #2e8b57;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    text-decoration: none;
}

.back-button:hover {
    background-color: #2e8b57;
    color: #fff;
    transform: translateX(-5px);
}

.back-button i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Product Gallery */
.product-gallery {
    position: relative;
    margin-bottom: 2rem;
}

.product-main-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out;
}

.product-main-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-main-image-container:hover .product-main-image {
    transform: scale(1.05);
}

.wholesale-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffd700;
    color: #343a40;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-thumbnails {
    margin-top: 1.5rem;
}

.product-thumbnail {
    height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.product-thumbnail:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.product-thumbnail.active {
    opacity: 1;
    border-color: #2e8b57;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2);
}

/* Product Details */
.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2e8b57;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.1s ease-out;
}

.product-sku, .product-category {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.product-sku i, .product-category i {
    margin-right: 0.5rem;
    color: #2e8b57;
}

.product-price {
    animation: fadeInUp 1.2s ease-out;
    position: relative;
}

.product-price h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0;
    display: inline-block;
}

.product-price::before {
    content: 'Wholesale Price';
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description {
    margin-bottom: 2rem;
    animation: fadeInUp 1.3s ease-out;
}

.product-description h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.product-description h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #2e8b57, #ffd700);
    border-radius: 3px;
}

.product-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 1.4s ease-out;
}

.text-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.text-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Contact for Purchase */
.contact-purchase {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1.5s ease-out;
}

.contact-purchase h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 1rem;
}

.contact-purchase p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
}

.contact-btn {
    background-color: #2e8b57;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.contact-btn:hover {
    background-color: #1a5632;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.call-btn {
    background-color: transparent;
    color: #2e8b57;
    border: 2px solid #2e8b57;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.call-btn:hover {
    background-color: #2e8b57;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
    background-color: #25D366;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Product Features Sections */
.product-section {
    margin-bottom: 2rem;
    animation: fadeInUp 1.6s ease-out;
}

.product-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.product-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #2e8b57, #ffd700);
    border-radius: 3px;
}

.product-section h4 i {
    margin-right: 0.75rem;
    color: #ffd700;
}

.product-section-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
}

.product-features ul {
    padding-left: 0;
    list-style: none;
}

.product-features ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.product-features ul li i {
    margin-right: 1rem;
    color: #28a745;
    font-size: 1.1rem;
}

/* Related Products Section */
.related-products {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.related-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e8b57' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2e8b57, #ffd700);
    border-radius: 3px;
}

.related-product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    background-color: #fff;
    animation: fadeInUp 1.2s ease-out;
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.related-wholesale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd700;
    color: #343a40;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.related-product-details {
    padding: 1.5rem;
    position: relative;
}

.related-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2e8b57;
    transition: color 0.3s ease;
}

.related-product-card:hover .related-product-title {
    color: #1a5632;
}

.related-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.related-product-price::before {
    content: 'Wholesale:';
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    margin-right: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-details-btn {
    background-color: transparent;
    color: #2e8b57;
    border: 2px solid #2e8b57;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.view-details-btn:hover {
    background-color: #2e8b57;
    color: #fff;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .product-title {
        font-size: 2rem;
    }
    
    .product-price h3 {
        font-size: 2rem;
    }
    
    .product-main-image-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 3rem 0;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-price h3 {
        font-size: 1.75rem;
    }
    
    .product-main-image-container {
        height: 300px;
    }
    
    .contact-purchase {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-main-image-container {
        height: 250px;
    }
    
    .product-thumbnail {
        height: 60px;
    }
}
