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

:root {
    --theme-primary: #58c3c2;
    --theme-primary-dark: #4fb8b7;
    --theme-primary-deep: #3aa3a3;
    --nav-start: #68bec7;
    --nav-end: #7ac7d0;
    --hero-start: #58c3c2;
    --hero-mid: #7ccfc1;
    --hero-end: #c3dec0;
    --bg: #f7fbfa;
    --panel: #ffffff;
    --text: #3a4650;
    --muted: #5f737d;
    --line: #bcdedd;
    --accent: var(--theme-primary);
    --accent-soft: #e3f5f2;
    --ink: #285f67;
}

a {
    color: var(--theme-primary);
}

a:hover {
    color: var(--theme-primary-deep);
}

html,
body {
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2358c3c2' fill-opacity='0.032'%3E%3Crect x='22' y='10' width='4' height='28'/%3E%3Crect x='10' y='22' width='28' height='4'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(ellipse 900px 420px at 8% -5%, rgba(79, 184, 183, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 700px 350px at 92% 105%, rgba(195, 222, 192, 0.16) 0%, transparent 70%);
    color: var(--text);
    font-family: "Inter", sans-serif;
}

body.market-theme {
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

main > .container,
main > .container-fluid {
    padding: 94px 15px 28px;
}

.market-nav {
    background: linear-gradient(90deg, var(--nav-start) 0%, var(--nav-end) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(79, 184, 183, 0.32);
}

.market-nav .navbar-brand {
    padding: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.market-nav .navbar-brand:hover,
.market-nav .navbar-brand:focus {
    opacity: .9;
}

.marketplace-logo {
    display: block;
    height: 46px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .marketplace-logo {
        height: 36px;
        max-width: 190px;
    }
}

.market-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 500;
}

.market-nav-links .nav-link:hover,
.market-nav-links .active > .nav-link {
    color: #fff;
}

.market-nav .nav-link:focus {
    color: #fff;
}

.market-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.market-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 .16rem rgba(255, 255, 255, 0.22);
}

.market-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.94)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.market-nav .user-menu .dropdown-toggle::after {
    margin-left: .45rem;
}

.market-nav .user-menu .dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: .4rem;
}

.market-nav .user-menu .dropdown-item {
    border-radius: 10px;
    font-size: .9rem;
}

.market-nav .user-menu .dropdown-item.logout {
    color: #a33a2a;
}

.sell-nav-btn {
    background: #fff;
    color: var(--theme-primary-deep);
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.sell-nav-btn:hover,
.sell-nav-btn:focus {
    background: var(--theme-primary-deep);
    color: #fff;
    border-color: var(--theme-primary-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.market-nav .btn-outline-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.market-nav .btn-outline-dark:hover,
.market-nav .btn-outline-dark:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.96);
    color: var(--theme-primary-deep);
}

@media (min-width: 992px) {
    .market-nav .user-menu:hover > .dropdown-menu {
        display: block;
    }

    .market-nav .user-menu:hover > .dropdown-toggle {
        background-color: rgba(255, 255, 255, 0.96);
        border-color: rgba(255, 255, 255, 0.96);
        color: var(--theme-primary-deep);
    }
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1rem;
}

.breadcrumb-item > a {
    text-decoration: none;
    color: var(--ink);
}

.hero-panel {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(79, 184, 183, 0.16) 0%, rgba(255, 255, 255, 0.96) 45%, rgba(195, 222, 192, 0.36) 100%);
    border-radius: 24px;
    padding: clamp(1.2rem, 4vw, 2.2rem);
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1.2fr .9fr;
    animation: liftIn .55s ease-out both;
    box-shadow: 0 14px 36px rgba(79, 184, 183, 0.12);
}

.home-hero {
    border: none;
    background: linear-gradient(90deg, var(--hero-start) 0%, var(--hero-mid) 55%, var(--hero-end) 100%);
    box-shadow: 0 20px 38px rgba(79, 184, 183, 0.24);
}

.home-hero .hero-copy h1,
.home-hero .lead-text {
    color: #fff;
    text-shadow: 0 1px 14px rgba(54, 96, 96, 0.16);
}

.home-hero .lead-text {
    max-width: 56ch;
}

.home-hero .hero-chip {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
}

.home-hero .btn-dark {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.96);
    color: var(--theme-primary-deep);
}

