@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f6f9ff;
    --surface: #ffffff;
    --surface-2: #edf5ff;
    --text: #102a43;
    --muted: #64748b;
    --primary: #1677ff;
    --primary-strong: #0757c7;
    --primary-soft: rgba(47, 111, 237, 0.12);
    --border: #dbe8fb;
    --shadow: 0 18px 50px rgba(20, 82, 150, 0.08);
    --shadow-hover: 0 24px 70px rgba(20, 82, 150, 0.14);
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background:
        radial-gradient(circle at 18% 8%, rgba(22, 119, 255, 0.14), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.1), transparent 24%),
        linear-gradient(180deg, #f9fbff 0, var(--bg) 100%);
    color: var(--text);
    line-height: 1.8;
}

a {
    color: inherit;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header,
.mobile-menu,
.site-footer,
.product-card,
.category-card,
.vendor-card,
.info-card,
.contact-form-container,
.auth-container,
.dashboard-card,
.table-container,
.form-container,
.sidebar,
.stat-card,
.product-main,
.product-tabs,
.filters-sidebar,
.products-toolbar,
.intro-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.88);
}

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

.logo h1,
.page-header h1,
.section-header h2 {
    font-weight: 700;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
}

.logo a,
.main-nav a,
.mobile-nav a,
.btn-header,
.view-all,
.btn-view,
.category-card,
.vendor-card {
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a,
.mobile-nav a {
    color: var(--muted);
    font-weight: 500;
    transition: 0.25s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.view-all:hover {
    color: var(--primary);
}

.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

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

.btn-header,
.btn,
.btn-submit,
.search-btn,
.filter-btn,
.btn-primary,
.btn-login,
.btn-outline {
    border: none;
    cursor: pointer;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-header {
    padding: 10px 16px;
    color: var(--text);
    background: var(--surface-2);
}

.auth-combo {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(22, 119, 255, 0.18);
    background: linear-gradient(135deg, #fff 0%, #edf6ff 100%);
    color: var(--primary-strong);
    box-shadow: 0 10px 24px rgba(22, 119, 255, 0.1);
}

.header-notice {
    width: min(1120px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-strong);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

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

.btn-header.btn-primary,
.btn-primary,
.btn-submit,
.search-btn,
.filter-btn,
.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
}

.btn-outline {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-strong);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
}

.btn-header:hover,
.btn:hover,
.btn-submit:hover,
.search-btn:hover,
.filter-btn:hover,
.btn-primary:hover,
.btn-login:hover,
.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22, 119, 255, 0.22);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.close-mobile-menu {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(217, 228, 247, 0.7);
}

.site-main {
    min-height: 60vh;
}

.hero-section {
    padding: 96px 0 64px;
    position: relative;
    overflow: hidden;
}

.page-section {
    padding: 56px 0 72px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1,
.page-header h1,
.section-header h2,
.auth-header h1,
.contact-form-container h2,
.dashboard-card h2,
.product-summary h1 {
    letter-spacing: -0.02em;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin-bottom: 16px;
    line-height: 1.35;
}

.hero-content p,
.page-header p,
.auth-header p,
.vendor-desc,
.category-content p,
.info-card p {
    color: var(--muted);
}

.search-box {
    max-width: 680px;
    margin: 32px auto 0;
}

.search-box form {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-input,
.form-control,
.filter-input,
.sort-options select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--text);
}

.search-input:focus,
.form-control:focus,
.filter-input:focus,
.sort-options select:focus {
    outline: none;
    border-color: rgba(47, 111, 237, 0.45);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-btn {
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.categories-section,
.products-section,
.vendors-section,
.features-section,
.intro-section,
.categories-page,
.vendors-page,
.products-page,
.contact-page,
.auth-section,
.product-detail {
    padding: 56px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 700;
}

.hero-content .eyebrow {
    margin-inline: auto;
}

.hero-actions,
.hero-stats,
.shop-summary,
.contact-strip {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions {
    margin-top: 24px;
}

.hero-stats {
    margin-top: 28px;
}

.hero-stats div,
.shop-summary .stat-card,
.contact-strip {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-stats div,
.shop-summary .stat-card {
    min-width: 150px;
    padding: 16px 18px;
    border-radius: 18px;
    text-align: center;
}

.hero-stats strong,
.shop-summary strong {
    display: block;
    font-size: 24px;
    color: var(--primary);
}

.hero-stats span,
.shop-summary span {
    color: var(--muted);
    font-size: 13px;
}

.intro-grid,
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.intro-card {
    padding: 26px;
    border-radius: var(--radius);
    transition: 0.25s ease;
}

.intro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.section-header,
.page-header,
.table-header,
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.section-header h2,
.page-header h1 {
    font-size: clamp(24px, 3vw, 34px);
}

.view-all {
    color: var(--primary);
    font-weight: 600;
}

.categories-grid,
.products-grid,
.vendors-grid,
.features-grid {
    display: grid;
    gap: 20px;
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

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

.vendors-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card,
.vendor-card,
.feature-item,
.stat-card,
.dashboard-card,
.info-card,
.auth-container,
.contact-form-container {
    border-radius: var(--radius);
}

.category-card,
.vendor-card,
.feature-item {
    padding: 26px 20px;
    transition: 0.25s ease;
}

.category-card:hover,
.vendor-card:hover,
.feature-item:hover,
.product-card:hover,
.dashboard-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-card img,
.vendor-card img,
.vendor-logo-large {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto 16px;
}

.category-card h3,
.vendor-card h3,
.feature-item h3,
.product-info h3,
.info-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.product-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: 0.25s ease;
}

.product-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #f7faff, #eef4ff);
}

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

.no-image {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.product-info {
    padding: 20px;
}

.product-brand,
.vendor-count,
.price-label,
.category-meta,
.vendor-stats,
.stat-item,
.user-info {
    color: var(--muted);
    font-size: 14px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
}

.price {
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

.btn-view {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    font-weight: 600;
}

.features-section {
    padding-bottom: 80px;
}

.feature-item {
    text-align: center;
}

.content-card {
    padding: 28px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-hero,
.category-guide,
.vendor-guide {
    margin-bottom: 24px;
}

.about-hero h2,
.vendor-guide h2,
.category-guide h2 {
    font-size: clamp(22px, 3vw, 34px);
    margin-bottom: 10px;
}

.vendor-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.prose h2 {
    margin: 18px 0 10px;
}

.prose p {
    color: var(--muted);
    margin-bottom: 12px;
}

.feature-icon,
.info-icon,
.stat-icon,
.vendor-logo-placeholder {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
    margin: 0 auto 16px;
}

.site-footer {
    margin-top: 40px;
    padding: 40px 0 24px;
    border-radius: 28px 28px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
    color: var(--muted);
}

.footer-col a {
    text-decoration: none;
    color: var(--muted);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-badges span {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 600;
}

.auth-section,
.contact-page,
.products-page,
.categories-page,
.vendors-page,
.product-detail {
    min-height: 100vh;
}

.auth-container,
.contact-form-container,
.info-card {
    padding: 30px;
}

.auth-container {
    max-width: 520px;
    margin: 0 auto;
}

.auth-header,
.page-header {
    text-align: center;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer a,
.simple-table a,
.product-category a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-form .form-group,
.contact-form .form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-hint {
    margin: 8px 0 20px;
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 24px;
}

.contact-info {
    display: grid;
    gap: 18px;
}

.error-message,
.success-message,
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.hidden {
    display: none;
}

.auth-form small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.error-message,
.alert-danger {
    background: #fff1f2;
    color: #be123c;
}

.success-message,
.alert-success {
    background: #ecfdf5;
    color: #047857;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.product-gallery .main-image {
    height: 420px;
    background: linear-gradient(180deg, #f7faff, #eef4ff);
    border-radius: 20px;
    overflow: hidden;
}

.no-image-large {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid transparent;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
}

.price-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: white;
    padding: 24px;
    border-radius: 22px;
}

.product-actions,
.vendor-stats-row,
.form-row {
    display: flex;
    gap: 14px;
}

.product-actions {
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn-wishlist {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.content-box {
    padding: 24px;
}

.specs-table,
.simple-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr,
.simple-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table td,
.simple-table th,
.simple-table td {
    padding: 12px 8px;
    text-align: right;
}

.vendors-table {
    display: grid;
    gap: 14px;
}

.vendor-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fbff;
}

.vendor-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vendor-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.vendor-price {
    display: grid;
    gap: 4px;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 13px;
}

.current-price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.in-stock,
.pre-order,
.out-stock {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.in-stock {
    color: #047857;
    background: #ecfdf5;
}

.pre-order {
    color: #b45309;
    background: #fff7e6;
}

.out-stock {
    color: #be123c;
    background: #fff1f2;
}

.btn-buy {
    display: inline-flex;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.similar-products {
    margin-top: 28px;
}

.similar-products h2 {
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--primary-strong);
}

.table-container,
.form-container,
.dashboard-card,
.product-tabs,
.filters-sidebar,
.products-toolbar {
    border-radius: 22px;
}

.shop-summary {
    margin: -18px 0 28px;
}

.table-header,
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 9px 13px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.pagination a.active {
    background: var(--primary);
    color: #fff;
}

.products-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 26px;
    align-items: start;
}

.filters-sidebar,
.products-toolbar {
    padding: 22px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.filters-sidebar {
    position: sticky;
    top: 96px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.filter-section form {
    display: grid;
    gap: 10px;
}

.filter-section label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.shop-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 26px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.1), rgba(255,255,255,0.94)), var(--surface);
    box-shadow: var(--shadow);
}

.shop-hero h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.35;
    margin-bottom: 10px;
}

.shop-hero p,
.products-toolbar p {
    color: var(--muted);
}

.shop-hero-search {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,0.86);
}

.shop-hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
}

.shop-hero-search input:focus {
    outline: none;
}

.shop-hero-search button {
    border: none;
    border-radius: 15px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.shop-hero-panel {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 34%), linear-gradient(145deg, #0f65dd, #073b92);
}

.shop-hero-panel strong {
    font-size: 22px;
}

.shop-hero-panel span {
    color: rgba(255,255,255,0.78);
}

.shop-hero-panel a {
    width: max-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-weight: 700;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.active-filters span {
    color: var(--muted);
}

.active-filters b {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--primary-strong);
    font-size: 13px;
}

.active-filters a,
.filters-header a {
    color: #be123c;
    font-weight: 700;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.filters-header .eyebrow {
    margin-bottom: 8px;
}

.advanced-filter-form {
    display: grid;
    gap: 2px;
}

.price-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.product-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
}

.filter-list a.active,
.filter-list a:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 50px 20px;
}

.vendor-card-large,
.category-card-large {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: 0.25s ease;
}

.vendor-card-large:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.vendors-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.category-image {
    height: 190px;
    background: var(--surface-2);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
}

.view-link {
    color: var(--primary);
    font-weight: 600;
}

.vendor-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    padding: 30px;
    text-align: center;
}

.vendor-logo-large,
.vendor-logo-placeholder {
    width: 96px;
    height: 96px;
}

.vendor-body,
.category-content {
    padding: 22px;
}

.vendor-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.view-shop {
    color: var(--primary);
    font-weight: 700;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vendor-profile {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
}

.vendor-profile-logo {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: var(--surface-2);
    color: var(--primary);
    font-weight: 800;
    font-size: 30px;
    overflow: hidden;
}

.vendor-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-profile-info h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 8px;
}

.vendor-profile-info p {
    color: var(--muted);
    margin-bottom: 16px;
}

.contact-strip {
    justify-content: flex-start;
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 32px;
    color: var(--muted);
}

.contact-strip a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.price-summary .price {
    color: #fff;
}

.content-box p,
.no-results p {
    color: var(--muted);
}

@media (max-width: 1024px) {
    .products-layout,
    .contact-layout,
    .product-main {
        grid-template-columns: 1fr;
    }

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

    .filters-sidebar {
        position: static;
    }

    .vendor-guide,
    .products-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-actions .btn-header:not(.btn-primary) {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .search-box form,
    .shop-hero-search,
    .product-actions,
    .form-row,
    .vendor-stats-row,
    .vendor-row,
    .sort-options {
        flex-direction: column;
    }

    .vendor-row {
        display: flex;
        align-items: stretch;
    }

    .section-header,
    .page-header,
    .table-header,
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid,
    .categories-grid,
    .products-grid,
    .vendors-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 64px;
    }

    .hero-stats div,
    .shop-summary .stat-card {
        width: 100%;
    }

    .vendor-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vendor-profile-logo {
        margin: 0 auto;
    }

    .price-filter-row {
        grid-template-columns: 1fr;
    }
}

/* Premium vendors public presentation */
.vendors-page {
    background:
        radial-gradient(circle at 18% 10%, rgba(184, 115, 51, 0.12), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(255, 196, 112, 0.14), transparent 22%);
}

.vendors-grid-large {
    align-items: stretch;
}

.vendor-card-large {
    position: relative;
    isolation: isolate;
    border: 1px solid #ead8c4;
    background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
}

.vendor-card-large::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top left, rgba(184, 115, 51, 0.18), transparent 34%);
    opacity: 0;
    transition: 0.25s ease;
}

.vendor-card-large:hover::before {
    opacity: 1;
}

.vendor-card-large .vendor-header {
    padding: 34px;
    background:
        radial-gradient(circle at 50% 0, rgba(255,255,255,0.24), transparent 36%),
        linear-gradient(135deg, #b87333 0%, #7c3f17 70%, #2b1308 100%);
}

.vendor-card-large .vendor-body {
    text-align: center;
}

.vendor-card-large h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.vendor-card-large .vendor-stats-row {
    justify-content: center;
    flex-wrap: wrap;
}

.vendor-card-large .stat-item {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff4e5;
    color: #7c3f17;
    font-weight: 700;
}

.vendor-card-large .vendor-footer {
    display: flex;
    justify-content: center;
}

.view-shop {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b87333, #7c3f17);
    color: #fff;
}

.vendor-public-hero {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 0;
    margin-bottom: -68px;
    background:
        radial-gradient(circle at 15% 18%, rgba(255,255,255,0.22), transparent 28%),
        linear-gradient(135deg, #b87333, #4d2410);
}

.vendor-public-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.vendor-profile-premium {
    position: relative;
    z-index: 2;
    margin-right: 28px;
    margin-left: 28px;
    border-color: #ead8c4;
    background:
        radial-gradient(circle at top left, rgba(184, 115, 51, 0.12), transparent 30%),
        rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
}

.vendor-profile-premium .vendor-profile-logo {
    background: #fff4e5;
    color: #7c3f17;
    border: 6px solid #fff;
    box-shadow: 0 18px 44px rgba(124, 63, 23, 0.18);
}

.vendor-profile-premium .vendor-stats-row {
    flex-wrap: wrap;
}

.vendor-profile-premium .stat-item,
.contact-strip span,
.contact-strip a {
    padding: 9px 13px;
    border-radius: 999px;
    background: #fff4e5;
    color: #7c3f17;
    font-weight: 700;
}

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fffaf3;
    border: 1px solid #ead8c4;
}

.vendor-profile + .contact-strip {
    margin-top: 0;
}

@media (max-width: 768px) {
    .vendor-public-hero {
        min-height: 160px;
        margin-bottom: 18px;
    }

    .vendor-profile-premium {
        margin-right: 0;
        margin-left: 0;
    }
}

.home-banner-slider {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    margin-bottom: 28px;
    border-radius: 34px;
    box-shadow: 0 24px 80px rgba(15, 101, 221, 0.22);
    background: #0f65dd;
}
.home-banner-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 34px;
    opacity: 0;
    transform: scale(1.02);
    transition: 0.5s ease;
    color: #fff;
}
.home-banner-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.home-banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-banner-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 35, 91, 0.15), rgba(3, 35, 91, 0.78)); z-index: -1; }
.home-banner-slide strong { max-width: 650px; font-size: clamp(26px, 4vw, 48px); line-height: 1.5; }
.home-banner-dots { position: absolute; z-index: 3; left: 28px; bottom: 28px; display: flex; gap: 8px; }
.home-banner-dots button { width: 10px; height: 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,0.55); cursor: pointer; transition: 0.25s ease; }
.home-banner-dots button.active { width: 30px; background: #fff; }
@media (max-width: 768px) { .home-banner-slider { min-height: 210px; border-radius: 24px; } .home-banner-slide { padding: 24px; } }

/* Blue compact storefront refresh */
.hero-with-banner {
    padding: 42px 0 54px;
}

.hero-with-banner .container {
    position: relative;
}

.hero-with-banner .home-banner-slider {
    min-height: clamp(380px, 48vw, 560px);
    margin-bottom: 0;
    border-radius: 32px;
    box-shadow: 0 26px 80px rgba(13, 71, 161, 0.18);
    background: #dbeafe;
}

.hero-with-banner .home-banner-slide {
    padding: 0;
    pointer-events: auto;
}

.hero-with-banner .home-banner-slide::after {
    display: none;
}

.hero-with-banner .home-banner-slide img {
    z-index: 0;
}

.hero-with-banner .hero-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 980px;
    padding: 34px clamp(18px, 4vw, 64px);
    color: #fff;
    text-shadow: 0 3px 18px rgba(8, 35, 76, 0.34);
}

