/* ============================================
   BELANJA PAGE - CUSTOM STYLES
   ============================================ */

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--crimson) 150%);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--crimson);
    color: #fff;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
}

.promo-desc {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.promo-desc strong {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.promo-decoration {
    position: relative;
    z-index: 1;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--sky);
    color: var(--sky);
    background: rgba(14, 165, 233, 0.05);
}

.category-tab.active {
    background: var(--sky);
    border-color: var(--sky);
    color: #fff;
}

.category-tab i {
    font-size: 1rem;
}

/* ============================================
   PRODUCT SECTION
   ============================================ */
.product-section {
    margin-bottom: 2.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sky);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--sky) 0%, var(--sky-light) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card.premium-card:hover {
    border-color: #a855f7;
}

.product-card.premium-card::before {
    background: linear-gradient(90deg, #a855f7 0%, #c084fc 100%);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.product-badge.bestseller {
    background: rgba(251, 191, 36, 0.15);
    color: #f59e0b;
}

.product-badge.new {
    background: rgba(14, 165, 233, 0.15);
    color: var(--sky);
}

.product-badge.premium {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

/* Product Icon */
.product-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.product-icon.exam {
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-light) 100%);
}

.product-icon.private {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
}

/* Product Info */
.product-info {
    flex: 1;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-meta i {
    font-size: 0.6875rem;
    color: var(--sky);
}

/* Product Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.product-features span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.product-features i {
    color: #22c55e;
    font-size: 0.6875rem;
}

/* Product Pricing */
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--crimson);
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-add-cart:hover {
    background: var(--sky);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-add-cart.premium {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

.btn-add-cart.premium:hover {
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* ============================================
   FADE IN ANIMATION
   ============================================ */
.fade-in {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation */
.product-card:nth-child(1) {
    animation-delay: 0ms;
}

.product-card:nth-child(2) {
    animation-delay: 50ms;
}

.product-card:nth-child(3) {
    animation-delay: 100ms;
}

.product-card:nth-child(4) {
    animation-delay: 150ms;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .promo-title {
        font-size: 1.25rem;
    }

    .promo-decoration {
        display: none;
    }

    .category-tabs {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-card {
        padding: 1.25rem;
    }

    .product-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .product-title {
        font-size: 0.9375rem;
    }

    .price-current {
        font-size: 1.125rem;
    }

    .category-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .category-tab span:not(:first-child) {
        display: none;
    }
}