/* Safa Electronics inspired theme */
:root {
    --safa-red: #e12b00;
    --safa-red-dark: #c42400;
    --safa-red-hover: #b81f00;
    --safa-green: #108548;
    --safa-footer: #1a1c20;
    --safa-gray-bg: #f5f5f5;
    --safa-border: #e5e5e5;
    --safa-text: #333;
    --safa-text-muted: #777;
}

body.safa-theme {
    background: #fff;
    color: var(--safa-text);
    font-family: 'Tajawal', system-ui, sans-serif;
}
body.safa-theme > main {
    position: relative;
    z-index: 1;
}

/* ── Top bar ── */
.safa-topbar {
    background: #fff;
    border-bottom: 1px solid var(--safa-border);
    font-size: 13px;
    padding: 6px 0;
}
.safa-topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.safa-topbar-start {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.safa-topbar-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.safa-topbar-label {
    color: #888;
    margin-inline-end: 4px;
}
.safa-topbar-switcher a {
    color: #555;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
}
.safa-topbar-switcher a.active,
.safa-topbar-switcher a:hover {
    color: var(--safa-red);
    background: #fff5f3;
}

/* Topbar dropdowns (country / currency) */
.safa-topbar-dropdown {
    position: relative;
    z-index: 55;
}
.safa-topbar-dropdown__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2rem;
    padding: 0.2rem 0.65rem 0.2rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.safa-topbar-dropdown__btn:hover,
.safa-topbar-dropdown.is-open .safa-topbar-dropdown__btn {
    border-color: #fecaca;
    background: #fff8f6;
    box-shadow: 0 4px 14px rgba(225, 43, 0, 0.08);
}
.safa-topbar-dropdown__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.15;
    text-align: start;
}
.safa-topbar-dropdown__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.01em;
}
.safa-topbar-dropdown__value {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}
.safa-topbar-dropdown__chevron {
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform .18s ease, color .18s ease;
}
.safa-topbar-dropdown.is-open .safa-topbar-dropdown__chevron {
    transform: rotate(180deg);
    color: var(--safa-red);
}
.safa-topbar-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-start: 0;
    min-width: 12.5rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    z-index: 60;
}
.safa-topbar-dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background .15s ease, color .15s ease;
}
.safa-topbar-dropdown__option:hover {
    background: #f8fafc;
    color: var(--safa-red);
}
.safa-topbar-dropdown__option.is-active {
    background: #fff5f3;
    color: var(--safa-red);
}
.safa-topbar-dropdown__check {
    flex-shrink: 0;
    color: var(--safa-red);
}
.safa-topbar-dropdown__symbol {
    color: #94a3b8;
    font-weight: 500;
    margin-inline-start: 0.2rem;
}
@media (max-width: 640px) {
    .safa-topbar-dropdown__menu {
        min-width: 11rem;
        max-height: 14rem;
    }
    .safa-topbar-dropdown__btn {
        padding-inline: 0.6rem;
    }
}
.safa-topbar .lang-switch a {
    color: #555;
    padding: 4px 10px;
    text-decoration: none;
}
.safa-topbar .lang-switch a.active,
.safa-topbar .lang-switch a:hover {
    color: var(--safa-red);
}
.safa-topbar-helpline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--safa-red);
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
}
.safa-topbar-helpline:hover {
    background: #fff5f3;
}

/* ── Announcement bar ── */
.safa-announcement {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 8px 15px;
}
.safa-announcement-inner {
    max-width: 1320px;
    margin: 0 auto;
}
.safa-announcement a {
    color: inherit;
    text-decoration: none;
}
.safa-announcement a:hover {
    text-decoration: underline;
}

/* ── Site header (logo + nav) ── */
.safa-site-header {
    position: relative;
    z-index: 50;
    background: #fff;
}
.safa-site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ── Main header ── */
.safa-header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--safa-border);
}
.safa-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.safa-logo img {
    height: 55px;
    max-width: 200px;
    object-fit: contain;
}
.safa-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--safa-red);
}
.safa-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    gap: 2px;
}
.safa-logo-motto {
    font-size: 11px;
    color: var(--safa-text-muted);
    font-weight: 500;
    line-height: 1.2;
}
.safa-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}
.safa-search input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 11px 20px 11px 48px;
    font-size: 14px;
    background: #fafafa;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .safa-search input {
    padding: 11px 48px 11px 20px;
}
.safa-search input:focus {
    border-color: var(--safa-red);
    box-shadow: 0 0 0 3px rgba(225,43,0,.1);
    background: #fff;
}
.safa-search .search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    color: #999;
    pointer-events: none;
}
[dir="rtl"] .safa-search .search-icon {
    left: auto;
    right: 16px;
}
.safa-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.safa-header-icon {
    color: #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    text-decoration: none;
    transition: color .2s;
    position: relative;
}
.safa-header-icon:hover { color: var(--safa-red); }
.safa-header-icon svg { width: 22px; height: 22px; }
.safa-auth-links {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.safa-auth-links a {
    color: #444;
    text-decoration: none;
    white-space: nowrap;
}
.safa-auth-links a:hover { color: var(--safa-red); }
.safa-auth-links .sep { color: #ccc; }

/* ── Red nav bar ── */
.safa-navbar {
    background: var(--safa-red);
    color: #fff;
    position: relative;
    z-index: 40;
}
.safa-navbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    min-height: 48px;
}
.safa-categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--safa-red-dark);
    color: #fff;
    padding: 0 18px;
    height: 48px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.safa-categories-btn:hover { background: var(--safa-red-hover); }
.safa-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    overflow-x: auto;
}
.safa-nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s;
}
.safa-nav-links a:hover { background: rgba(0,0,0,.12); }
.safa-cart-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--safa-red-dark);
    padding: 0 16px;
    height: 48px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    margin-inline-start: auto;
}
.safa-cart-widget:hover { background: var(--safa-red-hover); }
.safa-cart-widget .cart-total { font-weight: 700; font-size: 14px; }
.safa-cart-widget .cart-count { font-size: 12px; opacity: .9; }

/* Categories mega dropdown */
.safa-categories-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--safa-border);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    z-index: 50;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}
.safa-categories-dropdown.open { display: block; }
.safa-categories-dropdown__mobile-head {
    display: none;
}
.safa-categories-dropdown__body {
    max-width: 1320px;
    margin: 0 auto;
}
.safa-categories-dropdown__footer {
    border-top: 1px solid #f1f5f9;
    padding: 10px 14px;
    text-align: center;
    background: #fafbfc;
}
.safa-categories-dropdown__footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--safa-red);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.safa-categories-dropdown__footer a:hover { text-decoration: underline; }
.safa-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0;
    padding: 10px;
}
.safa-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: background .2s;
    text-align: center;
}
.safa-cat-item:hover { background: #f9f9f9; color: var(--safa-red); }
.safa-cat-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 6px;
}
.safa-cat-item .cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 20px;
}
.safa-cat-item span { font-size: 12px; font-weight: 500; line-height: 1.3; }
.safa-cat-item--child {
    grid-column: span 1;
    padding-inline-start: 8px;
    border-inline-start: 2px solid #f3f4f6;
}
.safa-cat-item--child img,
.safa-cat-item--child .cat-icon {
    width: 36px;
    height: 36px;
}
.safa-cat-item--child span {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
}
.safa-mobile-cat-child {
    padding-inline-start: 20px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
}

/* ── Category slider (square thumbnails) ── */
.safa-cat-slider {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--safa-border);
}
.safa-cat-slider-head {
    max-width: 1320px;
    margin: 0 auto 12px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.safa-cat-slider-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}
.safa-cat-slider-head a {
    font-size: 13px;
    font-weight: 700;
    color: var(--safa-red);
    text-decoration: none;
}
.safa-cat-slider-head a:hover { text-decoration: underline; }
.safa-cat-slider-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}
.safa-cat-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
}
.safa-cat-slider-track::-webkit-scrollbar { display: none; }
.safa-cat-circle {
    flex: 0 0 auto;
    width: 90px;
    text-align: center;
    text-decoration: none;
    color: #333;
}
.safa-cat-circle img,
.safa-cat-circle .circle-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #eee;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    transition: border-color .2s;
}
.safa-cat-circle:hover img,
.safa-cat-circle:hover .circle-placeholder { border-color: var(--safa-red); }
.safa-cat-circle span { font-size: 11px; font-weight: 500; line-height: 1.3; display: block; }
.safa-cat-circle--child span { font-size: 10px; color: #6b7280; }
.safa-cat-circle--child img,
.safa-cat-circle--child .circle-placeholder {
    width: 56px;
    height: 56px;
}
.safa-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #666;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.safa-slider-btn:hover { border-color: var(--safa-red); color: var(--safa-red); }
.safa-slider-btn.prev { right: 0; }
.safa-slider-btn.next { left: 0; }
[dir="ltr"] .safa-slider-btn.prev { right: auto; left: 0; }
[dir="ltr"] .safa-slider-btn.next { left: auto; right: 0; }

/* ── Hero banner ── */
.safa-hero {
    max-width: 1320px;
    margin: 20px auto;
    padding: 0 15px;
}
.safa-banner-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/1;
    min-height: 200px;
    background: #f0f0f0;
}
.safa-banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
    background-size: cover;
    background-position: center;
}
.safa-banner-slide.active { opacity: 1; z-index: 1; }
.safa-banner-slide__link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}
.safa-banner-slide__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.25) 48%, rgba(15, 23, 42, 0.08) 100%);
    z-index: 2;
}
.safa-banner-slide__content {
    max-width: min(36rem, 92%);
    color: #fff;
}
.safa-banner-slide__title {
    margin: 0;
    font-size: clamp(1.25rem, 2.6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.safa-banner-slide__subtitle {
    margin: 0.55rem 0 0;
    font-size: clamp(0.88rem, 1.4vw, 1.1rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-width: 32rem;
}
.safa-banner-slide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform .18s ease, filter .18s ease;
}
.safa-banner-slide__btn:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
    color: #0f172a;
}

/* Hero banner — mobile: shorter height, no oversized crop */
@media (max-width: 768px) {
    .safa-hero {
        margin: 10px auto 12px;
        padding: 0 10px;
    }
    .safa-banner-slider {
        aspect-ratio: unset;
        min-height: 0;
        height: clamp(108px, 32vw, 140px);
        border-radius: 6px;
    }
    .safa-banner-slider:has(.safa-banner-slide.has-content.active),
    .safa-banner-slider:has(.safa-banner-slide.has-content) {
        height: clamp(150px, 42vw, 200px);
    }
    .safa-banner-slide {
        background-size: cover;
        background-position: center center;
    }
    .safa-banner-slide__overlay {
        padding: 0.85rem 1rem;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.62) 100%);
        align-items: flex-end;
    }
    .safa-banner-slide__title { font-size: 1.05rem; }
    .safa-banner-slide__subtitle { font-size: 0.78rem; margin-top: 0.25rem; }
    .safa-banner-slide__btn {
        margin-top: 0.55rem;
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .safa-hero {
        margin: 8px auto 10px;
        padding: 0 8px;
    }
    .safa-banner-slider {
        height: clamp(96px, 28vw, 120px);
        border-radius: 5px;
    }
    .safa-banner-slider:has(.safa-banner-slide.has-content.active),
    .safa-banner-slider:has(.safa-banner-slide.has-content) {
        height: clamp(140px, 40vw, 180px);
    }
}