.hero-with-banner .hero-content p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-with-banner .eyebrow {
    background: rgba(255,255,255,0.86);
    color: #0757c7;
    text-shadow: none;
}

.hero-with-banner .search-box form,
.hero-with-banner .hero-stats div {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 50px rgba(3, 35, 91, 0.20);
    text-shadow: none;
}

.hero-with-banner .hero-actions,
.hero-with-banner .hero-stats {
    text-shadow: none;
}

.hero-with-banner .home-banner-dots {
    left: 34px;
    bottom: 28px;
}

.categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 14px;
}

.category-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.category-card img {
    width: 58px;
    height: 58px;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--border), 0 10px 22px rgba(22, 119, 255, 0.12);
}

.category-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
    line-height: 1.55;
}

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

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #f6fbff 100%);
    border-color: rgba(22, 119, 255, 0.16);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #1677ff, #0757c7);
    opacity: 0.9;
}

.product-image {
    aspect-ratio: 1 / 0.78;
    margin: 9px 9px 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #eff6ff, #ffffff);
}

.product-image img {
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 10px;
}

.product-info h3 {
    min-height: 42px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.product-info h3 a {
    display: -webkit-box;
    overflow: hidden;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-footer {
    align-items: center;
    padding-top: 7px;
    margin-top: 7px;
}

.price {
    font-size: 14px;
}

.btn-view {
    min-height: 34px;
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.vendors-grid,
.vendors-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.vendor-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(160deg, #ffffff 0%, #eaf4ff 100%);
    border-color: rgba(22, 119, 255, 0.18);
}

.vendor-card img {
    width: 46px;
    height: 46px;
    padding: 5px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 119, 255, 0.14);
}

.vendor-card h3 {
    font-size: 13px;
    line-height: 1.5;
}

.vendor-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.vendor-stats span,
.vendor-count,
.product-tags span {
    border-radius: 999px;
    background: #eaf4ff;
    color: #0757c7;
    font-weight: 700;
}

.vendor-stats span,
.vendor-count {
    padding: 3px 7px;
    font-size: 11px;
}

.vendors-page {
    background:
        radial-gradient(circle at 16% 10%, rgba(22, 119, 255, 0.12), transparent 24%),
        radial-gradient(circle at 86% 12%, rgba(14, 165, 233, 0.13), transparent 22%);
}

.vendor-card-large {
    border-color: rgba(22, 119, 255, 0.17);
    background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.vendor-card-large .vendor-header {
    padding: 24px;
    background: radial-gradient(circle at 50% 0, rgba(255,255,255,0.24), transparent 36%), linear-gradient(135deg, #1677ff 0%, #0757c7 100%);
}

.vendor-card-large h3 {
    font-size: 19px;
}

.vendor-card-large .stat-item,
.vendor-profile-premium .stat-item,
.contact-strip span,
.contact-strip a {
    background: #eaf4ff;
    color: #0757c7;
}

.view-shop {
    background: linear-gradient(135deg, #1677ff, #0757c7);
}

.category-card-large {
    position: relative;
    display: block;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    border-color: rgba(22, 119, 255, 0.15);
    background: linear-gradient(135deg, #1677ff, #0757c7);
}

.category-card-large .category-image {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 100%;
}

.category-card-large .category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 31, 72, 0.08), rgba(7, 31, 72, 0.72));
}

.category-card-large .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-large .category-content {
    position: relative;
    z-index: 1;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #fff;
}

.category-card-large .category-content h3 {
    font-size: 22px;
}

.category-card-large .category-content p,
.category-card-large .category-meta {
    color: rgba(255, 255, 255, 0.86);
}

.category-card-large .category-meta span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.contact-info {
    gap: 12px;
}

.contact-info .info-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 16px;
    border-radius: 20px;
}

.contact-info .info-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 16px;
}

.contact-info .info-card h3 {
    margin: 0 0 2px;
}

.contact-info .info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.product-main {
    gap: 24px;
    padding: 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff, #f3f9ff);
}

.product-gallery .main-image {
    height: auto;
    aspect-ratio: 1 / 0.88;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
}

.price-summary {
    background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 32%), linear-gradient(135deg, #1677ff 0%, #0757c7 100%);
}

.vendor-row {
    grid-template-columns: 1.7fr 1fr 0.8fr 0.9fr;
    border-color: rgba(22, 119, 255, 0.16);
    background: linear-gradient(180deg, #fff, #f4f9ff);
}

.vendor-public-hero {
    background: linear-gradient(135deg, #1677ff, #0757c7);
}

.vendor-profile-premium {
    border-color: rgba(22, 119, 255, 0.18);
    background: radial-gradient(circle at top left, rgba(22, 119, 255, 0.12), transparent 30%), rgba(255,255,255,0.95);
}

.vendor-profile-premium .vendor-profile-logo {
    background: #eaf4ff;
    color: #0757c7;
    box-shadow: 0 18px 44px rgba(22, 119, 255, 0.18);
}

.contact-strip {
    background: #f7fbff;
    border-color: rgba(22, 119, 255, 0.18);
}

.shop-hero {
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.17), transparent 34%), linear-gradient(135deg, rgba(22, 119, 255, 0.12), rgba(255,255,255,0.96));
}

@media (max-width: 768px) {
    .hero-with-banner .home-banner-slider {
        min-height: 620px;
        border-radius: 26px;
    }

    .hero-with-banner .hero-content {
        padding: 24px 16px;
    }

    .hero-with-banner .home-banner-dots {
        left: 22px;
        bottom: 18px;
    }

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

    .products-grid,
    .vendors-grid,
    .vendors-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 13px;
        min-height: 46px;
    }

    .price {
        font-size: 14px;
    }

    .btn-view {
        font-size: 12px;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .contact-info .info-card {
        grid-template-columns: 42px 1fr;
        padding: 14px;
    }
}

.products-section .products-grid,
.similar-products .products-grid,
.vendor-profile + .contact-strip + .section-header + .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
}

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

.product-card {
    max-width: 100%;
}

.products-section .product-card,
.similar-products .product-card,
.vendor-profile + .contact-strip + .section-header + .products-grid .product-card {
    min-width: 0;
}

