/* Catalog page — slim stylesheet (only styles used by catalog-page.php) */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.1);
    --color-primary: var(--primary);
    --color-primary-hover: var(--primary-hover);
    --color-primary-light: var(--primary-light);
    --color-primary-ultra-light: rgba(37, 99, 235, 0.08);
    --green: #22c55e;
    --green-hover: #16a34a;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --surface: #ffffff;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --shadow: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px -2px rgba(0,0,0,.08), 0 2px 6px -2px rgba(0,0,0,.06);
    --font-ar: 'Vazirmatn', sans-serif;
    --font-en: 'Inter', sans-serif;
}
[data-theme="dark"] {
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --primary-light: rgba(56, 189, 248, 0.12);
    --color-primary: var(--primary);
    --color-primary-hover: var(--primary-hover);
    --color-primary-light: var(--primary-light);
    --color-primary-ultra-light: rgba(56, 189, 248, 0.12);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.15);
    --bg: #0f172a;
    --surface: #1e293b;
    --shadow: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 24px -4px rgba(0,0,0,.4), 0 2px 8px -2px rgba(0,0,0,.25);
}
html { color-scheme: light; scroll-behavior: smooth; }
[data-theme="dark"] { color-scheme: dark; }
body { transition: background-color 0.35s ease, color 0.25s ease; }
header, .catalog-card, .country-btn, .mobile-drawer { transition: background-color 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-ar);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
/* Keep catalog typography consistent across interactive controls and pseudo labels. */
button,
input,
select,
textarea {
    font-family: inherit;
}
.catalog-mobile-fab-action::before,
.catalog-mobile-fab-feedback {
    font-family: inherit;
}
[data-theme="dark"] body { background: linear-gradient(180deg, #0f172a 0%, #0c1222 100%); }

/* theme-toggle (catalog overlay) */
.theme-toggle {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; color: #fbbf24; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ========== Catalog page (prototype style) ========== */
.desktop-only { display: none !important; }
.mobile-only { display: block !important; }
.catalog-view {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.catalog-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 130px;
    overflow: auto;
}
.catalog-area.mobile-only {
    padding-top: 4.5rem;
}
@media (max-width: 768px) {
    .catalog-area.mobile-only .catalog-page-wrap {
        min-height: 0;
        height: auto;
    }
    .catalog-area.mobile-only .catalog-swiper-mobile {
        flex: 0 1 auto;
        height: auto;
    }
    .catalog-swiper-mobile .swiper-slide-ad {
        align-items: flex-start;
        justify-content: flex-start;
    }
    .catalog-swiper-mobile .swiper-slide-ad .catalog-inline-ad-slot {
        align-items: flex-start;
        justify-content: flex-start;
    }
}
.catalog-page-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.catalog-page-wrap .catalog-swiper,
.catalog-page-wrap .catalog-swiper-mobile {
    flex: 1;
    min-height: 0;
}
.catalog-page-wrap .catalog-page-thumbs {
    flex-shrink: 0;
}
.catalog-page-display {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
}
.catalog-page-display img { width: 100%; height: auto; display: block; object-fit: contain; }
.catalog-page-display.catalog-page-has-img { background: none; padding: 0; }
[data-theme="dark"] .catalog-page-display { background: linear-gradient(145deg, #334155 0%, #1e293b 100%); }
[data-theme="dark"] .catalog-page-display.catalog-page-has-img { background: none; }
.catalog-page-thumbs {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0.75rem 0.5rem 0.9rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.catalog-page-thumb {
    flex: 0 0 68px;
    width: 68px;
    min-width: 0;
    height: 92px;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0;
    overflow: hidden;
    opacity: 0.8;
    background: var(--surface);
    cursor: pointer;
}
.catalog-page-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.18);
}
.catalog-page-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Catalog Swiper Styles */
.catalog-swiper,
.catalog-swiper-mobile {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.catalog-swiper .swiper-slide,
.catalog-swiper-mobile .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    height: auto;
    min-height: 350px;
}
.catalog-swiper .swiper-slide-ad,
.catalog-swiper-mobile .swiper-slide-ad {
    overflow: hidden;
    padding: 1rem;
    background: var(--bg);
    min-height: 320px;
    height: 320px;
}
.swiper-slide-ad .catalog-inline-ad-slot {
    overflow: hidden;
    max-height: 100%;
}
/* Mobile: slide height follows image — no empty space above/below image */
.catalog-swiper-mobile .swiper-slide:not(.swiper-slide-ad) {
    min-height: 0;
    align-items: flex-start;
}
.catalog-swiper-mobile .swiper-zoom-container {
    min-height: 0;
    align-items: flex-start;
}
.catalog-swiper-mobile {
    min-height: 0;
}
.catalog-inline-ad-slot {
    width: 100%;
    height: auto;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.catalog-inline-ad-slot .adsense-slot,
.catalog-inline-ad-slot .catalog-inline-fixed-ad,
.catalog-inline-ad-slot .catalog-inline-fixed-ad.adsbygoogle,
.catalog-inline-ad-slot .catalog-inline-fixed-ad iframe {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.catalog-inline-ad-slot .catalog-inline-fixed-ad iframe {
    display: block !important;
}
.catalog-inline-ad-slot .catalog-inline-fixed-ad .adsense-placeholder-inner {
    width: 100%;
    min-height: 320px;
}
.catalog-swiper .swiper-zoom-container,
.catalog-swiper-mobile .swiper-zoom-container {
    width: 100%;
    height: auto;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-swiper .swiper-zoom-container img,
.catalog-swiper-mobile .swiper-zoom-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    vertical-align: top;
}
.catalog-swiper .swiper-slide-zoomed .swiper-zoom-container img,
.catalog-swiper-mobile .swiper-slide-zoomed .swiper-zoom-container img {
    cursor: grab;
}
.catalog-swiper .swiper-slide-zoomed .swiper-zoom-container img:active,
.catalog-swiper-mobile .swiper-slide-zoomed .swiper-zoom-container img:active {
    cursor: grabbing;
}

/* Mobile swiper specific */
.catalog-swiper-mobile {
    min-height: 0;
    border-radius: 0.3rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.catalog-image-nav {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 0.55rem;
    pointer-events: none;
}
.catalog-image-nav-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
}
.catalog-image-nav-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}
.catalog-image-nav-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--primary);
    color: var(--primary);
}
.catalog-image-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
[data-theme="dark"] .catalog-image-nav-btn {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}
[dir="rtl"] .catalog-image-nav {
    direction: rtl;
}
[dir="rtl"] .catalog-image-nav-btn svg {
    transform: scaleX(-1);
}

.catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    padding-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.catalog-overlay > * { pointer-events: auto; }
.overlay-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.overlay-btn:hover { border-color: var(--primary); }
.overlay-btn svg { width: 1.3rem; height: 1.3rem; color: var(--text-muted); display: block; margin: auto; }
.overlay-btn:hover svg, .overlay-btn.active svg { color: var(--primary); fill: var(--primary); }
.overlay-close {
    padding: 10px !important;
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    text-decoration: none;
    color: inherit;
    /* overriding legacy padding from v2.css */
}
.overlay-close svg { width: 1.25rem; height: 1.25rem; }
.desktop-brand { display: none; font-weight: 700; font-size: 1.1rem; color: var(--primary); text-decoration: none; }
.desktop-brand:hover { color: var(--primary-hover); }
.desktop-brand img { display: block; height: 28px; width: auto; }
.mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.mobile-brand img { display: block; height: 24px; width: auto; }

@media (max-width: 768px) {
    .catalog-overlay {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .catalog-overlay .mobile-brand.mobile-only {
        margin-inline-end: auto;
    }
}

.catalog-view.thumbs-hidden-mobile .catalog-area.mobile-only .catalog-page-thumbs {
    display: none;
}

.catalog-mobile-fab {
    position: fixed;
    inset-inline-end: 0.85rem;
    bottom: calc(8.4rem + env(safe-area-inset-bottom, 0));
    z-index: 115;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.catalog-mobile-fab-actions {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(100% + 0.5rem);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .2s ease, visibility 0s linear .2s;
}
.catalog-mobile-fab.open .catalog-mobile-fab-actions {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}
.catalog-mobile-fab-action {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(8px) scale(0.94);
    transition: opacity .18s ease, transform .2s ease, border-color .2s ease, color .2s ease;
    font: inherit;
    font-family: inherit;
}
.catalog-mobile-fab.open .catalog-mobile-fab-action {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.catalog-mobile-fab.open .catalog-mobile-fab-action:nth-child(1) { transition-delay: .02s; }
.catalog-mobile-fab.open .catalog-mobile-fab-action:nth-child(2) { transition-delay: .05s; }
.catalog-mobile-fab.open .catalog-mobile-fab-action:nth-child(3) { transition-delay: .08s; }
.catalog-mobile-fab.open .catalog-mobile-fab-action:nth-child(4) { transition-delay: .11s; }
.catalog-mobile-fab:not(.open) .catalog-mobile-fab-action {
    transition-delay: 0s;
}
.catalog-mobile-fab-action svg {
    width: 1rem;
    height: 1rem;
}
.catalog-mobile-fab-action:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}
.catalog-mobile-fab-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.catalog-mobile-fab-action::before {
    content: attr(data-label);
    position: absolute;
    inset-inline-end: calc(100% + 0.45rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 6, 23, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-family: inherit;
    font-weight: 600;
    line-height: 1;
    padding: 0.28rem 0.42rem;
    border-radius: 0.35rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}
.catalog-mobile-fab.open .catalog-mobile-fab-action::before {
    opacity: 1;
}
.catalog-mobile-fab-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.38);
    font: inherit;
    font-family: inherit;
}
.catalog-mobile-fab-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
}
.catalog-mobile-fab-toggle .icon-close {
    display: none;
}
.catalog-mobile-fab.open .catalog-mobile-fab-toggle .icon-open {
    display: none;
}
.catalog-mobile-fab.open .catalog-mobile-fab-toggle .icon-close {
    display: block;
}
.catalog-mobile-fab-feedback {
    display: none;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    padding: 0.3rem 0.4rem;
    max-width: 160px;
    text-align: center;
}
.catalog-mobile-fab-feedback.visible {
    display: block;
}
[data-theme="dark"] .catalog-mobile-fab-action::before {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.catalog-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; }
.catalog-mobile-actions {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
}
.catalog-mobile-action-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-family: inherit;
    padding: 0.42rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.catalog-mobile-action-btn.icon-only {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 999px;
    padding: 0;
}
.catalog-mobile-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.catalog-mobile-action-btn:not(:disabled):hover {
    border-color: var(--primary);
    color: var(--primary);
}
.catalog-mobile-action-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}
.catalog-mobile-action-label {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-mobile-action-feedback {
    width: 100%;
    display: none;
    font-size: 0.78rem;
    color: var(--primary);
    text-align: center;
}
.catalog-mobile-action-feedback.visible {
    display: block;
}
.catalog-nav-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}

.adsense-slot {
    width: 100%;
    min-height: 90px;
    display: block;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    background: var(--bg);
    overflow: hidden;
}
.adsense-placeholder {
    border: 1px dashed var(--border);
    background: repeating-linear-gradient(
        45deg,
        rgba(148, 163, 184, 0.1),
        rgba(148, 163, 184, 0.1) 10px,
        rgba(148, 163, 184, 0.2) 10px,
        rgba(148, 163, 184, 0.2) 20px
    );
}
.adsense-placeholder-inner {
    height: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.adsense-inline { grid-column: 1 / -1; }
.adsense-section { padding: 0 1rem; }
.adsense-banner { display: flex; justify-content: center; }
.error-hero { padding: 4rem 0 3rem; }
.error-hero-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; align-items: center; }
.error-hero-text p { color: var(--text-muted); margin-top: 0.75rem; }
.error-actions { margin-top: 1.5rem; }
.error-hero-art { display: flex; justify-content: center; }
.error-hero-number {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    letter-spacing: 0.2rem;
}
[dir="rtl"] .nav-prev svg { transform: scaleX(-1); }
[dir="rtl"] .nav-next svg { transform: scaleX(-1); }
.nav-group { display: flex; align-items: center; gap: 0.5rem; }
.nav-zoom, .nav-download {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-zoom:hover, .nav-download:hover { border-color: var(--primary); }
.nav-prev, .nav-next {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-prev:hover, .nav-next:hover { border-color: var(--primary); }
.nav-prev svg, .nav-next svg { width: 1.2rem; height: 1.2rem; }
.nav-controls { min-width: 110px; justify-content: center; }
.nav-page-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: var(--surface);
}
.nav-dots {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-dots .dot { width: 5px; height: 5px; background: var(--text-muted); border-radius: 50%; }
.nav-dots span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nav-dots:disabled { opacity: 0.6; cursor: not-allowed; }
.nav-next-catalog {
    flex: 1;
    max-width: 120px;
    padding: 0.6rem 0.65rem;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-next-catalog:hover { background: var(--green-hover); color: #fff; }

.catalog-footer-ad {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-footer-ad .adsense-slot {
    width: 100%;
    max-width: 728px;
    margin: 0;
}
.catalog-footer-ad .catalog-footer-fixed-ad {
    width: 320px;
    max-width: 320px;
    min-height: 50px;
    height: 50px;
    max-height: 100px;
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}
.catalog-footer-ad,
.catalog-footer-ad .adsense-slot,
.catalog-footer-ad .catalog-footer-fixed-ad,
.catalog-footer-ad .catalog-footer-fixed-ad.adsbygoogle,
.catalog-footer-ad .catalog-footer-fixed-ad iframe {
    max-height: 100px !important;
    overflow: hidden !important;
}
.catalog-footer-ad .catalog-footer-fixed-ad.adsbygoogle {
    width: 320px !important;
    height: 50px !important;
    display: block !important;
}
.catalog-footer-ad .catalog-footer-fixed-ad iframe {
    width: 100% !important;
    height: 100px !important;
}
.catalog-footer-ad .catalog-footer-fixed-ad .adsense-placeholder-inner {
    width: 320px;
    min-height: 50px;
    height: 50px;
    max-height: 100px;
}

.catalog-ad {
    position: fixed;
    top: 60px;
    top: calc(3rem + env(safe-area-inset-top, 0));
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.85);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 98;
    padding: 1rem;
}
.catalog-ad.visible { display: flex; }
.catalog-ad .catalog-ad-content {
    width: 100%;
    max-width: 340px;
    min-height: 250px;
    background: var(--surface);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-ad .catalog-ad-content .adsense-slot {
    width: 100%;
    margin: 0;
}
.catalog-ad .catalog-ad-content .catalog-overlay-fixed-ad {
    width: 300px;
    max-width: 300px;
    min-height: 250px;
    height: 250px;
    margin: 0;
    background: transparent;
    border-radius: 0;
}
.catalog-ad .catalog-ad-content .catalog-overlay-fixed-ad.adsbygoogle,
.catalog-ad .catalog-ad-content .catalog-overlay-fixed-ad iframe {
    width: 300px !important;
    max-width: 300px !important;
    min-height: 250px !important;
    height: 250px !important;
    max-height: 250px !important;
}
.catalog-ad .catalog-ad-content .catalog-overlay-fixed-ad iframe {
    display: block !important;
}
.catalog-ad .ad-skip {
    margin-top: 1rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    font-family: inherit;
}
.catalog-ad .ad-skip:disabled { cursor: not-allowed; opacity: 0.7; color: var(--text-muted); }
.catalog-ad .ad-skip:not(:disabled) { border-color: var(--primary); }

.catalog-details-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 150;
    padding: 1rem;
}
.catalog-details-modal.open { display: flex; }
.catalog-details-content {
    background: var(--surface);
    border-radius: 1rem;
    padding: 0;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    overflow: hidden;
}
.catalog-details-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 1.5rem;
    text-align: center;
    color: #fff;
}
.catalog-modal-logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin: 0 auto 1rem;
    display: block;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.catalog-modal-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.catalog-details-header h3 { 
    font-size: 1.25rem; 
    margin: 0; 
    padding: 0;
    border: none;
    font-weight: 700;
    color: #fff;
}
.catalog-details-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
}
.catalog-detail-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    align-items: start;
}
.catalog-details-info dt { 
    color: var(--text-muted); 
    font-weight: 600;
    font-size: 0.85rem;
}
.catalog-details-info dd { 
    margin: 0;
    color: var(--text);
    font-weight: 500;
}
.catalog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.catalog-category-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.catalog-details-close {
    margin: 0 1.5rem 1.5rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    background: var(--primary);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    width: calc(100% - 3rem);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.catalog-details-close:hover { 
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.catalog-list-modal {
    position: fixed;
    inset: 0;
    z-index: 170;
    background: rgba(2, 6, 23, 0.56);
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.catalog-list-modal.open {
    display: flex;
}
.catalog-list-modal-dialog {
    width: 100%;
    max-height: 80vh;
    background: var(--surface);
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.catalog-list-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid var(--border);
}
.catalog-list-modal-header h3 {
    font-size: 1rem;
    margin: 0;
}
.catalog-list-modal-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.1rem;
    line-height: 1;
}
.catalog-list-modal-body {
    padding: 0.8rem;
    overflow: auto;
}
.catalog-list-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.catalog-list-modal-card {
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    padding: 0.55rem 0.6rem;
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    min-height: 56px;
}
.catalog-list-modal-card.is-catalog {
    grid-template-columns: 60px 1fr;
}
.catalog-list-modal-card.is-catalog .info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.catalog-list-modal-card .thumb {
    width: 44px;
    height: 44px;
    border-radius: 0.35rem;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.catalog-list-modal-card.is-catalog .thumb {
    width: 60px;
    height: 44px;
}
.catalog-list-modal-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.catalog-list-modal-card span {
    font-size: 0.88rem;
    line-height: 1.4;
}
.catalog-list-modal-card.is-catalog .valid {
    display: block;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--green);
}
.catalog-list-modal-card.is-catalog .valid.expired {
    color: #dc2626;
}
.catalog-list-modal-card .badge {
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0 0.35rem;
}
.catalog-list-modal-empty {
    margin: 0;
    color: var(--text-muted);
    text-align: center;
}

/* Desktop catalog layout */
@media (min-width: 769px) {
    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }
    body { background: #f1f5f9; }
    .catalog-view {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-rows: auto auto 1fr auto;
        min-height: 100vh;
        max-width: 1400px;
        margin: 0 auto;
        background: var(--surface);
    }
    .catalog-view.has-left-sidebar {
        grid-template-columns: 260px minmax(0, 1fr) 320px;
    }
    .catalog-overlay {
        grid-column: 1 / -1;
        grid-row: 1;
        position: relative;
        padding: 0.75rem 1.5rem;
    }
    .catalog-info-strip {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 0 1.5rem 0.9rem;
    }
    .catalog-hero-breadcrumb {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
        margin: 1rem 0 1rem;
        padding: 0.6rem 0.95rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow);
        color: var(--text-muted);
        font-size: 0.85rem;
        font-weight: 500;
        line-height: 1.4;
    }
    .catalog-hero-breadcrumb a {
        color: inherit;
        text-decoration: none;
        transition: color 0.15s ease;
    }
    .catalog-hero-breadcrumb a:hover {
        color: var(--primary);
    }
    .catalog-hero-breadcrumb-sep {
        opacity: 0.35;
        user-select: none;
        display: inline-flex;
        align-items: center;
        width: 14px;
        height: 14px;
        flex: 0 0 auto;
        background-color: currentColor;
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
        mask-size: contain;
        -webkit-mask-size: contain;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
        mask-position: center;
        -webkit-mask-position: center;
    }
    [dir="rtl"] .catalog-hero-breadcrumb-sep {
        transform: scaleX(-1);
    }
    .catalog-hero-breadcrumb-current {
        color: var(--text);
        flex: 1 1 280px;
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        max-width: none;
        font-weight: 500;
    }
    .catalog-overlay .overlay-btn { box-shadow: none; }
    .desktop-brand { display: flex; align-items: center; }

    .desktop-main {
        grid-column: 1;
        grid-row: 3;
        padding: 1.5rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .catalog-view.has-left-sidebar .desktop-main {
        grid-column: 2;
    }
    .desktop-main .catalog-page-wrap {
        max-width: 940px;
        margin-inline: auto;
    }
    .catalog-info-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 0.5rem;
        padding: 1.25rem;
        text-align: center;
    }
    .catalog-info-card .store-logo, .catalog-info-card .store-logo-img {
        width: 80px;
        height: 80px;
        border-radius: 0.5rem;
        margin: 0 auto 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 1.5rem;
    }
    .catalog-info-card .store-logo { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); }
    .catalog-info-card .store-logo-img { object-fit: contain; }
    .catalog-info-card h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .catalog-info-card-wide {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        text-align: start;
        padding: 1.5rem;
        border-radius: var(--radius);
        background: var(--bg);
        border: 1px solid var(--border);
    }
    .catalog-info-main-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
        min-width: 0;
        width: 100%;
    }
    [dir="rtl"] .catalog-info-logo-col {
        order: -1; /* Keep logo on the right side */
    }
    .catalog-info-text {
        min-width: 0;
        flex: 1;
    }
    .catalog-info-logo-col {
        flex: 0 0 auto;
        width: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .catalog-info-card-wide h1 {
        margin: 0 0 0.5rem;
        font-size: clamp(1.15rem, 1.5vw, 1.45rem);
        line-height: 1.4;
        font-weight: 700;
        overflow-wrap: anywhere;
    }
    .catalog-info-card-wide .catalog-validity {
        justify-content: flex-start;
        margin: 0;
    }
    .catalog-info-card-wide .catalog-summary {
        margin: 0.65rem 0 0;
        color: var(--text-muted);
        font-size: 0.92rem;
        line-height: 1.75;
        max-width: 72ch;
    }
    .catalog-info-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.85rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }
    .catalog-info-card-wide .store-logo,
    .catalog-info-card-wide .store-logo-img {
        width: 70px;
        height: 70px;
        margin: 0;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
    }
    .catalog-store-fav-btn, .catalog-desktop-share-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    @media (min-width: 769px) {
        .catalog-desktop-share-btn.desktop-only { display: inline-flex !important; }
    }
    .catalog-store-fav-btn svg, .catalog-desktop-share-btn svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        margin: auto;
        display: block;
    }
    .catalog-store-fav-btn:hover, .catalog-desktop-share-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .catalog-store-fav-btn.is-active {
        border-color: #f43f5e;
        background: #fff1f2;
        color: #f43f5e;
    }
    .catalog-store-fav-btn.is-active svg {
        fill: currentColor;
        stroke: currentColor;
    }
    .catalog-store-fav-btn.is-loading {
        opacity: 0.7;
        cursor: default;
    }
    .catalog-info-card-wide .visit-store-btn {
        margin: 0;
        min-height: 44px;
        padding-inline: 1.4rem;
        border-radius: var(--radius-sm);
        font-size: 1.05rem;
        font-weight: 600;
    }
    .catalog-validity {
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }
    .catalog-validity:not(.expired) { color: var(--green); }
    .catalog-validity:not(.expired)::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
    .catalog-validity.expired { color: #dc2626; }
    .catalog-validity.expired::before { content: ''; width: 6px; height: 6px; background: #dc2626; border-radius: 50%; }
    .visit-store-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        max-width: 100%;
        padding: 0.85rem 1.5rem;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 0.5rem;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        font-family: inherit;
        text-align: center;
        text-decoration: none;
        margin: 5px auto 1.5rem;
    }
    .visit-store-btn:hover { background: var(--primary-hover); color: #fff; }
    .catalog-area { padding: 0; padding-top: 0; padding-bottom: 0; flex: 1; }
    .catalog-page-wrap { max-width: 100%; }
    .related-leaflets-scroll { display: flex; gap: 1rem; overflow-x: auto; padding: 0.25rem 0; }
    .desktop-sidebar-catalogs { flex-direction: column; overflow: visible; }
    .leaflet-card {
        flex-shrink: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        margin-bottom: 0.75rem;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .leaflet-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }
    .leaflet-card .thumb {
        width: 85px; /* يكبر العرض شوية */
        flex-shrink: 0;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        color: var(--text-muted);
        align-self: stretch; /* عشان ياخد الطول بالكامل */
    }
    .leaflet-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
    .leaflet-card .info { flex: 1; padding: 0.65rem 0.75rem; font-size: 0.85rem; display: flex; flex-direction: column; justify-content: center; }
    .leaflet-card .store { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.25rem; line-height: 1.3; }
    .leaflet-card .valid:not(.expired) { color: var(--green); }
    .leaflet-card .valid.expired { color: #dc2626; }

    .desktop-sidebar {
        grid-row: 3;
        background: #fff;
        padding: 1rem;
        overflow-y: auto;
    }
    .desktop-sidebar-left {
        display: none !important;
    }
    .desktop-sidebar-right {
        grid-column: 2;
        border-inline-start: 1px solid var(--border);
    }
    .catalog-view.has-left-sidebar .desktop-sidebar-left {
        display: block !important;
        grid-column: 1;
        border-inline-end: 1px solid var(--border);
    }
    .catalog-view.has-left-sidebar .desktop-sidebar-right {
        grid-column: 3;
    }
    [data-theme="dark"] .desktop-sidebar { background: #fff; }
    .sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
    .sidebar-header span { font-weight: 700; color: var(--primary); }
    .sidebar-section { margin-bottom: 1.25rem; }
    .sidebar-section h4 { font-size: 0.9rem; margin-bottom: 0.75rem; }
    .sidebar-stores { display: flex; flex-direction: column; gap: 0.5rem; }
    .catalog-side-store-card {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        align-items: center;
        gap: 0.55rem;
        padding: 0.5rem;
        border: 1px solid var(--border);
        border-radius: 0.55rem;
        background: var(--surface);
        text-decoration: none;
        color: inherit;
    }
    .catalog-side-store-card:hover { border-color: var(--primary); }
    .catalog-side-store-card .logo {
        width: 44px;
        height: 44px;
        border-radius: 0.5rem;
        overflow: hidden;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
    }
    .catalog-side-store-card .logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .catalog-side-store-card .name { font-size: 0.84rem; line-height: 1.4; }
    .catalog-side-store-card .count {
        min-width: 1.45rem;
        height: 1.45rem;
        border-radius: 999px;
        background: var(--primary-light);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0 0.35rem;
    }
    .store-card {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 0.5rem;
        text-decoration: none;
        color: inherit;
    }
    .store-card:hover { border-color: var(--primary); }
    .store-card .logo {
        width: 36px;
        height: 36px;
        background: var(--bg);
        border-radius: 0.35rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .store-card .name { font-size: 0.85rem; flex: 1; }

    .catalog-bottom { grid-column: 1 / -1; position: relative; }
    .catalog-footer-ad {
        display: flex;
        padding: 0.9rem 1.5rem 1rem;
        border-top: 1px solid var(--border);
    }
    .catalog-footer-ad .catalog-footer-fixed-ad {
        width: min(728px, 100%);
        max-width: 728px;
        min-height: 90px;
        height: 90px;
        max-height: 100px;
        overflow: hidden;
    }
    .catalog-footer-ad .catalog-footer-fixed-ad.adsbygoogle {
        width: 100% !important;
        height: 90px !important;
        max-height: 100px !important;
    }
    .catalog-swiper-mobile .swiper-slide-ad {
        padding: 0.75rem;
    }
    .catalog-inline-ad-slot {
        width: 100%;
        height: auto;
        min-height: 320px;
    }
    .catalog-inline-ad-slot .catalog-inline-fixed-ad,
    .catalog-inline-ad-slot .catalog-inline-fixed-ad.adsbygoogle,
    .catalog-inline-ad-slot .catalog-inline-fixed-ad iframe {
        max-width: 100% !important;
    }
    .catalog-footer-ad .catalog-footer-fixed-ad iframe {
        height: 100px !important;
    }
    .catalog-footer-ad .catalog-footer-fixed-ad .adsense-placeholder-inner {
        width: 100%;
        min-height: 90px;
        height: 90px;
        max-height: 100px;
    }
    .catalog-nav-bar { padding: 0.75rem 1.5rem; }
    .catalog-image-nav-btn {
        opacity: 0;
        transform: translateY(4px);
    }
    .catalog-page-wrap:hover .catalog-image-nav-btn,
    .catalog-page-wrap:focus-within .catalog-image-nav-btn,
    .catalog-image-nav-btn:focus-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .catalog-details-modal .catalog-details-content { max-width: 440px; }
    .catalog-list-modal {
        align-items: center;
    }
    .catalog-list-modal-dialog {
        max-width: 560px;
        max-height: 76vh;
        border-radius: 1rem;
    }
}

/* ========== Auth Modals ========== */
.auth-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.auth-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.auth-modal {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 420px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.auth-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.auth-header h2 { font-size: 1.25rem; font-weight: 600; }
.auth-close {
    padding: 0.5rem; border: none; background: none;
    cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.auth-close:hover { color: var(--text); }
.auth-body { padding: 1.5rem; }
.auth-form label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.35rem; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%; padding: 0.6rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.95rem; background: var(--bg); color: inherit;
    margin-bottom: 1rem; box-sizing: border-box;
}
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-form input.border-error { border-color: #ef4444; }
.auth-error { display: block; font-size: 0.8rem; color: #ef4444; margin-top: -0.5rem; margin-bottom: 0.75rem; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 0.5rem; flex-wrap: wrap; }
.auth-remember { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.auth-remember input { width: auto; margin: 0; }
.auth-forgot-link { background: none; border: none; color: var(--primary); font-size: 0.875rem; cursor: pointer; padding: 0; text-decoration: none; }
.auth-forgot-link:hover { text-decoration: underline; }
.auth-submit {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: background 0.2s;
}
.auth-submit:hover { background: var(--primary-hover); }
.auth-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.auth-switch { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; }
.auth-link-btn { background: none; border: none; color: var(--primary); font-weight: 500; cursor: pointer; padding: 0; text-decoration: none; }
.auth-link-btn:hover { text-decoration: underline; }
.auth-hint { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.social-login { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font-size: 0.95rem; cursor: pointer; transition: border-color .2s, background .2s;
}
.social-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-light); }
.social-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.social-btn.fb { border-color: #1877f2; color: #1877f2; }
.social-btn.fb:hover:not(:disabled) { background: rgba(24,119,242,.1); }
.social-btn.google { border-color: #4285f4; color: #4285f4; }
.social-btn.google:hover:not(:disabled) { background: rgba(66,133,244,.1); }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--text-muted); font-size: 0.875rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.country-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-inline-end: 0.25rem;
}
.country-language-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 0.65rem;
}
.country-language-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.country-language-country-name {
    font-size: 0.88rem;
    font-weight: 600;
}
.country-language-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}
.country-language-option {
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    font-size: 0.78rem;
    text-align: center;
    padding: 0.25rem 0.4rem;
    color: var(--text);
    background: var(--bg);
}
.country-language-option:hover,
.country-language-option.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
@media (max-width: 640px) {
    .country-language-grid {
        grid-template-columns: 1fr;
    }
}

/* Header auth */
.header-auth-wrap { display: flex; align-items: center; gap: 0.75rem; }
.header-user-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.header-dashboard-link {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, transform .1s;
}
.header-dashboard-link:hover { background: var(--primary-dark); transform: translateY(-1px); }
.header-logout-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.header-logout-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Header User Dropdown */
.header-user-dropdown-wrap { position: relative; }
.header-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.header-user-btn:hover { border-color: var(--primary); background: var(--surface); }
.header-user-btn svg:first-child { width: 14px; height: 14px; transition: transform .2s; }
.header-user-btn .user-avatar-icon { width: 22px; height: 22px; color: var(--text-muted); background: var(--border); border-radius: 50%; padding: 2px; }
.header-user-dropdown-wrap[aria-expanded="true"] .header-user-btn svg:first-child { transform: rotate(180deg); }
.header-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    min-width: 160px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s ease;
    z-index: 100;
}
.header-user-dropdown-wrap[aria-expanded="true"] .header-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header-user-dropdown li { margin: 0; }
.header-user-dropdown li.divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
    padding: 0;
}
.header-user-dropdown a,
.header-user-dropdown button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.header-user-dropdown a:hover,
.header-user-dropdown button:hover { background: var(--primary-light); color: var(--primary); }
.header-user-dropdown form { margin: 0; }

.header-login-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.header-login-btn:hover { background: var(--primary); color: #fff; }

/* Country picker modal - prototype style */
.picker-overlay {
    position: fixed; inset: 0; z-index: 99998;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.picker-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.picker-modal {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 560px; width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.picker-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.picker-header h2 { font-size: 1.1rem; font-weight: 600; }
.picker-close { padding: 0.5rem; border: none; background: none; cursor: pointer; color: var(--text-muted); }
.picker-close:hover { color: var(--text); }
.picker-body { padding: 1rem 1.25rem; max-height: 60vh; overflow-y: auto; }
.picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 480px) { .picker-grid { grid-template-columns: 1fr; } }
.picker-country {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: border-color .2s;
}
.picker-country:hover { border-color: var(--primary); }
.picker-country-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.picker-country-header img { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; object-fit: cover; }
.picker-country-placeholder {
    width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.picker-langs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.picker-langs a, .picker-langs-a {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text);
}
.picker-langs a:hover, .picker-langs a.active,
.picker-langs-a:hover, .picker-langs-a.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ========== Store page v2 ========== */
.store-hero { padding: 2.5rem 0; }
.store-classic-overview { padding-top: 0.75rem; }
.store-classic-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.store-classic-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.store-classic-logo {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem;
}
.store-classic-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.store-classic-catalogs-link {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.store-classic-catalogs-link:hover { color: var(--primary); }
.store-classic-socials {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem;
}
.store-classic-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 1rem;
}
.store-classic-content h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}
.store-classic-description {
    margin: 0.65rem 0 0;
    color: var(--text-muted);
    line-height: 1.75;
}
.store-classic-stats {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.store-classic-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fafafa;
    padding: 0.25rem 0.6rem;
    font-size: 0.82rem;
    color: var(--text);
}
.store-classic-promo {
    margin-top: 0.85rem;
    display: block;
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1px solid var(--border);
}
.store-classic-promo img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}
.store-hero-enhanced .store-hero-logo {
    width: 9rem;
    height: 9rem;
    min-width: 9rem;
    min-height: 9rem;
    background: rgba(255,255,255,0.12);
}
.store-hero-contact-row {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.store-hero-contact-link {
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
.store-hero-contact-link:hover {
    background: rgba(255,255,255,0.2);
}
.store-hero-social-row {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.store-hero-social-row .store-social-link {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255,255,255,0.12);
}
.store-hero-social-row .store-social-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Store page header (dd.html style) */
.store-hero-dd {
    background: linear-gradient(135deg, #4285f4 0%, #2f6be6 100%);
    color: #fff;
    padding: 2rem 0 1.35rem;
}
.store-hero-dd .store-dd-wrap {
    border-radius: 1rem;
}
.store-hero-dd .store-dd-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.4rem;
}
.store-hero-dd .store-dd-contacts {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}
.store-hero-dd .store-dd-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.store-hero-dd .store-dd-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.11);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.98rem;
    font-weight: 600;
}
.store-hero-dd .store-dd-chip.store-dd-chip-icon-only {
    width: 2.45rem;
    min-width: 2.45rem;
    justify-content: center;
    padding-inline: 0;
}
.store-hero-dd .store-dd-chip svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.store-hero-dd .store-dd-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.store-hero-dd .store-dd-social {
    width: 2.95rem;
    height: 2.95rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.11);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.store-hero-dd .store-dd-social svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.store-hero-dd .store-dd-social:hover,
.store-hero-dd .store-dd-chip:hover { background: rgba(255,255,255,0.2); }
.store-hero-dd .store-dd-social.is-copied {
    background: #fff;
    color: #2f6be6;
}
.store-hero-dd .store-dd-identity {
    order: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.store-hero-dd .store-dd-logo {
    width: 8.4rem;
    height: 8.4rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.store-hero-dd .store-dd-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.6rem;
}
.store-hero-dd .store-dd-title-block h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    line-height: 1.2;
}
.store-hero-dd .store-dd-badges {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.store-hero-dd .store-dd-badge {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.13);
    color: #fff;
    border-radius: 0.55rem;
    padding: 0.35rem 0.82rem;
    font-size: 0.95rem;
    font-weight: 600;
}
.store-hero-dd .store-dd-desc {
    margin-top: 1.2rem;
    font-size: 1.55rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.95);
}
.store-hero-dd .store-dd-bottom {
    margin-top: 1.45rem;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.store-hero-dd .store-dd-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.store-hero-dd .store-dd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.72rem;
    padding: 0.82rem 1.55rem;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.store-hero-dd .store-dd-btn-primary {
    background: #fff;
    color: #2f6be6;
}
.store-hero-dd .store-dd-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.store-hero-dd .store-dd-stats {
    order: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: 0.95rem;
}
.store-hero-dd .store-dd-stat {
    text-align: center;
}
.store-hero-dd .store-dd-stat strong {
    display: block;
    font-size: 1.95rem;
    line-height: 1;
    font-weight: 800;
}
.store-hero-dd .store-dd-stat span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.88);
}
@media (max-width: 1100px) {
    .store-hero-dd .store-dd-top {
        flex-direction: column;
        align-items: stretch;
    }
    .store-hero-dd .store-dd-identity {
        justify-content: space-between;
    }
    .store-hero-dd .store-dd-desc { font-size: 1.3rem; }
}
@media (max-width: 760px) {
    .store-hero-dd { padding: 1.2rem 0 1rem; }
    .store-hero-dd .store-dd-identity {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
    }
    .store-hero-dd .store-dd-logo {
        width: 6.2rem;
        height: 6.2rem;
    }
    .store-hero-dd .store-dd-title-block h1 { font-size: 1.5rem; }
    .store-hero-dd .store-dd-desc { font-size: 1.18rem; }
    .store-hero-dd .store-dd-bottom {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .store-hero-dd .store-dd-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .store-hero-dd .store-dd-btn { width: 100%; font-size: 1.1rem; }
}
.store-hero-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.store-hero-logo {
    width: 7rem;
    height: 7rem;
    min-width: 7rem;
    min-height: 7rem;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.store-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}
.store-hero-initial {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.store-hero-text { flex: 1; min-width: 200px; }
.store-hero-text h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin: 0; }
.store-hero-text p { margin: 0.35rem 0 0; opacity: 0.95; }
.store-hero-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.store-hero-head-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}
.store-hero-description {
    margin-top: 0.75rem;
    opacity: 0.95;
}
.store-hero-meta {
    margin-top: 0.55rem;
}
.store-hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.store-hero-actions-bottom {
    margin-top: 1rem;
}
.store-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.store-hero-btn-primary {
    background: #fff;
    color: var(--primary);
    border: 1px solid #fff;
}
.store-hero-btn-primary:hover {
    background: transparent;
    color: #fff;
}
.store-hero-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.55);
}
.store-hero-btn-ghost:hover {
    background: rgba(255,255,255,0.15);
}
.store-hero-stats {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    max-width: 720px;
}
.store-hero-stat {
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    border-radius: 0.7rem;
    backdrop-filter: blur(2px);
}
.store-hero-stat-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}
.store-hero-stat-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    opacity: 0.9;
}
@media (max-width: 900px) {
    .store-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.store-hero-cats {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.store-cat-tag {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(255,255,255,0.15);
}
.store-cat-tag:hover { background: rgba(255,255,255,0.25); }
.store-cat-sep { opacity: 0.6; margin: 0 0.2rem; }

@media (max-width: 700px) {
    .store-hero-head {
        align-items: center;
    }
    .store-hero-enhanced .store-hero-logo,
    .store-hero-logo {
        width: 5.2rem;
        height: 5.2rem;
        min-width: 5.2rem;
        min-height: 5.2rem;
    }
    .store-hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .store-hero-actions-bottom {
        width: 100%;
        justify-content: center;
    }
    .store-hero-actions-bottom .store-hero-btn {
        width: 100%;
    }
}

@media (min-width: 901px) {
    .store-hero-inner {
        align-items: center;
        justify-content: center;
    }
    .store-hero-text {
        max-width: 980px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .store-hero-head {
        justify-content: center;
    }
    .store-hero-head-text {
        align-items: center;
    }
    .store-hero-description {
        max-width: 760px;
        text-align: center;
    }
    .store-hero-contact-row,
    .store-hero-cats,
    .store-hero-social-row,
    .store-hero-actions-bottom {
        justify-content: center;
    }
    .store-hero-stats {
        max-width: 840px;
        margin-inline: auto;
    }
}

.section-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.section-link svg { flex-shrink: 0; }
[dir="rtl"] .section-link svg { transform: rotate(180deg); }

/* Branches accordion */
.store-branches-section { background: var(--surface); }
.store-branches-head {
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg);
    padding: 0;
}
.store-branches-title {
    display: inline-block;
    margin: 0;
    padding: 0.8rem 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-inline-start: 4px solid var(--primary);
}
.branches-accordion { display: flex; flex-direction: column; gap: 0; }
.branch-region {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0;
    overflow: hidden;
}
.branch-region:first-child {
    border-top: 1px solid var(--border);
}
.branch-region-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text);
    text-align: start;
    font-family: inherit;
    font-weight: 700;
    transition: background 0.2s ease;
    background: var(--surface);
}
.branch-region-btn:hover {
    background: var(--primary-light);
}
.branch-region-title-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}
.branch-region-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.branch-toggle-symbol {
    margin-inline-start: auto;
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1;
}
.branch-region-content {
    border-top: 1px solid var(--border);
    padding: 0;
    background: #fff;
}
.branch-list { display: flex; flex-direction: column; }
.branch-item {
    border: 0;
    background: #fff;
    margin-bottom: 0;
}
.branch-item + .branch-item {
    border-top: 1px solid var(--border);
}
.branch-item-btn {
    width: 100%;
    border: none;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-family: inherit;
}
.branch-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.branch-item-content {
    border-top: 1px solid var(--border);
}
.branch-item-content.is-static {
    border-top: 0;
}
.branch-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.branch-title-row .branch-open-badge {
    margin-inline-start: 0;
}
.branch-open-badge {
    margin-inline-start: auto;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.branch-open-badge.is-open {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}
.branch-open-badge.is-closed {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}
.branch-open-badge.is-unknown {
    color: #1e3a8a;
    background: #dbeafe;
    border-color: #93c5fd;
}
.branch-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    border-bottom: 0;
    background: #fff;
    border-radius: 0.5rem;
    transition: box-shadow 0.2s ease;
}
.branch-card-table {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.branch-item:last-child .branch-card-table { border-bottom: 0; }
.branch-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.branch-main-col {
    padding: 0.95rem 1rem;
}
.branch-main-col + .branch-main-col {
    border-inline-start: 1px solid var(--border);
}
.branch-col-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 700;
}
.branch-city {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.branch-hours-text {
    margin: 0;
    color: var(--text);
    line-height: 1.8;
    white-space: pre-line;
}
.branch-hours-list-v2 {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.branch-hours-list-v2 li {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
}
.branch-card:hover {
    box-shadow: none;
}
.branch-card:last-child { border-bottom: none; }
@media (min-width: 640px) {
    .branch-card { grid-template-columns: 1fr auto; }
}
.branch-name {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
}
.branch-name:hover { text-decoration: underline; }
.branch-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}
.branch-address svg { flex-shrink: 0; margin-top: 0.15rem; }
.branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.branch-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}
.branch-link:hover { text-decoration: underline; }
.branch-hours {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.branch-hours svg { 
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}
.branch-hours-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.branch-hours strong { 
    color: var(--text);
    display: block;
    font-size: 0.9rem;
}
.branch-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.branch-hour-item {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.branches-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Store contact section */
.store-info-section { padding: 2rem 0; }
.store-contact-surface {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.11) 0%, rgba(37, 99, 235, 0.04) 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
[data-theme="dark"] .store-contact-surface {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-color: rgba(56, 189, 248, 0.25);
}
.store-contact-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.store-contact-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}
.store-contact-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}
.store-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}
.store-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    max-width: 100%;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.store-contact-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.store-contact-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.store-contact-link.is-whatsapp {
    border-color: rgba(22, 163, 74, 0.35);
    color: #15803d;
}
[data-theme="dark"] .store-contact-link.is-whatsapp { color: #4ade80; }
.store-contact-link-icon-only {
    width: 2.5rem;
    justify-content: center;
    padding-inline: 0;
}
.store-contact-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-contact-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.store-contact-social {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.28);
    color: var(--primary);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.store-contact-social:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}
