/* =======================================================
   BERLIN GOE MERCHANT - public storefront UI
   Keep the same class / id names so your current JS works.
   ======================================================= */

:root {
    --bg-color: #f7f4fb;
    --card-bg: #ffffff;
    --text-main: #241533;
    --text-muted: #64748b;
    --brand-color: #6d28d9;
    --brand-hover: #4c1d95;
    --accent-color: #f59e0b;
    --danger-color: #00aeea;
    --success-color: #12a150;
    --warning-color: #f5b400;
    --border-color: #eadff5;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --gradient-hero: linear-gradient(135deg, #1b0d33 0%, #4c1d95 55%, #7c3aed 115%);
    --glass-blur: blur(14px);
}

[data-theme="dark"] {
    --bg-color: #0b0613;
    --card-bg: #1b102d;
    --text-main: #f8fbff;
    --text-muted: #cdbce0;
    --border-color: rgba(255, 255, 255, 0.09);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 20px 55px rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #0d0619 0%, #3b1768 55%, #6d28d9 120%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 184, 245, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-color) 260px);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(0, 184, 245, 0.14), transparent 34%),
        linear-gradient(180deg, #063b7a 0%, var(--bg-color) 260px);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
}

.glass-effect,
.glass-card {
    background: color-mix(in srgb, var(--card-bg) 94%, transparent);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* ================= Top info bar ================= */
.top-bar {
    background: #063b7a;
    color: #ffffff;
    padding: 9px 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.top-bar-inner,
.top-bar-right,
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-inner {
    justify-content: space-between;
}

.top-bar i {
    color: var(--brand-color);
    margin-inline-end: 6px;
}

.top-bar-left a,
.top-bar-right span {
    opacity: 0.96;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.top-bar-left a:hover {
    color: #ffffff;
    opacity: 1;
}

.top-mini {
    position: relative;
    padding-inline-start: 14px;
}

.top-mini::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%);
}

.divider {
    color: rgba(255, 255, 255, 0.35);
}

/* ================= Header ================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background: color-mix(in srgb, var(--card-bg) 96%, transparent);
    border-bottom: 1px solid var(--border-color);
}

.header-wrapper {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.main-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1;
}

.brand-name::first-letter {
    color: var(--brand-color);
}

.sub-brand {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    margin-top: 5px;
}

/* Search */
.search-box {
    display: flex;
    width: 100%;
    min-height: 48px;
    border: 2px solid var(--brand-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 8px 20px rgba(0, 184, 245, 0.08);
}

.search-category-select {
    width: 155px;
    border: 0;
    border-inline-start: 1px solid var(--border-color);
    background: #f3f4f6;
    color: var(--text-main);
    padding: 0 14px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

[data-theme="dark"] .search-category-select {
    background: #23262d;
}

.search-box input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-main);
    padding: 0 16px;
    font-size: 0.96rem;
    font-weight: 600;
}

.search-box input::placeholder {
    color: color-mix(in srgb, var(--text-muted) 75%, transparent);
}

.search-box button {
    width: 58px;
    border: 0;
    background: var(--brand-color);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-box button:hover {
    background: var(--brand-hover);
}

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

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    padding: 8px 12px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand-color) 45%, var(--border-color));
    box-shadow: var(--shadow-soft);
}

.action-btn.icon-only {
    width: 48px;
    padding: 0;
}

.action-btn i {
    color: var(--brand-color);
    font-size: 1.25rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: start;
}

.small-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}

.bold-text {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 900;
}

.cart-icon {
    position: relative;
}

.cart-count,
.cart-badge {
    position: absolute;
    top: -9px;
    inset-inline-end: -9px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-color);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    border: 2px solid var(--card-bg);
}

/* ================= Categories nav ================= */
.categories-nav {
    background: var(--brand-color);
    color: #ffffff;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-hover) 50%, transparent);
    box-shadow: 0 10px 22px rgba(0, 184, 245, 0.16);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 850;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(0, 0, 0, 0.16);
    color: #ffffff;
}

.all-cats-btn {
    background: #063b7a !important;
    color: #ffffff !important;
    padding-inline: 20px !important;
}

.sale-link {
    background: #ffffff !important;
    color: var(--brand-color) !important;
    animation: none;
}

/* ================= Main area / Hero ================= */
.main-content-area {
    padding-top: 24px;
}

.hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 22px;
    min-height: 360px;
    padding: 46px;
    margin: 0 0 26px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: var(--gradient-hero);
    overflow: hidden;
    position: relative;
    border: 0;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 100%);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
    opacity: 0.24;
}

.hero-banner::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(0, 184, 245, 0.4);
    filter: blur(10px);
    inset-inline-end: -90px;
    top: -120px;
}

.banner-content,
.banner-image {
    position: relative;
    z-index: 1;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--brand-color);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 950;
    margin-bottom: 14px;
}

.badge-new::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-color);
}

.banner-content h1,
.banner-content h2 {
    max-width: 710px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 950;
    line-height: 1.16;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.banner-content p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 26px;
}

.banner-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.add-btn {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
    background: var(--brand-color);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(0, 184, 245, 0.22);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 184, 245, 0.32);
}

.btn-secondary {
    background: #063b7a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
    background: #ffffff;
    color: var(--brand-color);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.pc-showcase {
    width: min(360px, 100%);
    margin-inline-start: auto;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px rgba(0, 0, 0, 0.28);
}

.screen-card {
    min-height: 190px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 25% 22%, rgba(0, 184, 245, 0.5), transparent 26%),
        linear-gradient(135deg, #1f2937, #030712);
    border: 8px solid #0a0a0a;
    color: #ffffff;
}

.screen-card i {
    font-size: 5.2rem;
    color: #ffffff;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.parts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.parts-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    font-weight: 900;
}

/* ================= Trust cards ================= */
.store-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 34px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 98px;
    padding: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand-color) 36%, var(--border-color));
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    background: rgba(0, 184, 245, 0.08);
    color: var(--brand-color);
}

.feature-icon i {
    color: var(--brand-color);
    font-size: 1.5rem;
}

.feature-info h4 {
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.25;
}

.feature-info p {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 3px;
}

/* ================= Section titles ================= */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 18px;
}

.section-title h2,
.section-title h3 {
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -0.02em;
    position: relative;
    padding-inline-start: 14px;
}

.section-title h2::before,
.section-title h3::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 5px;
    height: 24px;
    border-radius: 999px;
    background: var(--brand-color);
    transform: translateY(-50%);
}

/* ================= Categories grid ================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 130px;
    padding: 18px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-color);
    box-shadow: var(--shadow-hover);
}

.cat-img-placeholder {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #f3f4f6;
}

[data-theme="dark"] .cat-img-placeholder {
    background: #23262d;
}

.cat-img-placeholder i {
    font-size: 1.85rem;
    color: var(--brand-color);
}

.cat-card h3,
.cat-card h4,
.cat-card span {
    font-weight: 900;
    color: var(--text-main);
}

/* ================= Products + filters ================= */
.products-section {
    margin-bottom: 48px;
}

.section-title.with-filters {
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.results-count,
.stock-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.stock-switch input {
    accent-color: var(--brand-color);
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-main);
    padding: 0 12px;
    font-weight: 800;
    outline: none;
}

.filter-select:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 245, 0.09);
}

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

.loading-spinner {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--brand-color);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--brand-color) 45%, var(--border-color));
    box-shadow: var(--shadow-hover);
}

.product-card::before {
    content: "In Stock";
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    background: var(--success-color);
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 950;
}

.product-img {
    width: 100%;
    height: 205px;
    object-fit: contain;
    padding: 18px;
    background: #f7f7f8;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .product-img {
    background: #111318;
}

.product-title {
    flex: 1;
    padding: 14px 14px 0;
    color: var(--text-main);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.45;
}

.product-price {
    padding: 10px 14px 0;
    color: var(--brand-color);
    font-size: 1.28rem;
    font-weight: 950;
}

.add-btn {
    margin: 14px;
    width: calc(100% - 28px);
    background: var(--brand-color);
    color: #ffffff;
    border: 1px solid var(--brand-color);
    padding: 11px 14px;
}

.add-btn:hover {
    background: #063b7a;
    border-color: #063b7a;
    color: #ffffff;
}

.load-more-container .btn-secondary {
    background: var(--card-bg);
    color: var(--brand-color);
    border: 1px solid var(--brand-color);
}

.load-more-container .btn-secondary:hover {
    background: var(--brand-color);
    color: #ffffff;
}

/* ================= Contact CTA ================= */
.contact-cta-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(135deg, #063b7a, #0b4da2 65%, var(--brand-color));
    border: 0;
    margin-bottom: 44px;
}

.contact-cta-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-cta-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.75rem;
}

.contact-cta-text h2,
.contact-cta-text h3 {
    font-size: 1.35rem;
    font-weight: 950;
}

.contact-cta-text p {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.contact-cta-actions {
    display: flex;
    gap: 10px;
}

.contact-cta-actions input {
    flex: 1;
    border: 0;
    outline: none;
    border-radius: var(--radius-sm);
    padding: 0 15px;
    min-height: 48px;
    font-weight: 800;
}

/* ================= Footer ================= */
.site-footer {
    margin-top: 42px;
    background: #063b7a;
    color: #ffffff;
    border-top: 4px solid var(--brand-color);
}

.footer-top {
    padding: 48px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 950;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 18px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: var(--brand-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    position: relative;
    font-size: 1.08rem;
    font-weight: 950;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-color);
}

.footer-links,
.contact-info {
    list-style: none;
}

.footer-links li,
.contact-info li {
    margin-bottom: 12px;
}

.footer-links a,
.contact-info li {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 750;
    transition: color 0.2s ease, padding 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-inline-start: 5px;
}

.footer-links i,
.contact-info i {
    color: var(--brand-color);
    margin-inline-end: 7px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 18px 0;
    background: #04152d;
}

.bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 750;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-methods i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.7rem;
}

/* ================= Floating / mobile nav ================= */
.fab-whatsapp {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 999;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.33);
    transition: transform 0.18s ease;
}

.fab-whatsapp:hover {
    transform: scale(1.08);
}

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

/* ================= Modals / cart / checkout ================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.cart-sidebar {
    position: absolute;
    top: 0;
    inset-inline-end: -430px;
    width: min(430px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--card-bg);
    border-inline-start: 1px solid var(--border-color);
    box-shadow: -18px 0 45px rgba(0, 0, 0, 0.16);
    transition: inset-inline-end 0.32s ease;
}

.modal-overlay.active .cart-sidebar {
    inset-inline-end: 0;
}

.cart-header,
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.cart-header h3,
.modal-header h2 {
    font-weight: 950;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.close-modal-btn:hover {
    color: var(--brand-color);
    border-color: var(--brand-color);
    transform: rotate(90deg);
}

.cart-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-inline-end: 4px;
}

.empty-cart-msg {
    min-height: 310px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 1.08rem;
    font-weight: 950;
}

.total-price {
    color: var(--brand-color);
}

.btn-block {
    width: 100%;
    min-height: 50px;
}

.btn-block:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    box-shadow: none;
}

.checkout-box {
    width: min(620px, calc(100% - 26px));
    max-height: 91vh;
    overflow-y: auto;
    padding: 26px;
    border-radius: 20px;
    background: var(--card-bg);
}

.checkout-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(0, 184, 245, 0.08);
    color: var(--brand-color);
    font-weight: 850;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 900;
}

.required {
    color: var(--brand-color);
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-main);
    padding: 11px 13px;
    outline: none;
    font-weight: 750;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.form-control:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 245, 0.1);
}

.checkout-summary-box {
    padding: 15px;
    margin: 12px 0 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-color);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: var(--text-muted);
    font-weight: 850;
}

.summary-line.total {
    color: var(--text-main);
    font-size: 1.12rem;
    font-weight: 950;
    margin: 10px 0 0;
}

.summary-line.total span:last-child {
    color: var(--brand-color);
}

/* ================= Responsive ================= */
@media (max-width: 1100px) {
    .header-wrapper {
        grid-template-columns: 1fr auto;
    }

    .search-box {
        grid-column: 1 / -1;
        order: 3;
    }

    .store-features {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    body {
        padding-bottom: 78px;
    }

    .container {
        width: min(100% - 24px, 1320px);
    }

    .top-bar {
        font-size: 0.76rem;
    }

    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }

    .header-wrapper {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .logo-area {
        min-width: auto;
    }

    .main-logo-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .brand-name {
        font-size: 1.18rem;
    }

    .sub-brand {
        display: none;
    }

    .action-btn.icon-only,
    .cart-btn {
        width: 42px;
        min-height: 42px;
        padding: 0;
    }

    .search-box {
        min-height: 44px;
    }

    .search-category-select {
        display: none;
    }

    .search-box button {
        width: 50px;
    }

    .nav-links a {
        padding: 11px 13px;
        font-size: 0.86rem;
    }

    .hero-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 18px;
        min-height: auto;
        border-radius: 18px;
    }

    .banner-content h1,
.banner-content h2 {
        font-size: 1.65rem;
    }

    .banner-content p {
        font-size: 0.94rem;
    }

    .banner-buttons {
        justify-content: center;
    }

    .banner-buttons button {
        flex: 1 1 140px;
    }

    .pc-showcase {
        margin: 0 auto;
        padding: 15px;
    }

    .screen-card {
        min-height: 135px;
    }

    .screen-card i {
        font-size: 3.6rem;
    }

    .store-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .feature-box {
        flex-direction: column;
        text-align: center;
        padding: 13px 10px;
        min-height: 118px;
    }

    .feature-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .feature-info h4 {
        font-size: 0.9rem;
    }

    .feature-info p {
        font-size: 0.74rem;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .cat-card {
        min-height: 106px;
        padding: 12px 8px;
    }

    .cat-img-placeholder {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .cat-img-placeholder i {
        font-size: 1.45rem;
    }


    .section-title.with-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar,
    .filter-controls {
        width: 100%;
    }

    .filter-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .filter-select,
    .results-count,
    .stock-switch {
        width: 100%;
        justify-content: center;
        font-size: 0.79rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 11px;
    }

    .product-img {
        height: 142px;
        padding: 12px;
    }

    .product-title {
        padding-inline: 10px;
        font-size: 0.82rem;
    }

    .product-price {
        padding-inline: 10px;
        font-size: 1.02rem;
    }

    .add-btn {
        margin: 10px;
        width: calc(100% - 20px);
        padding: 9px 10px;
        font-size: 0.83rem;
    }

    .contact-cta-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-cta-section {
        text-align: center;
        padding: 24px 16px;
    }

    .contact-cta-content,
    .contact-cta-actions {
        flex-direction: column;
    }

    .contact-cta-actions button,
    .contact-cta-actions input {
        width: 100%;
    }

    .footer-grid,
    .bottom-wrapper {
        text-align: center;
    }

    .footer-col h4::after {
        inset-inline-start: 50%;
        transform: translateX(-50%);
    }

    .social-links,
    .contact-info li,
    .bottom-wrapper,
    .payment-methods {
        justify-content: center;
    }

    .cart-sidebar {
        inset-inline-end: -100%;
        width: 100%;
        max-width: 100%;
    }

    .checkout-box {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 18px 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fab-whatsapp {
        bottom: calc(88px + env(safe-area-inset-bottom));
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-around;
        gap: 4px;
        padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--card-bg) 95%, transparent);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.09);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
    }

    .mobile-bottom-nav .nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 58px;
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 900;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.18rem;
    }

    .mobile-bottom-nav .nav-item.active {
        color: var(--brand-color);
    }

    .cart-icon-wrapper {
        position: relative;
    }
}

@media (max-width: 420px) {
    .products-grid,
    .store-features {
        grid-template-columns: 1fr 1fr;
    }

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

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

}


/* =======================================================
   Berlin identity polish
   ======================================================= */
body {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.13), transparent 34%),
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.10), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #f7f4fb 300px);
}

.top-bar,
.categories-nav {
    background: linear-gradient(100deg, #170b2d 0%, #3b1768 58%, #6d28d9 120%);
}

.categories-nav {
    box-shadow: 0 10px 24px rgba(59, 23, 104, 0.18);
}

.main-header {
    background: rgba(255, 255, 255, 0.96);
}

.search-box {
    border-color: rgba(109, 40, 217, 0.55);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(109, 40, 217, 0.09);
}

.search-box button,
.btn-primary,
.add-btn {
    background: linear-gradient(135deg, #6d28d9, #4c1d95);
    border-color: #6d28d9;
}

.search-box button:hover,
.btn-primary:hover,
.add-btn:hover {
    background: linear-gradient(135deg, #5b21b6, #36136f) !important;
    border-color: #5b21b6 !important;
    color: #fff !important;
}

.all-cats-btn,
.btn-secondary {
    background: #1f1235 !important;
    border-color: #1f1235 !important;
    color: #fff !important;
}

.hero-banner {
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.20), transparent 28%),
        linear-gradient(135deg, #1b0d33 0%, #4c1d95 54%, #7c3aed 105%);
    box-shadow: 0 24px 60px rgba(76, 29, 149, 0.22);
}

.badge-new {
    color: #4c1d95;
    background: #fff7d6;
}

.search-box,
.product-card:hover,
.cat-card:hover,
.feature-box:hover {
    border-color: #8b5cf6;
}

.feature-icon,
.cat-img-placeholder {
    background: rgba(124, 58, 237, 0.11);
}

.contact-cta-section {
    background: linear-gradient(135deg, #1b0d33 0%, #4c1d95 58%, #7c3aed 120%);
}

.contact-cta-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-cta-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: 24px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #f59e0b;
    color: #241306;
}

.site-footer {
    background: #160a2b;
    border-top-color: #f59e0b;
}

.footer-bottom {
    background: #0d0619;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 34%),
        linear-gradient(180deg, #160a2b 0%, #0b0613 300px);
}

[data-theme="dark"] .main-header,
[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(22, 10, 43, 0.95);
}

@media (max-width: 768px) {
    .contact-cta-actions {
        justify-content: center;
        width: 100%;
    }

    .contact-cta-actions .btn-primary {
        width: 100%;
    }
}


/* Public storefront finishing touches */
.add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.screen-card {
    background:
        radial-gradient(circle at 25% 22%, rgba(245, 158, 11, 0.34), transparent 26%),
        linear-gradient(135deg, #2e1065, #12071f);
}

.top-bar i {
    color: #fbbf24;
}

/* ================= Embedded checkout + order preview ================= */
.checkout-items-section {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--card-bg) 92%, var(--brand-color) 8%);
}

.checkout-items-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 900;
}

.checkout-items-heading small {
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 700;
}

.checkout-items-preview {
    display: grid;
    gap: 10px;
}

.checkout-preview-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
}

.checkout-preview-item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.checkout-preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.checkout-preview-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
    font-size: .9rem;
}

.checkout-preview-info span {
    color: var(--brand-color);
    font-size: .84rem;
    font-weight: 900;
}

.checkout-preview-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.checkout-preview-controls button {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 900;
}

.checkout-preview-controls > span {
    min-width: 24px;
    text-align: center;
    font-weight: 900;
}

.checkout-preview-controls .checkout-preview-remove {
    color: #ef4444;
}

.checkout-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 90px;
    color: var(--text-muted);
    font-weight: 800;
}

html.embedded-checkout-mode,
body.embedded-checkout-mode {
    min-height: 100%;
    overflow: auto;
    background: #071426 !important;
}

body.embedded-checkout-mode > :not(#checkoutModal):not(script) {
    display: none !important;
}

body.embedded-checkout-mode #checkoutModal {
    position: relative;
    inset: auto;
    display: flex !important;
    align-items: flex-start;
    min-height: 100dvh;
    padding: 16px;
    overflow: visible;
    background: linear-gradient(180deg, #071426, #0d1830);
    opacity: 1;
    visibility: visible;
}

body.embedded-checkout-mode #checkoutModal .checkout-box {
    width: min(720px, 100%);
    max-height: none;
    margin: 0 auto;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none;
}

body.embedded-checkout-mode .modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--card-bg);
}

@media (max-width: 600px) {
    .checkout-items-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .checkout-preview-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .checkout-preview-item img {
        width: 48px;
        height: 48px;
    }

    .checkout-preview-controls {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    body.embedded-checkout-mode #checkoutModal {
        padding: 0;
    }

    body.embedded-checkout-mode #checkoutModal .checkout-box {
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
    }
}


/* =======================================================
   Reliable theme controller compatibility layer
   ======================================================= */
:root,
html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] body,
html[data-theme="dark"] body,
html[data-theme="light"] .main-header,
html[data-theme="dark"] .main-header,
html[data-theme="light"] .mobile-bottom-nav,
html[data-theme="dark"] .mobile-bottom-nav,
html[data-theme="light"] .product-card,
html[data-theme="dark"] .product-card,
html[data-theme="light"] .cat-card,
html[data-theme="dark"] .cat-card,
html[data-theme="light"] .feature-box,
html[data-theme="dark"] .feature-box,
html[data-theme="light"] .modal-overlay,
html[data-theme="dark"] .modal-overlay {
    transition: background-color .24s ease, background .24s ease, color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

html[data-theme="dark"] .checkout-preview-item img,
html[data-theme="dark"] .main-logo-img {
    background: #251a31;
    border-color: var(--border-color);
}

html[data-theme="dark"] select {
    color-scheme: dark;
}

html[data-theme="light"] select {
    color-scheme: light;
}

/* =======================================================
   Elegant category cards — large artwork, no nested outlines
   ======================================================= */

.categories-grid {
    gap: clamp(14px, 1.5vw, 20px);
}

html[data-theme] body.store-body .cat-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 228px;
    padding: 12px 12px 13px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 82% 2%, rgba(139, 92, 246, .15), transparent 42%),
        linear-gradient(155deg, #ffffff 0%, #fbf9ff 52%, #f3efff 100%) !important;
    box-shadow:
        0 14px 34px rgba(42, 30, 76, .09),
        0 2px 8px rgba(42, 30, 76, .04) !important;
    text-align: center;
    transform: translateZ(0);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, background .28s ease;
}

html[data-theme] body.store-body .cat-card::before {
    content: "";
    position: absolute;
    width: 132px;
    height: 132px;
    top: -74px;
    inset-inline-start: -50px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(124, 58, 237, .12);
    filter: blur(2px);
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
}

html[data-theme] body.store-body .cat-card::after {
    content: "";
    position: absolute;
    inset-inline: 22px;
    bottom: -24px;
    height: 54px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(109, 67, 255, .20);
    filter: blur(24px);
    opacity: .18;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}

html[data-theme] body.store-body .cat-card:hover {
    border: 0 !important;
    transform: translateY(-7px) scale(1.012);
    box-shadow:
        0 24px 48px rgba(65, 42, 118, .16),
        0 6px 16px rgba(65, 42, 118, .06) !important;
}

html[data-theme] body.store-body .cat-card:hover::before {
    transform: scale(1.18) translate(5px, 8px);
    opacity: .85;
}

html[data-theme] body.store-body .cat-card:hover::after {
    opacity: .72;
    transform: translateY(-10px) scaleX(1.08);
}

/* The image owns most of the card. There is no second outlined box inside it. */
html[data-theme] body.store-body .cat-card .cat-img-placeholder,
html[data-theme] body.store-body .cat-card .category-image-wrapper,
html[data-theme] body.store-body .cat-card .cat-image-wrapper {
    width: 100%;
    height: 164px;
    flex: 0 0 164px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 0 !important;
    border-radius: 19px;
    background: transparent !important;
    box-shadow: none !important;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

html[data-theme] body.store-body .cat-card:hover .cat-img-placeholder,
html[data-theme] body.store-body .cat-card:hover .category-image-wrapper,
html[data-theme] body.store-body .cat-card:hover .cat-image-wrapper {
    transform: translateY(-2px);
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder img,
html[data-theme] body.store-body .cat-card .category-image-wrapper img,
html[data-theme] body.store-body .cat-card .cat-image-wrapper img,
html[data-theme] body.store-body .cat-card img.category-image,
html[data-theme] body.store-body .cat-card img.cat-image {
    width: 116% !important;
    height: 116% !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: contain !important;
    object-position: center;
    padding: 0 !important;
    filter: drop-shadow(0 14px 18px rgba(40, 25, 74, .15));
    transform: scale(1.04);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), filter .32s ease;
}

html[data-theme] body.store-body .cat-card:hover .cat-img-placeholder img,
html[data-theme] body.store-body .cat-card:hover .category-image-wrapper img,
html[data-theme] body.store-body .cat-card:hover .cat-image-wrapper img,
html[data-theme] body.store-body .cat-card:hover img.category-image,
html[data-theme] body.store-body .cat-card:hover img.cat-image {
    transform: scale(1.13) translateY(-2px);
    filter: drop-shadow(0 18px 24px rgba(76, 29, 149, .23));
}

/* Fallback when the renderer places the image directly inside the category card. */
html[data-theme] body.store-body .cat-card > img {
    width: 100% !important;
    height: 164px !important;
    flex: 0 0 164px;
    display: block;
    object-fit: contain !important;
    object-position: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 19px;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 14px 18px rgba(40, 25, 74, .15));
    transform: scale(1.14);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), filter .32s ease;
}

