/* ============================================
   PRODUCTS SECTION - Premium Design
   ============================================ */

.products-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFF9F5 0%, #FFFFFF 50%, #FFF5F2 100%);
    position: relative;
    overflow: hidden;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.1), rgba(249, 115, 22, 0.1));
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 50px;
    color: #DC2626;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.products-grid-row {
    display: grid;
    gap: 30px;
    justify-content: center;
    margin: 0 auto;
    justify-items: center;
}

.products-grid-row-3 {
    grid-template-columns: repeat(3, 350px);
}

.products-grid-row-2 {
    grid-template-columns: repeat(2, 350px);
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.2);
}

/* Product Image */
.product-image-container {
    position: relative;
    background: linear-gradient(135deg, #FFF9F5 0%, #FFF5F2 100%);
    padding: 30px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img {
    transform: scale(1.1) rotate(2deg);
}

/* Product Badges */
.product-badge-new,
.product-badge-popular,
.product-badge-premium,
.product-badge-bestseller,
.product-badge-natural {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-badge-new {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}

.product-badge-popular {
    background: linear-gradient(135deg, #F97316, #FB923C);
}

.product-badge-premium {
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
}

.product-badge-bestseller {
    background: linear-gradient(135deg, #2563EB, #60A5FA);
}

.product-badge-natural {
    background: linear-gradient(135deg, #16A34A, #4ADE80);
}

/* Product Info */
.product-info {
    padding: 25px;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #DC2626;
}

.product-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.product-size {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Product Footer */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px dashed rgba(220, 38, 38, 0.1);
}

.product-footer .product-price {
    font-size: 26px !important;
    font-weight: 800 !important;
    background: linear-gradient(120deg, #DC2626, #F97316) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    white-space: nowrap;
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Add to Cart Button */
.btn-add-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(120deg, #DC2626, #F97316);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-cart span {
    color: white;
    position: relative;
    z-index: 1;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-add-cart:hover::before {
    left: 100%;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart i {
    font-size: 16px;
    color: white;
    position: relative;
    z-index: 1;
}

/* View All Button */
.products-cta {
    text-align: center;
    margin-top: 20px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: white;
    color: #DC2626;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-view-all:hover {
    background: linear-gradient(120deg, #DC2626, #F97316);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199px) {
    .products-grid-row-3 {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
    
    .products-grid-row-2 {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .products-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .products-grid-row-3,
    .products-grid-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .products-grid {
        gap: 20px;
    }
    
    .products-grid-row-3,
    .products-grid-row-2 {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .btn-add-cart span {
        display: none;
    }
    
    .btn-add-cart {
        padding: 12px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    .btn-add-cart i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-badge {
        font-size: 12px;
        padding: 6px 18px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .product-price {
        font-size: 22px;
    }
    
    .btn-view-all {
        width: 100%;
        justify-content: center;
    }
}