@media (min-width: 1100px) {
    .products-section .products-grid,
    .similar-products .products-grid,
    .vendor-profile + .contact-strip + .section-header + .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .products-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Final premium card and mobile banner normalization */
.home-banner-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.home-banner-dots button.active {
    width: 11px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.product-card,
.categories-section .category-card,
.category-card-large,
.vendors-section .vendor-card,
.vendor-card-large {
    border: 1px solid rgba(22, 119, 255, 0.16);
    background:
        radial-gradient(circle at 12% 0, rgba(56, 189, 248, 0.18), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 16px 38px rgba(17, 82, 154, 0.10);
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
}

.product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 0.82;
    margin: 10px 10px 0;
    overflow: hidden;
    border: 1px solid rgba(22, 119, 255, 0.10);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0, rgba(22, 119, 255, 0.10), transparent 42%),
        #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-info h3 {
    color: #0f3f84;
}

.btn-view {
    margin-top: auto;
}

.categories-section .categories-grid,
.categories-page .categories-grid {
    align-items: stretch;
}

.categories-section .category-card,
.category-card-large {
    display: flex;
    flex-direction: column;
    min-height: 204px;
    padding: 10px;
    border-radius: 22px;
    text-align: center;
}

.categories-section .category-card img,
.category-card-large .category-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 132px;
    min-height: 132px;
    flex: 0 0 132px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(22, 119, 255, 0.12);
    border-radius: 18px;
    background: #fff;
}

.categories-section .category-card img,
.category-card-large .category-image img {
    padding: 10px;
    object-fit: contain;
}

.categories-section .category-card h3,
.category-card-large .category-content h3 {
    display: grid;
    place-items: center;
    flex: 1;
    margin: 0;
    padding: 10px 6px 2px;
    color: #0f3f84;
    font-size: 14px;
    line-height: 1.5;
}

.category-card-large .category-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.category-card-large .category-content p {
    display: none;
}

.category-card-large .category-meta {
    justify-content: center;
    margin-top: auto;
}

.vendors-page .vendors-grid-large,
.vendors-section .vendors-grid {
    align-items: stretch;
}

.vendor-card-large,
.vendors-section .vendor-card {
    border-radius: 22px;
}

.vendor-card-large .vendor-header {
    min-height: 118px;
}

.vendor-card-large .vendor-logo-large,
.vendor-card-large .vendor-logo-placeholder,
.vendors-section .vendor-card img,
.vendors-section .vendor-logo-placeholder {
    object-fit: contain;
}

@media (min-width: 901px) {
    .categories-page .categories-grid,
    .vendors-page .vendors-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
    }

    .products-page .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .hero-with-banner .home-banner-dots {
        position: absolute;
        right: 50%;
        bottom: 12px;
        left: auto;
        z-index: 7;
        display: flex;
        transform: translateX(50%);
    }

    .hero-with-banner .home-banner-dots button {
        width: 9px;
        height: 9px;
    }

    .hero-with-banner .home-banner-dots button.active {
        width: 9px;
    }

    .products-page .products-grid,
    .similar-products .products-grid,
    .vendor-profile + .contact-strip + .section-header + .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .products-section .products-grid {
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
    }

    .product-card {
        min-height: 100%;
        border-radius: 17px;
        box-shadow: 0 12px 28px rgba(17, 82, 154, 0.10);
    }

    .product-image,
    .home-products-section .product-image,
    .products-section .product-image {
        aspect-ratio: 1 / 0.88;
        margin: 7px 7px 0;
        border-radius: 13px;
    }

    .product-image img {
        padding: 7px;
    }

    .product-info {
        padding: 8px;
    }

    .product-info h3 {
        min-height: 42px;
        font-size: 11px;
        line-height: 1.55;
    }

    .product-brand,
    .product-tags span,
    .vendor-count,
    .price-label {
        font-size: 9.5px;
    }

    .price {
        font-size: 11.5px;
    }

    .btn-view {
        min-height: 34px;
        padding: 7px 8px;
        border-radius: 11px;
        font-size: 10.5px;
    }

    .home-categories-section .categories-grid {
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
    }

    .categories-page .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-categories-section .category-card,
    .categories-section .category-card,
    .category-card-large {
        min-height: 158px;
        padding: 8px;
        border-radius: 17px;
    }

    .home-categories-section .category-card img,
    .categories-section .category-card img,
    .category-card-large .category-image {
        height: 104px;
        min-height: 104px;
        flex: 0 0 104px;
        border-radius: 13px;
    }

    .home-categories-section .category-card img,
    .categories-section .category-card img,
    .category-card-large .category-image img {
        padding: 7px;
    }

    .home-categories-section .category-card h3,
    .categories-section .category-card h3,
    .category-card-large .category-content h3 {
        min-height: 38px;
        padding: 7px 4px 0;
        font-size: 10.8px;
        line-height: 1.45;
    }

    .category-card-large .category-meta {
        display: none;
    }

    .vendors-page .vendors-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vendor-card-large {
        min-height: 172px;
        border-radius: 17px;
    }

    .vendor-card-large .vendor-header {
        min-height: 86px;
        padding: 12px;
    }

    .vendor-card-large .vendor-logo-large,
    .vendor-card-large .vendor-logo-placeholder {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .vendor-card-large .vendor-body {
        padding: 10px;
    }

    .vendor-card-large h3 {
        min-height: 34px;
        font-size: 11px;
        line-height: 1.55;
    }

    .vendor-card-large .stat-item,
    .vendor-card-large .view-shop {
        font-size: 9.5px;
    }
}

/* Final desktop category grid fix */
@media (min-width: 901px) {
    .categories-section .categories-grid {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
        overflow: visible;
    }

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

    .categories-page .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
    }
}

/* Final desktop category grid fix */
@media (min-width: 901px) {
    .categories-section .categories-grid {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
        overflow: visible;
    }

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

    .categories-page .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
    }
}

/* Desktop category grid fix */
@media (min-width: 901px) {
    .categories-section .categories-grid {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
        overflow: visible;
    }

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

    .categories-page .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
    }
}

/* Compact professional scale */
:root {
    --radius: 14px;
    --shadow: 0 10px 26px rgba(20, 82, 150, 0.07);
    --shadow-hover: 0 16px 42px rgba(20, 82, 150, 0.12);
}

body { font-size: 14px; line-height: 1.65; }
.container { max-width: 1080px; padding: 0 14px; }
.site-main { padding-bottom: 0; }
.header-content { padding: 10px 0; gap: 10px; }
.logo h1 { font-size: 15px; }
.logo img { width: 32px; height: 32px; border-radius: 10px; }
.main-nav { gap: 10px; }
.main-nav a, .mobile-nav a { font-size: 12px; }
.btn-header { min-height: 34px; padding: 7px 11px; border-radius: 11px; font-size: 12px; }
.auth-combo { min-height: 34px; padding: 7px 12px; }
.header-notice { margin-top: 10px; padding: 7px 12px; font-size: 12px; border-radius: 12px; }

.hero-section,
.intro-section,
.categories-section,
.products-section,
.vendors-section,
.features-section,
.page-section,
.products-page,
.categories-page,
.vendors-page,
.product-detail,
.contact-page,
.auth-section { padding: 34px 0; }

.hero-content h1,
.page-header h1 { font-size: clamp(22px, 3.2vw, 36px); line-height: 1.35; }
.section-header { margin-bottom: 16px; }
.section-header h2 { font-size: clamp(18px, 2.4vw, 25px); }
.page-header { margin-bottom: 18px; }
.page-header p,
.hero-content p,
.prose p,
.content-card p { font-size: 13px; line-height: 1.8; }

.search-box form { min-height: 46px; }
.search-input { padding: 11px 14px; font-size: 13px; }
.search-btn,
.btn-primary,
.btn-submit,
.btn-outline,
.filter-btn,
.btn-login { min-height: 36px; padding: 9px 13px; border-radius: 12px; font-size: 12px; }
.hero-actions { gap: 9px; }
.hero-stats { gap: 10px; }
.hero-stats div { padding: 10px 12px; border-radius: 14px; }

.content-card,
.auth-container,
.contact-form-container,
.info-card,
.product-main,
.product-tabs,
.filters-sidebar,
.products-toolbar,
.dashboard-card,
.table-container,
.form-container { padding: 18px; border-radius: 16px; }
.intro-grid,
.features-grid,
.contact-layout { gap: 14px; }
.intro-card,
.feature-item,
.category-card,
.vendor-card { padding: 14px; border-radius: 16px; }
.feature-icon,
.info-icon,
.stat-icon,
.vendor-logo-placeholder { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 10px; }

.categories-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.category-card { padding: 10px; border-radius: 16px; }
.category-card img { width: 42px; height: 42px; margin-bottom: 8px; border-radius: 13px; }
.category-card h3 { font-size: 12px; line-height: 1.45; }
.category-card-large { min-height: 158px; border-radius: 18px; }
.category-card-large .category-content { min-height: 158px; padding: 13px; }
.category-card-large .category-content h3 { font-size: 17px; }
.category-card-large .category-content p { font-size: 12px; }

.products-grid,
.products-section .products-grid,
.similar-products .products-grid,
.vendor-profile + .contact-strip + .section-header + .products-grid { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px; }
.products-page .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-card { border-radius: 16px; }
.product-card::before { height: 3px; }
.product-image { margin: 7px 7px 0; border-radius: 13px; aspect-ratio: 1 / .72; }
.product-info { padding: 8px; }
.product-info h3 { min-height: 35px; font-size: 11.5px; line-height: 1.5; margin-bottom: 4px; }
.product-brand,
.vendor-count,
.price-label,
.product-tags span { font-size: 10.5px; }
.product-footer { gap: 6px; padding-top: 6px; margin-top: 6px; }
.price { font-size: 12.5px; }
.btn-view { min-height: 29px; margin-top: 7px; padding: 6px 8px; border-radius: 10px; font-size: 10.5px; }

.vendors-grid,
.vendors-grid-large { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.vendor-card { min-height: 118px; padding: 10px; border-radius: 17px; }
.vendor-card img { width: 38px; height: 38px; margin-bottom: 8px; border-radius: 12px; }
.vendor-card h3 { font-size: 11.5px; margin-bottom: 5px; }
.vendor-stats { gap: 4px; }
.vendor-stats span,
.vendor-count { padding: 2px 6px; font-size: 10px; }

.form-group { margin-bottom: 12px; }
.form-group label { margin-bottom: 5px; font-size: 12px; }
.form-control,
.filter-input,
input,
select,
textarea { min-height: 36px; padding: 8px 10px; border-radius: 11px; font-size: 12px; }
textarea.form-control,
textarea { min-height: 86px; }
.table-container table,
.simple-table { font-size: 12px; }
.table-container th,
.table-container td,
.simple-table th,
.simple-table td { padding: 9px 8px; }

.site-footer { margin-top: 24px; padding: 24px 0 16px; border-radius: 20px 20px 0 0; }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 12px; }
.footer-col h3,
.footer-col h4 { margin-bottom: 7px; font-size: 14px; }
.footer-col li,
.footer-col p,
.footer-bottom { font-size: 12px; line-height: 1.7; }
.footer-col li { margin-bottom: 5px; }
.footer-bottom { padding-top: 12px; }
.mobile-bottom-nav { display: none; }

