/* Fichier: assets/css/app.css */
:root {
    --c-primary: #111827;
    --c-secondary: #374151;
    --c-action: #6d28d9;
    --c-bg: #f8fafc;
    --c-white: #ffffff;
}

::selection {
    background: #7c3aed;
    color: #ffffff;
}

::-moz-selection {
    background: #7c3aed;
    color: #ffffff;
}

html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--c-bg);
    color: var(--c-secondary);
}
h1, h2, h3, h4, .brand-title {
    font-family: 'Poppins', sans-serif;
}

.market-icon-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    color: var(--c-primary);
    background: #f1f5f9;
    border: 1px solid #dbe2ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}
.market-icon-btn:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

.market-topbar {
    background: #ffffff;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}
.market-lang-select {
    background: #0b1322;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: .45rem;
    padding: .2rem .35rem;
}
.market-main-nav {
    background: #000000;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Reduce the two stacked headers height (top bar + main sticky header). */
.market-topbar > .max-w-7xl {
    min-height: 2rem;
    padding-top: .15rem !important;
    padding-bottom: .15rem !important;
}

.market-theme header.sticky > .max-w-7xl {
    min-height: 2.7rem;
    padding-top: .15rem !important;
    padding-bottom: .15rem !important;
}
.market-cat-btn {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    padding: .45rem .75rem;
    border-radius: .55rem;
    background: rgba(15, 23, 42, .4);
    border: 1px solid rgba(255,255,255,.18);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
}

.market-menu-link {
    color: #ffffff;
    font-size: .84rem;
    font-weight: 700;
    padding: .45rem .75rem;
    border-radius: .55rem;
    transition: all .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.market-menu-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
}
.market-chip-link {
    color: #ffffff;
    font-size: .72rem;
    font-weight: 600;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.25);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}
.market-chip-link:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,.45);
    background: rgba(255,255,255,.12);
}

.market-cart-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: .65rem;
    border: 1px solid #dbe2ea;
    background: #111827;
    color: #ffffff;
    border-color: #1f2937;
    padding: .46rem .6rem;
    font-size: .75rem;
    text-decoration: none;
}
.market-cart-badge {
    position: absolute;
    top: -.42rem;
    right: -.42rem;
    min-width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .22rem;
}

.market-card {
    background: var(--c-white);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: all .25s ease;
}
.market-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .11);
}
.market-hover-card {
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
}
.market-product-image {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.market-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    font-size: .64rem;
    font-weight: 800;
    line-height: 1;
    padding: .38rem .48rem;
    border-radius: .5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.market-badge.static {
    position: static;
    display: inline-flex;
}
.market-badge-promo {
    background: #dc2626;
    color: #fff;
}
.market-badge-top {
    background: #0f172a;
    color: #fff;
    left: auto;
    right: .6rem;
}

.market-cat-icon-wrap {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    border-radius: .9rem;
    background: linear-gradient(140deg, #eef2ff, #e2e8f0);
    border: 1px solid #dbe2ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.market-cat-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: #334155;
}

.market-section {
    margin-top: 2.6rem;
    margin-bottom: 2.6rem;
}
.market-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.market-title-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.market-title-icon {
    width: 1.55rem;
    height: 1.55rem;
    color: var(--c-action);
}
.market-section-title {
    color: var(--c-primary);
    font-weight: 800;
    font-size: 1.35rem;
}
.market-title-line {
    margin-top: .35rem;
    width: 5rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--c-action), transparent);
}

