/**
 * Modern Homepage Styles v3.1.1
 * Professional design system for homepage sections
 */

/* ====================================
   TRUST BAR MODERN
   ==================================== */
.trust-bar-modern {
    padding: 80px 0;
    background: #f9fafb;
}

.trust-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.trust-card-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trust-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.trust-card-modern__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(232, 25, 44, 0.1) 0%, rgba(232, 25, 44, 0.05) 100%);
    border-radius: 16px;
    color: #e8192c;
}

.trust-card-modern__content {
    flex: 1;
}

.trust-card-modern__title {
    font-size: 18px;
    font-weight: 700;
    color: #0d0d0d;
    margin: 0 0 4px;
}

.trust-card-modern__text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Override old trust bar styles */
.trust-bar.section-sm {
    padding: 80px 0 !important;
    background: #f9fafb !important;
}

.trust-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 24px !important;
}

.trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 32px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.trust-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-4px) !important;
}

.trust-item svg {
    flex-shrink: 0 !important;
    width: 64px !important;
    height: 64px !important;
    padding: 18px !important;
    background: linear-gradient(135deg, rgba(232, 25, 44, 0.1) 0%, rgba(232, 25, 44, 0.05) 100%) !important;
    border-radius: 16px !important;
    color: #e8192c !important;
    stroke-width: 2 !important;
}

.trust-item div {
    flex: 1 !important;
}

.trust-item strong {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0d0d0d !important;
    margin-bottom: 4px !important;
}

.trust-item span {
    display: block !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}

/* ====================================
   CATEGORIES MODERN
   ==================================== */
.category-section {
    padding: 100px 0 !important;
    background: #ffffff !important;
}

.category-section .section-title {
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #0d0d0d !important;
    margin-bottom: 12px !important;
}

.category-section .section-subtitle {
    font-size: 18px !important;
    color: #6b7280 !important;
    margin-bottom: 48px !important;
}

.category-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 24px !important;
}

.category-card {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s ease !important;
    aspect-ratio: 1 / 1 !important;
}

.category-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-6px) scale(1.02) !important;
}

.category-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.category-card:hover img {
    transform: scale(1.1) !important;
}

.category-card__overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.7) 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 24px !important;
}

.category-card__name {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.category-card__count {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: 4px !important;
}

/* ====================================
   FEATURED PRODUCTS MODERN
   ==================================== */
.featured-products-section {
    padding: 100px 0 !important;
    background: #f9fafb !important;
}

.featured-products-section .section-title {
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #0d0d0d !important;
}

.featured-products-section .section-subtitle {
    font-size: 18px !important;
    color: #6b7280 !important;
}

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 28px !important;
}

.product-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-6px) !important;
}

.product-card__image {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #f3f4f6 !important;
}

.product-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08) !important;
}

.product-card__badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #0d0d0d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
}

.product-card__actions {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    opacity: 0 !important;
    transform: translateX(10px) !important;
    transition: all 0.3s ease !important;
}

