/**
 * @file public-home.css
 * @brief ستايلات الصفحة الرئيسية.
 * @namespace home-*
 */

/* ============ HERO (Dark with image) ============ */
:root {
    --slider-dot-hit-size: 18px;
    --slider-dot-size: 9px;
    --slider-dot-active-size: 12px;
    --slider-dot-gap: 10px;
    --slider-dot-shell-padding: 8px 10px;
    --slider-dot-shell-bg: rgba(17, 24, 39, 0.24);
    --slider-dot-shell-border: 1px solid rgba(255, 255, 255, 0.28);
    --slider-dot-shell-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    --slider-dot-bg: rgba(255, 255, 255, 0.62);
    --slider-dot-hover-bg: rgba(255, 255, 255, 0.92);
    --slider-dot-active-bg: #fff;
    --slider-dot-active-shadow: 0 0 0 3px rgba(203, 181, 119, 0.42), 0 4px 12px rgba(15, 23, 42, 0.24);
    --slider-dot-focus-ring: 3px solid rgba(203, 181, 119, 0.54);
    --slider-dot-transition: width .22s ease, height .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
    --slider-control-size: 44px;
    --slider-control-bg: rgba(255, 255, 255, 0.78);
    --slider-control-hover-bg: rgba(45, 58, 30, 0.94);
    --slider-control-border: 1px solid rgba(255, 255, 255, 0.64);
    --slider-control-shadow: 0 14px 34px rgba(45, 58, 30, 0.18);
    --slider-control-hover-shadow: 0 18px 40px rgba(45, 58, 30, 0.26);
    --slider-control-transition: opacity .22s ease, visibility .22s ease, transform .22s cubic-bezier(.22, .61, .36, 1), background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
    /* Home sections gradient */
    --home-section-gradient: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 248, 242, 0.95) 100%);
    /* Glass — featured pagination shell */
    --featured-pagination-shell-bg: rgba(255, 255, 255, 0.06);
    --featured-pagination-shell-border: 1px solid rgba(255, 255, 255, 0.10);
    --featured-pagination-shell-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Hero مقسوم: محتوى يميناً + صورة يساراً على خلفية كريمية (مطابق للتصميم) */
.home-hero {
    position: relative;
    /* تكديس الشرائح في خلية Grid واحدة: الهيرو يتمدّد لأطول شريحة دائماً،
       فلا يتغيّر ارتفاعه عند التبديل → لا قفزة/اندفاع للأسفل. شارات الثقة تتدفّق لصفّ ثانٍ. */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: linear-gradient(105deg, #FDFCF8 0%, var(--pub-bg) 55%, #EFEDE2 100%);
    color: var(--pub-ink);
    overflow: hidden;
}

.home-hero__slide {
    /* كل الشرائح تتشارك نفس خلية الشبكة (تتكدّس فوق بعضها) — الارتفاع = أطول شريحة */
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    /* الشريحة المتوقفة تنتظر خارج الإطار (يمين) بلا انتقال → إعادة الضبط فورية وغير مرئية (لا هدر طبقات) */
    transform: translate3d(40px, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: none;
}

/* الشريحة الظاهرة + المغادرة فقط تُرقّى إلى طبقة GPU وتتحرّك — will-change عند الحاجة فقط */
.home-hero__slide.is-active,
.home-hero__slide.is-leaving {
    will-change: opacity, transform;
    /* منحنى موحّد للشفافية والإزاحة معًا: بداية ناعمة، ثبات، توقّف لطيف بلا ارتداد */
    transition:
        opacity .7s cubic-bezier(.4, 0, .2, 1),
        transform .7s cubic-bezier(.4, 0, .2, 1);
}

.home-hero__slide.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

/* الشريحة المغادرة تنزلق لليسار أثناء التلاشي خلف الداخلة → إحساس انزلاق لوحة زجاجية */
.home-hero__slide.is-leaving {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
    z-index: 0;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 40px;
    width: 100%;
    min-height: 560px;
    min-width: 0;
}

/* حاوية الصورة — aspect-ratio ثابت يمنع التمدد */
.home-hero__media {
    order: 2;
    margin-inline-end: calc(50% - 50vw);
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background: #f0efe8;
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(239, 237, 226, 0.92) 0%, rgba(239, 237, 226, 0) 13%, rgba(253, 252, 248, 0) 87%, rgba(253, 252, 248, 0.88) 100%),
        linear-gradient(180deg, rgba(253, 252, 248, 0.78) 0%, rgba(253, 252, 248, 0) 15%, rgba(253, 252, 248, 0) 82%, rgba(239, 237, 226, 0.86) 100%);
}

.home-hero__content {
    order: 1;
    position: relative;
    z-index: 2;
    max-width: 560px;
    justify-self: end;
    text-align: right;
    padding: 48px 0 40px;
}

/* ظهور متسلسل لطيف لعناصر المحتوى — transform/opacity فقط (بدون Layout Shift) */
.home-hero__content > * {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
        opacity .6s cubic-bezier(.4, 0, .2, 1),
        transform .6s cubic-bezier(.4, 0, .2, 1);
}

.home-hero__slide.is-active .home-hero__content > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.home-hero__slide.is-active .home-hero__content > :nth-child(1) { transition-delay: .14s; }
.home-hero__slide.is-active .home-hero__content > :nth-child(2) { transition-delay: .24s; }
.home-hero__slide.is-active .home-hero__content > :nth-child(3) { transition-delay: .34s; }
.home-hero__slide.is-active .home-hero__content > :nth-child(4) { transition-delay: .44s; }

/* الخروج: المحتوى المغادر يتلاشى في مكانه دون انزلاق هابط (الدخول وحده يصعد) —
   نُلغي إزاحة Y ونترك تلاشي الشريحة نفسها يتكفّل بالاختفاء بلا تأخير متسلسل */
.home-hero__slide.is-leaving .home-hero__content > * {
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

/* احترام تفضيل تقليل الحركة — عرض فوري بلا انزلاق أو تسلسل */
@media (prefers-reduced-motion: reduce) {
    .home-hero__slide,
    .home-hero__slide.is-active,
    .home-hero__slide.is-leaving,
    .home-hero__content > * {
        transition: opacity .2s linear;
        transform: none !important;
        will-change: auto;
    }

    .home-hero__slide.is-active .home-hero__content > * {
        transition-delay: 0s;
    }
}

.home-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(96, 115, 77, 0.14);
    color: var(--pub-primary-dark);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 22px;
}

.home-hero__pill i {
    color: var(--pub-success);
}

.home-hero__title {
    font-family: var(--pub-font-heading);
    font-size: clamp(24px, 3.8vw, 48px);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--pub-primary-dark);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(58, 75, 41, 0.06);
    word-break: break-word;
}