.market-home-card {
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.market-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.market-product-media {
    flex: 0 0 auto;
}
.market-product-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.market-product-text {
    min-height: 3.55rem;
}
.market-product-text .market-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.market-product-pricing {
    min-height: 3rem;
}
.market-product-cta {
    margin-top: auto;
}

.market-home-card .market-product-title {
    font-size: .75rem;
    line-height: 1.12rem;
}
.market-home-card .market-price {
    font-size: .82rem;
}
.market-home-card .market-old-price {
    font-size: .68rem;
}
.market-home-card .market-btn-action {
    font-size: .7rem;
    padding: .42rem .5rem;
}

.market-compact .market-product-title {
    font-size: .73rem;
    line-height: 1.12rem;
}
.market-compact .market-price {
    font-size: .8rem;
}
.market-compact .market-old-price {
    font-size: .66rem;
}
.market-compact .market-btn-action {
    font-size: .7rem;
    padding: .4rem .5rem;
}

.market-carousel {
    position: relative;
    padding: 0 2.2rem;
}
.market-carousel-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: .25rem;
}
.market-carousel-scroll::-webkit-scrollbar {
    display: none;
}
.market-carousel-item {
    flex: 0 0 calc((100% - 4rem) / 5);
    min-width: 170px;
    scroll-snap-align: start;
}
.market-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 5;
    transition: all .2s ease;
}
.market-carousel-btn:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
}
.market-carousel-btn.prev {
    left: 0;
}
.market-carousel-btn.next {
    right: 0;
}
.market-carousel-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.market-hero {
    background-image:
        linear-gradient(120deg, rgba(2, 6, 23, .78), rgba(30, 41, 59, .35)),
        url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}
.market-hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.market-hero-track {
    display: flex;
    width: 100%;
    transition: transform .55s ease;
}
.market-hero-slide {
    position: relative;
    min-width: 100%;
    height: 380px;
}
.market-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(15,23,42,.85), rgba(15,23,42,.2));
}
.market-hero-content {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 62%;
}
.market-hero-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .45rem;
}
.market-hero-content p {
    color: #e2e8f0;
    margin-bottom: .8rem;
}
.market-hero-chip {
    display: inline-flex;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    padding: .28rem .55rem;
    margin-bottom: .6rem;
}
.market-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
    padding: .58rem .88rem;
    text-decoration: none;
}
.market-hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .8rem;
    display: flex;
    justify-content: center;
    gap: .38rem;
}
.market-hero-dot {
    width: .58rem;
    height: .58rem;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.45);
    cursor: pointer;
}
.market-hero-dot.is-active {
    background: #fff;
}
.market-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    background: rgba(15,23,42,.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, background-color .2s ease;
    z-index: 4;
}
.market-hero-slider:hover .market-hero-nav {
    opacity: .92;
    pointer-events: auto;
}
.market-hero-nav:hover {
    background: rgba(15,23,42,.78);
    opacity: 1;
}
.market-hero-nav-prev {
    left: 1rem;
}
.market-hero-nav-next {
    right: 1rem;
}

.market-home-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.market-home-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
}
.market-home-category-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.market-home-category-name {
    padding: .8rem .9rem;
    color: #0f172a;
    font-weight: 700;
    font-size: .9rem;
}

.market-dual-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.market-category-showcase-block {
    border-top: 4px solid #7c3aed;
    background: linear-gradient(180deg, #faf5ff 0, #ffffff 72px);
}
.market-showcase-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.market-all-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
}

.market-side-categories {
    padding: 1rem;
    position: relative;
}
.market-side-title {
    font-size: .98rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .65rem;
}
.market-cat-row {
    position: relative;
}
.market-cat-main-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: .62rem;
    padding: .48rem .56rem;
    text-decoration: none;
    color: #1e293b;
    font-size: .83rem;
    font-weight: 600;
}
.market-cat-main-link:hover {
    background: #f5f3ff;
    color: #5b21b6;
}
.market-cat-row-icon {
    width: 1rem;
    height: 1rem;
    color: #64748b;
}
.market-cat-dropdown {
    display: none;
    position: absolute;
    left: calc(100% + .4rem);
    top: 0;
    min-width: 180px;
    border-radius: .68rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15,23,42,.11);
    padding: .4rem;
    z-index: 8;
}
.market-cat-dropdown a {
    display: block;
    color: #334155;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    border-radius: .5rem;
    padding: .42rem .5rem;
}
.market-cat-dropdown a:hover {
    background: #f1f5f9;
}
.market-cat-row:hover .market-cat-dropdown {
    display: block;
}