html[data-theme] body.store-body .cat-card:hover > img {
    transform: scale(1.23) translateY(-2px);
    filter: drop-shadow(0 18px 24px rgba(76, 29, 149, .23));
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder i,
html[data-theme] body.store-body .cat-card .category-image-wrapper i,
html[data-theme] body.store-body .cat-card .cat-image-wrapper i {
    font-size: 4rem;
    color: var(--brand-color);
    filter: drop-shadow(0 12px 16px rgba(76, 29, 149, .18));
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}

html[data-theme] body.store-body .cat-card:hover .cat-img-placeholder i,
html[data-theme] body.store-body .cat-card:hover .category-image-wrapper i,
html[data-theme] body.store-body .cat-card:hover .cat-image-wrapper i {
    transform: scale(1.12) translateY(-3px);
    filter: drop-shadow(0 16px 20px rgba(76, 29, 149, .26));
}

/* A clean footer label, not a bordered pill floating under the artwork. */
html[data-theme] body.store-body .cat-card > h3,
html[data-theme] body.store-body .cat-card > h4,
html[data-theme] body.store-body .cat-card > span,
html[data-theme] body.store-body .cat-card .cat-name,
html[data-theme] body.store-body .cat-card .category-title {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    min-height: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 9px 12px 9px 13px;
    overflow: hidden;
    color: #36275e !important;
    background: rgba(255, 255, 255, .72) !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 7px 18px rgba(55, 38, 96, .07) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: .88rem;
    font-weight: 650 !important;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .24s ease, background .24s ease, transform .24s ease, box-shadow .24s ease;
}

html[data-theme] body.store-body .cat-card > h3::after,
html[data-theme] body.store-body .cat-card > h4::after,
html[data-theme] body.store-body .cat-card > span::after,
html[data-theme] body.store-body .cat-card .cat-name::after,
html[data-theme] body.store-body .cat-card .category-title::after {
    content: "\f053";
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #6d43ff;
    background: rgba(109, 67, 255, .10);
    font-family: "Font Awesome 6 Free";
    font-size: .68rem;
    font-weight: 900;
    transition: transform .24s ease, color .24s ease, background .24s ease;
}

html[data-theme] body.store-body .cat-card:hover > h3,
html[data-theme] body.store-body .cat-card:hover > h4,
html[data-theme] body.store-body .cat-card:hover > span,
html[data-theme] body.store-body .cat-card:hover .cat-name,
html[data-theme] body.store-body .cat-card:hover .category-title {
    color: #4d2cb7 !important;
    background: rgba(255, 255, 255, .90) !important;
    box-shadow: 0 10px 24px rgba(69, 42, 127, .12) !important;
    transform: translateY(-1px);
}

html[data-theme] body.store-body .cat-card:hover > h3::after,
html[data-theme] body.store-body .cat-card:hover > h4::after,
html[data-theme] body.store-body .cat-card:hover > span::after,
html[data-theme] body.store-body .cat-card:hover .cat-name::after,
html[data-theme] body.store-body .cat-card:hover .category-title::after {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    transform: translateX(-2px);
}

html[data-theme="dark"] body.store-body .cat-card {
    border: 0 !important;
    background:
        radial-gradient(circle at 82% 2%, rgba(139, 92, 246, .23), transparent 43%),
        linear-gradient(155deg, #21162c 0%, #1a1124 55%, #251535 100%) !important;
    box-shadow:
        0 16px 38px rgba(0, 0, 0, .34),
        0 2px 10px rgba(0, 0, 0, .20) !important;
}

html[data-theme="dark"] body.store-body .cat-card:hover {
    box-shadow:
        0 26px 54px rgba(0, 0, 0, .48),
        0 8px 20px rgba(73, 39, 123, .22) !important;
}

html[data-theme="dark"] body.store-body .cat-card > h3,
html[data-theme="dark"] body.store-body .cat-card > h4,
html[data-theme="dark"] body.store-body .cat-card > span,
html[data-theme="dark"] body.store-body .cat-card .cat-name,
html[data-theme="dark"] body.store-body .cat-card .category-title {
    color: #f0e8ff !important;
    background: rgba(42, 28, 55, .82) !important;
    border: 0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .20) !important;
}

html[data-theme="dark"] body.store-body .cat-card:hover > h3,
html[data-theme="dark"] body.store-body .cat-card:hover > h4,
html[data-theme="dark"] body.store-body .cat-card:hover > span,
html[data-theme="dark"] body.store-body .cat-card:hover .cat-name,
html[data-theme="dark"] body.store-body .cat-card:hover .category-title {
    color: #ffffff !important;
    background: rgba(54, 35, 72, .96) !important;
}

/* Keep the product-card category label polished without affecting category cards. */
html[data-theme] body.store-body .product-card .merchant-category-chip,
html[data-theme] body.store-body .product-card .product-category,
html[data-theme] body.store-body .product-card .category-name,
html[data-theme] body.store-body .product-card .product-category-name,
html[data-theme] body.store-body .product-item .merchant-category-chip,
html[data-theme] body.store-body .product-item .product-category,
html[data-theme] body.store-body .product-item .category-name,
html[data-theme] body.store-body .product-item .product-category-name {
    top: 13px !important;
    right: 13px !important;
    min-height: 35px !important;
    padding: 6px 9px 6px 12px !important;
    gap: 7px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, .97), rgba(76, 29, 149, .95)) !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(55, 31, 107, .27), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
    backdrop-filter: blur(14px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}

html[data-theme] body.store-body .product-card .merchant-category-chip::before,
html[data-theme] body.store-body .product-card .product-category::before,
html[data-theme] body.store-body .product-card .category-name::before,
html[data-theme] body.store-body .product-card .product-category-name::before,
html[data-theme] body.store-body .product-item .merchant-category-chip::before,
html[data-theme] body.store-body .product-item .product-category::before,
html[data-theme] body.store-body .product-item .category-name::before,
html[data-theme] body.store-body .product-item .product-category-name::before {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff !important;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20);
    font-size: .66rem !important;
}

@media (max-width: 768px) {
    .categories-grid {
        gap: 11px;
    }

    html[data-theme] body.store-body .cat-card {
        min-height: 190px;
        padding: 9px 9px 10px;
        gap: 8px;
        border-radius: 20px !important;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 130px !important;
        flex-basis: 130px;
        border-radius: 16px;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder i,
    html[data-theme] body.store-body .cat-card .category-image-wrapper i,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper i {
        font-size: 3.15rem;
    }

    html[data-theme] body.store-body .cat-card > h3,
    html[data-theme] body.store-body .cat-card > h4,
    html[data-theme] body.store-body .cat-card > span,
    html[data-theme] body.store-body .cat-card .cat-name,
    html[data-theme] body.store-body .cat-card .category-title {
        min-height: 37px;
        padding: 7px 9px 7px 10px;
        border-radius: 12px !important;
        font-size: .78rem;
    }

    html[data-theme] body.store-body .cat-card > h3::after,
    html[data-theme] body.store-body .cat-card > h4::after,
    html[data-theme] body.store-body .cat-card > span::after,
    html[data-theme] body.store-body .cat-card .cat-name::after,
    html[data-theme] body.store-body .cat-card .category-title::after {
        width: 23px;
        height: 23px;
        border-radius: 8px;
        font-size: .61rem;
    }
}

@media (max-width: 420px) {
    html[data-theme] body.store-body .cat-card {
        min-height: 178px;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 118px !important;
        flex-basis: 118px;
    }
}

/* =======================================================
   Mobile refinements: no tap flash, gentle motion, no filters
   ======================================================= */
.merchant-filter-compat,
.merchant-filter-compat[hidden] {
    display: none !important;
}

/* Remove the automatic "In Stock" badge from every product card. */
.product-card::before {
    content: none !important;
    display: none !important;
}

@keyframes merchantMobileFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 7px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 768px) {
    html,
    body,
    a,
    button,
    input,
    select,
    textarea,
    label,
    [role="button"] {
        -webkit-tap-highlight-color: transparent !important;
    }

    a:focus:not(:focus-visible),
    button:focus:not(:focus-visible),
    input:focus:not(:focus-visible),
    select:focus:not(:focus-visible),
    textarea:focus:not(:focus-visible) {
        outline: none !important;
        box-shadow: none;
    }

    .hero-banner.merchant-image-hero,
    .store-features,
    .featured-categories-section,
    .products-section,
    .contact-cta-section {
        animation: merchantMobileFadeUp .28s cubic-bezier(.2, .7, .3, 1) both;
    }

    .store-features {
        animation-delay: .035s;
    }

    .featured-categories-section {
        animation-delay: .065s;
    }

    .products-section {
        animation-delay: .095s;
    }

    .contact-cta-section {
        animation-delay: .12s;
    }

    .cat-card,
    .feature-box,
    .product-card {
        animation: merchantMobileFadeUp .24s ease-out both;
    }

    .cat-card:nth-child(2n),
    .feature-box:nth-child(2n),
    .product-card:nth-child(2n) {
        animation-delay: .025s;
    }

    .mobile-bottom-nav .nav-item,
    .action-btn,
    .add-btn,
    .btn-primary,
    .btn-secondary,
    .cat-card,
    .product-card {
        transition-duration: .14s !important;
    }

    .mobile-bottom-nav .nav-item:active,
    .action-btn:active,
    .add-btn:active,
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(.985);
    }
}

@media (max-width: 768px) and (hover: none) {
    .product-card:hover,
    .product-item:hover,
    .cat-card:hover,
    .feature-box:hover,
    .action-btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner.merchant-image-hero,
    .store-features,
    .featured-categories-section,
    .products-section,
    .contact-cta-section,
    .cat-card,
    .feature-box,
    .product-card {
        animation: none !important;
    }
}

/* =======================================================
   2026-06-26 requested polish: compact trust row, premium cards
   ======================================================= */

/* Only three compact trust points remain. */
.store-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 1080px;
    margin-inline: auto;
    margin-bottom: 30px;
}

.store-features .feature-box {
    min-height: 78px;
    padding: 13px 15px;
    gap: 11px;
    border-radius: 17px !important;
}

.store-features .feature-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
}

.store-features .feature-icon i {
    font-size: 1.15rem;
}

.store-features .feature-info h4 {
    font-size: .91rem;
}

.store-features .feature-info p {
    margin-top: 1px;
    font-size: .76rem;
    line-height: 1.45;
}

/* Category cards: clean title, no arrow box. */
html[data-theme] body.store-body .cat-card > h3,
html[data-theme] body.store-body .cat-card > h4,
html[data-theme] body.store-body .cat-card > span,
html[data-theme] body.store-body .cat-card .cat-name,
html[data-theme] body.store-body .cat-card .category-title {
    justify-content: center;
    padding-inline: 11px !important;
    text-align: center;
}

html[data-theme] body.store-body .cat-card > h3::after,
html[data-theme] body.store-body .cat-card > h4::after,
html[data-theme] body.store-body .cat-card > span::after,
html[data-theme] body.store-body .cat-card .cat-name::after,
html[data-theme] body.store-body .cat-card .category-title::after {
    content: none !important;
    display: none !important;
}

/* Product offer cards: premium, cleaner and without category text above title. */
html[data-theme] body.store-body .product-card .merchant-category-chip,
html[data-theme] body.store-body .product-card .product-category,
html[data-theme] body.store-body .product-card .category-name,
html[data-theme] body.store-body .product-card .product-category-name,
html[data-theme] body.store-body .product-card .category-label,
html[data-theme] body.store-body .product-card [data-product-category],
html[data-theme] body.store-body .product-item .merchant-category-chip,
html[data-theme] body.store-body .product-item .product-category,
html[data-theme] body.store-body .product-item .category-name,
html[data-theme] body.store-body .product-item .product-category-name,
html[data-theme] body.store-body .product-item .category-label,
html[data-theme] body.store-body .product-item [data-product-category] {
    display: none !important;
}

html[data-theme] body.store-body .product-card,
html[data-theme] body.store-body .product-item {
    isolation: isolate;
    border: 1px solid color-mix(in srgb, var(--merchant-primary) 10%, var(--merchant-border)) !important;
    border-radius: 23px !important;
    background: linear-gradient(180deg, var(--merchant-surface) 0%, color-mix(in srgb, var(--merchant-surface) 94%, var(--merchant-primary)) 100%) !important;
    box-shadow: 0 12px 30px rgba(36, 21, 51, .075) !important;
    transition: transform .22s cubic-bezier(.2, .75, .3, 1), box-shadow .22s ease, border-color .22s ease !important;
}

html[data-theme] body.store-body .product-card::after,
html[data-theme] body.store-body .product-item::after {
    content: "";
    position: absolute;
    inset-inline: 18px;
    top: 0;
    height: 3px;
    z-index: 3;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, rgba(109, 67, 255, .72), transparent);
    opacity: .72;
    pointer-events: none;
}

html[data-theme] body.store-body .product-card:hover,
html[data-theme] body.store-body .product-item:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(109, 67, 255, .22) !important;
    box-shadow: 0 20px 42px rgba(45, 28, 78, .13) !important;
}

html[data-theme] body.store-body .product-card .product-img,
html[data-theme] body.store-body .product-item .product-img,
html[data-theme] body.store-body .product-card > img,
html[data-theme] body.store-body .product-item > img {
    height: 218px;
    padding: 14px;
    object-fit: contain;
    border-bottom: 0 !important;
    background:
        radial-gradient(circle at 50% 35%, rgba(109, 67, 255, .10), transparent 48%),
        color-mix(in srgb, var(--merchant-surface-soft) 88%, transparent) !important;
}

html[data-theme] body.store-body .product-card .product-title,
html[data-theme] body.store-body .product-item .product-title {
    min-height: 58px;
    padding: 15px 16px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--merchant-text) !important;
    font-size: .96rem;
    font-weight: 600 !important;
    line-height: 1.55;
}

html[data-theme] body.store-body .product-card .product-price,
html[data-theme] body.store-body .product-item .product-price {
    padding: 9px 16px 0;
    color: var(--merchant-primary) !important;
    font-size: 1.22rem;
    font-weight: 800 !important;
}

html[data-theme] body.store-body .product-card .add-btn,
html[data-theme] body.store-body .product-item .add-btn {
    min-height: 44px;
    margin: 13px 16px 16px;
    width: calc(100% - 32px);
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, var(--merchant-primary), #805dff) !important;
    box-shadow: 0 9px 20px rgba(109, 67, 255, .18);
    font-size: .88rem;
}

html[data-theme="dark"] body.store-body .product-card,
html[data-theme="dark"] body.store-body .product-item {
    background: linear-gradient(180deg, #1c1425 0%, #17101f 100%) !important;
    border-color: rgba(180, 149, 255, .12) !important;
    box-shadow: 0 15px 34px rgba(0, 0, 0, .28) !important;
}

@media (max-width: 768px) {
    .store-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-bottom: 24px;
    }

    .store-features .feature-box {
        min-height: 96px;
        padding: 10px 6px;
        gap: 6px;
    }

    .store-features .feature-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
    }

    .store-features .feature-icon i {
        font-size: 1rem;
    }

    .store-features .feature-info h4 {
        font-size: .74rem;
        line-height: 1.3;
    }

    .store-features .feature-info p {
        font-size: .62rem;
        line-height: 1.35;
    }

    html[data-theme] body.store-body .product-card,
    html[data-theme] body.store-body .product-item {
        border-radius: 18px !important;
    }

    html[data-theme] body.store-body .product-card .product-img,
    html[data-theme] body.store-body .product-item .product-img,
    html[data-theme] body.store-body .product-card > img,
    html[data-theme] body.store-body .product-item > img {
        height: 166px;
        padding: 10px;
    }

    html[data-theme] body.store-body .product-card .product-title,
    html[data-theme] body.store-body .product-item .product-title {
        min-height: 52px;
        padding: 11px 11px 0;
        font-size: .79rem;
        line-height: 1.5;
    }

    html[data-theme] body.store-body .product-card .product-price,
    html[data-theme] body.store-body .product-item .product-price {
        padding: 7px 11px 0;
        font-size: 1rem;
    }

    html[data-theme] body.store-body .product-card .add-btn,
    html[data-theme] body.store-body .product-item .add-btn {
        min-height: 39px;
        margin: 10px 11px 12px;
        width: calc(100% - 22px);
        font-size: .75rem;
    }
}



/* =======================================================
   FINAL REQUEST OVERRIDES — compact features, cleaner cards,
   desktop hero crop, internal logo home and non-blocking account
   ======================================================= */

/* Account form must never be covered by an endless loading layer. */
.merchant-account-status.is-hidden,
.merchant-account-status[hidden] {
    display: none !important;
}

/* Smaller three trust cards. */
.store-features {
    max-width: 960px;
    gap: 10px;
    margin-bottom: 25px;
}

.store-features .feature-box {
    min-height: 68px;
    padding: 10px 13px;
    gap: 9px;
    border-radius: 15px !important;
}

.store-features .feature-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
}

.store-features .feature-icon i {
    font-size: 1rem;
}

.store-features .feature-info h4 {
    font-size: .84rem;
    line-height: 1.3;
}

.store-features .feature-info p {
    font-size: .7rem;
    line-height: 1.4;
}

/* Desktop only: make the hero a little taller and lift the artwork upward. */
@media (min-width: 901px) {
    .merchant-hero-banner-img,
    .merchant-image-hero:hover .merchant-hero-banner-img,
    .merchant-hero-link:hover .merchant-hero-banner-img {
        height: clamp(250px, 23vw, 370px) !important;
        object-position: center 39% !important;
    }
}

/* Category cards: remove every possible decorative arrow next to the name. */
html[data-theme] body.store-body .cat-card > h3::after,
html[data-theme] body.store-body .cat-card > h4::after,
html[data-theme] body.store-body .cat-card > span::after,
html[data-theme] body.store-body .cat-card .cat-name::after,
html[data-theme] body.store-body .cat-card .category-title::after,
html[data-theme] body.store-body .cat-card .category-arrow,
html[data-theme] body.store-body .cat-card .cat-arrow,
html[data-theme] body.store-body .cat-card > .fa-arrow-left,
html[data-theme] body.store-body .cat-card > .fa-chevron-left,
html[data-theme] body.store-body .cat-card > .fa-angle-left {
    content: none !important;
    display: none !important;
}

/* Premium offer cards: category label removed and image/content clearly structured. */
html[data-theme] body.store-body .product-card .merchant-category-chip,
html[data-theme] body.store-body .product-card .product-category,
html[data-theme] body.store-body .product-card .category-name,
html[data-theme] body.store-body .product-card .product-category-name,
html[data-theme] body.store-body .product-card .category-label,
html[data-theme] body.store-body .product-card [data-product-category],
html[data-theme] body.store-body .product-item .merchant-category-chip,
html[data-theme] body.store-body .product-item .product-category,
html[data-theme] body.store-body .product-item .category-name,
html[data-theme] body.store-body .product-item .product-category-name,
html[data-theme] body.store-body .product-item .category-label,
html[data-theme] body.store-body .product-item [data-product-category] {
    display: none !important;
}

html[data-theme] body.store-body .product-card,
html[data-theme] body.store-body .product-item {
    position: relative;
    padding-top: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--merchant-primary) 13%, var(--merchant-border)) !important;
    border-radius: 25px !important;
    background: var(--merchant-surface) !important;
    box-shadow: 0 14px 34px rgba(31, 24, 52, .085) !important;
}

html[data-theme] body.store-body .product-card::after,
html[data-theme] body.store-body .product-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .45);
    pointer-events: none;
    background: none;
    height: auto;
    opacity: 1;
}

html[data-theme] body.store-body .product-card .product-img,
html[data-theme] body.store-body .product-item .product-img,
html[data-theme] body.store-body .product-card > img,
html[data-theme] body.store-body .product-item > img {
    width: calc(100% - 18px) !important;
    height: 215px;
    margin: 9px 9px 0;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--merchant-primary) 8%, var(--merchant-border)) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 50% 28%, rgba(109, 67, 255, .13), transparent 48%),
        linear-gradient(145deg, var(--merchant-surface-soft), color-mix(in srgb, var(--merchant-surface-soft) 92%, var(--merchant-primary))) !important;
    transition: transform .24s cubic-bezier(.2, .75, .3, 1) !important;
}

html[data-theme] body.store-body .product-card:hover .product-img,
html[data-theme] body.store-body .product-item:hover .product-img,
html[data-theme] body.store-body .product-card:hover > img,
html[data-theme] body.store-body .product-item:hover > img {
    transform: scale(1.025);
}

html[data-theme] body.store-body .product-card .product-title,
html[data-theme] body.store-body .product-item .product-title {
    min-height: 61px;
    padding: 15px 16px 0;
    color: var(--merchant-text) !important;
    font-size: .98rem;
    font-weight: 650 !important;
    line-height: 1.55;
}

html[data-theme] body.store-body .product-card .product-price,
html[data-theme] body.store-body .product-item .product-price {
    align-self: flex-start;
    width: auto;
    margin: 8px 16px 0;
    padding: 6px 10px;
    border: 1px solid rgba(109, 67, 255, .12);
    border-radius: 11px;
    background: rgba(109, 67, 255, .075);
    color: var(--merchant-primary) !important;
    font-size: 1.08rem;
    font-weight: 800 !important;
    line-height: 1.2;
}

html[data-theme] body.store-body .product-card .add-btn,
html[data-theme] body.store-body .product-item .add-btn {
    min-height: 44px;
    margin: 13px 16px 16px;
    width: calc(100% - 32px);
    border-radius: 14px !important;
    box-shadow: 0 10px 22px rgba(109, 67, 255, .19);
}

html[data-theme] body.store-body .product-card:hover,
html[data-theme] body.store-body .product-item:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(109, 67, 255, .26) !important;
    box-shadow: 0 23px 48px rgba(39, 24, 72, .14) !important;
}

html[data-theme="dark"] body.store-body .product-card::after,
html[data-theme="dark"] body.store-body .product-item::after {
    border-color: rgba(255, 255, 255, .055);
}

@media (max-width: 768px) {
    .store-features {
        gap: 6px;
        margin-bottom: 21px;
    }

    .store-features .feature-box {
        min-height: 80px;
        padding: 8px 4px;
        gap: 5px;
        border-radius: 13px !important;
    }

    .store-features .feature-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-radius: 9px;
    }

    .store-features .feature-icon i {
        font-size: .88rem;
    }

    .store-features .feature-info h4 {
        font-size: .68rem;
    }

    .store-features .feature-info p {
        font-size: .56rem;
        line-height: 1.3;
    }

    html[data-theme] body.store-body .product-card,
    html[data-theme] body.store-body .product-item {
        border-radius: 19px !important;
    }

    html[data-theme] body.store-body .product-card .product-img,
    html[data-theme] body.store-body .product-item .product-img,
    html[data-theme] body.store-body .product-card > img,
    html[data-theme] body.store-body .product-item > img {
        width: calc(100% - 12px) !important;
        height: 158px;
        margin: 6px 6px 0;
        padding: 8px;
        border-radius: 14px !important;
    }

    html[data-theme] body.store-body .product-card .product-title,
    html[data-theme] body.store-body .product-item .product-title {
        min-height: 50px;
        padding: 10px 10px 0;
        font-size: .78rem;
    }

    html[data-theme] body.store-body .product-card .product-price,
    html[data-theme] body.store-body .product-item .product-price {
        margin: 7px 10px 0;
        padding: 5px 8px;
        border-radius: 9px;
        font-size: .92rem;
    }

    html[data-theme] body.store-body .product-card .add-btn,
    html[data-theme] body.store-body .product-item .add-btn {
        min-height: 39px;
        margin: 9px 10px 11px;
        width: calc(100% - 20px);
        border-radius: 11px !important;
        font-size: .73rem;
    }
}