@media (min-width: 1100px) {
    .products-section .products-grid,
    .similar-products .products-grid,
    .vendor-profile + .contact-strip + .section-header + .products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    body { font-size: 12.5px; }
    .container { padding: 0 10px; }
    .site-main { padding-bottom: 70px; }
    .site-header { border-radius: 0 0 16px 16px; }
    .header-content { padding: 8px 0; }
    .logo h1 { font-size: 13px; max-width: 145px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .logo img { width: 28px; height: 28px; }
    .main-nav { display: none; }
    .mobile-menu-btn { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--surface-2); }
    .header-actions { gap: 7px; }
    .btn-header { min-height: 30px; padding: 6px 9px; font-size: 10.5px; border-radius: 10px; }
    .mobile-menu { width: min(260px, 82vw); padding: 14px; }
    .mobile-nav { gap: 6px; }
    .mobile-nav a { padding: 8px 10px; border-radius: 10px; font-size: 12px; }
    .header-notice { width: calc(100% - 20px); margin-top: 8px; padding: 6px 9px; font-size: 10.5px; }

    .hero-section,
    .intro-section,
    .categories-section,
    .products-section,
    .vendors-section,
    .features-section,
    .page-section,
    .products-page,
    .categories-page,
    .vendors-page,
    .product-detail,
    .contact-page,
    .auth-section { padding: 20px 0; }
    .hero-content h1,
    .page-header h1 { font-size: 20px; }
    .section-header { margin-bottom: 10px; }
    .section-header h2 { font-size: 16px; }
    .page-header { margin-bottom: 12px; }
    .page-header p,
    .hero-content p,
    .content-card p { font-size: 11.5px; line-height: 1.7; }
    .hero-actions,
    .hero-stats { gap: 7px; }
    .hero-stats div { padding: 7px 8px; border-radius: 11px; }
    .hero-stats strong { font-size: 14px; }
    .hero-stats span { font-size: 10px; }

    .content-card,
    .auth-container,
    .contact-form-container,
    .info-card,
    .product-main,
    .product-tabs,
    .filters-sidebar,
    .products-toolbar { padding: 12px; border-radius: 14px; }
    .intro-grid,
    .features-grid,
    .contact-layout { grid-template-columns: 1fr; gap: 10px; }
    .intro-card,
    .feature-item { padding: 11px; }
    .feature-icon,
    .info-icon,
    .stat-icon { width: 34px; height: 34px; border-radius: 10px; }
    .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .category-card { padding: 8px; border-radius: 13px; }
    .category-card img { width: 34px; height: 34px; padding: 5px; margin-bottom: 6px; }
    .category-card h3 { font-size: 10.5px; }
    .category-card-large { min-height: 122px; border-radius: 15px; }
    .category-card-large .category-content { min-height: 122px; padding: 10px; }
    .category-card-large .category-content h3 { font-size: 14px; }
    .category-card-large .category-content p { display: none; }

    .products-grid,
    .products-section .products-grid,
    .similar-products .products-grid,
    .vendor-profile + .contact-strip + .section-header + .products-grid,
    .products-page .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .product-card { border-radius: 13px; }
    .product-image { margin: 5px 5px 0; border-radius: 10px; }
    .product-info { padding: 6px; }
    .product-info h3 { min-height: 30px; font-size: 10.5px; line-height: 1.45; }
    .product-tags { gap: 4px; }
    .product-tags span,
    .vendor-count,
    .product-brand { font-size: 9.5px; }
    .price { font-size: 11px; }
    .btn-view { min-height: 26px; padding: 5px 6px; font-size: 9.5px; }

    .vendors-grid,
    .vendors-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .vendor-card { min-height: 98px; padding: 8px; border-radius: 14px; }
    .vendor-card img { width: 32px; height: 32px; padding: 4px; border-radius: 10px; }
    .vendor-card h3 { font-size: 10.5px; }
    .vendor-stats span { font-size: 9px; padding: 2px 5px; }

    .form-row,
    .form-grid.two-col { grid-template-columns: 1fr; gap: 8px; }
    .form-group { margin-bottom: 9px; }
    .form-group label { font-size: 10.5px; }
    .form-control,
    .filter-input,
    input,
    select,
    textarea { min-height: 32px; padding: 7px 8px; border-radius: 9px; font-size: 11px; }
    textarea.form-control,
    textarea { min-height: 72px; }
    .search-box form { min-height: 40px; }
    .search-input { padding: 8px 10px; font-size: 11px; }
    .search-btn,
    .btn-primary,
    .btn-submit,
    .btn-outline,
    .filter-btn,
    .btn-login { min-height: 31px; padding: 7px 9px; font-size: 10.5px; border-radius: 10px; }

    .site-footer { margin-top: 14px; padding: 16px 0 76px; border-radius: 16px 16px 0 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .footer-col h3,
    .footer-col h4 { font-size: 12px; margin-bottom: 5px; }
    .footer-col p,
    .footer-col li,
    .footer-bottom { font-size: 10.5px; line-height: 1.6; }
    .footer-col li { margin-bottom: 3px; }

    .mobile-bottom-nav {
        position: fixed;
        right: 10px;
        left: 10px;
        bottom: 10px;
        z-index: 2100;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 7px;
        border: 1px solid rgba(219, 232, 251, 0.9);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 18px 42px rgba(15, 65, 120, 0.18);
        backdrop-filter: blur(14px);
    }
    .mobile-bottom-nav a {
        display: grid;
        place-items: center;
        gap: 2px;
        min-height: 42px;
        border-radius: 13px;
        color: var(--muted);
        text-decoration: none;
        font-size: 9.5px;
        font-weight: 800;
    }
    .mobile-bottom-nav span { font-size: 15px; line-height: 1; color: var(--primary); }
    .mobile-bottom-nav a:hover { background: var(--surface-2); color: var(--primary-strong); }
}

/* Final mobile polish: compact cards, reliable icons, sliders and filter drawer */
.mobile-filter-toggle {
    display: none;
}

.mobile-header-search {
    display: none;
}

@media (max-width: 900px) {
    .hero-with-banner {
        padding: 14px 0 18px;
    }

    .hero-with-banner .home-banner-slider {
        min-height: 300px;
        border-radius: 18px;
    }

    .hero-with-banner .hero-content {
        padding: 18px 12px;
    }

    .hero-with-banner .hero-content h1 {
        font-size: 18px;
        line-height: 1.45;
    }

    .hero-with-banner .hero-content p {
        font-size: 10.5px;
        line-height: 1.7;
    }

    .hero-with-banner .search-box {
        width: 100%;
        margin-top: 12px;
    }

    .hero-with-banner .search-box form,
    .shop-hero-search {
        display: grid;
        gap: 6px;
        padding: 6px;
        border-radius: 13px;
    }

    .hero-actions,
    .hero-stats,
    .shop-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-top: 10px;
    }

    .hero-actions a,
    .shop-summary .stat-card,
    .hero-stats div {
        width: auto;
        min-width: 0;
    }

    .intro-grid,
    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .intro-card,
    .feature-item {
        padding: 8px 6px;
        text-align: center;
    }

    .intro-card h3,
    .feature-item h3 {
        font-size: 10.5px;
        margin-bottom: 3px;
    }

    .intro-card p,
    .feature-item p {
        display: none;
    }

    .categories-section .categories-grid,
    .vendors-section .vendors-grid,
    .products-section .products-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 37%;
        grid-template-columns: none;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        padding: 2px 1px 8px;
        scrollbar-width: none;
    }

    .categories-section .categories-grid::-webkit-scrollbar,
    .vendors-section .vendors-grid::-webkit-scrollbar,
    .products-section .products-grid::-webkit-scrollbar {
        display: none;
    }

    .categories-section .category-card,
    .vendors-section .vendor-card,
    .products-section .product-card {
        scroll-snap-align: start;
    }

    .products-page .container {
        padding-inline: 8px;
    }

    .shop-hero {
        gap: 8px;
        margin-bottom: 10px;
        padding: 12px;
        border-radius: 16px;
    }

    .shop-hero h1 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .shop-hero p,
    .products-toolbar p {
        font-size: 10.5px;
        line-height: 1.6;
    }

    .shop-hero-panel {
        padding: 10px;
        border-radius: 13px;
        gap: 5px;
    }

    .shop-hero-panel strong {
        font-size: 13px;
    }

    .shop-hero-panel span,
    .shop-hero-panel a {
        font-size: 10px;
    }

    .shop-summary {
        margin: 0 0 9px;
    }

    .shop-summary .stat-card {
        padding: 7px 5px;
        border-radius: 11px;
    }

    .shop-summary strong {
        font-size: 13px;
    }

    .shop-summary span {
        font-size: 9px;
    }

    .products-layout {
        display: block;
    }

    .mobile-filter-toggle {
        position: sticky;
        top: 58px;
        z-index: 1050;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-height: 34px;
        margin-bottom: 8px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        color: var(--primary-strong);
        box-shadow: var(--shadow);
        font: inherit;
        font-size: 11px;
        font-weight: 800;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        right: -88vw;
        z-index: 2300;
        width: min(300px, 84vw);
        height: 100vh;
        overflow-y: auto;
        padding: 14px;
        border-radius: 0 0 0 18px;
        transition: right 0.25s ease;
    }

    .filters-sidebar.active {
        right: 0;
    }

    .filters-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .filter-section {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .products-toolbar {
        display: grid;
        gap: 8px;
        margin-bottom: 8px;
        padding: 10px;
    }

    .products-toolbar .sort-options {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 7px;
        align-items: center;
    }

    .active-filters {
        gap: 5px;
        margin-bottom: 8px;
        padding: 8px;
        border-radius: 12px;
        font-size: 10px;
    }

    .products-page .products-grid,
    .similar-products .products-grid,
    .vendor-profile + .contact-strip + .section-header + .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

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

    .product-image {
        aspect-ratio: 1 / .68;
    }

    .product-info {
        padding: 6px;
    }

    .product-info h3 {
        min-height: 28px;
        font-size: 10px;
        line-height: 1.4;
    }

    .product-footer {
        align-items: center;
        gap: 4px;
    }

    .price {
        font-size: 10.5px;
    }

    .btn-view {
        min-height: 25px;
        font-size: 9px;
    }

    .vendors-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .vendor-card-large .vendor-header {
        padding: 16px;
    }

    .vendor-logo-large,
    .vendor-logo-placeholder {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .vendor-body,
    .category-content {
        padding: 10px;
    }

    .vendor-card-large h3 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .product-main {
        gap: 10px;
        padding: 10px;
        border-radius: 14px;
    }

    .product-gallery .main-image {
        aspect-ratio: 1 / .72;
        border-radius: 12px;
    }

    .thumbnail {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }

    .product-summary h1 {
        font-size: 16px;
        line-height: 1.45;
    }

    .price-summary,
    .content-box {
        padding: 10px;
        border-radius: 12px;
    }

    .tabs-header {
        overflow-x: auto;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 12px;
        font-size: 10.5px;
    }

    .vendor-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 9px;
        border-radius: 12px;
    }

    .vendor-info {
        gap: 8px;
    }

    .vendor-logo {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .current-price {
        font-size: 13px;
    }

    .btn-buy {
        width: 100%;
        padding: 7px 9px;
        border-radius: 10px;
        font-size: 10px;
    }

    .mobile-bottom-nav {
        right: 8px;
        left: 8px;
        bottom: 8px;
        gap: 3px;
        padding: 6px;
        border-radius: 16px;
    }

    .mobile-bottom-nav a {
        min-height: 40px;
        font-size: 8.8px;
    }

    .mobile-bottom-nav span,
    .mobile-bottom-nav svg {
        width: 18px;
        height: 18px;
        display: block;
        fill: currentColor;
    }
}

/* Mobile v2 refinements requested: smaller hero, header search, premium compact cards */
@media (max-width: 900px) {
    .site-header .container {
        display: grid;
        gap: 6px;
    }

    .mobile-header-search {
        display: grid;
        grid-template-columns: 1fr 34px;
        gap: 5px;
        padding-bottom: 7px;
    }

    .mobile-header-search input {
        min-height: 32px;
        padding: 6px 10px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: #fff;
        color: var(--text);
        font: inherit;
        font-size: 10.5px;
        box-shadow: 0 8px 18px rgba(22,119,255,.06);
    }

    .mobile-header-search button {
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 11px;
        background: linear-gradient(135deg, var(--primary), var(--primary-strong));
        color: #fff;
    }

    .hero-with-banner .home-banner-slider {
        min-height: clamp(210px, 58vw, 270px);
        border-radius: 18px;
        box-shadow: 0 16px 38px rgba(13, 71, 161, 0.18);
    }

    .hero-with-banner .home-banner-slide img {
        object-fit: cover;
    }

    .hero-with-banner .home-banner-slide::before {
        display: none;
    }

    .hero-section .hero-stats,
    .hero-with-banner .eyebrow,
    .hero-with-banner .search-box {
        display: none;
    }

    .hero-with-banner .hero-content {
        justify-content: flex-end;
        align-items: flex-start;
        text-align: right;
        padding: 16px 14px 18px;
    }

    .hero-with-banner .hero-content h1 {
        max-width: 86%;
        margin-bottom: 4px;
        font-size: clamp(14px, 4.5vw, 17px);
        line-height: 1.45;
    }

    .hero-with-banner .hero-content p {
        max-width: 88%;
        margin-bottom: 0;
        font-size: 9.5px;
        line-height: 1.6;
    }

    .hero-with-banner .hero-actions {
        display: flex;
        gap: 6px;
        width: auto;
        margin-top: 9px;
    }

    .hero-with-banner .hero-actions a {
        min-height: 26px;
        padding: 5px 8px;
        border-radius: 9px;
        font-size: 9px;
        box-shadow: 0 8px 18px rgba(3, 35, 91, .16);
    }

    .hero-with-banner .btn-outline {
        border-color: rgba(255,255,255,.58);
        background: rgba(255,255,255,.86);
    }

    .home-banner-dots {
        transform: scale(.76);
        transform-origin: left bottom;
    }

    .categories-page .categories-grid,
    .vendors-page .vendors-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .category-card,
    .category-card-large {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(22,119,255,.14);
        background:
            radial-gradient(circle at 12% 10%, rgba(56,189,248,.18), transparent 34%),
            linear-gradient(145deg, #fff 0%, #eff7ff 100%);
        box-shadow: 0 10px 24px rgba(15, 92, 185, .08);
    }

    .category-card::after,
    .category-card-large::after {
        content: "";
        position: absolute;
        inset-inline-end: -18px;
        inset-block-start: -18px;
        width: 46px;
        height: 46px;
        border-radius: 999px;
        background: rgba(22,119,255,.12);
    }

    .category-card {
        min-height: 76px;
        padding: 8px 6px;
    }

    .category-card img {
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 6px 14px rgba(22,119,255,.12);
    }

    .category-card h3 {
        position: relative;
        z-index: 1;
        font-size: 9.5px;
    }

    .category-card-large {
        min-height: 118px;
        border-radius: 14px;
    }

    .category-card-large .category-image {
        height: 62px;
    }

    .category-card-large .category-image::after {
        background: linear-gradient(180deg, transparent, rgba(4, 34, 82, .32));
    }

    .category-card-large .category-content {
        min-height: auto;
        padding: 8px;
    }

    .category-card-large .category-content h3 {
        font-size: 11px;
        line-height: 1.45;
        margin-bottom: 5px;
    }

    .category-card-large .category-meta {
        gap: 4px;
        padding-top: 6px;
        margin-top: 6px;
        font-size: 8.5px;
    }

    .category-card-large .category-meta span {
        padding: 3px 5px;
        border-radius: 999px;
    }

    .vendor-card,
    .vendor-card-large {
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(22,119,255,.13);
        background:
            radial-gradient(circle at 100% 0, rgba(22,119,255,.14), transparent 36%),
            linear-gradient(145deg, #fff 0%, #f4f9ff 100%);
        box-shadow: 0 10px 24px rgba(15, 92, 185, .075);
    }

    .vendor-card {
        min-height: 82px;
        padding: 7px;
    }

    .vendor-card img {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
        border-radius: 9px;
        background: #fff;
    }

    .vendor-card h3 {
        font-size: 9.5px;
        line-height: 1.35;
    }

    .vendor-card-large {
        border-radius: 14px;
    }

    .vendor-card-large .vendor-header {
        padding: 10px;
        background:
            radial-gradient(circle at 50% 0, rgba(255,255,255,.28), transparent 36%),
            linear-gradient(135deg, #1677ff, #0757c7);
    }

    .vendor-logo-large,
    .vendor-logo-placeholder {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        border-width: 2px;
    }

    .vendor-card-large .vendor-body {
        padding: 8px;
    }

    .vendor-card-large h3 {
        font-size: 10.5px;
        line-height: 1.45;
        margin-bottom: 6px;
    }

    .vendor-card-large .stat-item,
    .view-shop {
        padding: 4px 7px;
        border-radius: 999px;
        font-size: 8.8px;
    }

    .vendor-card-large .vendor-footer {
        margin-top: 7px;
        padding-top: 7px;
    }

    .products-page .products-grid,
    .products-section .products-grid,
    .similar-products .products-grid,
    .vendor-profile + .contact-strip + .section-header + .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .products-section .products-grid {
        grid-auto-columns: 34%;
    }

    .product-card {
        border-radius: 11px;
        box-shadow: 0 8px 20px rgba(20,82,150,.07);
    }

    .product-image {
        margin: 4px 4px 0;
        border-radius: 9px;
        aspect-ratio: 1 / .62;
    }

    .product-info {
        padding: 5px;
    }

    .product-info h3 {
        min-height: 25px;
        margin-bottom: 2px;
        font-size: 9.2px;
        line-height: 1.35;
    }

    .product-brand,
    .vendor-count,
    .price-label,
    .product-tags span {
        font-size: 8.4px;
    }

    .product-tags {
        gap: 3px;
        margin-bottom: 4px;
    }

    .product-tags span,
    .vendor-count {
        padding: 2px 4px;
    }

    .product-footer {
        padding-top: 4px;
        margin-top: 4px;
    }

    .price {
        font-size: 9.7px;
    }

    .btn-view {
        min-height: 22px;
        margin-top: 5px;
        padding: 4px 5px;
        border-radius: 8px;
        font-size: 8.4px;
    }

    .features-section {
        padding-top: 12px;
    }

    .features-section .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .features-section .feature-item {
        position: relative;
        display: grid;
        grid-template-columns: 30px 1fr;
        align-items: center;
        gap: 7px;
        min-height: 62px;
        padding: 8px;
        text-align: right;
        border: 1px solid rgba(22,119,255,.12);
        background:
            radial-gradient(circle at 0 0, rgba(56,189,248,.16), transparent 36%),
            linear-gradient(135deg, #fff, #f3f9ff);
        box-shadow: 0 10px 22px rgba(20,82,150,.07);
    }

    .features-section .feature-icon {
        width: 30px;
        height: 30px;
        margin: 0;
        border-radius: 10px;
    }

    .features-section .feature-icon svg {
        width: 17px;
        height: 17px;
    }

    .features-section .feature-item h3 {
        margin: 0;
        font-size: 10px;
    }

    .features-section .feature-item p {
        display: block;
        margin: 1px 0 0;
        color: var(--muted);
        font-size: 8.7px;
        line-height: 1.45;
    }

    .product-detail {
        padding-top: 12px;
    }

    .breadcrumb {
        margin-bottom: 7px;
        font-size: 9px;
    }

    .product-main {
        gap: 7px;
        padding: 7px;
        border-radius: 13px;
        background:
            radial-gradient(circle at 100% 0, rgba(22,119,255,.12), transparent 32%),
            linear-gradient(135deg, #fff, #f6fbff);
    }

    .product-gallery .main-image {
        aspect-ratio: 1 / .58;
        border-radius: 10px;
    }

    .thumbnail-images {
        gap: 5px;
        margin-top: 6px;
    }

    .thumbnail {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .product-summary h1 {
        margin-bottom: 5px;
        font-size: 13px;
        line-height: 1.45;
    }

    .product-brand,
    .product-category,
    .product-short-desc {
        font-size: 9.6px;
        line-height: 1.6;
    }

    .price-summary {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 6px;
        padding: 8px;
        border-radius: 11px;
    }

    .price-summary .label,
    .price-summary .vendor-count {
        font-size: 8.5px;
    }

    .price-summary .price {
        font-size: 11px;
    }

    .product-actions {
        gap: 5px;
        margin-top: 8px;
    }

    .product-actions .btn-primary,
    .btn-wishlist {
        min-height: 25px;
        padding: 5px 7px;
        border-radius: 8px;
        font-size: 8.8px;
    }

    .product-summary .content-card {
        margin-top: 7px !important;
        padding: 8px;
    }

    .product-summary .content-card h3 {
        font-size: 10px;
    }

    .product-summary .content-card p,
    .content-box {
        font-size: 9.5px;
    }

    .product-tabs {
        margin-top: 8px;
        padding: 7px;
        border-radius: 12px;
    }

    .tab-btn {
        padding: 7px 9px;
        font-size: 9px;
    }

    .content-box {
        padding: 7px;
    }

    .vendors-table {
        gap: 6px;
    }

    .vendor-row {
        gap: 5px;
        padding: 7px;
        border-radius: 10px;
    }

    .vendor-info h4 {
        font-size: 10px;
    }

    .vendor-logo {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .current-price {
        font-size: 11px;
    }

    .in-stock,
    .pre-order,
    .out-stock,
    .btn-buy {
        padding: 4px 6px;
        border-radius: 8px;
        font-size: 8.4px;
    }
}

@media (max-width: 390px) {
    .hero-with-banner .home-banner-slider {
        min-height: 205px;
    }

    .categories-section .categories-grid,
    .vendors-section .vendors-grid,
    .products-section .products-grid {
        grid-auto-columns: 38%;
    }

    .products-page .products-grid,
    .categories-page .categories-grid,
    .vendors-page .vendors-grid-large,
    .similar-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .categories-section .categories-grid,
    .vendors-section .vendors-grid,
    .products-section .products-grid {
        grid-auto-columns: 38%;
    }

    .products-page .products-grid,
    .similar-products .products-grid,
    .vendors-grid-large {
        gap: 6px;
    }

    .mobile-bottom-nav a {
        font-size: 8px;
    }
}

/* Unified premium cards across desktop and mobile; banner styles intentionally untouched. */
.categories-grid,
.vendors-grid,
.vendors-grid-large {
    align-items: stretch;
}

.categories-section .category-card,
.category-card-large,
.vendors-section .vendor-card,
.vendor-card-large {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(22, 119, 255, 0.14);
    background:
        radial-gradient(circle at 12% 0, rgba(56, 189, 248, 0.16), transparent 32%),
        linear-gradient(145deg, #ffffff 0%, #f3f9ff 100%);
    box-shadow: 0 12px 28px rgba(20, 82, 150, 0.075);
}

.categories-section .category-card::before,
.category-card-large::before,
.vendors-section .vendor-card::before,
.vendor-card-large::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.08), transparent 44%),
        radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.14), transparent 28%);
    opacity: 1;
}

.categories-section .category-card:hover,
.category-card-large:hover,
.vendors-section .vendor-card:hover,
.vendor-card-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(20, 82, 150, 0.13);
    border-color: rgba(22, 119, 255, 0.26);
}

.categories-section .category-card {
    min-height: 112px;
    padding: 16px 12px;
    text-align: center;
}

.categories-section .category-card img,
.vendors-section .vendor-card img {
    width: 48px;
    height: 48px;
    padding: 3px;
    margin: 0 auto 9px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(22, 119, 255, 0.12);
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.10);
}

.categories-section .category-card h3,
.vendors-section .vendor-card h3 {
    margin: 0;
    color: #0f3f84;
    font-size: 13px;
    line-height: 1.45;
}

.vendors-section .vendor-card {
    min-height: 128px;
    padding: 16px 12px;
    text-align: center;
}

.vendors-section .vendor-stats {
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.vendors-section .vendor-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0757c7;
    font-size: 10.5px;
    font-weight: 800;
}

.categories-page .categories-grid,
.vendors-page .vendors-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.category-card-large {
    min-height: 178px;
    border-radius: 20px;
}

.category-card-large .category-image {
    position: relative;
    inset: auto;
    height: 92px;
    min-height: 92px;
}

.category-card-large .category-image::after {
    background: linear-gradient(180deg, rgba(7, 31, 72, 0.02), rgba(7, 31, 72, 0.28));
}

.category-card-large .category-content {
    min-height: 86px;
    padding: 13px;
    color: var(--text);
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.11), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.92), #fff);
}