.home-hero .btn-dark:hover {
    background: #fff;
    border-color: #fff;
    color: var(--theme-primary-deep);
}

.home-hero .btn-outline-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.08);
}

.home-hero .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.96);
    color: var(--theme-primary-deep);
}

.hero-chip {
    display: inline-flex;
    background: var(--accent-soft);
    color: var(--theme-primary);
    border-radius: 999px;
    padding: .3rem .75rem;
    font-size: .83rem;
    margin-bottom: .6rem;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: .8rem;
}

.lead-text {
    color: var(--muted);
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.hero-grid article {
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, .72);
    border-radius: 16px;
    padding: .95rem;
}

.hero-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.home-hero .hero-actions .btn {
    white-space: nowrap;
}

.hero-stack {
    display: grid;
    gap: .85rem;
    align-content: start;
}

.hero-stat,
.hero-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(79, 184, 183, 0.12);
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--theme-primary);
}

.hero-stat span {
    color: var(--muted);
    font-size: .85rem;
}

.hero-card h3 {
    font-size: 1.05rem;
    margin-bottom: .4rem;
}

.home-section {
    margin: 3.5rem 0;
}

.section-title-wrap {
    margin-bottom: 1.5rem;
}

.why-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.4rem;
    background: #fff;
    box-shadow: 0 14px 28px rgba(79, 184, 183, 0.12);
}

.why-highlight {
    margin-top: 1rem;
    background: var(--accent-soft);
    color: var(--theme-primary-deep);
    display: inline-flex;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 1.2rem;
    height: 100%;
    box-shadow: 0 10px 24px rgba(79, 184, 183, 0.1);
}

.service-card h4 {
    font-size: 1.05rem;
    margin-bottom: .6rem;
}

.choose-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .7rem;
}

.choose-list li {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .7rem 1rem .7rem 2.2rem;
    background: #fff;
    position: relative;
    font-weight: 500;
}

.choose-list li::before {
    content: '✓';
    position: absolute;
    left: .85rem;
    top: .6rem;
    color: var(--theme-primary);
    font-weight: 700;
}

.vision-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79, 184, 183, 0.14) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(195, 222, 192, 0.32) 100%);
    padding: 1.6rem;
    box-shadow: 0 8px 24px rgba(79, 184, 183, 0.1);
}

.vision-badge {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
    text-align: center;
}

.vision-badge span {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.vision-badge strong {
    display: block;
    font-size: 1.5rem;
    color: var(--theme-primary);
}

.home-cta {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(79, 184, 183, 0.15) 0%, rgba(255, 255, 255, 0.94) 40%, rgba(195, 222, 192, 0.32) 100%);
    padding: 1.8rem;
    display: grid;
    gap: 1rem;
    box-shadow: 0 10px 28px rgba(79, 184, 183, 0.11);
}

.home-cta .hero-actions {
    margin-top: .2rem;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.6rem;
    background: linear-gradient(135deg, rgba(79, 184, 183, 0.16) 0%, rgba(255, 255, 255, 0.95) 45%, rgba(195, 222, 192, 0.34) 100%);
    margin-bottom: 2.8rem;
    box-shadow: 0 8px 28px rgba(79, 184, 183, 0.11);
}

.about-hero-copy h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    margin-bottom: .9rem;
}

.about-hero-copy p {
    color: var(--muted);
}

.about-hero-card {
    display: grid;
    gap: .9rem;
    align-content: start;
}

.about-hero-card > div {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: .95rem 1rem;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.about-hero-card strong {
    display: block;
    font-size: 1.15rem;
    color: var(--theme-primary);
}

.about-hero-card span {
    color: var(--muted);
    font-size: .85rem;
}

.about-section {
    margin: 2.8rem 0;
}

.about-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.3rem;
    background: #fff;
    height: 100%;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.about-card h2 {
    font-size: 1.35rem;
    margin-bottom: .7rem;
}

.about-feature {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.1rem;
    background: #fff;
    height: 100%;
}

.about-feature h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.feature-band .feature-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 18px;
    padding: 1.1rem 1rem;
    height: 100%;
    box-shadow: 0 12px 24px rgba(79, 184, 183, 0.08);
}

.feature-link {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
}

.feature-link:hover {
    text-decoration: underline;
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.browse-hero {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 184, 183, 0.16) 0%, rgba(255, 255, 255, 0.96) 50%, rgba(195, 222, 192, 0.32) 100%);
    padding: 1.1rem;
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: 1rem;
    box-shadow: 0 6px 20px rgba(79, 184, 183, 0.1);
}