.product-card:hover .product-card__actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.product-card__action-btn {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #374151 !important;
    cursor: pointer !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.product-card__action-btn:hover {
    background: #e8192c !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

.product-card__content {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-card__category {
    font-size: 13px !important;
    color: #e8192c !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

.product-card__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0d0d0d !important;
    margin: 0 0 12px !important;
    line-height: 1.4 !important;
}

.product-card__title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.product-card__title a:hover {
    color: #e8192c !important;
}

.product-card__rating {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.product-card__stars {
    color: #fbbf24 !important;
    font-size: 14px !important;
}

.product-card__rating-text {
    font-size: 13px !important;
    color: #6b7280 !important;
}

.product-card__price {
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #e5e7eb !important;
}

.product-card__price-current {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #e8192c !important;
}

.product-card__price-original {
    font-size: 16px !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
    margin-left: 12px !important;
}

/* ====================================
   PROMO BANNER MODERN
   ==================================== */
.promo-banner {
    padding: 80px 0 !important;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

.promo-banner::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -10% !important;
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(232, 25, 44, 0.15) 0%, transparent 70%) !important;
    border-radius: 50% !important;
}

.promo-banner__content {
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.promo-banner__badge {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: rgba(251, 191, 36, 0.2) !important;
    border: 2px solid #fbbf24 !important;
    color: #fbbf24 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 30px !important;
    margin-bottom: 24px !important;
    letter-spacing: 1px !important;
}

.promo-banner__title {
    font-size: 48px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
    line-height: 1.2 !important;
}

.promo-banner__subtitle {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 0 32px !important;
}

.promo-banner__timer {
    display: flex !important;
    justify-content: center !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
}

.timer-box {
    min-width: 100px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.timer-box__value {
    display: block !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.timer-box__label {
    display: block !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: uppercase !important;
    margin-top: 8px !important;
    letter-spacing: 0.5px !important;
}

/* ====================================
   TESTIMONIALS MODERN
   ==================================== */
.testimonials-section {
    padding: 100px 0 !important;
    background: #f9fafb !important;
}

.testimonials-section .section-title {
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #0d0d0d !important;
}

.testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 28px !important;
}

.testimonial-card {
    padding: 32px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

.testimonial-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-6px) !important;
}

.testimonial-card__header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.testimonial-card__avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #e8192c !important;
}

.testimonial-card__author {
    flex: 1 !important;
}

.testimonial-card__name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0d0d0d !important;
    margin: 0 0 4px !important;
}

.testimonial-card__product {
    font-size: 14px !important;
    color: #6b7280 !important;
}

.testimonial-card__stars {
    color: #fbbf24 !important;
    font-size: 18px !important;
    margin-bottom: 16px !important;
}

.testimonial-card__text {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    margin: 0 !important;
}

/* ====================================
   NEWSLETTER MODERN
   ==================================== */
.newsletter-section {
    padding: 80px 0 !important;
    background: linear-gradient(135deg, #e8192c 0%, #c41425 100%) !important;
}

.newsletter__content {
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.newsletter__title {
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 16px !important;
}

.newsletter__text {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 32px !important;
}

.newsletter__form {
    display: flex !important;
    gap: 12px !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.newsletter__input {
    flex: 1 !important;
    padding: 18px 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    backdrop-filter: blur(10px) !important;
}

.newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter__submit {
    padding: 18px 36px !important;
    background: #ffffff !important;
    color: #e8192c !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
}

.newsletter__submit:hover {
    background: #f3f4f6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .trust-bar-modern,
    .trust-bar.section-sm {
        padding: 60px 0 !important;
    }
    
    .trust-grid-modern,
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .trust-card-modern,
    .trust-item {
        padding: 24px !important;
    }
    
    .trust-card-modern__icon,
    .trust-item svg {
        width: 56px !important;
        height: 56px !important;
    }
    
    .category-section,
    .featured-products-section,
    .testimonials-section {
        padding: 60px 0 !important;
    }
    
    .category-section .section-title,
    .featured-products-section .section-title,
    .testimonials-section .section-title,
    .promo-banner__title,
    .newsletter__title {
        font-size: 32px !important;
    }
    
    .product-grid,
    .category-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 20px !important;
    }
    
    .promo-banner {
        padding: 60px 0 !important;
    }
    
    .promo-banner__timer {
        gap: 12px !important;
    }
    
    .timer-box {
        min-width: 80px !important;
        padding: 16px !important;
    }
    
    .timer-box__value {
        font-size: 32px !important;
    }
    
    .newsletter__form {
        flex-direction: column !important;
    }
    
    .newsletter__submit {
        width: 100% !important;
    }
}

/* Dark Mode Support */
.dark-mode .trust-card-modern,
.dark-mode .trust-item,
.dark-mode .product-card,
.dark-mode .testimonial-card {
    background: #1a1a1a !important;
}

.dark-mode .trust-card-modern__title,
.dark-mode .trust-item strong,
.dark-mode .product-card__title,
.dark-mode .testimonial-card__name {
    color: #ffffff !important;
}

.dark-mode .trust-card-modern__text,
.dark-mode .trust-item span,
.dark-mode .product-card__category,
.dark-mode .testimonial-card__text {
    color: rgba(255, 255, 255, 0.7) !important;
}
