/* ============================================================
   Ahlan Pet — Premium home experience.
   Same design language as the product page (.pp system),
   namespaced under .hh (home hero) / .hp (home premium).
   Mobile-first, logical properties for RTL, reduced-motion aware.
   Loaded only on the home page, after the theme bundle.
   ============================================================ */

.pp *,
.pp *::before,
.pp *::after {
    box-sizing: border-box;
}

/* Reuse product-page tokens if present, with resilient fallbacks */
:root {
    --pp-ink: #14231f;
    --pp-ink-soft: #5d6b66;
    --pp-faint: #8a948f;
    --pp-line: #e8e6df;
    --pp-surface: #f6f5f0;
    --pp-card: #ffffff;
    --pp-primary: #0b7d67;
    --pp-primary-deep: #085e4e;
    --pp-primary-tint: #e6f4f0;
    --pp-accent: #b45309;
    --pp-accent-tint: #fdf0dd;
    --pp-danger: #b42318;
    --pp-star: #f59e0b;
    --pp-r-lg: 20px;
    --pp-r-md: 14px;
    --pp-r-sm: 10px;
    --pp-sh-1: 0 1px 2px rgb(20 35 31 / 6%), 0 1px 4px rgb(20 35 31 / 6%);
    --pp-sh-2: 0 2px 6px rgb(20 35 31 / 6%), 0 14px 34px -14px rgb(20 35 31 / 20%);
    --pp-ease: cubic-bezier(.22, .61, .21, 1);
}

main.hp {
    font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--pp-ink);
    background: var(--pp-surface);
    padding-bottom: 34px;
}

main.hp a {
    color: inherit;
    text-decoration: none;
}

main.hp img {
    max-width: 100%;
}

.hp-container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* ---------- Reveal ---------- */
main.hp .pp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s var(--pp-ease), transform .65s var(--pp-ease);
}

main.hp .pp-reveal.is-revealed {
    opacity:1;
    transform: none;
}

main.hp .hp-head {
    scroll-margin-top: 130px;
}

.hp-head::after {
    content: "";
    flex: 1;
    height: 2px;
    margin-inline-start: 14px;
    margin-bottom: 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pp-primary), transparent);
}

.hp-head .hp-head-titles + .hp-see-all {
    flex: 0 0 auto;
}

/* ---------- Shared section header ---------- */
.hp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 34px 0 18px;
}

.hp-head-titles {
    min-width: 0;
}

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--pp-primary);
}

.hp-title {
    position: relative;
    margin: 0;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--pp-ink);
}

.hp-sub {
    margin: 5px 0 0;
    font-size: .9rem;
    color: var(--pp-ink-soft);
}

.hp-see-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1.5px solid var(--pp-line);
    border-radius: 999px;
    background: var(--pp-card);
    font-size: .84rem;
    font-weight: 700;
    color: var(--pp-ink-soft);
    box-shadow: var(--pp-sh-1);
    transition: color .2s var(--pp-ease), border-color .2s var(--pp-ease), transform .2s var(--pp-ease);
}

.hp-see-all:hover {
    color: var(--pp-primary-deep);
    border-color: var(--pp-primary);
    transform: translateY(-1px);
}

.hp-see-all i {
    font-size: .72rem;
    transition: translate .2s var(--pp-ease);
}

[dir="rtl"] .hp-see-all i {
    rotate: 180deg;
}

.hp-see-all:hover i {
    translate: 3px 0;
}

[dir="rtl"] .hp-see-all:hover i {
    translate: -3px 0;
}

/* ============================================================
   Hero
   ============================================================ */
.hh-hero {
    padding-block: 14px 4px;
}

.hh-hero-grid {
    display: grid;
    gap: 14px;
}

/* Media (banner image or fallback gradient) */
.hh-hero-media {
    position: relative;
    display: block;
    border-radius: var(--pp-r-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #0d6e5c, #0a5548 55%, #093f37);
    min-height: 320px;
    box-shadow: var(--pp-sh-2);
}

.hh-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 6s var(--pp-ease);
}

.hh-hero-media:hover img {
    transform: scale(1.045);
}

.hh-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgb(8 30 26 / 72%) 8%, rgb(8 30 26 / 26%) 58%, transparent);
    pointer-events: none;
}

[dir="rtl"] .hh-hero-veil {
    background: linear-gradient(-105deg, rgb(8 30 26 / 72%) 8%, rgb(8 30 26 / 26%) 58%, transparent);
}

.hh-hero-copy {
    position: absolute;
    inset: auto 20px 20px 20px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hh-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgb(255 255 255 / 16%);
    border: 1px solid rgb(255 255 255 / 28%);
    backdrop-filter: blur(6px);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hh-hero-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.1rem + 3.4vw, 2.6rem);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgb(0 0 0 / 35%);
}

