/* Horeca Max — premium layer (2026-11). Loaded after brand.css; refines it without replacing it.
   Gold is reserved for "Meilleures ventes" so best products stand out at a glance. */
:root {
    --hm-gold: #D9A23A;
    --hm-gold-light: #F6D58B;
    --hm-gold-deep: #A8741A;
    --hm-gold-grad: linear-gradient(135deg, #F6D58B 0%, #D9A23A 45%, #A8741A 100%);
    --hm-steel: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
    --hm-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Global polish ---------- */
body { text-rendering: optimizeLegibility; }
.section-title { letter-spacing: -0.025em; }
.btn-primary { background-image: linear-gradient(135deg, #F36A2E 0%, var(--hm-orange) 55%, var(--hm-orange-dark) 100%); }
.btn-primary:hover { background-image: linear-gradient(135deg, var(--hm-orange) 0%, var(--hm-orange-dark) 100%); }
.btn-gold {
    --bs-btn-color: var(--hm-navy-ink); --bs-btn-hover-color: var(--hm-navy-ink); --bs-btn-active-color: var(--hm-navy-ink);
    background: var(--hm-gold-grad); border: 0; font-weight: 800;
    box-shadow: 0 10px 26px -10px rgba(217, 162, 58, .8);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Honeypot (anti-spam): invisible for people, still in the DOM for bots.
   Clipped in place rather than pushed off-screen: in Arabic (RTL) a far-left element made the whole page scroll sideways. */
.hm-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* ---------- Header ---------- */
.site-navbar { box-shadow: 0 1px 0 rgba(10, 35, 66, .04); }
.nav-link-best { color: var(--hm-gold-deep) !important; display: inline-flex; align-items: center; gap: .35rem; }
.nav-link-best i { color: var(--hm-gold); }

/* ---------- Hero ---------- */
.hero-section { isolation: isolate; }
.hero-section .hero-orb {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0;
}
.hero-section .hero-orb-1 { width: 420px; height: 420px; background: rgba(238, 90, 30, .45); top: -140px; inset-inline-end: -60px; animation: hmFloat 14s ease-in-out infinite; }
.hero-section .hero-orb-2 { width: 360px; height: 360px; background: rgba(41, 109, 190, .45); bottom: -180px; inset-inline-start: -80px; animation: hmFloat 18s ease-in-out infinite reverse; }
@keyframes hmFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 24px); } }

.hero-kitchen {
    position: absolute; inset-inline: 0; bottom: 0; height: 150px; z-index: 0; pointer-events: none;
    opacity: .22; color: #fff;
}
.hero-kitchen svg { width: 100%; height: 100%; }
.hero-kitchen .flame { fill: var(--hm-orange); opacity: .9; transform-origin: center bottom; animation: hmFlame 1.8s ease-in-out infinite; }
.hero-kitchen .flame:nth-child(2n) { animation-delay: .4s; }
.hero-kitchen .steam { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .6; animation: hmSteam 4s ease-in-out infinite; }
@keyframes hmFlame { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.18); } }
@keyframes hmSteam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .6; } 100% { opacity: 0; transform: translateY(-18px); } }

.hero-search {
    display: flex; align-items: center; gap: .5rem; max-width: 600px; margin-bottom: 1.4rem;
    background: rgba(255, 255, 255, .97); border-radius: 16px; padding: .45rem .45rem .45rem 1rem;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .25);
}
html[dir="rtl"] .hero-search { padding: .45rem 1rem .45rem .45rem; }
.hero-search i.bi-search { color: var(--hm-muted); font-size: 1.1rem; }
.hero-search input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: 1rem; color: var(--hm-text); padding: .55rem .25rem;
}
.hero-search .btn { border-radius: 12px; padding: .7rem 1.3rem; white-space: nowrap; }