.home-hero__title span {
    display: block;
    color: var(--pub-primary);
    font-size: clamp(15px, 1.8vw, 22px);
    font-weight: 700;
    line-height: 1.5;
    margin-top: 6px;
    padding-top: 14px;
    position: relative;
    letter-spacing: 0.02em;
}

.home-hero__title span::before {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--pub-primary);
    border-radius: 2px;
    margin-bottom: 14px;
}

.home-hero__desc {
    color: var(--pub-ink-soft);
    font-size: 15.5px;
    line-height: 1.9;
    margin: 0 0 26px;
    max-width: 480px;
    margin-inline-start: auto;
}

.home-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.home-hero__cta .pub-btn--primary {
    background: var(--pub-primary-dark);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(58, 75, 41, 0.25);
    transition: background .18s, transform .18s;
}

.home-hero__cta .pub-btn--primary:hover {
    background: #2D3A1E;
    transform: translateY(-1px);
}

.home-hero__cta .pub-btn--ghost {
    background: #fff;
    color: var(--pub-ink);
    border: 1.5px solid rgba(43, 45, 41, 0.18);
    border-radius: 12px;
    padding: 14px 26px;
    font-weight: 700;
    font-size: 15px;
    transition: border-color .18s, color .18s;
}

.home-hero__cta .pub-btn--ghost:hover {
    border-color: var(--pub-primary-dark);
    color: var(--pub-primary-dark);
}

/* شارات الثقة الثلاث — ثابتة خارج السلايد المتحرك */
.home-hero__trust {
    display: flex;
    gap: 32px;
    padding: 32px 24px;
    border-top: 1px solid var(--pub-border);
    justify-content: center;
    position: relative;
    z-index: 2;
}

.home-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-inline-start: 1px solid var(--pub-border);
}

.home-hero__trust-item:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
}

.home-hero__trust-item i {
    font-size: 20px;
    color: var(--pub-primary-dark);
    background: rgba(203, 181, 119, 0.18);
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.home-hero__trust-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--pub-ink);
}

.home-hero__trust-item p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--pub-ink-soft);
}

/* حاوية أدوات التحكم — طبقة Overlay لا تؤثر على ارتفاع الهيرو */
.home-hero__controls {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    direction: ltr;
}

/* الأسهم فوق الصورة — مخفية حتى التفاعل مع الصورة */
.home-hero__arrow {
    position: absolute;
    top: 50%;
    width: var(--slider-control-size);
    height: var(--slider-control-size);
    border-radius: 50%;
    background: var(--slider-control-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--pub-primary-dark);
    border: var(--slider-control-border);
    box-shadow: var(--slider-control-shadow);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(.92);
    transition: var(--slider-control-transition);
}

