/* ============================================ */
/* ===== SECTION TITLE (Common) ===== */
/* ============================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 800;
    color: #1e272e;
}

.section-title h2 span {
    color: #ff4757;
    position: relative;
}

.section-title h2 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 71, 87, 0.15);
    border-radius: 4px;
}

.section-title p {
    color: #747d8c;
    font-size: 17px;
    margin-top: 8px;
}

/* ============================================ */
/* ===== 1. CATEGORIES SECTION ===== */
/* ============================================ */
.categories-section {
    padding: 0px 8%;
    background: #ffffff;
}
.categories-container {
    max-width: 1300px;
    margin: 0 auto;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}
.category-card {
    background: #ffffff;
    padding: 35px 20px 30px;
    text-align: center;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s ease;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #ff4757;
}
.category-card .category-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}
.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e272e;
    margin-bottom: 4px;
}
.category-card p {
    font-size: 14px;
    color: #747d8c;
    margin-bottom: 8px;
}
.category-card .category-count {
    font-size: 12px;
    font-weight: 600;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
}

/* ============================================ */
/* ===== 2. PRODUCTS SECTION (12 Products) ===== */
/* ============================================ */
.products-section {
    padding: 0px 8%;
    background: #f8f9fa;
}
.products-container {
    max-width: 1300px;
    margin: 0 auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #ff4757;
}
.product-card .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
    color: #ffffff;
}
.product-card .badge.hot { background: #ff4757; box-shadow: 0 4px 15px rgba(255,71,87,0.3); }
.product-card .badge.new { background: #2ecc71; box-shadow: 0 4px 15px rgba(46,204,113,0.3); }
.product-card .badge.bestseller { background: #f39c12; box-shadow: 0 4px 15px rgba(243,156,18,0.3); }
.product-card .wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 5;
    color: #ccc;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .wishlist-btn:hover {
    background: #ff4757;
    color: #ffffff;
    transform: scale(1.1);
}
.product-img {
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-details {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-details .category-tag {
    font-size: 12px;
    color: #747d8c;
    margin-bottom: 4px;
    display: block;
}
.product-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e272e;
    margin-bottom: 6px;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-details .rating {
    color: #ffb703;
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 20px;
}
.product-details .rating span {
    color: #747d8c;
    font-size: 12px;
    margin-left: 4px;
}
.product-details .price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    min-height: 30px;
}
.product-details .price-current {
    font-size: 18px;
    font-weight: 700;
    color: #ff4757;
}
.product-details .price-original {
    font-size: 13px;
    color: #b0b0b0;
    text-decoration: line-through;
}
.product-details .price-discount {
    font-size: 11px;
    font-weight: 600;
    color: #2ecc71;
    background: rgba(46,204,113,0.12);
    padding: 2px 10px;
    border-radius: 20px;
}
.product-details .add-cart-btn {
    width: 100%;
    padding: 11px;
    background: #1e272e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}
.product-details .add-cart-btn:hover {
    background: #ff4757;
    transform: scale(1.02);
}

/* ============================================ */
/* ===== 3. SPECIAL OFFERS SECTION ===== */
/* ============================================ */
.offers-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
}
.offers-container {
    max-width: 1300px;
    margin: 0 auto;
}
.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.offer-card {
    background: #ffffff;
    padding: 35px 25px 30px;
    text-align: center;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    transition: all 0.4s ease;
}
.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #ff4757;
}
.offer-card .offer-icon {
    font-size: 44px;
    margin-bottom: 12px;
    display: block;
}
.offer-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e272e;
    margin-bottom: 6px;
}
.offer-card p {
    font-size: 14px;
    color: #747d8c;
    margin-bottom: 12px;
}
.offer-card .offer-discount {
    display: inline-block;
    background: #ff4757;
    color: #ffffff;
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}
.offer-card .offer-btn {
    display: block;
    color: #ff4757;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.offer-card .offer-btn:hover {
    color: #e03d4f;
    transform: translateX(5px);
}

/* ============================================ */
/* ===== 4. TESTIMONIALS SECTION ===== */
/* ============================================ */
.testimonials-section {
    padding: 80px 8%;
    background: #f8f9fa;
}
.testimonials-container {
    max-width: 1300px;
    margin: 0 auto;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.testimonial-card {
    background: #ffffff;
    padding: 28px 22px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: #ff4757;
}
.testimonial-card .testimonial-stars {
    color: #ffb703;
    font-size: 14px;
    margin-bottom: 12px;
}
.testimonial-card p {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 16px;
}
.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-card .testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card .testimonial-author h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e272e;
}
.testimonial-card .testimonial-author span {
    font-size: 13px;
    color: #747d8c;
}

/* ============================================ */
/* ===== RESPONSIVE ===== */
/* ============================================ */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-grid,
    .offers-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .categories-section,
    .products-section,
    .offers-section,
    .testimonials-section {
        padding: 50px 5%;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-grid,
    .offers-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .categories-section,
    .products-section,
    .offers-section,
    .testimonials-section {
        padding: 40px 4%;
    }
    .section-title h2 {
        font-size: 22px;
    }
    .section-title p {
        font-size: 14px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-card {
        padding: 20px 12px;
    }
    .category-card .category-icon {
        font-size: 32px;
    }
    .category-card h3 {
        font-size: 14px;
    }
    .product-grid,
    .offers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-img {
        height: 150px;
    }
    .product-details {
        padding: 12px 14px 16px;
    }
    .product-details h3 {
        font-size: 13px;
        min-height: 36px;
    }
    .product-details .price-current {
        font-size: 15px;
    }
    .product-details .add-cart-btn {
        font-size: 12px;
        padding: 10px;
    }
    .product-card .badge {
        font-size: 9px;
        padding: 2px 10px;
        top: 10px;
        left: 10px;
    }
    .product-card .wishlist-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
        top: 10px;
        right: 10px;
    }
    .offers-grid {
        grid-template-columns: 1fr 1fr;
    }
    .offer-card {
        padding: 22px 16px;
    }
    .offer-card h3 {
        font-size: 16px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}


