/* Horeca Max — premium B2B design system, layered on Bootstrap 5.3 CDN.
   Palette: deep navy / premium dark / orange / white / light gray. */
:root {
    --hm-navy: #0B2A50;
    --hm-navy-dark: #071A2D;
    --hm-orange: #F15A24;
    --hm-orange-dark: #d1481a;
    --hm-gray-bg: #F5F7FA;
    --hm-text: #111827;

    --bs-primary: var(--hm-orange);
    --bs-primary-rgb: 241, 90, 36;
    --bs-link-color: var(--hm-orange);
    --bs-link-color-rgb: 241, 90, 36;
    --bs-link-hover-color: var(--hm-orange-dark);
    --bs-link-hover-color-rgb: 209, 72, 26;

    --bs-dark: var(--hm-navy);
    --bs-dark-rgb: 11, 42, 80;
    --bs-body-color: var(--hm-text);
    --bs-body-color-rgb: 17, 24, 39;
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body {
    font-family: 'Cairo', system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, h4, h5, h6, .navbar-brand, .fw-bolder { letter-spacing: -0.01em; }

/* Buttons — Bootstrap 5.3 CDN CSS hardcodes hex on .btn-primary /
   .btn-outline-primary rather than reading --bs-primary, so these are
   overridden explicitly (component-level custom properties). */
.btn { border-radius: 8px; font-weight: 600; letter-spacing: 0.01em; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn-lg { border-radius: 10px; }
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--hm-orange);
    --bs-btn-border-color: var(--hm-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hm-orange-dark);
    --bs-btn-hover-border-color: #bf4319;
    --bs-btn-focus-shadow-rgb: 244, 128, 71;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #bf4319;
    --bs-btn-active-border-color: #bf4319;
    --bs-btn-disabled-bg: var(--hm-orange);
    --bs-btn-disabled-border-color: var(--hm-orange);
    box-shadow: 0 2px 8px rgba(241, 90, 36, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(241, 90, 36, 0.35); }
.btn-outline-primary {
    --bs-btn-color: var(--hm-orange);
    --bs-btn-border-color: var(--hm-orange);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--hm-orange);
    --bs-btn-hover-border-color: var(--hm-orange);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--hm-orange);
    --bs-btn-active-border-color: var(--hm-orange);
    --bs-btn-disabled-color: var(--hm-orange);
    --bs-btn-disabled-border-color: var(--hm-orange);
}
.btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255,255,255,.5);
    --bs-btn-hover-bg: rgba(255,255,255,.12);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-hover-color: #fff;
}
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    color: #fff;
    background-color: var(--hm-orange);
    border-color: var(--hm-orange);
}

/* Cards */
.card { border: 1px solid #eceff2; border-radius: 12px; }
.product-card { transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: 0 10px 30px rgba(11,42,80,0.12); transform: translateY(-3px); }
.product-card img { aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.04); }

/* Sticky header with compact-on-scroll transition */
.site-navbar { transition: padding .25s ease, box-shadow .25s ease; box-shadow: 0 1px 0 rgba(17,24,39,0.06); }
.site-navbar.is-scrolled { padding-top: .35rem; padding-bottom: .35rem; box-shadow: 0 4px 16px rgba(17,24,39,0.08); }
.site-navbar .navbar-brand img { height: 44px; transition: height .25s ease; }
.site-navbar.is-scrolled .navbar-brand img { height: 34px; }

/* Top utility bar */
.topbar { background: var(--hm-navy-dark); color: rgba(255,255,255,0.75); font-size: .82rem; padding: .45rem 0; }
.topbar-items { display: flex; gap: 1.5rem; }
.topbar-items i { color: var(--hm-orange); margin-inline-end: .3rem; }

/* Header icon buttons (spare parts / tracking) */
.header-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    color: #fff; font-size: 1.1rem;
    background: rgba(255,255,255,0.06);
}
.header-icon-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Header search */
.header-search { max-width: 420px; }
@media (min-width: 992px) {
    .site-navbar .navbar-nav { flex-wrap: nowrap; }
    .site-navbar .nav-link { white-space: nowrap; padding-inline: .6rem; font-size: .93rem; }
}
.header-search .form-control { border-end-end-radius: 0; border-start-end-radius: 0; }
.header-search .btn { border-end-start-radius: 0; border-start-start-radius: 0; }