.hh-hero-sub {
    margin: 0;
    max-width: 46ch;
    font-size: .95rem;
    line-height: 1.55;
    color: rgb(255 255 255 / 88%);
}

.hh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: .94rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s var(--pp-ease), transform .2s var(--pp-ease), box-shadow .2s var(--pp-ease);
}

.hh-btn--light {
    background: #fff;
    color: var(--pp-primary-deep);
    box-shadow: 0 12px 26px -12px rgb(0 0 0 / 45%);
}

main.hp .hh-btn--light {
    color: var(--pp-primary-deep);
}

main.hp .hh-btn--primary {
    color: #fff;
}

.hh-btn--light:hover {
    background: #f2fbf8;
    transform: translateY(-2px);
}

.hh-btn--primary {
    background: var(--pp-primary);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgb(11 125 103 / 65%);
}

.hh-btn--primary:hover {
    background: var(--pp-primary-deep);
    transform: translateY(-2px);
}

.hh-btn i {
    font-size: .8rem;
    transition: translate .2s var(--pp-ease);
}

[dir="rtl"] .hh-btn > i {
    rotate: 180deg;
}

.hh-btn:hover i {
    translate: 3px 0;
}

[dir="rtl"] .hh-btn:hover > i {
    translate: -3px 0;
}

/* Small stacked offer cards (top-right-up / top-right-down) */
.hh-hero-cards {
    display: grid;
    gap: 14px;
}

.hh-mini {
    position: relative;
    display: block;
    border-radius: var(--pp-r-lg);
    overflow: hidden;
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
    box-shadow: var(--pp-sh-1);
    min-height: 148px;
}

.hh-mini img {
    width: 100%;
    height: 100%;
    min-height: 148px;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .5s var(--pp-ease);
}

.hh-mini:hover img {
    transform: scale(1.05);
}

.hh-mini-body {
    position: absolute;
    inset: auto 14px 14px 14px;
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 10px rgb(0 0 0 / 55%);
}

.hh-mini-body strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
}

.hh-mini-body span {
    font-size: .8rem;
    opacity: .92;
}

.hh-mini::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgb(8 18 16 / 62%));
    pointer-events: none;
}

/* USP strip */
.hh-usp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.hh-usp-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-r-md);
    box-shadow: var(--pp-sh-1);
    transition: transform .2s var(--pp-ease), border-color .2s var(--pp-ease);
}

.hh-usp-item:hover {
    transform: translateY(-2px);
    border-color: var(--pp-primary);
}

.hh-usp-item i {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--pp-primary-tint);
    color: var(--pp-primary-deep);
    font-size: 1rem;
}

.hh-usp-item strong {
    display: block;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
}

.hh-usp-item span {
    font-size: .76rem;
    color: var(--pp-ink-soft);
}

/* ============================================================
   Category tiles
   ============================================================ */
.hp-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hp-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 118px;
    padding: 18px 10px;
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-r-lg);
    box-shadow: var(--pp-sh-1);
    text-align: center;
    transition: transform .25s var(--pp-ease), box-shadow .25s var(--pp-ease), border-color .25s var(--pp-ease);
}

.hp-cat:hover {
    transform: translateY(-4px);
    box-shadow: var(--pp-sh-2);
    border-color: var(--pp-primary);
}

.hp-cat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: var(--pp-primary-tint);
    color: var(--pp-primary-deep);
    transition: transform .25s var(--pp-ease), background .25s var(--pp-ease), color .25s var(--pp-ease);
}

.hp-cat:hover .hp-cat-icon {
    transform: scale(1.08) rotate(-4deg);
    background: var(--pp-primary);
    color: #fff;
}

.hp-cat-name {
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pp-ink);
}

/* ============================================================
   Product rails
   ============================================================ */
.hp-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(196px, 58vw, 250px);
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    scroll-padding-inline-start: 4px;
}

.hp-rail::-webkit-scrollbar {
    display: none;
}

.hp-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-r-lg);
    overflow: hidden;
    transition: transform .25s var(--pp-ease), box-shadow .25s var(--pp-ease);
}

.hp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pp-sh-2);
}

.hp-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    padding: 10px;
    background: #fbfaf7;
}

.hp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s var(--pp-ease);
}

.hp-card:hover .hp-card-media img {
    transform: scale(1.05);
}

.hp-flag {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    box-shadow: var(--pp-sh-1);
}

.hp-flag--sale {
    background: var(--pp-accent);
}

.hp-flag--new {
    background: var(--pp-primary);
}

.hp-flag--out {
    background: var(--pp-ink);
}