.home-hero__arrow--prev {
    right: 18px;
}

.home-hero__arrow--next {
    left: 18px;
}

.home-hero__media:hover .home-hero__arrow,
.home-hero__media:focus-within .home-hero__arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.home-hero__arrow:hover,
.home-hero__arrow:focus-visible {
    background: var(--slider-control-hover-bg);
    border-color: rgba(45, 58, 30, 0.18);
    color: #fff;
    box-shadow: var(--slider-control-hover-shadow);
    outline: 3px solid rgba(203, 181, 119, 0.52);
    outline-offset: 3px;
    transform: translateY(-50%) scale(1.04);
}

/* النقاط — أسفل الصورة */
.home-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--slider-dot-gap);
    padding: var(--slider-dot-shell-padding);
    border-radius: 999px;
    background: var(--slider-dot-shell-bg);
    border: var(--slider-dot-shell-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--slider-dot-shell-shadow);
    z-index: 3;
    direction: ltr;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px) scale(.96);
    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;
}

.home-hero__media:hover .home-hero__dots,
.home-hero__media:focus-within .home-hero__dots {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.home-hero__dot {
    cursor: pointer;
    border: 0;
    padding: 0;
    background: none;
    width: var(--slider-dot-hit-size);
    height: var(--slider-dot-hit-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__dot::before {
    content: '';
    display: block;
    width: var(--slider-dot-size);
    height: var(--slider-dot-size);
    border-radius: 50%;
    background: currentColor;
    color: var(--slider-dot-bg);
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.10);
    transition: var(--slider-dot-transition);
}

.home-hero__dot:hover::before,
.home-hero__dot:focus-visible::before {
    color: var(--slider-dot-hover-bg);
    transform: scale(1.12);
}

.home-hero__dot:focus-visible {
    outline: var(--slider-dot-focus-ring);
    outline-offset: 3px;
}

.home-hero__dot.is-active::before,
.home-hero__dot[aria-current="page"]::before {
    width: var(--slider-dot-active-size);
    height: var(--slider-dot-active-size);
    color: var(--slider-dot-active-bg);
    box-shadow: var(--slider-dot-active-shadow);
}

@media (hover: none) {

    .home-hero__arrow,
    .home-hero__dots,
    .home-cats-carousel__arrow {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .home-hero__arrow {
        transform: translateY(-50%) scale(1);
    }

    .home-hero__dots {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .home-cats-carousel__arrow {
        transform: translateY(-50%) scale(1);
    }
}

/* ============ FEATURES STRIP ============ */
/* الشريط الداكن — مزايا المتجر الأربع (مطابق للتصميم) */
.home-features {
    background: transparent;
    margin: 26px 0 8px;
    position: relative;
    z-index: 5;
}

.home-features__inner {
    background: #2D3A1E;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(45, 58, 30, 0.18);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    padding: 26px 10px;
}

.home-feature {
    display: flex;
    flex-direction: row-reverse;
    gap: 14px;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    border-left: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
}

.home-feature:first-child {
    border-inline-start: 0;
}

.home-feature__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--pub-primary);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.home-feature>div:last-child {
    text-align: right;
}

.home-feature h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
}

.home-feature p {
    margin: 3px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.66);
}

/* ============ SECTION HEAD (with view all) ============ */
.home-section {
    padding: 50px 0 0;
}

.home-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.home-section__head h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
}

.home-section__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-section__eyebrow {
    display: none;
}

.home-section__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.home-section__icon {
    display: none;
}

.home-section__title-wrap h2 {
    position: relative;
    display: inline-block;
    font-family: var(--pub-font-heading);
    color: var(--pub-primary-dark);
    padding-bottom: 12px;
}

.home-section__title-wrap h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--pub-primary), transparent);
}

.home-section__title-wrap p {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--pub-ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.home-section--curated {
    position: relative;
    padding-top: 46px;
}

.home-section--curated .pub-container {
    position: relative;
    z-index: 1;
}

.home-section--curated .home-section__head {
    align-items: center;
    margin-bottom: 28px;
}

.home-section--curated .home-products {
    position: relative;
    display: block;
    padding: 26px;
    border-radius: 34px;
    background: #fff;
    border: 1px solid rgba(224, 230, 239, 0.94);
    box-shadow: 0 24px 60px rgba(13, 27, 47, 0.10);
}

.home-products__viewport {
    overflow: hidden;
    border-radius: 28px;
    width: 100%;
    direction: ltr;
}

.home-products__track {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    direction: ltr;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.home-products__page {
    box-sizing: border-box;
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    grid-auto-rows: 1fr;
    align-items: stretch;
    direction: rtl;
}

.home-products__page>* {
    min-width: 0;
}

.home-featured-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 26px;
}

.home-featured-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--slider-dot-gap);
    flex-wrap: wrap;
    min-width: 0;
    padding: var(--slider-dot-shell-padding);
    border-radius: 999px;
    background: var(--featured-pagination-shell-bg);
    border: var(--featured-pagination-shell-border);
    box-shadow: var(--featured-pagination-shell-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.home-featured-pagination__pages:hover {
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.home-featured-pagination__btn {
    width: var(--slider-control-size);
    height: var(--slider-control-size);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    color: var(--pub-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    cursor: pointer;
}

.home-featured-pagination__btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--pub-primary-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.home-featured-pagination__btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.14);
}

.home-featured-pagination__btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.30);
    outline-offset: 3px;
}

