/**
 * Homepage Enhancements
 * UI/UX improvements for better section identification and visual appeal
 */

/* ==========================================
   SECTION BACKGROUNDS & COLOR SCHEMES
   ========================================== */
.bg-gradient-categories {
    background: linear-gradient(135deg, #2C5F2D 0%, #1a3a1b 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.bg-gradient-categories .section-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 38px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.bg-gradient-categories .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.bg-popular-section {
    background: linear-gradient(135deg, #F8F3ED 0%, #FFFFFF 100%);
    position: relative;
}

.bg-deals-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFEEDD 100%);
    position: relative;
}

/* ==========================================
   CATEGORY CARD HORIZONTAL (7x1 LAYOUT)
   ========================================== */
.category-card-horizontal {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    position: relative;
    height: 140px;
}

.category-card-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2C5F2D, #D4A574);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card-horizontal:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 45px rgba(44, 95, 45, 0.2);
}

.category-card-horizontal:hover::before {
    opacity: 1;
}

.category-image-wrapper {
    width: 180px;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card-horizontal:hover .category-image {
    transform: scale(1.15);
}

.category-content {
    flex: 1;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.category-icon-large {
    font-size: 42px;
    color: #2C5F2D;
    transition: all 0.4s ease;
    min-width: 60px;
}

.category-card-horizontal:hover .category-icon-large {
    color: #D4A574;
    transform: scale(1.1) rotate(5deg);
}

.category-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.category-card-horizontal:hover .category-name-large {
    color: #2C5F2D;
}

.category-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    opacity: 0.8;
}

.category-arrow {
    position: absolute;
    right: 35px;
    font-size: 24px;
    color: #D4A574;
    transition: all 0.4s ease;
}

.category-card-horizontal:hover .category-arrow {
    transform: translateX(10px);
    color: #2C5F2D;
}

/* ==========================================
   SECTION TITLES WITH COLORS
   ========================================== */
.section-title-popular {
    color: #2C5F2D;
    position: relative;
    display: inline-block;
}

.section-title-popular::after {
    background: linear-gradient(90deg, #2C5F2D, #D4A574);
}

.section-subtitle-popular {
    color: #666;
    font-size: 16px;
}

.section-title-deals {
    color: #D4A574;
    position: relative;
    display: inline-block;
}

.section-title-deals::after {
    background: linear-gradient(90deg, #D4A574, #C4A572);
}

.section-subtitle-deals {
    color: #666;
    font-size: 16px;
}

/* ==========================================
   HERO SECTION ENHANCEMENTS
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #F5F5F0 0%, #FFFFFF 50%, #F8F3ED 100%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 165, 116, 0.1), transparent);
}

/* ==========================================
   PROMO BANNER ENHANCEMENTS
   ========================================== */
.promo-banner-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F0 100%);
}

/* ==========================================
   SUSTAINABILITY SECTION
   ========================================== */
.sustainability-section {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
}

/* ==========================================
   CUSTOM SKINCARE SECTION
   ========================================== */
.custom-skincare-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFEEDD 100%);
}

/* ==========================================
   SMOOTH ANIMATIONS
   ========================================== */
@keyframes smoothFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes smoothSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.smooth-fade-in {
    animation: smoothFadeInUp 0.8s ease-out forwards;
}

.smooth-slide-in {
    animation: smoothSlideIn 0.8s ease-out forwards;
}

/* Staggered animation delays */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .category-card-horizontal {
        height: 120px;
    }
    
    .category-image-wrapper {
        width: 140px;
        height: 120px;
    }
    
    .category-content {
        padding: 20px 25px;
        gap: 15px;
    }
    
    .category-icon-large {
        font-size: 36px;
        min-width: 50px;
    }
    
    .category-name-large {
        font-size: 20px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .category-arrow {
        right: 25px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .category-card-horizontal {
        height: 100px;
    }
    
    .category-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .category-content {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .category-icon-large {
        font-size: 28px;
        min-width: 40px;
    }
    
    .category-name-large {
        font-size: 18px;
    }
    
    .category-description {
        display: none;
    }
    
    .category-arrow {
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .category-card-horizontal {
        height: 90px;
        flex-direction: column;
        height: auto;
        text-align: center;
    }
    
    .category-image-wrapper {
        width: 100%;
        height: 150px;
    }
    
    .category-content {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .category-arrow {
        position: static;
        margin-top: 10px;
    }
}

/* ==========================================
   PRODUCT CARD HOVER ENHANCEMENTS
   ========================================== */
.glass-product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-product-card:hover {
    transform: translateY(-12px) scale(1.03);
}

.product-image {
    transition: transform 0.6s ease;
}

.glass-product-card:hover .product-image {
    transform: scale(1.1);
}

/* ==========================================
   SECTION PADDING ADJUSTMENTS
   ========================================== */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* ==========================================
   LOADING SHIMMER EFFECT
   ========================================== */
.shimmer-wrapper {
    position: relative;
    overflow: hidden;
}

.shimmer-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ==========================================
   CATEGORY CARD GRID (4x2 LAYOUT)
   ========================================== */
.category-card {
    display: block;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    height: 300px;
}

.glass-category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.category-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(44, 95, 45, 0.3);
    border-color: rgba(212, 165, 116, 0.6);
}

.category-card .category-image-wrapper {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
}

.category-card .category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-image {
    transform: scale(1.15) rotate(2deg);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 95, 45, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-card .category-content {
    padding: 22px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    min-height: 130px;
}

.category-card .category-icon {
    font-size: 36px;
    color: #2C5F2D;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.category-card:hover .category-icon {
    color: #D4A574;
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(212, 165, 116, 0.3));
}

.category-card .category-name {
    font-size: 19px;
    font-weight: 700;
    color: #2C5F2D;
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

.category-card:hover .category-name {
    color: #1a3a1b;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-card .category-arrow {
    position: absolute;
    bottom: 22px;
    right: 22px;
    font-size: 20px;
    color: #D4A574;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #2C5F2D;
}

/* Responsive for category cards */
@media (max-width: 991px) {
    .category-card {
        height: 270px;
    }
    
    .category-card .category-image-wrapper {
        height: 150px;
    }
    
    .category-card .category-content {
        padding: 18px 15px;
        min-height: 120px;
    }
    
    .category-card .category-icon {
        font-size: 32px;
    }
    
    .category-card .category-name {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .category-card {
        height: 250px;
    }
    
    .category-card .category-image-wrapper {
        height: 140px;
    }
    
    .category-card .category-content {
        padding: 16px 12px;
        min-height: 110px;
    }
    
    .category-card .category-icon {
        font-size: 30px;
        margin-bottom: 6px;
    }
    
    .category-card .category-name {
        font-size: 16px;
        font-weight: 700;
    }
    
    .category-card .category-arrow {
        font-size: 18px;
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 576px) {
    .category-card {
        height: 240px;
    }
    
    .category-card .category-image-wrapper {
        height: 130px;
    }
    
    .category-card .category-content {
        padding: 15px 10px;
        min-height: 110px;
    }
    
    .category-card .category-icon {
        font-size: 28px;
    }
    
    .category-card .category-name {
        font-size: 15px;
    }
}
