﻿/* product-base.css - SRS Agro Chemicals - 4 Products Per Row */

/* =====================================
   MAIN WRAPPER
   ===================================== */
.product-base-wrapper {
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, #fafdf8 0%, #f0f7ea 100%);
    position: relative;
    overflow-x: hidden;
}

    /* Animated Background */
    .product-base-wrapper::before {
        content: "🌱";
        position: absolute;
        bottom: 20px;
        left: 20px;
        font-size: 200px;
        opacity: 0.03;
        pointer-events: none;
        animation: floatSlow 20s infinite ease-in-out;
    }

    .product-base-wrapper::after {
        content: "🌾";
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 180px;
        opacity: 0.03;
        pointer-events: none;
        animation: floatSlow 25s infinite ease-in-out reverse;
    }

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -20px) rotate(5deg);
    }
}

/* =====================================
   CONTAINER
   ===================================== */
.product-base-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

/* =====================================
   HEADER SECTION
   ===================================== */
.product-base-header {
    text-align: center;
    margin-bottom: 60px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a3b2f, #2b5e3b);
    padding: 8px 24px;
    border-radius: 60px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(26, 59, 47, 0.25);
}

.badge-icon {
    font-size: 1.2rem;
    animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.badge-text {
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.product-base-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a3b2f;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

    .product-base-title .highlight {
        color: #ff8c00;
        position: relative;
        display: inline-block;
    }

        .product-base-title .highlight::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ff8c00, #ffb347);
            border-radius: 4px;
            transform: scaleX(0);
            animation: underlineReveal 0.8s ease-out forwards;
        }

@keyframes underlineReveal {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.product-base-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =====================================
   PRODUCTS GRID - 4 PRODUCTS PER ROW
   ===================================== */
.products-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* =====================================
   PRODUCT CARD - ELEGANT DESIGN
   ===================================== */
.product-showcase-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
}

    .product-showcase-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

/* Image Section */
.product-showcase-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.product-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

/* Glow Effect */
.image-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,140,0,0) 0%, rgba(255,140,0,0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-showcase-card:hover .image-glow-effect {
    opacity: 1;
}

/* Category Label */
.category-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    transition: all 0.3s ease;
}

.product-showcase-card:hover .category-label {
    background: #ff8c00;
    transform: translateX(3px);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    color: white;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.product-showcase-card:hover .product-badge {
    transform: translateX(-3px);
}

.system-badge {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.selective-badge {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.new-badge {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

/* Card Content */
.product-showcase-content {
    padding: 20px;
    position: relative;
    background: white;
}

.product-icon {
    font-size: 2.5rem;
    position: absolute;
    top: -25px;
    right: 20px;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.product-showcase-card:hover .product-icon {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,140,0,0.2);
}

.product-showcase-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a3b2f;
    margin-bottom: 10px;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.product-showcase-card:hover .product-showcase-title {
    color: #ff8c00;
}

.product-showcase-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Product Highlights */
.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

    .product-highlights span {
        font-size: 0.65rem;
        background: #f8f9fa;
        padding: 4px 10px;
        border-radius: 20px;
        color: #555;
        font-weight: 500;
        transition: all 0.3s ease;
    }

.product-showcase-card:hover .product-highlights span {
    background: linear-gradient(135deg, #ff8c0015, #ffb34715);
    color: #ff8c00;
}

/* View Details Button */
.product-showcase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a3b2f, #2b5e3b);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    width: 100%;
}

    .product-showcase-btn:hover {
        background: linear-gradient(135deg, #ff8c00, #ffb347);
        gap: 12px;
        box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    }

/* =====================================
   VIEW ALL BUTTON
   ===================================== */
.view-all-wrapper {
    text-align: center;
    margin-top: 30px;
}

.view-all-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #1a3b2f;
    color: #1a3b2f;
    padding: 12px 35px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .view-all-products-btn:hover {
        background: #1a3b2f;
        color: white;
        gap: 15px;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(26, 59, 47, 0.2);
    }

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .products-showcase-grid {
        gap: 20px;
    }

    .product-showcase-image {
        height: 240px;
    }

    .product-base-title {
        font-size: 2.5rem;
    }
}

/* Desktop - Switch to 3 columns */
@media (max-width: 992px) {
    .products-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .product-showcase-image {
        height: 250px;
    }
}

/* Tablet - Switch to 2 columns */
@media (max-width: 768px) {
    .product-base-wrapper {
        padding: 60px 0;
    }

    .product-base-container {
        padding: 0 25px;
    }

    .product-base-header {
        margin-bottom: 45px;
    }

    .product-base-title {
        font-size: 2rem;
    }

    .product-base-subtitle {
        font-size: 1rem;
    }

    .products-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .product-showcase-image {
        height: 230px;
    }

    .product-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        top: -22px;
        right: 15px;
    }

    .product-showcase-title {
        font-size: 1.1rem;
    }
}

/* Mobile - Switch to 1 column */
@media (max-width: 576px) {
    .product-base-wrapper {
        padding: 45px 0;
    }

    .product-base-container {
        padding: 0 18px;
    }

    .header-badge {
        padding: 6px 18px;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .product-base-title {
        font-size: 1.6rem;
    }

    .products-showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto 40px auto;
    }

    .product-showcase-image {
        height: 220px;
    }

    .product-showcase-content {
        padding: 18px;
    }

    .product-showcase-title {
        font-size: 1.1rem;
    }

    .product-showcase-desc {
        font-size: 0.8rem;
    }

    .product-highlights span {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .product-showcase-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .view-all-products-btn {
        padding: 10px 28px;
        font-size: 0.85rem;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .product-showcase-image {
        height: 200px;
    }

    .product-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .category-label {
        font-size: 0.55rem;
        padding: 4px 10px;
    }

    .product-badge {
        font-size: 0.5rem;
        padding: 3px 8px;
    }
}

/* =====================================
   ANIMATIONS
   ===================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-showcase-card {
    animation: fadeSlideUp 0.5s ease-out forwards;
    opacity: 0;
}

    .product-showcase-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .product-showcase-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .product-showcase-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .product-showcase-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    /* Shine Effect */
    .product-showcase-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
        z-index: 1;
        pointer-events: none;
    }

    .product-showcase-card:hover::before {
        left: 100%;
    }
