@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Schoolbell&display=swap');

/* --- Index Page Redesign --- */

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.scroll-reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Page Wrapper */
.index-page-wrapper {
    background: #f8f9fa;
    /* geometric background pattern override or blend */
    background-image: radial-gradient(#e0f2fe 2px, transparent 2px);
    background-size: 40px 40px;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    min-height: 75vh;
    background: linear-gradient(135deg, rgba(75, 108, 183, 0.88), rgba(24, 40, 72, 0.94)), url('/images/student_hero_bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 35px;
    padding: 60px 5% 40px;
    margin-bottom: 0;
    overflow: hidden;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 12, 24, 0.96)), url('/images/student_hero_bg.jpg') no-repeat center center;
    background-size: cover;
}

.hero-bg-blob {
    position: absolute;
    width: 800px;
    height: 800px;
    background: var(--blob-color);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
    padding-right: 0;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Schoolbell', cursive !important;
    font-size: 84px !important;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    padding: 16px 36px;
    background: #ffffff;
    color: #1e3a8a !important;
    border-radius: 35px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 0 !important;
    outline: none !important;
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
    padding: 15px 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    border-radius: 35px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Floating Clean Cards for Hero */
.hero-carousel-container {
    position: relative;
    width: 600px;
    /* Much Bigger Width */
    height: 400px;
    /* Fixed Height */
    perspective: 1000px;
    margin: 0 auto;
    /* Center in visual area */
}

.hero-card {
    background: transparent;
    backdrop-filter: none;
    border-radius: 30px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;

    /* Horizontal Slide Setup */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);

    /* Default: Waiting on Right */
    transform: translateX(80%) scale(0.8);
    opacity: 0.5;
    z-index: 1;
    overflow: hidden;
}

.hero-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-card.prev {
    opacity: 0.5;
    transform: translateX(-80%) scale(0.8);
    z-index: 5;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    margin: 0;
    display: block;
}

/* Categories Section */
.categories-section {
    padding: 60px 5%;
    position: relative;
    background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.05), transparent 40%);
    /* Subtle tint */
}

.section-title {
    text-align: center;
    font-family: 'Schoolbell', cursive !important;
    font-size: 38px;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4b6cb7, transparent);
    border-radius: 2px;
}

.categories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    /* Spacing before search */
}

.category-card {
    background: var(--card-bg);
    /* Dynamic BG */
    border-radius: 25px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    /* Dynamic Shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border for dark mode */
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 108, 183, 0.15);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 36px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Enhanced Search Bar */
.search-filter {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.search-bar input {
    /* Reset from inline style */
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 16px;
    color: #333;
}

.search-bar select {
    border: none !important;
    background: #f0f2f5 !important;
    border-radius: 30px !important;
    font-weight: 600;
    color: #555;
    padding: 10px 20px !important;
}

.category-name {
    font-weight: 600;
    color: #333;
}

/* Featured Products & Grid */
.products-section {
    padding: 0 5% 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f2f5;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    background: #f8f9fa;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card-modern:hover img {
    transform: scale(1.08);
    /* Subtle zoom */
}

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s 0.1s;
    z-index: 10;
}

.product-card-modern:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.action-btn:hover {
    background: #4b6cb7;
    color: white;
    transform: scale(1.1);
}

.action-btn.active {
    color: #ff4757;
}

.card-info {
    padding: 20px;
}

.card-category {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #182848;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 18px;
    font-weight: 800;
    color: #4b6cb7;
}

.btn-add-minimal {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f0f2f5;
    color: #182848;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-minimal:hover {
    background: #182848;
    color: white;
    transform: rotate(90deg);
}

