/* =============================================
   EZZAN - PUBLIC PAGES STYLES (WHITE + CHERRY RED THEME)
   ============================================= */

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */
.section-padding {
    padding: 3rem 0;
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FF4757;
    background: #FFF0F2;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-xl);
    margin-bottom: 0.75rem;
}

.section-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF4757, #E0394A);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-base);
    color: #6B7280;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   HERO BANNER — Clean & Modern
   ============================================ */
.hero-banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: visible !important;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    max-width: 600px;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn-accent {
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.35);
    transition: all 0.3s ease;
}

.hero-actions .btn-accent:hover {
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   POPULAR CATEGORIES
   ============================================ */
.popular-categories {
    background: #FFFFFF;
}

/* ============================================
   FEATURED PRODUCTS
   ============================================ */
.featured-products {
    background: linear-gradient(180deg, #FFF0F2 0%, #FFFFFF 100%);
}

/* ============================================
   CTA / NEWSLETTER — Cherry Red
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #E0394A 0%, #FF4757 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-wrapper {
    position: relative;
    z-index: 1;
}

.cta-heading {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.cta-text {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-group .form-control {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-family: var(--font-primary);
    padding: 0.75rem 1.25rem;
}

.newsletter-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group .form-control:focus {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.newsletter-input-group .btn-accent {
    white-space: nowrap;
}

.newsletter-message {
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
}

/* ============================================
   CATEGORY CARD — Smooth + Glow
   ============================================ */
.category-card {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #F3F4F6;
    background: #FFFFFF;
}

.category-card:hover {
    border-color: rgba(255, 71, 87, 0.3);
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 30px rgba(255, 71, 87, 0.08);
}

.category-card .card-img-top {
    transition: transform 0.5s ease;
}

.category-card:hover .card-img-top {
    transform: scale(1.05);
}

.category-card .card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: color 0.2s ease;
}

.category-card:hover .card-title {
    color: #FF4757;
}

/* ============================================
   FOOTER — Cherry Red
   ============================================ */
.footer {
    background-color: #FF4757;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: auto;
    border-top: 1px solid #E0394A;
}

.footer h5 {
    color: #FFFFFF;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: #FFE0E4;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
}

.footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.65);
}

.footer .footer-bottom a:hover {
    color: #FFFFFF;
}

/* ============================================
   PRODUCT CARD HOME — Light Theme with Cherry Red Accent
   ============================================ */
.product-card-home {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid #E5E7EB;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-home:hover {
    border-color: rgba(255, 71, 87, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 30px rgba(255, 71, 87, 0.1);
    transform: translateY(-4px);
}

.product-card-home-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #F9FAFB;
}

.product-card-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-home:hover .product-card-home-img img {
    transform: scale(1.08);
}

.product-card-home-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #FF4757;
    color: #FFFFFF;
    z-index: 2;
}

.product-card-home-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-home-stats {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-card-home-terjual {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6B7280;
}

.product-card-home-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-home-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card-home-price {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #FF4757;
}

.product-card-home-cart {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFF0F2;
    border: none;
    color: #FF4757;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.product-card-home-cart:hover {
    background: #FF4757;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.35);
}

@media (max-width: 767.98px) {
    .product-card-home-body {
        padding: 0.75rem;
    }

    .product-card-home-name {
        font-size: 0.75rem;
    }

    .product-card-home-price {
        font-size: var(--font-size-sm);
    }

    .product-card-home-cart {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .product-card-home-terjual {
        font-size: 0.6rem;
    }
}

/* ============================================
   VARIANT WATERMARK (OUT OF STOCK)
   ============================================ */
.variant-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 5;
}

/* ============================================
   DISCOUNT STRIKETHROUGH
   ============================================ */
.price-original {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-right: 0.4rem;
}

.price-discount {
    color: #DC2626;
    font-weight: 700;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #DC2626;
    color: #FFFFFF;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.6rem;
    font-weight: 700;
    z-index: 2;
}

/* ============================================
   PRODUCT CARD DISCOUNT ICON
   ============================================ */
.product-card-discount-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4757, #FF6B81);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 3;
    cursor: help;
    box-shadow: 0 3px 12px rgba(255, 71, 87, 0.5);
    animation: pulse-discount 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-discount {
    0%, 100% { box-shadow: 0 3px 12px rgba(255, 71, 87, 0.5); }
    50% { box-shadow: 0 3px 20px rgba(255, 71, 87, 0.8); }
}

.product-card-discount-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #F9FAFB;
    color: #1F2937;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    z-index: 9999;
    pointer-events: auto;
    border: 1px solid #D1D5DB;
}

/* ============================================
   PRODUCT CARD CART BUTTON
   ============================================ */
.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 0.5rem;
}

.product-card-cart-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFF0F2;
    border: none;
    color: #FF4757;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.product-card-cart-btn:hover {
    background: #FF4757;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .hero-banner {
        min-height: 60vh;
    }
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 767.98px) {
    .hero-banner {
        min-height: 70vh;
    }
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    .hero-actions {
        flex-direction: column;
    }
    .section-padding {
        padding: 2rem 0;
    }
    .section-title {
        font-size: var(--font-size-2xl);
    }
    .cta-heading {
        font-size: var(--font-size-2xl);
        margin-bottom: 1rem;
    }
    .newsletter-input-group {
        flex-direction: column;
    }
}