.browse-chip {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--theme-primary-deep);
    border-radius: 999px;
    padding: .24rem .62rem;
    font-size: .74rem;
    margin-bottom: .5rem;
}

.browse-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    align-content: start;
}

.browse-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .55rem .7rem;
}

.browse-stat strong {
    display: block;
    font-size: 1.1rem;
    color: var(--theme-primary);
}

.browse-stat span {
    color: var(--muted);
    font-size: .77rem;
}

.browse-tags {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

.browse-tags span {
    color: var(--muted);
    font-size: .84rem;
}

.browse-tags a {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .25rem .62rem;
    font-size: .79rem;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
}

.browse-tags a:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
}

.product-thumb {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.product-grid-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.10);
}

.product-grid-image-wrap {
    position: relative;
    display: block;
}

.product-grid-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.product-grid-noimg {
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--muted);
}

.product-grid-price {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    border-radius: 999px;
    padding: .26rem .62rem;
    font-size: .78rem;
    font-weight: 700;
}

.product-grid-body {
    padding: .85rem .9rem;
}

.product-grid-title {
    font-size: 1rem;
    margin-bottom: .55rem;
}

.product-grid-meta {
    color: var(--muted);
}

.product-link {
    color: var(--ink);
    text-decoration: none;
}

.product-link:hover {
    color: var(--theme-primary);
}

.product-price {
    color: var(--theme-primary);
    font-weight: 700;
}

.product-price-lg {
    font-size: 1.45rem;
    color: var(--theme-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-detail-shell {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 300px;
}

.product-amz-layout {
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(360px, 1fr) 300px;
    gap: 1rem;
    align-items: start;
}

.product-media-col,
.product-info-col {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    padding: 1.1rem;
}

.product-buy-col {
    position: sticky;
    top: 92px;
}

.buy-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.buy-price {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--theme-primary);
}

.product-detail-main,
.seller-card,
.seller-hero,
.product-form {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    padding: 1.25rem;
}

.product-gallery-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.product-carousel {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.carousel-top-tools {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carousel-counter {
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: .78rem;
    border-radius: 999px;
    padding: .22rem .6rem;
}

.open-lightbox-btn {
    font-size: .75rem;
    border-radius: 999px;
}

.product-carousel-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.main-image-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(58, 163, 163, 0.92);
    color: #fff;
    font-size: .75rem;
    padding: .2rem .55rem;
    border-radius: 999px;
}

.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 10%;
}

.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.45);
    border-radius: 50%;
    background-size: 55% 55%;
    width: 2.2rem;
    height: 2.2rem;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: .55rem;
}

.product-thumb-btn {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.product-thumb-btn img {
    width: 100%;
    height: 72px;
    object-fit: cover;
}

.product-thumb-btn.active {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px rgba(79, 184, 183, 0.2);
}

.product-modal-image {
    width: 100%;
    height: min(78vh, 860px);
    object-fit: contain;
    background: #000;
}

.seller-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.seller-link:hover {
    color: var(--theme-primary);
}

.product-description {
    color: #413a31;
    line-height: 1.7;
}

.product-info-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .9rem;
    background: #fbfeff;
}

.product-points {
    padding-left: 1rem;
}

.product-points li {
    margin-bottom: .45rem;
}

.product-meta {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.create-heading p {
    color: var(--muted);
}

.product-form .form-control,
.product-form .form-select {
    border-radius: 12px;
    border-color: #d9cec0;
}

.product-form .form-control:focus,
.product-form .form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 .16rem rgba(79, 184, 183, 0.2);
}

.btn-primary,
.btn-dark {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-dark:hover {
    background-color: var(--theme-primary-deep);
    border-color: var(--theme-primary-deep);
    color: #fff;
}

.btn-outline-dark {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-dark:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.pagination .page-link {
    color: var(--theme-primary);
}

.footer {
    background: linear-gradient(180deg, rgba(79, 184, 183, 0.07) 0%, rgba(195, 222, 192, 0.16) 100%);
    border-top: 1px solid rgba(79, 184, 183, 0.15);
    font-size: .92rem;
    padding: 2.5rem 0 1.2rem;
    color: var(--text);
}

.footer-main h5 {
    font-size: 1rem;
    margin-bottom: .8rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .45rem;
}

.footer-links-bulleted {
    list-style: disc;
    padding-left: 1.2rem;
}
.footer-links-bulleted li {
    color: var(--ink);
    font-weight: 500;
}
.footer-links-bulleted li::marker {
    color: var(--theme-primary);
}

.footer-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--theme-primary);
}