.hero-actions .btn-outline-light { backdrop-filter: blur(6px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-stat {
    min-width: 140px; padding: .85rem 1.1rem; border-radius: 14px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-stat strong { display: block; font-family: var(--hm-display); font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1.1; }
html[dir="rtl"] .hero-stat strong { font-family: 'Cairo', sans-serif; }
.hero-stat span { font-size: .8rem; color: rgba(255, 255, 255, .7); }

/* Showcase card (right side of the hero): real catalogue photos */
.hero-showcase {
    position: relative; border-radius: 22px; padding: 1.25rem;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.hero-showcase-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; color: #fff; font-weight: 800; }
.hero-showcase-head .pill { font-size: .72rem; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; background: var(--hm-gold-grad); color: var(--hm-navy-ink); }
.hero-showcase-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; }
.hero-showcase-item {
    position: relative; display: block; overflow: hidden; border-radius: 16px; background: #fff;
    aspect-ratio: 1 / 1; transition: transform .35s var(--hm-ease), box-shadow .35s var(--hm-ease);
}
.hero-showcase-item:first-child { grid-row: span 2; aspect-ratio: auto; }
.hero-showcase-item img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.hero-showcase-item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.hero-showcase-item .cap {
    position: absolute; inset-inline: 0; bottom: 0; padding: .55rem .7rem;
    background: linear-gradient(0deg, rgba(7, 26, 48, .92), rgba(7, 26, 48, 0));
    color: #fff; font-size: .78rem; font-weight: 700; line-height: 1.3;
}
.hero-showcase-item .cap .price { display: block; color: var(--hm-gold-light); font-weight: 800; }
.hero-showcase-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: #fff; font-weight: 700; font-size: .9rem; }
.hero-showcase-more:hover { color: var(--hm-gold-light); }

/* ---------- Best products band ---------- */
.hm-best {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(700px 300px at 10% 0%, rgba(217, 162, 58, .22), transparent 60%),
        radial-gradient(700px 320px at 95% 100%, rgba(238, 90, 30, .18), transparent 60%),
        linear-gradient(160deg, #0d2a4d 0%, var(--hm-navy-ink) 100%);
}
.hm-best .section-eyebrow { color: var(--hm-gold-light); }
.hm-best .section-eyebrow::before { background: var(--hm-gold); }
.hm-best .section-title { color: #fff; }
.hm-best .section-sub { color: rgba(255, 255, 255, .72); max-width: 640px; }
.best-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.best-nav { display: flex; gap: .5rem; }
.best-nav button {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.1rem; transition: background .2s, border-color .2s;
}
.best-nav button:hover { background: var(--hm-gold); border-color: var(--hm-gold); color: var(--hm-navy-ink); }
.best-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem; scrollbar-width: thin;
    scrollbar-color: rgba(217, 162, 58, .6) transparent;
}
@media (min-width: 992px) { .best-track { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); } }
.best-track > * { scroll-snap-align: start; }

/* Gold card: a soft moving sheen on the border, no flashing */
.best-card {
    position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden;
    background: #fff; color: var(--hm-text);
    box-shadow: 0 0 0 1.5px rgba(217, 162, 58, .55), 0 26px 50px -26px rgba(0, 0, 0, .7);
    transition: transform .35s var(--hm-ease), box-shadow .35s var(--hm-ease);
}
.best-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
    background: linear-gradient(120deg, transparent 20%, rgba(246, 213, 139, .95) 45%, transparent 70%) 0 0 / 250% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: hmSheen 5s linear infinite;
}
@keyframes hmSheen { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.best-card:hover { transform: translateY(-6px); color: var(--hm-text); box-shadow: 0 0 0 2px var(--hm-gold), 0 34px 60px -26px rgba(0, 0, 0, .8); }
.best-card .best-img { position: relative; aspect-ratio: 4 / 3; background: var(--hm-steel); }
.best-card .best-img img { width: 100%; height: 100%; object-fit: contain; padding: .9rem; transition: transform .5s var(--hm-ease); }
.best-card:hover .best-img img { transform: scale(1.05); }
.best-card .best-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1 1 auto; }
.best-card h3 { font-size: 1rem; font-weight: 800; color: var(--hm-navy-dark); margin: 0; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.best-card .best-price { margin-top: auto; font-family: var(--hm-display); font-weight: 800; font-size: 1.12rem; color: var(--hm-orange-dark); }
html[dir="rtl"] .best-card .best-price { font-family: 'Cairo', sans-serif; }
.best-card .best-cta { font-size: .85rem; font-weight: 700; color: var(--hm-navy); display: inline-flex; gap: .3rem; align-items: center; }

/* Star badge (best cards, product grid, product page) */
.hm-star-badge {
    position: absolute; top: .7rem; inset-inline-start: .7rem; z-index: 3;
    display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem .3rem .5rem;
    border-radius: 999px; background: var(--hm-gold-grad); color: var(--hm-navy-ink);
    font-size: .72rem; font-weight: 800; letter-spacing: .02em; overflow: hidden;
    box-shadow: 0 6px 16px -6px rgba(168, 116, 26, .9);
}
html[dir="rtl"] .hm-star-badge { padding: .3rem .5rem .3rem .65rem; letter-spacing: 0; }
.hm-star-badge i { font-size: .85rem; animation: hmStarPulse 2.6s ease-in-out infinite; }
.hm-star-badge::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
    animation: hmBadgeShine 3.5s ease-in-out infinite;
}
@keyframes hmBadgeShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes hmStarPulse { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); } }