/* ── Section headers ── */
.safa-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 25px 15px;
}
.safa-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--safa-red);
    padding-bottom: 10px;
}
.safa-section-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin: 0;
}
.safa-section-header .view-all {
    color: var(--safa-red);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.safa-section-header .view-all:hover { text-decoration: underline; }
.safa-section-nav {
    display: flex;
    gap: 6px;
}

/* ── Product card (Safa style) ── */
.safa-product-card {
    background: #fff;
    border: 1px solid var(--safa-border);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.safa-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    border-color: #ccc;
}
.safa-product-card .card-image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
}
.safa-product-card .card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.safa-product-card .card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .3s;
}
.safa-product-card:hover .card-image-wrap img { transform: scale(1.05); }
.safa-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--safa-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
}
[dir="ltr"] .safa-discount-badge { right: auto; left: 8px; }
.safa-product-card .card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.safa-product-card .card-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    min-height: 36px;
}
.safa-product-card .card-title:hover { color: var(--safa-red); }
.safa-product-card .card-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 2px;
}
.safa-product-card .card-price {
    color: var(--safa-red);
    font-size: 16px;
    font-weight: 800;
}
.safa-product-card .card-compare {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: line-through;
}
.safa-product-card .card-tax {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}
.safa-product-card .card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}
.safa-add-cart-btn {
    background: #333;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
    text-decoration: none;
}
.safa-add-cart-btn:hover { background: var(--safa-red); }
.safa-card-icon-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
}
.safa-card-icon-btn:hover { color: var(--safa-red); }
.wishlist-toggle-btn.is-active { color: var(--safa-red); }
.safa-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    z-index: 3;
    pointer-events: none;
}
.safa-product-card:hover .safa-card-hover-overlay { opacity: 1; }
.safa-card-hover-overlay .hover-add-btn {
    pointer-events: auto;
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.safa-card-hover-overlay .hover-add-btn:hover { background: var(--safa-red); }

/* Product sliders */
.safa-products-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 5px;
}
.safa-products-slider::-webkit-scrollbar { display: none; }
.safa-products-slider .safa-product-card {
    flex: 0 0 calc(20% - 10px);
    min-width: 180px;
}
@media (max-width: 1200px) {
    .safa-products-slider .safa-product-card { flex: 0 0 calc(25% - 9px); }
}
@media (max-width: 900px) {
    .safa-products-slider .safa-product-card { flex: 0 0 calc(33.33% - 8px); min-width: 150px; }
}
@media (max-width: 600px) {
    .safa-products-slider .safa-product-card { flex: 0 0 calc(50% - 6px); min-width: 140px; }
}

/* Product grid */
.safa-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
@media (max-width: 1200px) { .safa-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .safa-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .safa-products-grid { grid-template-columns: repeat(2, 1fr); } }

/* Catalog toolbar: view + per page */
.safa-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.safa-catalog-toolbar__start,
.safa-catalog-toolbar__end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.safa-catalog-toolbar__count {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}
.safa-catalog-toolbar__count strong {
    color: #111827;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.safa-catalog-toolbar__group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.safa-catalog-toolbar__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.safa-catalog-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    background: #f3f4f6;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}
.safa-catalog-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    color: #6b7280;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.safa-catalog-view-toggle__btn:hover {
    color: #111827;
    background: #fff;
}
.safa-catalog-view-toggle__btn.is-active {
    background: var(--safa-red, #e12b00);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--safa-red, #e12b00) 28%, transparent);
}
.safa-catalog-per-page {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.safa-catalog-per-page__select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 5.25rem;
    height: 2.35rem;
    padding: 0 2rem 0 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}
[dir="rtl"] .safa-catalog-per-page__select {
    padding: 0 0.85rem 0 2rem;
}
.safa-catalog-per-page__select:hover,
.safa-catalog-per-page__select:focus {
    border-color: color-mix(in srgb, var(--safa-red, #e12b00) 45%, #e5e7eb);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--safa-red, #e12b00) 14%, transparent);
}
.safa-catalog-per-page__chevron {
    position: absolute;
    inset-inline-end: 0.7rem;
    pointer-events: none;
    color: #9ca3af;
}

/* List view */
.safa-products-grid--list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.safa-products-grid--list .safa-product-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
}
.safa-products-grid--list .safa-product-card .card-image-wrap {
    aspect-ratio: 1;
    height: 100%;
    min-height: 120px;
    border-radius: 0;
}
.safa-products-grid--list .safa-product-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
}
.safa-products-grid--list .safa-product-card .card-title {
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
}
.safa-products-grid--list .safa-product-card .card-actions {
    margin-top: 0.45rem;
    justify-content: flex-start;
}
@media (max-width: 640px) {
    .safa-catalog-toolbar {
        border-radius: 14px;
        padding: 0.65rem 0.75rem;
    }
    .safa-catalog-toolbar__label {
        display: none;
    }
    .safa-products-grid--list .safa-product-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .safa-products-grid--list .safa-product-card .card-body {
        padding: 0.7rem 0.75rem;
    }
}

/* Two column layout (new + best sellers) */
.safa-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px 25px;
}
@media (max-width: 900px) { .safa-two-col { grid-template-columns: 1fr; } }
.safa-two-col-block {
    border: 1px solid var(--safa-border);
    border-radius: 4px;
    overflow: hidden;
}
.safa-two-col-block .block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fafafa;
    border-bottom: 1px solid var(--safa-border);
}
.safa-two-col-block .block-header h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}
.safa-two-col-block .block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.safa-two-col-block .block-grid .safa-product-card {
    border: none;
    border-radius: 0;
    border-inline-end: 1px solid var(--safa-border);
    border-bottom: 1px solid var(--safa-border);
}
@media (max-width: 600px) {
    .safa-two-col-block .block-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Category section with illustration */
.safa-category-block {
    display: flex;
    gap: 0;
    border: 1px solid var(--safa-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
.safa-category-block .cat-illustration {
    width: 160px;
    flex-shrink: 0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-inline-start: 1px solid var(--safa-border);
}
.safa-category-block .cat-illustration img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}
.safa-category-block .cat-products {
    flex: 1;
    padding: 15px;
    overflow: hidden;
}

/* Free delivery banner */
.safa-delivery-banner-wrap {
    margin: 20px auto;
    max-width: 1320px;
}
.safa-delivery-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.safa-delivery-banner {
    background: var(--safa-gray-bg);
    padding: 30px 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.safa-delivery-banner.has-image {
    padding: 20px 30px;
}
.safa-delivery-media {
    flex: 0 0 auto;
    max-width: 180px;
}
.safa-delivery-media img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    display: block;
}
.safa-delivery-banner .delivery-text {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    flex: 1;
    margin: 0;
    line-height: 1.5;
}
.safa-delivery-stamp {
    border: 3px solid var(--safa-red);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--safa-red);
    transform: rotate(-12deg);
    flex-shrink: 0;
    padding: 8px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .safa-delivery-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .safa-delivery-banner .delivery-text { font-size: 18px; }
    .safa-delivery-media { max-width: 140px; }
}

/* Service highlights */
.safa-service-bar {
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    border-top: 1px solid var(--safa-border);
    border-bottom: 1px solid var(--safa-border);
    padding: 28px 0;
    margin-top: 36px;
}
.safa-service-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 900px) {
    .safa-service-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .safa-service-bar-inner { grid-template-columns: 1fr; gap: 10px; }
}
.safa-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 18px 14px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
.safa-service-item:hover {
    color: var(--safa-red);
    border-color: color-mix(in srgb, var(--safa-red) 35%, #e5e7eb);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.safa-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--safa-red) 8%, #fff);
    color: var(--safa-red);
}
.safa-service-icon svg {
    width: 24px;
    height: 24px;
}
.safa-service-item:hover .safa-service-icon {
    background: color-mix(in srgb, var(--safa-red) 14%, #fff);
}
.safa-service-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

/* ── Footer ── */
.safa-footer {
    background:
        radial-gradient(900px 280px at 100% 0%, rgba(225, 43, 0, 0.12), transparent 55%),
        linear-gradient(180deg, #1d2026 0%, var(--safa-footer) 45%);
    color: #b8bec8;
    margin-top: 0;
}
.safa-footer-newsletter {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
}
.safa-footer-newsletter-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.safa-footer-newsletter-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.safa-footer-newsletter p {
    font-size: 14px;
    color: #c5cad3;
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}
.safa-newsletter-form {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 450px;
}
.safa-newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 11px 15px;
    border-radius: 10px 0 0 10px;
    font-size: 13px;
    outline: none;
}
[dir="rtl"] .safa-newsletter-form input { border-radius: 0 10px 10px 0; }
.safa-newsletter-form input::placeholder { color: #8b93a1; }
.safa-newsletter-form button {
    background: var(--safa-red);
    color: #fff;
    border: none;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    white-space: nowrap;
}
[dir="rtl"] .safa-newsletter-form button { border-radius: 10px 0 0 10px; }
.safa-newsletter-form button:hover { background: var(--safa-red-dark); }
.safa-footer-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 15px 36px;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.1fr 1.05fr;
    gap: 36px;
}
@media (max-width: 900px) {
    .safa-footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .safa-footer-main { grid-template-columns: 1fr; }
}
.safa-footer h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
}
.safa-footer-about-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.safa-footer-about,
.safa-footer-tagline {
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 10px;
    color: #aeb5c0;
}
.safa-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.safa-footer-logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
.safa-footer ul { list-style: none; padding: 0; margin: 0; }
.safa-footer ul li { margin-bottom: 10px; }
.safa-footer ul a {
    color: #aeb5c0;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
    display: inline-block;
}
.safa-footer ul a:hover { color: #fff; }
.safa-footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 12px;
    color: #aeb5c0;
}
.safa-footer-contact a { color: inherit; text-decoration: none; }
.safa-footer-contact a:hover { color: #fff; }
.safa-footer-contact__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.safa-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.safa-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.safa-footer-social a:hover {
    background: var(--safa-red);
    border-color: var(--safa-red);
    color: #fff;
    transform: translateY(-1px);
}
.safa-footer-sbc,
.info-block-text.safa-footer-sbc {
    margin-top: 18px;
    max-width: 210px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.safa-footer-sbc a,
.info-block-text.safa-footer-sbc a {
    display: block;
    line-height: 0;
    background: transparent;
}
.safa-footer-sbc img,
.info-block-text.safa-footer-sbc img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
}
.safa-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 15px;
    font-size: 12px;
    color: #8b93a1;
}
.safa-footer-bottom-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
}
.safa-footer-bottom__extra {
    margin-top: 4px;
    opacity: 0.9;
}
.safa-footer-bottom__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.safa-footer-bottom__meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ── Contact page ── */