.home-featured-pagination__btn--dot {
    width: var(--slider-dot-hit-size);
    height: var(--slider-dot-hit-size);
    border-radius: 50%;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    font-size: 0;
    color: transparent;
    line-height: 0;
}

.home-featured-pagination__btn--dot span {
    display: block;
    width: var(--slider-dot-size);
    height: var(--slider-dot-size);
    border-radius: 50%;
    background: currentColor;
    color: var(--slider-dot-bg);
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.10);
    transition: var(--slider-dot-transition);
    pointer-events: none;
}

.home-featured-pagination__btn--dot:hover {
    transform: none;
    box-shadow: none;
}

.home-featured-pagination__btn--dot:hover span {
    color: var(--slider-dot-hover-bg);
    transform: scale(1.12);
}

.home-featured-pagination__btn--dot:focus-visible {
    outline: var(--slider-dot-focus-ring);
    outline-offset: 3px;
}

.home-featured-pagination__btn--dot.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.home-featured-pagination__btn--dot.is-active span {
    width: var(--slider-dot-active-size);
    height: var(--slider-dot-active-size);
    color: var(--slider-dot-active-bg);
    box-shadow: var(--slider-dot-active-shadow);
}

.home-featured-pagination__btn--dot[aria-current="page"] span {
    width: var(--slider-dot-active-size);
    height: var(--slider-dot-active-size);
    color: var(--slider-dot-active-bg);
    box-shadow: var(--slider-dot-active-shadow);
}

.home-featured-pagination__btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.home-featured-pagination__btn[hidden] {
    display: none;
}

.pub-viewall {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(201, 169, 97, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 236, 0.98)),
        linear-gradient(135deg, rgba(201, 169, 97, 0.10), rgba(13, 59, 102, 0.04));
    box-shadow: 0 10px 24px rgba(13, 27, 47, 0.07);
    color: var(--pub-ink);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.pub-viewall i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
    color: #fff;
    font-size: 11px;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 14px rgba(201, 169, 97, 0.26);
}

.pub-viewall:hover {
    color: var(--pub-primary-dark);
    transform: translateY(-2px);
    border-color: rgba(201, 169, 97, 0.4);
    box-shadow: 0 16px 30px rgba(13, 27, 47, 0.12);
}

.pub-viewall:hover i {
    transform: translateX(-3px);
    box-shadow: 0 10px 18px rgba(201, 169, 97, 0.32);
}

/* ============ CATEGORIES (Premium) ============ */
.home-section--categories {
    position: relative;
    padding-top: 20px;
}

.home-section--categories .pub-container {
    position: relative;
    z-index: 1;
}

/* بطاقات أفقية مدمجة: صورة يساراً + نص يميناً (مطابق للتصميم) */
.home-cats-carousel {
    --cat-carousel-gap: 18px;
    --cat-carousel-visible: 4;
    position: relative;
}

.home-cats {
    overflow: hidden;
    width: 100%;
    direction: ltr;
    touch-action: pan-y;
}