.footer-brand {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    background: #fff;
}

.footer-brand-title {
    display: block;
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
    color: var(--theme-primary);
    margin-bottom: .3rem;
}

.footer-bottom {
    margin-top: 1.6rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: .9rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: space-between;
}

.not-set {
    color: #c55;
    font-style: italic;
}

a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #8b7f70;
}

.error-summary {
    color: #9f2f11;
    background: #fff3ec;
    border-left: 3px solid #de8f6b;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

@keyframes liftIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 991px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .product-detail-shell {
        grid-template-columns: 1fr;
    }

    .product-amz-layout {
        grid-template-columns: 1fr;
    }

    .browse-hero {
        grid-template-columns: 1fr;
    }

    .about-hero {
        grid-template-columns: 1fr;
    }

    .product-buy-col {
        position: static;
    }

    .product-thumb {
        min-height: 200px;
    }

    .product-carousel-image {
        height: 320px;
    }

    .buy-box {
        padding: .9rem;
    }

    .buy-price {
        font-size: 1.35rem;
    }
}

@media (max-width: 767px) {
    main > .container,
    main > .container-fluid {
        padding-top: 78px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        border-radius: 18px;
        padding: 1rem;
    }

    .browse-hero {
        border-radius: 14px;
        padding: .9rem;
    }

    .browse-hero-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy h1 {
        font-size: 1.7rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-grid-image {
        height: 170px;
    }

    .product-thumb {
        min-height: 170px;
    }

    .product-amz-layout {
        gap: .8rem;
    }

    .product-media-col,
    .product-info-col,
    .buy-box,
    .seller-card,
    .product-form {
        border-radius: 14px;
        padding: .9rem;
    }

    .product-carousel-image {
        height: 240px;
    }

    .product-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-thumb-btn img {
        height: 58px;
    }

    .carousel-counter {
        font-size: .72rem;
        padding: .18rem .48rem;
    }

    .buy-box .btn {
        width: 100%;
    }

    .market-nav .navbar-brand {
        font-size: 1.1rem;
    }

    .market-nav form > button.logout,
    .market-nav .btn {
        width: auto;
        white-space: nowrap;
        font-size: .82rem;
    }
}

@media (max-width: 575px) {
    .breadcrumb {
        border-radius: 12px;
        padding: .5rem .65rem;
        font-size: .82rem;
    }

    .feature-band .feature-card {
        border-radius: 14px;
        padding: .9rem;
    }

    .product-price-lg {
        font-size: 1.25rem;
    }

    .product-description {
        font-size: .92rem;
        line-height: 1.55;
    }

    .product-info-card {
        padding: .75rem;
    }

    .product-points {
        padding-left: .85rem;
        margin-bottom: 0;
    }

    .open-lightbox-btn {
        font-size: .68rem;
        padding: .18rem .45rem;
    }
}

@media (max-width: 390px) {
    main > .container,
    main > .container-fluid {
        padding-top: 74px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-copy h1 {
        font-size: 1.45rem;
    }

    .product-carousel-image {
        height: 210px;
    }

    .product-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-thumb-btn img {
        height: 52px;
    }

    .buy-box .small {
        font-size: .76rem;
    }
}

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

/* --- Hero ------------------------------------------------- */
.hp-hero {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-mid) 50%, var(--hero-end) 100%);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 48px rgba(79, 184, 183, 0.28);
    position: relative;
    overflow: hidden;
}
.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Crect x='28' y='10' width='4' height='40'/%3E%3Crect x='10' y='28' width='40' height='4'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hp-hero-inner {
    position: relative;
    max-width: 760px;
}
.hp-hero-chip {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.hp-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: #fff;
    text-shadow: 0 2px 16px rgba(44, 93, 102, 0.2);
    margin-bottom: .75rem;
    line-height: 1.2;
}
.hp-hero-sub {
    color: rgba(255,255,255,0.9);
    font-size: clamp(.95rem, 2vw, 1.1rem);
    max-width: 54ch;
    margin-bottom: 1.8rem;
}