/* ── Auth social buttons ── */
.safa-auth-social { margin-top: 22px; }
.safa-auth-social--top { margin-top: 0; margin-bottom: 4px; }
.safa-auth-social__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}
.safa-auth-social__divider--after {
    margin-top: 16px;
    margin-bottom: 4px;
}
.safa-auth-social__divider::before,
.safa-auth-social__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.safa-auth-social__buttons { display: grid; gap: 10px; }
.safa-auth-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.safa-auth-social__btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
    transform: translateY(-1px);
}
.safa-auth-social__btn--apple {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.safa-auth-social__btn--apple:hover {
    background: #000;
    border-color: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
@media (prefers-reduced-motion: reduce) {
    .safa-auth-social__btn { transition: none; }
    .safa-auth-social__btn:hover { transform: none; }
}

/* ── Auth pages (login / register) ── */
.safa-auth {
    background:
        radial-gradient(900px 340px at 100% -10%, rgba(225, 43, 0, 0.08), transparent 55%),
        linear-gradient(180deg, #fff7ed 0%, #f8fafc 42%, #f1f5f9 100%);
    padding: 28px 15px 48px;
    min-height: calc(100vh - 180px);
}
.safa-auth__stage {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: stretch;
}
.safa-auth__stage--narrow {
    max-width: 860px;
}
.safa-auth__panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    color: #fff;
    background:
        radial-gradient(700px 280px at 0% 0%, rgba(255,255,255,.18), transparent 55%),
        linear-gradient(145deg, var(--safa-red, #e12b00) 0%, var(--safa-red-dark, #c42500) 52%, #8f1600 100%);
    box-shadow: 0 18px 40px rgba(225, 43, 0, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.safa-auth__brand {
    margin: 0 0 0.75rem;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.safa-auth__panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.96;
}
.safa-auth__panel-text {
    margin: 0.7rem 0 1.35rem;
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.9;
    max-width: 28rem;
}
.safa-auth__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.safa-auth__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}
.safa-auth__benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
}
.safa-auth__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.6rem 1.45rem 1.5rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}
.safa-auth__card-head { margin-bottom: 1.15rem; }
.safa-auth__card-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.safa-auth__card-lead {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
}
.safa-auth__required-note {
    margin: 0.55rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}
.safa-auth__req {
    color: #dc2626;
    font-weight: 800;
    margin-inline-start: 2px;
}
.safa-auth__form { display: grid; gap: 0.95rem; }
.safa-auth__fieldset {
    margin: 0;
    padding: 1rem 0 0;
    border: 0;
    border-top: 1px solid #f1f5f9;
}
.safa-auth__fieldset:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.safa-auth__legend {
    padding: 0;
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}
.safa-auth__hint {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: #94a3b8;
}
.safa-auth__field { display: grid; gap: 0.35rem; }
.safa-auth__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}
.safa-auth__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.safa-auth__forgot {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--safa-red, #e12b00);
    text-decoration: none;
    white-space: nowrap;
}
.safa-auth__forgot:hover {
    text-decoration: underline;
}
.safa-auth__alert {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
}
.safa-auth__alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}
.safa-auth__input {
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.9rem;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.safa-auth__input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}
.safa-auth__input--otp {
    letter-spacing: 0.28em;
    font-weight: 800;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.safa-auth__field-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}
.safa-auth__error {
    margin: 0;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
}
.safa-auth__error--block { margin-top: -0.25rem; }
.safa-auth__phone-row,
.safa-auth__pass-row,
.safa-auth__otp-row {
    display: grid;
    gap: 0.7rem;
}
.safa-auth__phone-row {
    grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.35fr);
}
.safa-auth__pass-row { grid-template-columns: 1fr 1fr; }
.safa-auth__otp-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.safa-auth__otp-btn {
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 12px;
    border: 1px solid #fdba74;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.safa-auth__otp-btn:hover:not(:disabled) {
    background: #ffedd5;
    border-color: #fb923c;
}
.safa-auth__otp-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.safa-auth__otp-msg {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
}
.safa-auth__otp-msg.is-ok { color: #059669; }
.safa-auth__otp-msg.is-err { color: #dc2626; }
.safa-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 14px;
    background: #f1f5f9;
}
.safa-auth__tab {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.safa-auth__tab.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.safa-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.safa-auth__terms {
    padding-top: 0.15rem;
}
.safa-auth__terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.55;
    cursor: pointer;
    user-select: none;
}
.safa-auth__terms-label .safa-auth__checkbox {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.safa-auth__terms-link {
    color: var(--safa-red, #e12b00);
    font-weight: 800;
    text-decoration: none;
}
.safa-auth__terms-link:hover {
    text-decoration: underline;
}
.safa-auth__checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    accent-color: var(--safa-red, #e12b00);
}
.safa-auth__submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--safa-red, #e12b00), var(--safa-red-dark, #c42500));
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(225, 43, 0, 0.22);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.safa-auth__submit:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(225, 43, 0, 0.28);
    transform: translateY(-1px);
}
.safa-auth__switch {
    margin: 1.15rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
}
.safa-auth__switch a {
    color: var(--safa-red, #e12b00);
    font-weight: 800;
    text-decoration: none;
}
.safa-auth__switch a:hover { text-decoration: underline; }
@media (max-width: 860px) {
    .safa-auth__stage { grid-template-columns: 1fr; }
    .safa-auth__panel { padding: 1.5rem 1.25rem; }
}
@media (max-width: 560px) {
    .safa-auth { padding: 18px 12px 36px; }
    .safa-auth__card {
        padding: 1.25rem 1rem 1.2rem;
        border-radius: 20px;
    }
    .safa-auth__phone-row,
    .safa-auth__pass-row,
    .safa-auth__otp-row {
        grid-template-columns: 1fr;
    }
    .safa-auth__otp-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .safa-auth__submit,
    .safa-auth__submit:hover {
        transform: none;
        transition: none;
    }
}

.safa-contact { background: #f4f5f7; }
.safa-contact-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 320px at 0% 0%, rgba(255,255,255,.16), transparent 55%),
        linear-gradient(135deg, var(--safa-red) 0%, var(--safa-red-dark) 55%, #8f1600 100%);
    padding: 64px 15px 72px;
}
.safa-contact-hero__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.safa-contact-hero__brand {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.safa-contact-hero__title {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 600;
    opacity: .95;
}
.safa-contact-hero__text {
    margin: 0 auto;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.7;
    opacity: .9;
}
.safa-contact-shell {
    max-width: 1120px;
    margin: -36px auto 0;
    padding: 0 15px 56px;
    position: relative;
    z-index: 1;
}
.safa-contact-success {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 45%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    color: #064e3b;
    box-shadow: 0 16px 40px rgba(5, 150, 105, 0.18);
    animation: safa-contact-success-in .55s cubic-bezier(.22, 1, .36, 1);
}
.safa-contact-success__glow {
    position: absolute;
    inset: auto -20% -40% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.55), transparent 70%);
    pointer-events: none;
}
.safa-contact-success__icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #059669;
    color: #fff;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35);
    animation: safa-contact-success-pop .55s .12s both cubic-bezier(.22, 1, .36, 1);
}
.safa-contact-success__body { position: relative; z-index: 1; min-width: 0; }
.safa-contact-success__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #047857;
}
.safa-contact-success__title {
    margin: 0 0 6px;
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 800;
    line-height: 1.35;
    color: #064e3b;
}
.safa-contact-success__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #065f46;
    opacity: .92;
}
@keyframes safa-contact-success-in {
    from { opacity: 0; transform: translateY(-14px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes safa-contact-success-pop {
    from { opacity: 0; transform: scale(.7); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
    .safa-contact-success { padding: 18px; gap: 14px; }
    .safa-contact-success__icon { width: 48px; height: 48px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .safa-contact-success,
    .safa-contact-success__icon { animation: none; }
}
.safa-contact-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: grid;
    gap: 4px;
}
.safa-contact-alert--err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.safa-contact-alert--err strong { font-weight: 800; }
.safa-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .safa-contact-grid { grid-template-columns: 1fr; }
}
.safa-contact-aside,
.safa-contact-form-card {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.safa-contact-aside__title,
.safa-contact-form-card__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}
.safa-contact-aside__lead,
.safa-contact-form-card__lead {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}
.safa-contact-channels {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    flex: 1;
}
.safa-contact-channel {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 14px;
    border-radius: 16px;
    background: #f8f9fb;
    border: 1px solid #eef0f4;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
}
.safa-contact-channel--static { cursor: default; }
.safa-contact-channel:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 43, 0, 0.25);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}
.safa-contact-channel__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(225, 43, 0, 0.08);
    color: var(--safa-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.safa-contact-channel strong {
    display: block;
    font-size: 13px;
    color: #111827;
    margin-bottom: 2px;
}
.safa-contact-channel span span {
    display: block;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}
.safa-contact-wa {
    margin-top: 18px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, filter .2s ease;
    cursor: pointer;
}
.safa-contact-wa:hover { transform: translateY(-1px); filter: brightness(1.05); }
.safa-contact-aside > .safa-contact-wa:last-child { margin-top: auto; }
.safa-contact-social { margin-top: auto; padding-top: 22px; }
.safa-contact-social p {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}
.safa-contact-social__list { display: flex; flex-wrap: wrap; gap: 8px; }
.safa-contact-social__link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
    cursor: pointer;
}
.safa-contact-social__link:hover { background: var(--safa-red); transform: translateY(-1px); }
.safa-contact-form {
    display: grid;
    gap: 16px;
    flex: 1;
    align-content: start;
}
.safa-contact-form .safa-contact-submit {
    margin-top: auto;
    align-self: start;
}
.safa-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) {
    .safa-contact-form__row { grid-template-columns: 1fr; }
    .safa-contact-hero { padding: 48px 15px 56px; }
}
.safa-contact-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.safa-contact-field label span { color: var(--safa-red); }
.safa-contact-field input,
.safa-contact-field textarea {
    width: 100%;
    border: 1px solid #d7dbe3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.safa-contact-field input:focus,
.safa-contact-field textarea:focus {
    border-color: var(--safa-red);
    box-shadow: 0 0 0 4px rgba(225, 43, 0, 0.12);
}
.safa-contact-field__error {
    margin: 6px 0 0;
    color: #dc2626;
    font-size: 12px;
}
.safa-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 14px;
    background: var(--safa-red);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.safa-contact-submit:hover { background: var(--safa-red-dark); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
    .safa-contact-channel,
    .safa-contact-wa,
    .safa-contact-social__link,
    .safa-contact-submit { transition: none; }
    .safa-contact-channel:hover,
    .safa-contact-wa:hover,
    .safa-contact-social__link:hover,
    .safa-contact-submit:hover { transform: none; }
}

.safa-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}
.safa-pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 40px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 6px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.safa-pay-badge:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 10px 20px rgba(0, 0, 0, 0.34);
}
.safa-pay-badge img {
    display: block;
    width: auto;
    height: 22px;
    max-width: 72px;
    object-fit: contain;
}
.safa-pay-badge--mada img { height: 20px; max-width: 78px; }
.safa-pay-badge--visa img { height: 16px; max-width: 52px; }
.safa-pay-badge--mc img { height: 26px; max-width: 40px; }

/* ── Floating buttons ── */
.safa-floating-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
[dir="ltr"] .safa-floating-sidebar { right: auto; left: 0; }
.safa-floating-btn {
    width: 40px;
    height: 40px;
    background: var(--safa-red);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    text-decoration: none;
    border-radius: 4px 0 0 4px;
}
[dir="ltr"] .safa-floating-btn { border-radius: 0 4px 4px 0; }
.safa-floating-btn:hover { background: var(--safa-red-dark); }
.safa-whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: transform .2s;
    text-decoration: none;
}
[dir="ltr"] .safa-whatsapp-float { right: auto; left: 20px; }
.safa-whatsapp-float:hover { transform: scale(1.08); }

/* ── Mobile menu ── */
.safa-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,.5);
}
.safa-mobile-menu.open { display: block; }
.safa-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(100%);
    transition: transform .3s;
}
[dir="ltr"] .safa-mobile-panel { right: auto; left: 0; transform: translateX(-100%); }
.safa-mobile-menu.open .safa-mobile-panel { transform: translateX(0); }
.safa-mobile-panel a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.safa-mobile-panel a:hover { color: var(--safa-red); }

/* Hide desktop elements on mobile */
@media (max-width: 991px) {
    .safa-nav-links { display: none; }
    .safa-header-actions .safa-auth-links { display: none; }
    .safa-header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .safa-logo {
        flex: 1;
        min-width: 0;
    }
    .safa-logo img {
        height: 42px;
        max-width: 140px;
    }
    .safa-search {
        display: block;
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }
    .safa-search input {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 15px;
    }
    .safa-search-dropdown {
        z-index: 80;
        max-height: min(60vh, 420px);
        overflow-y: auto;
    }
    .safa-header-actions {
        order: 2;
        gap: 10px;
    }
    .safa-categories-dropdown {
        position: fixed;
        inset: 0;
        top: 0;
        max-height: none;
        z-index: 70;
        border: none;
        box-shadow: none;
    }
    .safa-categories-dropdown.open {
        display: flex !important;
        flex-direction: column;
    }
    .safa-categories-dropdown__mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        background: var(--safa-red);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        flex-shrink: 0;
    }
    .safa-categories-dropdown__close {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .safa-categories-dropdown__body {
        flex: 1;
        overflow-y: auto;
        max-width: none;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    .safa-categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 12px;
        flex: 1;
    }
}
body.safa-categories-open { overflow: hidden; }
@media (min-width: 992px) {
    .safa-mobile-toggle { display: none; }
}

/* Search dropdown */
.safa-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 50;
    display: none;
    max-height: 360px;
    overflow-y: auto;
}
.safa-search-dropdown.open { display: block; }
.safa-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.safa-search-result:hover { background: #fafafa; }
.safa-search-result img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }

