:root {
    --color-primary: #0F172A;
    --color-secondary: #FFFFFF;
    --color-accent: #2563EB;
    --color-bg: #F8FAFC;
    --color-surface: #ffffff;
    --color-soft: #F8FAFC;
    --color-line: #E2E8F0;
    --color-success: #10B981;
    --color-ink: var(--color-primary);
    --color-green: var(--color-success);
    --color-blue: var(--color-accent);
    --color-muted: #64748b;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);
    --radius: 14px;
}

/* Cleaner premium trade-in refinement */
.trade-hero--clean {
    background: #f8fafc;
    padding-block: clamp(34px, 6vw, 72px);
}

.trade-clean-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
}

.trade-clean-hero__copy {
    color: #0f172a;
}

.trade-clean-hero__copy h1 {
    max-width: 760px;
    margin-top: 10px;
    color: #0f172a;
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.trade-clean-hero__copy p:not(.eyebrow) {
    max-width: 640px;
    margin-top: 20px;
    color: #475569;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 700;
    line-height: 1.75;
}

.trade-clean-hero__visual {
    position: relative;
}

.trade-clean-hero__visual img {
    display: block;
    width: 100%;
    height: clamp(360px, 44vw, 560px);
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.trade-clean-floating-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.trade-clean-floating-card span,
.trade-clean-floating-card strong {
    display: block;
}

.trade-clean-floating-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-clean-floating-card strong {
    margin-top: 4px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.trade-section--clean {
    padding-block: clamp(30px, 5vw, 58px);
}

.trade-clean-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #e2e8f0;
}

.trade-clean-proof article {
    background: #fff;
    padding: clamp(18px, 3vw, 28px);
}

.trade-clean-proof strong,
.trade-clean-proof span {
    display: block;
}

.trade-clean-proof strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.trade-clean-proof span {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.65;
}

.trade-section-head--center {
    margin-inline: auto;
    text-align: center;
}

.trade-choice-grid--clean {
    max-width: 980px;
    margin-inline: auto;
}

.trade-choice-grid--clean .trade-choice-card {
    min-height: 280px;
    border-radius: 24px;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.08);
}

.trade-clean-guide {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.8fr);
    align-items: start;
    gap: clamp(24px, 5vw, 58px);
}

.trade-clean-guide h2 {
    margin-top: 8px;
    color: #0f172a;
    font-size: clamp(30px, 4.8vw, 52px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
}

.trade-clean-guide p:not(.eyebrow) {
    margin-top: 14px;
    max-width: 680px;
    color: #64748b;
    font-weight: 750;
    line-height: 1.75;
}

.trade-clean-steps {
    display: grid;
    gap: 10px;
}

.trade-clean-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
}

.trade-clean-steps span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.trade-clean-steps strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.trade-clean-conditions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.trade-clean-conditions article {
    min-width: 210px;
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}