.store-contact-links.is-compact .store-contact-link {
    width: 100%;
    justify-content: flex-start;
}
.store-contact-links.is-compact .store-contact-link-icon-only {
    width: 2.5rem;
    min-width: 2.5rem;
    justify-content: center;
}
@media (max-width: 700px) {
    .store-contact-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.store-similar-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) { .store-similar-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .store-similar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .store-similar-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 980px) {
    .store-classic-grid { grid-template-columns: 1fr; }
    .store-classic-content h1 { font-size: 1.6rem; }
    .store-branches-title { font-size: 1.25rem; }
}

@media (max-width: 700px) {
    .branch-main-grid { grid-template-columns: 1fr; }
    .branch-main-col + .branch-main-col { border-inline-start: none; border-top: 1px solid var(--border); }
}

/* Brand page */
.brand-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}
.brand-hero-logo {
    width: 112px;
    height: 112px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    overflow: hidden;
    padding: 0.5rem;
}
.brand-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-hero-text { flex: 1; min-width: 200px; }
.brand-hero-text h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.25rem; }
.brand-meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.brand-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}
.brand-action-btn:hover { background: var(--primary); color: #fff; }
.brand-action-btn.active { background: var(--primary); color: #fff; }

/* V2 product page dark/light helpers */
.v2-product-page .v2-card { background: var(--surface); }
.v2-product-page .bg-white { background: var(--surface); }
.v2-product-page .bg-gray-100 { background: var(--bg); }
.v2-product-page .bg-gray-200 { background: var(--border); }
.v2-product-page .text-gray-900,
.v2-product-page .text-gray-700 { color: var(--text); }
.v2-product-page .text-gray-600,
.v2-product-page .text-gray-500,
.v2-product-page .text-gray-400 { color: var(--text-muted); }
.v2-product-page .border { border-color: var(--border); }
.v2-product-page .shadow { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.v2-product-page .hover\:bg-gray-100:hover { background: var(--bg); }
.v2-product-page .hover\:bg-gray-200:hover { background: var(--border); }
.v2-product-page .hover\:text-gray-900:hover { color: var(--text); }
.v2-product-page .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--border); }
.v2-product-page .light-scrollbar::-webkit-scrollbar-thumb { background: var(--border); }
[data-theme="dark"] .v2-product-page .text-primary { color: var(--primary); }

/* Quick Nav (شريط التنقل السريع) - Mobile bottom bar */
.quick-nav-wrap {
    display: none;
    background: var(--surface);
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.quick-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    min-width: 80px;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.quick-nav-item:hover,
.quick-nav-item.active { color: var(--primary); }
.quick-nav-item svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.quick-nav-item.app-btn {
    background: var(--primary);
    color: #fff;
    min-width: 120px;
    font-size: 0.7rem;
}
.quick-nav-item.app-btn:hover { background: var(--primary-hover); color: #fff; }
.quick-nav-item.app-btn svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 768px) {
    .quick-nav-wrap {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    body:has(.quick-nav-wrap) main { padding-bottom: 90px; }
    body:has(.quick-nav-wrap) footer { padding-bottom: calc(90px + 2rem + env(safe-area-inset-bottom, 0)); }
}
@media (min-width: 769px) {
    .quick-nav-wrap { display: none; }
}
.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Branch Details Page - Professional Styling */
.branch-details-section { background: var(--surface); padding: 2rem 0; }

.branch-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.branch-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.branch-header-info {
    flex: 1;
}

.branch-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.branch-location {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.branch-store {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

.branch-header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-header-logo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.branch-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .branch-content-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (min-width: 1024px) {
    .branch-content-grid {
        grid-template-columns: 1fr 380px;
    }
}

.branch-details-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.branch-info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.card-header svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.card-content {
    color: var(--text);
}

.branch-address {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.branch-details-sidebar .branch-open-badge {
    margin-inline-start: 0;
    display: inline-flex;
    margin-bottom: 1rem;
}

.hours-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.hours-row.is-today {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.hours-day {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.hours-today-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.hours-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hours-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.1;
}

.hours-pill.is-closed {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hour-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--surface);
    border-left: 3px solid var(--primary);
    border-radius: 0.25rem;
}

.hour-text {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 640px) {
    .hours-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .hours-meta {
        justify-content: flex-start;
    }
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: inherit;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.contact-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.card-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-btn-primary {
    background: var(--primary);
    color: white;
}

.card-btn-primary:hover {
    background: var(--primary-hover);
}

.card-btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    width: 100%;
    justify-content: center;
}

.card-btn-secondary:hover {
    background: var(--primary-light);
}

.branch-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.store-logo-box {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.store-logo-box img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.store-name-sidebar {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem;
    text-align: center;
}

.store-cats-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cat-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.other-branches-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.other-branches-section .section-header {
    margin-bottom: 1.5rem;
}

.branch-map-card {
    padding: 0 !important;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 1.5rem;
}

.branch-map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.branch-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* ===================================
   Catalog Tips Modal
   =================================== */
.catalog-tips-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.catalog-tips-modal.visible {
    opacity: 1;
    visibility: visible;
}

.catalog-tips-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    touch-action: manipulation;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.catalog-tips-content {
    position: relative;
    background: var(--surface);
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border);
}

.catalog-tips-modal.visible .catalog-tips-content {
    transform: scale(1);
}

.catalog-tips-header {
    position: relative;
    text-align: center;
    margin-bottom: 1.75rem;
}
.catalog-tips-close {
    position: absolute;
    top: -0.25rem;
    inset-inline-end: -0.25rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.catalog-tips-close:hover { color: var(--text); background: var(--surface); }
[dir="rtl"] .catalog-tips-close { inset-inline-end: auto; inset-inline-start: -0.25rem; }

.catalog-tips-header .tips-icon {
    color: var(--primary);
    margin: 0 auto 1rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.catalog-tips-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.catalog-tips-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.tip-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateX(4px);
}

[dir="rtl"] .tip-item:hover {
    transform: translateX(-4px);
}

.tip-item .tip-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
}

.tip-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.catalog-tips-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tips-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.tips-btn-primary {
    background: var(--primary);
    color: #fff;
}

.tips-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.tips-btn-secondary {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.tips-btn-secondary:hover {
    background: var(--surface);
    border-color: var(--text-muted);
}

[data-theme="dark"] .catalog-tips-overlay {
    background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .tip-item:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

@media (max-width: 768px) {
    .catalog-tips-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .catalog-tips-header h3 {
        font-size: 1.25rem;
    }
    
    .tip-item {
        gap: 0.75rem;
        padding: 0.875rem;
    }
    
    .tip-item .tip-icon {
        width: 36px;
        height: 36px;
    }
    
    .tip-item span {
        font-size: 0.875rem;
    }
}

/* Catalog Details Modal - Mobile Responsive */
@media (max-width: 768px) {
    .catalog-details-content {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .catalog-details-header {
        padding: 1.25rem;
    }
    
    .catalog-modal-logo,
    .catalog-modal-logo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .catalog-details-header h3 {
        font-size: 1.1rem;
    }
    
    .catalog-details-info {
        padding: 1.25rem;
    }
    
    .catalog-detail-row {
        grid-template-columns: 85px 1fr;
        gap: 0.5rem;
    }
    
    .catalog-details-info dt {
        font-size: 0.8rem;
    }
    
    .catalog-details-info dd {
        font-size: 0.875rem;
    }
    
    .catalog-category-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .catalog-details-close {
        margin: 0 1.25rem 1.25rem;
        width: calc(100% - 2.5rem);
        font-size: 0.95rem;
    }
}

/* SEO pre-footer block */
.seo-prefooter-section {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    padding-top: 2.75rem;
    padding-bottom: 3rem;
}
.seo-prefooter-body {
    display: grid;
    gap: 1rem;
    max-width: 1000px;
}
.seo-prefooter-body p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 0.98rem;
    margin: 0;
}
[data-theme="dark"] .seo-prefooter-section {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.75) 0%, rgba(30, 41, 59, 0.35) 100%);
}
@media (max-width: 768px) {
    .seo-prefooter-section {
        padding-top: 2.25rem;
        padding-bottom: 2.5rem;
    }
    .seo-prefooter-body p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

/* --- NEW MODERN VISUAL OVERHAUL OVERRIDES --- */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.1);
    --border: #e2e8f0;
    --bg: #f8fafc;
    --surface: #ffffff;
    --radius: 0.75rem; /* 12px */
    --radius-sm: 0.5rem; /* 8px */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] {
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --primary-light: rgba(56, 189, 248, 0.12);
    --border: rgba(148, 163, 184, 0.15);
    --bg: #0f172a;
    --surface: #1e293b;
    --shadow: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 24px -4px rgba(0,0,0,.4), 0 2px 8px -2px rgba(0,0,0,.25);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.5);
}

/* Polished Card Elements */
.catalog-info-card-wide, .catalog-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-info-card-wide:hover, .catalog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

/* Polished Header */
.catalog-mobile-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
[data-theme="dark"] .catalog-mobile-header {
    background: rgba(31, 41, 55, 0.85);
}

/* Smoother Inputs & Buttons */
input, button, select, textarea {
    transition: all 0.2s ease-in-out;
}
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px var(--primary-light);
    border-color: var(--primary);
    outline: none;
}
button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
button:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* FAB Adjustments for modernity */
.catalog-mobile-fab-actions {
    background: var(--surface);
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 0.5rem;
}

/* Favorite Button Polish */
.catalog-favorite-btn {
    border-radius: 50% !important; /* Circular if not already */
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Breadcrumb styles integrated above */



/* Fullscreen Styles */
.catalog-fullscreen-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: transform .2s ease, border-color .2s ease, opacity .2s ease;
    cursor: pointer;
}
.catalog-fullscreen-btn svg { width: 1.2rem; height: 1.2rem; }
.catalog-fullscreen-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    color: var(--primary);
}
[data-theme="dark"] .catalog-fullscreen-btn {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}
.catalog-page-wrap:fullscreen {
    background: var(--surface);
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.catalog-page-wrap:-webkit-full-screen {
    background: var(--surface);
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.catalog-page-wrap:fullscreen .catalog-swiper, .catalog-page-wrap:fullscreen .catalog-swiper-mobile { height: 100%; display: flex; flex: 1; min-height: 0; }
.catalog-page-wrap:-webkit-full-screen .catalog-swiper, .catalog-page-wrap:-webkit-full-screen .catalog-swiper-mobile { height: 100%; display: flex; flex: 1; min-height: 0; }
.catalog-page-wrap:fullscreen .swiper-slide { height: 100%; }
.catalog-page-wrap:-webkit-full-screen .swiper-slide { height: 100%; }