/* Coupons section */
.safa-coupons-banner {
    background: linear-gradient(135deg, #fff5f0, #fff);
    border: 1px dashed var(--safa-red);
    border-radius: 8px;
    padding: 25px 30px;
    text-align: center;
    margin: 0 auto;
    max-width: 1320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.safa-coupons-banner.has-image {
    text-align: start;
    justify-content: space-between;
    padding: 0;
    overflow: hidden;
}
.safa-coupons-banner-media {
    flex: 0 0 auto;
    max-width: 45%;
    min-width: 200px;
}
.safa-coupons-banner.has-image .safa-coupons-banner-media {
    flex: 1 1 320px;
    max-width: none;
}
.safa-coupons-banner-media img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    max-height: 220px;
    object-fit: cover;
    display: block;
}
.safa-coupons-banner-content {
    flex: 1 1 240px;
    padding: 20px 24px;
}
.safa-coupons-banner.has-image .safa-coupons-banner-content {
    padding: 28px 30px;
}
.safa-coupons-banner h3 { font-size: 18px; font-weight: 800; color: #333; margin: 0 0 5px; }
.safa-coupons-banner p { color: #666; font-size: 14px; margin: 0 0 12px; }
.safa-coupons-banner a {
    display: inline-block;
    background: var(--safa-red);
    color: #fff;
    padding: 8px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.safa-coupons-banner a:hover { background: var(--safa-red-dark); }
@media (max-width: 640px) {
    .safa-coupons-banner.has-image { flex-direction: column; }
    .safa-coupons-banner-media { width: 100%; max-width: none; }
    .safa-coupons-banner-media img { max-height: 180px; }
    .safa-coupons-banner-content { text-align: center; width: 100%; }
}

/* ── Page utilities (inner pages) ── */
.safa-page { max-width: 1320px; margin: 0 auto; padding: 25px 15px; }
.safa-page-title,
.safa-page h1 { font-size: 22px; font-weight: 800; margin: 0 0 20px; color: #222; }
.safa-page-layout { display: flex; gap: 20px; flex-wrap: wrap; }
.safa-page-content { flex: 1; min-width: 0; }

/* Category page header + subcategories */
.safa-cat-page-header {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    padding: 12px 14px 14px;
}
.safa-cat-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 10px;
}
.safa-cat-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color .2s;
}
.safa-cat-breadcrumb a:hover { color: var(--safa-red); }
.safa-cat-breadcrumb__sep {
    color: #d1d5db;
    user-select: none;
    font-size: 10px;
}
.safa-cat-breadcrumb__current {
    color: #6b7280;
    font-weight: 600;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.safa-cat-page-header__top {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.safa-cat-page-header__visual {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.safa-cat-page-header__visual-bg {
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.45;
    transform: scale(1.08);
}
.safa-cat-page-header__thumb {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    background: #fff;
}
.safa-cat-page-header__avatar {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--safa-red) 0%, #ff6b4a 100%);
    box-shadow: 0 6px 18px rgba(225, 43, 0, 0.22);
}
.safa-cat-page-header__main { min-width: 0; flex: 1; }
.safa-cat-page-header__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.safa-cat-page-header__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.safa-cat-page-header__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}
.safa-cat-page-header__desc {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.safa-subcat-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.safa-subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 5px 12px 5px 5px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 999px;
    text-decoration: none;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.safa-subcat-pill:hover {
    background: #fff;
    border-color: #fecaca;
    color: var(--safa-red);
}
.safa-subcat-pill.is-active {
    background: var(--safa-red);
    border-color: var(--safa-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(225, 43, 0, 0.22);
}
.safa-subcat-pill__media {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.safa-subcat-pill__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.safa-subcat-pill__initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--safa-red);
    background: linear-gradient(180deg, #fff7f5 0%, #ffe8e3 100%);
}
.safa-subcat-pill.is-active .safa-subcat-pill__media {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}
.safa-subcat-pill.is-active .safa-subcat-pill__initial {
    color: var(--safa-red);
    background: #fff;
}
.safa-subcat-pill__label {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.safa-subcat-pill__count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 10px;
    font-weight: 700;
    color: inherit;
}
.safa-subcat-pill.is-active .safa-subcat-pill__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
@media (max-width: 767px) {
    .safa-cat-page-header { padding: 10px 12px 12px; }
    .safa-cat-page-header__visual,
    .safa-cat-page-header__thumb,
    .safa-cat-page-header__avatar { width: 48px; height: 48px; }
    .safa-cat-page-header__title { font-size: 0.95rem; }
    .safa-subcat-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .safa-subcat-pills::-webkit-scrollbar { display: none; }
    .safa-subcat-pill { flex-shrink: 0; max-width: none; }
}

/* ── All categories page ── */
.safa-cat-directory {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px 40px;
}
.safa-cat-directory__hero {
    margin: 0 -15px 28px;
    padding: 28px 15px 30px;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(225, 43, 0, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-bottom: 1px solid #eef2f7;
}
.safa-cat-directory__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}
.safa-cat-directory__breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}
.safa-cat-directory__breadcrumb a:hover { color: var(--safa-red); }
.safa-cat-directory__hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.safa-cat-directory__hero-text h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}
.safa-cat-directory__hero-text p {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6b7280;
    max-width: 520px;
    line-height: 1.55;
}
.safa-cat-directory__meta { margin-top: 14px; }
.safa-cat-directory__stat {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e8edf3;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.safa-cat-directory__hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--safa-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(225, 43, 0, 0.28);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.safa-cat-directory__hero-btn:hover {
    background: var(--safa-red-hover, #c42400);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(225, 43, 0, 0.32);
}
[dir="rtl"] .safa-cat-directory__hero-btn svg { transform: scaleX(-1); }
.safa-cat-directory__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.safa-cat-directory__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.safa-cat-directory__card:hover {
    border-color: #fecaca;
    box-shadow: 0 16px 40px rgba(225, 43, 0, 0.1);
    transform: translateY(-3px);
}
.safa-cat-directory__main {
    display: block;
    text-decoration: none;
    color: inherit;
}
.safa-cat-directory__visual {
    position: relative;
    height: 168px;
    background: linear-gradient(135deg, #fff5f3 0%, #ffe8e3 50%, #ffd4cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.safa-cat-directory__visual.has-image {
    height: 180px;
    padding: 18px 22px;
    background:
        radial-gradient(ellipse 90% 80% at 50% 20%, rgba(255, 255, 255, 0.95) 0%, transparent 70%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #eef2f7;
}
.safa-cat-directory__visual.has-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .35s ease, filter .35s ease;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.1));
}
.safa-cat-directory__card:hover .safa-cat-directory__visual.has-image img {
    transform: scale(1.04);
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.14));
}
.safa-cat-directory__initial {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--safa-red) 0%, #ff6b4a 100%);
    box-shadow: 0 10px 28px rgba(225, 43, 0, 0.28);
}
.safa-cat-directory__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35) 100%);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.safa-cat-directory__visual.has-image .safa-cat-directory__overlay {
    opacity: 0;
}
.safa-cat-directory__info {
    padding: 16px 18px 18px;
}
.safa-cat-directory__info h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
}
.safa-cat-directory__info-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.safa-cat-directory__badge {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 999px;
}
.safa-cat-directory__shop {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--safa-red);
    transition: gap .2s;
}
.safa-cat-directory__main:hover .safa-cat-directory__shop { gap: 8px; }
[dir="rtl"] .safa-cat-directory__shop svg { transform: scaleX(-1); }
.safa-cat-directory__subs {
    padding: 0 14px 14px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.safa-cat-directory__subs-label {
    display: block;
    padding: 12px 4px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}
.safa-cat-directory__subs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.safa-cat-directory__sub {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    border: 1px solid #eef2f7;
    transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.safa-cat-directory__sub:hover {
    border-color: #fecaca;
    background: #fff7f5;
    color: var(--safa-red);
    transform: translateX(2px);
}
[dir="rtl"] .safa-cat-directory__sub:hover { transform: translateX(-2px); }
.safa-cat-directory__sub-media {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--safa-red);
}
.safa-cat-directory__sub-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.safa-cat-directory__sub-name {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.safa-cat-directory__sub-count {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.safa-cat-directory__sub:hover .safa-cat-directory__sub-count {
    background: rgba(225, 43, 0, 0.1);
    color: var(--safa-red);
}
.safa-cat-directory__empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 15px;
}
@media (max-width: 767px) {
    .safa-cat-directory__hero { padding: 20px 15px 24px; margin-bottom: 20px; }
    .safa-cat-directory__grid { grid-template-columns: 1fr; gap: 16px; }
    .safa-cat-directory__visual { height: 128px; }
    .safa-cat-directory__visual.has-image { height: 150px; padding: 14px 16px; }
    .safa-cat-directory__hero-btn { width: 100%; justify-content: center; }
}
.safa-sidebar { width: 220px; flex-shrink: 0; }
@media (max-width: 768px) {
    .safa-page {
        padding-inline: 12px;
    }
    .safa-page-layout {
        flex-direction: column;
        gap: 16px;
    }
    .safa-page-content {
        order: 1;
        width: 100%;
    }
    .safa-sidebar {
        order: 2;
        width: 100%;
        flex-shrink: 1;
    }
    .safa-sidebar form {
        border-radius: 12px;
        padding: 14px;
    }
    .safa-attr-filter-group__list {
        max-height: 200px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }
}
.safa-sidebar form { background: #fff; border: 1px solid var(--safa-border); border-radius: 4px; padding: 15px; }
.safa-sidebar input, .safa-sidebar select {
    width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 8px 10px; font-size: 14px; margin-bottom: 10px;
}
.safa-attr-filters {
    margin: 4px 0 12px;
    padding-top: 12px;
    border-top: 1px solid var(--safa-border);
}
.safa-attr-filters__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
}
.safa-attr-filter-group {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
}
.safa-attr-filter-group + .safa-attr-filter-group {
    margin-top: 8px;
}
.safa-attr-filter-group__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}
.safa-attr-filter-group__toggle::-webkit-details-marker {
    display: none;
}
.safa-attr-filter-group__toggle::marker {
    content: '';
}
.safa-attr-filter-group__toggle:hover {
    background: #f3f4f6;
}
.safa-attr-filter-group[open] .safa-attr-filter-group__toggle {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.safa-attr-filter-group__toggle-label {
    flex: 1;
    min-width: 0;
    text-align: start;
}
.safa-attr-filter-group__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--safa-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.safa-attr-filter-group__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: -3px;
}
.safa-attr-filter-group[open] .safa-attr-filter-group__chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}
.safa-attr-filter-group__body {
    padding: 10px 12px 12px;
    background: #fff;
}
.safa-attr-filter-group__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}
.safa-attr-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    line-height: 1.35;
}
.safa-attr-filter-option input {
    width: auto;
    margin: 0 !important;
    flex-shrink: 0;
}
.safa-attr-filters input[type="text"],
.safa-attr-filters input[type="search"] {
    margin-bottom: 10px;
}
.safa-attr-filter-option__swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}
.safa-attr-filter-option__label {
    min-width: 0;
}
.safa-attr-filters__clear {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--safa-red);
    text-decoration: none;
}
.safa-attr-filters__clear:hover {
    text-decoration: underline;
}
.safa-price-filter {
    padding-top: 0;
    border-top: 0;
    margin-top: 0;
}
.safa-price-filter__fields {
    display: grid;
    gap: 10px;
}
.safa-price-filter__field {
    display: block;
}
.safa-price-filter__label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.safa-price-filter__input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    min-height: 38px;
}
.safa-price-filter__currency {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
}
.safa-price-filter__input {
    width: 100%;
    border: 0 !important;
    background: transparent;
    padding: 8px 0 !important;
    margin: 0 !important;
    font-size: 13px;
    min-height: 0;
    box-shadow: none;
}
.safa-price-filter__input:focus {
    outline: none;
}
.safa-price-filter__hint {
    margin: 10px 0 0;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}
