/* ==========================================
   PRODUCTS PAGE & PRODUCT DETAIL - Styles
   ========================================== */

/* ========== PAGE HERO (Shared with About) ========== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background:
        url('https://images.unsplash.com/photo-1558618666-fcd25c85f82e?w=1600&h=600&fit=crop')
        center/cover no-repeat;
    text-align: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.16) 50%,
        rgba(0, 0, 0, 0.36) 100%
    );
    transition: background 0.3s ease, opacity 0.3s ease;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--green-300);
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: var(--green-400); font-size: 10px; }
.breadcrumb-current { color: var(--white); font-weight: 500; }

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.page-hero-subtitle {
    font-size: 18px;
    color: var(--green-200);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-50);
    color: var(--green-700);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--green-100);
}

/* ========== PRODUCT INTRO ========== */
.product-intro {
    background: var(--white);
    padding-bottom: 60px;
}

.product-intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.product-intro-content p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 18px;
    line-height: 1.8;
}

.product-intro-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.intro-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--green-800);
}
.intro-badge i {
    color: var(--green-600);
    font-size: 18px;
}

.product-intro-visual {
    position: relative;
}

.product-intro-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.product-intro-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.product-intro-stat {
    position: absolute;
    bottom: -24px;
    left: -24px;
}

.stat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--green-600);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
    text-align: center;
}
.stat-circle-number {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}
.stat-circle-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 0.9;
}

/* ========== FILTER TABS ========== */
.product-listing {
    background: var(--green-50);
}

.product-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--green-200);
    background: var(--white);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover {
    border-color: var(--green-500);
    color: var(--green-700);
}
.filter-btn.active {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
    box-shadow: 0 6px 20px rgba(30, 130, 69, 0.25);
}

/* ========== PRODUCT GRID & CARDS ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card.hidden {
    display: none;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.product-card-img {
    position: relative;
    height: 230px;
    overflow: hidden;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}
.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--green-600);
    color: var(--white);
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}
.product-card-badge.badge-svr { background: #1e8245; }
.product-card-badge.badge-rss { background: #b86b14; }

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 59, 30, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-btn {
    background: var(--white);
    color: var(--green-800);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateY(15px);
    transition: var(--transition);
}
.product-card:hover .product-card-btn {
    transform: translateY(0);
}
.product-card-btn:hover {
    background: var(--green-500);
    color: var(--white);
}

.product-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 4px;
}

.product-card-standard {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-card-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.product-card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    text-align: center;
}
.spec-mini span {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
}
.spec-mini strong {
    font-size: 13px;
    color: var(--green-800);
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-600);
}
.product-card-link:hover {
    color: var(--green-800);
    gap: 12px;
}

/* ========== WHY CHOOSE US ========== */
.product-why {
    position: relative;
    background:
        url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&h=800&fit=crop')
        center/cover no-repeat fixed;
}
.product-why-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 59, 30, 0.92), rgba(20, 90, 46, 0.88));
}
.product-why .container { position: relative; z-index: 2; }

.product-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.why-item {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.why-item:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-6px);
}
.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--green-300);
}
.why-item h4 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 10px;
}
.why-item p {
    color: var(--green-200);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== CTA BOX ========== */
.product-cta-section {
    background: var(--white);
    padding: 70px 0;
}

.product-cta-box {
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    border: 1px solid var(--green-200);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.product-cta-left h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--green-900);
    margin-bottom: 8px;
}
.product-cta-left p {
    font-size: 16px;
    color: var(--gray-600);
}

.product-cta-right {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-outline-green {
    background: var(--white);
    color: var(--green-700);
    border: 2px solid var(--green-600);
}
.btn-outline-green:hover {
    background: var(--green-600);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================
   PRODUCT DETAIL PAGE STYLES
   ========================================== */
.product-detail-section {
    background: var(--white);
    padding: 70px 0 90px;
}

.product-switcher {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.switcher-pill {
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}
.switcher-pill:hover {
    background: var(--green-50);
    color: var(--green-700);
    border-color: var(--green-200);
}
.switcher-pill.active {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(30, 130, 69, 0.25);
}

.detail-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}

.detail-gallery {
    position: sticky;
    top: 100px;
}

.detail-main-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
    aspect-ratio: 4/3;
    background: var(--gray-100);
}
.detail-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.detail-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    aspect-ratio: 4/3;
    opacity: 0.7;
    transition: var(--transition);
}
.detail-thumb.active,
.detail-thumb:hover {
    border-color: var(--green-600);
    opacity: 1;
}
.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}
.detail-category-tag {
    display: inline-block;
    background: var(--green-50);
    color: var(--green-700);
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--green-900);
    margin-bottom: 8px;
}
.detail-subtitle {
    font-size: 15px;
    color: var(--gray-500);
}

.detail-summary {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 28px;
}

.detail-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.highlight-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green-600);
}
.highlight-box i {
    font-size: 20px;
    color: var(--green-600);
}
.highlight-box span {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}
.highlight-box strong {
    font-size: 14px;
    color: var(--green-900);
}

.detail-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
}

/* Spec Table & Tabs */
.detail-tabs-wrapper {
    margin-top: 40px;
}

.detail-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.detail-tab-btn {
    padding: 14px 28px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}
.detail-tab-btn:hover { color: var(--green-700); }
.detail-tab-btn.active {
    color: var(--green-700);
}
.detail-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green-600);
    border-radius: 3px 3px 0 0;
}

.detail-tab-pane {
    display: none;
}
.detail-tab-pane.active {
    display: block;
}

.spec-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}
.spec-table th,
.spec-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
}
.spec-table th {
    background: var(--green-800);
    color: var(--white);
    font-weight: 600;
}
.spec-table tr:nth-child(even) td {
    background: var(--green-50);
}
.spec-table td:first-child {
    font-weight: 500;
    color: var(--gray-800);
}
.spec-table td:last-child {
    font-weight: 700;
    color: var(--green-700);
}

.packaging-grid,
.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.info-box-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px;
}
.info-box-card i {
    font-size: 28px;
    color: var(--green-600);
    margin-bottom: 14px;
}
.info-box-card h4 {
    font-size: 17px;
    color: var(--green-900);
    margin-bottom: 8px;
}
.info-box-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Related Products */
.related-products {
    background: var(--green-50);
    padding: 70px 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .product-intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-intro-stat { bottom: 16px; left: 16px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-why-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-main-grid { grid-template-columns: 1fr; gap: 40px; }
    .detail-gallery { position: static; }
    .packaging-grid, .application-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-hero { padding: 140px 0 60px; }
    .page-hero-title { font-size: 36px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-why-grid { grid-template-columns: 1fr; }
    .product-cta-box { padding: 32px 24px; text-align: center; justify-content: center; }
    .detail-highlights { grid-template-columns: 1fr; }
    .detail-title { font-size: 28px; }
}