.hp-fav {
    position: absolute;
    top: 9px;
    inset-inline-end: 9px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pp-line);
    border-radius: 50%;
    background: rgb(255 255 255 / 92%);
    color: var(--pp-danger);
    font-size: .9rem;
    cursor: pointer;
    box-shadow: var(--pp-sh-1);
    transition: transform .2s var(--pp-ease), background .2s var(--pp-ease);
}

.hp-fav:hover {
    transform: scale(1.1);
    background: #fff;
}

.hp-fav.is-active i::before {
    content: "\f004";
}

.hp-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px 16px;
}

.hp-card-name {
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.42;
    color: var(--pp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.hp-card-name:hover {
    color: var(--pp-primary-deep);
}

.hp-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
}

.hp-card-now {
    font-size: 1.04rem;
    font-weight: 800;
    color: var(--pp-primary-deep);
}

.hp-card-price del {
    font-size: .78rem;
    color: var(--pp-faint);
}

.hp-card-off {
    font-size: .72rem;
    font-weight: 800;
    color: var(--pp-accent);
    background: var(--pp-accent-tint);
    padding: 2px 8px;
    border-radius: 999px;
}

.hp-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.hp-card-stars {
    display: inline-flex;
    gap: 2px;
    color: #d8d5cc;
    font-size: .72rem;
}

.hp-card-stars .is-on {
    color: var(--pp-star);
}

.hp-card-norev {
    font-size: .72rem;
    font-weight: 600;
    color: var(--pp-faint);
}

.hp-stock {
    font-size: .72rem;
    font-weight: 700;
}

.hp-stock--in {
    color: var(--pp-primary-deep);
}

.hp-stock--out {
    color: var(--pp-danger);
}

/* ============================================================
   Offer duo (under-category-one / two)
   ============================================================ */
.hp-offers {
    display: grid;
    gap: 14px;
}

.hp-offer {
    position: relative;
    display: block;
    border-radius: var(--pp-r-lg);
    overflow: hidden;
    min-height: 172px;
    background: linear-gradient(120deg, #0d6e5c, #0a5548);
    box-shadow: var(--pp-sh-1);
}

.hp-offer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--pp-ease);
}

.hp-offer:hover img {
    transform: scale(1.045);
}

.hp-offer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgb(7 26 22 / 68%), rgb(7 26 22 / 18%) 62%, transparent);
    pointer-events: none;
}

[dir="rtl"] .hp-offer::after {
    background: linear-gradient(-100deg, rgb(7 26 22 / 68%), rgb(7 26 22 / 18%) 62%, transparent);
}

.hp-offer-body {
    position: absolute;
    inset: auto 18px 16px 18px;
    z-index: 2;
    color: #fff;
}

.hp-offer-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ffd9a8;
}

.hp-offer-title {
    margin: 4px 0 10px;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    max-width: 34ch;
}

/* ============================================================
   Food pantry (long banner + duo)
   ============================================================ */
.hp-food-strip {
    position: relative;
    display: block;
    border-radius: var(--pp-r-lg);
    overflow: hidden;
    min-height: 96px;
    background: linear-gradient(120deg, #7c3aed22, transparent), var(--pp-ink);
    box-shadow: var(--pp-sh-1);
}

.hp-food-strip img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hp-food-strip-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 22px 16px;
    color: #fff;
    text-align: center;
}

.hp-food-strip-body strong {
    font-size: 1.02rem;
    font-weight: 800;
}

.hp-coupon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 14%);
    border: 1px dashed rgb(255 255 255 / 55%);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .06em;
}

/* ============================================================
   Big CTA banner (under-best-seller)
   ============================================================ */
.hp-banner {
    position: relative;
    display: block;
    border-radius: var(--pp-r-lg);
    overflow: hidden;
    box-shadow: var(--pp-sh-2);
    margin-top: 34px;
}

.hp-banner img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s var(--pp-ease);
}

.hp-banner:hover img {
    transform: scale(1.03);
}

.hp-banner-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 46px 18px 18px;
    background: linear-gradient(transparent, rgb(10 18 16 / 80%));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hp-banner-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .88;
}

.hp-banner-title {
    font-size: 1.22rem;
    font-weight: 800;
}

.hp-banner-text {
    font-size: .85rem;
    opacity: .9;
    display: none;
}

/* ============================================================
   Sidebar: trending + comment (also used in mobile rails)
   ============================================================ */
.hp-side {
    display: none;
}

.hp-side-grid {
    display: grid;
    gap: 18px;
}

.hp-panel {
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-r-lg);
    padding: 18px;
    box-shadow: var(--pp-sh-1);
}

.hp-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1.04rem;
    font-weight: 800;
}

.hp-panel-title > i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--pp-primary-tint);
    color: var(--pp-primary-deep);
    display: grid;
    place-items: center;
    font-size: .88rem;
}