.safa-btn {
    display: inline-block; background: var(--safa-red); color: #fff; padding: 10px 24px;
    border-radius: 4px; border: none; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none;
}
.safa-btn:hover { background: var(--safa-red-dark); }
.safa-btn-block { display: block; width: 100%; text-align: center; }
.safa-btn-dark { background: #333; }
.safa-btn-dark:hover { background: var(--safa-red); }
.safa-card-box { background: #fff; border: 1px solid var(--safa-border); border-radius: 4px; overflow: hidden; }
.safa-empty { text-align: center; padding: 50px 20px; color: #999; }
.safa-pagination {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f7;
}
.safa-pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.safa-pager__meta {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.01em;
}
.safa-pager__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.safa-pager__item {
    display: inline-flex;
}
.safa-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
a.safa-pager__btn:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #e5e7eb;
}
a.safa-pager__btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--safa-red, #e12b00) 55%, transparent);
    outline-offset: 2px;
}
.safa-pager__item.is-active .safa-pager__btn {
    background: var(--safa-red, #e12b00);
    color: #fff;
    border-color: var(--safa-red, #e12b00);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--safa-red, #e12b00) 28%, transparent);
}
.safa-pager__item.is-disabled .safa-pager__btn {
    color: #c4c9d2;
    cursor: default;
    pointer-events: none;
}
.safa-pager__btn--nav {
    padding-inline: 0.9rem;
    color: #4b5563;
}
.safa-pager__btn--ellipsis {
    min-width: 1.75rem;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 0.08em;
    pointer-events: none;
}
.safa-pager__nav-label {
    font-size: 0.8125rem;
    font-weight: 600;
}
.safa-pager__btn svg {
    flex-shrink: 0;
}
/* Mirror chevrons visually for RTL while keeping DOM order semantic */
[dir="rtl"] .safa-pager__btn--nav svg {
    transform: scaleX(-1);
}
@media (max-width: 640px) {
    .safa-pager__list {
        border-radius: 1.25rem;
        max-width: 100%;
        gap: 0.2rem;
    }
    .safa-pager__btn {
        min-width: 2.15rem;
        height: 2.15rem;
        padding: 0 0.55rem;
        font-size: 0.8125rem;
    }
    .safa-pager__nav-label {
        display: none;
    }
    .safa-pager__btn--nav {
        padding-inline: 0.65rem;
    }
}

.safa-cart-row { display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--safa-border); align-items: center; flex-wrap: wrap; }
.safa-cart-row img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.safa-cart-footer { padding: 15px; background: #fafafa; border-top: 1px solid var(--safa-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }

/* Cart page */
.safa-cart-page { max-width: 960px; margin: 0 auto; }
.safa-cart-page__title { margin: 0 0 1.25rem; font-size: 1.75rem; font-weight: 800; color: #111827; }
.safa-cart-stock-alert {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.safa-cart-stock-alert__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.safa-cart-stock-alert__title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 800;
}
.safa-cart-stock-alert__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    line-height: 1.6;
}
.safa-cart-stock-alert__list li + li { margin-top: 0.35rem; }
.safa-cart-stock-alert__variant { color: #b45309; font-weight: 600; }
.safa-cart-row--out-of-stock {
    background: #fef2f2;
    border-color: #fecaca;
    opacity: 0.92;
}
.safa-cart-row--low-stock {
    background: #fffbeb;
}
.safa-cart-row__stock-warning {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b91c1c;
}
.safa-cart-row--low-stock .safa-cart-row__stock-warning { color: #b45309; }
.safa-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.safa-cart-page__empty-text { margin-bottom: 15px; }
.safa-cart-card { overflow: hidden; }
.safa-cart-list { list-style: none; margin: 0; padding: 0; }
.safa-cart-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
}
.safa-cart-row:last-child { border-bottom: none; }
.safa-cart-row__image {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.safa-cart-row__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.safa-cart-row__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
}
.safa-cart-row__body { min-width: 0; }
.safa-cart-row__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
}
.safa-cart-row__name:hover { color: var(--safa-red, #e12b00); }
.safa-cart-row__variant {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}
.safa-cart-row__price {
    margin: 0.45rem 0 0;
    color: var(--safa-red, #e12b00);
    font-weight: 800;
    font-size: 1rem;
}
.safa-cart-row__tax-note {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #94a3b8;
}
.safa-cart-row__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}
.safa-cart-row__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.safa-cart-row__subtotal {
    grid-column: 1 / -1;
    text-align: end;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    padding-top: 0.35rem;
    border-top: 1px dashed #e2e8f0;
}
.safa-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.safa-cart-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background .15s ease, color .15s ease, transform .12s ease, opacity .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.safa-cart-qty__btn:hover:not(:disabled) {
    background: var(--safa-red, #e12b00);
    color: #fff;
    transform: translateY(-1px);
}
.safa-cart-qty__btn:active:not(:disabled) {
    transform: scale(0.94);
    background: var(--safa-red, #e12b00);
    color: #fff;
}
.safa-cart-qty__btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
.safa-cart-qty__input {
    width: 3rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    -moz-appearance: textfield;
    touch-action: manipulation;
}
.safa-cart-qty__input:focus {
    background: #fff;
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px rgba(225, 43, 0, 0.2);
}
.safa-cart-qty__input::-webkit-outer-spin-button,
.safa-cart-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-row.is-qty-saving .safa-cart-qty {
    border-color: rgba(225, 43, 0, 0.35);
    box-shadow: 0 0 0 2px rgba(225, 43, 0, 0.08);
}
.cart-row.is-qty-saving .cart-row-subtotal,
.cart-row.is-qty-saving .safa-cart-row__subtotal {
    opacity: 0.72;
    transition: opacity .15s ease;
}
@media (max-width: 640px) {
    .safa-cart-qty__btn {
        width: 2.75rem;
        height: 2.75rem;
    }
    .safa-cart-qty__input {
        width: 3.25rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }
}
.safa-cart-edit-btn,
.safa-cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.safa-cart-edit-btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}
.safa-cart-remove-btn {
    padding: 0.35rem;
    color: var(--safa-red, #e12b00);
}
.safa-cart-remove-btn:hover {
    border-color: #fecaca;
    background: #fff1f2;
}
.safa-cart-footer__total {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: #111827;
}
.safa-cart-footer__note {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Cart edit modal */
body.safa-cart-edit-open { overflow: hidden; }
.safa-cart-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.safa-cart-edit-modal.is-visible { opacity: 1; visibility: visible; }
.safa-cart-edit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.safa-cart-edit-modal__dialog {
    position: relative;
    width: min(100%, 26rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    padding: 1.25rem;
}
.safa-cart-edit-modal__close {
    position: absolute;
    top: 0.8rem;
    inset-inline-end: 0.8rem;
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
}
.safa-cart-edit-modal__title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}
.safa-cart-edit-modal__product {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}
.safa-cart-edit-field { margin-bottom: 0.85rem; }
.safa-cart-edit-field__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}
.safa-cart-edit-field__select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    background: #fff;
}
.safa-cart-edit-modal__price {
    margin: 0.25rem 0 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--safa-red, #e12b00);
}
.safa-cart-edit-modal__qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.safa-cart-edit-modal__qty-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}
.safa-cart-edit-modal__save {
    width: 100%;
    min-height: 2.85rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--safa-red, #e12b00), var(--safa-red-dark, #c42400));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}
@media (max-width: 768px) {
    .safa-cart-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }
    .safa-cart-row__image { width: 72px; height: 72px; }
    .safa-cart-row__controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ── Marketing popup & bottom bar ── */
.safa-marketing-popup {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
}
.safa-marketing-popup.is-visible { opacity: 1; pointer-events: auto; }
.safa-marketing-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, .55);
    backdrop-filter: blur(4px);
}
.safa-marketing-popup__dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: min(90vh, 640px);
    background: var(--mk-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    overflow: hidden;
    transform: translateY(24px) scale(.97);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.safa-marketing-popup.is-visible .safa-marketing-popup__dialog {
    transform: translateY(0) scale(1);
}
.safa-marketing-popup__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.safa-marketing-popup__close:hover { background: #fff; color: #111; }
.safa-marketing-popup__inner { display: flex; flex-direction: column; }
.safa-marketing-popup__inner.has-image .safa-marketing-popup__media { max-height: 220px; overflow: hidden; }
.safa-marketing-popup__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.safa-marketing-popup__body { padding: 28px 28px 24px; text-align: center; }
.safa-marketing-popup__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mk-accent, var(--safa-red));
}
.safa-marketing-popup__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
}
.safa-marketing-popup__text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
}
.safa-marketing-popup__coupon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 2px dashed var(--mk-accent, var(--safa-red));
    border-radius: 10px;
    background: rgba(0, 0, 0, .03);
}
.safa-marketing-popup__coupon-code {
    font-family: ui-monospace, monospace;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #222;
}
.safa-marketing-popup__coupon-copy {
    border: none;
    background: var(--mk-accent, var(--safa-red));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.safa-marketing-popup__actions { display: flex; justify-content: center; gap: 10px; }
.safa-marketing-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    background: var(--mk-accent, var(--safa-red));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter .2s;
}
.safa-marketing-popup__cta:hover { filter: brightness(1.08); color: #fff; }

.safa-marketing-bar {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 99980;
    background: var(--mk-bg, #1a1a1a);
    color: var(--mk-accent, #fff);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.safa-marketing-bar.is-visible { transform: translateY(0); }
body.safa-marketing-bar-open { padding-bottom: 56px; }
.safa-marketing-bar__content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.safa-marketing-bar__text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.4;
}
.safa-marketing-bar__text strong { font-weight: 800; }
.safa-marketing-bar__code {
    font-family: ui-monospace, monospace;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    letter-spacing: .06em;
}
.safa-marketing-bar__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.safa-marketing-bar__btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 6px;
    background: var(--mk-accent, #fff);
    color: var(--mk-bg, #1a1a1a);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.safa-marketing-bar__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 640px) {
    .safa-marketing-popup__body { padding: 22px 18px 20px; }
    .safa-marketing-popup__title { font-size: 20px; }
    .safa-marketing-bar__content { flex-direction: column; text-align: center; }
}

/* ── Product page gallery + magnifier ── */
.safa-product-gallery {
    width: 100%;
}
.safa-product-gallery__inner {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.safa-product-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 72px;
    flex-shrink: 0;
    max-height: min(58vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
    scrollbar-width: thin;
}
.safa-product-gallery__thumb {
    width: 68px;
    height: 68px;
    border: 2px solid var(--safa-border);
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    flex-shrink: 0;
}
.safa-product-gallery__thumb:hover {
    border-color: #ccc;
    transform: translateY(-1px);
}
.safa-product-gallery__thumb.is-active {
    border-color: var(--safa-red);
    box-shadow: 0 0 0 1px var(--safa-red);
}
.safa-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.safa-product-gallery__stage {
    position: relative;
    flex: 1;
    min-width: 0;
}
.safa-product-gallery__zoom {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: min(58vh, 520px);
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    border: 1px solid var(--safa-border);
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
}
.safa-product-gallery--zoomable .safa-product-gallery__zoom:hover {
    cursor: crosshair;
}
.safa-product-gallery:not(.safa-product-gallery--zoomable) .safa-product-gallery__zoom {
    cursor: default;
}
.safa-product-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity .22s ease, filter .22s ease;
    position: relative;
    z-index: 1;
}
.safa-product-gallery.is-zooming .safa-product-gallery__main {
    opacity: 0.25;
    filter: blur(1px);
}
.safa-product-gallery__zoom-pane {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: #fff;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
    z-index: 3;
}
.safa-product-gallery.is-zooming .safa-product-gallery__zoom-pane {
    opacity: 1;
}
.safa-product-gallery__lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    border: 2px solid var(--safa-red);
    border-radius: 6px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .9),
        0 8px 24px rgba(0, 0, 0, .12);
    background: rgba(225, 43, 0, .06);
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 4;
    will-change: transform;
}
.safa-product-gallery.is-zooming .safa-product-gallery__lens {
    opacity: 1;
}
.safa-product-gallery__badges {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
    pointer-events: none;
}
.safa-product-gallery__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.safa-product-gallery__badge--deal { background: var(--safa-red); }
.safa-product-gallery__badge--featured { background: #f59e0b; color: #1f2937; }
.safa-product-gallery__badge--discount { background: #10b981; }
.safa-product-gallery__hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}
.safa-product-gallery__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #d1d5db;
    user-select: none;
}
@media (max-width: 1023px) {
    .safa-product-gallery__zoom-pane { display: none; }
    .safa-product-gallery__lens { display: none; }
    .safa-product-gallery__zoom { cursor: default; }
    .safa-product-gallery__hint { display: none; }
}
@media (max-width: 767px) {
    .safa-product-gallery__inner {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .safa-product-gallery__thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }
    .safa-product-gallery__thumb {
        width: 64px;
        height: 64px;
    }
    .safa-product-gallery__zoom {
        max-height: min(50vh, 380px);
        border-radius: 12px;
    }
    .safa-product-gallery__main { padding: 12px; }
}

/* Product description rich text lists */
/* Product description + files tabs (aiz style) */
.safa-product-info-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}
.aiz-nav-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.aiz-nav-tabs .safa-product-tab-link {
    display: inline-block;
    margin: 0;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.aiz-nav-tabs .safa-product-tab-link:hover {
    color: var(--safa-red, #e12b00);
}
.aiz-nav-tabs .safa-product-tab-link.active,
.aiz-nav-tabs .safa-product-tab-link.show.active {
    color: var(--safa-red, #e12b00);
    border-bottom-color: var(--safa-red, #e12b00);
}
.safa-product-info-body {
    position: relative;
    min-height: 80px;
}
.safa-product-info-panel {
    display: none;
}
.safa-product-info-panel.is-active {
    display: block;
    animation: safaInfoFadeIn .22s ease;
}
@keyframes safaInfoFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product page: unified action buttons */
.safa-product-actions {
    --safa-action-height: 3rem;
    --safa-action-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
    padding: 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8edf3;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.safa-product-actions__primary,
.safa-product-actions__secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
}
.safa-product-actions__primary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e8edf3;
}
.safa-product-actions__buy-row,
.safa-product-actions__secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
    width: 100%;
}
.safa-product-actions__notify-row {
    width: 100%;
}
.safa-product-actions__wishlist-form {
    display: block;
    min-width: 0;
}
.safa-product-actions__secondary .safa-product-action-btn,
.safa-product-actions__wishlist-form .safa-product-action-btn,
.safa-product-actions__buy-row .safa-product-action-btn--cart {
    width: 100%;
}
.safa-product-qty {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    height: var(--safa-action-height);
    min-height: var(--safa-action-height);
    padding: 0 1rem;
    border-radius: var(--safa-action-radius);
    border: 1.5px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    box-sizing: border-box;
    text-align: center;
}
.safa-product-qty__label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #334155;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}
.safa-product-qty__stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
}
.safa-product-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.safa-product-qty__btn:hover:not(:disabled) {
    background: var(--safa-red, #e12b00);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(225, 43, 0, 0.22);
}
.safa-product-qty__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
.safa-product-qty__input {
    width: 1.85rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.75rem;
    color: #0f172a;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}
.safa-product-qty__input::-webkit-outer-spin-button,
.safa-product-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.safa-product-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: var(--safa-action-height);
    height: var(--safa-action-height);
    padding: 0 1rem;
    border-radius: var(--safa-action-radius);
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.safa-product-action-btn:hover {
    transform: translateY(-1px);
}
.safa-product-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.safa-product-action-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    flex-shrink: 0;
}
.safa-product-action-btn__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
    text-align: start;
    white-space: normal;
}
.safa-product-action-btn__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.safa-product-action-btn__title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}
.safa-product-action-btn__subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.88;
}
.safa-product-action-btn--cart {
    width: 100%;
    border-color: transparent;
    background: linear-gradient(135deg, var(--safa-red, #e12b00) 0%, #c42400 52%, #a61d00 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(225, 43, 0, 0.14);
}
.safa-product-action-btn--cart .safa-product-action-btn__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.safa-product-action-btn--cart:hover:not(:disabled) {
    color: #fff;
    box-shadow: 0 4px 14px rgba(225, 43, 0, 0.22);
}
.safa-product-action-btn--notify {
    width: 100%;
    height: auto;
    min-height: var(--safa-action-height);
    padding: 0.65rem 1rem;
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 48%, #fff7ed 100%);
    color: #9f1239;
    box-shadow: 0 8px 22px rgba(190, 18, 60, 0.08);
}
.safa-product-action-btn--notify .safa-product-action-btn__icon {
    background: linear-gradient(135deg, #fee2e2 0%, #ffedd5 100%);
    color: #be123c;
}
.safa-product-action-btn--notify .safa-product-action-btn__subtitle {
    color: #b45309;
}
.safa-product-action-btn--notify:hover {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #ffe4e6 0%, #fff 55%, #ffedd5 100%);
    box-shadow: 0 12px 28px rgba(190, 18, 60, 0.12);
}
.safa-stock-notify-panel {
    margin-top: -0.2rem;
    margin-bottom: 0.2rem;
    padding: 0.9rem;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    background: #fffafa;
}
.safa-stock-notify-panel__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 0.25rem;
}
.safa-stock-notify-panel__hint {
    font-size: 0.82rem;
    color: #7f1d1d;
    margin: 0 0 0.55rem;
}
.safa-stock-notify-panel__form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.safa-stock-notify-panel__input {
    flex: 1 1 14rem;
    min-height: var(--safa-action-height);
    border: 1.5px solid #fca5a5;
    border-radius: 12px;
    background: #fff;
    padding: 0 0.85rem;
    font-size: 0.9rem;
    color: #1f2937;
}
.safa-stock-notify-panel__input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.safa-stock-notify-panel__submit {
    flex: 0 0 auto;
}
.safa-stock-notify-panel__message {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
}
.safa-stock-notify-panel__message.is-success {
    color: #166534;
}
.safa-stock-notify-panel__message.is-error {
    color: #b91c1c;
}

/* Secondary actions: download, share, seller, wishlist — unified shape, colored icons */
.safa-product-actions__secondary .safa-product-action-btn,
.safa-product-actions__wishlist-form .safa-product-action-btn {
    justify-content: center;
    text-align: center;
}
.safa-product-actions__secondary .safa-product-action-btn .safa-product-action-btn__icon,
.safa-product-actions__wishlist-form .safa-product-action-btn .safa-product-action-btn__icon {
    transition: background .2s ease, color .2s ease;
}
.safa-product-actions__secondary .safa-product-action-btn:hover,
.safa-product-actions__wishlist-form .safa-product-action-btn:hover {
    transform: translateY(-1px);
}
.safa-product-action-btn--files .safa-product-action-btn__icon {
    background: #eff6ff;
    color: #2563eb;
}
.safa-product-action-btn--files:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}
.safa-product-action-btn--files:hover .safa-product-action-btn__icon {
    background: #dbeafe;
    color: #1d4ed8;
}
.safa-product-action-btn--share .safa-product-action-btn__icon {
    background: #f0fdf4;
    color: #16a34a;
}
.safa-product-action-btn--share:hover {
    border-color: #bbf7d0;
    background: #f7fef9;
    color: #15803d;
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.1);
}
.safa-product-action-btn--share:hover .safa-product-action-btn__icon {
    background: #dcfce7;
    color: #15803d;
}
.safa-product-action-btn--seller .safa-product-action-btn__icon {
    background: #ecfdf5;
    color: #25d366;
}
.safa-product-action-btn--seller:hover {
    border-color: #86efac;
    background: #f7fef9;
    color: #15803d;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.14);
}
.safa-product-action-btn--seller:hover .safa-product-action-btn__icon {
    background: #d1fae5;
    color: #16a34a;
}
.safa-product-action-btn--wishlist .safa-product-action-btn__icon {
    background: #fff1f2;
    color: #e11d48;
}
.safa-product-action-btn--wishlist:hover {
    border-color: #fecdd3;
    background: #fff7f8;
    color: #be123c;
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.1);
}
.safa-product-action-btn--wishlist:hover .safa-product-action-btn__icon {
    background: #ffe4e6;
    color: #be123c;
}
.safa-product-action-btn--wishlist.is-active {
    border-color: #fecdd3;
    background: #fffafb;
    color: #be123c;
}
.safa-product-action-btn--wishlist.is-active .safa-product-action-btn__icon {
    background: #ffe4e6;
    color: #e11d48;
}
.safa-product-action-btn--wishlist.is-active:hover {
    border-color: #fda4af;
    background: #fff1f2;
    color: #be123c;
}
.safa-product-action-btn--wishlist.is-active:hover .safa-product-action-btn__icon {
    background: #fecdd3;
    color: #be123c;
}