.home-cats__track {
    display: flex;
    gap: var(--cat-carousel-gap);
    will-change: transform;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.home-cat {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #eae8e1;
    border-radius: 20px;
    padding: 20px 24px;
    min-height: 130px;
    flex: 0 0 calc((100% - (var(--cat-carousel-visible) - 1) * var(--cat-carousel-gap)) / var(--cat-carousel-visible));
    min-width: 0;
    text-align: start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.home-cat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(203, 181, 119, 0) 0%, rgba(203, 181, 119, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.home-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(203, 181, 119, 0.12);
    border-color: rgba(203, 181, 119, 0.3);
}

.home-cat:hover::after {
    opacity: 1;
}

.home-cat__media {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfbf8;
    border: 1px solid #f2efeb;
    z-index: 1;
}

.home-cat__float-icon {
    display: none;
}

.home-cat__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.home-cat:hover .home-cat__img {
    transform: scale(1.07);
}

.home-cat__fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: rgba(203, 181, 119, 0.16);
    color: var(--pub-primary-dark);
    font-size: 30px;
    font-weight: 900;
    font-family: var(--pub-font-heading);
}

.home-cat__body {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.home-cat__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.home-cat__name {
    font-size: 17px;
    font-weight: 800;
    color: var(--pub-ink);
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.home-cat:hover .home-cat__name {
    color: var(--pub-primary-dark);
}

.home-cat__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--pub-primary-dark);
    background: rgba(203, 181, 119, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.home-cat__desc {
    margin: 0;
    color: var(--pub-ink-soft);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-cat__link {
    display: none;
}

.home-cats-carousel__arrow {
    position: absolute;
    top: 50%;
    width: var(--slider-control-size);
    height: var(--slider-control-size);
    border-radius: 50%;
    border: var(--slider-control-border);
    background: var(--slider-control-bg);
    color: var(--pub-primary-dark);
    box-shadow: var(--slider-control-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(.92);
    transition: var(--slider-control-transition);
}

.home-cats-carousel__arrow--prev {
    right: -10px;
}

.home-cats-carousel__arrow--next {
    left: -10px;
}

.home-cats-carousel:hover .home-cats-carousel__arrow,
.home-cats-carousel:focus-within .home-cats-carousel__arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.home-cats-carousel__arrow:hover,
.home-cats-carousel__arrow:focus-visible {
    background: var(--slider-control-hover-bg);
    border-color: rgba(45, 58, 30, 0.18);
    color: #fff;
    box-shadow: var(--slider-control-hover-shadow);
    outline: 3px solid rgba(203, 181, 119, 0.52);
    outline-offset: 3px;
    transform: translateY(-50%) scale(1.04);
}

.home-cats-carousel__arrow[disabled] {
    opacity: .35;
    cursor: not-allowed;
}

.home-cats-carousel.is-static .home-cats-carousel__arrow {
    display: none;
}

/* ============ Grid layout (صفحة الفئات) ============ */
.home-cats-carousel--grid {
    --cat-carousel-visible: 4;
}

.home-cats-carousel--grid .home-cats {
    overflow: visible;
    touch-action: auto;
}

.home-cats-carousel--grid .home-cats__track {
    display: grid;
    grid-template-columns: repeat(var(--cat-carousel-visible), minmax(0, 1fr));
    gap: var(--cat-carousel-gap);
    transform: none !important;
    transition: none;
}

.home-cats-carousel--grid .home-cat {
    flex: 1 1 auto;
    width: 100%;
}

@media (max-width: 1100px) {
    .home-cats-carousel--grid {
        --cat-carousel-visible: 3;
    }
}

@media (max-width: 820px) {
    .home-cats-carousel--grid {
        --cat-carousel-visible: 2;
    }
}

@media (max-width: 520px) {
    .home-cats-carousel--grid {
        --cat-carousel-visible: 1;
    }
}

/* ============ PRODUCTS (4 in a row) ============ */
.home-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    width: 100%;
}

.home-products,
.home-products * {
    box-sizing: border-box;
}

.home-products .home-product {
    width: 100%;
    min-width: 0;
}

.home-products>* {
    display: block;
}

.home-products--paged {
    overflow: hidden;
}

.home-products--paged[data-card-group-container="featured"] .home-product,
.home-products--paged[data-card-group-container="offers"] .home-product,
.home-products--paged[data-card-group-container="top-rated"] .home-product,
.home-products--paged[data-card-group-container="latest"] .home-product {
    width: 100%;
    box-sizing: border-box;
}

.home-product {
    background: #fff;
    border: 1px solid rgba(229, 233, 239, 0.65);
    border-radius: var(--pub-r-lg);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s cubic-bezier(.34, 1.56, .64, 1), border-color .3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    will-change: transform;
}

.home-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13, 27, 47, 0.10), 0 4px 12px rgba(13, 27, 47, 0.06);
    border-color: rgba(245, 183, 62, 0.25);
}

.home-product__media {
    aspect-ratio: 1/1;
    background: var(--pub-bg-soft);
    overflow: hidden;
    position: relative;
    display: block;
}

.home-product__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(13, 27, 47, 0.14));
    pointer-events: none;
    opacity: .85;
    transition: opacity .35s ease, background .35s ease;
}
.home-product:hover .home-product__media-overlay {
    opacity: 1;
    background: rgba(13, 27, 47, .32);
}

.home-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.home-product:hover .home-product__media img {
    transform: scale(1.06);
}

.home-product__media-fallback {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: grid;
    place-items: center;
    color: var(--pub-ink-mute);
    font-size: 38px;
}

.home-product__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: var(--pub-r-sm);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-product__badge--discount {
    background: linear-gradient(135deg, var(--text-dark-charcoal), var(--primary-dark-olive));
}

.home-product__badge--special {
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
    color: var(--pub-ink);
}