.category-card-large .category-content h3 {
    margin: 0 0 6px;
    color: #0f3f84;
    font-size: 15px;
    line-height: 1.45;
}

.category-card-large .category-content p {
    display: none;
}

.category-card-large .category-meta {
    gap: 6px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(22, 119, 255, 0.12);
    color: var(--muted);
    font-size: 10.5px;
}

.category-card-large .category-meta span {
    padding: 4px 7px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0757c7;
    font-weight: 800;
}

.vendor-card-large {
    min-height: 190px;
    border-radius: 20px;
}

.vendor-card-large .vendor-header {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 16px;
    background:
        radial-gradient(circle at 50% 0, rgba(255,255,255,0.28), transparent 36%),
        linear-gradient(135deg, #1677ff 0%, #0757c7 100%);
}

.vendor-card-large .vendor-logo-large,
.vendor-card-large .vendor-logo-placeholder {
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 16px;
    border: 3px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 10px 24px rgba(3, 35, 91, 0.18);
}

.vendor-card-large .vendor-body {
    padding: 13px;
    text-align: center;
}

.vendor-card-large h3 {
    margin: 0 0 9px;
    color: #0f3f84;
    font-size: 15px;
    line-height: 1.45;
}

.vendor-card-large .vendor-stats-row {
    justify-content: center;
    gap: 5px;
}

.vendor-card-large .stat-item {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0757c7;
    font-size: 10.5px;
    font-weight: 800;
}

.vendor-card-large .vendor-footer {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(22, 119, 255, 0.12);
}

.vendor-card-large .view-shop {
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1677ff, #0757c7);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
}

@media (min-width: 901px) {
    .categories-section .categories-grid,
    .vendors-section .vendors-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 14px;
    }

    .vendors-page .page-header,
    .categories-page .page-header {
        margin-bottom: 16px;
    }
}