@media (max-width: 640px) {
    .safa-product-actions {
        padding: 0.9rem;
    }
    .safa-product-actions__buy-row,
    .safa-product-actions__secondary {
        grid-template-columns: 1fr 1fr;
    }
    .safa-product-qty {
        width: 100%;
    }
    .safa-product-action-btn--cart,
    .safa-product-action-btn--notify {
        width: 100%;
    }
    .safa-product-action-btn {
        width: 100%;
        padding: 0 0.85rem;
        font-size: 0.82rem;
    }
    .safa-product-action-btn__title {
        font-size: 0.88rem;
    }
}

/* Product share modal */
body.safa-share-modal-open {
    overflow: hidden;
}
.safa-share-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.safa-share-modal.is-visible {
    opacity: 1;
    visibility: visible;
}
.safa-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.safa-share-modal__dialog {
    position: relative;
    width: min(100%, 28rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    padding: 1.35rem 1.35rem 1.5rem;
    transform: translateY(12px) scale(0.98);
    transition: transform .22s ease;
}
.safa-share-modal.is-visible .safa-share-modal__dialog {
    transform: translateY(0) scale(1);
}
.safa-share-modal__close {
    position: absolute;
    top: .85rem;
    inset-inline-end: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.safa-share-modal__close:hover {
    background: #e5e7eb;
    color: #111827;
}
.safa-share-modal__header {
    padding-inline-end: 2.5rem;
    margin-bottom: 1rem;
}
.safa-share-modal__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}
.safa-share-modal__subtitle {
    margin: .35rem 0 0;
    font-size: .85rem;
    color: #6b7280;
}
.safa-share-modal__preview {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .85rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}
.safa-share-modal__preview-image {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.safa-share-modal__preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.safa-share-modal__preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}
.safa-share-modal__preview-name {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.safa-share-modal__preview-price {
    margin: .35rem 0 0;
    font-size: .9rem;
    font-weight: 700;
    color: var(--safa-red, #e12b00);
}
.safa-share-modal__link-row {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}
.safa-share-modal__link-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: .65rem .75rem;
    font-size: .8rem;
    color: #374151;
    background: #f9fafb;
}
.safa-share-modal__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: none;
    border-radius: 10px;
    padding: .65rem .85rem;
    background: #111827;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.safa-share-modal__copy-btn:hover {
    background: #1f2937;
}
.safa-share-modal__copy-btn.is-copied {
    background: #16a34a;
}
.safa-share-modal__channels-label {
    margin: 0 0 .65rem;
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.safa-share-modal__channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}
.safa-share-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 4.5rem;
    padding: .55rem .35rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.safa-share-channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.safa-share-channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}
.safa-share-channel__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}
.safa-share-channel--whatsapp:hover { border-color: #86efac; color: #15803d; }
.safa-share-channel--telegram:hover { border-color: #93c5fd; color: #1d4ed8; }
.safa-share-channel--twitter:hover { border-color: #d1d5db; color: #111827; }
.safa-share-channel--facebook:hover { border-color: #93c5fd; color: #1d4ed8; }
.safa-share-channel--email:hover { border-color: #fdba74; color: #c2410c; }
.safa-share-modal__native-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: 1rem;
    min-height: 2.85rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--safa-red, #e12b00), var(--safa-red-dark, #c42400));
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.safa-share-modal__native-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(225, 43, 0, 0.25);
}
@media (max-width: 480px) {
    .safa-share-modal__channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .safa-share-modal__link-row {
        flex-direction: column;
    }
    .safa-share-modal__copy-btn {
        justify-content: center;
    }
}

.safa-product-description-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}
.safa-product-description-header {
    border-bottom: 1px solid #edf1f5;
    background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}
.safa-product-description-content {
    font-size: 15px;
    line-height: 2.05;
}
.safa-product-description-content p {
    margin: 0 0 14px;
}
.safa-product-description-content ul,
.safa-product-description-content ol {
    list-style-position: outside;
    margin: 0.9rem 0;
    padding-right: 1.65rem;
    padding-left: 0;
}
.safa-product-description-content ul { list-style-type: disc; }
.safa-product-description-content ol { list-style-type: decimal; }
.safa-product-description-content li {
    display: list-item;
    margin: 0.3rem 0;
    line-height: 1.95;
}
.safa-product-description-content blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-inline-start: 3px solid var(--safa-red);
    background: #f8fafc;
    color: #334155;
    border-radius: 10px;
}
.safa-product-description-content h1,
.safa-product-description-content h2,
.safa-product-description-content h3,
.safa-product-description-content h4 {
    margin: 1rem 0 .55rem;
    color: #111827;
    font-weight: 800;
}
[dir="ltr"] .safa-product-description-content ul,
[dir="ltr"] .safa-product-description-content ol {
    padding-left: 1.65rem;
    padding-right: 0;
}

/* Product catalog / datasheet */
.safa-product-datasheet-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}
.safa-product-datasheet-header {
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.safa-product-datasheet-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.safa-product-datasheet-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 55%, #f9fafb 100%);
}
.safa-product-datasheet-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.safa-product-datasheet-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.safa-product-datasheet-meta {
    flex: 1;
    min-width: 180px;
}
.safa-product-datasheet-name {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.2rem;
    line-height: 1.4;
}
.safa-product-datasheet-type {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.safa-product-datasheet-hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.5;
}
.safa-product-datasheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-inline-start: auto;
}
.safa-product-datasheet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.safa-product-datasheet-btn:hover {
    transform: translateY(-1px);
}
.safa-product-datasheet-btn--primary {
    background: var(--safa-red, #e12b00);
    color: #fff;
    box-shadow: 0 8px 20px rgba(225, 43, 0, 0.22);
}
.safa-product-datasheet-btn--primary:hover {
    background: #c92500;
    color: #fff;
}
.safa-product-datasheet-btn--secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.safa-product-datasheet-btn--secondary:hover {
    background: #f9fafb;
    color: #111827;
}
.safa-product-datasheet-preview {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    min-height: 420px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.safa-product-datasheet-preview iframe {
    display: block;
    width: 100%;
    height: min(72vh, 640px);
    min-height: 420px;
    border: 0;
    background: #fff;
}
@media (max-width: 640px) {
    .safa-product-datasheet-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .safa-product-datasheet-actions {
        margin-inline-start: 0;
    }
    .safa-product-datasheet-btn {
        flex: 1;
    }
    .safa-product-datasheet-preview iframe {
        min-height: 320px;
        height: 52vh;
    }
}

/* Product video preview */
.safa-product-video-preview {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.safa-product-video-preview iframe,
.safa-product-video-preview video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    max-height: min(72vh, 640px);
    border: 0;
    background: #000;
}
@media (max-width: 640px) {
    .safa-product-video-preview iframe,
    .safa-product-video-preview video {
        min-height: 200px;
    }
}

/* Product page: subtitle, rating badge + customer reviews */
.safa-product-subtitle {
    margin: -0.25rem 0 1rem;
    padding: 0.65rem 0.9rem;
    border-inline-start: 3px solid var(--safa-red, #e11d48);
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.06) 0%, rgba(248, 250, 252, 0.9) 100%);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: #4b5563;
}
[dir="rtl"] .safa-product-subtitle {
    border-radius: 10px 0 0 10px;
}

.safa-product-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    color: #92400e;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.safa-product-rating-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.16);
    border-color: #fbbf24;
}
.safa-product-rating-badge__score {
    font-size: 0.95rem;
    font-weight: 800;
    color: #b45309;
    line-height: 1;
}
.safa-product-rating-badge__count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a16207;
    line-height: 1;
}