/* Search bar */
.hp-search-bar {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    overflow: hidden;
    max-width: 620px;
    margin-bottom: 2rem;
}
.hp-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: .85rem 1.1rem;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
}
.hp-search-btn {
    background: var(--theme-primary-deep);
    color: #fff;
    border: none;
    padding: .85rem 1.4rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .45rem;
    transition: background .2s;
    white-space: nowrap;
}
.hp-search-btn:hover { background: var(--ink); }

/* Stats row */
.hp-hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}
.hp-stat strong {
    display: block;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}
.hp-stat span {
    color: rgba(255,255,255,0.82);
    font-size: .78rem;
}
.hp-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.3);
}

/* --- Section wrapper -------------------------------------- */
.hp-section {
    margin-bottom: 3rem;
}
.hp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.hp-section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--ink);
    margin: 0;
}
.hp-view-all {
    color: var(--theme-primary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}
.hp-view-all:hover { color: var(--ink); text-decoration: underline; }

/* --- Browse by type --------------------------------------- */
.hp-type-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem 1.4rem;
    background: #fff;
    box-shadow: 0 8px 22px rgba(79, 184, 183,0.09);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    height: 100%;
}
.hp-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(79, 184, 183,0.18);
    border-color: var(--theme-primary);
}
.hp-type-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
}
.hp-type-machine .hp-type-icon { background: var(--accent-soft); color: var(--theme-primary); }
.hp-type-spare   .hp-type-icon { background: #f0f4ff; color: #4a6fa5; }
.hp-type-card h3 {
    font-size: 1.1rem;
    margin-bottom: .3rem;
    color: var(--ink);
}
.hp-type-card p {
    color: var(--muted);
    font-size: .88rem;
    margin: 0;
}
.hp-type-arrow {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--theme-primary);
    flex-shrink: 0;
}

/* --- Recent listing cards --------------------------------- */
.hp-listing-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.hp-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15,23,42,0.11);
}
.hp-listing-img-wrap {
    position: relative;
    display: block;
    flex-shrink: 0;
}
.hp-listing-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
.hp-listing-noimg {
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--muted);
    font-size: .85rem;
    height: 190px;
}
.hp-listing-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15,23,42,0.82);
    color: #fff;
    border-radius: 999px;
    padding: .25rem .65rem;
    font-size: .8rem;
    font-weight: 700;
}
.hp-listing-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 193, 7, 0.92);
    color: #1a1a1a;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .72rem;
    font-weight: 700;
}
.hp-listing-body {
    padding: .9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hp-listing-brand {
    font-size: .75rem;
    color: var(--theme-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .25rem;
}
.hp-listing-title {
    font-size: .95rem;
    margin-bottom: .5rem;
    line-height: 1.4;
}
.hp-listing-link {
    color: var(--ink);
    text-decoration: none;
}
.hp-listing-link:hover { color: var(--theme-primary); }
.hp-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .65rem;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .75rem;
}
.hp-listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.hp-listing-age {
    font-size: .76rem;
    color: var(--muted);
}
.hp-listing-btn {
    font-size: .78rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    border: 1px solid var(--theme-primary);
    border-radius: 999px;
    padding: .22rem .65rem;
    transition: background .15s, color .15s;
}
.hp-listing-btn:hover {
    background: var(--theme-primary);
    color: #fff;
}
.hp-empty {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 16px;
}

/* --- Brand pills ------------------------------------------ */
.hp-brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.hp-brand-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .38rem .9rem;
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}
.hp-brand-pill:hover {
    border-color: var(--theme-primary);
    background: var(--accent-soft);
    color: var(--theme-primary-deep);
}

/* --- How it works ----------------------------------------- */
.hp-step-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    background: #fff;
    height: 100%;
    box-shadow: 0 8px 20px rgba(79, 184, 183,0.08);
    position: relative;
}
.hp-step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: .75rem;
    letter-spacing: -.04em;
    -webkit-text-stroke: 2px var(--theme-primary);
    color: transparent;
}
.hp-step-card h4 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    color: var(--ink);
}
.hp-step-card p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}

/* --- Services section ------------------------------------- */
.hp-services-section {
    background: var(--accent-soft);
    border-radius: 22px;
    padding: 2rem 1.5rem;
}
.hp-service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 6px 16px rgba(79, 184, 183,0.07);
    transition: transform .2s, box-shadow .2s;
}
.hp-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 184, 183,0.14);
}
.hp-service-icon {
    font-size: 1.8rem;
    margin-bottom: .65rem;
    line-height: 1;
}
.hp-service-card h5 {
    font-size: .98rem;
    margin-bottom: .4rem;
    color: var(--ink);
}
.hp-service-card p {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
}