.home-product__badge--oos {
    background: linear-gradient(135deg, #64748b, #475569);
}

.home-product__badge--urgent {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    animation: home-badge-pulse 1.5s ease-in-out infinite;
}

.home-product__badge--ending {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

@keyframes home-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* عدّاد عرض محدود — Badge احترافي بحجم المحتوى فقط */
.home-product__countdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-block-start: 6px;
    padding: 3px 12px 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--pub-primary-dark, #3A4B29);
    background: rgba(203, 181, 119, 0.13);
    border: 1px solid rgba(203, 181, 119, 0.22);
    direction: ltr;
    line-height: 1.3;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.home-product__countdown i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pub-primary-dark, #3A4B29);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.home-product__countdown.is-expiring {
    color: #8A7025;
    background: rgba(203, 181, 119, 0.2);
    border-color: rgba(203, 181, 119, 0.35);
    box-shadow: 0 0 18px rgba(203, 181, 119, 0.18);
    animation: timer-glow 2.4s ease-in-out infinite;
}

.home-product__countdown.is-expiring i {
    background: #8A7025;
}

@keyframes timer-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(203, 181, 119, 0.12); }
    50% { box-shadow: 0 0 22px rgba(203, 181, 119, 0.28); }
}

.home-product__fav {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 233, 239, 0.6);
    color: #94a3b8;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), color .2s, background .2s, box-shadow .2s;
    backdrop-filter: blur(6px);
}

.home-product__fav:hover {
    color: var(--pub-primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(58, 75, 41, 0.20);
    border-color: rgba(58, 75, 41, 0.20);
}

.home-product__fav.is-fav {
    color: #e74c3c;
    background: #fff;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.20);
}

.home-product__fav.is-fav i,
.pp-wishlist-btn.is-fav i {
    color: #e74c3c !important;
}

.home-product__fav.is-busy {
    pointer-events: none;
    opacity: .6;
}

.home-product__fav.is-pop {
    animation: favPop .4s ease;
}

@keyframes favPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.home-product__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.home-product__headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    flex-wrap: wrap;
}

.home-product__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-product__name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--pub-ink);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.home-product__name a {
    color: inherit;
}

.home-product__footer {
    margin-top: auto;
    padding-top: 2px;
}

.home-product__price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(212, 217, 225, 0.55);
}

.home-product__price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.home-product__price-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
}

.home-product__price strong {
    font-size: 17px;
    color: var(--pub-primary-dark);
    font-weight: 800;
    opacity: 0.85;
}

.home-product__price del {
    color: var(--pub-ink-mute);
    font-size: 12px;
    margin-inline-start: 4px;
}

.home-product__price small {
    color: var(--pub-ink-soft);
    font-size: 11px;
}

.home-product__unit {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(13, 27, 47, 0.05);
}

.home-product__old {
    width: fit-content;
}

.home-product__add {
    width: 48px;
    height: 48px;
    border-radius: var(--pub-r-sm);
    border: 0;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
    color: var(--pub-ink);
    display: grid;
    place-items: center;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, color .2s;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 183, 62, 0.28);
}

.home-product__add:hover {
    background: linear-gradient(135deg, var(--pub-primary-dark), #b8861a);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(245, 183, 62, 0.35);
}

.home-product__add:active {
    transform: scale(.96);
}

.home-product__add.is-disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.home-product__rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    color: var(--pub-primary);
    font-size: 12px;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245, 183, 62, 0.09);
    flex-shrink: 0;
    white-space: nowrap;
    max-width: 100%;
}

.home-product__rating small {
    color: var(--pub-ink-soft);
    font-weight: 700;
}

.home-product__rating small,
.home-product__rating i {
    line-height: 1;
}

.home-product__rating--empty {
    opacity: .72;
}

.home-product--featured {
    border-radius: 28px;
    border: 2px solid rgba(240, 243, 248, 0.92);
    background: #fff;
    box-shadow: 0 14px 32px rgba(13, 27, 47, 0.08);
}

.home-product--featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(13, 27, 47, 0.12);
    border-color: rgba(241, 211, 145, 0.95);
}

.home-product--featured .home-product__media {
    min-height: 282px;
    border-bottom: 1px solid rgba(230, 235, 242, 0.7);
    border-radius: 24px 24px 0 0;
    background: #f3f6fa;
    display: block;
    overflow: hidden;
}

.home-product--featured .home-product__media img {
    height: 282px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.home-product--featured .home-product__media-fallback {
    min-height: 282px;
    background: #f3f6fa;
}

.home-product--featured .home-product__media-overlay {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(13, 27, 47, 0.10)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 38%);
}

.home-product--featured .home-product__badge {
    top: 18px;
    inset-inline-end: 18px;
    inset-inline-start: auto;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(13, 27, 47, 0.16);
}