.trade-admin-aligned {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.trade-admin-aligned article {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    padding: 18px;
}

.trade-admin-aligned strong,
.trade-admin-aligned span {
    display: block;
}

.trade-admin-aligned strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.trade-admin-aligned span {
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.trade-clean-conditions strong,
.trade-clean-conditions span {
    display: block;
}

.trade-clean-conditions strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.trade-clean-conditions span {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.55;
}

.trade-form-layout--clean {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.9fr);
    gap: clamp(24px, 5vw, 60px);
}

.trade-form-card--clean {
    border-radius: 26px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.trade-form-disclosure {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 0;
}

.trade-form-disclosure summary {
    cursor: pointer;
    padding: 14px 16px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.trade-form-disclosure .trade-in-check-grid {
    border-top: 1px solid #e2e8f0;
    padding: 12px;
}

.trade-form-disclosure .trade-in-check-grid label {
    border-radius: 12px;
    padding: 11px 12px;
}

.trade-support-cta--clean {
    padding-top: 0;
}

@media (max-width: 980px) {
    .trade-clean-hero,
    .trade-clean-guide,
    .trade-form-layout--clean {
        grid-template-columns: 1fr;
    }

    .trade-clean-proof {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .trade-clean-hero__copy h1 {
        font-size: 40px;
    }

    .trade-clean-hero__visual img {
        height: 340px;
        border-radius: 24px;
    }

    .trade-clean-floating-card {
        right: 14px;
        bottom: 14px;
    }
}

/* Final mobile cascade guard */
@media (max-width: 920px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .topbar {
        display: none;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 70px;
        padding-block: 10px;
    }

    .site-header__inner > .mobile-menu-button {
        display: inline-grid;
        order: -1;
    }

    .site-header__inner > .searchbar {
        grid-column: 1 / -1;
        order: 4;
    }

    .mobile-store-menu.is-open,
    .mobile-bottom-nav {
        display: block;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .category-nav__inner {
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

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

    .category-nav a {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .wa-float {
        bottom: calc(88px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 760px) {
    .shop-shell,
    .site-header__inner,
    .category-nav__inner,
    .footer__inner,
    .footer__bottom {
        width: min(100% - 20px, 1180px);
    }

    .market-hero-layout,
    .market-hero-slide,
    .filter-layout,
    .product-premium-hero,
    .product-content-grid,
    .product-info-grid,
    .product-confidence-panel,
    .product-trade-panel,
    .trade-clean-hero,
    .trade-clean-guide,
    .trade-form-layout--clean,
    .trade-dark-panel,
    .trade-form-layout,
    .trade-faq-layout {
        grid-template-columns: 1fr !important;
    }

    .market-category-menu {
        display: none !important;
    }

    .market-hero-slide {
        min-height: auto;
        padding: 18px;
    }

    .market-hero-copy {
        order: 2;
    }

    .market-hero-image {
        order: 1;
        min-height: 220px;
    }

    .market-hero-image img {
        height: clamp(220px, 62vw, 320px);
    }

    .marketplace-product-grid,
    .product-grid,
    .market-promo-row,
    .market-banner-grid,
    .market-brand-grid,
    .market-why-grid,
    .testimonial-grid,
    .trade-proof-strip,
    .trade-choice-grid,
    .trade-workflow-grid,
    .condition-grade-grid,
    .trade-benefit-grid,
    .trade-testimonial-grid,
    .trade-in-mode-grid,
    .trade-in-check-grid {
        grid-template-columns: 1fr !important;
    }

    .product-gallery {
        grid-template-columns: 1fr !important;
    }

    .product-gallery__rail {
        display: none;
    }

    .product-gallery__image {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: 74vh;
        object-fit: contain;
    }

    .product-card__form {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .product-secondary-actions,
    .product-share-actions,
    .product-trust-grid,
    .product-kicker-row {
        grid-template-columns: 1fr !important;
    }

    .section-head,
    .marketplace-section-head,
    .results-head,
    .trade-support-cta__inner,
    .trade-in-home-cta,
    .market-newsletter__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .section-link,
    .btn-primary,
    .btn-outline,
    .btn-green {
        min-height: 48px;
    }

    .form-control,
    .qty-input,
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .footer {
        padding-bottom: 96px;
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    .marketplace-product-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-layout,
    .product-premium-hero,
    .product-content-grid,
    .product-info-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1023px) {
    .admin-shell,
    .customer-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar,
    .customer-sidebar {
        display: none;
    }

    .admin-mobile-nav,
    .customer-mobile-nav {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .admin-mobile-nav::-webkit-scrollbar,
    .customer-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-main,
    .customer-main {
        padding-bottom: 96px;
    }

    .admin-main table,
    .customer-main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Mobile-first ecommerce responsiveness layer */
html {
    overflow-x: hidden;
    scroll-padding-top: 112px;
}

body {
    overflow-x: clip;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.14);
}

img,
video,
iframe,
table {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

.mobile-menu-button,
.mobile-store-menu,
.mobile-bottom-nav {
    display: none;
}

.mobile-menu-lock {
    overflow: hidden;
}

.site-header {
    z-index: 70;
}

.form-control,
.qty-input,
.auth-field input,
.checkout-field .form-control,
.trade-image-upload,
.trade-video-upload__dropzone,
.checkout-payment-option,
.product-swatch,
.product-share-button,
.customer-nav-link,
.admin-nav-link,
.btn-primary,
.btn-outline,
.btn-green {
    min-height: 44px;
}

.form-control,
.qty-input {
    font-size: 16px;
}

.btn-primary,
.btn-outline,
.btn-green,
.product-share-button {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-card,
.product-card,
.marketplace-panel,
.purchase-panel,
.filter-panel {
    overflow-wrap: anywhere;
}

.product-card__title,
.section-title,
.hero-title,
.product-premium-title,
.admin-topbar__title,
.customer-topbar h1 {
    text-wrap: balance;
}

.product-card__image,
.market-hero-image,
.product-gallery__hero {
    background: #f8fafc;
}

.product-card__image img,
.market-hero-image img,
.product-gallery__image {
    content-visibility: auto;
}

.table-scroll,
.admin-main table,
.customer-main table {
    min-width: 100%;
}

@media (hover: none) {
    .product-card:hover,
    .checkout-payment-option:hover,
    .market-hero-control:hover,
    .btn-primary:hover,
    .btn-outline:hover {
        transform: none;
    }
}

@media (max-width: 1180px) {
    .shop-shell,
    .topbar__inner,
    .site-header__inner,
    .category-nav__inner,
    .footer__inner,
    .footer__bottom {
        width: min(100% - 32px, 1180px);
    }

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

    .market-category-menu {
        display: none;
    }
}

@media (max-width: 920px) {
    html {
        scroll-padding-top: 92px;
    }

    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .topbar {
        display: none;
    }

    .site-header {
        top: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.92);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 70px;
        padding-block: 10px;
    }

    .site-header .brand {
        min-width: 0;
    }

    .site-header .brand__image-wrap {
        height: 44px;
        width: 126px;
    }

    .mobile-menu-button {
        display: inline-grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #ffffff;
        color: #0f172a;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .site-header__inner > .mobile-menu-button {
        order: -1;
    }

    .site-header__inner > .searchbar {
        grid-column: 1 / -1;
        order: 4;
    }

    .searchbar {
        min-height: 48px;
        border-radius: 16px;
    }

    .searchbar input {
        min-width: 0;
        height: 48px;
        padding-left: 14px;
        font-size: 16px;
    }

    .searchbar button {
        width: 48px;
        min-width: 48px;
        height: 48px;
    }

    .header-actions {
        justify-self: end;
    }

    .header-actions .icon-action {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .icon-action--whatsapp {
        display: none;
    }

    .category-nav {
        border-top: 0;
        background: transparent;
    }

    .category-nav__inner {
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 12px;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

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

    .category-nav a {
        min-height: 40px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #f8fafc;
        padding: 10px 14px;
        font-size: 12px;
    }

    .mobile-store-menu {
        position: fixed;
        inset: 0;
        z-index: 100;
        background: rgba(15, 23, 42, 0.52);
        padding: 12px;
    }

    .mobile-store-menu.is-open {
        display: block;
    }

    .mobile-store-menu__panel {
        display: grid;
        max-height: min(720px, calc(100vh - 24px));
        gap: 16px;
        overflow-y: auto;
        border: 1px solid rgba(226, 232, 240, 0.94);
        border-radius: 22px;
        background: #ffffff;
        padding: 16px;
        box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    }

    .mobile-store-menu__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-store-menu__head span {
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .mobile-store-menu__head button,
    .mobile-store-menu__search button {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border-radius: 14px;
        background: #0f172a;
        color: #ffffff;
    }

    .mobile-store-menu__search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 8px;
    }

    .mobile-store-menu__search input {
        min-width: 0;
        min-height: 48px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #f8fafc;
        padding-inline: 14px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 800;
    }

    .mobile-store-menu__links {
        display: grid;
        gap: 8px;
    }

    .mobile-store-menu__links a {
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #ffffff;
        padding: 12px 14px;
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
        text-decoration: none;
    }

    .mobile-store-menu__links a::after {
        content: ">";
        color: #94a3b8;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        border: 1px solid rgba(226, 232, 240, 0.96);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.94);
        padding: 8px;
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav a {
        display: grid;
        min-width: 0;
        min-height: 54px;
        place-items: center;
        gap: 3px;
        border-radius: 16px;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-decoration: none;
    }

    .mobile-bottom-nav a.is-active {
        background: #eff6ff;
        color: #2563eb;
    }

    .mobile-bottom-nav__cart {
        position: relative;
        display: inline-grid;
        place-items: center;
    }

    .mobile-bottom-nav__cart small {
        position: absolute;
        top: -9px;
        right: -12px;
        min-width: 18px;
        border-radius: 999px;
        background: #2563eb;
        padding: 2px 5px;
        color: #ffffff;
        font-size: 10px;
        line-height: 1;
    }

    .wa-float {
        right: 14px;
        bottom: calc(88px + env(safe-area-inset-bottom));
        width: 50px;
        height: 50px;
    }

    .footer {
        padding-bottom: 96px;
    }
}

@media (max-width: 760px) {
    .shop-shell,
    .topbar__inner,
    .site-header__inner,
    .category-nav__inner,
    .footer__inner,
    .footer__bottom {
        width: min(100% - 24px, 1180px);
    }

    .market-section,
    .trade-section,
    .testimonial-section {
        padding-block: 28px;
    }

    .section-card,
    .marketplace-panel,
    .purchase-panel,
    .filter-panel,
    .checkout-recovery-card {
        border-radius: 18px;
    }

    .page-intro,
    .page-intro--dark,
    .section-card.p-8,
    .section-card.p-10 {
        padding: 22px !important;
    }

    .page-intro h1,
    .hero-title,
    .section-title,
    .product-premium-title,
    .checkout-recovery-card h1 {
        font-size: clamp(28px, 9vw, 38px) !important;
        line-height: 1.04 !important;
        letter-spacing: 0 !important;
    }

    .page-intro p,
    .market-section-copy,
    .hero-copy,
    .product-summary {
        font-size: 14px;
        line-height: 1.65;
    }

    .section-head,
    .marketplace-section-head,
    .results-head,
    .trade-support-cta__inner,
    .trade-in-home-cta,
    .market-newsletter__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .section-link,
    .marketplace-section-head .section-link,
    .trade-in-home-cta .btn-primary,
    .market-newsletter .btn-primary {
        width: 100%;
        min-height: 48px;
    }

    .market-hero-wrap {
        padding-top: 14px;
    }

    .market-hero-layout {
        width: min(100% - 18px, 1180px);
    }

    .market-hero-carousel {
        min-height: auto;
        border-radius: 22px;
    }

    .market-hero-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 18px;
    }

    .market-hero-copy {
        order: 2;
        padding: 0;
    }

    .market-hero-image {
        order: 1;
        min-height: 220px;
        border-radius: 18px;
    }

    .market-hero-image img {
        height: clamp(220px, 62vw, 320px);
        object-fit: cover;
    }

    .market-hero-actions,
    .trade-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .market-hero-actions .btn-primary,
    .market-hero-actions .btn-outline {
        width: 100%;
        min-height: 50px;
    }

    .market-hero-floating-card {
        right: 10px;
        bottom: 10px;
        max-width: min(74%, 260px);
        border-radius: 14px;
        padding: 10px 12px;
    }

    .market-hero-controls {
        top: 120px;
        right: 12px;
        left: 12px;
        justify-content: space-between;
        pointer-events: none;
    }

    .market-hero-control {
        pointer-events: auto;
    }

    .market-promo-row,
    .market-banner-grid,
    .market-brand-grid,
    .market-why-grid,
    .testimonial-grid,
    .trade-proof-strip,
    .trade-choice-grid,
    .trade-workflow-grid,
    .condition-grade-grid,
    .trade-benefit-grid,
    .trade-testimonial-grid {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .marketplace-product-grid,
    .product-grid,
    .grid.md\:grid-cols-2,
    .grid.xl\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

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

    .product-card__image {
        aspect-ratio: 1 / 0.86;
    }

    .product-card__body {
        padding: 15px;
    }

    .product-card__title {
        min-height: auto;
        font-size: 15px;
        line-height: 1.35;
    }

    .product-card__price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .product-card__form {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
        padding: 0 15px 15px;
    }

    .qty-input {
        width: 100% !important;
        min-height: 48px;
        border-radius: 14px;
        text-align: center;
    }

    .filter-layout {
        grid-template-columns: 1fr !important;
    }

    .filter-panel {
        position: static;
        border-radius: 18px;
    }

    .filter-panel__body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results-head {
        display: grid;
    }

    .results-head form,
    .results-head select {
        width: 100%;
    }

    .product-premium-page {
        padding-top: 16px;
    }

    .product-breadcrumb {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .product-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .product-premium-hero,
    .product-content-grid,
    .product-info-grid,
    .product-confidence-panel,
    .product-trade-panel {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

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

    .product-gallery__rail {
        display: none;
    }

    .product-gallery__hero {
        min-height: auto;
        border-radius: 20px;
    }

    .product-gallery__image {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: 74vh;
        object-fit: contain;
    }

    .product-gallery__mobile-strip {
        display: flex;
        justify-content: center;
        padding-top: 12px;
    }

    .product-gallery__close,
    .product-gallery__nav {
        width: 48px;
        height: 48px;
    }

    .product-kicker-row,
    .product-trust-grid,
    .product-secondary-actions,
    .product-share-actions {
        grid-template-columns: 1fr !important;
    }

    .product-purchase-form {
        gap: 12px;
    }

    .product-purchase-form label,
    .product-purchase-form .btn-primary,
    .product-secondary-actions .btn-outline,
    .product-secondary-actions .btn-green,
    .product-share-button {
        width: 100%;
    }

    .mobile-product-cta {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .checkout-field {
        gap: 7px;
    }

    .checkout-field .form-control,
    .checkout-field select,
    .checkout-field textarea {
        width: 100%;
    }

    .checkout-payment-option {
        border-radius: 16px;
        padding: 15px;
    }

    .checkout-payment-option input[type="radio"] {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
        accent-color: #2563eb;
    }

    .checkout-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-steps span {
        display: grid;
        min-height: 38px;
        place-items: center;
        text-align: center;
    }

    .cart-line,
    .section-card.md\:grid-cols-\[120px_1fr_auto\] {
        grid-template-columns: 92px minmax(0, 1fr) !important;
    }

    .section-card.md\:grid-cols-\[120px_1fr_auto\] > div:last-child {
        grid-column: 1 / -1;
    }

    .trade-clean-hero__visual img,
    .trade-hero__visual img {
        height: clamp(260px, 68vw, 360px);
    }

    .trade-clean-floating-card,
    .trade-hero__device-card,
    .trade-hero__stat {
        position: static;
        margin-top: 12px;
    }

    .trade-in-mode-grid,
    .trade-in-check-grid {
        grid-template-columns: 1fr !important;
    }

    .trade-image-upload,
    .trade-video-upload__dropzone {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 16px;
        padding: 15px;
    }

    .auth-page {
        min-height: 100svh;
    }

    .auth-panel {
        padding: 22px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    .marketplace-product-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-layout,
    .product-premium-hero,
    .product-content-grid,
    .product-info-grid {
        grid-template-columns: 1fr !important;
    }

    .product-gallery {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .market-banner-grid,
    .market-why-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shop-shell,
    .site-header__inner,
    .category-nav__inner,
    .footer__inner,
    .footer__bottom {
        width: min(100% - 20px, 1180px);
    }

    .site-header .brand__image-wrap {
        width: 112px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .icon-action {
        width: 42px;
        height: 42px;
    }

    .page-intro,
    .section-card.p-6,
    .section-card.p-8 {
        padding: 18px !important;
    }

    .product-card__trust {
        gap: 6px;
    }

    .product-card__trust span {
        min-height: 30px;
        padding: 7px 9px;
        font-size: 10px;
    }

    .cart-count-badge {
        right: -6px;
        top: -6px;
    }

    .checkout-recovery-summary p,
    .product-buy-meta p {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .customer-mobile-nav,
    .admin-mobile-nav {
        scroll-snap-type: x mandatory;
    }

    .customer-mobile-nav a,
    .admin-mobile-nav a {
        scroll-snap-align: start;
    }
}

@media (max-width: 1023px) {
    .admin-shell,
    .customer-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar,
    .customer-sidebar {
        display: none;
    }

    .admin-workspace,
    .customer-shell > .min-w-0 {
        min-width: 0;
    }

    .admin-topbar,
    .customer-topbar {
        position: sticky;
        top: 0;
        z-index: 60;
        border-bottom: 1px solid #e2e8f0;
        background: rgba(248, 250, 252, 0.94);
        backdrop-filter: blur(16px);
    }

    .admin-topbar__inner,
    .customer-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .admin-topbar__actions,
    .customer-topbar > .flex {
        width: 100%;
        justify-content: space-between;
    }

    .admin-mobile-nav,
    .customer-mobile-nav {
        position: sticky;
        top: 78px;
        z-index: 55;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        border-bottom: 1px solid #e2e8f0;
        background: rgba(255, 255, 255, 0.96);
        padding: 10px 12px;
        scrollbar-width: none;
    }

    .admin-mobile-nav::-webkit-scrollbar,
    .customer-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-mobile-nav a,
    .customer-mobile-nav a {
        display: inline-flex;
        min-height: 42px;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #ffffff;
        padding: 10px 13px;
        color: #475569;
        font-size: 12px;
        font-weight: 900;
        text-decoration: none;
    }

    .admin-mobile-nav a.is-active,
    .customer-mobile-nav a.is-active {
        border-color: rgba(37, 99, 235, 0.26);
        background: #eff6ff;
        color: #2563eb;
    }

    .admin-main,
    .customer-main {
        padding: 18px 12px 96px;
    }

    .admin-main .overflow-x-auto,
    .customer-main .overflow-x-auto,
    .admin-main table,
    .customer-main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-footer,
    .customer-footer {
        padding-bottom: 28px;
    }
}

@media (min-width: 1024px) {
    .admin-mobile-nav,
    .customer-mobile-nav {
        display: none;
    }
}

.trade-admin-aligned {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.trade-admin-aligned article {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    padding: 18px;
}

.trade-admin-aligned strong,
.trade-admin-aligned span {
    display: block;
}

.trade-admin-aligned strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.trade-admin-aligned span {
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.trade-form-disclosure {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 0;
}

.trade-form-disclosure summary {
    cursor: pointer;
    padding: 14px 16px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.trade-form-disclosure .trade-in-check-grid {
    border-top: 1px solid #e2e8f0;
    padding: 12px;
}

.trade-form-disclosure .trade-in-check-grid label {
    border-radius: 12px;
    padding: 11px 12px;
}

@media (max-width: 980px) {
    .trade-admin-aligned {
        grid-template-columns: 1fr;
    }
}

/* Premium trade-in landing page */
.trade-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.18), transparent 28rem),
        linear-gradient(135deg, #0f172a 0%, #111827 58%, #f8fafc 58%, #ffffff 100%);
    padding-block: clamp(42px, 7vw, 86px);
}

.trade-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
}

.trade-hero__copy {
    color: #fff;
}

.trade-hero__copy h1,
.trade-section-head h2,
.trade-form-intro h2,
.trade-dark-panel h2,
.trade-support-cta h2,
.trade-faq-layout h2 {
    letter-spacing: 0;
}

.trade-hero__copy h1 {
    max-width: 720px;
    margin-top: 10px;
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 900;
    line-height: 0.96;
}

.trade-hero__copy p:not(.eyebrow) {
    max-width: 640px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 700;
    line-height: 1.75;
}

.trade-hero__actions,
.trade-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.trade-hero__trust span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 9px 13px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 900;
}

.trade-hero__visual {
    position: relative;
    min-height: 520px;
}

.trade-hero__visual img {
    width: 100%;
    height: 520px;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
}

.trade-hero__device-card,
.trade-hero__stat {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.trade-hero__device-card {
    right: clamp(12px, 3vw, 32px);
    bottom: 28px;
    max-width: 300px;
    border-radius: 22px;
    padding: 18px;
}

.trade-hero__device-card span,
.trade-hero__stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-hero__device-card strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.trade-hero__stat {
    left: -12px;
    top: 42px;
    border-radius: 20px;
    padding: 16px 18px;
}

.trade-hero__stat strong {
    display: block;
    color: #2563eb;
    font-size: 28px;
    font-weight: 900;
}

.trade-section {
    padding-block: clamp(38px, 6vw, 78px);
}

.trade-section--tight {
    padding-block: 24px;
}

.trade-section--soft {
    background: #f8fafc;
}

.trade-section--dark {
    background: #0f172a;
}

.trade-section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.trade-section-head h2,
.trade-form-intro h2,
.trade-dark-panel h2,
.trade-support-cta h2,
.trade-faq-layout h2 {
    margin-top: 8px;
    color: #0f172a;
    font-size: clamp(30px, 4.8vw, 54px);
    font-weight: 900;
    line-height: 1.04;
}

.trade-section-head p:not(.eyebrow),
.trade-form-intro p,
.trade-support-cta p {
    margin-top: 12px;
    color: #64748b;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.7;
}

.trade-proof-strip,
.trade-choice-grid,
.trade-workflow-grid,
.condition-grade-grid,
.trade-benefit-grid,
.trade-testimonial-grid {
    display: grid;
    gap: 16px;
}

.trade-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trade-proof-strip article {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.trade-proof-strip strong,
.trade-proof-strip span,
.trade-benefit-grid strong,
.trade-benefit-grid span {
    display: block;
}

.trade-proof-strip strong,
.trade-choice-card h3,
.trade-workflow-grid h3,
.condition-grade-grid h3,
.trade-form-section h3 {
    color: #0f172a;
    font-weight: 900;
}

.trade-proof-strip span {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.trade-choice-grid,
.trade-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-choice-card {
    display: grid;
    min-height: 330px;
    align-content: space-between;
    gap: 18px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 26px;
    background: #fff;
    padding: clamp(22px, 4vw, 34px);
    box-shadow: var(--shadow-md);
}

.trade-choice-card--dark {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.24), transparent),
        #0f172a;
    color: #fff;
}

.trade-choice-card span {
    width: max-content;
    border-radius: 999px;
    background: #eff6ff;
    padding: 8px 12px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-choice-card--dark span {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
}

.trade-choice-card h3 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.06;
}

.trade-choice-card--dark h3 {
    color: #fff;
}

.trade-choice-card p {
    color: #64748b;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.7;
}

.trade-choice-card--dark p {
    color: rgba(255, 255, 255, 0.72);
}

.trade-workflow-grid article,
.condition-grade-grid article,
.trade-testimonial-grid article {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: #fff;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--shadow-sm);
}

.trade-workflow-grid h3 {
    font-size: 22px;
}

.trade-step-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.trade-step-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    padding: 14px;
}

.trade-step-list span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.trade-step-list strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.condition-grade-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.condition-grade-grid span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.condition-grade-grid h3 {
    margin-top: 28px;
    font-size: 18px;
}

.condition-grade-grid p {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.trade-dark-panel,
.trade-form-layout,
.trade-faq-layout {
    display: grid;
    gap: 28px;
}

.trade-dark-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 32rem),
        #111827;
    padding: clamp(24px, 5vw, 48px);
}

.trade-dark-panel h2,
.trade-dark-panel p {
    color: #fff;
}

.trade-dark-panel p:not(.eyebrow) {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 750;
    line-height: 1.7;
}

.trade-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-benefit-grid article {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    padding: 18px;
}

.trade-benefit-grid strong {
    color: #fff;
    font-weight: 900;
}

.trade-benefit-grid span {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.trade-form-layout {
    grid-template-columns: minmax(280px, 0.45fr) minmax(0, 0.95fr);
    align-items: start;
}

.trade-form-intro {
    position: sticky;
    top: 132px;
}

.trade-form-note {
    margin-top: 22px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 18px;
    background: #eff6ff;
    padding: 18px;
}

.trade-form-note strong,
.trade-form-note span {
    display: block;
}

.trade-form-note strong {
    color: #1d4ed8;
    font-weight: 900;
}

.trade-form-note span {
    margin-top: 6px;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.trade-form-card {
    padding: clamp(18px, 3vw, 28px);
}

.trade-in-form-section {
    display: grid;
    gap: 14px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 18px;
}

.trade-in-form-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-in-form-section h3 {
    margin-top: 4px;
    font-size: 18px;
}

.trade-in-submit {
    min-height: 52px;
}

.trade-faq-layout {
    grid-template-columns: minmax(240px, 0.45fr) minmax(0, 0.9fr);
}

.trade-faq-list {
    display: grid;
    gap: 12px;
}

.trade-faq-list details {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 18px;
    background: #fff;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.trade-faq-list summary {
    cursor: pointer;
    color: #0f172a;
    font-weight: 900;
}

.trade-faq-list p {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.7;
}

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

.trade-testimonial-grid article > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trade-testimonial-grid img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
}

.trade-testimonial-grid span {
    color: #0f172a;
    font-weight: 900;
}

.trade-testimonial-grid blockquote {
    margin-top: 14px;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.7;
}

.trade-support-cta {
    padding-block: 24px 54px;
}

.trade-support-cta__inner,
.trade-in-home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent),
        #0f172a;
    padding: clamp(22px, 4vw, 38px);
    color: #fff;
}

.trade-support-cta h2,
.trade-in-home-cta h2 {
    color: #fff;
}

.trade-support-cta p:not(.eyebrow),
.trade-in-home-cta p:not(.eyebrow) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.72);
}

.trade-in-home-cta h2 {
    margin-top: 8px;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.06;
}

.trade-in-home-cta p:not(.eyebrow) {
    margin-top: 10px;
    font-weight: 750;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .trade-hero__grid,
    .trade-dark-panel,
    .trade-form-layout,
    .trade-faq-layout {
        grid-template-columns: 1fr;
    }

    .trade-form-intro {
        position: static;
    }

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

@media (max-width: 820px) {
    .trade-hero {
        background:
            radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 22rem),
            #0f172a;
    }

    .trade-hero__visual {
        min-height: 0;
    }

    .trade-hero__visual img {
        height: 360px;
        border-radius: 24px;
    }

    .trade-proof-strip,
    .trade-choice-grid,
    .trade-workflow-grid,
    .trade-benefit-grid,
    .trade-testimonial-grid,
    .condition-grade-grid {
        grid-template-columns: 1fr;
    }

    .trade-support-cta__inner,
    .trade-in-home-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .trade-hero__copy h1 {
        font-size: 42px;
    }

    .trade-hero__actions a,
    .trade-support-cta__inner a,
    .trade-in-home-cta a {
        width: 100%;
    }

    .trade-hero__device-card,
    .trade-hero__stat {
        position: static;
        margin-top: 12px;
    }

    .trade-choice-card {
        min-height: 0;
    }

    .trade-form-card {
        padding: 16px;
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-ink);
}

.shop-shell {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

.topbar {
    background: var(--color-ink);
    color: #fff;
}

.topbar__inner,
.site-header__inner,
.category-nav__inner,
.footer__inner,
.footer__bottom {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
    font-size: 12px;
    font-weight: 700;
}

.topbar a,
.topbar span {
    color: rgba(255, 255, 255, 0.78);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: 230px 1fr auto;
    align-items: center;
    gap: 18px;
    padding-block: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand--logo {
    width: max-content;
    max-width: 100%;
    gap: 0;
    text-decoration: none;
}

.brand__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 74px;
    padding: 6px 10px;
    border: 1px solid rgba(38, 64, 139, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(31, 39, 27, 0.06);
    overflow: hidden;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.brand__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

.brand--logo:hover .brand__image-wrap {
    transform: translateY(-1px);
    border-color: rgba(76, 185, 99, 0.28);
    box-shadow: 0 18px 44px rgba(31, 39, 27, 0.12);
}

.brand__mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: var(--color-blue);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(38, 64, 139, 0.22);
}

.brand__name {
    display: block;
    color: var(--color-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.brand__sub {
    display: block;
    margin-top: 3px;
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.brand--footer .brand__image-wrap {
    width: 306px;
    height: 76px;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.searchbar {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
}

.searchbar input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 14px 16px;
    outline: 0;
    font-size: 14px;
}

.searchbar button,
.btn-primary {
    border: 0;
    border-radius: 12px;
    background: var(--color-blue);
    color: #fff;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.searchbar button {
    display: grid;
    width: 50px;
    min-width: 50px;
    place-items: center;
    border-radius: 999px;
    margin: 4px;
    padding: 0;
}

.btn-primary,
.btn-green,
.btn-outline {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
}

.icon-action {
    position: relative;
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #fff;
    color: var(--color-blue);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.cart-count-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    padding-inline: 5px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.24);
}

.store-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 850;
    box-shadow: var(--shadow-sm);
}

.store-notice--success {
    border: 1px solid rgba(76, 185, 99, 0.34);
    background: rgba(76, 185, 99, 0.12);
    color: #14532d;
}

.store-notice__icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: var(--color-green);
    color: var(--color-ink);
}

.icon-action:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 64, 139, 0.28);
    background: rgba(38, 64, 139, 0.06);
    box-shadow: var(--shadow-md);
}

.icon-action--whatsapp {
    border-color: rgba(76, 185, 99, 0.34);
    background: rgba(76, 185, 99, 0.14);
    color: #128c45;
}

.icon-action--whatsapp:hover {
    background: var(--color-green);
    color: var(--color-ink);
}

.btn-with-icon {
    gap: 8px;
}

.btn-with-icon > span {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.product-card__form .btn-primary {
    flex-shrink: 0;
    min-width: max-content;
    padding-inline: 12px;
}

.btn-green {
    background: var(--color-green);
    color: var(--color-ink);
    box-shadow: 0 12px 24px rgba(76, 185, 99, 0.24);
}

.btn-outline {
    border: 1px solid var(--color-line);
    background: #fff;
    color: var(--color-ink);
}

.btn-primary:hover,
.btn-green:hover,
.btn-outline:hover {
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-nav {
    border-top: 1px solid var(--color-line);
    background: #f8fafc;
}

.category-nav__inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-block: 8px;
}

.category-nav a {
    flex: 0 0 auto;
    border-radius: 10px;
    padding: 9px 14px;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.category-nav a:hover {
    background: #fff;
    color: var(--color-blue);
}

.section-card {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-line);
}

.section-title {
    color: var(--color-ink);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 900;
    line-height: 1.1;
}

.section-link {
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 900;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sidebar-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.sidebar-card__title {
    background: var(--color-blue);
    color: #fff;
    padding: 15px 18px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.sidebar-link:hover {
    background: rgba(38, 64, 139, 0.08);
    color: var(--color-blue);
}

.hero-panel {
    display: grid;
    gap: 20px;
}

.hero-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

.hero-carousel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(24px, 4vw, 44px);
    transition: opacity 700ms ease;
}

.hero-slide.is-hidden {
    pointer-events: none;
    opacity: 0;
}

.eyebrow {
    color: var(--color-blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-title {
    margin-top: 12px;
    max-width: 620px;
    color: var(--color-ink);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    line-height: 0.98;
}

.hero-copy {
    margin-top: 18px;
    max-width: 560px;
    color: var(--color-muted);
    line-height: 1.7;
}

.hero-product {
    margin-top: 18px;
    color: var(--color-blue);
    font-size: 20px;
    font-weight: 900;
}

.hero-image,
.product-main-image {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-soft);
}

.hero-image img,
.product-main-image img,
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image img {
    height: 390px;
}

.promo-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.promo-card {
    display: block;
    min-height: 170px;
    height: 100%;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.promo-card--dark {
    border-color: var(--color-blue);
    background: var(--color-blue);
    color: #fff;
}

.service-grid,
.category-grid,
.product-grid,
.trust-grid {
    display: grid;
    gap: 16px;
}

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

.category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

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

.assurance-section {
    position: relative;
}

.assurance-card {
    position: relative;
    isolation: isolate;
    min-height: 164px;
    overflow: hidden;
    border: 1px solid rgba(31, 39, 27, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.94)),
        #f8fafc;
    padding: 22px 18px 20px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(31, 39, 27, 0.055);
    transition:
        transform 260ms cubic-bezier(.22, 1, .36, 1),
        border-color 260ms ease,
        background 260ms ease,
        box-shadow 260ms ease;
}

.assurance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(76, 185, 99, 0.08), rgba(38, 64, 139, 0.06) 48%, transparent 72%);
    opacity: 0;
    transition: opacity 260ms ease;
}

.assurance-card__glow {
    position: absolute;
    top: -42px;
    right: -34px;
    z-index: -1;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    opacity: 0.28;
    filter: blur(24px);
    transform: scale(0.82);
    transition:
        opacity 260ms ease,
        transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.assurance-card__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-inline: auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 12px 26px rgba(31, 39, 27, 0.08);
    transition:
        transform 260ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 260ms ease;
}

.assurance-card__label {
    margin-top: 16px;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.assurance-card__copy {
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.assurance-card:hover {
    transform: translateY(-5px);
    border-color: rgba(38, 64, 139, 0.16);
    background: #fff;
    box-shadow: 0 24px 58px rgba(31, 39, 27, 0.105);
}

.assurance-card:hover::before {
    opacity: 1;
}

.assurance-card:hover .assurance-card__glow {
    opacity: 0.48;
    transform: scale(1);
}

.assurance-card:hover .assurance-card__icon {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 18px 34px rgba(31, 39, 27, 0.11);
}

.assurance-card--compact {
    min-height: 142px;
    padding: 18px 14px 16px;
    border-radius: 18px;
}

.assurance-card--compact .assurance-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.assurance-card--compact .assurance-card__label {
    margin-top: 13px;
    font-size: 12px;
}

.assurance-card--compact .assurance-card__copy {
    font-size: 11px;
}

.mini-card,
.category-card,
.trust-card {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.category-card {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 64, 139, 0.28);
    box-shadow: var(--shadow-md);
}

.category-card__mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    background: rgba(38, 64, 139, 0.1);
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 900;
}

.product-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 64, 139, 0.28);
    box-shadow: var(--shadow-md);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-soft);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-blue);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card__body {
    padding: 16px;
}

.product-card__category {
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card__title {
    min-height: 48px;
    margin-top: 8px;
    color: var(--color-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.product-card__meta {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 14px;
}

.product-card__price {
    margin-top: 12px;
    color: var(--color-blue);
    font-size: 19px;
    font-weight: 900;
}

.product-card__form {
    display: flex;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
    padding: 14px;
}

.qty-input,
.form-control {
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    font-size: 14px;
}

.trade-video-upload {
    display: grid;
    gap: 12px;
}

.trade-video-upload__dropzone {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 118px;
    border: 1px dashed rgba(38, 64, 139, 0.34);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(38, 64, 139, 0.055), rgba(76, 185, 99, 0.075)),
        #fff;
    padding: 18px;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.trade-video-upload__dropzone:hover,
.trade-video-upload__dropzone.is-dragging {
    transform: translateY(-1px);
    border-color: var(--color-blue);
    box-shadow: 0 18px 42px rgba(31, 39, 27, 0.09);
}

.trade-video-upload__icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: var(--color-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(38, 64, 139, 0.22);
}

.trade-video-upload__dropzone strong,
.trade-video-upload__dropzone small,
.trade-video-upload__meta strong,
.trade-video-upload__meta span {
    display: block;
}

.trade-video-upload__dropzone strong {
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 900;
}

.trade-video-upload__dropzone small {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.trade-video-upload__preview {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.trade-video-upload__preview.hidden,
.trade-video-upload__progress.hidden {
    display: none;
}

.trade-video-upload__player {
    width: 160px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    background: #0f172a;
    object-fit: cover;
}

.trade-video-upload__meta {
    min-width: 0;
}

.trade-video-upload__meta strong {
    overflow: hidden;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-video-upload__meta span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.trade-video-upload__remove {
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    padding: 10px 12px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 900;
}

.trade-video-upload__progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.trade-video-upload__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--color-green);
    transition: width 160ms ease;
}

.trade-video-upload__message {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.trade-video-upload__message[data-state="success"] {
    color: #047857;
}

.trade-video-upload__message[data-state="error"] {
    color: #b91c1c;
}

.trade-admin-media {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #f8fafc;
}

.trade-admin-media img,
.trade-admin-media video {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0f172a;
    object-fit: contain;
}

.trade-admin-media figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.trade-in-pro-panel {
    align-items: start;
}

.trade-in-pro-intro {
    position: sticky;
    top: 96px;
}

.trade-in-pro-steps,
.trade-in-mode-grid,
.trade-in-check-grid {
    display: grid;
    gap: 10px;
}

.trade-in-pro-steps {
    margin-top: 22px;
}

.trade-in-pro-steps span,
.trade-in-mode-grid label,
.trade-in-check-grid label,
.trade-image-upload {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 14px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
}

.trade-in-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-in-mode-grid label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.trade-in-mode-grid label:has(input:checked) {
    border-color: rgba(37, 99, 235, .42);
    background: #eff6ff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, .12);
}

.trade-in-mode-grid label:hover {
    transform: translateY(-1px);
}

.trade-in-mode-grid input,
.trade-in-check-grid input {
    accent-color: #2563eb;
}

.trade-in-mode-grid strong,
.trade-image-upload strong {
    display: block;
    font-weight: 900;
}

.trade-in-mode-grid small,
.trade-image-upload small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.trade-in-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-image-upload {
    display: grid;
    gap: 12px;
    border-style: dashed;
}

.trade-image-upload input {
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .trade-in-pro-intro {
        position: static;
    }

    .trade-in-mode-grid,
    .trade-in-check-grid {
        grid-template-columns: 1fr;
    }
}

.qty-input {
    width: 64px;
    padding-inline: 8px;
}

.filter-layout,
.product-detail-layout {
    display: grid;
    gap: 24px;
}

.filter-layout {
    grid-template-columns: 280px 1fr;
}

.filter-panel {
    position: sticky;
    top: 144px;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-panel__head {
    border-bottom: 1px solid var(--color-line);
    background: #f8fafc;
    padding: 16px 18px;
}

.filter-panel__body {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.product-detail-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
}

.purchase-panel {
    position: sticky;
    top: 144px;
    align-self: start;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.footer {
    background: var(--color-ink);
    color: #fff;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 32px;
    padding-block: 48px;
}

.footer a,
.footer span,
.footer p {
    color: rgba(255, 255, 255, 0.68);
}

.footer h2 {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 16px;
    font-size: 12px;
}

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-green);
    color: var(--color-ink);
    font-weight: 900;
    box-shadow: 0 20px 44px rgba(76, 185, 99, 0.34);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(76, 185, 99, 0.42);
}

@media (max-width: 1100px) {
    .site-header__inner,
    .hero-grid,
    .hero-row,
    .filter-layout,
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .purchase-panel {
        position: static;
    }

    .service-grid,
    .product-grid,
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 700px) {
    .topbar__inner,
    .results-head,
    .footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero-carousel {
        min-height: 640px;
    }

    .service-grid,
    .category-grid,
    .product-grid,
    .trust-grid,
    .footer__inner {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-wrap: wrap;
    }
}

/* Premium refinement layer */
body {
    background:
        linear-gradient(180deg, rgba(76, 185, 99, 0.055), transparent 280px),
        var(--color-bg);
    letter-spacing: 0;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(31, 39, 27, 0.06);
}

.site-header__inner {
    grid-template-columns: 324px minmax(280px, 1fr) auto;
    padding-block: 10px;
}

.brand__mark {
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 38%),
        var(--color-blue);
}

.site-header .brand__image-wrap {
    box-shadow: 0 10px 24px rgba(31, 39, 27, 0.05);
}

@media (max-width: 1100px) {
    .site-header__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        gap: 14px;
        padding-block: 12px;
    }

    .brand__image-wrap,
    .brand--footer .brand__image-wrap {
        width: min(280px, 78vw);
        height: 70px;
        padding: 5px 8px;
        border-radius: 12px;
    }
}

.searchbar {
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: border-color 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms cubic-bezier(.2, .8, .2, 1);
}

.searchbar:focus-within {
    border-color: rgba(38, 64, 139, 0.45);
    box-shadow: 0 0 0 4px rgba(38, 64, 139, 0.08);
}

.searchbar button,
.btn-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
        var(--color-blue);
    transition: transform 180ms cubic-bezier(.2, .8, .2, 1), box-shadow 180ms cubic-bezier(.2, .8, .2, 1), filter 180ms cubic-bezier(.2, .8, .2, 1);
}

.btn-green {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
        var(--color-green);
}

.btn-primary:hover,
.btn-green:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-nav {
    background: rgba(251, 252, 250, 0.96);
}

.category-nav a {
    transition: color 180ms cubic-bezier(.2, .8, .2, 1), background 180ms cubic-bezier(.2, .8, .2, 1), transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.category-nav a:hover {
    transform: translateY(-1px);
}

.section-card,
.sidebar-card,
.hero-carousel,
.promo-card,
.mini-card,
.category-card,
.trust-card,
.product-card,
.filter-panel,
.results-head,
.purchase-panel {
    border-color: rgba(31, 39, 27, 0.11);
}

.section-card,
.sidebar-card,
.filter-panel,
.purchase-panel {
    border-radius: 22px;
}

.section-card {
    box-shadow: 0 16px 48px rgba(31, 39, 27, 0.07);
}

.section-head {
    padding-bottom: 20px;
}

.section-title {
    font-size: clamp(25px, 2.8vw, 36px);
    letter-spacing: 0;
}

.hero-grid,
.hero-row,
.hero-panel,
.promo-stack {
    gap: 24px;
}

.sidebar-card {
    box-shadow: var(--shadow-md);
}

.sidebar-card__title {
    background:
        linear-gradient(135deg, rgba(76, 185, 99, 0.18), transparent),
        var(--color-blue);
}

.sidebar-link {
    transition: padding 180ms cubic-bezier(.2, .8, .2, 1), background 180ms cubic-bezier(.2, .8, .2, 1), color 180ms cubic-bezier(.2, .8, .2, 1);
}

.sidebar-link:hover {
    padding-left: 22px;
}

.hero-carousel {
    min-height: 540px;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 10%, rgba(76, 185, 99, 0.16), transparent 26%),
        radial-gradient(circle at 90% 8%, rgba(38, 64, 139, 0.15), transparent 30%);
}

.hero-slide {
    z-index: 2;
    padding: clamp(30px, 5vw, 58px);
    transition: opacity 700ms cubic-bezier(.2, .8, .2, 1), transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.hero-slide.is-hidden {
    transform: scale(0.985);
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: clamp(46px, 5.8vw, 74px);
}

.hero-copy {
    font-size: 17px;
    line-height: 1.75;
}

.hero-image,
.product-main-image {
    border-radius: 22px;
}

.hero-image img {
    height: 420px;
    transform: scale(1.01);
}

.promo-card,
.category-card,
.trust-card,
.product-card {
    border-radius: 20px;
}

.promo-card {
    min-height: 178px;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms cubic-bezier(.2, .8, .2, 1), border-color 220ms cubic-bezier(.2, .8, .2, 1);
}

@media (min-width: 1101px) and (max-width: 1280px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
        gap: 32px;
        padding: clamp(30px, 4vw, 50px);
    }

    .hero-title {
        font-size: clamp(42px, 5vw, 64px);
    }

    .hero-image img {
        height: 380px;
    }
}

@media (max-width: 920px) {
    .hero-slide {
        position: relative;
        inset: auto;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-slide.is-hidden {
        display: none;
    }

    .hero-carousel {
        min-height: 0;
    }

    .promo-stack {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: clamp(240px, 46vw, 320px);
    }
}

.promo-card:hover,
.category-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-grid,
.category-grid,
.product-grid,
.trust-grid {
    gap: 20px;
}

.category-card {
    min-height: 152px;
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), border-color 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms cubic-bezier(.2, .8, .2, 1);
}

.category-card__mark {
    border-radius: 14px;
}

.product-card {
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), border-color 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms cubic-bezier(.2, .8, .2, 1);
}

.product-card__image {
    background:
        linear-gradient(145deg, rgba(38, 64, 139, 0.08), transparent),
        var(--color-soft);
}

.product-card__image img {
    transition: transform 500ms cubic-bezier(.2, .8, .2, 1), filter 500ms cubic-bezier(.2, .8, .2, 1);
}

.product-card:hover .product-card__image img {
    transform: scale(1.055);
    filter: saturate(1.04) contrast(1.02);
}

.product-card__body {
    padding: 18px;
}

.product-card__title {
    min-height: 52px;
    font-size: 17px;
}

.product-card__price {
    font-size: 21px;
}

.product-card__form {
    padding: 16px;
}

.filter-panel,
.purchase-panel {
    box-shadow: var(--shadow-md);
}

.purchase-panel {
    box-shadow: var(--shadow-lg);
}

.page-intro {
    color: var(--color-ink);
}

.page-intro h1,
.page-intro h2,
.page-intro strong {
    color: inherit;
}

.page-intro .eyebrow {
    color: var(--color-blue);
}

.page-intro p:not(.eyebrow) {
    color: #334155;
}

.page-intro--dark {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(76, 185, 99, 0.12), transparent 38%),
        var(--color-ink);
    color: #f8fafc;
}

.page-intro--dark .eyebrow {
    color: #8fe6a3;
}

.page-intro--dark p:not(.eyebrow) {
    color: #e2e8f0;
}

.page-intro--light {
    border-color: rgba(31, 39, 27, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
        #ffffff;
}

.contact-card {
    display: grid;
    min-height: 168px;
    align-content: start;
    gap: 10px;
    border: 1px solid rgba(31, 39, 27, 0.1);
    border-radius: 20px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(31, 39, 27, 0.07);
    transition:
        transform 200ms cubic-bezier(.2, .8, .2, 1),
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(38, 64, 139, 0.22);
    box-shadow: 0 24px 64px rgba(31, 39, 27, 0.1);
}

.contact-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: rgba(38, 64, 139, 0.1);
    color: var(--color-blue);
}

.contact-card__icon--green {
    background: rgba(76, 185, 99, 0.16);
    color: #128c45;
}

.contact-card__label {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-card__value {
    overflow-wrap: anywhere;
    color: var(--color-ink);
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 850;
    line-height: 1.28;
}

.contact-hero {
    padding-block: clamp(28px, 4vw, 42px);
}

.contact-hero__title {
    max-width: 780px;
    color: #f8fafc;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.04;
}

.contact-hero__copy {
    max-width: 640px;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.contact-hero--location {
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(76, 185, 99, 0.28), transparent 26%),
        linear-gradient(135deg, rgba(12, 18, 32, 0.98), rgba(38, 64, 139, 0.94)),
        var(--color-ink);
}

.contact-support h2 {
    color: var(--color-ink);
}

.contact-hours {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 22px;
    background: #f8fafc;
    padding: 16px;
}

.contact-location {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 39, 27, 0.1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 68px rgba(31, 39, 27, 0.08);
}

.contact-location__content {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(22px, 4vw, 34px);
}

.contact-location__content h2 {
    color: var(--color-ink);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.08;
}

.contact-location__content address {
    max-width: 680px;
    color: #334155;
    font-size: 18px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.45;
}

.contact-location__instructions {
    max-width: 720px;
    border-left: 4px solid var(--color-green);
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px 16px;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.65;
}

.contact-location__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-location__map {
    min-height: 420px;
    background: #e2e8f0;
}

.contact-location__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

.contact-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 980px) {
    .contact-location {
        grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
    }
}

@media (min-width: 720px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .contact-location {
        border-radius: 22px;
    }

    .contact-location__map,
    .contact-location__map iframe {
        min-height: 340px;
    }

    .contact-location__actions .btn-primary,
    .contact-location__actions .btn-outline {
        width: 100%;
    }
}

.product-gallery {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    overflow: hidden;
    border: 1px solid rgba(31, 39, 27, 0.11);
    border-radius: 28px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 24px 68px rgba(31, 39, 27, 0.08);
}

.product-gallery__rail {
    display: grid;
    align-content: start;
    gap: 12px;
}

.product-gallery__thumb {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 18px;
    background: #f8fafc;
    padding: 0;
    cursor: pointer;
    transition:
        transform 180ms cubic-bezier(.2, .8, .2, 1),
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.product-gallery__thumb::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: border-color 180ms ease;
}

.product-gallery__thumb img,
.product-gallery__image,
.product-gallery__lightbox img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
    transform: translateY(-2px);
    border-color: rgba(38, 64, 139, 0.42);
    box-shadow: 0 14px 28px rgba(31, 39, 27, 0.1);
}

.product-gallery__thumb.is-active::after {
    border-color: var(--color-blue);
}

.product-gallery__stage {
    min-width: 0;
}

.product-gallery__hero {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.86;
    min-height: 520px;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(38, 64, 139, 0.07), transparent),
        #f3f6fa;
    padding: 0;
    cursor: zoom-in;
}

.product-gallery__skeleton {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent),
        #eef3f8;
    background-size: 220% 100%;
    animation: gallery-shimmer 1.25s infinite;
}

.product-gallery__image {
    position: relative;
    z-index: 1;
    opacity: 1;
    transition:
        opacity 180ms ease,
        transform 420ms cubic-bezier(.2, .8, .2, 1),
        filter 420ms cubic-bezier(.2, .8, .2, 1);
}

.product-gallery__image.is-changing {
    opacity: 0;
    transform: scale(0.985);
}

.product-gallery__image.is-zoomed {
    transform: scale(1.62);
    filter: contrast(1.03) saturate(1.04);
}

.product-gallery__zoom-pill {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    padding: 10px 14px;
    color: var(--color-ink);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(31, 39, 27, 0.12);
    backdrop-filter: blur(16px);
}

.product-gallery__mobile-strip {
    display: none;
}

.product-gallery__dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width 180ms ease, background 180ms ease;
}

.product-gallery__dot.is-active {
    width: 28px;
    background: var(--color-blue);
}

.product-gallery__lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 12px;
    padding: 28px;
    background: rgba(8, 13, 24, 0.92);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(20px);
}

.product-gallery__lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.gallery-lock {
    overflow: hidden;
}

.product-gallery__lightbox-figure {
    display: grid;
    min-width: 0;
    gap: 14px;
    justify-items: center;
}

.product-gallery__lightbox-figure img {
    width: min(100%, 1180px);
    max-height: 82vh;
    border-radius: 24px;
    object-fit: contain;
    background: #f8fafc;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.product-gallery__lightbox-figure figcaption {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.product-gallery__close,
.product-gallery__nav {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.product-gallery__close:hover,
.product-gallery__nav:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.product-gallery__close {
    position: absolute;
    top: 22px;
    right: 22px;
}

.product-gallery__nav--prev {
    justify-self: end;
}

.product-gallery__nav--next {
    justify-self: start;
}

.product-variant-picker {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), #fff);
    padding: 16px;
}

.testimonial-section {
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.testimonial-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 760px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .testimonial-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.testimonial-card {
    display: grid;
    gap: 14px;
    min-height: 280px;
    border: 1px solid rgba(31, 39, 27, 0.1);
    border-radius: 24px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 18px 54px rgba(31, 39, 27, 0.07);
}

.testimonial-card h3 {
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 900;
}

.testimonial-card p {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.testimonial-stars {
    color: #f59e0b !important;
    font-size: 15px !important;
    letter-spacing: 1px;
}

.testimonial-card blockquote {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.testimonial-badge {
    align-self: end;
    width: max-content;
    border-radius: 999px;
    background: rgba(76, 185, 99, 0.14);
    padding: 8px 11px;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-sheet {
    padding: clamp(20px, 4vw, 36px);
}

.invoice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 24px;
}

.invoice-header,
.invoice-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 760px) {
    .invoice-header,
    .invoice-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.invoice-logo {
    width: 190px;
    height: 64px;
    object-fit: contain;
}

.invoice-meta {
    text-align: left;
}

@media (min-width: 760px) {
    .invoice-meta {
        text-align: right;
    }
}

.invoice-meta h2,
.invoice-grid h3 {
    color: var(--color-ink);
    font-size: 24px;
    font-weight: 900;
}

.invoice-meta p,
.invoice-grid p {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.invoice-label {
    color: var(--color-blue) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
}

.invoice-table-wrap {
    overflow-x: auto;
    margin-top: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.invoice-table th,
.invoice-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 13px;
}

.invoice-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-table td strong,
.invoice-table td span {
    display: block;
}

.invoice-table td span {
    margin-top: 4px;
    color: #64748b;
    font-weight: 700;
}

.invoice-total {
    display: grid;
    gap: 10px;
    max-width: 360px;
    margin: 24px 0 0 auto;
}

.invoice-total p {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.invoice-total__grand {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    color: var(--color-ink) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

.invoice-footer {
    margin-top: 28px;
    border-radius: 20px;
    background: #f8fafc;
    padding: 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

@media print {
    .customer-sidebar,
    .customer-topbar,
    .invoice-actions {
        display: none !important;
    }

    .customer-shell {
        display: block !important;
    }

    .invoice-sheet {
        padding: 0;
    }
}

.product-swatch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    background: #fff;
    padding: 6px 14px 6px 7px;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 180ms cubic-bezier(.2, .8, .2, 1),
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.product-swatch:hover,
.product-swatch.is-active {
    transform: translateY(-1px);
    border-color: rgba(38, 64, 139, 0.48);
    background: rgba(38, 64, 139, 0.04);
    box-shadow: 0 14px 28px rgba(31, 39, 27, 0.1);
}

.product-swatch__chip {
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--swatch-color);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(148, 163, 184, 0.5);
}

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

@media (max-width: 1100px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-gallery__rail {
        order: 2;
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }

    .product-gallery__thumb {
        width: 76px;
        min-width: 76px;
        scroll-snap-align: start;
    }

    .product-gallery__hero {
        min-height: 0;
        aspect-ratio: 1;
    }
}

@media (max-width: 700px) {
    .product-gallery {
        padding: 10px;
        border-radius: 22px;
    }

    .product-gallery__rail {
        display: none;
    }

    .product-gallery__mobile-strip {
        display: flex;
        justify-content: center;
        gap: 7px;
        margin-top: 14px;
    }

    .product-gallery__hero {
        border-radius: 18px;
    }

    .product-gallery__zoom-pill {
        right: 12px;
        bottom: 12px;
        padding: 8px 11px;
    }

    .product-gallery__lightbox {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .product-gallery__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .product-gallery__nav:hover {
        transform: translateY(-50%);
    }

    .product-gallery__nav--prev {
        left: 14px;
    }

    .product-gallery__nav--next {
        right: 14px;
    }

    .product-gallery__lightbox-figure img {
        max-height: 76vh;
        border-radius: 18px;
    }
}

@media (max-width: 700px) {
    .trade-video-upload__dropzone {
        align-items: flex-start;
    }

    .trade-video-upload__preview {
        grid-template-columns: 1fr;
    }

    .trade-video-upload__player {
        width: 100%;
    }

    .trade-video-upload__remove {
        justify-self: start;
    }
}

/* Premium admin system */
.admin-body {
    margin: 0;
    color: var(--color-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.admin-shell {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 34rem),
        #f8fafc;
}

@media (min-width: 1024px) {
    .admin-shell {
        display: grid;
        grid-template-columns: 292px minmax(0, 1fr);
    }
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.9);
    padding: 24px 20px;
    box-shadow: 14px 0 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(22px);
}

.admin-brand {
    display: flex;
    align-items: center;
    width: 210px;
    height: 58px;
    overflow: hidden;
}

.admin-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-operator-card {
    margin-top: 18px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    background: #0f172a;
    padding: 16px;
    color: #fff;
}

.admin-operator-card span {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-operator-card strong,
.admin-operator-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-operator-card strong {
    margin-top: 6px;
    font-size: 15px;
    font-weight: 900;
}

.admin-operator-card small {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 750;
}

.admin-nav {
    display: grid;
    gap: 6px;
    margin-top: 22px;
}

.admin-nav-group {
    margin: 16px 8px 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 12px 14px;
    color: #475569;
    font-size: 14px;
    font-weight: 850;
    transition:
        transform 180ms ease,
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.admin-nav-link__index {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    transition: background 180ms ease, color 180ms ease;
}

.admin-nav-link:hover {
    transform: translateX(2px);
    background: #f1f5f9;
    color: var(--color-ink);
}

.admin-nav-link.is-active {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.admin-nav-link.is-active .admin-nav-link__index {
    background: #2563eb;
    color: #fff;
}

.admin-storefront-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 28px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.admin-storefront-link:hover {
    transform: translateY(-2px);
    background: #f8fafc;
    box-shadow: 0 14px 34px rgba(31, 39, 27, 0.08);
}

.admin-workspace {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
}

.admin-mobile-nav {
    display: none;
}

.admin-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 32px;
}

.admin-topbar__eyebrow {
    color: var(--color-green);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.admin-topbar__title {
    margin-top: 4px;
    color: var(--color-ink);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.15;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-radius: 999px;
    background: #f1f5f9;
    padding: 0 16px;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.admin-logout-button {
    border: 0;
    border-radius: 14px;
    background: var(--color-ink);
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.admin-logout-button:hover {
    transform: translateY(-1px);
    background: #11180f;
}

.admin-main {
    width: 100%;
    max-width: 1500px;
    flex: 1;
    padding: 32px;
}

.admin-alert {
    margin-bottom: 24px;
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 800;
}

.admin-alert--success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.admin-alert--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    padding: 18px 32px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.admin-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.admin-page-kicker {
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
}

.admin-page-title {
    margin-top: 8px;
    color: var(--color-ink);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.04;
}

.admin-command-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .12), transparent 38%),
        #fff;
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.admin-command-hero h2 {
    margin-top: 8px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.02;
}

.admin-command-hero p:last-child {
    margin-top: 12px;
    max-width: 680px;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.admin-command-hero__actions {
    display: grid;
    gap: 10px;
    min-width: 190px;
}

.admin-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 16px;
    background: #2563eb;
    padding: 12px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.admin-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(38, 64, 139, 0.24);
}

.admin-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    padding: 12px 18px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.admin-secondary-action:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .32);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.admin-panel,
.admin-stat,
.admin-filter {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.06);
}

.admin-panel {
    overflow: hidden;
}

.admin-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-panel__head h3 {
    font-size: 20px;
    font-weight: 900;
}

.admin-panel__head a {
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 900;
}

.admin-stat {
    padding: 22px;
    transition:
        transform 220ms cubic-bezier(.22, 1, .36, 1),
        box-shadow 220ms ease;
}

.admin-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 66px rgba(31, 39, 27, 0.095);
}

.admin-stat__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 17px;
}

.admin-stat__icon--blue { background: rgba(38, 64, 139, 0.1); color: var(--color-blue); }
.admin-stat__icon--green { background: rgba(76, 185, 99, 0.13); color: var(--color-green); }
.admin-stat__icon--purple { background: #f3e8ff; color: #7e22ce; }
.admin-stat__icon--orange { background: #ffedd5; color: #ea580c; }
.admin-stat__icon--dark { background: #e2e8f0; color: var(--color-ink); }

.admin-stat p {
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.admin-stat strong {
    display: block;
    margin-top: 8px;
    color: var(--color-ink);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.admin-stat span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-stat a {
    display: inline-flex;
    margin-top: 14px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.admin-chart-frame {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 288px;
    margin-top: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-chart-bar {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 44px;
}

.admin-chart-bar__fill {
    width: 100%;
    border-radius: 16px 16px 0 0;
    background: #2563eb;
    transition: background .18s ease, transform .18s ease;
}

.admin-chart-bar__fill:hover {
    transform: translateY(-2px);
    background: #10b981;
}

.admin-chart-bar span {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.admin-action-row,
.admin-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 15px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-action-row:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .07);
}

.admin-action-row--danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.admin-action-row--warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.admin-action-row strong,
.admin-metric-row strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.admin-action-row small,
.admin-metric-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.admin-action-row b,
.admin-metric-row b {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    text-align: left;
    font-size: 14px;
}

.admin-table thead {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

.admin-table th,
.admin-table td {
    padding: 16px;
}

.admin-table tbody tr {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    transition: background 160ms ease;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-main input,
.admin-main select,
.admin-main textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
    color: var(--color-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-main input:focus,
.admin-main select:focus,
.admin-main textarea:focus {
    border-color: rgba(38, 64, 139, 0.5);
    box-shadow: 0 0 0 4px rgba(38, 64, 139, 0.08);
}

.admin-main input[type="checkbox"],
.admin-main input[type="radio"] {
    width: 16px;
    height: 16px;
    padding: 0;
    flex: 0 0 16px;
    accent-color: var(--color-blue);
}

.admin-main label {
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 900;
}

.admin-main > form,
.admin-main .admin-form-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    padding: 24px;
    box-shadow: 0 18px 54px rgba(31, 39, 27, 0.06);
}

.admin-main button,
.admin-main input[type="submit"] {
    width: auto;
    border: 0;
    cursor: pointer;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
}

.admin-badge--green { background: #ecfdf5; color: #047857; }
.admin-badge--emerald { background: #d1fae5; color: #065f46; }
.admin-badge--blue { background: #eff6ff; color: #1d4ed8; }
.admin-badge--red { background: #fef2f2; color: #b91c1c; }
.admin-badge--orange { background: #fff7ed; color: #c2410c; }
.admin-badge--slate { background: #f1f5f9; color: #475569; }

.admin-hero-limit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 22px 0;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), #fff);
    padding: 18px 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.admin-hero-limit-card span,
.admin-hero-limit-card strong,
.admin-hero-slide-row strong,
.admin-hero-slide-row span {
    display: block;
}

.admin-hero-limit-card span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-hero-limit-card strong {
    margin-top: 4px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.admin-hero-limit-card p {
    max-width: 560px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.admin-hero-slide-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
}

.admin-hero-slide-row img {
    width: 96px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: #e2e8f0;
    object-fit: cover;
}

.admin-hero-slide-row strong {
    color: #0f172a;
    font-weight: 900;
}

.admin-hero-slide-row p {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.admin-hero-slide-row span {
    margin-top: 5px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.admin-hero-form__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.admin-hero-form__section {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
}

.admin-hero-form__section h2 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.admin-hero-form__side {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 18px;
}

.admin-hero-preview {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.14);
}

.admin-hero-preview > span {
    display: block;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-hero-preview img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.admin-hero-preview div {
    padding: 16px;
}

.admin-hero-preview p,
.admin-hero-preview small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.admin-hero-preview strong {
    display: block;
    margin: 7px 0;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.12;
}

.admin-hero-toggle,
.admin-hero-remove {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.admin-main .admin-hero-toggle input[type="checkbox"],
.admin-main .admin-hero-remove input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: #2563eb;
}

.admin-hero-help {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.admin-hero-save {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
}

@media (max-width: 1024px) {
    .admin-hero-form__layout {
        grid-template-columns: 1fr;
    }

    .admin-hero-form__side {
        position: static;
    }
}

@media (max-width: 700px) {
    .admin-hero-limit-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.admin-quote-card {
    overflow: hidden;
}

.admin-quote-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    margin: -4px -4px 0;
    padding: 4px 4px 18px;
}

.admin-quote-card__head p {
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-quote-card__head h3 {
    margin-top: 4px;
    color: var(--color-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.admin-quote-card__head > span {
    border-radius: 999px;
    background: #eff6ff;
    padding: 8px 11px;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-quote-card__body {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.admin-quote-money-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-quote-field {
    display: grid;
    gap: 8px;
}

.admin-quote-checkset {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 14px;
}

.admin-quote-checkset--risk {
    border-color: rgba(248, 113, 113, 0.22);
    background: linear-gradient(180deg, #fff, #fff7f7);
}

.admin-quote-checkset__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-quote-checkset__title span {
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 900;
}

.admin-quote-checkset__title small {
    max-width: 150px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
    text-align: right;
}

.admin-quote-check-grid {
    display: grid;
    gap: 8px;
}

.admin-quote-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: #fff;
    padding: 9px 11px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.admin-main .admin-quote-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    border-radius: 5px;
    accent-color: var(--color-blue);
}

.admin-quote-check span {
    min-width: 0;
}

.admin-quote-submit {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border-radius: 16px;
    background: var(--color-blue);
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-quote-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.24);
}

@media (max-width: 640px) {
    .admin-quote-money-grid {
        grid-template-columns: 1fr;
    }

    .admin-quote-checkset__title {
        display: grid;
    }

    .admin-quote-checkset__title small {
        max-width: none;
        text-align: left;
    }
}

.admin-empty {
    border-radius: 22px;
    background: #f8fafc;
    padding: 28px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1023px) {
    .admin-sidebar {
        display: none;
    }

    .admin-mobile-nav {
        position: sticky;
        top: 73px;
        z-index: 25;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        border-bottom: 1px solid rgba(148, 163, 184, .24);
        background: rgba(255, 255, 255, .92);
        padding: 10px 14px;
        backdrop-filter: blur(18px);
    }

    .admin-mobile-nav a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 40px;
        white-space: nowrap;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #fff;
        padding: 0 13px;
        color: #475569;
        font-size: 12px;
        font-weight: 900;
    }

    .admin-mobile-nav a.is-active {
        border-color: rgba(37, 99, 235, .3);
        background: #eff6ff;
        color: #2563eb;
    }

    .admin-command-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-command-hero__actions {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .admin-topbar__inner,
    .admin-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-inline: 20px;
    }

    .admin-main {
        padding: 24px 20px;
    }

    .admin-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-user-pill {
        display: none;
    }

    .admin-chart-frame {
        overflow-x: auto;
    }
}

/* Customer account system */
.customer-shell {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 34rem),
        #f8fafc;
}

@media (min-width: 1024px) {
    .customer-shell {
        display: grid;
        grid-template-columns: 292px minmax(0, 1fr);
    }
}

.customer-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.92);
    padding: 24px 20px;
    box-shadow: 14px 0 48px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(22px);
}

.customer-brand {
    display: block;
}

.customer-brand img {
    width: 192px;
    height: 56px;
    object-fit: contain;
}

.customer-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.customer-profile-card img {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
}

.customer-profile-card p {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.customer-profile-card span {
    display: block;
    max-width: 178px;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.84);
    padding: 16px 20px;
    backdrop-filter: blur(20px);
}

.customer-topbar p {
    margin: 0;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.customer-topbar h1 {
    margin-top: 3px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

@media (min-width: 1024px) {
    .customer-topbar {
        padding-inline: 32px;
    }
}

.customer-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px;
    padding: 12px 14px;
    color: #64748b;
    font-size: 14px;
    font-weight: 850;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.customer-nav {
    display: grid;
    gap: 4px;
    margin-top: 22px;
}

.customer-nav-link__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.customer-nav-link__arrow {
    color: #cbd5e1;
}

.customer-nav-link:hover {
    transform: translateX(2px);
    background: #f1f5f9;
    color: #0f172a;
}

.customer-nav-link.is-active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 23, 42, 0.04));
    color: #2563eb;
}

.customer-mobile-nav {
    display: none;
}

.customer-main {
    padding: 30px 20px 44px;
}

@media (min-width: 1024px) {
    .customer-main {
        padding: 34px 32px 54px;
    }
}

.customer-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.customer-page-kicker {
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
}

.customer-page-title {
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.04;
}

.customer-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-blue), #3453a8);
    padding: 12px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(38, 64, 139, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.customer-primary-action:hover {
    transform: translateY(-2px);
}

.customer-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #fff;
    padding: 12px 18px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.customer-panel,
.customer-stat {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 54px rgba(31, 39, 27, 0.06);
}

.customer-panel {
    overflow: hidden;
}

.customer-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 22px 24px;
}

.customer-panel__head h3 {
    font-size: 20px;
    font-weight: 900;
}

.customer-panel__head a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
}

.customer-stat {
    position: relative;
    padding: 22px;
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease;
}

.customer-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 66px rgba(31, 39, 27, 0.095);
}

.customer-stat p {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.customer-stat strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
    font-weight: 900;
}

.customer-stat span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.customer-stat > a {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.customer-empty {
    border-radius: 22px;
    background: #f8fafc;
    padding: 30px;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.customer-empty a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--color-blue);
    font-weight: 900;
}

.customer-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .78)),
        #0f172a;
    padding: clamp(26px, 4vw, 42px);
    color: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

.customer-hero h2 {
    margin: 8px 0 0;
    max-width: 780px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
}

.customer-hero p:not(.customer-page-kicker) {
    max-width: 680px;
    margin-top: 14px;
    color: #dbeafe;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.75;
}

.customer-hero .customer-page-kicker {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.customer-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: max-content;
}

.customer-order-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    color: #0f172a;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (min-width: 720px) {
    .customer-order-row {
        grid-template-columns: 1fr auto auto;
    }
}

.customer-order-row:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .25);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.customer-order-row strong {
    font-weight: 900;
}

.customer-order-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.customer-status-pill {
    width: max-content;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
}

.customer-status-pill--success {
    background: #ecfdf5;
    color: #047857;
}

.customer-status-pill--warning {
    background: #fffbeb;
    color: #b45309;
}

.customer-status-pill--danger {
    background: #fef2f2;
    color: #b91c1c;
}

.customer-quick-actions {
    display: grid;
    gap: 10px;
    padding: 18px;
    font-size: 14px;
    font-weight: 900;
}

.customer-quick-actions a,
.customer-update-card,
.customer-swap-card,
.customer-action-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.customer-quick-actions a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    color: #0f172a;
}

.customer-quick-actions a:hover,
.customer-update-card:hover,
.customer-swap-card:hover,
.customer-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .25);
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
}

.customer-update-card {
    display: block;
    padding: 15px;
}

.customer-update-card strong,
.customer-swap-card strong,
.customer-action-card h3 {
    color: #0f172a;
    font-weight: 900;
}

.customer-update-card span,
.customer-swap-card span,
.customer-action-card p {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.customer-update-card p,
.customer-swap-card p {
    margin-top: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.customer-swap-card {
    padding: 16px;
}

.customer-action-card {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.customer-action-card span {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.customer-action-card button {
    width: 100%;
    border-radius: 14px;
    background: #2563eb;
    padding: 11px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.customer-form-grid {
    display: grid;
    gap: 14px;
}

.customer-avatar-field {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #f8fafc;
    padding: 14px;
}

.customer-field {
    display: grid;
    gap: 7px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.customer-field span {
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #475569;
}

.customer-field input,
.customer-field select,
.customer-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    padding: 0 14px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.customer-field textarea {
    min-height: 110px;
    padding-block: 12px;
}

.customer-field input[type="file"] {
    min-height: auto;
    border-style: dashed;
    padding: 12px;
    color: #475569;
}

.customer-field input:focus,
.customer-field select:focus,
.customer-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}

.customer-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.customer-check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.customer-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 16px;
    background: #2563eb;
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.customer-submit-button:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
    box-shadow: 0 20px 34px rgba(37, 99, 235, .28);
}

.customer-submit-button--dark {
    background: #0f172a;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .2);
}

.customer-submit-button--dark:hover {
    background: #111827;
    box-shadow: 0 20px 34px rgba(15, 23, 42, .24);
}

.customer-list-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.customer-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.customer-list-card__title {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.customer-list-card__meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.customer-footer {
    display: grid;
    gap: 22px;
    margin: 0 20px 24px;
    border-top: 1px solid #e2e8f0;
    padding: 26px 0 0;
    color: #64748b;
}

@media (min-width: 1024px) {
    .customer-footer {
        margin-inline: 32px;
    }
}

.customer-footer__brand {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.customer-footer p {
    margin-top: 6px;
    max-width: 520px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.65;
}

.customer-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 13px;
    font-weight: 850;
}

.customer-footer__links a {
    color: #2563eb;
}

.customer-footer__bottom {
    margin: 0 !important;
    font-size: 12px !important;
}

@media (max-width: 1023px) {
    .customer-sidebar {
        display: none;
    }

    .customer-mobile-nav {
        position: sticky;
        top: 67px;
        z-index: 25;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        border-bottom: 1px solid rgba(148, 163, 184, .24);
        background: rgba(255, 255, 255, .9);
        padding: 10px 14px;
        backdrop-filter: blur(18px);
    }

    .customer-mobile-nav a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-height: 40px;
        white-space: nowrap;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #fff;
        padding: 0 13px;
        color: #475569;
        font-size: 12px;
        font-weight: 900;
    }

    .customer-mobile-nav a.is-active {
        border-color: rgba(37, 99, 235, .3);
        background: #eff6ff;
        color: #2563eb;
    }

    .customer-topbar {
        top: 0;
    }

    .customer-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-hero__actions {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .customer-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-topbar {
        padding: 14px;
    }

    .customer-main {
        padding: 24px 14px 40px;
    }

    .customer-panel,
    .customer-stat,
    .customer-hero {
        border-radius: 22px;
    }

    .customer-panel__head {
        padding: 18px;
    }

    .customer-footer {
        margin-inline: 14px;
    }
}

/* Marketplace homepage */
.market-section {
    padding-block: clamp(22px, 4vw, 42px);
}

.market-hero-wrap {
    padding-block: 22px 18px;
}

.market-hero-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 230px;
    gap: 18px;
    align-items: stretch;
}

.market-category-menu,
.market-deal-strip,
.marketplace-panel,
.market-banner,
.market-newsletter__inner {
    border: 1px solid rgba(31, 39, 27, 0.1);
    background: #fff;
    box-shadow: 0 16px 42px rgba(31, 39, 27, 0.065);
}

.market-category-menu,
.market-deal-strip {
    overflow: hidden;
    border-radius: 18px;
}

.market-category-menu__title {
    background: var(--color-ink);
    color: #fff;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-category-menu__list {
    display: grid;
}

.market-category-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 49px;
    border-bottom: 1px solid #edf2f7;
    padding: 12px 15px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    transition: background 180ms ease, color 180ms ease, padding 180ms ease;
}

.market-category-menu__link small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.market-category-menu__link:hover {
    background: #f8fafc;
    color: var(--color-blue);
    padding-left: 19px;
}

.market-category-menu__link--all {
    color: var(--color-blue);
}

.market-hero-main {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.market-hero-carousel {
    min-height: 456px;
    border-radius: 18px;
}

.market-hero-slide {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: 28px;
    padding: clamp(24px, 4vw, 42px);
}

.market-hero-copy {
    min-width: 0;
}

.market-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.market-hero-image img {
    height: 340px;
}

.market-promo-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.market-promo-card,
.market-deal-strip article {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(31, 39, 27, 0.09);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.market-promo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 206, 251, 0.35);
    box-shadow: 0 16px 34px rgba(31, 39, 27, 0.08);
}

.market-promo-card span,
.market-deal-strip span,
.market-banner span {
    color: var(--color-blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-promo-card strong,
.market-deal-strip strong,
.market-banner strong {
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.market-promo-card--accent {
    background: var(--color-blue);
}

.market-promo-card--accent span,
.market-promo-card--accent strong {
    color: #fff;
}

.market-deal-strip {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.market-deal-strip article {
    min-height: 130px;
    align-content: center;
    background: #f8fafc;
}

.market-trust-strip {
    padding-block: 10px 4px;
}

.marketplace-panel {
    padding: clamp(16px, 3vw, 24px);
}

.marketplace-section-head {
    align-items: flex-end;
}

.market-section-copy {
    max-width: 620px;
    margin-top: 7px;
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.market-category-rail {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.market-category-tile {
    display: grid;
    min-height: 150px;
    align-content: start;
    border: 1px solid rgba(31, 39, 27, 0.09);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.market-category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 206, 251, 0.34);
    box-shadow: 0 18px 38px rgba(31, 39, 27, 0.08);
}

.market-category-tile__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.92)),
        #fff;
    color: var(--color-blue);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.market-category-tile__icon svg {
    width: 38px;
    height: 38px;
}

.market-category-tile:hover .market-category-tile__icon {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.market-category-tile__name {
    margin-top: 14px;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 900;
}

.market-category-tile__copy {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.market-banner-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 16px;
}

.market-banner {
    display: grid;
    min-height: 172px;
    align-content: end;
    border-radius: 18px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(0, 206, 251, 0.11), rgba(76, 185, 99, 0.09)),
        #fff;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.market-banner--wide {
    background:
        linear-gradient(135deg, rgba(31, 39, 27, 0.88), rgba(31, 39, 27, 0.68)),
        url("https://images.unsplash.com/photo-1550009158-9ebf69173e03?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.market-banner--wide span,
.market-banner--wide strong {
    color: #fff;
}

.market-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(31, 39, 27, 0.11);
}

.marketplace-product-grid {
    margin-top: 18px;
}

.marketplace-product-grid--compact .product-card__title {
    min-height: 42px;
    font-size: 15px;
}

.product-card__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card__old-price {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 850;
    text-decoration: line-through;
}

.product-card__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.product-card__trust span {
    border-radius: 999px;
    background: #f1f5f9;
    padding: 6px 8px;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.market-brand-card {
    display: grid;
    min-height: 96px;
    place-content: center;
    border: 1px solid rgba(31, 39, 27, 0.09);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.market-brand-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 206, 251, 0.34);
    box-shadow: 0 16px 34px rgba(31, 39, 27, 0.08);
}

.market-brand-card strong {
    color: var(--color-ink);
    font-size: 16px;
    font-weight: 900;
}

.market-brand-card span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.market-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.market-why-card {
    border: 1px solid rgba(31, 39, 27, 0.09);
    border-radius: 16px;
    background: #f8fafc;
    padding: 18px;
}

.market-why-card h3 {
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 900;
}

.market-why-card p {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}

.market-swap-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    padding: clamp(20px, 3vw, 30px);
}

.market-newsletter {
    padding-block: 24px 44px;
}

.market-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 22px;
    background: var(--color-ink);
    padding: clamp(22px, 4vw, 34px);
}

.market-newsletter h2 {
    margin-top: 6px;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.05;
}

.market-newsletter p:not(.eyebrow) {
    margin-top: 10px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 750;
    line-height: 1.7;
}

@media (max-width: 1180px) {
    .market-hero-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .market-deal-strip {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-deal-strip article {
        min-height: 104px;
    }

    .market-category-rail,
    .market-brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .market-hero-layout,
    .market-swap-panel {
        grid-template-columns: 1fr;
    }

    .market-category-menu {
        order: 2;
    }

    .market-category-menu__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .market-promo-row,
    .market-deal-strip,
    .market-banner-grid,
    .market-why-grid {
        grid-template-columns: 1fr;
    }

    .market-category-rail {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .market-category-tile {
        width: 176px;
        min-width: 176px;
        scroll-snap-align: start;
    }

    .market-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .market-hero-wrap {
        padding-top: 14px;
    }

    .market-hero-carousel {
        min-height: 0;
    }

    .market-hero-slide {
        padding: 20px;
    }

    .market-hero-image img {
        height: 238px;
    }

    .market-category-menu__list,
    .market-brand-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-section-head,
    .market-newsletter__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-banner {
        min-height: 145px;
    }

    .market-section {
        padding-block: 18px;
    }
}

/* Premium electronics theme and carousel refinements */
body {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.055), transparent 340px),
        var(--color-bg);
    color: var(--color-primary);
}

.topbar,
.footer,
.market-newsletter__inner,
.market-category-menu__title {
    background: var(--color-primary);
}

.site-header {
    border-bottom-color: rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.searchbar,
.icon-action,
.section-card,
.market-category-menu,
.market-deal-strip,
.marketplace-panel,
.market-banner,
.product-card,
.form-control,
.qty-input {
    border-color: var(--color-line);
}

.btn-primary,
.searchbar button,
.admin-primary-action,
.customer-primary-action {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent), var(--color-accent);
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.searchbar button:hover,
.admin-primary-action:hover,
.customer-primary-action:hover {
    background: #1D4ED8;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.btn-outline {
    border: 1px solid var(--color-line);
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.btn-outline:hover {
    border-color: rgba(37, 99, 235, 0.34);
    color: var(--color-accent);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.btn-green,
.wa-float,
.trade-video-upload__progress span,
.store-notice__icon {
    background: var(--color-success);
    color: #fff;
}

.section-link,
.eyebrow,
.hero-product,
.category-nav a:hover,
.market-category-menu__link--all,
.market-promo-card span,
.market-deal-strip span,
.market-banner span,
.market-category-tile__icon,
.market-brand-card:hover strong,
.product-card__category,
.product-card__price {
    color: var(--color-accent);
}

.market-hero-wrap {
    padding-block: clamp(18px, 3vw, 34px) 22px;
}

.market-hero-layout {
    grid-template-columns: 244px minmax(0, 1fr) 224px;
}

.market-hero-carousel {
    isolation: isolate;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background:
        radial-gradient(circle at 74% 18%, rgba(37, 99, 235, 0.22), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 44%, #eef4ff 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.13);
    outline: none;
}

.market-hero-carousel:focus-visible {
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.18),
        0 30px 80px rgba(15, 23, 42, 0.13);
}

.market-hero-carousel::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 38%, transparent 68%),
        radial-gradient(circle at 86% 20%, rgba(37, 99, 235, 0.16), transparent 28%);
}

.market-hero-slide {
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
    min-height: 520px;
    padding: clamp(28px, 4.6vw, 56px);
    transform: translateX(0) scale(1);
}

.market-hero-slide.is-hidden {
    transform: translateX(18px) scale(0.99);
}

.market-hero-slide.is-active .market-hero-copy,
.market-hero-slide.is-active .market-hero-image {
    animation: marketHeroIn 620ms cubic-bezier(.2, .8, .2, 1) both;
}

.market-hero-slide.is-active .market-hero-image {
    animation-delay: 70ms;
}

.market-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.market-hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 0 11px;
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.market-hero-copy .eyebrow {
    color: #475569;
}

.market-hero-copy .hero-title {
    max-width: 680px;
    color: var(--color-primary);
    font-size: clamp(40px, 5vw, 68px);
    letter-spacing: -0.025em;
    line-height: 0.98;
}

.market-hero-copy .hero-copy {
    max-width: 590px;
    color: #475569;
    font-size: clamp(15px, 1.45vw, 18px);
}

.market-hero-image {
    position: relative;
    min-height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: #e2e8f0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 28px 58px rgba(15, 23, 42, 0.16);
}

.market-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.28)),
        radial-gradient(circle at 70% 14%, rgba(255, 255, 255, 0.32), transparent 24%);
}

.market-hero-image img {
    height: 372px;
    transform: scale(1.02);
    transition: transform 1600ms cubic-bezier(.2, .8, .2, 1);
}

.market-hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.market-hero-slide.is-active .market-hero-image img {
    transform: scale(1.075);
}

.market-hero-floating-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    max-width: min(250px, calc(100% - 36px));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    padding: 14px 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.market-hero-floating-card span,
.market-hero-floating-card strong {
    display: block;
}

.market-hero-floating-card span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-hero-floating-card strong {
    margin-top: 5px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.market-hero-controls {
    position: absolute;
    right: 22px;
    top: 22px;
    z-index: 5;
    display: flex;
    gap: 9px;
}

.market-hero-control {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(226, 232, 240, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.market-hero-control:hover,
.market-hero-control:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.34);
    background: var(--color-accent);
    color: #fff;
    outline: none;
}

.market-hero-pagination {
    position: absolute;
    left: clamp(24px, 4.6vw, 56px);
    bottom: 24px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.market-hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.market-hero-dot.is-active {
    width: 34px;
    background: var(--color-accent);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.market-hero-dot:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 3px;
}

.market-promo-card--accent {
    background: var(--color-accent);
}

.product-card {
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.065);
}

.product-card:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.12);
}

.product-badge {
    color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.product-card__form {
    background: #f8fafc;
}

.product-card__trust span {
    background: #eff6ff;
    color: #1d4ed8;
}

.store-notice--success {
    border-color: rgba(16, 185, 129, 0.32);
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

@keyframes marketHeroIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@media (prefers-reduced-motion: reduce) {
    .market-hero-slide,
    .market-hero-image img,
    .market-hero-slide.is-active .market-hero-copy,
    .market-hero-slide.is-active .market-hero-image {
        animation: none;
        transition: none;
    }
}

@media (max-width: 1180px) {
    .market-hero-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .market-hero-carousel,
    .market-hero-slide {
        min-height: 500px;
    }
}

@media (max-width: 920px) {
    .market-hero-carousel,
    .market-hero-slide {
        min-height: 0;
    }

    .market-hero-slide {
        grid-template-columns: 1fr;
        padding-bottom: 64px;
    }

    .market-hero-image {
        min-height: 0;
    }

    .market-hero-image img {
        height: clamp(238px, 48vw, 330px);
    }

    .market-hero-pagination {
        left: 24px;
    }
}

@media (max-width: 700px) {
    .market-hero-layout {
        gap: 14px;
    }

    .market-hero-carousel {
        border-radius: 22px;
    }

    .market-hero-slide {
        padding: 20px 18px 58px;
    }

    .market-hero-copy .hero-title {
        font-size: clamp(32px, 10vw, 42px);
        letter-spacing: -0.018em;
    }

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

    .market-hero-actions .btn-primary,
    .market-hero-actions .btn-outline {
        width: 100%;
    }

    .market-hero-controls {
        right: 14px;
        top: 14px;
    }

    .market-hero-control {
        width: 38px;
        height: 38px;
    }

    .market-hero-floating-card {
        right: 12px;
        bottom: 12px;
        padding: 11px 13px;
    }
}

/* Final hero composition pass */
.market-hero-wrap {
    padding-block: clamp(16px, 2.4vw, 28px) 18px;
}

.market-hero-layout {
    grid-template-columns: minmax(190px, 216px) minmax(0, 1fr) minmax(196px, 216px);
    gap: 16px;
    align-items: start;
}

.market-category-menu,
.market-deal-strip {
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.market-category-menu__title {
    padding: 13px 15px;
    background: #0f172a;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.market-category-menu__link {
    min-height: 43px;
    padding: 10px 14px;
    border-bottom-color: rgba(226, 232, 240, 0.78);
    color: #334155;
    font-size: 12px;
    line-height: 1.2;
}

.market-category-menu__link small {
    font-size: 10px;
}

.market-category-menu__link:hover {
    padding-left: 16px;
    background: #eff6ff;
    color: var(--color-accent);
}

.market-hero-main {
    gap: 12px;
}

.market-hero-carousel {
    min-height: 462px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 78% 22%, rgba(37, 99, 235, 0.2), transparent 25%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #eef4ff 100%);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.market-hero-carousel::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0.16) 62%, transparent 100%),
        radial-gradient(circle at 84% 18%, rgba(37, 99, 235, 0.12), transparent 27%);
}

.market-hero-slide {
    grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1.22fr);
    gap: clamp(20px, 3vw, 36px);
    min-height: 462px;
    padding: clamp(26px, 3.2vw, 42px);
    align-items: center;
}

.market-hero-badges {
    margin-bottom: 12px;
}

.market-hero-badges span {
    min-height: 28px;
    padding-inline: 10px;
    background: rgba(255, 255, 255, 0.86);
    font-size: 10px;
}

.market-hero-copy .eyebrow {
    margin-top: 0;
    color: #64748b;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.market-hero-copy .hero-title {
    max-width: 520px;
    margin-top: 10px;
    font-size: clamp(34px, 4.1vw, 54px);
    line-height: 1.02;
}

.market-hero-copy .hero-copy {
    max-width: 500px;
    margin-top: 14px;
    color: #475569;
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.65;
}

.market-hero-copy .hero-product {
    margin-top: 14px;
    font-size: 15px;
}

.market-hero-actions {
    gap: 10px;
    margin-top: 20px;
}

.market-hero-actions .btn-primary,
.market-hero-actions .btn-outline {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 999px;
}

.market-hero-image {
    min-height: 324px;
    border-radius: 24px;
}

.market-hero-image img {
    height: 332px;
    object-position: center;
}

.market-hero-floating-card {
    right: 14px;
    bottom: 14px;
    max-width: min(220px, calc(100% - 28px));
    border-radius: 16px;
    padding: 12px 14px;
}

.market-hero-floating-card span {
    font-size: 10px;
}

.market-hero-floating-card strong {
    font-size: 14px;
}

.market-hero-controls {
    top: auto;
    right: 24px;
    bottom: 22px;
}

.market-hero-control {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.86);
}

.market-hero-pagination {
    left: clamp(26px, 3.2vw, 42px);
    bottom: 27px;
}

.market-hero-dot {
    height: 8px;
    width: 8px;
}

.market-hero-dot.is-active {
    width: 30px;
}

.market-deal-strip {
    gap: 10px;
    padding: 12px;
}

.market-deal-strip article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    min-height: 108px;
    align-content: center;
    align-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: none;
}

.market-deal-strip article:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.market-deal-strip__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--color-accent) !important;
    font-size: 10px !important;
    font-weight: 900;
}

.market-deal-strip strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.38;
}

.market-promo-row {
    gap: 12px;
}

.market-promo-card {
    min-height: 104px;
    align-content: center;
    border-radius: 18px;
    padding: 16px;
}

.market-promo-card strong {
    font-size: 14px;
    line-height: 1.35;
}

@media (max-width: 1180px) {
    .market-hero-layout {
        grid-template-columns: minmax(188px, 214px) minmax(0, 1fr);
    }

    .market-deal-strip {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-deal-strip article {
        min-height: 92px;
    }
}

@media (max-width: 980px) {
    .market-hero-layout {
        grid-template-columns: 1fr;
    }

    .market-category-menu {
        order: 2;
    }

    .market-category-menu__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-hero-carousel,
    .market-hero-slide {
        min-height: 0;
    }

    .market-hero-slide {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 74px;
    }

    .market-hero-copy .hero-title,
    .market-hero-copy .hero-copy {
        max-width: 680px;
    }

    .market-hero-image {
        min-height: 0;
    }

    .market-hero-image img {
        height: clamp(250px, 44vw, 340px);
    }

    .market-deal-strip {
        order: 3;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .market-hero-wrap {
        padding-block: 12px 14px;
    }

    .market-hero-layout {
        gap: 12px;
    }

    .market-hero-slide {
        padding: 18px 16px 66px;
    }

    .market-hero-copy .hero-title {
        font-size: clamp(30px, 9vw, 38px);
        line-height: 1.05;
    }

    .market-hero-copy .hero-copy {
        font-size: 14px;
        line-height: 1.6;
    }

    .market-hero-copy .hero-product {
        font-size: 14px;
    }

    .market-hero-image img {
        height: clamp(214px, 58vw, 282px);
    }

    .market-hero-controls {
        right: 16px;
        bottom: 16px;
    }

    .market-hero-pagination {
        left: 16px;
        bottom: 29px;
    }

    .market-category-menu__list,
    .market-promo-row {
        grid-template-columns: 1fr;
    }

    .market-category-menu__link {
        min-height: 42px;
    }

    .market-promo-card {
        min-height: 88px;
    }

    .market-deal-strip article {
        min-height: 86px;
    }
}

.market-hero-slide--uploaded {
    display: block;
    padding: clamp(12px, 1.6vw, 18px);
}

.market-hero-uploaded-banner {
    position: relative;
    z-index: 3;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: calc(462px - clamp(24px, 3.2vw, 36px));
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(37, 99, 235, 0.06)),
        #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 18px 44px rgba(15, 23, 42, 0.08);
}

.market-hero-uploaded-banner img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 430px;
    object-fit: contain;
    object-position: center;
}

.market-hero-uploaded-banner:focus-visible {
    outline: 4px solid rgba(37, 99, 235, 0.24);
    outline-offset: 4px;
}

@media (max-width: 980px) {
    .market-hero-uploaded-banner {
        min-height: clamp(250px, 50vw, 410px);
    }

    .market-hero-uploaded-banner img {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .market-hero-slide--uploaded {
        padding: 10px;
        padding-bottom: 60px;
    }

    .market-hero-uploaded-banner {
        min-height: clamp(188px, 50vw, 260px);
        border-radius: 18px;
    }
}

/* Marketplace hero refinement */
.market-hero-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.market-hero-wrap {
    background:
        radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.market-hero-layout {
    grid-template-columns: minmax(196px, 224px) minmax(0, 1fr) minmax(202px, 224px);
    gap: 14px;
}

.market-category-menu {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.94);
    background: #ffffff;
}

.market-category-menu__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    background: #0f172a;
    color: #ffffff;
}

.market-category-menu__title::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.72;
    transform: rotate(45deg);
}

.market-category-menu__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    font-weight: 850;
}

.market-category-menu__link > span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.market-category-menu__link > span > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-category-menu__mark {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 950;
}

.market-category-menu__link small {
    color: #64748b;
    font-weight: 850;
}

.market-category-menu__link:hover,
.market-category-menu__link:focus-visible {
    padding-left: 12px;
    background: #f8fafc;
    color: #0f172a;
}

.market-category-menu__link:hover .market-category-menu__mark,
.market-category-menu__link:focus-visible .market-category-menu__mark {
    background: #2563eb;
    color: #ffffff;
}

.market-hero-carousel {
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.86);
}

.market-hero-slide {
    min-height: 420px;
    padding: clamp(22px, 2.8vw, 34px);
}

.market-hero-copy .hero-title {
    max-width: 460px;
    font-size: clamp(30px, 3.4vw, 46px);
    letter-spacing: 0;
}

.market-hero-copy .hero-copy {
    max-width: 430px;
}

.market-hero-image {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.72);
}

.market-hero-image img {
    height: 304px;
}

.market-hero-uploaded-banner {
    min-height: calc(420px - clamp(24px, 3.2vw, 36px));
}

.market-hero-uploaded-banner img {
    max-height: 394px;
}

.market-deal-strip {
    border: 1px solid rgba(226, 232, 240, 0.94);
    background: #ffffff;
}

.market-deal-strip__card,
.market-deal-strip article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    min-height: 122px;
    align-content: center;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 17px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    padding: 14px;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.market-deal-strip__card:hover,
.market-deal-strip__card:focus-visible,
.market-deal-strip article:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.market-deal-strip__card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.market-deal-strip__card span:not(.market-deal-strip__icon),
.market-deal-strip article span:not(.market-deal-strip__icon) {
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.market-deal-strip__card strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.42;
}

.market-promo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-promo-card {
    border-color: rgba(226, 232, 240, 0.9);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)),
        #0f172a;
}

.market-promo-card--accent {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(15, 23, 42, 0.92)),
        #2563eb;
}

@media (max-width: 1180px) {
    .market-deal-strip__card,
    .market-deal-strip article {
        min-height: 96px;
    }
}

@media (max-width: 980px) {
    .market-hero-main {
        order: 1;
    }

    .market-category-menu {
        order: 2;
    }

    .market-deal-strip {
        order: 3;
    }

    .market-category-menu__list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 10px;
        scroll-snap-type: x proximity;
    }

    .market-category-menu__link {
        min-width: 180px;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: 14px;
        scroll-snap-align: start;
    }

    .market-deal-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-hero-carousel,
    .market-hero-slide {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .market-hero-layout {
        gap: 10px;
    }

    .market-hero-carousel {
        border-radius: 20px;
    }

    .market-hero-slide {
        gap: 16px;
        padding: 16px 14px 66px;
    }

    .market-hero-copy .hero-title {
        font-size: clamp(27px, 8vw, 34px);
    }

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

    .market-hero-image img {
        height: clamp(198px, 54vw, 250px);
    }

    .market-deal-strip {
        grid-template-columns: 1fr;
    }

    .market-deal-strip__card,
    .market-deal-strip article {
        min-height: 82px;
    }
}

/* Hero alignment and readability pass */
.market-hero-layout {
    width: min(100% - 32px, 1280px);
    grid-template-columns: minmax(208px, 240px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.market-hero-main {
    display: grid;
    gap: 14px;
}

.market-hero-carousel {
    min-height: 520px;
}

.market-hero-slide {
    grid-template-columns: minmax(460px, 1fr) minmax(320px, 0.9fr);
    gap: clamp(24px, 3vw, 44px);
    min-height: 520px;
    padding: clamp(24px, 2.7vw, 34px) clamp(26px, 3vw, 38px) 72px;
}

.market-hero-copy {
    align-self: center;
    max-width: 620px;
}

.market-hero-copy .hero-title {
    max-width: 620px;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.06;
}

.market-hero-copy .hero-copy {
    max-width: 580px;
    overflow: visible;
    color: #475569;
    line-height: 1.55;
}

.market-hero-copy .hero-product {
    margin-top: 10px;
}

.market-hero-image {
    align-self: center;
    min-height: 284px;
}

.market-hero-image img {
    height: 340px;
}

.market-hero-uploaded-banner {
    min-height: calc(520px - clamp(24px, 3.2vw, 36px));
}

.market-hero-uploaded-banner img {
    max-height: 488px;
}

.market-hero-floating-card {
    right: auto;
    bottom: 16px;
    left: 16px;
    max-width: min(250px, calc(100% - 32px));
}

.market-hero-controls {
    top: auto;
    right: 24px;
    bottom: 22px;
    transform: none;
}

.market-hero-pagination {
    bottom: 30px;
}

.market-promo-row {
    align-items: stretch;
    margin-top: 0;
}

.market-promo-card {
    min-height: 102px;
    border-color: rgba(226, 232, 240, 0.72);
    color: #ffffff;
}

.market-promo-card span,
.market-promo-card strong {
    color: #ffffff;
}

.market-promo-card span {
    color: #93c5fd;
}

.market-promo-card:hover,
.market-promo-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.market-deal-strip {
    align-self: stretch;
}

.market-deal-strip__card {
    min-height: 124px;
}

.market-deal-strip__card strong {
    max-width: 142px;
}

@media (max-width: 1180px) {
    .market-hero-layout {
        width: min(100% - 32px, 1280px);
        grid-template-columns: minmax(188px, 214px) minmax(0, 1fr);
    }

    .market-hero-slide {
        grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    }

    .market-hero-copy,
    .market-hero-copy .hero-title,
    .market-hero-copy .hero-copy {
        max-width: 420px;
    }
}

@media (max-width: 980px) {
    .market-hero-slide {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 76px;
    }

    .market-hero-copy,
    .market-hero-copy .hero-title,
    .market-hero-copy .hero-copy {
        max-width: 680px;
    }

    .market-hero-copy .hero-copy {
        overflow: visible;
    }

    .market-hero-image img {
        height: clamp(250px, 44vw, 330px);
    }

    .market-deal-strip__card strong {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .market-hero-carousel {
        min-height: 0;
    }

    .market-hero-slide {
        padding: 18px 16px 70px;
    }

    .market-hero-copy .hero-title {
        font-size: clamp(28px, 8.4vw, 36px);
    }

    .market-hero-controls {
        top: auto;
        right: 16px;
        bottom: 16px;
        transform: none;
    }

    .market-hero-floating-card {
        position: static;
        margin-top: 10px;
        max-width: none;
    }

    .market-promo-row {
        gap: 10px;
    }
}

/* Premium product detail page */
.product-premium-page {
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.045), transparent 320px),
        var(--color-bg);
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.product-breadcrumb a:hover {
    color: var(--color-accent);
}

.product-breadcrumb strong {
    color: var(--color-primary);
}

.product-premium-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    gap: 24px;
    align-items: start;
}

.product-premium-gallery {
    min-width: 0;
}

.product-buy-panel {
    top: 132px;
    border-color: rgba(226, 232, 240, 0.95);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.product-kicker-row,
.product-rating-summary,
.product-secondary-actions,
.product-price-block,
.product-buy-meta p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.product-kicker-row span {
    border-radius: 999px;
    background: #eff6ff;
    padding: 8px 10px;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-kicker-row .is-positive {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.product-kicker-row .is-muted {
    background: #f1f5f9;
    color: #475569;
}

.product-premium-title {
    margin-top: 18px;
    color: var(--color-primary);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 900;
    line-height: 1.03;
}

.product-premium-brand {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-premium-brand span {
    margin-left: 8px;
    color: #334155;
}

.product-rating-summary {
    margin-top: 14px;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 900;
}

.product-rating-summary a {
    color: var(--color-accent);
}

.product-price-block {
    margin-top: 20px;
    align-items: baseline;
}

.product-price-block p {
    color: var(--color-accent);
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 900;
    line-height: 1;
}

.product-price-block span {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 900;
    text-decoration: line-through;
}

.product-summary {
    margin-top: 16px;
    color: #475569;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.7;
}

.product-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-trust-grid article {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.product-trust-grid strong,
.product-trust-grid span {
    display: block;
}

.product-trust-grid strong {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 900;
}

.product-trust-grid span {
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
}

.product-premium-variants {
    margin-top: 22px;
}

.product-purchase-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    border-top: 1px solid var(--color-line);
    padding-top: 20px;
}

.product-purchase-form label {
    display: grid;
    gap: 8px;
}

.product-purchase-form label span {
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-main-cta {
    min-height: 54px;
    border-radius: 16px;
    font-size: 15px;
}

.product-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.product-share-panel {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #f8fafc;
    padding: 14px;
}

.product-share-panel p {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 900;
}

.product-share-panel span {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.product-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-share-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #fff;
    padding: 0 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.product-share-button:hover,
.product-share-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.34);
    color: var(--color-accent);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    outline: none;
}

.product-share-button--primary {
    border-color: rgba(37, 99, 235, 0.2);
    background: #eff6ff;
    color: var(--color-accent);
}

.product-share-button.is-hidden {
    display: none;
}

.auth-page {
    min-height: 68vh;
    padding: clamp(40px, 7vw, 84px) 16px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 34%),
        #f8fafc;
}

.auth-page--compact {
    min-height: 60vh;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 488px);
    gap: 28px;
    width: min(100%, 1040px);
    margin: 0 auto;
    align-items: stretch;
}

.auth-shell--single {
    display: block;
    width: min(100%, 488px);
    margin: 0 auto;
}

.auth-panel,
.auth-visual {
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.auth-panel {
    padding: clamp(24px, 4vw, 40px);
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(28px, 5vw, 48px);
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78)),
        url('/images/kubtex-logo-enhanced.png') center 32px / min(58%, 320px) no-repeat,
        #0f172a;
    color: #ffffff;
}

.auth-visual::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent);
    pointer-events: none;
}

.auth-visual > * {
    position: relative;
    z-index: 1;
}

.auth-visual__eyebrow,
.auth-kicker {
    margin: 0;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.auth-visual__eyebrow {
    color: #bfdbfe;
}

.auth-visual h2 {
    max-width: 520px;
    margin: 12px 0 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.04;
}

.auth-visual p:not(.auth-visual__eyebrow) {
    max-width: 520px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

.auth-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.auth-trust-list span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 9px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.auth-header {
    margin-bottom: 26px;
}

.auth-header h1 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.06;
}

.auth-header p:not(.auth-kicker) {
    margin: 12px 0 0;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}

.auth-alert {
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.auth-alert--success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.auth-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.auth-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.auth-field label span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-field input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.auth-field input[aria-describedby*="error"] {
    border-color: #ef4444;
}

.auth-help,
.auth-error,
.auth-footnote {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.auth-help,
.auth-footnote {
    color: #64748b;
}

.auth-error {
    color: #b91c1c;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.auth-row a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.auth-row a:hover,
.auth-row a:focus-visible {
    color: #0f172a;
    outline: none;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.auth-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-primary-button,
.auth-secondary-button,
.topbar-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.auth-primary-button {
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    border: 0;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
    cursor: pointer;
}

.auth-primary-button:hover,
.auth-primary-button:focus-visible {
    transform: translateY(-1px);
    background: #0f172a;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
}

.auth-secondary-button {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
}

.auth-footnote {
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
        width: min(100%, 560px);
    }

    .auth-visual {
        min-height: 300px;
        background-position: center 20px;
        background-size: min(46%, 220px);
    }
}

@media (max-width: 560px) {
    .auth-page {
        padding: 28px 12px 44px;
    }

    .auth-panel,
    .auth-visual {
        border-radius: 14px;
    }

    .auth-panel {
        padding: 22px;
    }

    .auth-visual {
        min-height: 260px;
        padding: 24px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .auth-primary-button,
    .auth-secondary-button {
        min-height: 54px;
    }
}

.auth-secondary-button:hover,
.auth-secondary-button:focus-visible {
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.topbar .topbar-login-button {
    min-height: 34px;
    padding: 0 14px;
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.topbar .topbar-login-button:hover,
.topbar .topbar-login-button:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
    color: #0f172a;
}

.product-share-status {
    min-height: 16px;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.product-buy-meta {
    display: grid;
    gap: 11px;
    margin-top: 20px;
    border-top: 1px solid var(--color-line);
    padding-top: 18px;
}

.product-buy-meta p {
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
}

.checkout-hero {
    position: relative;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.checkout-steps span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 9px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.checkout-field {
    display: grid;
    gap: 8px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.checkout-field span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.checkout-field .form-control {
    margin-top: 0;
}

.checkout-payment-option {
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.checkout-payment-option:hover,
.checkout-payment-option:focus-within {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .35);
    background: #f8fafc;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .07);
}

.checkout-recovery-page {
    background: #f8fafc;
    padding: clamp(44px, 7vw, 84px) 16px;
}

.checkout-recovery-card {
    display: grid;
    gap: 22px;
    max-width: 780px;
    margin: 0 auto;
    border: 1px solid #fee2e2;
    border-radius: 18px;
    background: #ffffff;
    padding: clamp(24px, 5vw, 42px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .1);
}

.checkout-recovery-card h1 {
    margin-top: 10px;
    color: #0f172a;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.04;
}

.checkout-recovery-card p {
    color: #475569;
    font-weight: 600;
    line-height: 1.7;
}

.checkout-recovery-summary {
    display: grid;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    padding: 16px;
}

.checkout-recovery-summary p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    font-size: 14px;
}

.checkout-recovery-summary span {
    color: #64748b;
}

.checkout-recovery-summary strong {
    color: #0f172a;
    text-align: right;
}

.checkout-reference {
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px 14px;
    color: #0f172a !important;
    font-size: 13px;
    font-weight: 900 !important;
}

.checkout-recovery-actions {
    display: grid;
    gap: 12px;
}

.checkout-recovery-note {
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    color: #64748b !important;
    font-size: 13px;
}

@media (min-width: 720px) {
    .checkout-recovery-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-buy-meta strong {
    color: var(--color-primary);
}

.product-content-grid,
.product-info-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.product-content-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
}

.product-info-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
}

.product-story-panel,
.product-spec-panel,
.product-confidence-panel,
.product-review-panel,
.product-faq-panel,
.product-trade-panel,
.product-related-panel {
    padding: clamp(20px, 3vw, 28px);
}

.product-story-panel h2,
.product-spec-panel h2,
.product-confidence-panel h2,
.product-faq-panel h2,
.product-trade-panel h2 {
    margin-top: 8px;
    color: var(--color-primary);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.08;
}

.product-description-sections {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

.product-description-sections article {
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 18px;
}

.product-description-sections article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-description-sections h3 {
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 900;
}

.product-description-sections p {
    margin-top: 9px;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.product-feature-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.product-feature-list div {
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: #f8fafc;
    padding: 13px 14px;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.5;
}

.product-confidence-panel,
.product-trade-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 22px;
    align-items: center;
    margin-top: 24px;
}

.product-confidence-panel p,
.product-trade-panel p {
    margin-top: 10px;
    color: #64748b;
    font-weight: 750;
    line-height: 1.7;
}

.product-review-list,
.product-faq-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.product-review-list article,
.product-faq-list details {
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}

.product-review-list strong,
.product-review-list span,
.product-review-list p {
    display: block;
}

.product-review-list strong {
    color: var(--color-primary);
    font-weight: 900;
}

.product-review-list span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.product-review-list p,
.product-empty-copy {
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.product-faq-list summary {
    color: var(--color-primary);
    font-weight: 900;
    cursor: pointer;
}

.product-faq-list p {
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.product-trade-panel {
    grid-template-columns: minmax(0, 1fr) auto;
}

.product-related-panel {
    margin-top: 24px;
}

.mobile-product-cta {
    display: none;
}

@media (max-width: 1100px) {
    .product-premium-hero,
    .product-content-grid,
    .product-info-grid,
    .product-confidence-panel,
    .product-trade-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .product-premium-page {
        padding-bottom: 78px;
    }

    .product-breadcrumb {
        font-size: 12px;
    }

    .product-buy-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .product-trust-grid,
    .product-secondary-actions,
    .product-share-actions {
        grid-template-columns: 1fr;
    }

    .product-share-actions {
        display: grid;
    }

    .product-premium-title {
        font-size: clamp(27px, 8vw, 34px);
    }

    .product-content-grid,
    .product-info-grid {
        gap: 18px;
        margin-top: 18px;
    }

    .mobile-product-cta {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 55;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        border: 1px solid rgba(226, 232, 240, 0.92);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        padding: 10px;
        box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(18px);
    }

    .mobile-product-cta a {
        min-height: 46px;
        border-radius: 14px;
        padding-inline: 14px;
        font-size: 13px;
    }
}

/* Final responsive cascade guard */
@media (max-width: 920px) {
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .topbar {
        display: none;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 70px;
        padding-block: 10px;
    }

    .site-header__inner > .mobile-menu-button {
        display: inline-grid;
        order: -1;
    }

    .site-header__inner > .searchbar {
        grid-column: 1 / -1;
        order: 4;
    }

    .mobile-store-menu.is-open {
        display: block;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .category-nav__inner {
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

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

    .category-nav a {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .wa-float {
        bottom: calc(88px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 760px) {
    .shop-shell,
    .site-header__inner,
    .category-nav__inner,
    .footer__inner,
    .footer__bottom {
        width: min(100% - 20px, 1180px);
    }

    .market-hero-layout,
    .market-hero-slide,
    .filter-layout,
    .product-premium-hero,
    .product-content-grid,
    .product-info-grid,
    .product-confidence-panel,
    .product-trade-panel,
    .trade-clean-hero,
    .trade-clean-guide,
    .trade-form-layout--clean,
    .trade-dark-panel,
    .trade-form-layout,
    .trade-faq-layout {
        grid-template-columns: 1fr !important;
    }

    .market-category-menu {
        display: none !important;
    }

    .market-hero-slide {
        min-height: auto;
        padding: 18px;
    }

    .market-hero-copy {
        order: 2;
    }

    .market-hero-image {
        order: 1;
        min-height: 220px;
    }

    .market-hero-image img {
        height: clamp(220px, 62vw, 320px);
    }

    .marketplace-product-grid,
    .product-grid,
    .market-promo-row,
    .market-banner-grid,
    .market-brand-grid,
    .market-why-grid,
    .testimonial-grid,
    .trade-proof-strip,
    .trade-choice-grid,
    .trade-workflow-grid,
    .condition-grade-grid,
    .trade-benefit-grid,
    .trade-testimonial-grid,
    .trade-in-mode-grid,
    .trade-in-check-grid {
        grid-template-columns: 1fr !important;
    }

    .product-gallery {
        grid-template-columns: 1fr !important;
    }

    .product-gallery__rail {
        display: none;
    }

    .product-gallery__image {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: 74vh;
        object-fit: contain;
    }

    .product-card__form {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .product-secondary-actions,
    .product-share-actions,
    .product-trust-grid,
    .product-kicker-row {
        grid-template-columns: 1fr !important;
    }

    .section-head,
    .marketplace-section-head,
    .results-head,
    .trade-support-cta__inner,
    .trade-in-home-cta,
    .market-newsletter__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .section-link,
    .btn-primary,
    .btn-outline,
    .btn-green {
        min-height: 48px;
    }

    .form-control,
    .qty-input,
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .footer {
        padding-bottom: 96px;
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    .marketplace-product-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-layout,
    .product-premium-hero,
    .product-content-grid,
    .product-info-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1023px) {
    .admin-shell,
    .customer-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar,
    .customer-sidebar {
        display: none;
    }

    .admin-mobile-nav,
    .customer-mobile-nav {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .admin-mobile-nav::-webkit-scrollbar,
    .customer-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-main,
    .customer-main {
        padding-bottom: 96px;
    }

    .admin-main table,
    .customer-main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Final clean trade-in overrides */
.trade-hero--clean {
    background: #f8fafc;
    padding-block: clamp(34px, 6vw, 72px);
}

.trade-clean-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
}

.trade-clean-hero__copy,
.trade-clean-hero__copy h1 {
    color: #0f172a;
}

.trade-clean-hero__copy h1 {
    max-width: 760px;
    margin-top: 10px;
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 900;
    line-height: 0.98;
}

.trade-clean-hero__copy p:not(.eyebrow) {
    max-width: 640px;
    margin-top: 20px;
    color: #475569;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 700;
    line-height: 1.75;
}

.trade-clean-hero__visual {
    position: relative;
}

.trade-clean-hero__visual img {
    width: 100%;
    height: clamp(360px, 44vw, 560px);
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.trade-clean-floating-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.trade-clean-floating-card span,
.trade-clean-floating-card strong,
.trade-clean-proof strong,
.trade-clean-proof span,
.trade-clean-conditions strong,
.trade-clean-conditions span {
    display: block;
}

.trade-clean-floating-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-clean-floating-card strong {
    margin-top: 4px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.trade-section--clean {
    padding-block: clamp(30px, 5vw, 58px);
}

.trade-clean-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #e2e8f0;
}

.trade-clean-proof article {
    background: #fff;
    padding: clamp(18px, 3vw, 28px);
}

.trade-clean-proof strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.trade-clean-proof span,
.trade-clean-conditions span {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.65;
}

.trade-section-head--center {
    margin-inline: auto;
    text-align: center;
}

.trade-choice-grid--clean {
    max-width: 980px;
    margin-inline: auto;
}

.trade-choice-grid--clean .trade-choice-card {
    min-height: 280px;
    border-radius: 24px;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.08);
}

.trade-clean-guide {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.8fr);
    align-items: start;
    gap: clamp(24px, 5vw, 58px);
}

.trade-clean-guide h2 {
    margin-top: 8px;
    color: #0f172a;
    font-size: clamp(30px, 4.8vw, 52px);
    font-weight: 900;
    line-height: 1.04;
}

.trade-clean-guide p:not(.eyebrow) {
    margin-top: 14px;
    max-width: 680px;
    color: #64748b;
    font-weight: 750;
    line-height: 1.75;
}

.trade-clean-steps {
    display: grid;
    gap: 10px;
}

.trade-clean-steps div {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
}

.trade-clean-steps span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.trade-clean-steps strong,
.trade-clean-conditions strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.trade-clean-conditions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.trade-clean-conditions article {
    min-width: 210px;
    scroll-snap-align: start;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}

.trade-form-layout--clean {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.9fr);
    gap: clamp(24px, 5vw, 60px);
}

.trade-form-card--clean {
    border-radius: 26px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.trade-support-cta--clean {
    padding-top: 0;
}

@media (max-width: 980px) {
    .trade-clean-hero,
    .trade-clean-guide,
    .trade-form-layout--clean,
    .trade-clean-proof,
    .trade-admin-aligned {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .trade-clean-hero__copy h1 {
        font-size: 40px;
    }

    .trade-clean-hero__visual img {
        height: 340px;
        border-radius: 24px;
    }

    .trade-clean-floating-card {
        right: 14px;
        bottom: 14px;
    }
}
