/* Product Detail Page CSS */
.page-header {
    background: linear-gradient(135deg, #2c5530 0%, #48803d 100%);
    color: #fff;
    padding: 2.5rem 0 1.5rem 0;
}

.thumbnail-image {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.thumbnail-image:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.related-products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0;
}

.title-underline {
    height: 3px;
    width: 60px;
    background: linear-gradient(135deg, #48803d 0%, #2c5530 100%);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.related-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .product-image {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 85, 48, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.related-product-card:hover .overlay-content {
    transform: translateY(0);
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-featured {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
}

.badge-category {
    background: rgba(255,255,255,0.9);
    color: #2c5530;
    backdrop-filter: blur(10px);
}

.quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.related-product-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.9);
    color: white;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #25d366;
    transform: scale(1.1);
    color: white;
}

.share-btn {
    background: rgba(255,255,255,0.9);
    color: #2c5530;
}

.share-btn:hover {
    background: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #2c5530;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #48803d;
}

.product-stats {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #6c757d;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item.location {
    margin-left: auto;
}

.price-section {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-unit {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

.retail-price {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
}

.price-on-request {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .quick-actions {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    .related-products-section {
        padding: 3rem 0;
    }
    
    .product-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .stat-item.location {
        margin-left: 0;
    }
}