.home-product--featured .home-product__fav {
    top: 18px;
    inset-inline-start: 18px;
    inset-inline-end: auto;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(13, 27, 47, 0.14);
}

.home-product--featured .home-product__body {
    padding: 16px 18px 18px;
    gap: 14px;
}

.home-product--featured .home-product__meta {
    min-height: 58px;
}

.home-product--featured .home-product__brand {
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    background: transparent;
    padding: 0;
    min-height: auto;
    color: #8a95a7;
}

.home-product--featured .home-product__name {
    font-size: 16px;
    min-height: 52px;
    line-height: 1.55;
    text-align: center;
}

.home-product--featured .home-product__rating {
    background: transparent;
    color: var(--pub-primary-dark);
    padding: 0;
    min-height: auto;
    width: auto;
}

.home-product--featured .home-product__rating small {
    color: var(--pub-ink-soft);
    font-weight: 700;
}

.home-product--featured .home-product__headline {
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    min-height: auto;
}

.home-product--featured .home-product__price-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(230, 235, 242, 0.9);
    padding-top: 14px;
}

.home-product--featured .home-product__price {
    flex: 1;
    align-items: center;
}

.home-product--featured .home-product__price-main {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.home-product--featured .home-product__price strong {
    font-size: 18px;
    color: var(--pub-primary-dark);
    white-space: nowrap;
    opacity: 0.85;
}

.home-product--featured .home-product__unit {
    background: #eef2f7;
    color: #7b8698;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    order: 3;
}

.home-product--featured .home-product__old {
    color: #8c97a6;
    font-size: 12px;
    white-space: nowrap;
    text-decoration-thickness: 2px;
}

.home-product--featured .home-product__add {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffc95c, #e8a400);
    color: #102b4f;
    box-shadow: 0 14px 26px rgba(232, 164, 0, 0.28);
}

.home-product--featured .home-product__add:hover {
    background: linear-gradient(180deg, #ffcf68, #db9a00);
    transform: translateY(-2px) scale(1.03);
}

.home-product--featured .home-product__add i {
    font-size: 20px;
}

/* ============ Skeleton Loading ============ */
@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.home-product.is-loading {
    pointer-events: none;
}

.home-product.is-loading .home-product__media {
    background: linear-gradient(90deg, var(--pub-bg-soft) 25%, #e8ecf2 50%, var(--pub-bg-soft) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s ease-in-out infinite;
}

.home-product.is-loading .home-product__media img {
    opacity: 0;
}

.home-product.is-loading .home-product__body>* {
    visibility: hidden;
}

.home-product.is-loading .home-product__body::after {
    content: '';
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pub-bg-soft) 25%, #e8ecf2 50%, var(--pub-bg-soft) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s ease-in-out infinite;
}

/* ============ PROMO BANNERS (4 cards) ============ */
.home-promos {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
    gap: 16px;
    margin-top: 50px;
}

/* ──────────────────────────────────────────────────────────────────
 * زر CTA لبطاقات الترويج — تصميم احترافي + موضع يسار البطاقة
 *   align-self: flex-end → ينزل إلى الأسفل
 *   margin-inline-start: auto → يدفع الزر إلى نهاية السطر (يسار في RTL)
 * ────────────────────────────────────────────────────────────────── */
.home-promo__cta {
    align-self: flex-end;
    margin-inline-start: auto;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--pub-r-full);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .2px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .25s ease, background .2s, color .2s;
    position: relative;
    overflow: hidden;
}

/* بطاقة غامقة — زر ذهبي بارز */
.home-promo--dark .home-promo__cta {
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
    color: var(--pub-ink);
    box-shadow: 0 6px 16px rgba(245, 183, 62, 0.35);
}

/* بطاقة كريمية — زر داكن أنيق */
.home-promo--cream .home-promo__cta {
    background: var(--pub-ink);
    color: #fff;
    box-shadow: 0 6px 16px rgba(13, 27, 47, 0.18);
}

/* ============ Empty State (home-empty) ============ */
.home-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 48px 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px dashed var(--pub-border-strong);
    border-radius: var(--pub-r-lg);
}

.home-empty i {
    font-size: 38px;
    color: var(--pub-ink-mute);
    margin-bottom: 10px;
}

.home-empty h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.home-empty p {
    color: var(--pub-ink-soft);
    margin: 0;
    font-size: 13px;
}

.home-empty--lg i {
    font-size: 42px;
    margin-bottom: 12px;
}

.home-empty--lg h3 {
    font-size: 18px;
    margin: 0 0 6px;
}

.home-empty--lg p {
    font-size: 14px;
    margin: 0;
}

.home-section--last {
    padding-bottom: 24px;
}