/* =======================================================
   MOBILE TRUST CARDS — keep all three cards on one row
   ======================================================= */
@media (max-width: 768px) {
    html[data-theme] body.store-body .store-features {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: 1fr;
        width: 100%;
        max-width: none;
        gap: 5px !important;
    }

    html[data-theme] body.store-body .store-features .feature-box {
        min-width: 0;
        min-height: 94px !important;
        padding: 7px 3px !important;
        gap: 5px !important;
        justify-content: flex-start;
        border-radius: 13px !important;
    }

    html[data-theme] body.store-body .store-features .feature-icon {
        width: 30px !important;
        height: 30px !important;
        flex: 0 0 30px !important;
        border-radius: 9px !important;
    }

    html[data-theme] body.store-body .store-features .feature-icon i {
        font-size: .82rem !important;
    }

    html[data-theme] body.store-body .store-features .feature-info {
        width: 100%;
        min-width: 0;
    }

    html[data-theme] body.store-body .store-features .feature-info h4 {
        font-size: .62rem !important;
        line-height: 1.35 !important;
        white-space: normal;
    }

    html[data-theme] body.store-body .store-features .feature-info p {
        margin-top: 2px !important;
        font-size: .50rem !important;
        line-height: 1.38 !important;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    html[data-theme] body.store-body .store-features {
        gap: 4px !important;
    }

    html[data-theme] body.store-body .store-features .feature-box {
        min-height: 90px !important;
        padding-inline: 2px !important;
    }

    html[data-theme] body.store-body .store-features .feature-info h4 {
        font-size: .58rem !important;
    }

    html[data-theme] body.store-body .store-features .feature-info p {
        font-size: .46rem !important;
    }
}


/* =======================================================
   FINAL PRODUCT CARD FIX — no category label, cleaner offer card
   ======================================================= */
html[data-theme] body.store-body .product-card .product-category-badge,
html[data-theme] body.store-body .product-item .product-category-badge,
html[data-theme] body.store-body .product-card .merchant-category-chip,
html[data-theme] body.store-body .product-item .merchant-category-chip,
html[data-theme] body.store-body .product-card .product-category,
html[data-theme] body.store-body .product-item .product-category,
html[data-theme] body.store-body .product-card .category-name,
html[data-theme] body.store-body .product-item .category-name,
html[data-theme] body.store-body .product-card .product-category-name,
html[data-theme] body.store-body .product-item .product-category-name,
html[data-theme] body.store-body .product-card .category-label,
html[data-theme] body.store-body .product-item .category-label,
html[data-theme] body.store-body .product-card [data-product-category],
html[data-theme] body.store-body .product-item [data-product-category] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html[data-theme] body.store-body .product-card,
html[data-theme] body.store-body .product-item {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--merchant-primary) 14%, var(--merchant-border)) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--merchant-surface) 98%, transparent), var(--merchant-surface)) !important;
    box-shadow: 0 12px 30px rgba(31, 25, 48, .08) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

html[data-theme] body.store-body .product-card::after,
html[data-theme] body.store-body .product-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 92% 0%, rgba(109, 67, 255, .10), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 35%);
    border: 1px solid rgba(255, 255, 255, .45);
}

html[data-theme] body.store-body .product-card > *,
html[data-theme] body.store-body .product-item > * {
    position: relative;
    z-index: 1;
}

html[data-theme] body.store-body .product-card .product-img,
html[data-theme] body.store-body .product-item .product-img,
html[data-theme] body.store-body .product-card > img,
html[data-theme] body.store-body .product-item > img {
    width: calc(100% - 16px) !important;
    height: 218px !important;
    margin: 8px 8px 0 !important;
    padding: 14px !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 17px !important;
    background:
        radial-gradient(circle at 50% 35%, rgba(109, 67, 255, .12), transparent 47%),
        color-mix(in srgb, var(--merchant-surface-soft) 94%, var(--merchant-primary)) !important;
    transition: transform .22s ease !important;
}

html[data-theme] body.store-body .product-card .product-title,
html[data-theme] body.store-body .product-item .product-title {
    order: 2;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 14px 15px 0 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--merchant-text) !important;
    font-size: .96rem !important;
    font-weight: 650 !important;
    line-height: 1.55 !important;
}

html[data-theme] body.store-body .product-card .product-price,
html[data-theme] body.store-body .product-item .product-price {
    order: 3;
    align-self: flex-start;
    margin: 9px 15px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--merchant-primary) !important;
    font-size: 1.18rem !important;
    font-weight: 800 !important;
}

html[data-theme] body.store-body .product-card .add-btn,
html[data-theme] body.store-body .product-item .add-btn {
    order: 4;
    min-height: 43px !important;
    width: calc(100% - 30px) !important;
    margin: 13px 15px 15px !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, var(--merchant-primary), #835fff) !important;
    box-shadow: 0 9px 20px rgba(109, 67, 255, .20) !important;
}

@media (hover: hover) and (pointer: fine) {
    html[data-theme] body.store-body .product-card:hover,
    html[data-theme] body.store-body .product-item:hover {
        transform: translateY(-5px) !important;
        border-color: rgba(109, 67, 255, .28) !important;
        box-shadow: 0 21px 46px rgba(42, 27, 72, .14) !important;
    }

    html[data-theme] body.store-body .product-card:hover .product-img,
    html[data-theme] body.store-body .product-item:hover .product-img,
    html[data-theme] body.store-body .product-card:hover > img,
    html[data-theme] body.store-body .product-item:hover > img {
        transform: scale(1.025) !important;
    }
}

html[data-theme="dark"] body.store-body .product-card::after,
html[data-theme="dark"] body.store-body .product-item::after {
    border-color: rgba(255, 255, 255, .055);
    background:
        radial-gradient(circle at 92% 0%, rgba(139, 92, 246, .13), transparent 31%),
        linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 35%);
}

@media (max-width: 768px) {
    html[data-theme] body.store-body .product-card,
    html[data-theme] body.store-body .product-item {
        border-radius: 18px !important;
    }

    html[data-theme] body.store-body .product-card .product-img,
    html[data-theme] body.store-body .product-item .product-img,
    html[data-theme] body.store-body .product-card > img,
    html[data-theme] body.store-body .product-item > img {
        width: calc(100% - 10px) !important;
        height: 156px !important;
        margin: 5px 5px 0 !important;
        padding: 8px !important;
        border-radius: 14px !important;
    }

    html[data-theme] body.store-body .product-card .product-title,
    html[data-theme] body.store-body .product-item .product-title {
        min-height: 47px !important;
        padding: 9px 9px 0 !important;
        font-size: .78rem !important;
        line-height: 1.48 !important;
    }

    html[data-theme] body.store-body .product-card .product-price,
    html[data-theme] body.store-body .product-item .product-price {
        margin: 7px 9px 0 !important;
        font-size: .94rem !important;
    }

    html[data-theme] body.store-body .product-card .add-btn,
    html[data-theme] body.store-body .product-item .add-btn {
        width: calc(100% - 18px) !important;
        min-height: 38px !important;
        margin: 9px 9px 10px !important;
        border-radius: 10px !important;
        font-size: .72rem !important;
    }
}


/* =======================================================
   Arabic type rendering + resilient product loading state
   ======================================================= */
html,
body,
button,
input,
select,
textarea,
a,
p,
span,
label,
h1,
h2,
h3,
h4,
h5,
h6,
strong,
small {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures contextual;
    font-feature-settings: "kern" 1, "liga" 1, "rlig" 1, "calt" 1;
    font-synthesis: none;
}

.products-load-error {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    min-height: 220px;
    margin: 0 auto;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
}

.products-load-error > i {
    font-size: 2rem;
    color: var(--brand-color);
}

.products-load-error h3,
.products-load-error p {
    margin: 0;
}

.products-load-error p {
    color: var(--text-muted);
}

.products-load-error .btn-primary {
    margin-top: 8px;
}

/* =======================================================
   Product pages, category pages, live search & purple scroll
   ======================================================= */
:root {
    --merchant-scroll-thumb: linear-gradient(180deg, #8b5cf6, #6d28d9);
    --merchant-scroll-track: color-mix(in srgb, var(--bg-color) 88%, #ede9fe 12%);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #7c3aed var(--merchant-scroll-track);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #7c3aed transparent;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--merchant-scroll-track);
}

::-webkit-scrollbar-thumb {
    min-height: 42px;
    border: 3px solid var(--merchant-scroll-track);
    border-radius: 999px;
    background: linear-gradient(180deg, #9b7bff 0%, #7c3aed 48%, #5b21b6 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 3px 10px rgba(91,33,182,.24);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #aa8dff 0%, #8b5cf6 48%, #6d28d9 100%);
}

::-webkit-scrollbar-corner {
    background: var(--merchant-scroll-track);
}

.search-box {
    position: relative;
    overflow: visible !important;
    z-index: 110;
}

.search-suggestions[hidden] {
    display: none !important;
}

.search-suggestions {
    position: absolute;
    z-index: 2000;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    max-height: min(520px, 68vh);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--brand-color) 18%, var(--border-color));
    border-radius: 18px;
    background: color-mix(in srgb, var(--card-bg) 96%, transparent);
    box-shadow: 0 24px 60px rgba(36, 21, 51, .18), 0 8px 22px rgba(109, 40, 217, .08);
    backdrop-filter: blur(20px) saturate(1.12);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    transform-origin: top center;
    animation: merchantSearchDrop .16s ease-out both;
}

@keyframes merchantSearchDrop {
    from { opacity: 0; transform: translateY(-6px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 7px 9px;
    border-radius: 13px;
    color: var(--text-main);
    transition: background .16s ease, transform .16s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible {
    background: color-mix(in srgb, var(--brand-color) 9%, var(--card-bg));
    transform: translateX(-2px);
}

.search-suggestion-item img,
.search-suggestion-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    object-fit: contain;
    padding: 4px;
}

.search-suggestion-icon {
    color: var(--brand-color);
    font-size: 1.15rem;
}

.search-suggestion-copy {
    min-width: 0;
}

.search-suggestion-copy strong,
.search-suggestion-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-copy strong {
    font-size: .88rem;
    font-weight: 700;
}

.search-suggestion-copy small {
    margin-top: 3px;
    color: var(--text-muted);
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: .74rem;
}

.search-suggestion-arrow {
    color: var(--brand-color);
    font-size: .75rem;
    opacity: .7;
}

.search-suggestions-empty {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
}

.search-suggestions-empty i {
    color: var(--brand-color);
    font-size: 1.4rem;
}

.search-suggestions-all {
    width: 100%;
    min-height: 42px;
    margin-top: 5px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(109,40,217,.16));
    color: var(--brand-color);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.search-suggestions-all strong {
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand-color);
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: .72rem;
}

.merchant-route-page[hidden] {
    display: none !important;
}

body.product-view .main-content-area > .container:not(.product-page-container),
body.category-view .main-content-area > .container:not(.category-page-container),
body.search-view .main-content-area > .container:not(.category-page-container) {
    display: none !important;
}

body.product-view .categories-nav,
body.category-view .categories-nav,
body.search-view .categories-nav {
    display: none !important;
}

.merchant-product-page,
.merchant-category-page {
    min-height: 58vh;
    padding: 28px 0 72px;
}

.merchant-route-loading,
.merchant-route-error,
.merchant-route-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: var(--text-muted);
}

.merchant-route-loading i,
.merchant-route-error > i,
.merchant-route-empty > i {
    color: var(--brand-color);
    font-size: 2rem;
}

.merchant-route-error h1,
.merchant-route-error p,
.merchant-route-empty h3,
.merchant-route-empty p {
    margin: 0;
}

.merchant-route-error .btn-primary {
    margin-top: 10px;
}

.merchant-breadcrumb {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: .82rem;
}

.merchant-breadcrumb button,
.merchant-breadcrumb a {
    border: 0;
    background: transparent;
    color: var(--brand-color);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.merchant-breadcrumb i {
    font-size: .58rem;
    opacity: .55;
}

.merchant-product-detail-card {
    display: grid;
    grid-template-columns: minmax(310px, .9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 54px);
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background: var(--card-bg);
    box-shadow: 0 24px 65px rgba(34, 20, 52, .10);
}

.merchant-product-gallery {
    min-height: 420px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-color) 10%, var(--border-color));
    border-radius: 24px;
    background:
        radial-gradient(circle at 78% 18%, rgba(139,92,246,.11), transparent 33%),
        color-mix(in srgb, var(--bg-color) 75%, var(--card-bg));
}

.merchant-product-gallery img {
    width: 100%;
    height: 100%;
    max-height: 510px;
    object-fit: contain;
    padding: clamp(20px, 5vw, 54px);
    transition: transform .28s ease;
}

.merchant-product-gallery:hover img {
    transform: scale(1.025);
}

.merchant-product-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.merchant-product-detail-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.merchant-product-category-link,
.merchant-stock-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.merchant-product-category-link {
    border: 1px solid rgba(124,58,237,.20);
    background: rgba(124,58,237,.075);
    color: var(--brand-color);
}

.merchant-stock-state.in {
    border: 1px solid rgba(18,161,80,.20);
    background: rgba(18,161,80,.075);
    color: #13834a;
}

.merchant-stock-state.out {
    border: 1px solid rgba(239,68,68,.20);
    background: rgba(239,68,68,.075);
    color: #dc2626;
}

.merchant-product-detail-info h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.25;
    letter-spacing: -.035em;
}

.merchant-product-detail-price {
    margin: 18px 0;
    color: var(--brand-color);
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 800;
    direction: ltr;
    text-align: right;
}

.merchant-product-detail-price span {
    font-size: .85rem;
    letter-spacing: .04em;
}

.merchant-product-description {
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.merchant-product-description h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.merchant-product-description p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.95;
    white-space: normal;
}

.merchant-product-delivery-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 15px;
    background: color-mix(in srgb, var(--brand-color) 6%, var(--bg-color));
}

.merchant-product-delivery-note > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 13px;
    background: var(--brand-color);
    color: #fff;
}

.merchant-product-delivery-note strong,
.merchant-product-delivery-note span {
    display: block;
}

.merchant-product-delivery-note span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: .8rem;
}

.merchant-product-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.merchant-product-detail-actions button {
    min-height: 50px;
}

.merchant-product-add {
    min-width: 190px;
}

.merchant-related-section {
    margin-top: 44px;
}

.merchant-route-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.merchant-route-section-title span,
.merchant-category-kicker {
    color: var(--brand-color);
    font-family: Inter, sans-serif;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.merchant-route-section-title h2 {
    margin: 4px 0 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.merchant-route-section-title > a,
.merchant-route-section-title > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--brand-color);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.merchant-category-hero,
.merchant-search-results-head {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: clamp(20px, 4vw, 34px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-color) 18%, var(--border-color));
    border-radius: 25px;
    background:
        radial-gradient(circle at 12% 10%, rgba(139,92,246,.16), transparent 35%),
        linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 94%, #ede9fe), var(--card-bg));
    box-shadow: 0 20px 55px rgba(62, 35, 106, .09);
}

.merchant-search-results-head {
    grid-template-columns: minmax(0, 1fr) auto;
}

.merchant-category-hero-image {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(124,58,237,.15);
    border-radius: 24px;
    background: var(--card-bg);
    color: var(--brand-color);
    font-size: 3.5rem;
    box-shadow: 0 14px 34px rgba(73, 39, 123, .10);
}

.merchant-category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 13px;
}

.merchant-category-hero h1,
.merchant-search-results-head h1 {
    margin: 5px 0 8px;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.merchant-category-hero p,
.merchant-search-results-head p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.85;
}

.merchant-category-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124,58,237,.08);
    color: var(--brand-color);
    font-size: .78rem;
    font-weight: 700;
}

.merchant-modern-product-card {
    border-radius: 20px !important;
}

.product-card-media-link {
    display: block;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-color) 72%, var(--card-bg));
}

.product-card-media-link .product-img {
    transition: transform .25s ease;
}

.merchant-modern-product-card:hover .product-card-media-link .product-img {
    transform: scale(1.035);
}

.product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 13px 14px 14px;
}

.product-title-link {
    color: inherit;
}

.product-title-link .product-title {
    padding: 0 !important;
    margin: 0 !important;
}