.safa-product-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.safa-product-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.safa-product-highlight:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}
.safa-product-highlight--shipping {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}
.safa-product-highlight--purchases {
    border-color: #d1fae5;
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
}
.safa-product-highlight__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--safa-red, #e11d48);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.safa-product-highlight--shipping .safa-product-highlight__icon {
    color: #2563eb;
}
.safa-product-highlight--purchases .safa-product-highlight__icon {
    color: #059669;
}
.safa-product-highlight__icon svg {
    width: 22px;
    height: 22px;
}
.safa-product-highlight__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.safa-product-highlight__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    color: #6b7280;
}
.safa-product-highlight__value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}



.safa-product-bundle {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #fffaf5 55%, #fff7ed 100%);
    border: 1px solid #f1e4d5;
    border-radius: 24px;
    padding: 1.4rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}
.safa-product-bundle__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.safa-product-bundle__eyebrow {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.safa-product-bundle__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.25;
}
.safa-product-bundle__subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    color: #78716c;
    line-height: 1.55;
    max-width: 40rem;
}
.safa-product-bundle__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    min-height: 4rem;
    padding: 0.4rem 0.65rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #fb923c 0%, #ea580c 60%, #c2410c 100%);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.22);
}
.safa-product-bundle__badge-num {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}
.safa-product-bundle__badge-txt {
    margin-top: 0.12rem;
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.95;
}
.safa-product-bundle__board {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}
.safa-product-bundle__track {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.35rem 0.15rem 0.55rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.safa-product-bundle__track::-webkit-scrollbar {
    height: 6px;
}
.safa-product-bundle__track::-webkit-scrollbar-thumb {
    background: #fdba74;
    border-radius: 999px;
}
.safa-product-bundle__join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #fff;
    color: #ea580c;
    border: 1px solid #fed7aa;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}
.safa-product-bundle__tile {
    flex: 0 0 10.5rem;
    width: 10.5rem;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ece7e1;
    border-radius: 18px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.safa-product-bundle__tile:hover {
    transform: translateY(-2px);
    border-color: #fdba74;
    box-shadow: 0 14px 28px rgba(194, 65, 12, 0.08);
}
.safa-product-bundle__tile--main {
    border-color: #fdba74;
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.08);
}
.safa-product-bundle__tile.is-muted {
    opacity: 0.72;
}
.safa-product-bundle__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: #f8fafc;
    overflow: hidden;
}
.safa-product-bundle__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.safa-product-bundle__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}
.safa-product-bundle__chip {
    position: absolute;
    inset-inline-start: 0.4rem;
    top: 0.4rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
}
.safa-product-bundle__deal {
    position: absolute;
    inset-inline-end: 0.4rem;
    top: 0.4rem;
    padding: 0.18rem 0.4rem;
    border-radius: 999px;
    background: #ea580c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.2;
}
.safa-product-bundle__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 0.7rem 0.8rem;
    flex: 1;
}
.safa-product-bundle__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}
.safa-product-bundle__name:hover { color: #c2410c; }
.safa-product-bundle__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
}
.safa-product-bundle__price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #c2410c;
}
.safa-product-bundle__price--lg {
    font-size: 1.35rem;
    color: #9a3412;
}
.safa-product-bundle__compare {
    font-size: 0.76rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.safa-product-bundle__note {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #c2410c;
    text-decoration: none;
}
.safa-product-bundle__note.is-danger { color: #b91c1c; }
.safa-product-bundle__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f1e4d5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.safa-product-bundle__summary-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #78716c;
}
.safa-product-bundle__summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.safa-product-bundle__summary-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}
.safa-product-bundle__save {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
}
.safa-product-bundle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 12rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 52%, #c2410c 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.safa-product-bundle__btn:hover:not(:disabled) {
    filter: brightness(1.04);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(234, 88, 12, 0.28);
}
.safa-product-bundle__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
@media (max-width: 720px) {
    .safa-product-bundle { padding: 1.05rem; border-radius: 20px; }
    .safa-product-bundle__title { font-size: 1.18rem; }
    .safa-product-bundle__tile,
    .safa-product-bundle__tile--main {
        flex-basis: 8.8rem;
        width: 8.8rem;
    }
    .safa-product-bundle__summary {
        flex-direction: column;
        align-items: stretch;
    }
    .safa-product-bundle__btn { width: 100%; min-width: 0; }
}
.safa-product-reviews {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8edf3;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}
.safa-product-reviews__header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.safa-product-reviews__header-content {
    flex: 1 1 12rem;
    min-width: 0;
}
.safa-product-reviews__rate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-inline-start: auto;
    padding: 0.7rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--safa-red) 0%, var(--safa-red-dark) 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(225, 43, 0, 0.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    flex-shrink: 0;
}
.safa-product-reviews__rate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(225, 43, 0, 0.28);
    filter: brightness(1.03);
}
.safa-product-reviews__rate-btn:active {
    transform: translateY(0);
}
.safa-product-reviews__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.12);
}
.safa-product-reviews__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.safa-product-reviews__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
}
.safa-product-reviews__summary {
    display: grid;
    grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
}
.safa-product-reviews__score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border: 1px solid #fde68a;
}
.safa-product-reviews__score-value {
    margin: 0;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: #b45309;
    letter-spacing: -0.03em;
}
.safa-product-reviews__score-stars {
    margin-top: 0.45rem;
}
.safa-product-reviews__score-label {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a16207;
}
.safa-product-reviews__score-count {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #92400e;
}
.safa-product-reviews__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    min-width: 0;
}
.safa-product-reviews__bar-row {
    display: grid;
    grid-template-columns: 1.1rem 1rem minmax(0, 1fr) 2rem;
    align-items: center;
    gap: 0.45rem;
}
.safa-product-reviews__bar-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-align: end;
}
.safa-product-reviews__bar-star {
    color: #fbbf24;
    font-size: 0.85rem;
    line-height: 1;
}
.safa-product-reviews__bar-track {
    height: 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}
.safa-product-reviews__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 55%, #ea580c 100%);
    transition: width .35s ease;
}
.safa-product-reviews__bar-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-align: end;
}
.safa-product-reviews__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.safa-review-card {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.safa-review-card:hover {
    transform: translateY(-2px);
    border-color: #dbe3ee;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}
.safa-review-card__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
}
.safa-review-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2 0%, #ffedd5 100%);
    color: #b91c1c;
    font-size: 0.95rem;
    font-weight: 800;
    flex-shrink: 0;
}
.safa-review-card__meta {
    min-width: 0;
}
.safa-review-card__name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.safa-review-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
}
.safa-review-card__date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}
.safa-review-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}
.safa-review-card__rating {
    flex-shrink: 0;
}
.safa-review-card__title {
    margin: 0.85rem 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.45;
}
.safa-review-card__comment {
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #475569;
}
.safa-product-reviews__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem 1.25rem;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #dbe3ee;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}
.safa-product-reviews__empty-stars {
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    color: #e2e8f0;
}

/* Product review modal */
body.safa-review-modal-open {
    overflow: hidden;
}
.safa-review-modal {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.safa-review-modal.is-visible {
    opacity: 1;
    visibility: visible;
}
.safa-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.safa-review-modal__dialog {
    position: relative;
    width: min(100%, 30rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    padding: 1.35rem 1.35rem 1.5rem;
    transform: translateY(12px) scale(0.98);
    transition: transform .22s ease;
}
.safa-review-modal.is-visible .safa-review-modal__dialog {
    transform: translateY(0) scale(1);
}
.safa-review-modal__close {
    position: absolute;
    top: .85rem;
    inset-inline-end: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
    transition: background .2s ease, color .2s ease;
}
.safa-review-modal__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.safa-review-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-inline-end: 2rem;
}
.safa-review-modal__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    flex-shrink: 0;
}
.safa-review-modal__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.safa-review-modal__subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
}
.safa-review-modal__preview {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.safa-review-modal__preview-image {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.safa-review-modal__preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.safa-review-modal__preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.safa-review-modal__preview-name {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
}
.safa-review-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.safa-review-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.safa-review-modal__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}
.safa-review-modal__input,
.safa-review-modal__textarea {
    width: 100%;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.safa-review-modal__input:focus,
.safa-review-modal__textarea:focus {
    outline: none;
    border-color: var(--safa-red);
    box-shadow: 0 0 0 3px rgba(225, 43, 0, 0.1);
}
.safa-review-modal__textarea {
    resize: vertical;
    min-height: 6.5rem;
}
.safa-review-modal__message {
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}
.safa-review-modal__message.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.safa-review-modal__message.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.safa-review-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--safa-red) 0%, var(--safa-red-dark) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.safa-review-modal__submit:hover:not(:disabled) {
    filter: brightness(1.03);
    transform: translateY(-1px);
}
.safa-review-modal__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.safa-review-modal__panel--info {
    text-align: center;
    padding: 0.5rem 0.25rem 0.25rem;
}
.safa-review-modal__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
}
.safa-review-modal__info-title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}
.safa-review-modal__info-text {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #64748b;
}
.safa-review-modal__info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}
.safa-review-modal__info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.safa-review-modal__info-btn--primary {
    background: linear-gradient(135deg, var(--safa-red) 0%, var(--safa-red-dark) 100%);
    border-color: transparent;
    color: #fff;
}
.safa-review-modal__info-btn:hover {
    background: #f8fafc;
}
.safa-review-modal__info-btn--primary:hover {
    background: linear-gradient(135deg, var(--safa-red-dark) 0%, var(--safa-red-hover) 100%);
    color: #fff;
}