.market-round-cat-scroll .market-carousel-item {
    flex-basis: 130px;
    min-width: 130px;
}
.market-categories-tight .market-carousel-btn {
    opacity: 0;
    pointer-events: none;
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
    transition: opacity .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.market-categories-tight:hover .market-carousel-btn,
.market-categories-tight:focus-within .market-carousel-btn {
    opacity: 1;
    pointer-events: auto;
}
.market-categories-tight .market-carousel-btn:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}
/* Perfect circles for hero navigation buttons as well. */
.market-hero-nav {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    min-height: 2.35rem;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 50%;
}
.market-featured-tight .market-carousel-btn,
.market-bestsellers-tight .market-carousel-btn,
.market-category-block-tight .market-carousel-btn {
    opacity: 0;
    pointer-events: none;
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    transition: opacity .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.market-featured-tight:hover .market-carousel-btn,
.market-featured-tight:focus-within .market-carousel-btn,
.market-bestsellers-tight:hover .market-carousel-btn,
.market-bestsellers-tight:focus-within .market-carousel-btn,
.market-category-block-tight:hover .market-carousel-btn,
.market-category-block-tight:focus-within .market-carousel-btn {
    opacity: 1;
    pointer-events: auto;
}
.market-featured-tight .market-carousel-btn:hover,
.market-bestsellers-tight .market-carousel-btn:hover,
.market-category-block-tight .market-carousel-btn:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}
.market-categories-tight .market-carousel-btn.prev,
.market-featured-tight .market-carousel-btn.prev,
.market-bestsellers-tight .market-carousel-btn.prev,
.market-category-block-tight .market-carousel-btn.prev {
    left: -0.3rem;
}
.market-categories-tight .market-carousel-btn.next,
.market-featured-tight .market-carousel-btn.next,
.market-bestsellers-tight .market-carousel-btn.next,
.market-category-block-tight .market-carousel-btn.next {
    right: -0.3rem;
}