/* Dark Mode Specific Fixes */
[data-theme="dark"] .product-card-modern {
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .card-title {
    color: var(--text-color) !important;
}

[data-theme="dark"] .card-price {
    color: var(--primary-color);
}

[data-theme="dark"] .category-card:hover {
    background: rgba(255, 255, 255, 0.1);
    /* Darker hover */
    transform: translateY(-5px);
}

/* Fix Dropdown Options being bright */
[data-theme="dark"] option {
    background-color: #050510;
    /* Dark background for options */
    color: white;
}

/* Ensure Bottom Sections use variables */
[data-theme="dark"] .newsletter,
[data-theme="dark"] footer,
[data-theme="dark"] .categories-section,
[data-theme="dark"] .products-section {
    background: transparent !important;
    /* Allow body gradient to show */
    color: var(--text-color) !important;
    border-top: none;
}

.newsletter p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 18px;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter input {
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    flex: 1;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-subscribe {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-subscribe:hover {
    transform: scale(1.05);
    background: #ffea00;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 20px 100px;
    /* Extra bottom padding for scroll */
    text-align: center;
    background: transparent;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .contact-card {
    background: rgba(20, 10, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-card p {
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-card a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
    font-weight: 500;
}

.contact-card a:hover {
    color: #e91e63;
    text-decoration: underline;
}

/* Mobile Fix for Contact Grid */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 10px 80px;
        /* Less horizontal padding */
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns */
        gap: 10px;
        /* Tighter gap */
    }

    .contact-card {
        padding: 15px 10px;
        /* Smaller padding */
    }

    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .contact-card h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .contact-card p,
    .contact-card a {
        font-size: 12px;
    }
}

/* Seller Search & Browse (Phase 25) */
.seller-search-container input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

.seller-avatar-card {
    flex: 0 0 auto;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scroll-snap-align: start;
}

.seller-avatar-card:hover {
    transform: translateY(-5px);
}

.seller-avatar-card .avatar-wrapper {
    position: relative;
    width: 75px;
    height: 75px;
}

.seller-avatar-card img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .seller-avatar-card img {
    border-color: #334155;
}

.seller-avatar-card .verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #ffd700;
    background: #fff;
    border-radius: 50%;
    font-size: 1rem;
    border: 2px solid #fff;
}

[data-theme="dark"] .seller-avatar-card .verified-badge {
    background: #1e293b;
    border-color: #1e293b;
}

.seller-avatar-card .featured-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    color: #3b82f6;
    font-size: 0.9rem;
}

.seller-avatar-card .seller-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .seller-avatar-card .seller-name {
    color: #e2e8f0;
}

.seller-avatar-card:active {
    transform: scale(0.95) !important;
}

.sellers-listing-grid {
    animation: fadeInUp 0.6s ease-out;
}

.seller-card-full .btn-primary {
    transition: all 0.3s;
}

.seller-card-full:hover .btn-primary {
    background: #1e40af;
    transform: translateY(-2px);
}

/* Horizontal Scroll Snap for Sellers */
#featured-sellers-container {
    scroll-snap-type: x mandatory;
    padding-left: 5px;
    padding-right: 5px;
}

.seller-avatar-card {
    scroll-snap-align: center;
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 50px 20px;
        gap: 30px;
        overflow: hidden;
    }

    .hero-title {
        font-size: 52px !important;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .hero-carousel-container {
        width: 100%;
        max-width: 450px;
        height: 300px;
    }

    .hero-cta-group {
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        align-items: center;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .btn-primary,
    .btn-secondary {
        width: auto !important;
        padding: 12px 25px;
        font-size: 14px;
        display: inline-block;
        box-sizing: border-box;
        border: 0 !important;
        outline: none !important;
    }

    .section-title {
        font-family: 'Schoolbell', cursive !important;
        font-size: 32px !important;
        font-weight: 700;
        margin-bottom: 30px;
    }

    .search-filter {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
        padding: 15px;
        width: 95%;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar form {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input,
    .search-bar select {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-carousel-container {
        height: 220px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .categories-grid {
        gap: 15px;
    }

    .category-card {
        min-width: 120px;
        padding: 20px 15px;
    }

    .category-icon {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 0 5px;
    }

    .card-image-wrapper {
        height: 160px;
    }

    .card-info {
        padding: 12px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-price {
        font-size: 15px;
    }

    .newsletter form {
        flex-direction: column;
        width: 100%;
    }
}

/* Global Custom Popup System (Toast Notification for Alerts) */
.peculiar-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: 100%;
}

.peculiar-toast {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    color: white;
    padding: 8px 22px 8px 14px;
    border-radius: 50px;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: fit-content;
    max-width: 90%;
}

.peculiar-toast.toast-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.peculiar-toast.toast-success {
    background: rgba(46, 204, 113, 0.15);
    color: #86efac;
}

.peculiar-toast.toast-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fde047;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-hiding {
    opacity: 0 !important;
    transform: translateY(-100%) !important;
}

/* ===== HOMEPAGE REDESIGN V2 ===== */

/* --- Hero Carousel Swipe/Drag --- */
.hero-carousel-container {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.hero-carousel-container.dragging {
    cursor: grabbing;
}

.hero-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    z-index: 10;
    position: relative;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: #4b6cb7;
    border-color: #4b6cb7;
    transform: scale(1.3);
}

/* --- Marketplace Search Section --- */
.marketplace-search-section {
    padding: 15px 5%;
    max-width: 900px;
    margin: -10px auto 10px;
    position: relative;
    z-index: 5;
}

.marketplace-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.marketplace-search-bar:focus-within {
    border-color: rgba(75, 108, 183, 0.5);
    box-shadow: 0 8px 32px rgba(75, 108, 183, 0.15);
}

.marketplace-search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: var(--text-color, #333);
    font-size: 1rem;
    outline: none;
}

.marketplace-search-bar input::placeholder {
    color: #94a3b8;
}

.filter-icon-select {
    position: relative;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    color: var(--text-color, #333);
}

.filter-icon-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.filter-icon-select i {
    font-size: 1rem;
    transition: color 0.2s;
}

.filter-icon-select.active {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.filter-icon-select.active i {
    color: #f59e0b;
}

.filter-icon-select select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

[data-theme="dark"] .marketplace-search-bar {
    background: rgba(15, 23, 42, 0.6);
    border-color: transparent;
}

[data-theme="dark"] .marketplace-search-bar:focus-within {
    border-color: transparent;
}

[data-theme="dark"] .filter-icon-select {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: #e2e8f0;
}

[data-theme="dark"] .filter-icon-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: transparent;
}

[data-theme="dark"] .filter-icon-select select option {
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .filter-icon-select.active {
    border-color: transparent;
}

.search-btn-glass {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(75, 108, 183, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search-btn-glass:hover {
    background: rgba(75, 108, 183, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(75, 108, 183, 0.4);
}

/* --- Trending Now Horizontal Scroll --- */
.trending-section {
    padding: 10px 5% 15px;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
}

.trending-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.trending-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px 20px;
}

.trending-scroll-track::-webkit-scrollbar {
    display: none;
}

.trending-card {
    flex: 0 0 220px;
    background: var(--card-bg, white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.trending-card .trending-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.trending-card .trending-info {
    padding: 12px;
}

.trending-card .trending-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color, #182848);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.trending-card .trending-seller {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.trending-card .trending-price {
    font-size: 1rem;
    font-weight: 800;
    color: #4b6cb7;
}

[data-theme="dark"] .trending-card {
    border-color: rgba(255, 255, 255, 0.05);
}

/* --- Category Sections (Marketplace Redesign) --- */
.category-block {
    padding: 10px 5% 15px;
    max-width: 1300px;
    margin: 0 auto;
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-block-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color, #182848);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-block-title i {
    font-size: 1.1rem;
    color: #4b6cb7;
}

.btn-see-more {
    padding: 8px 20px;
    border-radius: 25px;
    border: 1.5px solid #4b6cb7;
    background: transparent;
    color: #4b6cb7;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-see-more:hover {
    background: #4b6cb7;
    color: white;
    transform: translateY(-2px);
}

.category-scroll-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 5px 15px;
    scroll-snap-type: x mandatory;
}

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

.category-scroll-track .product-card-modern {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

/* Expanded Grid styles for Category Blocks */
.category-block.expanded .category-scroll-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 20px;
}

.category-block.expanded .category-scroll-track .product-card-modern {
    flex: none;
    width: auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .category-block.expanded .category-scroll-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.btn-collapse-category {
    padding: 8px 20px;
    border-radius: 25px;
    border: 1.5px solid #e2e8f0;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-collapse-category:hover {
    background: #64748b;
    color: white;
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-collapse-category {
    border-color: rgba(255, 255, 255, 0.2);
    color: #94a3b8;
}

[data-theme="dark"] .btn-collapse-category:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Simplified Footer --- */
.site-footer-v2 {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #94a3b8;
    padding: 40px 5% 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 15px;
}

.footer-copyright .brand {
    color: #cbd5e1;
    font-weight: 600;
}

/* --- Responsive for new sections --- */
@media (max-width: 768px) {
    .marketplace-search-bar {
        flex-direction: row;
        border-radius: 30px;
        padding: 4px 4px 4px 14px;
        gap: 6px;
    }

    .marketplace-search-bar input[type="text"] {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .filter-icon-select {
        width: 36px;
        height: 36px;
    }

    .filter-icon-select i {
        font-size: 0.9rem;
    }

    .search-btn-glass {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .trending-card {
        flex: 0 0 170px;
    }

    .trending-card .trending-img {
        height: 120px;
    }

    .category-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-scroll-track .product-card-modern {
        flex: 0 0 180px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .hero-carousel-indicators {
        gap: 6px;
    }

    .hero-indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .marketplace-search-section {
        padding: 20px 15px;
    }

    .trending-card {
        flex: 0 0 150px;
    }

    .trending-card .trending-img {
        height: 100px;
    }

    .trending-card .trending-info {
        padding: 8px;
    }

    .trending-card .trending-name {
        font-size: 0.8rem;
    }

    .trending-card .trending-price {
        font-size: 0.85rem;
    }

    .category-scroll-track .product-card-modern {
        flex: 0 0 160px;
    }
}
/* Desktop side-by-side Hero and layout improvements */
@media (min-width: 992px) {
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        min-height: 550px;
        padding: 40px 8% 25px;
        gap: 50px;
    }

    .hero-content {
        flex: 1.2;
        max-width: 550px;
        text-align: left;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 80px !important;
        text-align: left;
        padding: 0;
    }

    .hero-subtitle {
        text-align: left;
        margin-bottom: 30px;
    }

    .hero-cta-group {
        justify-content: flex-start;
    }

    .hero-visual {
        flex: 1;
        max-width: 550px;
        justify-content: flex-end;
    }
}

/* Custom Report Modal Card */
.custom-report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-report-modal-overlay.active {
    opacity: 1;
}

.custom-report-modal-card {
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #0f172a);
    width: 90%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.custom-report-modal-overlay.active .custom-report-modal-card {
    transform: translateY(0) scale(1);
}

.report-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color, #0f172a);
}

.btn-close-report {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-report:hover {
    color: #ef4444;
}

.report-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.report-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

[data-theme="dark"] .report-subtitle {
    color: #94a3b8;
}

.report-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-option-card {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.report-option-card:hover {
    border-color: #4b6cb7;
    background: rgba(75, 108, 183, 0.05);
}

.report-option-card input[type="radio"] {
    margin-top: 3px;
    margin-right: 12px;
    accent-color: #4b6cb7;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color, #0f172a);
}

.option-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

[data-theme="dark"] .option-desc {
    color: #94a3b8;
}

.report-custom-details-container {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.details-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

[data-theme="dark"] .details-label {
    color: #94a3b8;
}

.report-custom-details-container textarea {
    width: 100%;
    height: 80px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--input-bg, #ffffff);
    color: var(--text-color, #0f172a);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.report-custom-details-container textarea:focus {
    border-color: #4b6cb7;
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.15);
}

.report-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.02);
}

.btn-report-cancel {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-report-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color, #0f172a);
}

.btn-report-submit {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}

.btn-report-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(75, 108, 183, 0.4);
}

.btn-report-submit:active {
    transform: translateY(0);
}