@media (max-width: 900px) {
    .safa-product-reviews__summary {
        grid-template-columns: 1fr;
    }
    .safa-product-reviews__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .safa-product-reviews {
        padding: 1rem;
        border-radius: 20px;
    }
    .safa-product-reviews__header {
        gap: 0.75rem;
    }
    .safa-product-reviews__rate-btn {
        width: 100%;
        margin-inline-start: 0;
        order: 3;
    }
    .safa-product-reviews__title {
        font-size: 1.15rem;
    }
    .safa-review-card__header {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .safa-review-card__rating {
        grid-column: 1 / -1;
    }
}

/* Homepage: customer reviews */
.safa-home-reviews {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 15px 34px;
}
.safa-home-reviews__shell {
    padding: 1.35rem 1.15rem 1.2rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8edf3;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}
.safa-home-reviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #eef2f7;
}
.safa-home-reviews__heading {
    min-width: 0;
}
.safa-home-reviews__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.safa-home-reviews__header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.safa-home-reviews__subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.5;
}
.safa-home-reviews__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.1);
}
.safa-home-reviews__score {
    font-size: 1.35rem;
    font-weight: 900;
    color: #b45309;
    line-height: 1;
    letter-spacing: -0.02em;
}
.safa-home-reviews__summary-stars .star-rating-display {
    font-size: 1rem;
}
.safa-home-reviews__count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #92400e;
    white-space: nowrap;
    padding-inline-start: 0.45rem;
    border-inline-start: 1px solid #fde68a;
}
.safa-home-reviews__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
    flex-shrink: 0;
}
.safa-home-reviews__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--safa-red, #e12b00);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.safa-home-reviews__view-all svg {
    width: 0.95rem;
    height: 0.95rem;
    transition: transform .25s ease;
}
[dir="ltr"] .safa-home-reviews__view-all svg {
    transform: scaleX(-1);
}
.safa-home-reviews__view-all:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
    border-color: #fecaca;
    color: #b91c1c;
    box-shadow: 0 10px 22px rgba(225, 43, 0, 0.12);
    transform: translateY(-1px);
}
.safa-home-reviews__view-all:hover svg {
    transform: translateX(-2px);
}
[dir="ltr"] .safa-home-reviews__view-all:hover svg {
    transform: scaleX(-1) translateX(-2px);
}
.safa-home-reviews__footer {
    display: flex;
    justify-content: center;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}
.safa-home-reviews__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: min(100%, 360px);
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #7f1d1d 140%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.safa-home-reviews__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 45%);
    pointer-events: none;
}
.safa-home-reviews__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}
.safa-home-reviews__cta-label {
    position: relative;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.safa-home-reviews__cta-meta {
    position: relative;
    margin-inline-start: auto;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fde68a;
    white-space: nowrap;
}
.safa-home-reviews__cta-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    transition: background .25s ease, transform .25s ease;
}
.safa-home-reviews__cta-arrow svg {
    width: 1rem;
    height: 1rem;
}
[dir="ltr"] .safa-home-reviews__cta-arrow svg {
    transform: scaleX(-1);
}
.safa-home-reviews__cta:hover .safa-home-reviews__cta-arrow {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}
[dir="ltr"] .safa-home-reviews__cta:hover .safa-home-reviews__cta-arrow {
    transform: translateX(2px);
}
.safa-home-reviews__marquee {
    position: relative;
    overflow: hidden;
    padding: 0.15rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
[dir="rtl"] .safa-home-reviews__marquee {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to left, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.safa-home-reviews__track {
    display: flex;
    align-items: stretch;
    width: max-content;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.safa-home-reviews__set {
    display: flex;
    align-items: stretch;
    gap: 1.1rem;
    padding-inline: 0.55rem;
}
.safa-home-reviews__marquee.is-animated .safa-home-reviews__track {
    animation: safa-home-reviews-marquee var(--safa-reviews-marquee-duration, 48s) linear infinite;
    will-change: transform;
}
.safa-home-reviews__marquee.is-animated:hover .safa-home-reviews__track {
    animation-play-state: paused;
}
.safa-home-reviews__marquee.is-static .safa-home-reviews__track {
    justify-content: center;
    width: 100%;
}
.safa-home-reviews__marquee.is-static .safa-home-reviews__set {
    justify-content: center;
    width: 100%;
}
@keyframes safa-home-reviews-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
[dir="rtl"] .safa-home-reviews__marquee.is-animated .safa-home-reviews__track {
    animation-name: safa-home-reviews-marquee-rtl;
}
@keyframes safa-home-reviews-marquee-rtl {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .safa-home-reviews__marquee.is-animated .safa-home-reviews__track {
        animation: none;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 0.35rem;
        scrollbar-width: thin;
    }
    .safa-home-reviews__marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }
}
.safa-home-review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 0 0 340px;
    width: 340px;
    min-height: 220px;
    padding: 1rem 1rem 0.95rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.safa-home-review-card:hover {
    border-color: #dbe3ee;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}
.safa-home-review-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.safa-home-review-card__author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.safa-home-review-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fee2e2 0%, #ffedd5 100%);
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(225, 43, 0, 0.1);
}
.safa-home-review-card__author-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.safa-home-review-card__name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.safa-home-review-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #047857;
    line-height: 1.2;
}
.safa-home-review-card__verified svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
}
.safa-home-review-card__rating {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}
.safa-home-review-card__rating .star-rating-display {
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.safa-home-review-card__rating-value {
    font-size: 0.72rem;
    font-weight: 800;
    color: #b45309;
    line-height: 1;
}
.safa-home-review-card__text {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 500;
}
.safa-home-review-card__product {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: auto;
    padding: 0.6rem 0.65rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e8edf3;
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.safa-home-review-card__product:hover {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    box-shadow: 0 8px 18px rgba(225, 43, 0, 0.08);
    transform: translateX(-2px);
}
[dir="ltr"] .safa-home-review-card__product:hover {
    transform: translateX(2px);
}
.safa-home-review-card__product-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e8edf3;
    overflow: hidden;
    flex-shrink: 0;
}
.safa-home-review-card__product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.28rem;
}
.safa-home-review-card__product-placeholder {
    font-size: 1.25rem;
    line-height: 1;
}
.safa-home-review-card__product-info {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1;
}
.safa-home-review-card__product-label {
    font-size: 0.66rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.safa-home-review-card__product-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.safa-home-review-card__product:hover .safa-home-review-card__product-name {
    color: var(--safa-red, #e12b00);
}
.safa-home-review-card__product-arrow {
    font-size: 1.35rem;
    line-height: 1;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: color .25s ease, transform .25s ease;
}
.safa-home-review-card__product:hover .safa-home-review-card__product-arrow {
    color: var(--safa-red, #e12b00);
    transform: translateX(-3px);
}
[dir="ltr"] .safa-home-review-card__product:hover .safa-home-review-card__product-arrow {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .safa-home-reviews__shell {
        padding: 1rem 0.85rem 0.9rem;
        border-radius: 18px;
    }
    .safa-home-reviews__header {
        flex-direction: column;
        align-items: stretch;
    }
    .safa-home-reviews__header h2 {
        font-size: 1.15rem;
    }
    .safa-home-reviews__aside {
        align-items: stretch;
    }
    .safa-home-reviews__summary {
        justify-content: center;
    }
    .safa-home-reviews__view-all {
        justify-content: center;
        width: 100%;
    }
    .safa-home-reviews__cta {
        width: 100%;
        min-width: 0;
        padding: 0.8rem 0.9rem;
    }
    .safa-home-reviews__cta-meta {
        display: none;
    }
    .safa-home-review-card {
        flex-basis: 300px;
        width: 300px;
        min-height: 210px;
    }
}

/* Reviews listing page */
.safa-reviews-page {
    padding-bottom: 2.5rem;
}
.safa-reviews-page__hero {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 72%);
    border-bottom: 1px solid #f1f5f9;
}
.safa-reviews-page__hero-inner,
.safa-reviews-page__body {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 15px 0;
}
.safa-reviews-page__body {
    padding-top: 1.5rem;
}
.safa-reviews-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
}
.safa-reviews-page__breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}
.safa-reviews-page__breadcrumb a:hover {
    color: var(--safa-red, #e12b00);
}
.safa-reviews-page__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.35rem;
}
.safa-reviews-page__heading h1 {
    margin: 0.35rem 0 0;
    font-size: 1.75rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}
.safa-reviews-page__heading p {
    margin: 0.45rem 0 0;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}
.safa-reviews-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
}
.safa-reviews-page__grid .safa-home-review-card {
    flex: none;
    width: auto;
    min-height: 240px;
}
.safa-reviews-page__grid .safa-home-review-card.is-full .safa-home-review-card__text {
    display: block;
    -webkit-line-clamp: unset;
}
.safa-reviews-page__pagination {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
}
.safa-reviews-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}
@media (max-width: 640px) {
    .safa-reviews-page__intro {
        flex-direction: column;
        align-items: stretch;
    }
    .safa-reviews-page__heading h1 {
        font-size: 1.35rem;
    }
    .safa-reviews-page__intro .safa-home-reviews__summary {
        justify-content: center;
    }
}

/* Public coupons page */
.safa-coupons-page {
    padding-bottom: 2.75rem;
}
.safa-coupons-page__hero {
    background:
        radial-gradient(900px 260px at 0% -10%, rgba(225, 43, 0, 0.12), transparent 55%),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 78%);
    border-bottom: 1px solid #f1f5f9;
}
.safa-coupons-page__hero-inner,
.safa-coupons-page__body {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 15px 0;
}
.safa-coupons-page__body {
    padding-top: 1.75rem;
}
.safa-coupons-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
}
.safa-coupons-page__breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}
.safa-coupons-page__breadcrumb a:hover {
    color: var(--safa-red, #e12b00);
}
.safa-coupons-page__eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--safa-red, #e12b00);
}
.safa-coupons-page__title {
    margin: 0.4rem 0 0;
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}
.safa-coupons-page__lead {
    margin: 0.55rem 0 1.35rem;
    max-width: 40rem;
    font-size: 0.98rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.65;
}
.safa-coupons-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
}
.safa-coupon-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.safa-coupon-card:hover {
    transform: translateY(-3px);
    border-color: #fecaca;
    box-shadow: 0 16px 36px rgba(225, 43, 0, 0.08);
}
.safa-coupon-card.is-exhausted {
    opacity: 0.88;
}
.safa-coupon-card.is-exhausted:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.safa-coupon-card.is-exhausted .safa-coupon-card__accent {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}
.safa-coupon-card__status.is-exhausted {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
}
.safa-coupon-card__copy.is-disabled,
.safa-coupon-card__shop.is-disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
    pointer-events: none;
}
.safa-coupon-card__accent {
    height: 5px;
    background: linear-gradient(90deg, var(--safa-red, #e12b00), #fb923c);
}
.safa-coupon-card__main {
    padding: 1.15rem 1.2rem 0.85rem;
    flex: 1;
}
.safa-coupon-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}
.safa-coupon-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.safa-coupon-card__badge.is-percent {
    background: #eff6ff;
    color: #1d4ed8;
}
.safa-coupon-card__badge.is-fixed {
    background: #f1f5f9;
    color: #334155;
}
.safa-coupon-card__expiry {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}
.safa-coupon-card__value {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin: 0 0 1rem;
}
.safa-coupon-card__value-num {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}
.safa-coupon-card__value-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--safa-red, #e12b00);
}
.safa-coupon-card__code-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.safa-coupon-card__code {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: repeating-linear-gradient(
        -45deg,
        #fff7ed,
        #fff7ed 8px,
        #ffedd5 8px,
        #ffedd5 16px
    );
    border: 1px dashed #fdba74;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #9a3412;
}
.safa-coupon-card__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.9rem;
    border: none;
    border-radius: 12px;
    background: var(--safa-red, #e12b00);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}
.safa-coupon-card__copy:hover {
    background: var(--safa-red-dark, #c42500);
}
.safa-coupon-card__copy.is-copied {
    background: #059669;
}
.safa-coupon-card__copy-icon {
    flex-shrink: 0;
}
.safa-coupon-card__meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: #64748b;
}
.safa-coupon-card__meta strong {
    color: #334155;
    font-weight: 700;
}
.safa-coupon-card__cta {
    padding: 0 1.2rem 1.15rem;
}
.safa-coupon-card__shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background .15s ease;
}
.safa-coupon-card__shop:hover {
    background: #1e293b;
    color: #fff;
}
.safa-coupons-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 3.25rem 1.25rem;
    text-align: center;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}
.safa-coupons-page__empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: var(--safa-red, #e12b00);
    margin-bottom: 0.35rem;
}
.safa-coupons-page__empty h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}
.safa-coupons-page__empty p {
    margin: 0;
    max-width: 28rem;
    line-height: 1.6;
}
.safa-coupons-page__empty-btn {
    display: inline-flex;
    margin-top: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 12px;
    background: var(--safa-red, #e12b00);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}
.safa-coupons-page__empty-btn:hover {
    background: var(--safa-red-dark, #c42500);
    color: #fff;
}
@media (max-width: 640px) {
    .safa-coupons-page__title {
        font-size: 1.4rem;
    }
    .safa-coupon-card__value-num {
        font-size: 1.65rem;
    }
    .safa-coupon-card__copy-label {
        display: none;
    }
    .safa-coupon-card__copy {
        padding: 0 0.75rem;
    }
}
