/* Modern Product Details Page Styling */
:root {
    --primary-color: #1f5e3b;
    --primary-dark: #0f3d2e;
    --success-color: #2f7d32;
    --accent-color: #d8a400;
    --light-bg: #f6fbf7;
    --border-color: #d7e7dc;
    --text-dark: #1e2a24;
    --text-muted: #5f7266;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
}

.product-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 6px 18px rgba(15, 61, 46, 0.18);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

.product-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(15, 61, 46, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(31, 94, 59, 0.08);
}

.product-image-container {
    position: relative;
    background: linear-gradient(135deg, #f2fbf4 0%, #e6f2e9 100%);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.product-image {
    max-width: 100%;
    max-height: 380px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 61, 46, 0.15);
}

.product-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--success-color) 0%, #43a047 100%);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(47,125,50,0.3);
}

.product-info {
    padding: 2.5rem;
}

.product-category {
    display: inline-block;
    background: rgba(31,94,59,0.08);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.country-flag-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.product-title {
    font-size: clamp(1.8rem, 2.3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(216,164,0,0.18);
}

.product-price {
    font-size: clamp(2.2rem, 3vw, 2.9rem);
    font-weight: 800;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 6px rgba(47,125,50,0.18);
}

.price-unit {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meta-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(31,94,59,0.25);
}

.meta-content h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-content p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.description-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.btn-custom {
    padding: 0.95rem 2.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.02rem;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.btn-buy {
    background: linear-gradient(135deg, #2f7d32 0%, #1f5e3b 100%);
    color: white !important;
    box-shadow: 0 10px 24px rgba(47,125,50,0.3);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(47,125,50,0.35);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white !important;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}

.btn-call {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white !important;
}

.btn-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23,162,184,0.35);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-title i {
    color: var(--accent-color);
}

.rating-summary {
    background: linear-gradient(135deg, #f8fff8 0%, #edf5ee 100%);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid rgba(31,94,59,0.08);
}

.rating-score {
    text-align: center;
}

.rating-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: #2f7d32;
    line-height: 1;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.5rem;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.similar-products {
    margin-top: 4rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.product-item-image-container {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.product-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-item-body {
    padding: 1.5rem;
}

.product-item-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-item-price {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.product-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .product-image-container {
        min-height: 400px;
        padding: 2rem;
    }
    
    .product-info {
        padding: 2rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-price {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .product-header {
        padding: 1.5rem 0;
    }
    
    .product-image-container {
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 2rem;
    }
    
    .product-meta {
        grid-template-columns: 1fr;
    }
    
    .rating-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-custom {
        width: 100%;
        justify-content: center;
    }
}