/* Keep vertical page scrolling fluid when hovering/touching product cards/carousels. */
.market-carousel-scroll,
.js-carousel-scroll {
    touch-action: auto;
    overscroll-behavior-y: auto;
}
.market-round-cat-item {
    display: flex;
    justify-content: center;
}
.market-round-cat-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
.market-round-icon {
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 16px rgba(15,23,42,.07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.market-round-cat-card:hover .market-round-icon {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(15,23,42,.12);
}
.market-round-name {
    margin-top: .5rem;
    font-size: .78rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.market-vendor-card {
    overflow: hidden;
}
.market-vendor-cover {
    height: 78px;
    background: linear-gradient(120deg, #111827, #000000);
}
.market-vendor-body {
    padding: 0 .85rem .95rem;
    margin-top: -28px;
}
.market-vendor-logo {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(15,23,42,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: .55rem;
}
.market-vendor-body h3 {
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: .24rem;
}
.market-promo-banner {
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(120deg, #000000, #1f2937);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}
.market-promo-content {
    padding: 2rem;
}
.market-promo-chip {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .28rem .58rem;
    border-radius: 999px;
    color: #ede9fe;
    background: rgba(255, 255, 255, .14);
    margin-bottom: .8rem;
}

.market-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 1.6rem 0;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.market-product-title {
    font-size: .9rem;
    line-height: 1.3rem;
    font-weight: 700;
    color: var(--c-primary);
}
.market-price {
    font-size: .94rem;
    font-weight: 800;
    color: var(--c-primary);
}
.product-price-stack {
    opacity: 1;
    filter: none;
}
.market-old-price {
    font-size: .78rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.market-btn-action {
    background: var(--c-action);
    color: #fff;
    border: 0;
    border-radius: .65rem;
    font-weight: 700;
    font-size: .82rem;
    padding: .55rem .8rem;
    transition: all .2s ease;
}
.market-btn-action:hover {
    background: #5b21b6;
}
.market-btn-action:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.footer-link {
    color: #4b5563;
    text-decoration: none;
    transition: color .2s ease;
}
.footer-link:hover {
    color: #6d28d9;
}

/* Global design consistency layer (typography + color + controls). */
.market-theme {
    color: var(--c-secondary);
    background: var(--c-bg);
}
.market-theme h1,
.market-theme h2,
.market-theme h3,
.market-theme h4,
.market-theme h5,
.market-theme h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--c-primary);
}

/* Preserve explicit Tailwind white text classes on headings. */
.market-theme h1.text-white,
.market-theme h2.text-white,
.market-theme h3.text-white,
.market-theme h4.text-white,
.market-theme h5.text-white,
.market-theme h6.text-white {
    color: #ffffff !important;
}

/* Keep hero banner titles readable over dark overlays. */
.market-theme .market-hero-content h1,
.market-theme .market-hero-content h2,
.market-theme .market-hero-content h3,
.market-theme .market-hero-content p,
.market-theme .market-hero-content .market-hero-chip {
    color: #ffffff;
}
.market-theme p,
.market-theme li,
.market-theme span,
.market-theme label,
.market-theme input,
.market-theme select,
.market-theme textarea,
.market-theme button {
    font-family: 'Inter', sans-serif;
}

.market-theme a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.market-theme input[type="text"],
.market-theme input[type="email"],
.market-theme input[type="password"],
.market-theme input[type="number"],
.market-theme input[type="date"],
.market-theme input[type="search"],
.market-theme select,
.market-theme textarea {
    border: 1px solid #d1d5db;
    border-radius: .7rem;
    background: #fff;
    color: #111827;
}
.market-theme input:focus,
.market-theme select:focus,
.market-theme textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}

.market-theme button,
.market-theme input[type="submit"],
.market-theme input[type="button"] {
    border-radius: .7rem;
}

/* Fallback for action buttons to avoid white-on-white rendering. */
.market-theme .bg-action,
.market-theme .bg-violet-600,
.market-theme .bg-violet-700 {
    background-color: #7c3aed !important;
    color: #ffffff !important;
}

.market-theme .hover\:bg-violet-700:hover,
.market-theme .hover\:bg-violet-800:hover {
    background-color: #6d28d9 !important;
}

/* Harmonize legacy Tailwind blue/indigo utilities to project palette. */
.market-theme .text-blue-600,
.market-theme .text-blue-700,
.market-theme .text-indigo-600,
.market-theme .text-indigo-700 {
    color: #7c3aed !important;
}
.market-theme .bg-blue-50,
.market-theme .bg-indigo-50 {
    background-color: #f5f3ff !important;
}
.market-theme .bg-blue-100,
.market-theme .bg-indigo-100 {
    background-color: #ede9fe !important;
}
.market-theme .bg-blue-500,
.market-theme .bg-blue-600,
.market-theme .bg-indigo-500,
.market-theme .bg-indigo-600 {
    background-color: #7c3aed !important;
}
.market-theme .hover\:bg-blue-700:hover,
.market-theme .hover\:bg-indigo-700:hover,
.market-theme .hover\:bg-blue-600:hover,
.market-theme .hover\:bg-indigo-600:hover {
    background-color: #6d28d9 !important;
}
.market-theme .focus\:ring-blue-500:focus,
.market-theme .focus\:ring-indigo-500:focus {
    --tw-ring-color: rgba(124, 58, 237, .45) !important;
}
.market-theme .focus\:border-blue-500:focus,
.market-theme .focus\:border-indigo-500:focus {
    border-color: #7c3aed !important;
}

.market-main {
    padding-bottom: 2rem;
}

.market-footer-title {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: .75rem;
}

.market-theme footer {
    background: #000000 !important;
    color: #e5e7eb !important;
    border-top: 1px solid rgba(255,255,255,.14);
}

.market-theme .market-site-footer {
    background-color: #000000 !important;
}

.market-theme footer .text-gray-300,
.market-theme footer .text-gray-400,
.market-theme footer .text-gray-200 {
    color: #cbd5e1 !important;
}

.market-theme footer .footer-link {
    color: #cbd5e1 !important;
}
.market-theme footer .footer-link:hover {
    color: #ffffff !important;
}

/* Force footer typography to stay white on black background. */
.market-theme .market-site-footer,
.market-theme .market-site-footer p,
.market-theme .market-site-footer li,
.market-theme .market-site-footer span,
.market-theme .market-site-footer a,
.market-theme .market-site-footer h4,
.market-theme .market-site-footer h5 {
    color: #ffffff !important;
}

.market-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.market-page-subtitle {
    color: #475569;
    font-size: .96rem;
}

.market-payment-shell {
    position: relative;
}
.market-payment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    padding: 1.4rem;
}
.market-payment-title {
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
}
.market-shipping-rule {
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
    color: #5b21b6;
    border-radius: .7rem;
    padding: .72rem .85rem;
    font-size: .88rem;
}
.market-payment-method {
    border-color: #d1d5db;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.market-payment-method:hover {
    border-color: #a78bfa;
    background: #faf5ff;
}
.market-payment-method:has(input:checked) {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
    background: #faf5ff;
}

@media (max-width: 1279px) {
    .market-carousel-item { flex-basis: calc((100% - 3rem) / 4); }
}
@media (max-width: 1023px) {
    .market-carousel-item { flex-basis: calc((100% - 2rem) / 3); }
    .market-topbar > .max-w-7xl {
        min-height: 2.05rem;
        padding-top: .2rem !important;
        padding-bottom: .2rem !important;
    }
    .market-theme header.sticky > .max-w-7xl {
        min-height: 2.55rem;
        padding-top: .2rem !important;
        padding-bottom: .2rem !important;
    }
    .market-hero-slide {
        height: 320px;
    }
    .market-hero-content {
        max-width: 82%;
    }
    .market-cat-dropdown {
        display: none !important;
    }
    .market-home-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .market-dual-showcase {
        grid-template-columns: 1fr;
    }
    .market-showcase-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .market-all-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 639px) {
    .market-carousel-item { flex-basis: calc((100% - 1rem) / 2); }
    .market-topbar > .max-w-7xl {
        min-height: 1.85rem;
        padding-top: .1rem !important;
        padding-bottom: .1rem !important;
    }
    .market-theme header.sticky > .max-w-7xl {
        min-height: 2.3rem;
        padding-top: .15rem !important;
        padding-bottom: .15rem !important;
    }
    .market-section-title { font-size: 1.25rem; }
    .market-carousel { padding: 0 1.9rem; }
    .market-carousel-btn {
        width: 2.05rem;
        height: 2.05rem;
    }
    .market-product-text {
        min-height: 3.15rem;
    }
    .market-promo-content {
        padding: 1.3rem;
    }
    .market-hero-slide {
        height: 250px;
    }
    .market-hero-content {
        left: 1rem;
        max-width: 90%;
    }
    .market-hero-content h2 {
        font-size: 1.2rem;
    }
    .market-round-icon {
        width: 4.6rem;
        height: 4.6rem;
    }
    .market-hero-nav {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.2rem;
    }
    .market-hero-nav-prev {
        left: .5rem;
    }
    .market-hero-nav-next {
        right: .5rem;
    }
    .market-home-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }
    .market-all-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .market-showcase-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared Laravel-facing style layer (pages, auth, admin wrappers). */
.app-shell-bg {
    background:
        radial-gradient(circle at 10% 12%, rgba(109, 40, 217, .09), transparent 36%),
        radial-gradient(circle at 88% 82%, rgba(17, 24, 39, .06), transparent 38%),
        #f8fafc;
}

.neo-header {
    background: #ffffff;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.neo-panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    backdrop-filter: blur(2px);
}

.neo-input {
    border-color: #cbd5e1 !important;
    border-radius: .7rem !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.neo-input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15) !important;
    outline: none;
}

.neo-btn {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border: 1px solid #111827;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.neo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .22);
    background: linear-gradient(135deg, #1f2937, #0f172a);
}

.neo-link {
    color: #6d28d9;
    font-weight: 600;
    text-decoration: none;
}
.neo-link:hover {
    color: #5b21b6;
}

/* White-dominant look for legacy sections that still use dark utility classes. */
.market-theme header.sticky {
    background: #ffffff !important;
}
.market-theme header.sticky {
    display: flex;
    flex-direction: column;
}
.market-theme header.sticky > .bg-white {
    order: 1;
}
.market-theme header.sticky > .market-main-nav {
    order: 2;
    overflow: hidden;
    transform-origin: top;
    transition: max-height .24s ease, opacity .2s ease, transform .24s ease;
    max-height: 56px;
    opacity: 1;
    transform: translateY(0);
}
.market-theme header.sticky.is-nav-hidden > .market-main-nav {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    border-top-width: 0;
    border-bottom-width: 0;
}

.market-theme .market-main-nav,
.market-theme .market-main-nav .market-menu-link,
.market-theme .market-main-nav .market-chip-link {
    color: #ffffff !important;
}

.market-theme .market-main-nav a,
.market-theme .market-main-nav a:visited {
    color: #ffffff !important;
}

.market-theme .market-main-nav .market-menu-link:hover,
.market-theme .market-main-nav .market-chip-link:hover {
    color: #ffffff !important;
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}

/* Admin white shell with black/violet accents. */
.market-theme #admin-sidebar {
    background: #ffffff !important;
    color: #111827 !important;
    border-right: 1px solid #e5e7eb;
}

.market-theme #admin-sidebar .border-b,
.market-theme #admin-sidebar .border-t {
    border-color: #e5e7eb !important;
}

.market-theme #admin-sidebar nav a {
    color: #111827 !important;
    font-weight: 600;
}

.market-theme #admin-sidebar nav a:hover {
    background: #f5f3ff !important;
    color: #6d28d9 !important;
}