/* Mega menu */
.mega-menu {
    padding: 1.5rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(11,42,80,0.18);
}
@media (min-width: 992px) {
    .mega-menu { width: 760px; }
}
.mega-menu-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .35rem; padding: 1rem .5rem; border-radius: 10px; color: var(--hm-text);
    height: 100%;
}
.mega-menu-item:hover { background: var(--hm-gray-bg); color: var(--hm-navy); }
.mega-menu-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.mega-menu-icon {
    width: 56px; height: 56px; border-radius: 10px;
    background: rgba(241,90,36,0.1); color: var(--hm-orange);
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.mega-menu-name { font-weight: 700; font-size: .92rem; }
.mega-menu-desc { font-size: .78rem; color: #6b7280; }
.mega-menu-count { font-size: .74rem; color: var(--hm-orange); font-weight: 600; }

/* Breadcrumb */
.hm-breadcrumb { font-size: .85rem; color: #6b7280; }
.hm-breadcrumb a { color: #6b7280; }
.hm-breadcrumb a:hover { color: var(--hm-orange); }
.hm-breadcrumb .current { color: var(--hm-navy); font-weight: 600; }

/* Category showcase (editorial grid, not identical cards) */
.category-tile {
    position: relative; border-radius: 14px; overflow: hidden; display: block;
    color: #fff; min-height: 220px;
    background: linear-gradient(135deg, var(--hm-navy) 0%, var(--hm-navy-dark) 100%);
}
.category-tile.featured { min-height: 320px; }
.category-tile img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.category-tile:hover img { transform: scale(1.06); }
.category-tile .tile-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(7,26,45,0.92) 0%, rgba(7,26,45,0.35) 55%, rgba(7,26,45,0.05) 100%);
}
.category-tile .tile-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,0.18);
}
.category-tile .tile-content { position: relative; z-index: 1; padding: 1.5rem; align-self: flex-end; margin-top: auto; }
.category-tile { display: flex; flex-direction: column; }
.category-tile h3 { color: #fff; font-weight: 700; margin-bottom: .25rem; }
.category-tile p { color: rgba(255,255,255,0.75); font-size: .88rem; margin-bottom: .5rem; }
.category-tile .tile-cta { color: var(--hm-orange); font-weight: 700; font-size: .85rem; }

/* Brands */
.brand-chip {
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; border: 1px solid #eceff2; border-radius: 10px;
    color: var(--hm-navy); font-weight: 700; text-align: center; height: 100%;
    background: #fff;
}
.brand-chip img { max-height: 40px; max-width: 100%; object-fit: contain; }

/* Final CTA */
.final-cta { background: var(--hm-gray-bg); border-radius: 16px; padding: 3rem 2rem; }

/* Hero */
.hero-section {
    background: radial-gradient(1200px 600px at 15% -10%, #123a68 0%, transparent 60%),
                linear-gradient(135deg, var(--hm-navy) 0%, var(--hm-navy-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}
.hero-section .hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
    padding: .35rem .9rem; border-radius: 30px;
}
.hero-section h1 { font-weight: 800; }
.hero-section .lead { color: rgba(255,255,255,0.75); }

/* Trust strip */
.trust-strip { background: var(--hm-gray-bg); border-top: 1px solid #e9edf2; border-bottom: 1px solid #e9edf2; }
.trust-item { display: flex; align-items: center; gap: .75rem; }
.trust-item .icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(241,90,36,0.1); color: var(--hm-orange);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
}
.trust-item .label { font-weight: 600; color: var(--hm-navy); font-size: .95rem; }

/* Section titles */
.section-eyebrow { color: var(--hm-orange); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.section-title { color: var(--hm-navy); font-weight: 800; }

/* Dark feature section (B2B / spare-part reassurance style blocks) */
.section-dark { background: linear-gradient(135deg, var(--hm-navy) 0%, var(--hm-navy-dark) 100%); color: #fff; }
.section-dark .lead { color: rgba(255,255,255,0.75); }
.section-light-alt { background: var(--hm-gray-bg); }

/* Reassurance note under order form */
.reassurance-note { display: flex; gap: .6rem; align-items: flex-start; color: #4b5563; font-size: .88rem; }
.reassurance-note i { color: var(--hm-orange); margin-top: 2px; }

/* Order summary box */
.order-summary { background: var(--hm-gray-bg); border: 1px solid #e9edf2; border-radius: 10px; }
.order-summary .total-row { font-size: 1.35rem; font-weight: 800; color: var(--hm-navy); }

/* Fade-in on scroll */
.fade-in-up { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer { background: var(--hm-navy-dark); color: rgba(255,255,255,0.7); }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 700; letter-spacing: .03em; }
.site-footer hr { border-color: rgba(255,255,255,0.12); }

/* Mobile sticky order CTA */
.mobile-order-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: #fff; border-top: 1px solid #e5e7eb;
    padding: .6rem .9rem; box-shadow: 0 -6px 20px rgba(17,24,39,0.08);
    display: none;
}
@media (max-width: 767.98px) {
    .mobile-order-bar.is-active { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
    body.has-mobile-order-bar { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-up, .btn, .product-card, .product-card img, .site-navbar, .site-navbar .navbar-brand img { transition: none !important; }
}
