/* 
 * 7Kun Online Market — Ultra Premium E-Commerce Design System
 * Glassmorphism | Micro-Animations | Dynamic Gradients | Premium UX
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS & CSS VARIABLES
   ============================================================ */
:root {
    --primary: #7000ff;
    --primary-hover: #5b00d6;
    --primary-dark: #4700a8;
    --primary-light: #f0e6ff;
    --primary-glow: rgba(112, 0, 255, 0.25);
    --primary-gradient: linear-gradient(135deg, #7000ff 0%, #8017ff 50%, #5b00d6 100%);
    
    --accent: #ff0055;
    --accent-light: #ffe6ee;
    --accent-gradient: linear-gradient(135deg, #ff0055 0%, #ff3377 100%);
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    
    --danger: #ef4444;
    --danger-light: #fee2e2;
    
    --info: #3b82f6;
    --info-light: #dbeafe;

    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --bg-body: #f8f9fc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-input: #f1f5f9;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(112, 0, 255, 0.08);
    --shadow-lg: 0 16px 36px rgba(112, 0, 255, 0.12);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 30px rgba(112, 0, 255, 0.35);
    --shadow-card-hover: 0 16px 40px rgba(112, 0, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
    
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-normal: 0.35s var(--ease-smooth);
    --transition-slow: 0.5s var(--ease-smooth);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ============================================================
   SMOOTH SCROLL & FOCUS
   ============================================================ */
html { scroll-behavior: smooth; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* ============================================================
   HEADER / NAVBAR — Glassmorphism
   ============================================================ */
.navbar-custom {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 14px 0;
    transition: var(--transition-normal);
}

.navbar-custom.scrolled {
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.03);
    color: var(--primary-hover);
}

.brand-logo i {
    font-size: 1.8rem;
    animation: cartBounce 2s ease-in-out infinite;
}

@keyframes cartBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.brand-logo span { color: var(--text-primary); }

/* Search Bar */
.search-bar-wrap {
    position: relative;
    max-width: 440px;
    width: 100%;
    margin: 0 16px;
}

.search-bar-wrap input {
    width: 100%;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    padding: 12px 22px 12px 48px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.search-bar-wrap input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-bar-wrap input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-glow);
    outline: none;
    transform: scale(1.01);
}

.search-bar-wrap .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: var(--transition-fast);
}

.search-bar-wrap input:focus ~ .search-icon,
.search-bar-wrap input:focus + .search-icon {
    color: var(--primary);
}

/* Cart Button */
.cart-btn {
    position: relative;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-normal);
    overflow: hidden;
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cart-btn:hover {
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-btn > * { position: relative; z-index: 1; }

.cart-btn .badge-count {
    background: var(--danger);
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ============================================================
   HERO BANNER — Animated Gradient
   ============================================================ */
.hero-banner {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border-radius: var(--radius-xl);
    color: #ffffff;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-glow);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-banner h1 {
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.15;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-banner p {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 16px;
    animation: slideDown 0.6s var(--ease-spring);
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   CATEGORY CARDS — Horizontal Scroll with Hover Effects
   ============================================================ */
.categories-section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title i {
    color: var(--primary);
    font-size: 1.3rem;
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    user-select: none;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-spring);
}

.category-card:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-card:hover::after,
.category-card.active::after {
    transform: scaleX(1);
}

.category-card.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.category-card.active::after {
    background: rgba(255, 255, 255, 0.4);
}

.category-card i {
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.category-card:hover i {
    transform: scale(1.2);
}

/* ============================================================
   PRODUCT CARDS — Premium with Hover Lift + Overlay
   ============================================================ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-smooth);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06));
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.12) rotate(2deg);
}

/* Image Overlay */
.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
}

.product-card:hover .product-img-overlay {
    opacity: 1;
}

.product-img-overlay .quick-view-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.82rem;
    transform: translateY(10px);
    transition: var(--transition-fast);
}

.product-card:hover .product-img-overlay .quick-view-btn {
    transform: translateY(0);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: badgePop 0.4s var(--ease-bounce);
    z-index: 2;
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Product Body */
.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.product-card:hover .product-title {
    color: var(--primary-dark);
}

.product-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 500;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.product-price .old-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* Add to Cart Button */
.btn-add-cart {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 2px solid transparent;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    padding: 3px;
    border: 2px solid var(--border);
    transition: var(--transition-fast);
}

.qty-control:hover {
    border-color: var(--primary);
}

.qty-btn {
    border: none;
    background: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.qty-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}

.qty-num {
    padding: 0 12px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

/* ============================================================
   SKELETON LOADING ANIMATION
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton-img { height: 210px; }
.skeleton-text { height: 16px; margin: 10px 18px; }
.skeleton-price { height: 22px; width: 80px; margin: 10px 18px; }

/* ============================================================
   SLIDE-OVER CART DRAWER — Glassmorphism
   ============================================================ */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.cart-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #ffffff;
    z-index: 1060;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transition: right 0.4s var(--ease-spring);
    border-left: 1px solid var(--border);
}

.cart-drawer.show {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.cart-header h5 {
    font-weight: 800;
}

.cart-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    animation: fadeInUp 0.3s var(--ease-smooth);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    padding: 4px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.cart-footer .btn-checkout {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cart-footer .btn-checkout::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s ease infinite;
}

@keyframes shine {
    0% { transform: translateX(-200%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

.cart-footer .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   TOAST NOTIFICATIONS — Animated
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-custom {
    background: var(--dark);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 22px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: toastSlideIn 0.4s var(--ease-spring), toastFadeOut 0.4s 2.6s forwards;
    max-width: 360px;
}

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* ============================================================
   CHECKOUT MODAL — Premium Glass Design
   ============================================================ */
.modal-content {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    box-shadow: var(--shadow-xl) !important;
}

.modal.fade .modal-dialog {
    transition: transform 0.35s var(--ease-spring), opacity 0.25s ease;
    transform: scale(0.92) translateY(30px);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: var(--primary-gradient) !important;
    border: none !important;
    padding: 20px 28px !important;
}

.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-label { font-weight: 700; color: var(--text-primary); }

/* ============================================================
   MOBILE BOTTOM NAVIGATION — Floating Glassmorphism
   ============================================================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-xl);
    z-index: 1010;
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    body { padding-bottom: 90px; }

    .mobile-nav a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        transition: var(--transition-fast);
        padding: 6px 12px;
        border-radius: var(--radius-sm);
    }

    .mobile-nav a i {
        font-size: 1.4rem;
        transition: var(--transition-fast);
    }

    .mobile-nav a.active,
    .mobile-nav a:hover {
        color: var(--primary);
    }
    
    .mobile-nav a.active i {
        transform: translateY(-4px) scale(1.1);
    }

    .hero-banner { padding: 30px 20px; }
    .hero-banner h1 { font-size: 1.8rem; }
}

/* ============================================================
   PAGE FADE-IN ANIMATION
   ============================================================ */
.fade-in {
    animation: fadeIn 0.6s var(--ease-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered product card animations */
.product-card { animation: cardAppear 0.5s var(--ease-smooth) backwards; }
.col-6:nth-child(1) .product-card { animation-delay: 0.05s; }
.col-6:nth-child(2) .product-card { animation-delay: 0.1s; }
.col-6:nth-child(3) .product-card { animation-delay: 0.15s; }
.col-6:nth-child(4) .product-card { animation-delay: 0.2s; }
.col-6:nth-child(5) .product-card { animation-delay: 0.25s; }
.col-6:nth-child(6) .product-card { animation-delay: 0.3s; }
.col-6:nth-child(7) .product-card { animation-delay: 0.35s; }
.col-6:nth-child(8) .product-card { animation-delay: 0.4s; }

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   BUTTONS — Primary & Secondary
   ============================================================ */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    font-weight: 700;
    transition: var(--transition-normal);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    color: #ffffff;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h5 {
    color: var(--text-secondary);
    margin-top: 16px;
    font-weight: 700;
}

/* ============================================================
   UZUM MARKET EXCLUSIVE COMPONENTS & ANIMATIONS
   ============================================================ */

/* 1. Top Announcement Ticker Bar */
.top-ticker-bar {
    background: linear-gradient(90deg, #7000ff 0%, #ff0055 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 0;
    text-align: center;
    letter-spacing: 0.2px;
}

.top-ticker-bar i { margin-right: 6px; }

/* 2. Flash Sale & Fast Delivery Badges */
.badge-fast-delivery {
    background: #f0e6ff;
    color: #7000ff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-discount-tag {
    background: #ff0055;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 85, 0.4);
}

.installment-pill {
    background: #fff8e6;
    color: #d97706;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    border: 1px solid #fef3c7;
    display: inline-block;
    margin-top: 4px;
}

/* 3. Wishlist Heart Button on Cards */
.btn-wishlist-card {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.btn-wishlist-card:hover {
    transform: scale(1.15);
    color: #ff0055;
    background: #ffffff;
}

.btn-wishlist-card.active {
    color: #ff0055;
    background: #ffffff;
    animation: heartPop 0.4s var(--ease-spring);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* 4. Free Shipping Progress Bar */
.free-shipping-progress {
    background: #f1f5f9;
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    margin: 8px 0 12px 0;
}

.free-shipping-bar {
    height: 100%;
    background: linear-gradient(90deg, #7000ff 0%, #10b981 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s var(--ease-smooth);
}

/* 5. Rating Stars */
.star-rating {
    color: #ffc107;
    font-size: 0.85rem;
}

.star-rating i { margin-right: 1px; }

/* 6. Receipt Upload Area */
.receipt-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: var(--transition-normal);
}

.receipt-upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