/* --- Testimonials ----------------------------------------- */
.hp-testimonial-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2.4rem 1.5rem 1.5rem;
    height: 100%;
    box-shadow: 0 8px 20px rgba(79, 184, 183,0.08);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.hp-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(79, 184, 183,0.16);
}
.hp-testimonial-quote-mark {
    position: absolute;
    top: .4rem;
    left: 1.2rem;
    font-size: 3.2rem;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--accent-soft);
}
.hp-testimonial-stars {
    position: relative;
    z-index: 1;
    margin-bottom: .65rem;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: .08em;
}
.hp-star { color: #f5b50a; }
.hp-star-empty { color: #d9e4e3; }
.hp-testimonial-text {
    color: var(--text);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}
.hp-testimonial-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}
.hp-testimonial-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-deep) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .02em;
}
.hp-testimonial-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.hp-testimonial-name {
    font-weight: 700;
    color: var(--ink);
    font-size: .92rem;
}
.hp-testimonial-role {
    color: var(--muted);
    font-size: .82rem;
}

/* --- CTA Banner ------------------------------------------- */
.hp-cta-banner {
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--theme-primary-deep) 100%);
    padding: 2.2rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 32px rgba(44, 93, 102,0.22);
}
.hp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hp-cta-banner h2 {
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    color: #fff;
    margin-bottom: .35rem;
}
.hp-cta-banner p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: .95rem;
}
.hp-cta-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.hp-cta-banner .btn-dark {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}
.hp-cta-banner .btn-dark:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: var(--ink);
}
.hp-cta-banner .btn-outline-dark {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    background: transparent;
}
.hp-cta-banner .btn-outline-dark:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 767px) {
    .hp-hero { border-radius: 18px; padding: 1.5rem 1.2rem; }
    .hp-search-bar { max-width: 100%; }
    .hp-stat-divider { display: none; }
    .hp-hero-stats { gap: .75rem 1.2rem; }
    .hp-type-card { padding: 1.1rem; }
    .hp-listing-img, .hp-listing-noimg { height: 160px; }
    .hp-cta-banner { padding: 1.5rem 1.2rem; border-radius: 18px; }
    .hp-cta-inner { flex-direction: column; align-items: flex-start; }
    .hp-cta-actions .btn { width: 100%; text-align: center; }
    .hp-services-section { padding: 1.25rem 1rem; border-radius: 18px; }
    .hp-step-card { padding: 1.1rem; }
}
@media (max-width: 480px) {
    .hp-hero-title { font-size: 1.6rem; }
    .hp-search-input { padding: .7rem .85rem; font-size: .9rem; }
    .hp-search-btn { padding: .7rem 1rem; font-size: .85rem; }
    .hp-type-arrow { display: none; }
}

/* === Listings page (new listings) === */
.listings-page .listings-header h1 {
    color: var(--ink);
}

.listings-page .nav-tabs .nav-link {
    color: var(--text);
}
.listings-page .nav-tabs .nav-link:hover {
    color: var(--ink);
}
.listings-page .nav-tabs .nav-link.active {
    color: var(--ink);
    font-weight: 600;
}

/* Filter sidebar — mobile toggle */
.filter-mobile-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .6rem 1rem;
    margin-bottom: .5rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
}
.filter-mobile-toggle-icon {
    margin-left: auto;
    transition: transform .25s ease;
    flex-shrink: 0;
}
.filter-mobile-toggle.open .filter-mobile-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    .filter-mobile-toggle {
        display: flex;
    }
    .listings-filter-body {
        display: none;
    }
    .listings-filter-body.open {
        display: block;
    }
}
@media (min-width: 992px) {
    .filter-mobile-toggle { display: none !important; }
    .listings-filter-body { display: block !important; }
}

.listings-filters {
    border: 1px solid var(--line);
    background: var(--panel);
}

.listings-filters .form-label {
    color: var(--ink);
    margin-bottom: .25rem;
}

.listings-filters .form-check + .form-check {
    margin-top: .15rem;
}