@media (max-width: 900px) {
    .categories-page .categories-grid,
    .vendors-page .vendors-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .categories-section .category-card {
        min-height: 76px;
        padding: 8px 6px;
    }

    .categories-section .category-card img,
    .vendors-section .vendor-card img {
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
        border-radius: 10px;
    }

    .categories-section .category-card h3,
    .vendors-section .vendor-card h3 {
        font-size: 9.5px;
    }

    .vendors-section .vendor-card {
        min-height: 82px;
        padding: 7px;
    }

    .vendors-section .vendor-stats span {
        padding: 2px 5px;
        font-size: 8.4px;
    }

    .category-card-large {
        min-height: 118px;
        border-radius: 14px;
    }

    .category-card-large .category-image {
        position: relative;
        inset: auto;
        height: 58px;
        min-height: 58px;
    }

    .category-card-large .category-content {
        min-height: 60px;
        padding: 8px;
    }

    .category-card-large .category-content h3,
    .vendor-card-large h3 {
        font-size: 10.5px;
        margin-bottom: 5px;
    }

    .category-card-large .category-meta,
    .vendor-card-large .stat-item,
    .vendor-card-large .view-shop {
        font-size: 8.4px;
    }

    .vendor-card-large {
        min-height: 126px;
        border-radius: 14px;
    }

    .vendor-card-large .vendor-header {
        min-height: 58px;
        padding: 9px;
    }

    .vendor-card-large .vendor-logo-large,
    .vendor-card-large .vendor-logo-placeholder {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        border-width: 2px;
    }

    .vendor-card-large .vendor-body {
        padding: 8px;
    }

    .vendor-card-large .vendor-footer {
        margin-top: 6px;
        padding-top: 6px;
    }
}

/* Vendor detail mobile: compact premium storefront profile */
@media (max-width: 900px) {
    .page-section .vendor-public-hero {
        position: relative;
        min-height: 118px;
        height: 118px;
        margin: 0 0 8px;
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
        border: 1px solid rgba(22, 119, 255, 0.16);
        background:
            radial-gradient(circle at 18% 12%, rgba(255,255,255,.22), transparent 30%),
            linear-gradient(135deg, #1677ff 0%, #0757c7 100%);
        box-shadow: 0 14px 34px rgba(22, 119, 255, 0.16);
    }

    .page-section .vendor-public-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5, 34, 78, 0.02), rgba(5, 34, 78, 0.30));
        pointer-events: none;
    }

    .page-section .vendor-public-banner {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page-section .vendor-profile-premium {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 8px;
        align-items: center;
        margin: -22px 8px 8px;
        padding: 9px;
        border-radius: 15px;
        border: 1px solid rgba(22, 119, 255, 0.16);
        background:
            radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.14), transparent 40%),
            rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 32px rgba(20, 82, 150, 0.11);
        backdrop-filter: blur(12px);
        text-align: right;
    }

    .page-section .vendor-profile-premium .vendor-profile-logo {
        width: 48px;
        height: 48px;
        margin: 0;
        border: 3px solid #fff;
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(22, 119, 255, 0.14);
        font-size: 14px;
    }

    .page-section .vendor-profile-info {
        min-width: 0;
    }

    .page-section .vendor-profile-info .eyebrow {
        margin-bottom: 3px;
        padding: 3px 6px;
        border-radius: 999px;
        font-size: 8px;
    }

    .page-section .vendor-profile-info h1 {
        margin: 0 0 3px;
        font-size: 13px;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-section .vendor-profile-info p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 0 6px;
        color: var(--muted);
        font-size: 9px;
        line-height: 1.55;
    }

    .page-section .vendor-profile-premium .vendor-stats-row {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }

    .page-section .vendor-profile-premium .stat-item {
        padding: 3px 6px;
        border-radius: 999px;
        background: #eaf4ff;
        color: #0757c7;
        font-size: 8px;
        font-weight: 800;
    }

    .page-section .contact-strip {
        display: flex;
        gap: 5px;
        margin: 0 0 10px;
        padding: 7px;
        border-radius: 13px;
        border: 1px solid rgba(22, 119, 255, 0.14);
        background:
            radial-gradient(circle at 100% 0, rgba(22, 119, 255, 0.10), transparent 34%),
            #fff;
        box-shadow: 0 10px 24px rgba(20, 82, 150, 0.07);
    }

    .page-section .contact-strip span,
    .page-section .contact-strip a {
        max-width: 100%;
        padding: 4px 6px;
        border-radius: 999px;
        background: #eef6ff;
        color: #0757c7;
        font-size: 8.2px;
        line-height: 1.4;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-section .vendor-profile + .contact-strip + .section-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 8px;
    }

    .page-section .vendor-profile + .contact-strip + .section-header h2 {
        font-size: 13px;
    }

    .page-section .vendor-profile + .contact-strip + .section-header .view-all {
        font-size: 9px;
    }

    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .product-card {
        border-radius: 11px;
    }

    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .product-image {
        aspect-ratio: 1 / .58;
    }

    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .product-info {
        padding: 5px;
    }

    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .product-info h3 {
        min-height: 24px;
        font-size: 9px;
    }

    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .product-brand,
    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .in-stock,
    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .pre-order,
    .page-section .vendor-profile + .contact-strip + .section-header + .products-grid .out-stock {
        font-size: 8px;
    }
}

.logo a {
    min-height: 64px;
}

.logo img {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.best-price {
    color: inherit;
    text-decoration: none;
}

.best-price:hover .price {
    text-decoration: underline;
}

.categories-section .category-card img,
.category-card img {
    width: 88px;
    height: 88px;
    padding: 0;
    object-fit: cover;
}

@media (max-width: 900px) {
    .logo a {
        min-height: 52px;
    }

    .logo img {
        width: 52px;
        height: 52px;
    }

    .categories-section .category-card img,
    .category-card img {
        width: 58px;
        height: 58px;
        padding: 0;
    }

    .product-card .vendor-count {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        padding: 1px 5px;
        border-radius: 999px;
        font-size: 8.5px;
        line-height: 1.4;
        white-space: nowrap;
    }

    .price-summary .vendor-count {
        padding: 1px 5px;
        font-size: 8px;
        line-height: 1.5;
        white-space: nowrap;
    }
}

@media (max-width: 390px) {
    .logo img {
        width: 46px;
        height: 46px;
    }

    .categories-section .category-card img,
    .category-card img {
        width: 52px;
        height: 52px;
    }

    .product-card .vendor-count {
        font-size: 8px;
        padding: 1px 4px;
    }
}

.hero-with-banner .hero-content {
    position: static;
    max-width: none;
    padding: 18px 0 0;
    color: var(--text);
    text-align: center;
    text-shadow: none;
}

.hero-with-banner .hero-content p {
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
}

.hero-with-banner .eyebrow {
    background: #eaf4ff;
}

.hero-with-banner .search-box form,
.hero-with-banner .hero-stats div {
    background: #fff;
    box-shadow: var(--shadow);
}

@media (max-width: 900px) {
    .hero-with-banner .hero-content {
        align-items: center;
        padding: 12px 0 0;
        text-align: center;
    }

    .hero-with-banner .hero-content h1,
    .hero-with-banner .hero-content p {
        max-width: 100%;
    }
}

/* Final home polish: banner overlay, mobile product carousel, and category ratio */
.hero-with-banner .container {
    position: relative;
}

.hero-with-banner .hero-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 980px;
    padding: 34px clamp(18px, 4vw, 64px);
    color: #fff;
    text-align: center;
    text-shadow: 0 3px 18px rgba(8, 35, 76, 0.34);
}

.hero-with-banner .hero-content p {
    color: rgba(255, 255, 255, 0.92);
}

.hero-with-banner .eyebrow {
    background: rgba(255,255,255,0.86);
}

.hero-with-banner .search-box form,
.hero-with-banner .hero-stats div {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 50px rgba(3, 35, 91, 0.20);
}

.categories-section .category-card {
    justify-content: stretch;
    gap: 0;
    min-height: 170px;
    padding: 0;
}

.categories-section .category-card img {
    width: 100%;
    height: 66.666%;
    flex: 0 0 66.666%;
    margin: 0;
    border-radius: 22px 22px 12px 12px;
    object-fit: cover;
}

.categories-section .category-card h3 {
    display: grid;
    place-items: center;
    min-height: 33.333%;
    padding: 8px 10px;
}