/* ============ Featured, Top Rated & Offers Sections ============ */
.home-section--toprated {
    background: var(--home-section-gradient, linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 248, 242, 0.95) 100%));
    padding-bottom: 40px;
}

.home-section--toprated .home-cat {
    background: #fff;
}

.home-section--toprated .home-product--featured {
    border-radius: 24px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .home-cats-carousel {
        --cat-carousel-visible: 3;
    }

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

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

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

    .home-feature {
        border-inline-start: 0;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    .home-hero__media {
        order: 1;
        margin-inline: calc(50% - 50vw);
        aspect-ratio: 16 / 9;
    }

    .home-hero__media::after {
        background:
            linear-gradient(90deg, rgba(253, 252, 248, 0.82) 0%, rgba(253, 252, 248, 0) 10%, rgba(253, 252, 248, 0) 90%, rgba(253, 252, 248, 0.82) 100%),
            linear-gradient(180deg, rgba(253, 252, 248, 0.72) 0%, rgba(253, 252, 248, 0) 12%, rgba(253, 252, 248, 0) 84%, rgba(239, 237, 226, 0.82) 100%);
    }

    .home-hero__content {
        order: 2;
        max-width: none;
        justify-self: stretch;
        padding: 24px 0 32px;
    }

    .home-hero__dots {
        bottom: 14px;
    }

    .home-hero__trust {
        flex-direction: column;
        gap: 14px;
        border-top: 0;
        padding-top: 10px;
    }

    .home-hero__trust-item {
        border-inline-start: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .home-features__inner {
        grid-template-columns: 1fr;
    }

    .home-section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .home-section__title-wrap {
        gap: 12px;
    }

    .home-cats-carousel {
        --cat-carousel-visible: 2;
    }

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

    .home-section--curated .home-products {
        padding: 18px;
    }

    .home-products__page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-product--featured .home-product__media,
    .home-product--featured .home-product__media img,
    .home-product--featured .home-product__media-fallback {
        min-height: 240px;
    }
    
    .home-product--featured .home-product__price-row,
    .home-product--featured .home-product__price-main {
        gap: 8px;
    }

    .home-section--last {
        padding-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .home-cats-carousel {
        --cat-carousel-visible: 1;
    }

    .home-products,
    .home-products__page {
        grid-template-columns: 1fr;
    }

    .home-featured-pagination {
        --slider-control-size: 36px;
        gap: 8px;
    }

    .home-featured-pagination__pages {
        min-width: 0;
        width: auto;
        gap: var(--slider-dot-gap);
        padding: var(--slider-dot-shell-padding);
    }

    .home-featured-pagination__btn--arrow {
        width: var(--slider-control-size);
        height: var(--slider-control-size);
    }

    .home-featured-pagination__btn--dot {
        width: var(--slider-dot-hit-size);
        height: var(--slider-dot-hit-size);
        border-radius: 50%;
    }

    .home-product--featured .home-product__price-row {
        gap: 10px;
    }

    .home-section--last {
        padding-bottom: 14px;
    }
}

/* ============ Offers Page (off-) ============ */
.off-banner {
    background: linear-gradient(135deg, var(--pub-ink) 0%, #1a2b47 100%);
    color: #fff;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.off-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 183, 62, 0.22), transparent 55%);
    pointer-events: none;
}

.off-banner__row {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

.off-banner__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 183, 62, 0.18);
    border: 2px solid rgba(245, 183, 62, 0.35);
    color: var(--pub-primary);
    display: grid;
    place-items: center;
    font-size: 32px;
    flex-shrink: 0;
}

.off-banner h1 {
    margin: 0 0 4px;
    font-size: 30px;
    font-weight: 800;
}

.off-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.off-banner .crumbs {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-bottom: 10px;
}

.off-banner .crumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.off-banner .crumbs a:hover {
    color: var(--pub-primary);
}

.off-empty {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px dashed var(--pub-border-strong);
    border-radius: var(--pub-r-lg);
    padding: 60px 20px;
    text-align: center;
    color: var(--pub-ink-soft);
    max-width: 560px;
    margin: 0 auto;
}

.off-empty i {
    font-size: 48px;
    color: var(--pub-primary-dark);
    margin-bottom: 14px;
    display: block;
}

.off-empty h3 {
    margin: 0 0 6px;
    color: var(--pub-ink);
}

.off-empty p {
    margin: 0 0 18px;
}

.off-section {
    padding: 36px 0 60px;
}

@media (max-width: 480px) {
    .home-section--categories {
        padding-top: 12px;
    }

    .home-section__title-wrap p {
        font-size: 13px;
    }

    .home-cat__topline {
        align-items: flex-start;
    }

    .home-cat__name {
        font-size: 16px;
    }

    .home-cat__desc {
        min-height: auto;
    }
}