@media (min-width: 992px) {
    .listings-filters {
        position: sticky;
        top: 84px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

.listings-toolbar {
    border: 1px solid var(--line);
    background: var(--panel);
}

.listings-table-card {
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--panel);
}

.listings-table {
    font-size: .92rem;
}

.listings-table thead th {
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid var(--line);
}

.listings-table tbody tr {
    transition: background-color .15s ease;
}

.listings-table tbody tr:hover {
    background: var(--accent-soft);
}

.listings-table tbody td {
    border-bottom: 1px solid #eef4f3;
    padding: .65rem .75rem;
    vertical-align: middle;
}

.listings-table-thumb {
    display: block;
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.listings-table-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--muted);
    font-size: .7rem;
}

.listings-table-thumb-link {
    display: inline-block;
}

/* ============================================================
   RESPONSIVE & POLISH — comprehensive cross-breakpoint rules
   ============================================================ */

/* --- GLOBAL form & card polish ---------------------------- */
.form-control,
.form-select {
    border-radius: 10px;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 .16rem rgba(79, 184, 183, 0.2);
}
.form-check-input:checked {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}
.form-check-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 .16rem rgba(79, 184, 183, 0.2);
}
.alert {
    border-radius: 14px;
}
.badge {
    font-weight: 600;
    letter-spacing: .01em;
}
.card {
    border-color: var(--line);
}

/* --- NAVIGATION — mobile collapsed menu ------------------- */
@media (max-width: 767px) {
    .market-nav .navbar-collapse {
        background: linear-gradient(160deg, var(--nav-start) 0%, var(--nav-end) 100%);
        border-radius: 0 0 20px 20px;
        padding: .5rem .75rem .85rem;
        margin-top: .25rem;
        box-shadow: 0 16px 32px rgba(79, 184, 183, 0.35);
    }
    .market-nav-links .nav-link {
        padding: .6rem .75rem;
        border-radius: 10px;
        margin-bottom: .1rem;
    }
    .market-nav-links .nav-link:hover,
    .market-nav-links .active > .nav-link {
        background: rgba(255, 255, 255, 0.16);
    }
    .market-nav .navbar-collapse > .btn,
    .market-nav .navbar-collapse > .d-flex > .btn {
        display: block;
        width: 100%;
        margin-top: .4rem;
        text-align: center;
    }
    .market-nav .navbar-collapse .user-menu {
        width: 100%;
        margin-left: 0 !important;
        margin-top: .4rem;
    }
    .market-nav .navbar-collapse .user-menu .dropdown-toggle {
        width: 100%;
        text-align: center;
    }
    .market-nav .navbar-collapse .user-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: .3rem;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.1);
    }
    .market-nav .navbar-collapse .user-menu .dropdown-item {
        color: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
    }
    .market-nav .navbar-collapse .user-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    .market-nav .navbar-collapse .user-menu .dropdown-item.logout {
        color: rgba(255, 200, 185, 0.95);
    }
    .market-nav .navbar-collapse .user-menu .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.2);
    }
    .market-nav .navbar-collapse .d-flex {
        width: 100%;
    }
}

/* --- LISTINGS TABLE — hide columns on small screens ------- */
@media (max-width: 767px) {
    /* hide Year, Location, Posted on mobile */
    .listings-table th:nth-child(4),
    .listings-table td:nth-child(4),
    .listings-table th:nth-child(7),
    .listings-table td:nth-child(7),
    .listings-table th:nth-child(8),
    .listings-table td:nth-child(8) {
        display: none;
    }
    .listings-table-thumb {
        width: 58px;
        height: 46px;
    }
    .listings-table tbody td {
        padding: .5rem .45rem;
        font-size: .84rem;
    }
    .listings-toolbar .btn-group {
        gap: 0;
    }
}
@media (max-width: 480px) {
    /* also hide Condition and thumbnail on very small screens */
    .listings-table th:nth-child(5),
    .listings-table td:nth-child(5) {
        display: none;
    }
    .listings-table th:first-child,
    .listings-table td:first-child {
        display: none;
    }
}

/* --- LISTINGS TOOLBAR — mobile ----------------------------- */
@media (max-width: 575px) {
    .listings-toolbar {
        padding: .65rem .75rem;
        gap: .5rem !important;
    }
    .listings-toolbar .small { font-size: .8rem; }
    .listings-toolbar .btn-group .btn {
        padding: .3rem .55rem;
        font-size: .8rem;
    }
}