@media (max-width: 900px) {
    .hero-with-banner .hero-content {
        position: absolute;
        inset: 0;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 16px 14px 18px;
        text-align: right;
    }

    .hero-with-banner .hero-content h1 {
        max-width: 86%;
        margin-bottom: 4px;
        color: #fff;
        font-size: clamp(14px, 4.5vw, 17px);
    }

    .hero-with-banner .hero-content p {
        max-width: 88%;
        color: rgba(255,255,255,.92);
        font-size: 9.5px;
    }

    .hero-with-banner .hero-actions {
        width: auto;
    }

    .products-section .products-grid {
        grid-auto-columns: 40%;
        gap: 8px;
        padding: 4px 2px 12px;
        scroll-padding-inline: 2px;
    }

    .products-section .product-card {
        display: flex;
        flex-direction: column;
        min-height: 258px;
        border-radius: 18px;
        background:
            radial-gradient(circle at 12% 0, rgba(56,189,248,.16), transparent 34%),
            linear-gradient(180deg, #fff 0%, #f6fbff 100%);
        box-shadow: 0 14px 34px rgba(15, 92, 185, .12);
    }

    .products-section .product-image {
        aspect-ratio: 1 / .74;
        margin: 7px 7px 0;
        border-radius: 14px;
    }

    .products-section .product-info {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 8px;
    }

    .products-section .product-info h3 {
        min-height: 38px;
        margin-bottom: 4px;
        font-size: 10.8px;
        line-height: 1.55;
    }

    .products-section .product-brand {
        min-height: 18px;
        margin: 0;
        font-size: 8.8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .products-section .product-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: auto;
        padding-top: 6px;
    }

    .products-section .product-price {
        display: flex;
        align-items: baseline;
        gap: 3px;
        min-width: 0;
    }

    .products-section .price-label {
        font-size: 8.2px;
    }

    .products-section .price {
        font-size: 10.8px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .products-section .vendor-count {
        justify-self: start;
        padding: 2px 6px;
        font-size: 8.2px;
        background: linear-gradient(135deg, #eaf4ff, #dbeafe);
    }

    .products-section .btn-view {
        min-height: 30px;
        margin-top: 7px;
        padding: 6px 8px;
        border-radius: 11px;
        font-size: 9px;
        box-shadow: 0 10px 20px rgba(22,119,255,.22);
    }

    .categories-section .categories-grid {
        grid-auto-columns: minmax(128px, 40%);
    }

    .categories-section .category-card {
        min-height: 150px;
        border-radius: 18px;
    }

    .categories-section .category-card img {
        height: 67%;
        flex-basis: 67%;
        border-radius: 18px 18px 10px 10px;
    }

    .categories-section .category-card h3 {
        min-height: 33%;
        padding: 7px 8px;
        font-size: 10.5px;
    }
}

/* Home mobile scoped fixes */
@media (max-width: 900px) {
    .home-categories-section {
        padding-bottom: 12px;
    }

    .home-categories-section .categories-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 31%;
        grid-template-columns: none;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 1px 8px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home-categories-section .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .home-categories-section .category-card {
        min-height: 104px;
        padding: 0;
        border-radius: 15px;
        scroll-snap-align: start;
    }

    .home-categories-section .category-card img {
        width: 100%;
        height: 68px;
        flex: 0 0 68px;
        margin: 0;
        border-radius: 15px 15px 9px 9px;
        object-fit: cover;
    }

    .home-categories-section .category-card h3 {
        min-height: 36px;
        padding: 5px 6px;
        font-size: 9.5px;
        line-height: 1.35;
    }

    .home-products-section {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .home-products-section .products-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 8px) / 2);
        grid-template-columns: none;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 1px 10px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home-products-section .products-grid::-webkit-scrollbar {
        display: none;
    }

    .home-products-section .product-card {
        min-height: 0;
        border-radius: 13px;
        scroll-snap-align: start;
        box-shadow: 0 10px 24px rgba(15, 92, 185, .09);
    }

    .home-products-section .product-image {
        aspect-ratio: 1 / .72;
        margin: 5px 5px 0;
        border-radius: 10px;
    }

    .home-products-section .product-info {
        padding: 6px;
    }

    .home-products-section .product-info h3 {
        min-height: 30px;
        margin-bottom: 3px;
        font-size: 10.5px;
        line-height: 1.45;
    }

    .home-products-section .product-brand {
        min-height: auto;
        font-size: 9.5px;
    }

    .home-products-section .product-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        padding-top: 5px;
        margin-top: 5px;
    }

    .home-products-section .price-label,
    .home-products-section .vendor-count {
        font-size: 8.8px;
    }

    .home-products-section .price {
        font-size: 10.8px;
    }

    .home-products-section .vendor-count {
        padding: 2px 5px;
        white-space: nowrap;
    }

    .home-products-section .btn-view {
        min-height: 26px;
        margin-top: 6px;
        padding: 5px 6px;
        border-radius: 9px;
        font-size: 9.5px;
    }

    .home-features-section {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .home-features-section .features-grid {
        margin-bottom: 0;
    }

    .site-footer {
        margin-top: 8px;
    }
}

/* Slider controls, stable header logo, and mobile shop filter fix */
.slider-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #0757c7;
    box-shadow: 0 14px 34px rgba(3,35,91,.16);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    transition: .2s ease;
}

.slider-arrow:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 18px 42px rgba(3,35,91,.22);
}

.banner-arrows {
    position: absolute;
    z-index: 6;
    right: 28px;
    bottom: 24px;
}

.home-categories-section .container,
.home-products-section .container {
    position: relative;
}

.home-categories-section .section-header,
.home-products-section .section-header {
    padding-left: 104px;
}

.section-arrows {
    position: absolute;
    top: 3px;
    left: 14px;
    z-index: 3;
}

.section-arrows .slider-arrow {
    width: 36px;
    height: 36px;
    border-color: rgba(22,119,255,.16);
    background: #fff;
    color: var(--primary-strong);
    box-shadow: 0 10px 26px rgba(20,82,150,.11);
    font-size: 24px;
}

.header-content {
    overflow: visible;
}

.logo a {
    position: relative;
    width: 74px;
    height: 42px;
    min-height: 0;
    overflow: visible;
}