.market-theme .market-site-footer a.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .9);
    color: #0f172a !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
    text-decoration: none;
    transition: all .2s ease;
}

.market-theme .market-site-footer a.footer-social-link .footer-social-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.market-theme .market-site-footer a.footer-social-link:hover {
    border-color: #a78bfa;
    color: #7c3aed !important;
    background: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px rgba(124, 58, 237, .45);
}

@media (max-width: 768px) {
    .market-theme .market-site-footer {
        padding-top: 1rem !important;
        padding-bottom: 0.8rem !important;
    }
    .market-theme .market-site-footer .max-w-7xl {
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
        padding-left: 0.7rem !important;
        padding-right: 0.7rem !important;
    }
    .market-theme .market-site-footer .grid {
        gap: 0.8rem !important;
    }
    .market-theme .market-site-footer .market-footer-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.28rem !important;
    }
    .market-theme .market-site-footer p,
    .market-theme .market-site-footer li,
    .market-theme .market-site-footer a,
    .market-theme .market-site-footer span {
        font-size: 0.76rem !important;
        line-height: 1.2rem !important;
    }
    .market-theme .market-site-footer ul.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.3rem !important;
    }
    .market-theme .market-site-footer .rounded-2xl {
        border-radius: 0.85rem !important;
    }
    .market-theme .market-site-footer .rounded-2xl.border {
        padding: 0.65rem !important;
    }
    .market-theme .market-site-footer form.flex {
        flex-direction: column;
        gap: 0.4rem !important;
    }
    .market-theme .market-site-footer form.flex input,
    .market-theme .market-site-footer form.flex button {
        width: 100%;
    }
    .market-theme .market-site-footer form.flex button {
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        font-size: 0.78rem !important;
    }
    .market-theme .market-site-footer .pt-8.mt-8 {
        margin-top: 0.7rem !important;
        padding-top: 0.7rem !important;
        gap: 0.25rem !important;
    }
}