.hp-trend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.hp-trend li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border-radius: var(--pp-r-md);
    transition: background .2s var(--pp-ease);
}

.hp-trend li:hover {
    background: var(--pp-surface);
}

.hp-trend-rank {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--pp-primary-tint);
    color: var(--pp-primary-deep);
    font-size: .76rem;
    font-weight: 800;
}

.hp-trend img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 1px solid var(--pp-line);
    border-radius: 10px;
    background: #fff;
    padding: 3px;
}

.hp-trend-info {
    min-width: 0;
}

.hp-trend-name {
    display: block;
    font-size: .83rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pp-ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hp-trend-name:hover {
    color: var(--pp-primary-deep);
}

.hp-trend-price {
    font-size: .85rem;
    font-weight: 800;
    color: var(--pp-primary-deep);
}

.hp-comment {
    position: relative;
}

.hp-comment p {
    margin: 0 0 14px;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--pp-ink-soft);
}

.hp-comment p::before {
    content: "\201C";
    color: var(--pp-primary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 0;
    vertical-align: -0.35em;
    margin-inline-end: 4px;
}

.hp-comment-who {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-comment-who img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pp-primary-tint);
}

.hp-comment-who strong {
    display: block;
    font-size: .9rem;
}

.hp-comment-who span {
    font-size: .76rem;
    color: var(--pp-faint);
}

.hp-side-banner {
    position: relative;
    display: block;
    border-radius: var(--pp-r-lg);
    overflow: hidden;
    background: linear-gradient(150deg, #0d6e5c, #093f37);
    border: 1px solid var(--pp-line);
    box-shadow: var(--pp-sh-1);
    min-height: 220px;
}

.hp-side-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--pp-ease);
}

.hp-side-banner:hover img {
    transform: scale(1.045);
}

.hp-side-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgb(8 18 16 / 66%));
    pointer-events: none;
}

/* Rail scroll affordances (classes set by home-premium.js) */
.hp-rail.has-more-end {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);

    mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}

.hp-rail.has-more-start {
    -webkit-mask-image: linear-gradient(-90deg, #000 calc(100% - 44px), transparent);

    mask-image: linear-gradient(-90deg, #000 calc(100% - 44px), transparent);
}

.hp-rail.has-more-start.has-more-end {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px calc(100% - 44px), transparent);

    mask-image: linear-gradient(90deg, transparent, #000 44px calc(100% - 44px), transparent);
}

[dir="rtl"] .hp-rail.has-more-end {
    -webkit-mask-image: linear-gradient(-90deg, #000 calc(100% - 44px), transparent);

    mask-image: linear-gradient(-90deg, #000 calc(100% - 44px), transparent);
}

[dir="rtl"] .hp-rail.has-more-start {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);

    mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}

/* ============================================================
   Desktop ≥ 768
   ============================================================ */
@media (min-width: 768px) {
    .hp-container {
        padding-inline: 24px;
    }

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

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

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

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

    .hp-offers {
        grid-template-columns: 1fr 1fr;
    }

    .hp-banner-text {
        display: block;
    }

    .hp-title {
        font-size: 1.58rem;
    }
}

/* ============================================================
   Desktop ≥ 1200: premium two-column shell with sticky sidebar
   ============================================================ */
@media (min-width: 1200px) {
    main.hp {
        padding-bottom: 56px;
    }

    .hp-shell {
        display: grid;
        grid-template-columns: 296px minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    .hp-side {
        display: grid;
        gap: 16px;
        position: sticky;
        top: 120px;
    }

    .hp-side .hp-panel + .hp-panel {
        margin-top: 0;
    }

    .hh-hero-grid {
        grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
    }

    .hh-hero-media,
    .hh-hero-media img {
        min-height: 460px;
    }

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

    .hh-mini,
    .hh-mini img {
        min-height: 223px;
    }

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

    .hp-rail {
        grid-auto-columns: clamp(220px, 21vw, 252px);
    }

    .hp-banner {
        margin-top: 42px;
    }

    /* Hide side-only sections in main column on desktop */
    .hp-inmain-only {
        display: none;
    }
}

/* On < 1200 the sidebar panels render inside the content flow */
.hp-inflow {
    display: grid;
    gap: 34px;
    margin-top: 34px;
}

@media (min-width: 1200px) {
    .hp-inflow {
        display: none;
    }
}

/* ============================================================
   RTL refinements
   ============================================================ */
[dir="rtl"] main.hp .hp-comment p::before {
    content: "\201D";
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    main.hp *,
    main.hp *::before,
    main.hp *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    main.hp .pp-reveal {
        opacity: 1;
        transform: none;
    }
}