.logo img {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 78px;
    height: 78px;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

@media (max-width: 900px) {
    .logo a {
        width: 58px;
        height: 34px;
        min-height: 0;
    }

    .logo img {
        width: 68px;
        height: 68px;
    }

    .banner-arrows {
        right: 12px;
        top: 12px;
        bottom: auto;
        gap: 6px;
    }

    .banner-arrows .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .section-arrows {
        top: 2px;
        left: 10px;
        gap: 5px;
    }

    .section-arrows .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 19px;
    }

    .home-categories-section .section-header,
    .home-products-section .section-header {
        padding-left: 72px;
    }

    .products-page .mobile-filter-toggle {
        position: static;
        z-index: 1;
        width: auto;
        min-height: 32px;
        margin: 0 0 8px;
        padding: 6px 12px;
        border: 1px solid rgba(22,119,255,.18);
        border-radius: 999px;
        background: linear-gradient(135deg, #fff, #eef6ff);
        color: var(--primary-strong);
        box-shadow: 0 8px 20px rgba(20,82,150,.08);
        font-size: 10px;
    }

    .products-page .mobile-filter-toggle svg {
        width: 15px;
        height: 15px;
    }

    .products-page .products-layout {
        display: block;
        margin-top: 0;
    }

    .products-page .products-toolbar {
        position: static;
        z-index: auto;
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 8px;
        border-radius: 12px;
    }

    .products-page .products-toolbar .badge {
        width: fit-content;
        font-size: 9px;
    }

    .products-page .products-toolbar .sort-options {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .products-page .products-toolbar .sort-options select {
        width: 100%;
        min-height: 32px;
        font-size: 10px;
    }
}

.footer-trust-seal a {
    display: inline-grid;
    place-items: center;
    max-width: 120px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(20,82,150,.08);
}

.footer-trust-seal img {
    display: block;
    max-width: 100px;
    height: auto;
    cursor: pointer;
}

/* Blog and article pages */
.blog-hero,
.article-detail-hero {
    padding: 48px 0 24px;
}

.blog-hero-card,
.article-detail-shell,
.featured-article,
.article-body-card,
.article-side-card,
.article-card,
.empty-blog {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.blog-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 52px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 15% 20%, rgba(22,119,255,.2), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(14,165,233,.18), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #edf6ff 100%);
}

.blog-hero-card h1 {
    max-width: 780px;
    font-size: clamp(27px, 5vw, 52px);
    line-height: 1.45;
    margin: 10px 0 12px;
}

.blog-hero-card p {
    max-width: 690px;
    color: var(--muted);
    font-size: 16px;
}

.blog-search {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(22,119,255,.14);
    box-shadow: 0 16px 38px rgba(20,82,150,.08);
}

.blog-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font: inherit;
    outline: none;
}

.blog-search button,
.read-more {
    border: 0;
    border-radius: 15px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    cursor: pointer;
}

.blog-list-section,
.related-articles-section {
    padding: 20px 0 70px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 0;
    overflow: hidden;
    margin-bottom: 26px;
    border-radius: 30px;
    background: #fff;
}

.featured-article-image {
    min-height: 320px;
    background: linear-gradient(135deg, #dcecff, #f8fbff);
}

.featured-article-image img,
.article-image img,
.article-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: clamp(22px, 4vw, 42px);
}

.featured-article-content span,
.article-count,
.article-meta,
.back-to-blog,
.article-detail-meta,
.article-side-card span {
    color: var(--muted);
    font-size: 13px;
}

.featured-article-content h2 {
    font-size: clamp(23px, 3.4vw, 38px);
    line-height: 1.55;
}

.featured-article-content p,
.article-card-body p,
.article-detail-copy p {
    color: var(--muted);
}

.compact-header {
    margin-bottom: 18px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    transition: .25s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 20% 20%, rgba(22,119,255,.18), transparent 30%),
        linear-gradient(135deg, #edf6ff, #fff);
    color: var(--primary-strong);
    font-weight: 800;
}

.article-card-body {
    padding: 18px;
}

.article-meta,
.article-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.article-card h3 {
    min-height: 58px;
    font-size: 17px;
    line-height: 1.7;
}

.article-card-body p {
    min-height: 66px;
    margin: 8px 0 14px;
    font-size: 14px;
}

.read-more {
    display: inline-flex;
    padding: 9px 14px;
    font-size: 13px;
}

.empty-blog {
    grid-column: 1 / -1;
    padding: 38px;
    text-align: center;
    border-radius: 24px;
    background: #fff;
}

.blog-pagination {
    margin-top: 24px;
}

.article-detail-shell {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 24px;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 0 0, rgba(22,119,255,.14), transparent 30%),
        linear-gradient(135deg, #fff, #f0f7ff);
}

.article-detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.article-detail-copy h1 {
    font-size: clamp(27px, 4.5vw, 48px);
    line-height: 1.5;
}

.article-detail-image {
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: 350px;
    border-radius: 26px;
    background: linear-gradient(135deg, #dcebff, #fff);
    color: var(--primary-strong);
    font-weight: 800;
}

.article-body-section {
    padding: 28px 0 70px;
}

.article-body-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.article-side-card {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
}

.article-side-card a {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-weight: 700;
}

.article-body-card {
    padding: clamp(22px, 4vw, 46px);
    border-radius: 28px;
    background: #fff;
    color: #20364f;
    font-size: 17px;
    line-height: 2.35;
    white-space: normal;
}

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

@media (max-width: 900px) {
    .blog-hero,
    .article-detail-hero {
        padding: 18px 0 12px;
    }

    .blog-hero-card,
    .article-detail-shell {
        border-radius: 22px;
    }

    .blog-search {
        gap: 6px;
        padding: 6px;
        border-radius: 15px;
    }

    .blog-search input {
        padding: 8px;
        font-size: 11px;
    }

    .blog-search button {
        padding: 8px 11px;
        border-radius: 11px;
        font-size: 11px;
    }

    .featured-article,
    .article-detail-shell,
    .article-body-layout {
        grid-template-columns: 1fr;
    }

    .featured-article-image,
    .article-detail-image {
        min-height: 210px;
    }

    .articles-grid,
    .compact-articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .article-card {
        border-radius: 16px;
    }

    .article-card-body {
        padding: 11px;
    }

    .article-card h3 {
        min-height: 48px;
        font-size: 12px;
    }

    .article-card-body p,
    .article-meta {
        font-size: 10px;
    }

    .article-card-body p {
        min-height: 48px;
        margin: 5px 0 9px;
    }

    .read-more {
        padding: 7px 10px;
        border-radius: 10px;
        font-size: 10px;
    }

    .article-side-card {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
        border-radius: 16px;
        font-size: 11px;
    }

    .article-side-card a {
        grid-column: 1 / -1;
        min-height: 30px;
        padding: 7px 10px;
        border-radius: 10px;
    }

    .article-body-card {
        padding: 18px;
        border-radius: 18px;
        font-size: 13px;
        line-height: 2.1;
    }
}

@media (max-width: 480px) {
    .blog-hero-card h1,
    .article-detail-copy h1 {
        font-size: 22px;
    }

    .blog-hero-card p,
    .article-detail-copy p,
    .featured-article-content p {
        font-size: 12px;
    }

    .featured-article-content {
        padding: 16px;
    }

    .featured-article-content h2 {
        font-size: 18px;
    }

    .articles-grid,
    .compact-articles {
        gap: 8px;
    }
}

/* Requested readability tweaks */
.logo img {
    width: 88px;
    height: 88px;
}

.hero-with-banner .search-box {
    width: min(860px, 90%);
    max-width: 860px;
}

@media (min-width: 901px) {
    .hero-with-banner .search-box form {
        min-height: 58px;
    }
}

@media (max-width: 900px) {
    .logo img {
        width: 74px;
        height: 74px;
    }

    .search-btn,
    .btn-primary,
    .btn-submit,
    .btn-outline,
    .filter-btn,
    .btn-login,
    .btn-header,
    .btn-view,
    .btn-buy,
    .mobile-filter-toggle {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 12.5px;
        line-height: 1.45;
    }
}

/* Homepage cleanup: mobile banner image-only and full image cards */
.product-image,
.categories-section .category-card img,
.category-card-large .category-image,
.vendor-profile + .contact-strip + .section-header + .products-grid .product-image {
    background: linear-gradient(145deg, #f7fbff, #ffffff);
}

.product-image img,
.categories-section .category-card img,
.category-card-large .category-image img,
.vendor-profile + .contact-strip + .section-header + .products-grid .product-image img {
    object-fit: contain;
}

.product-image img,
.category-card img,
.category-card-large .category-image img {
    padding: 8px;
}

.categories-section .category-card {
    min-height: 190px;
}

.categories-section .category-card img {
    height: 132px;
    flex: 0 0 132px;
    border-radius: 18px 18px 10px 10px;
}

@media (max-width: 900px) {
    .hero-with-banner .hero-content,
    .hero-with-banner .home-banner-dots,
    .hero-with-banner .banner-arrows {
        display: none;
    }

    .hero-with-banner .home-banner-slider {
        min-height: 230px;
    }

    .home-products-section .product-image,
    .products-section .product-image,
    .product-image {
        aspect-ratio: 1 / 0.9;
    }

    .home-categories-section .category-card,
    .categories-section .category-card {
        min-height: 132px;
    }

    .home-categories-section .category-card img,
    .categories-section .category-card img {
        height: 92px;
        flex: 0 0 92px;
        padding: 6px;
        object-fit: contain;
    }
}

/* Final premium card and mobile banner normalization */
.home-banner-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.home-banner-dots button.active {
    width: 11px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.product-card,
.categories-section .category-card,
.category-card-large,
.vendors-section .vendor-card,
.vendor-card-large {
    border: 1px solid rgba(22, 119, 255, 0.16);
    background:
        radial-gradient(circle at 12% 0, rgba(56, 189, 248, 0.18), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
    box-shadow: 0 16px 38px rgba(17, 82, 154, 0.10);
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
}

.product-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 0.82;
    margin: 10px 10px 0;
    overflow: hidden;
    border: 1px solid rgba(22, 119, 255, 0.10);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0, rgba(22, 119, 255, 0.10), transparent 42%),
        #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-info h3 {
    color: #0f3f84;
}

.btn-view {
    margin-top: auto;
}

.categories-section .categories-grid,
.categories-page .categories-grid {
    align-items: stretch;
}

.categories-section .category-card,
.category-card-large {
    display: flex;
    flex-direction: column;
    min-height: 204px;
    padding: 10px;
    border-radius: 22px;
    text-align: center;
}

.categories-section .category-card img,
.category-card-large .category-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 132px;
    min-height: 132px;
    flex: 0 0 132px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(22, 119, 255, 0.12);
    border-radius: 18px;
    background: #fff;
}

.categories-section .category-card img,
.category-card-large .category-image img {
    padding: 10px;
    object-fit: contain;
}

.categories-section .category-card h3,
.category-card-large .category-content h3 {
    display: grid;
    place-items: center;
    flex: 1;
    margin: 0;
    padding: 10px 6px 2px;
    color: #0f3f84;
    font-size: 14px;
    line-height: 1.5;
}

.category-card-large .category-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.category-card-large .category-content p {
    display: none;
}

.category-card-large .category-meta {
    justify-content: center;
    margin-top: auto;
}

.vendors-page .vendors-grid-large,
.vendors-section .vendors-grid {
    align-items: stretch;
}

.vendor-card-large,
.vendors-section .vendor-card {
    border-radius: 22px;
}

.vendor-card-large .vendor-header {
    min-height: 118px;
}

.vendor-card-large .vendor-logo-large,
.vendor-card-large .vendor-logo-placeholder,
.vendors-section .vendor-card img,
.vendors-section .vendor-logo-placeholder {
    object-fit: contain;
}

@media (min-width: 901px) {
    .categories-page .categories-grid,
    .vendors-page .vendors-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
    }

    .products-page .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .hero-with-banner .home-banner-dots {
        position: absolute;
        right: 50%;
        bottom: 12px;
        left: auto;
        z-index: 7;
        display: flex;
        transform: translateX(50%);
    }

    .hero-with-banner .home-banner-dots button {
        width: 9px;
        height: 9px;
    }

    .hero-with-banner .home-banner-dots button.active {
        width: 9px;
    }

    .products-page .products-grid,
    .similar-products .products-grid,
    .vendor-profile + .contact-strip + .section-header + .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .products-section .products-grid {
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
    }

    .product-card {
        min-height: 100%;
        border-radius: 17px;
        box-shadow: 0 12px 28px rgba(17, 82, 154, 0.10);
    }

    .product-image,
    .home-products-section .product-image,
    .products-section .product-image {
        aspect-ratio: 1 / 0.88;
        margin: 7px 7px 0;
        border-radius: 13px;
    }

    .product-image img {
        padding: 7px;
    }

    .product-info {
        padding: 8px;
    }

    .product-info h3 {
        min-height: 42px;
        font-size: 11px;
        line-height: 1.55;
    }

    .product-brand,
    .product-tags span,
    .vendor-count,
    .price-label {
        font-size: 9.5px;
    }

    .price {
        font-size: 11.5px;
    }

    .btn-view {
        min-height: 34px;
        padding: 7px 8px;
        border-radius: 11px;
        font-size: 10.5px;
    }

    .home-categories-section .categories-grid {
        grid-auto-columns: calc((100% - 10px) / 2);
        gap: 10px;
    }

    .categories-page .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-categories-section .category-card,
    .categories-section .category-card,
    .category-card-large {
        min-height: 158px;
        padding: 8px;
        border-radius: 17px;
    }

    .home-categories-section .category-card img,
    .categories-section .category-card img,
    .category-card-large .category-image {
        height: 104px;
        min-height: 104px;
        flex: 0 0 104px;
        border-radius: 13px;
    }

    .home-categories-section .category-card img,
    .categories-section .category-card img,
    .category-card-large .category-image img {
        padding: 7px;
    }

    .home-categories-section .category-card h3,
    .categories-section .category-card h3,
    .category-card-large .category-content h3 {
        min-height: 38px;
        padding: 7px 4px 0;
        font-size: 10.8px;
        line-height: 1.45;
    }

    .category-card-large .category-meta {
        display: none;
    }

    .vendors-page .vendors-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vendor-card-large {
        min-height: 172px;
        border-radius: 17px;
    }

    .vendor-card-large .vendor-header {
        min-height: 86px;
        padding: 12px;
    }

    .vendor-card-large .vendor-logo-large,
    .vendor-card-large .vendor-logo-placeholder {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .vendor-card-large .vendor-body {
        padding: 10px;
    }

    .vendor-card-large h3 {
        min-height: 34px;
        font-size: 11px;
        line-height: 1.55;
    }

    .vendor-card-large .stat-item,
    .vendor-card-large .view-shop {
        font-size: 9.5px;
    }
}

/* Absolute final desktop compact category slider */
@media (min-width: 901px) {
    .categories-section .categories-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 142px;
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        padding: 4px 2px 14px;
        scrollbar-width: none;
    }

    .categories-section .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .categories-section .category-card {
        min-height: 142px;
        padding: 8px;
        border-radius: 18px;
        scroll-snap-align: start;
        background:
            radial-gradient(circle at 15% 0, rgba(56, 189, 248, 0.18), transparent 36%),
            linear-gradient(145deg, #ffffff 0%, #f2f8ff 100%);
        box-shadow: 0 12px 28px rgba(17, 82, 154, 0.10);
    }

    .categories-section .category-card img {
        height: 92px;
        min-height: 92px;
        flex: 0 0 92px;
        padding: 8px;
        border-radius: 14px;
        background: #fff;
        object-fit: contain;
    }

    .categories-section .category-card h3 {
        min-height: 34px;
        padding: 6px 4px 0;
        font-size: 11.5px;
        line-height: 1.45;
    }

    .home-categories-section .section-arrows {
        top: 0;
        left: 14px;
        gap: 7px;
    }

    .home-categories-section .section-arrows .slider-arrow {
        width: 34px;
        height: 34px;
        border-color: rgba(22, 119, 255, 0.14);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 12px 26px rgba(17, 82, 154, 0.12);
        font-size: 22px;
    }

    .categories-page .categories-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 170px;
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        padding: 4px 2px 14px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .categories-page .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-card-large {
        min-height: 166px;
        padding: 8px;
        border-radius: 18px;
        scroll-snap-align: start;
    }

    .category-card-large .category-image {
        height: 96px;
        min-height: 96px;
        flex: 0 0 96px;
        border-radius: 14px;
    }

    .category-card-large .category-image img {
        padding: 8px;
        object-fit: contain;
    }

    .category-card-large .category-content h3 {
        min-height: 34px;
        padding: 7px 4px 0;
        font-size: 12px;
        line-height: 1.45;
    }

    .category-card-large .category-meta {
        display: none;
    }
}

/* Absolute final bigger site logo */
.logo a {
    width: 92px;
    height: 52px;
    min-height: 0;
    overflow: visible;
}

.logo img {
    width: 104px;
    height: 104px;
    max-width: none;
}

@media (max-width: 900px) {
    .logo a {
        width: 76px;
        height: 42px;
    }

    .logo img {
        width: 88px;
        height: 88px;
        max-width: none;
    }
}

/* Final product mobile readability and complete image display */
.product-gallery .main-image {
    display: grid;
    place-items: center;
    background: #fff;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.product-gallery .thumbnail {
    background: #fff;
    object-fit: contain;
}

@media (max-width: 900px) {
    body {
        font-size: 14.5px;
    }

    .product-detail {
        font-size: 13.5px;
    }

    .product-detail .breadcrumb,
    .product-detail .product-brand,
    .product-detail .product-category,
    .product-detail .product-short-desc,
    .product-detail .content-box,
    .product-detail .vendor-count {
        font-size: 12px;
    }

    .product-detail .product-summary h1 {
        font-size: clamp(18px, 5.2vw, 22px);
        line-height: 1.55;
    }

    .product-gallery .main-image {
        aspect-ratio: 1 / 1;
        min-height: 280px;
        padding: 10px;
    }

    .product-detail .price-summary {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .product-detail .best-price {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 58px;
        padding: 12px 14px;
        border-radius: 14px;
        background: rgba(255,255,255,.16);
    }

    .product-detail .price-summary .label {
        font-size: 13px;
        font-weight: 800;
    }

    .product-detail .price-summary .price {
        font-size: clamp(20px, 6vw, 25px);
        font-weight: 900;
        line-height: 1.2;
    }

    .product-detail .price-summary .vendor-count {
        width: 100%;
        white-space: normal;
    }

    .product-detail .product-actions .btn-primary,
    .product-detail .btn-wishlist,
    .product-detail .tab-btn,
    .product-detail .btn-buy {
        font-size: 12px;
    }

    .product-detail .current-price {
        font-size: 16px;
    }
}

/* Absolute final mobile typography uplift across the whole site */
@media (max-width: 900px) {
    html {
        font-size: 16px;
    }

    body,
    input,
    select,
    textarea,
    button {
        font-size: 15px;
        line-height: 1.75;
    }

    p,
    li,
    label,
    .content-box,
    .content-card,
    .breadcrumb,
    .section-header p,
    .product-brand,
    .vendor-count,
    .price-label,
    .product-tags span,
    .category-meta,
    .article-meta,
    .vendor-meta {
        font-size: 13px;
        line-height: 1.75;
    }

    h1,
    .hero-content h1,
    .page-header h1,
    .product-summary h1 {
        font-size: clamp(21px, 6vw, 27px);
        line-height: 1.55;
    }

    h2,
    .section-header h2,
    .similar-products h2 {
        font-size: clamp(18px, 5vw, 23px);
        line-height: 1.55;
    }

    h3,
    .product-info h3,
    .category-card h3,
    .category-card-large .category-content h3,
    .vendor-card h3,
    .vendor-card-large h3 {
        font-size: 14px;
        line-height: 1.65;
    }

    .main-nav a,
    .mobile-nav a,
    .mobile-bottom-nav a,
    .btn,
    .btn-primary,
    .btn-header,
    .btn-view,
    .btn-buy,
    .tab-btn,
    .mobile-filter-toggle {
        font-size: 13px;
        line-height: 1.5;
    }

    .price,
    .current-price {
        font-size: 15px;
    }
}