.product-card-description {
    display: -webkit-box;
    min-height: 2.9em;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.48;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-content .product-price {
    padding: 11px 0 0 !important;
    margin-top: auto;
    margin-bottom: 0;
}

.product-card-actions {
    display: block;
    margin-top: 10px;
}

.product-card-actions .add-btn {
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
}


html[data-theme="dark"] .search-suggestions,
html[data-theme="dark"] .merchant-product-detail-card,
html[data-theme="dark"] .merchant-category-hero,
html[data-theme="dark"] .merchant-search-results-head {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

html[data-theme="dark"] .merchant-stock-state.in {
    color: #86efac;
}

html[data-theme="dark"] .merchant-stock-state.out {
    color: #fca5a5;
}

@media (max-width: 900px) {
    .merchant-product-detail-card {
        grid-template-columns: 1fr;
    }

    .merchant-product-gallery {
        min-height: 340px;
    }
}

@media (max-width: 720px) {
    ::-webkit-scrollbar {
        width: 7px;
        height: 7px;
    }

    .search-suggestions {
        position: fixed;
        top: 105px;
        right: 12px;
        left: 12px;
        max-height: min(62vh, 480px);
        border-radius: 16px;
    }

    .merchant-product-page,
    .merchant-category-page {
        padding-top: 18px;
        padding-bottom: 92px;
    }

    .merchant-product-detail-card {
        gap: 18px;
        padding: 14px;
        border-radius: 21px;
    }

    .merchant-product-gallery {
        min-height: 285px;
        border-radius: 18px;
    }

    .merchant-product-gallery img {
        max-height: 360px;
        padding: 24px;
    }

    .merchant-product-detail-info h1 {
        font-size: 1.65rem;
    }

    .merchant-product-detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .merchant-product-detail-actions button,
    .merchant-product-add {
        width: 100%;
        min-width: 0;
    }

    .merchant-category-hero,
    .merchant-search-results-head {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        border-radius: 20px;
    }

    .merchant-category-hero-image {
        width: 105px;
        height: 105px;
        border-radius: 18px;
        font-size: 2.5rem;
    }

    .merchant-search-results-head .btn-secondary {
        width: 100%;
    }

    .merchant-route-section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .search-suggestion-item {
        grid-template-columns: 42px minmax(0, 1fr) 20px;
        min-height: 56px;
    }

    .search-suggestion-item img,
    .search-suggestion-icon {
        width: 42px;
        height: 42px;
    }

    .merchant-product-detail-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-card-actions .add-btn {
        font-size: .72rem !important;
    }
}

/* =======================================================
   FINAL RESPONSIVE HARDENING — mobile/tablet storefront
   ======================================================= */
html,
body.store-body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body.store-body img,
body.store-body svg,
body.store-body video,
body.store-body canvas,
body.store-body iframe {
    max-width: 100%;
}

body.store-body .header-wrapper > *,
body.store-body .products-grid > *,
body.store-body .categories-grid > *,
body.store-body .footer-grid > *,
body.store-body .tracking-layout > *,
body.store-body .merchant-product-detail-card > *,
body.store-body .merchant-account-native-card > * {
    min-width: 0;
}

body.store-body h1,
body.store-body h2,
body.store-body h3,
body.store-body h4,
body.store-body p,
body.store-body a,
body.store-body span,
body.store-body strong {
    overflow-wrap: anywhere;
}

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

@media (max-width: 1024px) {
    html[data-theme] body.store-body .container {
        width: min(100% - 28px, 1320px) !important;
    }

    html[data-theme] body.store-body .header-wrapper {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
    }

    html[data-theme] body.store-body .header-wrapper .search-box {
        grid-column: 1 / -1 !important;
        order: 3 !important;
        width: 100% !important;
    }

    html[data-theme] body.store-body .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-theme] body.store-body .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-theme] body.store-body .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    html[data-theme] body.store-body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
        overscroll-behavior-x: none;
    }

    html[data-theme] body.store-body .container,
    html[data-theme] body.store-body .main-content-area > .container:first-child {
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }

    html[data-theme] body.store-body .top-bar {
        padding: 7px 0 !important;
        font-size: .68rem !important;
    }

    html[data-theme] body.store-body .top-bar-inner,
    html[data-theme] body.store-body .top-bar-right {
        width: 100%;
        justify-content: center !important;
        gap: 8px !important;
        white-space: nowrap;
    }

    html[data-theme] body.store-body .top-bar-right > * {
        min-width: 0;
    }

    html[data-theme] body.store-body .top-mini {
        padding-inline-start: 8px !important;
    }

    html[data-theme] body.store-body .main-header {
        top: 0 !important;
        padding: 9px 0 10px !important;
    }

    html[data-theme] body.store-body .header-wrapper {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 9px 8px !important;
    }

    html[data-theme] body.store-body .logo-area {
        width: fit-content;
        max-width: 100%;
        min-width: 0 !important;
        gap: 8px !important;
    }

    html[data-theme] body.store-body .main-logo-img {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px;
    }

    html[data-theme] body.store-body .brand-text {
        min-width: 0;
    }

    html[data-theme] body.store-body .brand-name {
        max-width: 150px;
        overflow: hidden;
        font-size: clamp(.95rem, 4.2vw, 1.12rem) !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[data-theme] body.store-body .user-actions {
        gap: 6px !important;
    }

    html[data-theme] body.store-body .action-btn.icon-only,
    html[data-theme] body.store-body .cart-btn {
        width: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        border-radius: 12px !important;
    }

    html[data-theme] body.store-body .search-box {
        grid-column: 1 / -1 !important;
        order: 3 !important;
        min-height: 45px !important;
        border-radius: 14px !important;
    }

    html[data-theme] body.store-body .search-box input,
    html[data-theme] body.store-body .form-control,
    html[data-theme] body.store-body .merchant-account-input-wrap input,
    html[data-theme] body.store-body select,
    html[data-theme] body.store-body textarea {
        min-width: 0;
        font-size: 16px !important;
    }

    html[data-theme] body.store-body .search-box input {
        padding-inline: 12px !important;
    }

    html[data-theme] body.store-body .search-box button {
        width: 48px !important;
        min-width: 48px !important;
    }

    html[data-theme] body.store-body .search-suggestions {
        position: absolute !important;
        top: calc(100% + 7px) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: min(56dvh, 420px) !important;
        padding: 6px !important;
        border-radius: 14px !important;
    }

    html[data-theme] body.store-body .categories-nav {
        position: relative;
        z-index: 90;
    }

    html[data-theme] body.store-body .nav-links {
        width: 100%;
        padding-inline: 2px;
        scroll-snap-type: inline proximity;
        overscroll-behavior-inline: contain;
    }

    html[data-theme] body.store-body .nav-links li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    html[data-theme] body.store-body .nav-links a {
        min-height: 42px;
        padding: 10px 12px !important;
        font-size: .78rem !important;
    }

    html[data-theme] body.store-body .main-content-area {
        padding-top: 12px !important;
    }

    html[data-theme] body.store-body .hero-banner.merchant-image-hero {
        margin-bottom: 15px !important;
        border-radius: 17px !important;
    }

    html[data-theme] body.store-body .merchant-hero-banner-img {
        width: 100% !important;
        height: clamp(145px, 45vw, 210px) !important;
        object-position: center 50% !important;
    }

    html[data-theme] body.store-body .store-features {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        margin-bottom: 21px !important;
    }

    html[data-theme] body.store-body .store-features .feature-box {
        min-width: 0 !important;
        min-height: 88px !important;
        padding: 7px 3px !important;
        gap: 4px !important;
        border-radius: 12px !important;
    }

    html[data-theme] body.store-body .store-features .feature-icon {
        width: 29px !important;
        height: 29px !important;
        flex: 0 0 29px !important;
        border-radius: 9px !important;
    }

    html[data-theme] body.store-body .store-features .feature-icon i {
        font-size: .8rem !important;
    }

    html[data-theme] body.store-body .store-features .feature-info h4 {
        font-size: .61rem !important;
        line-height: 1.35 !important;
    }

    html[data-theme] body.store-body .store-features .feature-info p {
        margin-top: 2px !important;
        font-size: .49rem !important;
        line-height: 1.35 !important;
    }

    html[data-theme] body.store-body .section-title {
        margin: 5px 0 13px !important;
    }

    html[data-theme] body.store-body .section-title h2,
    html[data-theme] body.store-body .section-title h3 {
        font-size: 1.12rem !important;
    }

    html[data-theme] body.store-body .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        margin-bottom: 25px !important;
    }

    html[data-theme] body.store-body .cat-card {
        min-width: 0 !important;
        min-height: 164px !important;
        padding: 7px !important;
        border-radius: 17px !important;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        width: 100% !important;
        height: 108px !important;
        flex-basis: 108px !important;
        border-radius: 13px !important;
    }

    html[data-theme] body.store-body .cat-card > h3,
    html[data-theme] body.store-body .cat-card > h4,
    html[data-theme] body.store-body .cat-card > span,
    html[data-theme] body.store-body .cat-card .cat-name,
    html[data-theme] body.store-body .cat-card .category-title {
        width: 100%;
        min-height: 34px !important;
        padding: 6px 7px !important;
        font-size: .73rem !important;
        line-height: 1.3 !important;
    }

    html[data-theme] body.store-body .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    html[data-theme] body.store-body .product-card,
    html[data-theme] body.store-body .product-item {
        min-width: 0 !important;
        border-radius: 17px !important;
    }

    html[data-theme] body.store-body .product-card-media-link {
        width: 100%;
    }

    html[data-theme] body.store-body .product-card .product-img,
    html[data-theme] body.store-body .product-item .product-img,
    html[data-theme] body.store-body .product-card > img,
    html[data-theme] body.store-body .product-item > img {
        width: calc(100% - 10px) !important;
        height: auto !important;
        aspect-ratio: 1 / .86;
        margin: 5px 5px 0 !important;
        padding: 7px !important;
        object-fit: contain !important;
        border-radius: 12px !important;
    }

    html[data-theme] body.store-body .product-card-content {
        min-width: 0;
        padding: 9px 9px 10px !important;
    }

    html[data-theme] body.store-body .product-card .product-title,
    html[data-theme] body.store-body .product-item .product-title,
    html[data-theme] body.store-body .product-title-link .product-title {
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: .73rem !important;
        line-height: 1.45 !important;
    }

    html[data-theme] body.store-body .product-card-description {
        min-height: 2.6em !important;
        margin-top: 5px !important;
        font-size: .64rem !important;
        line-height: 1.35 !important;
    }

    html[data-theme] body.store-body .product-card-content .product-price,
    html[data-theme] body.store-body .product-card .product-price,
    html[data-theme] body.store-body .product-item .product-price {
        width: fit-content;
        max-width: 100%;
        margin: 7px 0 0 !important;
        padding: 5px 7px !important;
        font-size: .86rem !important;
        white-space: nowrap;
    }

    html[data-theme] body.store-body .product-card-actions {
        margin-top: 7px !important;
    }

    html[data-theme] body.store-body .product-card-actions .add-btn,
    html[data-theme] body.store-body .product-card .add-btn,
    html[data-theme] body.store-body .product-item .add-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 8px 5px !important;
        border-radius: 10px !important;
        font-size: .68rem !important;
        line-height: 1.2 !important;
    }

    html[data-theme] body.store-body .contact-cta-section {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 20px 14px !important;
        text-align: center;
        border-radius: 18px !important;
    }

    html[data-theme] body.store-body .contact-cta-content {
        flex-direction: column !important;
        gap: 10px !important;
    }

    html[data-theme] body.store-body .contact-cta-actions,
    html[data-theme] body.store-body .contact-cta-actions a,
    html[data-theme] body.store-body .contact-cta-actions button {
        width: 100% !important;
    }

    html[data-theme] body.store-body .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
        text-align: center;
    }

    html[data-theme] body.store-body .footer-top {
        padding: 34px 0 25px !important;
    }

    html[data-theme] body.store-body .footer-links a,
    html[data-theme] body.store-body .contact-info li,
    html[data-theme] body.store-body .contact-info a {
        overflow-wrap: anywhere;
    }

    html[data-theme] body.store-body .bottom-wrapper {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center;
    }

    html[data-theme] body.store-body .merchant-product-page,
    html[data-theme] body.store-body .merchant-category-page,
    html[data-theme] body.store-body .orders-tracking-page,
    html[data-theme] body.store-body .merchant-account-page {
        padding-top: 16px !important;
        padding-bottom: 94px !important;
    }

    html[data-theme] body.store-body .merchant-product-detail-card {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 11px !important;
        border-radius: 18px !important;
    }

    html[data-theme] body.store-body .merchant-product-gallery {
        min-height: 0 !important;
        aspect-ratio: 1 / .9;
        border-radius: 15px !important;
    }

    html[data-theme] body.store-body .merchant-product-gallery img {
        width: 100%;
        height: 100%;
        max-height: none !important;
        padding: 18px !important;
        object-fit: contain;
    }

    html[data-theme] body.store-body .merchant-product-detail-info h1 {
        font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
        line-height: 1.35 !important;
    }

    html[data-theme] body.store-body .merchant-product-detail-actions,
    html[data-theme] body.store-body .merchant-account-profile-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    html[data-theme] body.store-body .merchant-product-detail-actions > *,
    html[data-theme] body.store-body .merchant-account-profile-actions > * {
        width: 100% !important;
        min-width: 0 !important;
    }

    html[data-theme] body.store-body .merchant-category-hero,
    html[data-theme] body.store-body .merchant-search-results-head {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        padding: 15px !important;
        border-radius: 18px !important;
    }

    html[data-theme] body.store-body .merchant-category-hero-image {
        width: 92px !important;
        height: 92px !important;
        border-radius: 16px !important;
    }

    html[data-theme] body.store-body .tracking-page-head,
    html[data-theme] body.store-body .merchant-account-page-head {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    html[data-theme] body.store-body .tracking-back-btn {
        width: 100%;
        justify-content: center;
    }

    html[data-theme] body.store-body .tracking-layout {
        grid-template-columns: 1fr !important;
    }

    html[data-theme] body.store-body .tracking-form-grid {
        grid-template-columns: 1fr !important;
    }

    html[data-theme] body.store-body .tracking-search-card,
    html[data-theme] body.store-body .tracking-help-card,
    html[data-theme] body.store-body .merchant-account-native-card {
        padding: 15px !important;
        border-radius: 17px !important;
    }

    html[data-theme] body.store-body .merchant-account-profile-grid {
        grid-template-columns: 1fr !important;
    }

    html[data-theme] body.store-body .order-result-head,
    html[data-theme] body.store-body .order-result-actions,
    html[data-theme] body.store-body .tracking-account-row {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    html[data-theme] body.store-body .order-details-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    html[data-theme] body.store-body .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    html[data-theme] body.store-body .cart-sidebar {
        inset: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        padding: max(15px, env(safe-area-inset-top)) 14px calc(15px + env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    html[data-theme] body.store-body .checkout-box {
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        padding: max(14px, env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    html[data-theme] body.store-body .cart-header,
    html[data-theme] body.store-body .modal-header {
        position: sticky;
        top: 0;
        z-index: 4;
        background: var(--card-bg);
    }

    html[data-theme] body.store-body .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    html[data-theme] body.store-body .checkout-preview-item {
        grid-template-columns: 46px minmax(0, 1fr) !important;
    }

    html[data-theme] body.store-body .checkout-preview-item img {
        width: 46px !important;
        height: 46px !important;
    }

    html[data-theme] body.store-body .checkout-preview-controls {
        grid-column: 1 / -1 !important;
        width: 100%;
        justify-content: flex-end !important;
    }

    html[data-theme] body.store-body .mobile-bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        align-items: stretch;
        gap: 2px !important;
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom)) !important;
    }

    html[data-theme] body.store-body .mobile-bottom-nav .nav-item {
        width: 100%;
        min-width: 0 !important;
        min-height: 52px;
        gap: 3px !important;
        padding: 4px 1px;
        font-size: .58rem !important;
        text-align: center;
    }

    html[data-theme] body.store-body .mobile-bottom-nav .nav-item i {
        font-size: 1rem !important;
    }

    html[data-theme] body.store-body .mobile-bottom-nav .nav-item span {
        max-width: 100%;
        overflow: hidden;
        font-size: .57rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[data-theme] body.store-body .fab-whatsapp {
        left: 12px !important;
        bottom: calc(78px + env(safe-area-inset-bottom)) !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 1.45rem !important;
    }
}

@media (max-width: 430px) {
    html[data-theme] body.store-body .container,
    html[data-theme] body.store-body .main-content-area > .container:first-child {
        width: calc(100% - 16px) !important;
    }

    html[data-theme] body.store-body .top-bar-right {
        gap: 5px !important;
        font-size: .62rem;
    }

    html[data-theme] body.store-body .brand-name {
        max-width: 122px;
    }

    html[data-theme] body.store-body .merchant-hero-banner-img {
        height: clamp(135px, 44vw, 185px) !important;
    }

    html[data-theme] body.store-body .cat-card {
        min-height: 151px !important;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 96px !important;
        flex-basis: 96px !important;
    }

    html[data-theme] body.store-body .product-card-description {
        -webkit-line-clamp: 2;
    }

    html[data-theme] body.store-body .order-details-grid {
        grid-template-columns: 1fr !important;
    }

    html[data-theme] body.store-body .order-progress {
        grid-template-columns: repeat(5, 86px) !important;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    html[data-theme] body.store-body .tracking-order-item {
        grid-template-columns: 42px minmax(0, 1fr) !important;
    }

    html[data-theme] body.store-body .tracking-order-item .item-total {
        grid-column: 2 !important;
    }
}

@media (max-width: 340px) {
    html[data-theme] body.store-body .products-grid {
        grid-template-columns: 1fr !important;
    }

    html[data-theme] body.store-body .product-card .product-img,
    html[data-theme] body.store-body .product-item .product-img,
    html[data-theme] body.store-body .product-card > img,
    html[data-theme] body.store-body .product-item > img {
        aspect-ratio: 1 / .72;
    }

    html[data-theme] body.store-body .brand-name {
        max-width: 92px;
        font-size: .9rem !important;
    }

    html[data-theme] body.store-body .top-mini {
        display: none !important;
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
    html[data-theme] body.store-body .checkout-box,
    html[data-theme] body.store-body .cart-sidebar {
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    html[data-theme] body.store-body .merchant-hero-banner-img {
        height: 175px !important;
    }
}



/* =======================================================
   Product purchase layout: price directly above basket button
   ======================================================= */
html[data-theme] body.store-body .product-card-content {
    display: flex !important;
    flex-direction: column !important;
}

html[data-theme] body.store-body .product-card-purchase {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: auto !important;
    gap: 8px !important;
}

html[data-theme] body.store-body .product-card-purchase .product-price {
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .product-card-purchase .product-card-actions {
    order: 2 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

html[data-theme] body.store-body .product-card-purchase .add-btn,
html[data-theme] body.store-body .merchant-product-add {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
}

html[data-theme] body.store-body .product-card-purchase .add-btn i,
html[data-theme] body.store-body .product-card-purchase .add-btn span,
html[data-theme] body.store-body .merchant-product-add i,
html[data-theme] body.store-body .merchant-product-add span {
    margin: 0 !important;
    padding: 0 !important;
}

html[data-theme] body.store-body .product-card-purchase .add-btn i,
html[data-theme] body.store-body .merchant-product-add i {
    flex: 0 0 auto !important;
    font-size: 1em !important;
}

html[data-theme] body.store-body .product-card-purchase .add-btn span,
html[data-theme] body.store-body .merchant-product-add span {
    flex: 0 0 auto !important;
}


/* =======================================================
   COMPLETE COMMERCE UPGRADE — 2026-06-27
   Performance, wishlist, smart sections, shipping, reviews and success UI
   ======================================================= */

html.performance-lite *,
html.performance-lite *::before,
html.performance-lite *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
}

html.performance-lite .glass-effect,
html.performance-lite .glass-card,
html.performance-lite .main-header,
html.performance-lite .search-suggestions,
html.performance-lite .product-card,
html.performance-lite .feature-box,
html.performance-lite .modal-overlay > * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08) !important;
}

html.performance-lite body.store-body,
html.performance-lite[data-theme="light"] body.store-body {
    background: #f6f7fb !important;
}

html.performance-lite[data-theme="dark"] body.store-body {
    background: #0b0712 !important;
}

.smart-products-section,
.recently-viewed-section,
.featured-categories-section,
.products-section {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.wishlist-header-btn,
.product-wishlist-btn,
.product-page-wishlist {
    position: relative;
}

.product-wishlist-btn {
    position: absolute;
    z-index: 12;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--merchant-border, var(--border-color));
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #6b7280;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(20, 20, 40, .10);
}

html[data-theme="dark"] .product-wishlist-btn { background: rgba(23,16,32,.94); color: #d8cfe4; }
.product-wishlist-btn.is-active,
.product-page-wishlist.is-active { color: #e11d48 !important; border-color: rgba(225,29,72,.30) !important; background: rgba(225,29,72,.08) !important; }

.product-card-badges {
    position: absolute;
    z-index: 10;
    top: 14px;
    right: 12px;
    display: grid;
    justify-items: start;
    gap: 6px;
    pointer-events: none;
}
.product-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; color: #fff; box-shadow: 0 5px 16px rgba(0,0,0,.12); }
.product-badge.offer { background: #dc2626; }
.product-badge.bestseller { background: #8b5cf6; }
.product-badge.limited { background: #d97706; }
.product-price-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.product-old-price { color: var(--merchant-muted, var(--text-muted)); font: 500 .78rem Inter, sans-serif; }

.cart-restore-banner {
    position: sticky;
    top: 78px;
    z-index: 980;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    background: #17102b;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: opacity .22s ease, transform .22s ease;
}
.cart-restore-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cart-restore-inner { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-restore-inner > div { display: flex; align-items: center; gap: 10px; }
.cart-restore-inner > div > i { color: #a78bfa; }
.cart-restore-actions button { border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.10); border-radius: 10px; padding: 7px 12px; font-weight: 600; }
.cart-restore-actions button:first-child { background: #6d43ff; }

.smart-home-sections { display: grid; gap: 40px; margin-bottom: 40px; }
.smart-products-section { margin: 20px 0 42px; }
.smart-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.smart-section-head span { display: inline-flex; align-items: center; gap: 7px; color: var(--merchant-primary, var(--brand-color)); font: 700 .72rem Inter, sans-serif; letter-spacing: .08em; }
.smart-section-head h2 { margin: 5px 0 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.smart-scroll-hint { border: 1px solid var(--merchant-border, var(--border-color)); background: var(--merchant-surface, var(--card-bg)); color: var(--merchant-primary, var(--brand-color)); width: 42px; height: 42px; border-radius: 13px; }
.smart-products-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.smart-products-grid .product-card-description { -webkit-line-clamp: 2; }

.load-more-container { display: flex; justify-content: center; padding: 26px 0 0; }
.load-more-container button { min-width: 230px; }
.load-more-container.is-complete button { opacity: .65; }
.search-load-more { display: flex; margin: 26px auto 0; }
.route-load-note { margin-top: 22px; text-align: center; color: var(--merchant-muted, var(--text-muted)); }

.enhanced-gallery { align-self: start; }
.product-main-image-wrap { display: grid; place-items: center; min-height: 420px; border-radius: 22px; background: var(--merchant-placeholder, #f4f4f6); overflow: hidden; }
.product-main-image-wrap img { width: 100%; height: 420px; object-fit: contain; padding: 24px; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.product-gallery-thumb { flex: 0 0 76px; width: 76px; height: 76px; border: 1px solid var(--merchant-border, var(--border-color)); border-radius: 14px; background: var(--merchant-surface, var(--card-bg)); cursor: pointer; overflow: hidden; }
.product-gallery-thumb.is-active { border-color: var(--merchant-primary, var(--brand-color)); box-shadow: 0 0 0 3px rgba(109,67,255,.12); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.merchant-product-pricing { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.merchant-product-pricing del { color: var(--merchant-muted, var(--text-muted)); font: 500 .95rem Inter, sans-serif; }
.enhanced-actions { flex-wrap: wrap; }
.enhanced-actions > * { min-height: 48px; }

.product-specifications-section,
.product-reviews-section { margin-top: 34px; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--merchant-border, var(--border-color)); border-radius: 24px; background: var(--merchant-surface, var(--card-bg)); box-shadow: var(--merchant-shadow-soft, var(--shadow-soft)); }
.product-specifications-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--merchant-border, var(--border-color)); border-radius: 16px; overflow: hidden; }
.product-specifications-grid > div { display: grid; grid-template-columns: minmax(110px,.8fr) 1.2fr; border-bottom: 1px solid var(--merchant-border, var(--border-color)); }
.product-specifications-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.product-specifications-grid dt,
.product-specifications-grid dd { margin: 0; padding: 13px 15px; }
.product-specifications-grid dt { background: var(--merchant-surface-soft, #f8f8fa); color: var(--merchant-muted, var(--text-muted)); font-weight: 600; }
.product-specifications-grid dd { font-weight: 600; }

.product-reviews-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr); gap: 22px; align-items: start; }
.reviews-summary { display: inline-flex; align-items: center; gap: 7px; color: var(--merchant-muted, var(--text-muted)); }
.review-stars { display: inline-flex; gap: 3px; color: #f59e0b; }
.product-reviews-list { display: grid; gap: 12px; }
.product-review-card { padding: 17px; border: 1px solid var(--merchant-border, var(--border-color)); border-radius: 17px; background: var(--merchant-surface-soft, #fafafa); }
.review-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.review-card-head strong,
.review-card-head span { display: block; }
.review-card-head time { color: var(--merchant-muted, var(--text-muted)); font-size: .75rem; }
.verified-purchase { margin-top: 3px; color: var(--merchant-success, #149267); font-size: .72rem; }
.product-review-card p { margin: 10px 0 0; color: var(--merchant-muted, var(--text-muted)); line-height: 1.75; }
.product-review-form { position: sticky; top: 112px; display: grid; gap: 13px; padding: 20px; border: 1px solid var(--merchant-border, var(--border-color)); border-radius: 18px; background: var(--merchant-surface-soft, #fafafa); }
.product-review-form h3,
.product-review-form p { margin: 0; }
.product-review-form p { color: var(--merchant-muted, var(--text-muted)); font-size: .84rem; }
.product-review-form label { display: grid; gap: 7px; font-weight: 600; }
.review-form-message { min-height: 22px; color: var(--merchant-danger, #d94b59); font-size: .82rem; }
.review-form-message.is-success { color: var(--merchant-success, #149267); }
.reviews-empty,
.reviews-loading { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; color: var(--merchant-muted, var(--text-muted)); }

.checkout-delivery-estimate { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(109,67,255,.07); color: var(--merchant-muted, var(--text-muted)); font-size: .84rem; }
.checkout-delivery-estimate i { color: var(--merchant-primary, var(--brand-color)); margin-top: 3px; }

.order-success-card { position: relative; width: min(560px, calc(100% - 28px)); padding: clamp(24px, 5vw, 38px); border-radius: 26px; background: var(--merchant-surface, var(--card-bg)); color: var(--merchant-text, var(--text-main)); box-shadow: 0 28px 80px rgba(0,0,0,.28); text-align: center; }
.order-success-card > .close-modal-btn { position: absolute; top: 14px; left: 14px; }
.order-success-icon { width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: rgba(20,146,103,.12); color: #149267; font-size: 2rem; }
.order-success-kicker { color: var(--merchant-success, #149267); font: 700 .72rem Inter, sans-serif; letter-spacing: .1em; }
.order-success-card h2 { margin: 8px 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.order-success-card > p { color: var(--merchant-muted, var(--text-muted)); }
.success-order-code { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin: 22px 0 14px; padding: 15px; border: 1px dashed rgba(109,67,255,.35); border-radius: 16px; background: rgba(109,67,255,.06); text-align: right; }
.success-order-code span { grid-column: 1 / -1; color: var(--merchant-muted, var(--text-muted)); font-size: .75rem; }
.success-order-code strong { direction: ltr; font: 700 1.05rem Inter, monospace; }
.success-order-code button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: var(--merchant-surface, #fff); color: var(--merchant-primary, #6d43ff); cursor: pointer; }
.success-order-details { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; margin-bottom: 20px; text-align: right; }
.success-order-details > div { padding: 13px; border: 1px solid var(--merchant-border, var(--border-color)); border-radius: 14px; }
.success-order-details span,
.success-order-details strong { display: block; }
.success-order-details span { color: var(--merchant-muted, var(--text-muted)); font-size: .75rem; margin-bottom: 4px; }
.success-order-details strong { font-size: .88rem; }
.order-success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.order-success-actions > * { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; }

.merchant-toast { position: fixed; z-index: 100000; left: 50%; bottom: 88px; display: flex; align-items: center; gap: 9px; max-width: min(440px, calc(100% - 24px)); padding: 12px 17px; border-radius: 14px; background: #17102b; color: #fff; box-shadow: 0 16px 45px rgba(0,0,0,.25); opacity: 0; transform: translate(-50%, 14px); transition: opacity .22s ease, transform .22s ease; }
.merchant-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.merchant-toast.is-error i { color: #fb7185; }
.merchant-toast.is-warning i { color: #fbbf24; }
.merchant-toast.is-success i { color: #4ade80; }

body.wishlist-view:not(.account-view):not(.tracking-view) .main-content-area > .container:not(.category-page-container),
body.wishlist-view:not(.account-view):not(.tracking-view) .categories-nav { display: none !important; }
.wishlist-page-head .merchant-category-kicker { color: #e11d48; }

@media (max-width: 1100px) {
    .smart-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .cart-restore-banner { top: 64px; }
    .cart-restore-inner { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
    .cart-restore-inner > div:first-child { align-items: flex-start; }
    .cart-restore-actions { flex: 0 0 auto; }
    .smart-home-sections { gap: 20px; }
    .smart-products-section { margin: 12px 0 28px; }
    .smart-products-grid { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 12px; }
    .smart-products-grid > .product-card { flex: 0 0 min(78vw, 270px); scroll-snap-align: start; }
    .product-main-image-wrap { min-height: 300px; }
    .product-main-image-wrap img { height: 300px; padding: 16px; }
    .product-specifications-grid { grid-template-columns: 1fr; }
    .product-specifications-grid > div,
    .product-specifications-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--merchant-border, var(--border-color)); }
    .product-specifications-grid > div:last-child { border-bottom: 0; }
    .product-reviews-layout { grid-template-columns: 1fr; }
    .product-review-form { position: static; }
    .success-order-details { grid-template-columns: 1fr; }
    .order-success-actions { flex-direction: column; }
    .order-success-actions > * { width: 100%; }
    .wishlist-header-btn { display: none !important; }
}

@media (max-width: 430px) {
    .cart-restore-inner { gap: 8px; }
    .cart-restore-inner > div:first-child span { font-size: .76rem; line-height: 1.5; }
    .cart-restore-actions button:first-child { font-size: .72rem; padding-inline: 9px; }
    .product-specifications-grid > div { grid-template-columns: 1fr; }
    .product-specifications-grid dt { padding-bottom: 5px; }
    .product-specifications-grid dd { padding-top: 5px; }
    .review-card-head { flex-direction: column; }
}


/* =======================================================
   BERLIN GOE COMMERCE SUITE V4
   Filters, coupons, quick-buy, upgraded cart, FAQ, zoom
   ======================================================= */
:root {
    --commerce-primary: #6d43ff;
    --commerce-primary-dark: #4f2ad1;
    --commerce-soft: #f4f1ff;
    --commerce-green: #0f9f6e;
    --commerce-orange: #f59e0b;
    --commerce-red: #dc3545;
    --commerce-free-shipping: 1200;
}
.merchant-announcement { background:#171129; color:#fff; min-height:38px; display:flex; align-items:center; position:relative; z-index:1002; }
.merchant-announcement-inner { display:flex; align-items:center; justify-content:center; gap:14px; min-height:38px; }
.announcement-track { display:flex; align-items:center; justify-content:center; gap:34px; font-size:.8rem; font-weight:600; white-space:nowrap; overflow:hidden; }
.announcement-track span { display:inline-flex; align-items:center; gap:7px; }
.announcement-track i { color:#a78bfa; }
.announcement-track strong { color:#fff; font-family:Inter,sans-serif; }
#closeAnnouncementBtn { position:absolute; inset-inline-end:16px; border:0; background:transparent; color:#fff; cursor:pointer; width:28px; height:28px; border-radius:50%; }

.mobile-filter-toggle { display:none; }
.merchant-filter-panel { width:100%; display:flex; align-items:flex-end; justify-content:space-between; gap:14px; padding:14px; border:1px solid var(--merchant-border,var(--border-color)); border-radius:18px; background:var(--merchant-surface,#fff); box-shadow:var(--shadow-soft); }
.filter-result-row { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.filter-controls { display:flex; align-items:flex-end; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.filter-controls label { display:grid; gap:5px; color:var(--text-muted); font-size:.72rem; font-weight:700; }
.filter-controls .filter-select, .filter-number input { min-height:42px; border:1px solid var(--merchant-border,var(--border-color)); background:var(--merchant-input,var(--card-bg)); color:var(--text-main); border-radius:12px; padding:0 12px; outline:none; }
.filter-number input { width:100px; }
.filter-reset-btn { min-height:42px; border:1px solid rgba(220,53,69,.2); background:rgba(220,53,69,.06); color:var(--commerce-red); border-radius:12px; padding:0 14px; cursor:pointer; font-weight:800; }
.results-count { min-height:42px; display:inline-flex; align-items:center; border-radius:12px; background:var(--commerce-soft); color:var(--commerce-primary-dark); padding:0 14px; font-weight:800; }

.product-card-quantity { display:flex; align-items:center; border:1px solid var(--merchant-border,var(--border-color)); border-radius:11px; overflow:hidden; background:var(--merchant-surface-soft,#f8f8fb); height:38px; }
.product-card-quantity button { width:30px; height:38px; border:0; background:transparent; color:var(--text-main); cursor:pointer; font-size:1rem; }
.product-card-quantity input { width:34px; height:38px; border:0; background:transparent; color:var(--text-main); text-align:center; font-family:Inter,sans-serif; font-weight:800; -moz-appearance:textfield; }
.product-card-quantity input::-webkit-inner-spin-button { -webkit-appearance:none; }
.product-card-actions { display:grid !important; grid-template-columns:42px minmax(0,1fr); gap:8px; direction:ltr; width:100%; }
.product-card-actions .product-wishlist-btn { position:static !important; width:42px; min-width:42px; height:42px; border-radius:12px; box-shadow:none; order:1; }
.product-card-actions .add-btn { order:2; margin:0 !important; width:100% !important; min-height:42px; padding:8px 12px; }
.product-card-purchase { display:grid; gap:10px; }
.product-card-buy-row { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.quick-buy-btn { width:100%; min-height:38px; border:1px solid rgba(109,67,255,.22); background:rgba(109,67,255,.06); color:var(--commerce-primary); border-radius:11px; cursor:pointer; font-weight:800; }
.product-social-proof { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--text-muted); font-size:.72rem; margin-top:5px; }
.product-social-proof span { display:inline-flex; align-items:center; gap:5px; }
.product-social-proof .low-stock { color:#c87500; font-weight:800; }

.free-shipping-box { display:grid; gap:8px; padding:12px; border-radius:14px; background:rgba(15,159,110,.07); color:var(--text-main); margin-bottom:12px; }
.free-shipping-box > div:first-child { display:flex; align-items:center; gap:8px; font-size:.82rem; }
.free-shipping-box i { color:var(--commerce-green); }
.free-shipping-track { height:7px; background:rgba(15,159,110,.15); border-radius:99px; overflow:hidden; }
.free-shipping-track span { display:block; width:0; height:100%; border-radius:inherit; background:var(--commerce-green); transition:width .3s ease; }
.cart-coupon-box { display:grid; gap:6px; margin-bottom:12px; }
.cart-coupon-box label { font-size:.78rem; font-weight:800; }
.cart-coupon-box > div { display:grid; grid-template-columns:1fr auto; gap:7px; }
.cart-coupon-box input { min-width:0; min-height:42px; border:1px solid var(--merchant-border,var(--border-color)); border-radius:11px; padding:0 12px; text-transform:uppercase; background:var(--merchant-input,var(--card-bg)); color:var(--text-main); }
.cart-coupon-box button { border:0; border-radius:11px; padding:0 14px; background:var(--commerce-primary); color:#fff; font-weight:800; cursor:pointer; }
.cart-coupon-box small { min-height:18px; color:var(--text-muted); }
.cart-coupon-box small.is-success { color:var(--commerce-green); }
.cart-discount-line, .checkout-discount-line { color:var(--commerce-green); }
.cart-item-row { display:grid; grid-template-columns:62px minmax(0,1fr) auto; gap:11px; align-items:center; padding:12px 0; border-bottom:1px solid var(--merchant-border,var(--border-color)); }
.cart-item-row img { width:62px; height:62px; object-fit:cover; border-radius:13px; background:#f3f3f5; }
.cart-item-info { min-width:0; display:grid; gap:5px; }
.cart-item-info strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.88rem; }
.cart-item-info span { color:var(--commerce-primary); font-family:Inter,sans-serif; font-weight:800; }
.cart-item-controls { display:grid; grid-template-columns:30px 28px 30px; align-items:center; border:1px solid var(--merchant-border,var(--border-color)); border-radius:10px; overflow:hidden; }
.cart-item-controls button { width:30px; height:32px; border:0; background:transparent; color:var(--text-main); cursor:pointer; }
.cart-item-controls span { text-align:center; font-family:Inter,sans-serif; font-size:.78rem; font-weight:800; }
.cart-item-remove { grid-column:1/-1; width:100% !important; color:var(--commerce-red) !important; border-top:1px solid var(--merchant-border,var(--border-color)) !important; }

.commerce-order-steps, .merchant-faq-section { margin:38px 0; }
.order-steps-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.order-steps-grid > div { position:relative; display:grid; justify-items:center; text-align:center; gap:7px; padding:22px 14px; border:1px solid var(--merchant-border,var(--border-color)); background:var(--merchant-surface,#fff); border-radius:18px; box-shadow:var(--shadow-soft); }
.order-steps-grid > div > span { position:absolute; top:10px; inset-inline-start:12px; color:rgba(109,67,255,.22); font:800 1.3rem Inter,sans-serif; }
.order-steps-grid i { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; background:var(--commerce-soft); color:var(--commerce-primary); font-size:1.25rem; }
.order-steps-grid strong { font-size:.95rem; }
.order-steps-grid small { color:var(--text-muted); line-height:1.6; }
.merchant-policy-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:20px 0 40px; }
.merchant-policy-strip > div { display:grid; grid-template-columns:42px 1fr; column-gap:10px; align-items:center; padding:15px; border-radius:16px; background:var(--merchant-surface-soft,#f8f8fb); border:1px solid var(--merchant-border,var(--border-color)); }
.merchant-policy-strip i { grid-row:1/3; width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:#fff; color:var(--commerce-primary); }
.merchant-policy-strip strong,.merchant-policy-strip span { display:block; }
.merchant-policy-strip span { color:var(--text-muted); font-size:.75rem; }
.faq-list { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.faq-list details { border:1px solid var(--merchant-border,var(--border-color)); border-radius:15px; background:var(--merchant-surface,#fff); padding:0 16px; }
.faq-list summary { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; font-weight:800; list-style:none; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list details[open] summary i { transform:rotate(45deg); }
.faq-list summary i { transition:transform .2s ease; color:var(--commerce-primary); }
.faq-list p { padding:0 0 16px; color:var(--text-muted); line-height:1.8; }

.product-page-quantity { display:flex; align-items:center; gap:8px; }
.product-page-quantity label { font-size:.78rem; font-weight:800; color:var(--text-muted); }
.product-page-quantity-control { display:grid; grid-template-columns:42px 48px 42px; border:1px solid var(--merchant-border,var(--border-color)); border-radius:13px; overflow:hidden; }
.product-page-quantity-control button,.product-page-quantity-control input { height:44px; border:0; background:var(--merchant-input,var(--card-bg)); color:var(--text-main); text-align:center; }
.product-page-quantity-control button { cursor:pointer; font-size:1.1rem; }
.product-page-quantity-control input { width:48px; font:800 .95rem Inter,sans-serif; }
.product-page-proof { display:flex; flex-wrap:wrap; gap:9px; margin:10px 0; }
.product-page-proof span { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:99px; background:var(--merchant-surface-soft,#f8f8fb); color:var(--text-muted); font-size:.75rem; }
.product-page-proof i { color:var(--commerce-primary); }
.product-buy-now { background:#171129 !important; color:#fff !important; border-color:#171129 !important; }
.product-whatsapp-btn { background:#eafaf4 !important; color:#087d57 !important; border-color:#bfeadb !important; }
.product-main-image-wrap { cursor:zoom-in; }
.product-main-image-wrap::after { content:'تكبير'; position:absolute; bottom:12px; inset-inline-end:12px; background:rgba(0,0,0,.62); color:#fff; padding:6px 10px; border-radius:99px; font-size:.7rem; pointer-events:none; }
.image-zoom-modal { align-items:center; justify-content:center; background:rgba(6,4,12,.92); padding:30px; }
.image-zoom-modal.active { display:flex; }
.image-zoom-modal img { max-width:min(1100px,94vw); max-height:88vh; object-fit:contain; border-radius:18px; }
.image-zoom-close { position:fixed; top:20px; inset-inline-end:20px; background:#fff !important; color:#111 !important; z-index:2; }
.product-read-more { border:0; background:transparent; color:var(--commerce-primary); cursor:pointer; padding:8px 0 0; font-weight:800; }
.merchant-product-description.is-collapsed p { max-height:96px; overflow:hidden; position:relative; }
.merchant-product-description.is-collapsed p::after { content:''; position:absolute; inset:55px 0 0; background:linear-gradient(transparent,var(--merchant-surface,#fff)); }
.product-combo-section { margin-top:32px; padding:22px; border:1px solid var(--merchant-border,var(--border-color)); border-radius:20px; background:var(--merchant-surface,#fff); }
.product-combo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:16px 0; }
.combo-product { display:grid; grid-template-columns:64px 1fr; gap:10px; align-items:center; border:1px solid var(--merchant-border,var(--border-color)); border-radius:14px; padding:10px; }
.combo-product img { width:64px; height:64px; object-fit:cover; border-radius:10px; }
.combo-product label { display:flex; align-items:flex-start; gap:7px; font-size:.8rem; font-weight:700; }
.combo-product strong { display:block; color:var(--commerce-primary); font:800 .82rem Inter,sans-serif; margin-top:5px; }
.combo-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.review-image-field { display:grid; gap:6px; }
.product-review-photo { width:min(180px,100%); max-height:180px; object-fit:cover; border-radius:13px; margin-top:10px; border:1px solid var(--merchant-border,var(--border-color)); }
.mobile-sticky-buy { display:none; }

.exit-coupon-modal.active { display:flex; align-items:center; justify-content:center; }
.exit-coupon-card { position:relative; width:min(430px,calc(100% - 28px)); padding:32px; border-radius:25px; background:linear-gradient(145deg,#fff,#f5f0ff); color:#171129; text-align:center; box-shadow:0 30px 90px rgba(0,0,0,.28); }
.exit-coupon-kicker { color:var(--commerce-primary); font-size:.75rem; font-weight:900; letter-spacing:.08em; }
.exit-coupon-card h2 { margin:8px 0; font-size:1.7rem; }
.exit-coupon-card p { color:#6d647c; }
.exit-coupon-code { width:100%; display:flex; align-items:center; justify-content:space-between; margin:18px 0; border:2px dashed rgba(109,67,255,.35); background:#fff; border-radius:14px; padding:13px 16px; cursor:pointer; color:var(--commerce-primary); }
.exit-coupon-code strong { font:900 1.2rem Inter,sans-serif; letter-spacing:.08em; }

.merchant-toast { max-width:min(460px,calc(100% - 24px)); }
.merchant-toast .toast-action { border:0; background:#fff; color:#171129; border-radius:9px; padding:7px 10px; cursor:pointer; font-weight:800; margin-inline-start:auto; }
.products-skeleton { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; width:100%; grid-column:1/-1; }
.skeleton-card { border-radius:17px; overflow:hidden; border:1px solid var(--merchant-border,var(--border-color)); background:var(--merchant-surface,#fff); }
.skeleton-block { position:relative; overflow:hidden; background:#ececf1; }
.skeleton-block::after { content:''; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent); animation:merchantShimmer 1.25s infinite; }
.skeleton-card .image { height:205px; }
.skeleton-card .line { height:14px; margin:13px; border-radius:7px; }
.skeleton-card .line.short { width:55%; }
@keyframes merchantShimmer { to { transform:translateX(100%); } }

@media (max-width:900px) {
    .announcement-track { justify-content:flex-start; overflow-x:auto; gap:24px; padding-inline-end:30px; scrollbar-width:none; }
    .merchant-announcement-inner { justify-content:flex-start; }
    .merchant-filter-panel { align-items:stretch; flex-direction:column; }
    .filter-controls { justify-content:stretch; display:grid; grid-template-columns:1fr 1fr; }
    .filter-controls label,.filter-controls .filter-select,.filter-number input,.filter-reset-btn { width:100%; }
    .order-steps-grid { grid-template-columns:1fr 1fr; }
    .merchant-policy-strip { grid-template-columns:1fr; }
}
@media (max-width:600px) {
    .merchant-announcement { min-height:34px; }
    .announcement-track { font-size:.68rem; gap:18px; }
    .announcement-track span:nth-child(n+3) { display:none; }
    .mobile-filter-toggle { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--merchant-border,var(--border-color)); border-radius:12px; background:var(--merchant-surface,#fff); color:var(--text-main); padding:9px 12px; font-weight:800; }
    .section-title.with-filters { align-items:center; }
    .merchant-filter-panel { display:none; padding:12px; }
    .merchant-filter-panel.is-open { display:flex; }
    .filter-controls { grid-template-columns:1fr 1fr; gap:8px; }
    .filter-controls label:first-child,.filter-controls label:nth-child(2),.filter-reset-btn { grid-column:span 2; }
    .filter-number input { width:100%; }
    .order-steps-grid { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:6px; }
    .order-steps-grid > div { flex:0 0 76%; scroll-snap-align:start; }
    .faq-list { grid-template-columns:1fr; }
    .product-card-quantity { height:34px; }
    .product-card-quantity button,.product-card-quantity input { height:34px; }
    .product-card-quantity button { width:25px; }
    .product-card-quantity input { width:28px; }
    .product-card-actions { grid-template-columns:38px minmax(0,1fr); }
    .product-card-actions .product-wishlist-btn { width:38px; min-width:38px; height:38px; }
    .product-card-actions .add-btn { min-height:38px; font-size:.72rem !important; }
    .quick-buy-btn { font-size:.72rem; }
    .product-social-proof { font-size:.65rem; }
    .product-combo-grid { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
    .combo-product { flex:0 0 82%; scroll-snap-align:start; }
    .combo-summary { align-items:stretch; flex-direction:column; }
    .merchant-product-detail-actions { padding-bottom:76px; }
    .mobile-sticky-buy { position:fixed; z-index:1200; bottom:64px; left:0; right:0; display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:9px 12px; background:color-mix(in srgb,var(--merchant-surface,#fff) 94%,transparent); border-top:1px solid var(--merchant-border,var(--border-color)); backdrop-filter:blur(12px); }
    .mobile-sticky-buy button { min-height:44px; border-radius:12px; border:0; font-weight:900; }
    .mobile-sticky-buy .sticky-add { background:var(--commerce-primary); color:#fff; }
    .mobile-sticky-buy .sticky-buy { background:#171129; color:#fff; }
    .cart-item-row { grid-template-columns:54px minmax(0,1fr); }
    .cart-item-row img { width:54px; height:54px; }
    .cart-item-controls { grid-column:2; justify-self:start; }
    .exit-coupon-card { padding:26px 20px; }
}
@media (prefers-reduced-motion:reduce) {
    .skeleton-block::after { animation:none; }
}

/* =======================================================
   MOBILE RECENTLY VIEWED — COMPACT TWO-CARD SLIDER
   ======================================================= */
@media (max-width: 600px) {
    html[data-theme] body.store-body .recently-viewed-section {
        margin-top: 8px !important;
        margin-bottom: 24px !important;
        overflow: hidden;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head {
        align-items: center;
        margin-bottom: 10px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head h2 {
        font-size: 1.05rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-scroll-hint {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 8px !important;
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden;
        padding: 2px 2px 10px !important;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid::-webkit-scrollbar {
        display: none;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid > .product-card {
        flex: 0 0 min(44vw, 170px) !important;
        width: min(44vw, 170px) !important;
        min-width: 140px !important;
        max-width: 170px !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border-radius: 14px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link {
        width: 100% !important;
        overflow: hidden;
        border-radius: 13px 13px 0 0 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card .product-img,
    html[data-theme] body.store-body .recently-viewed-section .product-item .product-img,
    html[data-theme] body.store-body .recently-viewed-section .product-card > img,
    html[data-theme] body.store-body .recently-viewed-section .product-item > img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / .82 !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 13px 13px 0 0 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-content {
        padding: 7px 7px 8px !important;
        gap: 5px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-title {
        min-height: 35px !important;
        font-size: .66rem !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-description,
    html[data-theme] body.store-body .recently-viewed-section .product-social-proof,
    html[data-theme] body.store-body .recently-viewed-section .product-card-quantity,
    html[data-theme] body.store-body .recently-viewed-section .quick-buy-btn {
        display: none !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-buy-row {
        display: block !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price-wrap {
        min-height: 27px;
        justify-content: flex-start !important;
        gap: 4px !important;
        direction: ltr;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price {
        margin: 0 !important;
        padding: 3px 5px !important;
        font-size: .75rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-old-price {
        font-size: .58rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-purchase {
        gap: 6px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        direction: ltr !important;
        margin-top: 0 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .product-wishlist-btn {
        position: static !important;
        order: 1 !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
        font-size: .78rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .add-btn {
        order: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 34px !important;
        padding: 5px 4px !important;
        border-radius: 9px !important;
        font-size: .61rem !important;
        white-space: nowrap;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .add-btn i {
        font-size: .72rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-badges {
        top: 7px !important;
        right: 7px !important;
        gap: 3px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-badge {
        padding: 3px 6px !important;
        font-size: .54rem !important;
    }
}

/* =======================================================
   DESIGN CLEANUP V6 — compact categories, larger product media,
   floating wishlist and a cleaner single-action purchase area
   ======================================================= */
:root {
    --store-surface: #ffffff;
    --store-soft: #f7f7fb;
    --store-line: #e9e7ef;
    --store-ink: #21192d;
    --store-muted: #746d7f;
    --store-purple: #6d43ff;
}

html[data-theme="dark"] {
    --store-surface: #171020;
    --store-soft: #21172c;
    --store-line: rgba(255,255,255,.10);
    --store-ink: #f6f2fb;
    --store-muted: #b8adc6;
}

html[data-theme] body.store-body .product-card,
html[data-theme] body.store-body .product-item {
    border: 1px solid var(--store-line) !important;
    border-radius: 18px !important;
    background: var(--store-surface) !important;
    box-shadow: 0 8px 24px rgba(30, 22, 48, .075) !important;
    overflow: hidden !important;
}

html[data-theme] body.store-body .product-card:hover,
html[data-theme] body.store-body .product-item:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(109, 67, 255, .25) !important;
    box-shadow: 0 15px 34px rgba(30, 22, 48, .12) !important;
}

html[data-theme] body.store-body .product-card-media-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 1 / 1.02 !important;
    min-height: 245px !important;
    overflow: hidden !important;
    background: var(--store-soft) !important;
    border-radius: 0 !important;
}

html[data-theme] body.store-body .product-card .product-img,
html[data-theme] body.store-body .product-item .product-img,
html[data-theme] body.store-body .product-card-media-link .product-img,
html[data-theme] body.store-body .product-card > img,
html[data-theme] body.store-body .product-item > img {
    width: 100% !important;
    height: 100% !important;
    min-height: 245px !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--store-soft) !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .merchant-modern-product-card:hover .product-card-media-link .product-img {
    transform: scale(1.025) !important;
}

/* Return the heart to its original floating position above the image. */
html[data-theme] body.store-body .product-card > .product-wishlist-btn,
html[data-theme] body.store-body .product-item > .product-wishlist-btn {
    position: absolute !important;
    z-index: 18 !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.92) !important;
    color: #655f6d !important;
    box-shadow: 0 8px 22px rgba(25,18,39,.17) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

html[data-theme="dark"] body.store-body .product-card > .product-wishlist-btn,
html[data-theme="dark"] body.store-body .product-item > .product-wishlist-btn {
    border-color: rgba(255,255,255,.13) !important;
    background: rgba(23,16,32,.91) !important;
    color: #e5dced !important;
}

html[data-theme] body.store-body .product-card > .product-wishlist-btn.is-active,
html[data-theme] body.store-body .product-item > .product-wishlist-btn.is-active {
    color: #e11d48 !important;
    border-color: rgba(225,29,72,.25) !important;
    background: rgba(255,245,247,.94) !important;
}

html[data-theme] body.store-body .product-card-content {
    padding: 12px 13px 13px !important;
    gap: 0 !important;
}

html[data-theme] body.store-body .product-title-link .product-title {
    min-height: 44px !important;
    font-size: .9rem !important;
    line-height: 1.48 !important;
    color: var(--store-ink) !important;
}

html[data-theme] body.store-body .product-card-description {
    min-height: 2.7em !important;
    margin: 5px 0 0 !important;
    color: var(--store-muted) !important;
    font-size: .72rem !important;
}

html[data-theme] body.store-body .product-card-buy-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    direction: rtl !important;
}

html[data-theme] body.store-body .product-price-wrap {
    justify-content: flex-start !important;
    direction: ltr !important;
    text-align: right !important;
}

html[data-theme] body.store-body .product-card-actions {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

html[data-theme] body.store-body .product-card-actions .add-btn {
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    font-size: .79rem !important;
}

html[data-theme] body.store-body .quick-buy-btn {
    display: none !important;
}

html[data-theme] body.store-body .product-social-proof[hidden],
html[data-theme] body.store-body .product-social-proof:empty {
    display: none !important;
}

/* Smaller, denser category cards. */
html[data-theme] body.store-body .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
    gap: 9px !important;
    margin-bottom: 26px !important;
}

html[data-theme] body.store-body .cat-card {
    min-height: 128px !important;
    padding: 6px !important;
    gap: 5px !important;
    border-radius: 15px !important;
    box-shadow: 0 6px 17px rgba(31,23,48,.065) !important;
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder,
html[data-theme] body.store-body .cat-card .category-image-wrapper,
html[data-theme] body.store-body .cat-card .cat-image-wrapper,
html[data-theme] body.store-body .cat-card > img {
    width: 100% !important;
    height: 84px !important;
    flex: 0 0 84px !important;
    border-radius: 11px !important;
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder img,
html[data-theme] body.store-body .cat-card .category-image-wrapper img,
html[data-theme] body.store-body .cat-card .cat-image-wrapper img,
html[data-theme] body.store-body .cat-card > img {
    transform: none !important;
    object-fit: cover !important;
}

html[data-theme] body.store-body .cat-card > h3,
html[data-theme] body.store-body .cat-card > h4,
html[data-theme] body.store-body .cat-card > span,
html[data-theme] body.store-body .cat-card .cat-name,
html[data-theme] body.store-body .cat-card .category-title {
    min-height: 30px !important;
    padding: 5px 7px !important;
    border-radius: 9px !important;
    font-size: .68rem !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-theme] body.store-body .cat-card > h3::after,
html[data-theme] body.store-body .cat-card > h4::after,
html[data-theme] body.store-body .cat-card > span::after,
html[data-theme] body.store-body .cat-card .cat-name::after,
html[data-theme] body.store-body .cat-card .category-title::after {
    display: none !important;
}

@media (max-width: 768px) {
    html[data-theme] body.store-body .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    html[data-theme] body.store-body .cat-card {
        min-height: 104px !important;
        padding: 5px !important;
        gap: 4px !important;
        border-radius: 12px !important;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 67px !important;
        flex-basis: 67px !important;
        border-radius: 9px !important;
    }

    html[data-theme] body.store-body .cat-card > h3,
    html[data-theme] body.store-body .cat-card > h4,
    html[data-theme] body.store-body .cat-card > span,
    html[data-theme] body.store-body .cat-card .cat-name,
    html[data-theme] body.store-body .cat-card .category-title {
        min-height: 27px !important;
        padding: 4px !important;
        font-size: .60rem !important;
        line-height: 1.2 !important;
    }

    html[data-theme] body.store-body .product-card-media-link {
        min-height: 178px !important;
        aspect-ratio: 1 / 1.06 !important;
    }

    html[data-theme] body.store-body .product-card .product-img,
    html[data-theme] body.store-body .product-item .product-img,
    html[data-theme] body.store-body .product-card-media-link .product-img,
    html[data-theme] body.store-body .product-card > img,
    html[data-theme] body.store-body .product-item > img {
        min-height: 178px !important;
    }

    html[data-theme] body.store-body .product-card > .product-wishlist-btn,
    html[data-theme] body.store-body .product-item > .product-wishlist-btn {
        top: 8px !important;
        left: 8px !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        font-size: .78rem !important;
    }

    html[data-theme] body.store-body .product-card-content {
        padding: 8px 8px 9px !important;
    }

    html[data-theme] body.store-body .product-title-link .product-title {
        min-height: 39px !important;
        font-size: .70rem !important;
        line-height: 1.42 !important;
    }

    html[data-theme] body.store-body .product-card-description {
        display: none !important;
    }

    html[data-theme] body.store-body .product-card-actions .add-btn {
        min-height: 37px !important;
        padding: 7px 5px !important;
        font-size: .65rem !important;
    }

    /* Keep compact sliders compact while still making their image visibly larger. */
    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link,
    html[data-theme] body.store-body .smart-products-section .product-card-media-link {
        min-height: 142px !important;
        aspect-ratio: 1 / 1.02 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card .product-img,
    html[data-theme] body.store-body .smart-products-section .product-card .product-img {
        min-height: 142px !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
    }
}

@media (max-width: 380px) {
    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 59px !important;
        flex-basis: 59px !important;
    }

    html[data-theme] body.store-body .cat-card {
        min-height: 94px !important;
    }
}

/* =======================================================
   ELEGANT STOREFRONT V7 — restrained Arabic commerce UI
   Clean, human-made visual system with compact new arrivals
   ======================================================= */
:root {
    --elegant-bg: #f7f7f8;
    --elegant-surface: #ffffff;
    --elegant-surface-2: #fbfbfc;
    --elegant-text: #17151c;
    --elegant-muted: #77727f;
    --elegant-line: #e9e7ec;
    --elegant-primary: #5b3fd1;
    --elegant-primary-hover: #4930b5;
    --elegant-dark: #191522;
    --elegant-success: #16845b;
    --elegant-radius-sm: 10px;
    --elegant-radius: 14px;
    --elegant-radius-lg: 20px;
    --elegant-shadow: 0 3px 14px rgba(26, 22, 35, .055);
    --elegant-shadow-hover: 0 10px 28px rgba(26, 22, 35, .09);
}

html[data-theme="dark"] {
    --elegant-bg: #0f0c13;
    --elegant-surface: #18141d;
    --elegant-surface-2: #1e1924;
    --elegant-text: #f6f3f8;
    --elegant-muted: #aaa3b1;
    --elegant-line: rgba(255,255,255,.09);
    --elegant-dark: #f5f1f7;
    --elegant-shadow: 0 4px 18px rgba(0,0,0,.22);
    --elegant-shadow-hover: 0 12px 32px rgba(0,0,0,.34);
}

html[data-theme] body.store-body {
    background: var(--elegant-bg) !important;
    color: var(--elegant-text) !important;
    font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

html[data-theme] body.store-body::before,
html[data-theme] body.store-body::after {
    display: none !important;
}

html[data-theme] body.store-body .container {
    width: min(1240px, calc(100% - 32px)) !important;
}

/* Top announcement and header */
html[data-theme] body.store-body .merchant-announcement,
html[data-theme] body.store-body .top-bar {
    background: var(--elegant-dark) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .top-bar {
    padding: 7px 0 !important;
    font-size: .76rem !important;
    font-weight: 500 !important;
}

html[data-theme] body.store-body .top-bar i {
    color: #bcaefa !important;
}

html[data-theme] body.store-body .main-header {
    padding: 10px 0 !important;
    background: var(--elegant-surface) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--elegant-line) !important;
    box-shadow: 0 2px 10px rgba(24,20,30,.035) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-theme] body.store-body .header-wrapper {
    grid-template-columns: minmax(180px, auto) minmax(280px, 1fr) auto !important;
    gap: 18px !important;
}

html[data-theme] body.store-body .logo-area {
    min-width: 0 !important;
    gap: 10px !important;
}

html[data-theme] body.store-body .main-logo-img {
    width: 46px !important;
    height: 46px !important;
    padding: 2px !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .brand-name {
    color: var(--elegant-text) !important;
    font-size: 1.18rem !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
}

html[data-theme] body.store-body .brand-name::first-letter {
    color: inherit !important;
}

html[data-theme] body.store-body .sub-brand {
    margin-top: 3px !important;
    color: var(--elegant-muted) !important;
    font-size: .66rem !important;
    font-weight: 500 !important;
}

html[data-theme] body.store-body .search-box {
    min-height: 44px !important;
    background: var(--elegant-surface-2) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .search-box:focus-within {
    background: var(--elegant-surface) !important;
    border-color: rgba(91,63,209,.52) !important;
    box-shadow: 0 0 0 3px rgba(91,63,209,.08) !important;
}

html[data-theme] body.store-body .search-category-select {
    width: 132px !important;
    background: transparent !important;
    border-color: var(--elegant-line) !important;
    color: var(--elegant-muted) !important;
    font-size: .76rem !important;
    font-weight: 500 !important;
}

html[data-theme] body.store-body .search-box input {
    color: var(--elegant-text) !important;
    font-size: .86rem !important;
    font-weight: 400 !important;
}

html[data-theme] body.store-body .search-box button {
    width: 48px !important;
    background: var(--elegant-primary) !important;
    font-size: .92rem !important;
}

html[data-theme] body.store-body .search-box button:hover {
    background: var(--elegant-primary-hover) !important;
}

html[data-theme] body.store-body .user-actions {
    gap: 7px !important;
}

html[data-theme] body.store-body .action-btn {
    min-height: 44px !important;
    padding: 7px 10px !important;
    background: var(--elegant-surface) !important;
    color: var(--elegant-text) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .action-btn:hover {
    transform: none !important;
    background: var(--elegant-surface-2) !important;
    border-color: #d9d5de !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .action-btn.icon-only {
    width: 44px !important;
}

html[data-theme] body.store-body .action-btn i {
    color: var(--elegant-text) !important;
    font-size: 1.05rem !important;
}

html[data-theme] body.store-body .small-text {
    color: var(--elegant-muted) !important;
    font-size: .62rem !important;
    font-weight: 400 !important;
}

html[data-theme] body.store-body .bold-text {
    color: var(--elegant-text) !important;
    font-size: .76rem !important;
    font-weight: 600 !important;
}

/* Category navigation */
html[data-theme] body.store-body .categories-nav {
    background: var(--elegant-surface) !important;
    color: var(--elegant-text) !important;
    border-bottom: 1px solid var(--elegant-line) !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .nav-links {
    gap: 5px !important;
    padding: 7px 0 !important;
}

html[data-theme] body.store-body .nav-links a {
    padding: 8px 12px !important;
    color: var(--elegant-muted) !important;
    border: 0 !important;
    border-radius: 9px !important;
    font-size: .78rem !important;
    font-weight: 500 !important;
}

html[data-theme] body.store-body .nav-links a:hover,
html[data-theme] body.store-body .nav-links a.active {
    background: rgba(91,63,209,.08) !important;
    color: var(--elegant-primary) !important;
}

html[data-theme] body.store-body .nav-links .all-cats-btn,
html[data-theme] body.store-body .nav-links .sale-link {
    background: transparent !important;
    color: var(--elegant-muted) !important;
}

/* Main rhythm and hero */
html[data-theme] body.store-body .main-content-area {
    padding-top: 18px !important;
}

html[data-theme] body.store-body .hero-banner,
html[data-theme] body.store-body .hero-banner.merchant-image-hero {
    min-height: 0 !important;
    margin-bottom: 22px !important;
    padding: 0 !important;
    background: var(--elegant-surface) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: var(--elegant-radius-lg) !important;
    box-shadow: var(--elegant-shadow) !important;
    overflow: hidden !important;
}

html[data-theme] body.store-body .hero-banner::before,
html[data-theme] body.store-body .hero-banner::after {
    display: none !important;
}

html[data-theme] body.store-body .merchant-hero-link {
    display: block !important;
    width: 100% !important;
}

html[data-theme] body.store-body .merchant-hero-banner-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 390px !important;
    object-fit: cover !important;
    transform: none !important;
    filter: none !important;
}

/* Compact service strip */
html[data-theme] body.store-body .store-features {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 10px !important;
    margin-bottom: 30px !important;
}

html[data-theme] body.store-body .feature-box {
    min-height: 76px !important;
    padding: 13px 15px !important;
    gap: 11px !important;
    background: var(--elegant-surface) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: var(--elegant-radius) !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .feature-box:hover {
    transform: none !important;
    border-color: #dcd8e2 !important;
    box-shadow: var(--elegant-shadow) !important;
}

html[data-theme] body.store-body .feature-icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 11px !important;
    background: rgba(91,63,209,.075) !important;
    color: var(--elegant-primary) !important;
}

html[data-theme] body.store-body .feature-icon i {
    color: var(--elegant-primary) !important;
    font-size: 1rem !important;
}

html[data-theme] body.store-body .feature-info h4 {
    color: var(--elegant-text) !important;
    font-size: .82rem !important;
    font-weight: 600 !important;
}

html[data-theme] body.store-body .feature-info p {
    margin-top: 1px !important;
    color: var(--elegant-muted) !important;
    font-size: .68rem !important;
    font-weight: 400 !important;
}

/* Section headings */
html[data-theme] body.store-body .section-title,
html[data-theme] body.store-body .smart-section-head {
    align-items: center !important;
    margin: 0 0 14px !important;
}

html[data-theme] body.store-body .section-title h2,
html[data-theme] body.store-body .section-title h3,
html[data-theme] body.store-body .smart-section-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--elegant-text) !important;
    font-size: clamp(1.08rem, 2.5vw, 1.36rem) !important;
    font-weight: 650 !important;
    letter-spacing: -.025em !important;
}

html[data-theme] body.store-body .section-title h2::before,
html[data-theme] body.store-body .section-title h3::before,
html[data-theme] body.store-body .section-title h2::after,
html[data-theme] body.store-body .smart-section-head h2::before,
html[data-theme] body.store-body .smart-section-head h2::after {
    display: none !important;
}

html[data-theme] body.store-body .smart-section-head > div > span {
    display: none !important;
}

html[data-theme] body.store-body .smart-scroll-hint {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: 10px !important;
    background: var(--elegant-surface) !important;
    color: var(--elegant-muted) !important;
    box-shadow: none !important;
}

/* Categories */
html[data-theme] body.store-body .featured-categories-section {
    margin-bottom: 30px !important;
}

html[data-theme] body.store-body .categories-grid {
    grid-template-columns: repeat(8, minmax(0,1fr)) !important;
    gap: 9px !important;
    margin-bottom: 0 !important;
}

html[data-theme] body.store-body .cat-card {
    min-height: 104px !important;
    padding: 6px !important;
    gap: 6px !important;
    background: var(--elegant-surface) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: 13px !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .cat-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(91,63,209,.30) !important;
    box-shadow: var(--elegant-shadow) !important;
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder,
html[data-theme] body.store-body .cat-card .category-image-wrapper,
html[data-theme] body.store-body .cat-card .cat-image-wrapper,
html[data-theme] body.store-body .cat-card > img {
    width: 100% !important;
    height: 70px !important;
    flex: 0 0 70px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    background: var(--elegant-surface-2) !important;
    overflow: hidden !important;
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder img,
html[data-theme] body.store-body .cat-card .category-image-wrapper img,
html[data-theme] body.store-body .cat-card .cat-image-wrapper img,
html[data-theme] body.store-body .cat-card > img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: cover !important;
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder i {
    color: var(--elegant-primary) !important;
    font-size: 1.25rem !important;
}

html[data-theme] body.store-body .cat-card > h3,
html[data-theme] body.store-body .cat-card > h4,
html[data-theme] body.store-body .cat-card > span,
html[data-theme] body.store-body .cat-card .cat-name,
html[data-theme] body.store-body .cat-card .category-title {
    min-height: 22px !important;
    padding: 0 3px !important;
    background: transparent !important;
    color: var(--elegant-text) !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: .66rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
}

/* Product sections */
html[data-theme] body.store-body .smart-home-sections {
    gap: 0 !important;
    margin-bottom: 0 !important;
}

html[data-theme] body.store-body .smart-products-section,
html[data-theme] body.store-body .recently-viewed-section,
html[data-theme] body.store-body .products-section {
    margin: 0 0 34px !important;
}

html[data-theme] body.store-body .products-grid {
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    gap: 13px !important;
}

html[data-theme] body.store-body .product-card,
html[data-theme] body.store-body .product-item,
html[data-theme] body.store-body .merchant-modern-product-card {
    background: var(--elegant-surface) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transform: none !important;
}

html[data-theme] body.store-body .product-card:hover,
html[data-theme] body.store-body .product-item:hover,
html[data-theme] body.store-body .merchant-modern-product-card:hover {
    transform: translateY(-3px) !important;
    border-color: #dcd7e2 !important;
    box-shadow: var(--elegant-shadow-hover) !important;
}

html[data-theme] body.store-body .product-card::before,
html[data-theme] body.store-body .product-item::before {
    display: none !important;
}

html[data-theme] body.store-body .product-card-media-link {
    display: block !important;
    width: 100% !important;
    min-height: 220px !important;
    aspect-ratio: 1 / 1.03 !important;
    background: #f4f3f5 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--elegant-line) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

html[data-theme="dark"] body.store-body .product-card-media-link {
    background: #211c26 !important;
}

html[data-theme] body.store-body .product-card .product-img,
html[data-theme] body.store-body .product-item .product-img,
html[data-theme] body.store-body .product-card-media-link .product-img,
html[data-theme] body.store-body .product-card > img,
html[data-theme] body.store-body .product-item > img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    background: #f4f3f5 !important;
    transform: none !important;
}

html[data-theme] body.store-body .merchant-modern-product-card:hover .product-card-media-link .product-img {
    transform: scale(1.018) !important;
}

html[data-theme] body.store-body .product-card-content {
    padding: 11px 11px 12px !important;
}

html[data-theme] body.store-body .product-title-link .product-title,
html[data-theme] body.store-body .product-title {
    min-height: 42px !important;
    margin: 0 !important;
    color: var(--elegant-text) !important;
    font-size: .79rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

html[data-theme] body.store-body .product-card-description,
html[data-theme] body.store-body .product-social-proof,
html[data-theme] body.store-body .product-card-quantity,
html[data-theme] body.store-body .quick-buy-btn {
    display: none !important;
}

html[data-theme] body.store-body .product-card-purchase {
    margin-top: 8px !important;
    gap: 8px !important;
}

html[data-theme] body.store-body .product-card-buy-row {
    display: block !important;
}

html[data-theme] body.store-body .product-price-wrap {
    min-height: 31px !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    direction: ltr !important;
    text-align: right !important;
}

html[data-theme] body.store-body .product-price {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--elegant-primary) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .product-price .currency {
    font-size: .62em !important;
    font-weight: 600 !important;
}

html[data-theme] body.store-body .product-old-price {
    color: var(--elegant-muted) !important;
    font-size: .65rem !important;
    font-weight: 400 !important;
}

html[data-theme] body.store-body .product-card-actions {
    display: block !important;
    width: 100% !important;
}

html[data-theme] body.store-body .product-card-actions .add-btn,
html[data-theme] body.store-body .product-card-purchase .add-btn {
    width: 100% !important;
    min-height: 39px !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    background: var(--elegant-primary) !important;
    color: #fff !important;
    border: 1px solid var(--elegant-primary) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: .72rem !important;
    font-weight: 600 !important;
}

html[data-theme] body.store-body .product-card-actions .add-btn:hover,
html[data-theme] body.store-body .product-card-purchase .add-btn:hover {
    background: var(--elegant-primary-hover) !important;
    border-color: var(--elegant-primary-hover) !important;
    transform: none !important;
}

html[data-theme] body.store-body .product-card > .product-wishlist-btn,
html[data-theme] body.store-body .product-item > .product-wishlist-btn {
    top: 9px !important;
    left: 9px !important;
    right: auto !important;
    width: 35px !important;
    min-width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    background: rgba(255,255,255,.94) !important;
    color: #5e5963 !important;
    border: 1px solid rgba(255,255,255,.85) !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 12px rgba(20,16,27,.11) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] body.store-body .product-card > .product-wishlist-btn,
html[data-theme="dark"] body.store-body .product-item > .product-wishlist-btn {
    background: rgba(24,20,29,.94) !important;
    color: #ded9e3 !important;
    border-color: rgba(255,255,255,.1) !important;
}

html[data-theme] body.store-body .product-card-badges {
    top: 9px !important;
    right: 9px !important;
    gap: 4px !important;
}

html[data-theme] body.store-body .product-badge {
    padding: 4px 7px !important;
    border-radius: 7px !important;
    font-size: .56rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .product-badge.offer { background: #d64d4d !important; }
html[data-theme] body.store-body .product-badge.bestseller { background: var(--elegant-primary) !important; }
html[data-theme] body.store-body .product-badge.limited { background: #bd7b22 !important; }
html[data-theme] body.store-body .product-badge.new { background: #1f8562 !important; }
html[data-theme] body.store-body .product-badge.fast { background: #2e6f9f !important; }

/* New arrivals: deliberately smaller slider cards */
html[data-theme] body.store-body .new-arrivals-section {
    overflow: hidden !important;
}

html[data-theme] body.store-body .new-arrivals-section .smart-products-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 1px 10px !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

html[data-theme] body.store-body .new-arrivals-section .smart-products-grid::-webkit-scrollbar {
    display: none !important;
}

html[data-theme] body.store-body .new-arrivals-section .smart-products-grid > .product-card {
    flex: 0 0 188px !important;
    width: 188px !important;
    max-width: 188px !important;
    scroll-snap-align: start !important;
    border-radius: 13px !important;
}

html[data-theme] body.store-body .new-arrivals-section .product-card-media-link {
    min-height: 164px !important;
    aspect-ratio: 1 / .9 !important;
}

html[data-theme] body.store-body .new-arrivals-section .product-card .product-img,
html[data-theme] body.store-body .new-arrivals-section .product-card-media-link .product-img {
    min-height: 164px !important;
}

html[data-theme] body.store-body .new-arrivals-section .product-card-content {
    padding: 8px 8px 9px !important;
}

html[data-theme] body.store-body .new-arrivals-section .product-title {
    min-height: 36px !important;
    font-size: .68rem !important;
    line-height: 1.42 !important;
}

html[data-theme] body.store-body .new-arrivals-section .product-price {
    font-size: .86rem !important;
}

html[data-theme] body.store-body .new-arrivals-section .product-card-actions .add-btn {
    min-height: 34px !important;
    padding: 6px 5px !important;
    font-size: .62rem !important;
}

html[data-theme] body.store-body .new-arrivals-section .product-card > .product-wishlist-btn {
    width: 31px !important;
    min-width: 31px !important;
    height: 31px !important;
    top: 7px !important;
    left: 7px !important;
    font-size: .72rem !important;
}

/* Filters, trust content and footer */
html[data-theme] body.store-body .merchant-filter-panel,
html[data-theme] body.store-body .filter-bar {
    padding: 10px !important;
    background: var(--elegant-surface) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: 13px !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .results-count,
html[data-theme] body.store-body .stock-switch,
html[data-theme] body.store-body .filter-select,
html[data-theme] body.store-body .filter-number input,
html[data-theme] body.store-body .filter-reset-btn {
    min-height: 38px !important;
    background: var(--elegant-surface-2) !important;
    color: var(--elegant-text) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: .72rem !important;
    font-weight: 500 !important;
}

html[data-theme] body.store-body .commerce-order-steps,
html[data-theme] body.store-body .merchant-policy-strip,
html[data-theme] body.store-body .merchant-faq-section,
html[data-theme] body.store-body .contact-cta-section {
    background: var(--elegant-surface) !important;
    border: 1px solid var(--elegant-line) !important;
    border-radius: var(--elegant-radius-lg) !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .order-steps-grid > div,
html[data-theme] body.store-body .merchant-policy-strip > div,
html[data-theme] body.store-body .faq-list details {
    background: var(--elegant-surface-2) !important;
    border: 1px solid var(--elegant-line) !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .site-footer {
    margin-top: 36px !important;
    background: #18151d !important;
    border-top: 0 !important;
    color: #fff !important;
}

html[data-theme] body.store-body .footer-bottom {
    background: #111014 !important;
}

html[data-theme] body.store-body .footer-logo,
html[data-theme] body.store-body .footer-col h4 {
    color: #fff !important;
}

html[data-theme] body.store-body .footer-col h4::after {
    background: #8f7bea !important;
}

/* Tablet */
@media (max-width: 1100px) {
    html[data-theme] body.store-body .products-grid {
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    }

    html[data-theme] body.store-body .categories-grid {
        grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    }

    html[data-theme] body.store-body .header-wrapper {
        grid-template-columns: auto minmax(240px,1fr) auto !important;
    }
}

@media (max-width: 820px) {
    html[data-theme] body.store-body .container {
        width: min(100% - 22px, 1240px) !important;
    }

    html[data-theme] body.store-body .header-wrapper {
        grid-template-columns: auto 1fr auto !important;
        gap: 10px !important;
    }

    html[data-theme] body.store-body .search-box {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }

    html[data-theme] body.store-body .store-features {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 3px !important;
        scrollbar-width: none !important;
    }

    html[data-theme] body.store-body .store-features::-webkit-scrollbar {
        display: none !important;
    }

    html[data-theme] body.store-body .feature-box {
        flex: 0 0 230px !important;
    }

    html[data-theme] body.store-body .categories-grid {
        grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    }

    html[data-theme] body.store-body .products-grid {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        gap: 10px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    html[data-theme] body.store-body .container {
        width: calc(100% - 18px) !important;
    }

    html[data-theme] body.store-body .top-bar {
        display: none !important;
    }

    html[data-theme] body.store-body .main-header {
        padding: 8px 0 !important;
    }

    html[data-theme] body.store-body .main-logo-img {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    html[data-theme] body.store-body .brand-name {
        font-size: .94rem !important;
    }

    html[data-theme] body.store-body .sub-brand {
        display: none !important;
    }

    html[data-theme] body.store-body .user-actions {
        gap: 5px !important;
    }

    html[data-theme] body.store-body .action-btn,
    html[data-theme] body.store-body .action-btn.icon-only {
        width: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border-radius: 10px !important;
    }

    html[data-theme] body.store-body .search-box {
        min-height: 41px !important;
    }

    html[data-theme] body.store-body .search-category-select {
        display: none !important;
    }

    html[data-theme] body.store-body .categories-nav {
        position: static !important;
    }

    html[data-theme] body.store-body .nav-links {
        padding: 6px 0 !important;
    }

    html[data-theme] body.store-body .nav-links a {
        padding: 7px 10px !important;
        font-size: .69rem !important;
    }

    html[data-theme] body.store-body .main-content-area {
        padding-top: 10px !important;
    }

    html[data-theme] body.store-body .hero-banner,
    html[data-theme] body.store-body .hero-banner.merchant-image-hero {
        margin-bottom: 14px !important;
        border-radius: 14px !important;
    }

    html[data-theme] body.store-body .merchant-hero-banner-img {
        min-height: 150px !important;
        max-height: 210px !important;
    }

    html[data-theme] body.store-body .store-features {
        margin-bottom: 22px !important;
    }

    html[data-theme] body.store-body .feature-box {
        flex-basis: 200px !important;
        min-height: 67px !important;
        padding: 10px 12px !important;
    }

    html[data-theme] body.store-body .feature-icon {
        width: 35px !important;
        height: 35px !important;
        flex-basis: 35px !important;
    }

    html[data-theme] body.store-body .section-title,
    html[data-theme] body.store-body .smart-section-head {
        margin-bottom: 10px !important;
    }

    html[data-theme] body.store-body .section-title h2,
    html[data-theme] body.store-body .smart-section-head h2 {
        font-size: 1rem !important;
    }

    html[data-theme] body.store-body .featured-categories-section {
        margin-bottom: 22px !important;
    }

    html[data-theme] body.store-body .categories-grid {
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
        gap: 6px !important;
    }

    html[data-theme] body.store-body .cat-card {
        min-height: 82px !important;
        padding: 4px !important;
        gap: 4px !important;
        border-radius: 10px !important;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 52px !important;
        flex-basis: 52px !important;
        border-radius: 7px !important;
    }

    html[data-theme] body.store-body .cat-card > h3,
    html[data-theme] body.store-body .cat-card > h4,
    html[data-theme] body.store-body .cat-card > span,
    html[data-theme] body.store-body .cat-card .cat-name,
    html[data-theme] body.store-body .cat-card .category-title {
        min-height: 18px !important;
        font-size: .56rem !important;
        line-height: 1.18 !important;
    }

    html[data-theme] body.store-body .smart-products-section,
    html[data-theme] body.store-body .recently-viewed-section,
    html[data-theme] body.store-body .products-section {
        margin-bottom: 24px !important;
    }

    html[data-theme] body.store-body .products-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 7px !important;
    }

    html[data-theme] body.store-body .product-card,
    html[data-theme] body.store-body .product-item,
    html[data-theme] body.store-body .merchant-modern-product-card {
        border-radius: 11px !important;
    }

    html[data-theme] body.store-body .product-card-media-link {
        min-height: 154px !important;
        aspect-ratio: 1 / 1.04 !important;
    }

    html[data-theme] body.store-body .product-card .product-img,
    html[data-theme] body.store-body .product-item .product-img,
    html[data-theme] body.store-body .product-card-media-link .product-img,
    html[data-theme] body.store-body .product-card > img,
    html[data-theme] body.store-body .product-item > img {
        min-height: 154px !important;
    }

    html[data-theme] body.store-body .product-card-content {
        padding: 7px 7px 8px !important;
    }

    html[data-theme] body.store-body .product-title-link .product-title,
    html[data-theme] body.store-body .product-title {
        min-height: 36px !important;
        font-size: .65rem !important;
        line-height: 1.4 !important;
    }

    html[data-theme] body.store-body .product-card-purchase {
        margin-top: 5px !important;
        gap: 5px !important;
    }

    html[data-theme] body.store-body .product-price-wrap {
        min-height: 25px !important;
    }

    html[data-theme] body.store-body .product-price {
        font-size: .78rem !important;
    }

    html[data-theme] body.store-body .product-old-price {
        font-size: .52rem !important;
    }

    html[data-theme] body.store-body .product-card-actions .add-btn,
    html[data-theme] body.store-body .product-card-purchase .add-btn {
        min-height: 34px !important;
        padding: 6px 4px !important;
        border-radius: 8px !important;
        font-size: .59rem !important;
    }

    html[data-theme] body.store-body .product-card > .product-wishlist-btn,
    html[data-theme] body.store-body .product-item > .product-wishlist-btn {
        top: 6px !important;
        left: 6px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        font-size: .7rem !important;
    }

    html[data-theme] body.store-body .product-card-badges {
        top: 6px !important;
        right: 6px !important;
    }

    html[data-theme] body.store-body .product-badge {
        padding: 3px 5px !important;
        font-size: .48rem !important;
    }

    /* Extra-compact New Arrivals slider: roughly 2.4 cards visible */
    html[data-theme] body.store-body .new-arrivals-section .smart-products-grid {
        gap: 7px !important;
        padding-bottom: 7px !important;
        scroll-snap-type: x mandatory !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .smart-products-grid > .product-card {
        flex: 0 0 min(39.5vw, 150px) !important;
        width: min(39.5vw, 150px) !important;
        min-width: 130px !important;
        max-width: 150px !important;
        border-radius: 10px !important;
        scroll-snap-align: start !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-card-media-link {
        min-height: 122px !important;
        aspect-ratio: 1 / .9 !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-card .product-img,
    html[data-theme] body.store-body .new-arrivals-section .product-card-media-link .product-img {
        min-height: 122px !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-card-content {
        padding: 6px !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-title {
        min-height: 31px !important;
        font-size: .57rem !important;
        line-height: 1.35 !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-price-wrap {
        min-height: 21px !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-price {
        font-size: .68rem !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-old-price {
        display: none !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-card-actions .add-btn {
        min-height: 30px !important;
        padding: 5px 3px !important;
        font-size: .52rem !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-card-actions .add-btn i {
        font-size: .62rem !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-card > .product-wishlist-btn {
        top: 5px !important;
        left: 5px !important;
        width: 27px !important;
        min-width: 27px !important;
        height: 27px !important;
        font-size: .62rem !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .product-badge {
        padding: 2px 4px !important;
        font-size: .43rem !important;
    }
}

@media (max-width: 380px) {
    html[data-theme] body.store-body .categories-grid {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    }

    html[data-theme] body.store-body .new-arrivals-section .smart-products-grid > .product-card {
        flex-basis: 42vw !important;
        width: 42vw !important;
        min-width: 126px !important;
    }
}

/* =========================================================
   Recently viewed — ultra compact mobile carousel
   Keeps the rest of the product cards unchanged.
   ========================================================= */
@media (max-width: 768px) {
    html[data-theme] body.store-body .recently-viewed-section {
        margin-bottom: 18px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head {
        margin-bottom: 7px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head h2 {
        font-size: .88rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head span {
        display: none !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 1px 1px 7px !important;
        scroll-snap-type: x mandatory !important;
        overscroll-behavior-inline: contain !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid::-webkit-scrollbar {
        display: none !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid > .product-card {
        flex: 0 0 min(29vw, 112px) !important;
        width: min(29vw, 112px) !important;
        min-width: 96px !important;
        max-width: 112px !important;
        border-radius: 9px !important;
        scroll-snap-align: start !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, .055) !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link {
        min-height: 82px !important;
        height: 82px !important;
        aspect-ratio: auto !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card .product-img,
    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link .product-img {
        width: 100% !important;
        height: 82px !important;
        min-height: 82px !important;
        object-fit: cover !important;
        padding: 0 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-content {
        padding: 4px 5px 5px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-title-link .product-title,
    html[data-theme] body.store-body .recently-viewed-section .product-title {
        min-height: 25px !important;
        max-height: 25px !important;
        margin: 0 !important;
        font-size: .49rem !important;
        line-height: 1.28 !important;
        -webkit-line-clamp: 2 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-description,
    html[data-theme] body.store-body .recently-viewed-section .product-social-proof,
    html[data-theme] body.store-body .recently-viewed-section .product-card-quantity,
    html[data-theme] body.store-body .recently-viewed-section .product-old-price {
        display: none !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-purchase {
        margin-top: 3px !important;
        gap: 3px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-buy-row {
        min-height: 17px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price-wrap {
        min-height: 17px !important;
        margin: 0 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price {
        font-size: .58rem !important;
        line-height: 1.15 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price .currency {
        font-size: .42rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions {
        margin-top: 2px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .add-btn {
        width: 100% !important;
        min-height: 25px !important;
        padding: 3px !important;
        border-radius: 6px !important;
        gap: 3px !important;
        font-size: .45rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .add-btn i {
        font-size: .52rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card > .product-wishlist-btn {
        top: 4px !important;
        left: 4px !important;
        width: 22px !important;
        min-width: 22px !important;
        height: 22px !important;
        border-radius: 7px !important;
        font-size: .52rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-badges {
        top: 4px !important;
        right: 4px !important;
        gap: 2px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-badge {
        display: none !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-badge:first-child {
        display: inline-flex !important;
        padding: 2px 3px !important;
        border-radius: 4px !important;
        font-size: .36rem !important;
    }
}

@media (max-width: 380px) {
    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid > .product-card {
        flex-basis: 29.5vw !important;
        width: 29.5vw !important;
        min-width: 92px !important;
        max-width: 104px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link,
    html[data-theme] body.store-body .recently-viewed-section .product-card .product-img,
    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link .product-img {
        height: 77px !important;
        min-height: 77px !important;
    }
}

/* =======================================================
   SERVICE HUB REDESIGN — clean, compact, storefront-first
   ======================================================= */
html[data-theme] body.store-body .merchant-service-hub {
    margin-top: 54px;
    margin-bottom: 44px;
}

html[data-theme] body.store-body .service-journey,
html[data-theme] body.store-body .service-help-card {
    background: var(--elegant-surface, #fff);
    border: 1px solid var(--elegant-line, #ece9ef);
    border-radius: 20px;
    box-shadow: none;
}

html[data-theme] body.store-body .service-journey {
    padding: clamp(20px, 3vw, 32px);
}

html[data-theme] body.store-body .service-hub-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

html[data-theme] body.store-body .service-hub-heading > div {
    min-width: 0;
}

html[data-theme] body.store-body .service-hub-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--elegant-primary, #6d43ff);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}

html[data-theme] body.store-body .service-hub-heading h2 {
    margin: 0;
    color: var(--elegant-text, #171923);
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.35;
    letter-spacing: -.025em;
}

html[data-theme] body.store-body .service-hub-heading > p {
    width: min(430px, 44%);
    margin: 0;
    color: var(--elegant-muted, #6f6877);
    font-size: .88rem;
    line-height: 1.8;
}

html[data-theme] body.store-body .service-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

html[data-theme] body.store-body .service-timeline::before {
    content: "";
    position: absolute;
    top: 25px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: var(--elegant-line, #ece9ef);
}

html[data-theme] body.store-body .service-timeline > li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 11px;
    padding: 0 12px;
    text-align: center;
}

html[data-theme] body.store-body .service-step-number {
    position: absolute;
    top: -2px;
    inset-inline-start: calc(50% + 22px);
    color: var(--elegant-muted, #8a8490);
    font-family: Inter, sans-serif;
    font-size: .6rem;
    font-weight: 700;
}

html[data-theme] body.store-body .service-step-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 7px solid var(--elegant-surface, #fff);
    border-radius: 50%;
    background: var(--elegant-surface-2, #f7f6f8);
    color: var(--elegant-primary, #6d43ff);
    box-shadow: 0 0 0 1px var(--elegant-line, #ece9ef);
    font-size: 1rem;
}

html[data-theme] body.store-body .service-timeline strong,
html[data-theme] body.store-body .service-timeline small {
    display: block;
}

html[data-theme] body.store-body .service-timeline strong {
    color: var(--elegant-text, #171923);
    font-size: .86rem;
    font-weight: 700;
}

html[data-theme] body.store-body .service-timeline small {
    margin-top: 4px;
    color: var(--elegant-muted, #6f6877);
    font-size: .71rem;
    line-height: 1.55;
}

html[data-theme] body.store-body .service-hub-grid {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.5fr);
    gap: 16px;
    margin-top: 16px;
}

html[data-theme] body.store-body .service-promises {
    display: grid;
    align-content: stretch;
    gap: 10px;
}

html[data-theme] body.store-body .service-promises article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 13px 15px;
    background: var(--elegant-surface, #fff);
    border: 1px solid var(--elegant-line, #ece9ef);
    border-radius: 15px;
}

html[data-theme] body.store-body .service-promises article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--elegant-surface-2, #f7f6f8);
    color: var(--elegant-primary, #6d43ff);
    font-size: .96rem;
}

html[data-theme] body.store-body .service-promises strong,
html[data-theme] body.store-body .service-promises small {
    display: block;
}

html[data-theme] body.store-body .service-promises strong {
    margin-bottom: 3px;
    color: var(--elegant-text, #171923);
    font-size: .82rem;
    font-weight: 700;
}

html[data-theme] body.store-body .service-promises small {
    color: var(--elegant-muted, #6f6877);
    font-size: .69rem;
    line-height: 1.55;
}

html[data-theme] body.store-body .service-help-card {
    display: grid;
    grid-template-columns: minmax(210px, .78fr) minmax(0, 1.22fr);
    overflow: hidden;
}

html[data-theme] body.store-body .service-help-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    padding: 26px;
    background: var(--elegant-surface-2, #f7f6f8);
    border-inline-end: 1px solid var(--elegant-line, #ece9ef);
}

html[data-theme] body.store-body .service-help-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 13px;
    background: #1fa855;
    color: #fff;
    font-size: 1.2rem;
}

html[data-theme] body.store-body .service-help-copy h3 {
    margin: 0 0 8px;
    color: var(--elegant-text, #171923);
    font-size: 1.15rem;
    line-height: 1.4;
}

html[data-theme] body.store-body .service-help-copy p {
    margin: 0 0 18px;
    color: var(--elegant-muted, #6f6877);
    font-size: .78rem;
    line-height: 1.75;
}

html[data-theme] body.store-body .service-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #1fa855;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease;
}

html[data-theme] body.store-body .service-whatsapp-btn:hover {
    background: #178943;
    transform: translateY(-1px);
}

html[data-theme] body.store-body .service-faq-list {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0;
    padding: 12px 20px;
}

html[data-theme] body.store-body .service-faq-list details {
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid var(--elegant-line, #ece9ef) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme] body.store-body .service-faq-list details:last-child {
    border-bottom: 0 !important;
}

html[data-theme] body.store-body .service-faq-list summary {
    min-height: 51px;
    padding: 0 2px;
    color: var(--elegant-text, #171923);
    font-size: .78rem;
    font-weight: 650;
}

html[data-theme] body.store-body .service-faq-list summary i {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--elegant-surface-2, #f7f6f8);
    color: var(--elegant-muted, #6f6877);
    font-size: .65rem;
}

html[data-theme] body.store-body .service-faq-list p {
    margin: 0;
    padding: 0 2px 14px;
    color: var(--elegant-muted, #6f6877);
    font-size: .73rem;
    line-height: 1.75;
}

@media (max-width: 900px) {
    html[data-theme] body.store-body .service-hub-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    html[data-theme] body.store-body .service-hub-heading > p {
        width: 100%;
    }

    html[data-theme] body.store-body .service-hub-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme] body.store-body .service-promises {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-theme] body.store-body .service-promises article {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    html[data-theme] body.store-body .merchant-service-hub {
        margin-top: 34px;
        margin-bottom: 30px;
    }

    html[data-theme] body.store-body .service-journey {
        padding: 18px 14px;
        border-radius: 16px;
    }

    html[data-theme] body.store-body .service-hub-heading {
        margin-bottom: 20px;
    }

    html[data-theme] body.store-body .service-hub-heading h2 {
        font-size: 1.15rem;
    }

    html[data-theme] body.store-body .service-hub-heading > p {
        font-size: .75rem;
        line-height: 1.65;
    }

    html[data-theme] body.store-body .service-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    html[data-theme] body.store-body .service-timeline::before {
        display: none;
    }

    html[data-theme] body.store-body .service-timeline > li {
        min-height: 118px;
        align-content: center;
        padding: 12px 8px;
        border: 1px solid var(--elegant-line, #ece9ef);
        border-radius: 13px;
        background: var(--elegant-surface-2, #f7f6f8);
    }

    html[data-theme] body.store-body .service-step-icon {
        width: 39px;
        height: 39px;
        border: 0;
        border-radius: 11px;
        background: var(--elegant-surface, #fff);
        box-shadow: none;
        font-size: .82rem;
    }

    html[data-theme] body.store-body .service-step-number {
        top: 8px;
        inset-inline-start: 9px;
        font-size: .56rem;
    }

    html[data-theme] body.store-body .service-timeline strong {
        font-size: .76rem;
    }

    html[data-theme] body.store-body .service-timeline small {
        font-size: .63rem;
    }

    html[data-theme] body.store-body .service-promises {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    html[data-theme] body.store-body .service-promises::-webkit-scrollbar {
        display: none;
    }

    html[data-theme] body.store-body .service-promises article {
        flex: 0 0 70%;
        min-height: 72px;
        grid-template-columns: 38px minmax(0, 1fr);
        justify-items: initial;
        text-align: start;
        scroll-snap-align: start;
        padding: 11px 12px;
        border-radius: 13px;
    }

    html[data-theme] body.store-body .service-promises article > span {
        width: 38px;
        height: 38px;
    }

    html[data-theme] body.store-body .service-help-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    html[data-theme] body.store-body .service-help-copy {
        padding: 20px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--elegant-line, #ece9ef);
    }

    html[data-theme] body.store-body .service-help-icon {
        width: 37px;
        height: 37px;
        margin-bottom: 13px;
        font-size: 1rem;
    }

    html[data-theme] body.store-body .service-help-copy h3 {
        font-size: 1rem;
    }

    html[data-theme] body.store-body .service-whatsapp-btn {
        width: 100%;
    }

    html[data-theme] body.store-body .service-faq-list {
        padding: 7px 15px;
    }

    html[data-theme] body.store-body .service-faq-list summary {
        min-height: 48px;
        font-size: .74rem;
    }
}

/* =======================================================
   MERCHANT GROWTH SUITE V10
   Product options, comparison, bundles, stories, rewards,
   referrals, restock alerts, campaigns and account tools.
   ======================================================= */

html[data-theme] body.store-body {
    --growth-primary: var(--elegant-primary, #6d43ff);
    --growth-primary-soft: rgba(109, 67, 255, .09);
    --growth-surface: var(--elegant-surface, #fff);
    --growth-surface-2: var(--elegant-surface-2, #f7f6f8);
    --growth-text: var(--elegant-text, #171923);
    --growth-muted: var(--elegant-muted, #6f6877);
    --growth-line: var(--elegant-line, #ece9ef);
    --growth-success: #168a55;
    --growth-danger: #c83d4f;
    --growth-radius: 16px;
}


html[data-theme] body.store-body .product-card-media-link,
html[data-theme] body.store-body .product-card-media {
    position: relative;
}





/* Sticky comparison bar */


















/* Comparison modal */
































/* Product options and restock form */
html[data-theme] body.store-body .merchant-product-options {
    display: grid;
    gap: 12px;
    margin: 16px 0;
    padding: 15px;
    border: 1px solid var(--growth-line);
    border-radius: 14px;
    background: var(--growth-surface-2);
}

html[data-theme] body.store-body .product-option-field {
    display: grid;
    gap: 7px;
}

html[data-theme] body.store-body .product-option-field > span {
    color: var(--growth-text);
    font-size: .76rem;
    font-weight: 700;
}

html[data-theme] body.store-body .product-option-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--growth-line);
    border-radius: 10px;
    color: var(--growth-text);
    background: var(--growth-surface);
    outline: none;
}

html[data-theme] body.store-body .product-option-field select:focus {
    border-color: color-mix(in srgb, var(--growth-primary) 55%, var(--growth-line));
    box-shadow: 0 0 0 3px var(--growth-primary-soft);
}

html[data-theme] body.store-body .merchant-restock-form {
    display: grid;
    gap: 13px;
    margin-top: 14px;
    padding: 15px;
    border: 1px solid rgba(216, 132, 0, .24);
    border-radius: 14px;
    background: rgba(216, 132, 0, .055);
}

html[data-theme] body.store-body .merchant-restock-form > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

html[data-theme] body.store-body .merchant-restock-form > div:first-child > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 10px;
    color: #a76400;
    background: rgba(216, 132, 0, .10);
}

html[data-theme] body.store-body .merchant-restock-form strong,
html[data-theme] body.store-body .merchant-restock-form small {
    display: block;
}

html[data-theme] body.store-body .merchant-restock-form strong {
    color: var(--growth-text);
    font-size: .78rem;
}

html[data-theme] body.store-body .merchant-restock-form small {
    margin-top: 2px;
    color: var(--growth-muted);
    font-size: .68rem;
}

html[data-theme] body.store-body .restock-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

html[data-theme] body.store-body .restock-fields input {
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--growth-line);
    border-radius: 10px;
    color: var(--growth-text);
    background: var(--growth-surface);
    outline: none;
}

html[data-theme] body.store-body .restock-fields button {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #a76400;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
}

html[data-theme] body.store-body .restock-message.is-success {
    color: var(--growth-success);
}



/* Custom bundle */
html[data-theme] body.store-body .merchant-bundle-container,
html[data-theme] body.store-body .merchant-stories-container,
html[data-theme] body.store-body .merchant-customer-gallery-container,
html[data-theme] body.store-body .merchant-campaign-container {
    margin-top: 38px;
    margin-bottom: 38px;
}

html[data-theme] body.store-body .merchant-bundle-builder {
    padding: 22px;
    border: 1px solid var(--growth-line);
    border-radius: 19px;
    background: var(--growth-surface);
}

html[data-theme] body.store-body .bundle-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

html[data-theme] body.store-body .bundle-heading p,
html[data-theme] body.store-body .gallery-heading p {
    margin: 7px 0 0;
    color: var(--growth-muted);
    font-size: .76rem;
    line-height: 1.7;
}

html[data-theme] body.store-body .bundle-total {
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid var(--growth-line);
    border-radius: 12px;
    background: var(--growth-surface-2);
    text-align: start;
}

html[data-theme] body.store-body .bundle-total small,
html[data-theme] body.store-body .bundle-total strong,
html[data-theme] body.store-body .bundle-total span {
    display: block;
}

html[data-theme] body.store-body .bundle-total small {
    color: var(--growth-muted);
    font-size: .65rem;
}

html[data-theme] body.store-body .bundle-total strong {
    margin-top: 3px;
    color: var(--growth-text);
    font-family: Inter, sans-serif !important;
    font-size: 1.05rem;
}

html[data-theme] body.store-body .bundle-total span {
    margin-top: 3px;
    color: var(--growth-success);
    font-size: .65rem;
    font-weight: 700;
}

html[data-theme] body.store-body .bundle-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

html[data-theme] body.store-body .bundle-product {
    position: relative;
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 9px;
    overflow: hidden;
    border: 1px solid var(--growth-line);
    border-radius: 13px;
    background: var(--growth-surface);
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

html[data-theme] body.store-body .bundle-product:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--growth-primary) 35%, var(--growth-line));
}

html[data-theme] body.store-body .bundle-product:has(input:checked) {
    border-color: var(--growth-primary);
    background: var(--growth-primary-soft);
}

html[data-theme] body.store-body .bundle-product input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

html[data-theme] body.store-body .bundle-check {
    position: absolute;
    z-index: 2;
    top: 15px;
    inset-inline-start: 15px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 8px;
    color: transparent;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

html[data-theme] body.store-body .bundle-product:has(input:checked) .bundle-check {
    color: #fff;
    background: var(--growth-primary);
}

html[data-theme] body.store-body .bundle-product img {
    width: 100%;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
    border-radius: 9px;
    background: var(--growth-surface-2);
}

html[data-theme] body.store-body .bundle-product strong {
    overflow: hidden;
    color: var(--growth-text);
    font-size: .72rem;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[data-theme] body.store-body .bundle-product small {
    color: var(--growth-primary);
    font-family: Inter, sans-serif !important;
    font-size: .68rem;
    font-weight: 700;
}

html[data-theme] body.store-body .bundle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--growth-line);
}

html[data-theme] body.store-body .bundle-footer > span {
    color: var(--growth-muted);
    font-size: .74rem;
}

html[data-theme] body.store-body .bundle-footer button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

/* Stories */
html[data-theme] body.store-body .merchant-stories {
    padding: 18px 20px;
    border: 1px solid var(--growth-line);
    border-radius: 18px;
    background: var(--growth-surface);
}

html[data-theme] body.store-body .stories-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

html[data-theme] body.store-body .stories-heading h2 {
    margin: 0;
    color: var(--growth-text);
    font-size: 1.15rem;
}

html[data-theme] body.store-body .stories-heading > span {
    color: var(--growth-muted);
    font-size: .7rem;
}

html[data-theme] body.store-body .stories-track {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

html[data-theme] body.store-body .stories-track::-webkit-scrollbar,
html[data-theme] body.store-body .customer-gallery-track::-webkit-scrollbar {
    display: none;
}

html[data-theme] body.store-body .story-item {
    flex: 0 0 76px;
    display: grid;
    justify-items: center;
    gap: 7px;
    border: 0;
    color: var(--growth-text);
    background: transparent;
    cursor: pointer;
    scroll-snap-align: start;
}

html[data-theme] body.store-body .story-item > span {
    width: 68px;
    height: 68px;
    padding: 3px;
    border: 2px solid var(--growth-primary);
    border-radius: 50%;
}

html[data-theme] body.store-body .story-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

html[data-theme] body.store-body .story-item strong {
    width: 100%;
    overflow: hidden;
    font-size: .66rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[data-theme] body.store-body .merchant-story-viewer {
    position: relative;
    width: min(430px, calc(100% - 28px));
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background: #111;
    box-shadow: 0 25px 90px rgba(0,0,0,.4);
}

html[data-theme] body.store-body .merchant-story-viewer > .close-modal-btn {
    position: absolute;
    z-index: 3;
    top: 12px;
    inset-inline-end: 12px;
    color: #fff;
    background: rgba(0,0,0,.44);
    border-color: rgba(255,255,255,.2);
}

html[data-theme] body.store-body #merchantStoryMedia img,
html[data-theme] body.store-body #merchantStoryMedia video {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #111;
}

html[data-theme] body.store-body .merchant-story-caption {
    display: grid;
    gap: 7px;
    padding: 15px 17px 18px;
}

html[data-theme] body.store-body .merchant-story-caption strong {
    font-size: .95rem;
}

html[data-theme] body.store-body .merchant-story-caption p {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: .75rem;
    line-height: 1.65;
}

html[data-theme] body.store-body .merchant-story-caption button {
    min-height: 40px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--growth-primary);
    font-weight: 700;
    cursor: pointer;
}

/* Customer gallery */
html[data-theme] body.store-body .merchant-customer-gallery {
    padding: 22px;
    border: 1px solid var(--growth-line);
    border-radius: 19px;
    background: var(--growth-surface);
}

html[data-theme] body.store-body .gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

html[data-theme] body.store-body .customer-gallery-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

html[data-theme] body.store-body .customer-gallery-track article {
    overflow: hidden;
    border: 1px solid var(--growth-line);
    border-radius: 14px;
    background: var(--growth-surface);
}

html[data-theme] body.store-body .customer-gallery-track article > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

html[data-theme] body.store-body .customer-gallery-track article > div {
    padding: 11px;
}

html[data-theme] body.store-body .customer-gallery-track strong {
    display: block;
    color: var(--growth-text);
    font-size: .73rem;
}

html[data-theme] body.store-body .customer-gallery-track p {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 9px;
    color: var(--growth-muted);
    font-size: .67rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

html[data-theme] body.store-body .customer-gallery-track button {
    padding: 0;
    border: 0;
    color: var(--growth-primary);
    background: transparent;
    font-size: .67rem;
    font-weight: 700;
    cursor: pointer;
}

/* Campaign landing */
html[data-theme] body.store-body .merchant-campaign-landing {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--growth-line);
    border-radius: 20px;
    background: var(--growth-surface);
}

html[data-theme] body.store-body .campaign-cover {
    grid-row: 1;
    grid-column: 1 / -1;
    width: 100%;
    max-height: 330px;
    object-fit: cover;
}

html[data-theme] body.store-body .campaign-copy {
    padding: 28px;
    background: var(--growth-surface-2);
}

html[data-theme] body.store-body .campaign-copy > span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--growth-primary);
    background: var(--growth-primary-soft);
    font-size: .66rem;
    font-weight: 700;
}

html[data-theme] body.store-body .campaign-copy h1 {
    margin: 12px 0 8px;
    color: var(--growth-text);
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.3;
}

html[data-theme] body.store-body .campaign-copy p {
    margin: 0;
    color: var(--growth-muted);
    font-size: .8rem;
    line-height: 1.8;
}

html[data-theme] body.store-body .campaign-copy > strong {
    display: block;
    margin-top: 12px;
    color: var(--growth-success);
    font-size: .85rem;
}

html[data-theme] body.store-body .campaign-copy > a {
    display: inline-flex;
    margin-top: 17px;
    color: var(--growth-primary);
    font-size: .74rem;
    font-weight: 700;
}

html[data-theme] body.store-body .campaign-products {
    align-content: start;
    padding: 18px;
}

body.campaign-landing-active .hero-banner,
body.campaign-landing-active .store-features,
body.campaign-landing-active .featured-categories-section,
body.campaign-landing-active #smartProductSections,
body.campaign-landing-active #recentlyViewedSection,
body.campaign-landing-active .products-section,
body.campaign-landing-active #faq {
    display: none !important;
}

/* Rewards, referrals and analytics */
html[data-theme] body.store-body .merchant-growth-account-panel,
html[data-theme] body.store-body .merchant-analytics-dashboard {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--growth-line);
    border-radius: 16px;
    background: var(--growth-surface);
}

html[data-theme] body.store-body .growth-account-heading,
html[data-theme] body.store-body .analytics-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

html[data-theme] body.store-body .growth-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

html[data-theme] body.store-body .growth-account-grid article {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 15px;
    border: 1px solid var(--growth-line);
    border-radius: 13px;
    background: var(--growth-surface-2);
}

html[data-theme] body.store-body .growth-account-grid article > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--growth-primary);
    background: var(--growth-primary-soft);
}

html[data-theme] body.store-body .growth-account-grid article > span,
html[data-theme] body.store-body .growth-account-grid article > small {
    color: var(--growth-muted);
    font-size: .69rem;
}

html[data-theme] body.store-body .growth-account-grid article > strong {
    color: var(--growth-text);
    font-family: Inter, sans-serif !important;
    font-size: 1.16rem;
}

html[data-theme] body.store-body .growth-account-grid article > button,
html[data-theme] body.store-body .analytics-heading > button {
    min-height: 38px;
    margin-top: 7px;
    padding: 0 12px;
    border: 1px solid var(--growth-line);
    border-radius: 9px;
    color: var(--growth-text);
    background: var(--growth-surface);
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
}

html[data-theme] body.store-body .growth-account-grid article > button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

html[data-theme] body.store-body .analytics-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

html[data-theme] body.store-body .analytics-cards article {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid var(--growth-line);
    border-radius: 12px;
    background: var(--growth-surface-2);
}

html[data-theme] body.store-body .analytics-cards i {
    color: var(--growth-primary);
}

html[data-theme] body.store-body .analytics-cards span {
    color: var(--growth-muted);
    font-size: .64rem;
}

html[data-theme] body.store-body .analytics-cards strong {
    color: var(--growth-text);
    font-family: Inter, sans-serif !important;
    font-size: 1.15rem;
}

html[data-theme] body.store-body .analytics-top-products {
    margin-top: 13px;
    padding: 13px;
    border: 1px solid var(--growth-line);
    border-radius: 12px;
}

html[data-theme] body.store-body .analytics-top-products h4 {
    margin: 0 0 9px;
    color: var(--growth-text);
    font-size: .78rem;
}

html[data-theme] body.store-body .analytics-top-products > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--growth-line);
    color: var(--growth-muted);
    font-size: .7rem;
}

html[data-theme] body.store-body .analytics-top-products > div:last-child {
    border-bottom: 0;
}

html[data-theme] body.store-body .analytics-loading {
    padding: 24px;
    color: var(--growth-muted);
    text-align: center;
    font-size: .74rem;
}

/* Abandoned cart consent */
html[data-theme] body.store-body .abandoned-cart-optin {
    display: grid;
    gap: 10px;
    margin-top: 11px;
    padding: 12px;
    border: 1px solid var(--growth-line);
    border-radius: 12px;
    background: var(--growth-surface-2);
}

html[data-theme] body.store-body .abandoned-cart-optin > label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

html[data-theme] body.store-body .abandoned-cart-optin input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--growth-primary);
}

html[data-theme] body.store-body .abandoned-cart-optin strong,
html[data-theme] body.store-body .abandoned-cart-optin small {
    display: block;
}

html[data-theme] body.store-body .abandoned-cart-optin strong {
    color: var(--growth-text);
    font-size: .72rem;
}

html[data-theme] body.store-body .abandoned-cart-optin small {
    margin-top: 2px;
    color: var(--growth-muted);
    font-size: .63rem;
    line-height: 1.5;
}

html[data-theme] body.store-body .abandoned-contact[hidden] {
    display: none !important;
}

html[data-theme] body.store-body .abandoned-contact input {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--growth-line);
    border-radius: 9px;
    color: var(--growth-text);
    background: var(--growth-surface);
    outline: none;
}

/* Reorder action inside tracking cards */
html[data-theme] body.store-body .order-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0 22px 22px;
}

html[data-theme] body.store-body .order-result-actions > * {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

/* Dark theme corrections */


html[data-theme="dark"] body.store-body .bundle-check {
    border-color: rgba(255,255,255,.12);
    background: rgba(24, 17, 31, .88);
}

@media (max-width: 900px) {
    html[data-theme] body.store-body .bundle-products,
    html[data-theme] body.store-body .customer-gallery-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    html[data-theme] body.store-body .merchant-campaign-landing {
        grid-template-columns: 1fr;
    }

    html[data-theme] body.store-body .analytics-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    

    

    

    

    

    

    

    

    html[data-theme] body.store-body .merchant-bundle-container,
    html[data-theme] body.store-body .merchant-stories-container,
    html[data-theme] body.store-body .merchant-customer-gallery-container,
    html[data-theme] body.store-body .merchant-campaign-container {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    html[data-theme] body.store-body .merchant-bundle-builder,
    html[data-theme] body.store-body .merchant-customer-gallery {
        padding: 14px;
        border-radius: 16px;
    }

    html[data-theme] body.store-body .bundle-heading,
    html[data-theme] body.store-body .gallery-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    html[data-theme] body.store-body .bundle-heading h2,
    html[data-theme] body.store-body .gallery-heading h2 {
        font-size: 1.05rem;
    }

    html[data-theme] body.store-body .bundle-total {
        min-width: 0;
    }

    html[data-theme] body.store-body .bundle-products {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 3px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    html[data-theme] body.store-body .bundle-products::-webkit-scrollbar {
        display: none;
    }

    html[data-theme] body.store-body .bundle-product {
        flex: 0 0 39%;
        scroll-snap-align: start;
    }

    html[data-theme] body.store-body .bundle-product strong {
        font-size: .65rem;
    }

    html[data-theme] body.store-body .bundle-footer {
        align-items: stretch;
        flex-direction: column;
    }

    html[data-theme] body.store-body .bundle-footer button {
        width: 100%;
    }

    html[data-theme] body.store-body .merchant-stories {
        padding: 14px;
        border-radius: 16px;
    }

    html[data-theme] body.store-body .story-item {
        flex-basis: 65px;
    }

    html[data-theme] body.store-body .story-item > span {
        width: 58px;
        height: 58px;
    }

    html[data-theme] body.store-body .customer-gallery-track {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    html[data-theme] body.store-body .customer-gallery-track article {
        flex: 0 0 62%;
        scroll-snap-align: start;
    }

    html[data-theme] body.store-body .campaign-copy {
        padding: 20px;
    }

    html[data-theme] body.store-body .campaign-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    html[data-theme] body.store-body .growth-account-grid {
        grid-template-columns: 1fr;
    }

    html[data-theme] body.store-body .analytics-cards {
        grid-template-columns: 1fr 1fr;
    }

    html[data-theme] body.store-body .restock-fields {
        grid-template-columns: 1fr;
    }

    html[data-theme] body.store-body .restock-fields button {
        width: 100%;
    }

    html[data-theme] body.store-body .order-result-actions {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0 15px 16px;
    }
}

@media (max-width: 390px) {
    

    

    html[data-theme] body.store-body .bundle-product {
        flex-basis: 44%;
    }
}


/* =======================================================
   CATEGORY CARDS — subtle size increase (2026-06-28)
   ======================================================= */
html[data-theme] body.store-body .categories-grid {
    gap: 10px !important;
}

html[data-theme] body.store-body .cat-card {
    min-height: 112px !important;
    padding: 7px !important;
    gap: 7px !important;
}

html[data-theme] body.store-body .cat-card .cat-img-placeholder,
html[data-theme] body.store-body .cat-card .category-image-wrapper,
html[data-theme] body.store-body .cat-card .cat-image-wrapper,
html[data-theme] body.store-body .cat-card > img {
    height: 76px !important;
    flex-basis: 76px !important;
}

html[data-theme] body.store-body .cat-card > h3,
html[data-theme] body.store-body .cat-card > h4,
html[data-theme] body.store-body .cat-card > span,
html[data-theme] body.store-body .cat-card .cat-name,
html[data-theme] body.store-body .cat-card .category-title {
    font-size: .69rem !important;
}

@media (max-width: 600px) {
    html[data-theme] body.store-body .categories-grid {
        gap: 7px !important;
    }

    html[data-theme] body.store-body .cat-card {
        min-height: 88px !important;
        padding: 5px !important;
        gap: 5px !important;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 58px !important;
        flex-basis: 58px !important;
    }

    html[data-theme] body.store-body .cat-card > h3,
    html[data-theme] body.store-body .cat-card > h4,
    html[data-theme] body.store-body .cat-card > span,
    html[data-theme] body.store-body .cat-card .cat-name,
    html[data-theme] body.store-body .cat-card .category-title {
        font-size: .59rem !important;
    }
}

/* =======================================================
   MOBILE HOME ORDER + COMPACT SECTIONS (2026-06-29)
   - Show the three upper service cards without a slider.
   - Slightly enlarge category cards on phones.
   - Keep recently viewed lower and even more compact.
   - Reserve the final storefront position for the bundle.
   ======================================================= */
.merchant-bottom-bundle-slot:empty {
    display: none !important;
}

.merchant-bottom-bundle-slot > .merchant-bundle-container {
    margin-top: 20px !important;
    margin-bottom: 44px !important;
}

@media (max-width: 600px) {
    /* The three cards below the hero stay visible together — no horizontal slide. */
    html[data-theme] body.store-body .store-features {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        scroll-snap-type: none !important;
    }

    html[data-theme] body.store-body .store-features .feature-box {
        flex: none !important;
        min-width: 0 !important;
        min-height: 104px !important;
        padding: 10px 6px !important;
        gap: 7px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    html[data-theme] body.store-body .store-features .feature-icon {
        width: 37px !important;
        height: 37px !important;
        flex: 0 0 37px !important;
    }

    html[data-theme] body.store-body .store-features .feature-info {
        min-width: 0 !important;
    }

    html[data-theme] body.store-body .store-features .feature-info h4 {
        font-size: .68rem !important;
        line-height: 1.35 !important;
    }

    html[data-theme] body.store-body .store-features .feature-info p {
        margin-top: 2px !important;
        font-size: .56rem !important;
        line-height: 1.45 !important;
    }

    /* Also keep the three service promise cards fully visible. */
    html[data-theme] body.store-body .service-promises {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
    }

    html[data-theme] body.store-body .service-promises article {
        min-width: 0 !important;
        min-height: 108px !important;
        padding: 10px 6px !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        align-content: center !important;
        gap: 7px !important;
        text-align: center !important;
        scroll-snap-align: none !important;
    }

    html[data-theme] body.store-body .service-promises article > span {
        width: 36px !important;
        height: 36px !important;
    }

    html[data-theme] body.store-body .service-promises strong {
        font-size: .66rem !important;
    }

    html[data-theme] body.store-body .service-promises small {
        font-size: .55rem !important;
        line-height: 1.45 !important;
    }

    /* Category cards: a small but noticeable height/image increase. */
    html[data-theme] body.store-body .cat-card {
        min-height: 98px !important;
        padding: 6px !important;
        gap: 6px !important;
        border-radius: 11px !important;
    }

    html[data-theme] body.store-body .cat-card .cat-img-placeholder,
    html[data-theme] body.store-body .cat-card .category-image-wrapper,
    html[data-theme] body.store-body .cat-card .cat-image-wrapper,
    html[data-theme] body.store-body .cat-card > img {
        height: 66px !important;
        flex-basis: 66px !important;
        border-radius: 8px !important;
    }

    html[data-theme] body.store-body .cat-card > h3,
    html[data-theme] body.store-body .cat-card > h4,
    html[data-theme] body.store-body .cat-card > span,
    html[data-theme] body.store-body .cat-card .cat-name,
    html[data-theme] body.store-body .cat-card .category-title {
        min-height: 19px !important;
        font-size: .63rem !important;
        line-height: 1.22 !important;
    }

    /* Recently viewed now sits low on the page and uses smaller cards. */
    html[data-theme] body.store-body .merchant-lower-sections {
        margin-top: 8px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section {
        margin-bottom: 14px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head {
        margin-bottom: 6px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head h2 {
        font-size: .80rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid {
        gap: 5px !important;
        padding: 1px 1px 5px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid > .product-card {
        flex: 0 0 min(24vw, 88px) !important;
        width: min(24vw, 88px) !important;
        min-width: 78px !important;
        max-width: 88px !important;
        border-radius: 8px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link,
    html[data-theme] body.store-body .recently-viewed-section .product-card .product-img,
    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link .product-img {
        height: 62px !important;
        min-height: 62px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-content {
        padding: 3px 4px 4px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-title-link .product-title,
    html[data-theme] body.store-body .recently-viewed-section .product-title {
        min-height: 21px !important;
        max-height: 21px !important;
        font-size: .43rem !important;
        line-height: 1.23 !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-purchase {
        margin-top: 2px !important;
        gap: 2px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-buy-row,
    html[data-theme] body.store-body .recently-viewed-section .product-price-wrap {
        min-height: 15px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price {
        font-size: .52rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price .currency {
        font-size: .38rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .add-btn {
        min-height: 22px !important;
        padding: 2px !important;
        border-radius: 5px !important;
        font-size: .39rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .add-btn i {
        font-size: .46rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card > .product-wishlist-btn {
        top: 3px !important;
        left: 3px !important;
        width: 19px !important;
        min-width: 19px !important;
        height: 19px !important;
        border-radius: 6px !important;
        font-size: .44rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-badges {
        top: 3px !important;
        right: 3px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-badge:first-child {
        padding: 1px 3px !important;
        font-size: .31rem !important;
    }

    .merchant-bottom-bundle-slot > .merchant-bundle-container {
        margin-top: 10px !important;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 380px) {
    html[data-theme] body.store-body .recently-viewed-section .smart-products-grid > .product-card {
        flex-basis: 25vw !important;
        width: 25vw !important;
        min-width: 74px !important;
        max-width: 84px !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link,
    html[data-theme] body.store-body .recently-viewed-section .product-card .product-img,
    html[data-theme] body.store-body .recently-viewed-section .product-card-media-link .product-img {
        height: 58px !important;
        min-height: 58px !important;
    }
}

/* =======================================================
   GLOBAL READABLE TYPE SCALE — 2026-06-29
   Makes the storefront feel naturally sized without using
   browser zoom or scaling the full layout.
   ======================================================= */
html {
    font-size: 18.25px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.store-body {
    font-size: 1rem;
    line-height: 1.72;
}

body.store-body .top-bar {
    font-size: .88rem !important;
}

body.store-body .search-box input,
body.store-body .search-category-select,
body.store-body .filter-select,
body.store-body .form-control,
body.store-body button,
body.store-body label {
    font-size: .94rem;
}

body.store-body .small-text {
    font-size: .78rem !important;
}

body.store-body .bold-text {
    font-size: .94rem !important;
}

body.store-body .nav-links a {
    font-size: .98rem !important;
}

body.store-body .banner-content p {
    font-size: 1.12rem !important;
}

body.store-body .feature-info h4 {
    font-size: 1.02rem !important;
}

body.store-body .feature-info p {
    font-size: .88rem !important;
}

body.store-body .section-title h2,
body.store-body .section-title h3 {
    font-size: 1.55rem !important;
}

html[data-theme] body.store-body .cat-card > h3,
html[data-theme] body.store-body .cat-card > h4,
html[data-theme] body.store-body .cat-card > span,
html[data-theme] body.store-body .cat-card .cat-name,
html[data-theme] body.store-body .cat-card .category-title {
    font-size: .82rem !important;
    line-height: 1.35 !important;
}

body.store-body .results-count,
body.store-body .stock-switch,
body.store-body .filter-select {
    font-size: .88rem !important;
}

body.store-body .product-title,
body.store-body .product-title-link .product-title {
    font-size: 1rem !important;
    line-height: 1.48 !important;
}

body.store-body .product-price {
    font-size: 1.28rem !important;
}

body.store-body .add-btn,
body.store-body .btn-primary,
body.store-body .btn-secondary {
    font-size: .95rem !important;
}

body.store-body .footer-desc,
body.store-body .footer-links a,
body.store-body .contact-info li,
body.store-body .copyright {
    font-size: .92rem;
}

body.store-body .tracking-kicker,
body.store-body .order-code-label,
body.store-body .order-detail-box span,
body.store-body .tracking-order-item p,
body.store-body .tracking-help-item span,
body.store-body .progress-step {
    font-size: .80rem !important;
}

body.store-body .tracking-form-grid label,
body.store-body .tracking-account-row p,
body.store-body .tracking-search-title p,
body.store-body .tracking-order-item h4,
body.store-body .order-detail-box strong {
    font-size: .90rem !important;
}

@media (max-width: 768px) {
    html {
        font-size: 17px;
    }

    body.store-body .top-bar {
        font-size: .80rem !important;
    }

    body.store-body .brand-name {
        font-size: 1.25rem !important;
    }

    body.store-body .nav-links a {
        font-size: .90rem !important;
    }

    body.store-body .banner-content h1,
    body.store-body .banner-content h2 {
        font-size: 1.78rem !important;
        line-height: 1.25 !important;
    }

    body.store-body .banner-content p {
        font-size: 1rem !important;
        line-height: 1.75 !important;
    }

    body.store-body .section-title h2,
    body.store-body .section-title h3 {
        font-size: 1.20rem !important;
    }

    body.store-body .product-title,
    body.store-body .product-title-link .product-title {
        font-size: .88rem !important;
        line-height: 1.45 !important;
    }

    body.store-body .product-price {
        font-size: 1.08rem !important;
    }

    body.store-body .add-btn,
    body.store-body .btn-primary,
    body.store-body .btn-secondary {
        font-size: .88rem !important;
    }

    body.store-body .results-count,
    body.store-body .stock-switch,
    body.store-body .filter-select {
        font-size: .84rem !important;
    }

    body.store-body .mobile-bottom-nav .nav-item {
        font-size: .72rem !important;
    }
}

@media (max-width: 600px) {
    html[data-theme] body.store-body .store-features .feature-box {
        min-height: 116px !important;
    }

    html[data-theme] body.store-body .store-features .feature-info h4 {
        font-size: .76rem !important;
        line-height: 1.38 !important;
    }

    html[data-theme] body.store-body .store-features .feature-info p {
        font-size: .64rem !important;
        line-height: 1.5 !important;
    }

    html[data-theme] body.store-body .service-promises article {
        min-height: 116px !important;
    }

    html[data-theme] body.store-body .service-promises strong {
        font-size: .74rem !important;
        line-height: 1.35 !important;
    }

    html[data-theme] body.store-body .service-promises small {
        font-size: .62rem !important;
        line-height: 1.5 !important;
    }

    html[data-theme] body.store-body .cat-card > h3,
    html[data-theme] body.store-body .cat-card > h4,
    html[data-theme] body.store-body .cat-card > span,
    html[data-theme] body.store-body .cat-card .cat-name,
    html[data-theme] body.store-body .cat-card .category-title {
        min-height: 22px !important;
        font-size: .72rem !important;
        line-height: 1.3 !important;
    }

    html[data-theme] body.store-body .bundle-product strong {
        font-size: .74rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .smart-section-head h2 {
        font-size: .90rem !important;
    }

    /* Keep recently viewed compact, but no longer unreadably tiny. */
    html[data-theme] body.store-body .recently-viewed-section .product-title-link .product-title,
    html[data-theme] body.store-body .recently-viewed-section .product-title {
        font-size: .50rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price {
        font-size: .58rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-price .currency {
        font-size: .44rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-card-actions .add-btn {
        font-size: .46rem !important;
    }

    html[data-theme] body.store-body .recently-viewed-section .product-badge:first-child {
        font-size: .38rem !important;
    }
}


/* =======================================================
   HOME-ONLY 3-PRODUCT BUNDLE + DESKTOP TYPE POLISH
   2026-06-29
   ======================================================= */
body.product-view #merchantBottomBundleSlot,
body.category-view #merchantBottomBundleSlot,
body.search-view #merchantBottomBundleSlot,
body.wishlist-view #merchantBottomBundleSlot,
body.account-view #merchantBottomBundleSlot,
body.tracking-view #merchantBottomBundleSlot,
body.product-view .merchant-bundle-container,
body.category-view .merchant-bundle-container,
body.search-view .merchant-bundle-container,
body.wishlist-view .merchant-bundle-container,
body.account-view .merchant-bundle-container,
body.tracking-view .merchant-bundle-container {
    display: none !important;
}

body.merchant-home-view #merchantBottomBundleSlot:not([hidden]),
body.merchant-home-view .merchant-bundle-container:not([hidden]) {
    display: block;
}

@media (min-width: 769px) {
    html {
        font-size: 18.25px;
    }

    html,
    body.store-body,
    body.store-body button,
    body.store-body input,
    body.store-body select,
    body.store-body textarea,
    body.store-body a,
    body.store-body p,
    body.store-body span,
    body.store-body label,
    body.store-body h1,
    body.store-body h2,
    body.store-body h3,
    body.store-body h4,
    body.store-body strong,
    body.store-body small {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        font-kerning: normal;
        font-synthesis: none;
    }
}