/* --- TABS — scrollable on narrow screens ------------------ */
@media (max-width: 575px) {
    .listings-page .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 1px;
    }
    .listings-page .nav-tabs::-webkit-scrollbar { display: none; }
    .listings-page .nav-tabs .nav-item { flex-shrink: 0; }
    .listings-page .nav-tabs .nav-link {
        padding: .45rem .7rem;
        font-size: .82rem;
        white-space: nowrap;
    }
}

/* --- SELL PICKER — mobile stacking ----------------------- */
.picker-layout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
@media (max-width: 767px) {
    .picker-layout {
        flex-direction: column;
        align-items: stretch;
        gap: .85rem;
    }
    .picker-wrap .picker-scroll {
        max-height: 240px !important;
    }
    #action-panel {
        min-width: 100% !important;
        text-align: left !important;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: .85rem 1rem;
        background: var(--panel);
        box-shadow: 0 4px 16px rgba(79, 184, 183, 0.1);
    }
    #action-panel .d-grid {
        display: flex !important;
        flex-direction: row;
        gap: .5rem;
    }
    #action-panel .d-grid .btn {
        flex: 1;
    }
}

/* --- PRODUCT FORM — mobile ------------------------------- */
@media (max-width: 767px) {
    .product-form {
        border-radius: 16px;
        padding: 1rem;
    }
    .product-create .create-heading h1,
    .product-update h1.section-title {
        font-size: 1.55rem;
    }
    .product-form .row.g-4 > .col-lg-4 {
        margin-top: 0;
    }
}

/* --- PRODUCT VIEW — mobile stack order ------------------- */
@media (max-width: 991px) {
    .product-amz-layout {
        display: flex;
        flex-direction: column;
        gap: .9rem;
    }
    .product-media-col { order: 0; }
    .product-info-col  { order: 1; }
    .product-buy-col   { order: 2; position: static; }
}

/* --- MY ENQUIRIES — hide columns on mobile --------------- */
@media (max-width: 767px) {
    .my-enquiries .listings-table th:nth-child(1),
    .my-enquiries .listings-table td:nth-child(1),
    .my-enquiries .listings-table th:nth-child(4),
    .my-enquiries .listings-table td:nth-child(4),
    .my-enquiries .listings-table th:nth-child(6),
    .my-enquiries .listings-table td:nth-child(6) {
        display: none;
    }
}

/* --- HOME PAGE — mobile ---------------------------------- */
@media (max-width: 575px) {
    .home-section   { margin: 2rem 0; }
    .home-cta       { padding: 1.2rem; border-radius: 18px; }
    .vision-panel   { padding: 1.2rem; border-radius: 18px; }
    .why-card       { padding: 1.1rem; }
    .service-card   { padding: 1rem; }
    .about-card     { padding: 1rem; }
    .section-title-wrap { margin-bottom: 1rem; }
    .choose-list li {
        padding: .55rem .85rem .55rem 2rem;
        font-size: .9rem;
    }
}

/* --- CONTACT PAGE — better styling ----------------------- */
.site-contact {
    max-width: 680px;
}
.site-contact h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: .6rem;
    color: var(--ink);
}
.site-contact > p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.site-contact .row {
    --bs-gutter-x: 0;
}
.site-contact .col-lg-5 {
    max-width: 100%;
    flex: 0 0 100%;
}
.site-contact .form-control {
    border-color: var(--line);
}

/* --- BREADCRUMB — smaller on narrow screens -------------- */
@media (max-width: 575px) {
    .breadcrumb {
        font-size: .8rem;
        padding: .4rem .75rem;
    }
}

/* --- FOOTER — better mobile ------------------------------ */
@media (max-width: 575px) {
    .footer { padding: 1.8rem 0 1rem; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: .82rem;
        gap: .3rem;
    }
}

/* --- PAGINATION — mobile --------------------------------- */
@media (max-width: 575px) {
    .pagination {
        flex-wrap: wrap;
        gap: .2rem;
    }
    .page-link {
        padding: .32rem .58rem;
        font-size: .8rem;
        border-radius: 8px !important;
    }
}

/* --- CARD HOVER — consistent across components ----------- */
.product-grid-card:focus-within,
.why-card:hover,
.service-card:hover,
.about-card:hover,
.about-feature:hover {
    box-shadow: 0 18px 36px rgba(79, 184, 183, 0.16);
}
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}
