﻿/* ===== HORIZONTAL ROW PRODUCTS SECTION STYLES ===== */

/* Variables */
:root {
    --primary-green: #1a7a4a;
    --dark-green: #145c38;
    --light-green: #2ecc71;
    --gold: #f1c40f;
    --dark-gold: #d4ac0d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #2c3e50;
    --text-dark: #34495e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal Row Products Section */
.horizontal-row-products {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 50%, #f0f8f0 100%);
    position: relative;
}

    .horizontal-row-products::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-green);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    opacity: 0.8;
    font-weight: 400;
}

.section-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    position: relative;
}

    .section-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100px;
        height: 100px;
        border: 2px solid var(--primary-green);
        border-radius: 50%;
        opacity: 0.3;
    }

    .section-divider i {
        font-size: 2rem;
        color: var(--white);
    }

/* Products Row */
.products-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* Row Product Card */
.row-product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(26, 122, 74, 0.1);
    display: flex;
    flex-direction: column;
    height: fit-content;
}

    .row-product-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
        border-color: var(--gold);
    }

/* Product Image Container */
.product-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, var(--light-gray), var(--white));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.row-product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 122, 74, 0.9), rgba(241, 196, 15, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.row-product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
}

    .action-btn:hover {
        background: var(--dark-green);
        color: var(--white);
        transform: scale(1.1);
    }

/* Product Badges */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.best-seller {
    background: var(--gold);
    color: var(--dark-green);
}

.new {
    background: #e74c3c;
    color: var(--white);
}

.organic {
    background: var(--light-green);
    color: var(--dark-green);
}

/* Product Content */
.product-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.product-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

    .stars i {
        color: var(--gold);
        font-size: 0.9rem;
    }

.rating-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
}

/* Product Description */
.product-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
    flex: 1;
}

/* Product Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 500;
}

    .feature i {
        width: 18px;
        height: 18px;
        background: rgba(26, 122, 74, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        color: var(--primary-green);
    }

/* Product Specs */
.product-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(26, 122, 74, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}

.spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.spec-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-green);
}

/* Product Footer */
.product-footer {
    margin-top: auto;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(26, 122, 74, 0.1);
}

.current-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
}

    .current-price small {
        font-size: 0.9rem;
        font-weight: 500;
        opacity: 0.8;
    }

.original-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: line-through;
    opacity: 0.6;
}

    .original-price span {
        font-size: 0.75rem;
        background: var(--gold);
        color: var(--dark-green);
        padding: 3px 8px;
        border-radius: 10px;
        font-weight: 700;
    }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
}

.detail-btn, .cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex: 1;
}

.detail-btn {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

    .detail-btn:hover {
        background: var(--primary-green);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(26, 122, 74, 0.3);
    }

.cart-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
}

    .cart-btn:hover {
        background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(26, 122, 74, 0.3);
    }

/* Section Footer */
.section-footer {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--primary-green);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

    .view-all-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
        transition: var(--transition);
        z-index: -1;
    }

    .view-all-btn:hover {
        color: var(--white);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(26, 122, 74, 0.3);
    }

        .view-all-btn:hover::before {
            left: 0;
        }

    .view-all-btn i {
        transition: var(--transition);
    }

    .view-all-btn:hover i {
        transform: translateX(5px);
    }

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        padding: 0 30px;
    }

    .products-row {
        gap: 30px;
    }

    .product-image-container {
        height: 250px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .horizontal-row-products {
        padding: 80px 0;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .product-image-container {
        height: 240px;
    }

    .product-content {
        padding: 25px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .horizontal-row-products {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .products-row {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-image-container {
        height: 220px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .detail-btn, .cart-btn {
        width: 100%;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .products-row {
        max-width: 100%;
    }

    .product-image-container {
        height: 200px;
    }

    .product-content {
        padding: 20px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .current-price {
        font-size: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.horizontal-row-products {
    animation: fadeInUp 0.8s ease-out;
}

.row-product-card {
    animation: scaleIn 0.6s ease-out;
}

    .row-product-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .row-product-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .row-product-card:nth-child(3) {
        animation-delay: 0.3s;
    }