/* Product grid: featured cards get a gold ring */
.product-card.is-featured { box-shadow: 0 0 0 2px rgba(217, 162, 58, .75), 0 18px 40px -24px rgba(168, 116, 26, .65) !important; border-color: transparent; }
.product-card.is-featured:hover { box-shadow: 0 0 0 2px var(--hm-gold), var(--hm-shadow-lg) !important; }
.product-card img { object-fit: contain; background: var(--hm-steel); padding: .6rem; }
.product-card .card-body { display: flex; flex-direction: column; }
.product-card .card-body .btn { margin-top: auto; }

/* Product page */
.hm-best-pill {
    display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .5rem;
    padding: .3rem .75rem; border-radius: 999px; background: var(--hm-gold-grad); color: var(--hm-navy-ink);
    font-size: .78rem; font-weight: 800;
}
.hm-best-pill i { animation: hmStarPulse 2.6s ease-in-out infinite; }
.product-main-image { background: var(--hm-steel); }

/* ---------- Category tiles & sections ---------- */
.category-tile { box-shadow: 0 20px 40px -28px rgba(7, 26, 48, .7); }
.category-tile .tile-cta i { transition: transform .25s var(--hm-ease); }
.category-tile:hover .tile-cta i { transform: translateX(4px); }
html[dir="rtl"] .category-tile:hover .tile-cta i { transform: translateX(-4px); }
.why-card .trust-item .icon, .trust-item .icon {
    background: linear-gradient(135deg, var(--hm-orange-soft), #ffe2d3);
    box-shadow: inset 0 0 0 1px rgba(238, 90, 30, .15);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero-section .hero-orb, .hero-kitchen .flame, .hero-kitchen .steam,
    .best-card::before, .hm-star-badge i, .hm-star-badge::after, .hm-best-pill i { animation: none !important; }
    .best-card, .best-card .best-img img, .hero-showcase-item { transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    .hero-search { flex-wrap: wrap; padding: .45rem; }
    .hero-search i.bi-search { display: none; }
    .hero-search input { padding: .6rem .7rem; }
    .hero-search .btn { width: 100%; }
    .hero-stat { flex: 1 1 40%; min-width: 0; }
    .best-track { grid-auto-columns: 78%; }
}

/* ---------- Spare-part request: access buttons (header, home hero, product page) ---------- */
.hdr-piece-btn {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .8rem; border-radius: 10px;
    background: #FFF1E7; border: 1.5px solid rgba(232, 93, 4, .55); color: #B84A03; font-weight: 700; font-size: .86rem;
    text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hdr-piece-btn:hover, .hdr-piece-btn:focus-visible { background: #E85D04; border-color: #E85D04; color: #fff; }
.hdr-piece-btn i { font-size: 1rem; }
@media (max-width: 380px) { .hdr-piece-btn { padding: .4rem .6rem; font-size: .8rem; } }
/* 992-1199 px (small laptops, tablets in landscape): the full menu is shown but the row was ~65 px wider than the
   screen, which made the whole page scroll sideways. Tighter links and an icon-only spare-part button make it fit. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-navbar .navbar-brand { margin-inline-end: .5rem; }
    .site-navbar .navbar-brand img { height: 46px; }
    .site-navbar .nav-link { padding-inline: .4rem !important; font-size: .86rem; }
    .site-navbar .nav-link:not(.dropdown-toggle)::after { inset-inline: .4rem; }
    .hdr-piece-btn { padding: .4rem .65rem; }
    .hdr-piece-btn > span { display: none !important; }
}
.hero-piece-btn { color: #1B3A5F; font-weight: 700; border: 0; }
.hero-piece-btn i { color: #E85D04; }
.hero-piece-btn:hover { background: #fff; color: #E85D04; }
@media (prefers-reduced-motion: no-preference) {
    .hero-piece-btn { animation: hm-nudge .9s ease-in-out 1.4s 1 both; }
}
@keyframes hm-nudge {
    0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(232, 93, 4, 0); }
    30% { transform: translateY(-3px); box-shadow: 0 0 0 6px rgba(232, 93, 4, .35); }
    60% { transform: none; box-shadow: 0 0 0 12px rgba(232, 93, 4, 0); }
}
@media (max-width: 575.98px) { .hero-actions .hero-piece-btn, .hero-actions .btn-primary { width: 100%; justify-content: center; } }
.pr-product-link {
    display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px;
    background: #F3F6FA; border: 1px solid #DCE3EC; color: #1B3A5F; text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.pr-product-link:hover { border-color: #E85D04; background: #FFF6EF; color: #1B3A5F; }
.pr-product-link strong { display: block; font-size: .92rem; }
.pr-product-link small { display: block; color: #5B6B80; font-size: .8rem; }
.pr-product-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; background: #E85D04; color: #fff; }
