/* ===========================
   SellCode Global Styles
   Premium Script Marketplace
   =========================== */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS Custom Properties === */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #34D399;
    --primary-soft: rgba(5, 150, 105, 0.1);
    --secondary: #0D9488;
    --secondary-soft: rgba(13, 148, 136, 0.1);
    --success: #10B981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --danger: #EF4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --info: #0EA5E9;
    --info-soft: rgba(14, 165, 233, 0.1);
    --dark: #1E293B;
    --dark-lighter: #334155;
    --light-bg: #F1F5F9;
    --lighter-bg: #F8FAFC;
    --text-dark: #334155;
    --text-muted: #94A3B8;
    --text-lighter: #CBD5E1;
    --border-color: #E2E8F0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --transition: all 0.3s ease;
}

/* === Base Styles === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--lighter-bg);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Navbar === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    color: #64748B !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-pills .nav-link.active {
    color: #fff !important;
}

.badge-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    background-color: var(--danger);
    border-radius: 50px;
}

/* === Notification Dropdown Items === */
.notification-dropdown { max-height: 350px; overflow-y: auto; min-width: 300px; }
.notification-item { display: block; padding: 10px 15px; border-bottom: 1px solid #eee; text-decoration: none; color: #333; transition: background 0.15s; }
.notification-item:hover { background: #f8f9fa; color: #333; text-decoration: none; }
.notification-title { font-size: 0.85rem; font-weight: 500; margin-bottom: 2px; }
.notification-time { font-size: 0.75rem; color: #999; }
.notification-empty { padding: 20px; text-align: center; color: #999; font-size: 0.85rem; }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* === Mobile Menu Drawer === */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

.navbar-drawer {
    /* Desktop: normal flex behavior */
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.drawer-header {
    display: none;
}

@media (max-width: 991.98px) {
    .navbar-drawer {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .navbar-drawer.open {
        right: 0;
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }

    .drawer-close-btn {
        background: none;
        border: none;
        font-size: 1.3rem;
        color: var(--text-dark);
        cursor: pointer;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .drawer-close-btn:hover {
        background: var(--light-bg);
        color: var(--danger);
    }

    .navbar-drawer .navbar-nav {
        flex-direction: column;
        padding: 0.75rem 0;
        width: 100%;
    }

    .navbar-drawer .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .navbar-drawer .navbar-nav .nav-link:hover {
        background: var(--primary-soft);
    }

    .navbar-drawer .ms-auto {
        border-top: 1px solid var(--border-color);
        padding: 1rem 1.25rem;
        margin: 0 !important;
    }

    .navbar-drawer .ms-auto .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-drawer .ms-auto .btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
    }

    .navbar-drawer .align-items-center {
        align-items: stretch !important;
    }
}

/* === Hero Section (Modern) === */
.hero-modern {
    position: relative;
    overflow: hidden;
    background: #0F172A;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #0F172A;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.7) 40%, rgba(5, 150, 105, 0.5) 100%);
    z-index: 1;
}

.min-vh-hero {
    min-height: 92vh;
}

/* Animated floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: heroFloat 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 5%;
    animation: heroFloat 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 20%;
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.1);
    animation: heroFloat 10s ease-in-out infinite;
}

.shape-4 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 35%;
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.08);
    animation: heroFloat 7s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

/* Hero badge pill */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 1.75rem;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.6s ease both;
}

.hero-badge-pill i {
    color: #F59E0B;
}

/* Hero heading */
.hero-heading {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-gradient-text {
    background: linear-gradient(135deg, #34D399 0%, #2DD4BF 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero description */
.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 2.25rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Hero CTA buttons */
.btn-hero-solid {
    display: inline-flex;
    align-items: center;
    padding: 15px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #0D9488);
    color: #fff;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-hero-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.55);
    color: #fff;
}

.btn-hero-glass {
    display: inline-flex;
    align-items: center;
    padding: 15px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease 0.35s both;
}

.btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: #fff;
}

/* Hero trust row */
.hero-trust-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.45s both;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    font-weight: 500;
}

.hero-trust-row i {
    color: #10B981;
    font-size: 0.8rem;
}

/* Glass card (right side) */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.4s both;
    transform: perspective(800px) rotateY(-2deg);
    transition: transform 0.4s ease;
}

.hero-glass-card:hover {
    transform: perspective(800px) rotateY(0deg) translateY(-5px);
}

.glass-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.glass-dot.red { background: #EF4444; }
.glass-dot.yellow { background: #F59E0B; }
.glass-dot.green { background: #10B981; }

.glass-card-title {
    margin-left: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.glass-card-body {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card-body code {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* Code typing animation */
.code-typing-area {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-cursor {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-weight: 300;
    font-size: 0.95rem;
    color: #34D399;
    animation: cursorBlink 0.6s step-end infinite;
    margin-left: 1px;
}

.typing-cursor.blink-only {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.code-keyword { color: #38BDF8; }
.code-var { color: #67E8F9; }
.code-func { color: #FCD34D; }
.code-num { color: #10B981; }
.code-str { color: #FCA5A5; }

.glass-stats {
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glass-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.glass-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    text-decoration: none;
    animation: heroBounce 2s ease-in-out infinite;
    transition: color 0.2s;
}

.hero-scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.8);
}

@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* Hero responsive */
@media (max-width: 991px) {
    .hero-heading { font-size: 3rem; }
    .min-vh-hero { min-height: 80vh; }
}

@media (max-width: 767px) {
    .hero-heading { font-size: 2.4rem; }
    .hero-desc { font-size: 1rem; }
    .min-vh-hero { min-height: auto; padding: 3rem 0 4rem; }
    .hero-badge-pill { margin-top: 1.5rem; }
    .hero-trust-row { display: none; }
    .btn-hero-solid, .btn-hero-glass { width: auto; padding: 12px 24px; font-size: 0.92rem; }
    .hero-bg { background-attachment: scroll; }
    .hero-shapes .shape { display: none; }
    .hero-scroll-indicator { display: none; }
    
    /* Center align hero content on mobile */
    .hero-modern .col-lg-7 {
        text-align: center;
    }
    
    .hero-modern .hero-badge-pill {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-modern .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-modern .d-flex.gap-3 {
        justify-content: center;
    }
}

/* Very small phones (iPhone 5/SE, 320px) */
@media (max-width: 374px) {
    .hero-heading { font-size: 1.9rem; }
    .hero-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .hero-badge-pill { font-size: 0.78rem; padding: 6px 14px; }
    .min-vh-hero .d-flex.gap-3 { gap: 0.5rem !important; flex-wrap: nowrap !important; }
    .btn-hero-solid, .btn-hero-glass { padding: 10px 16px; font-size: 0.82rem; white-space: nowrap; }
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 3rem 0;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--primary-light));
}

/* === Buttons === */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #065F46 100%);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* === Cards === */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* === Product Cards === */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.25);
    border-color: rgba(5, 150, 105, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

/* Product tech badge */
.product-tech-badge {
    background: rgba(5, 150, 105, 0.9);
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* Code accent on product image */
.product-card .card-img-container {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-container::after {
    content: '</>';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .card-img-container::after {
    opacity: 1;
    transform: translateY(0);
}

.product-card .card-img-container img {
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-container img {
    transform: scale(1.1);
}

.product-card .card-img-top,
.product-card .product-thumb {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.product-card .category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.35em 0.75em;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-card .price-badge {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover .price-badge {
    transform: scale(1.05);
    color: var(--primary-dark);
}

.product-card .star-rating {
    color: var(--warning);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.product-card .star-rating .empty {
    color: #E5E7EB;
}

/* Product card body enhancements */
.product-card .card-body {
    padding: 1.25rem;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.product-card h6 a {
    transition: color 0.3s ease;
    line-height: 1.4;
}

.product-card h6 a:hover {
    color: var(--primary) !important;
}

.product-card .card-body p {
    line-height: 1.6;
}

/* Enhanced button on product card */
.product-card .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.product-card .btn-outline-primary:hover::before {
    left: 100%;
}

.product-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Seller info styling */
.product-card .text-muted small {
    font-size: 0.8rem;
}

.product-card .verified-badge {
    color: var(--primary);
    margin-left: 2px;
    font-size: 0.75rem;
}

/* Wishlist button on product cards */
.product-card .wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.product-card .wishlist-btn:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-card .wishlist-btn i {
    font-size: 0.9rem;
}

/* === Category Cards === */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius-lg);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* === Top Sellers Cards - Modern Full Width === */
.top-sellers-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.seller-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    height: 100%;
}

.seller-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669 0%, #0D9488 50%, #10B981 100%);
    z-index: 1;
}

.seller-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.2);
    border-color: rgba(5, 150, 105, 0.2);
}

.seller-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.03) 0%, rgba(13, 148, 136, 0.05) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.seller-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    text-align: center;
}

.seller-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.seller-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.seller-avatar-wrapper img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.seller-card-modern:hover .seller-avatar-wrapper img {
    border-color: #059669;
    transform: scale(1.05);
}

.seller-verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #059669, #10B981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.seller-verified-badge i {
    color: #ffffff;
    font-size: 0.7rem;
}

.seller-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}

.seller-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.seller-username {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.seller-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #92400E;
    width: fit-content;
    margin-top: 0.25rem;
}

.seller-rating i {
    color: #F59E0B;
    font-size: 0.75rem;
}

.seller-card-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.seller-stats-group {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.seller-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    flex: 1;
}

.seller-card-modern:hover .seller-stat-box {
    background: #ffffff;
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.seller-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.seller-stat-box:first-child .seller-stat-icon {
    background: linear-gradient(135deg, #EEF2FF, #C7D2FE);
    color: #6366f1;
}

.seller-stat-box:last-child .seller-stat-icon {
    background: linear-gradient(135deg, #F0FDF4, #BBF7D0);
    color: #059669;
}

.seller-stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.seller-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.seller-stat-text {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seller-view-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #0D9488);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.seller-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    color: #ffffff;
}

.seller-view-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.seller-view-btn:hover i {
    transform: translateX(3px);
}

/* === Section Headings === */
.section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-heading.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Subtle dot pattern background for alternate sections */
.section-pattern-bg {
    background-color: #f8fafc;
    background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

/* === Footer === */
footer {
    background: var(--dark);
    color: var(--text-lighter);
}

footer a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

footer h5, footer h6 {
    color: #fff;
}

/* === Form Styles === */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.input-group-text {
    border-color: var(--border-color);
    background: var(--light-bg);
    color: var(--text-muted);
}

/* === Badge Styles === */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-sm);
}

.badge-status-pending {
    background: var(--warning-soft);
    color: #92400E;
}

.badge-status-approved,
.badge-status-completed,
.badge-status-paid,
.badge-status-verified,
.badge-status-active {
    background: var(--success-soft);
    color: #065F46;
}

.badge-status-rejected,
.badge-status-cancelled,
.badge-status-failed {
    background: var(--danger-soft);
    color: #991B1B;
}

.badge-status-processing,
.badge-status-review {
    background: var(--info-soft);
    color: #075985;
}

.badge-status-suspended {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

/* === Dropdown === */
.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

/* === Toast Notifications === */
.sc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.sc-toast.show {
    transform: translateX(0);
}

.sc-toast-content {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.sc-toast-success {
    background: #ECFDF5;
    color: #065F46;
    border-left: 4px solid var(--success);
}

.sc-toast-warning {
    background: #FFFBEB;
    color: #92400E;
    border-left: 4px solid var(--warning);
}

.sc-toast-danger {
    background: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

.sc-toast-info {
    background: #F0F9FF;
    color: #075985;
    border-left: 4px solid var(--info);
}

/* === Pagination === */
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.page-link {
    color: var(--primary);
    border-radius: var(--radius-sm);
    margin: 0 2px;
    border: 1px solid var(--border-color);
}

.page-link:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

/* === Tables === */
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    font-weight: 600;
    border-bottom-width: 1px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: var(--primary-soft);
}

/* === Tabs === */
.nav-tabs .nav-link {
    color: #64748B;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: none;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* === Step Icons === */
.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* === Testimonials === */
.testimonial-card {
    position: relative;
    overflow: visible;
    border-radius: var(--radius-lg);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    font-family: Georgia, serif;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* === Star Rating === */
.stars {
    color: var(--warning);
}

.stars .empty {
    color: #D1D5DB;
}

/* === Wishlist Button === */
.wishlist-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
}

.wishlist-btn:hover {
    color: var(--danger);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* === Stat Counter Cards (Homepage) === */
.stat-card {
    transition: transform 0.3s ease;
    border-radius: var(--radius-lg);
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Stat counter animation pulse */
.stat-card.counted .stat-value {
    animation: statPulse 0.3s ease;
}

@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === Accordion / FAQ === */
.faq-accordion .accordion-item {
    border: none;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    border-radius: var(--radius-lg) !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* === Utility Classes === */
.text-primary { color: var(--primary) !important; }
.bg-primary-soft { background: var(--primary-soft) !important; }
.bg-success-soft { background: var(--success-soft) !important; }
.bg-warning-soft { background: var(--warning-soft) !important; }
.bg-danger-soft { background: var(--danger-soft) !important; }
.bg-info-soft { background: var(--info-soft) !important; }
.bg-secondary-soft { background: var(--secondary-soft) !important; }

.fw-medium { font-weight: 500; }

.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.shadow-hover:hover {
    box-shadow: var(--shadow-md) !important;
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === Selection Color === */
::selection {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* === Lazy Load Images === */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* === Filter Sidebar === */
.filter-sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* === Contact Icons === */
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* === Contact Card === */
.contact-card {
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
}

/* === Related Product Cards === */
.related-card {
    transition: transform 0.3s ease;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.related-card:hover {
    transform: translateY(-5px);
}

/* === Review Stars (interactive) === */
.review-stars i {
    cursor: pointer;
    font-size: 1.25rem;
    color: #CBD5E1;
    transition: color 0.2s;
}

.review-stars i.active,
.review-stars i:hover {
    color: var(--warning);
}

/* === Screenshot Thumbnails === */
.product-image-gallery { 
    margin-top: 16px; 
    padding: 12px; 
    background: #F8FAFC; 
    border-radius: 12px; 
    border: 1px solid #E2E8F0; 
}

.screenshot-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.screenshot-thumb {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 3px solid #E2E8F0;
    background: #F1F5F9;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.screenshot-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.screenshot-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.3), 0 4px 8px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

/* === Product Main Image === */
.product-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: zoom-in;
    background: #F1F5F9;
    display: block;
}

/* === Shop Product Card === */
.shop-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shop-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

/* === Enhanced Category Cards with Background Images === */
.category-card-enhanced {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.category-card-enhanced .category-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1E293B;
    transition: transform 0.4s ease;
}

.category-card-enhanced:hover .category-bg {
    transform: scale(1.08);
}

.category-card-enhanced .category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 100%);
}

.category-card-enhanced .category-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    color: #fff;
    width: 100%;
}

.category-card-enhanced .category-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.category-card-enhanced .category-content small {
    color: rgba(255,255,255,0.7);
}

.category-card-enhanced .category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

/* === Verified Badge === */
.verified-badge {
    display: inline-flex;
    align-items: center;
    cursor: help;
}
.verified-badge i {
    color: #059669;
    font-size: 14px;
    margin-left: 4px;
}

/* ===========================
   Login Prompt Modal
   =========================== */
.login-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-prompt-overlay.show {
    opacity: 1;
    visibility: visible;
}

.login-prompt-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-prompt-overlay.show .login-prompt-card {
    transform: scale(1) translateY(0);
}

.login-prompt-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #0D9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.login-prompt-icon i {
    font-size: 2.5rem;
    color: white;
}

.login-prompt-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 0.75rem;
}

.login-prompt-message {
    font-size: 1rem;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.login-prompt-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-login-prompt {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login-prompt.btn-login {
    background: linear-gradient(135deg, #059669 0%, #0D9488 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-login-prompt.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.4);
}

.btn-login-prompt.btn-cancel {
    background: #F1F5F9;
    color: #64748B;
    border: 2px solid #E2E8F0;
}

.btn-login-prompt.btn-cancel:hover {
    background: #E2E8F0;
    color: #475569;
}

.login-prompt-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.login-prompt-footer p {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0;
}

.login-prompt-footer a {
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.login-prompt-footer a:hover {
    color: #047857;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-prompt-card {
        padding: 2rem 1.5rem;
    }
    
    .login-prompt-title {
        font-size: 1.5rem;
    }
    
    .login-prompt-buttons {
        flex-direction: column;
    }
    
    .login-prompt-icon {
        width: 70px;
        height: 70px;
    }
    
    .login-prompt-icon i {
        font-size: 2rem;
    }
}

/* ============================================
   AJAX SEARCH STYLES
   ============================================ */

.ajax-search-container {
    position: relative;
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.ajax-search-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search Groups */
.search-group {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.search-group:last-of-type {
    border-bottom: none;
}

.search-group-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
}

/* Search Items */
.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f8fafc;
}

.search-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 1rem;
    background: #f1f5f9;
}

.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-title mark {
    background: #fef08a;
    padding: 0 2px;
    border-radius: 2px;
}

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

.search-item-price {
    font-weight: 700;
    color: var(--primary);
}

.search-item-category {
    padding: 0.15rem 0.5rem;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.search-item-date {
    color: #94a3b8;
}

.search-item-email {
    color: #94a3b8;
}

/* Loading State */
.search-loading {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.search-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--primary);
}

/* No Results */
.search-no-results {
    padding: 3rem 1rem;
    text-align: center;
    color: #94a3b8;
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.3;
}

.search-no-results p {
    margin: 0;
    font-size: 0.95rem;
}

/* Error State */
.search-error {
    padding: 2rem 1rem;
    text-align: center;
    color: #ef4444;
}

.search-error i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.search-error p {
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.search-footer {
    padding: 1rem;
    text-align: center;
    border-top: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.search-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.search-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ajax-search-results {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-height: calc(100vh - 100px);
    }

    .search-item-image {
        width: 40px;
        height: 40px;
    }

    .search-item-title {
        font-size: 0.9rem;
    }
}
