/* Hayat Pack Design System — Premium Corporate Commerce RTL */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Cairo:wght@500;600;700;800&display=swap');

:root {
  --hayat-teal: #0B6E6E;
  --hayat-teal-dark: #085555;
  --hayat-teal-soft: #E6F3F3;
  --hayat-orange: #E86A17;
  --hayat-orange-dark: #C4550F;
  --hayat-orange-soft: #FFF1E6;
  --white: #FFFFFF;
  --charcoal: #1A1F24;
  --slate: #3D4751;
  --soft-gray: #F3F5F7;
  --border: #E2E7EC;
  --success: #1B7F4E;
  --warning: #C47F0A;
  --danger: #C0392B;
  --info: #2B6CB0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(26, 31, 36, 0.06);
  --shadow-sm: 0 2px 10px rgba(26, 31, 36, 0.04);
  --font: 'IBM Plex Sans Arabic', 'Cairo', Tahoma, sans-serif;
  --display: 'Cairo', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --sidebar-w: 268px;
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, input, select, textarea { font: inherit; }

/* Force Western (English) digits look in numeric fields — avoids ٠١٢٣ on Arabic locale */
input[type="number"],
input[type="tel"],
input.num-en,
.num-en,
.product-price,
.kpi-card .value {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
input[type="number"],
input[type="tel"],
input.num-en {
  unicode-bidi: isolate;
  direction: ltr !important;
  text-align: left;
}
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, 1360px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: .85rem 1.4rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-align: center;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--hayat-orange); color: #fff; }
.btn-primary:hover { background: var(--hayat-orange-dark); }
.btn-secondary { background: var(--hayat-teal); color: #fff; }
.btn-secondary:hover { background: var(--hayat-teal-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--charcoal); }
.btn-outline:hover { border-color: var(--hayat-teal); color: var(--hayat-teal); }
.btn-ghost { background: transparent; color: var(--hayat-teal); }
.btn-ghost:hover { background: var(--hayat-teal-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; margin-bottom: .4rem; font-weight: 600; color: var(--slate); font-size: .92rem; }
.form-control, .form-select, .form-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem; background: #fff; color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--hayat-teal);
  box-shadow: 0 0 0 3px rgba(11, 110, 110, .12);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .82rem; color: #7A8692; margin-top: .35rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-error { color: var(--danger); font-size: .85rem; margin-top: .3rem; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.badge-success { background: #E8F7EF; color: var(--success); }
.badge-warning { background: #FFF6E5; color: var(--warning); }
.badge-danger { background: #FDECEC; color: var(--danger); }
.badge-info { background: #E8F1FB; color: var(--info); }
.badge-neutral { background: var(--soft-gray); color: var(--slate); }
.badge-teal { background: var(--hayat-teal-soft); color: var(--hayat-teal); }
.badge-orange { background: var(--hayat-orange-soft); color: var(--hayat-orange); }

/* Alerts */
.alert {
  padding: 1rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-success { background: #E8F7EF; border-color: #C9ECD9; color: #145C39; }
.alert-error { background: #FDECEC; border-color: #F5C6C2; color: #8E2A20; }
.alert-info { background: #E8F1FB; border-color: #C5DBF5; color: #1E4E84; }

/* Cards / surfaces */
.surface {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .4rem;
}
.section-sub { color: var(--slate); max-width: 36rem; margin-bottom: 2rem; }

/* Store header */
.store-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.store-header-inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--hayat-teal), #149090);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--display);
}
.brand-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .35rem .65rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11,110,110,.06), rgba(232,106,23,.05));
  border: 1px solid rgba(11,110,110,.1);
  box-shadow: 0 4px 14px rgba(11,110,110,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.brand:hover .brand-logo-wrap {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11,110,110,.1);
}
.brand-logo {
  height: 44px; width: auto; max-width: 168px;
  object-fit: contain; display: block;
}
.brand-logo--admin {
  height: 34px; max-width: 128px;
  background: #fff; border-radius: 8px; padding: 3px 6px;
}
.brand-logo--login {
  height: 72px; max-width: 260px;
}
.brand-text strong { display: block; font-size: 1.05rem; color: var(--hayat-teal); }
.brand-text span { font-size: .75rem; color: var(--slate); }
.brand--logo-only .brand-text { display: none; }
@media (max-width: 767px) {
  .brand-logo { height: 36px; max-width: 130px; }
  .brand-logo-wrap { padding: .25rem .45rem; }
}
.nav-main { display: flex; align-items: center; gap: 1.4rem; }
.nav-main a { color: var(--slate); font-weight: 500; font-size: .95rem; }
.nav-main a:hover, .nav-main a.active { color: var(--hayat-teal); }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; position: relative; cursor: pointer;
}
.icon-btn .count {
  position: absolute; top: -4px; left: -4px; background: var(--hayat-orange); color: #fff;
  width: 18px; height: 18px; border-radius: 50%; font-size: .68rem; display: grid; place-items: center; font-weight: 700;
}
.mobile-nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(232,106,23,.12), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(11,110,110,.14), transparent 40%),
    linear-gradient(180deg, #F7FBFA 0%, #FFFFFF 100%);
  min-height: auto;
  display: flex; align-items: center;
}
.hero--compact .hero-grid { padding: 2.5rem 0 2rem; }
.hero-quick {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem;
}
.quick-chip {
  display: inline-flex; align-items: center;
  padding: .45rem .85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--hayat-teal);
}
.section-tight { padding: 2.25rem 0; }
.section-soft { background: var(--soft-gray); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.section-head .section-title { margin-bottom: .25rem; }
.section-head .section-sub { margin-bottom: 0; }
.content-band, .content-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 1.4rem 1.35rem; box-shadow: var(--shadow-sm);
}
.content-band .lead-text, .content-card p, .body-text {
  color: var(--slate); line-height: 1.85; margin-bottom: .9rem;
}
.content-card h2 { font-size: 1.25rem; margin-bottom: .9rem; color: var(--hayat-teal); }
.about-intro {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1.25rem;
  align-items: stretch;
}
.about-intro-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.about-intro-main .eyebrow {
  display: inline-block;
  color: var(--hayat-teal);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.about-intro-main h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.about-intro-main p {
  color: var(--slate);
  line-height: 1.85;
  margin-bottom: .9rem;
}
.about-intro-main p:last-child { margin-bottom: 0; }
.about-stats {
  display: grid;
  gap: .75rem;
}
.about-stat {
  background: linear-gradient(145deg, var(--hayat-teal), #0E7C7C);
  color: #fff;
  border-radius: 18px;
  padding: 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
}
.about-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: .25rem;
}
.about-stat span {
  opacity: .9;
  font-size: .9rem;
}
.about-story {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.6rem;
}
.about-story h2 {
  margin-bottom: 1.1rem;
  color: var(--hayat-teal);
  font-size: 1.35rem;
}
.about-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.about-story-grid p {
  margin: 0;
  color: var(--slate);
  line-height: 1.85;
  padding: 1rem;
  background: var(--soft-gray);
  border-radius: 14px;
}
.value-num {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  color: var(--hayat-orange);
  font-size: .95rem;
  margin-bottom: .55rem;
}
.footer-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .55rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
}
.footer-social a:hover { background: var(--hayat-orange); border-color: var(--hayat-orange); }
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem;
}
.value-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 1.15rem 1.1rem;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: .45rem; color: var(--charcoal); }
.value-card p { color: var(--slate); font-size: .92rem; margin: 0; line-height: 1.7; }
.cta-panel {
  background: linear-gradient(120deg, var(--hayat-teal-dark), var(--hayat-teal));
  color: #fff; border-radius: 20px; padding: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cta-panel h2 { color: #fff; margin-bottom: .35rem; font-size: 1.3rem; }
.cta-panel p { color: rgba(255,255,255,.88); margin: 0; }
.b2b-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.1rem; align-items: start;
}
.contact-cards { display: grid; gap: .75rem; }
.contact-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem 1.15rem; transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-card-label { display: block; color: var(--slate); font-size: .82rem; margin-bottom: .3rem; }
.contact-card strong { display: block; font-size: 1.15rem; margin-bottom: .25rem; color: var(--hayat-teal); }
.contact-card span:last-child { color: var(--slate); font-size: .88rem; }
.contact-card--wa { border-color: rgba(11,110,110,.25); background: var(--hayat-teal-soft); }
.contact-form h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.page-hero--tight { padding: 1.5rem 0 1rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: 3.5rem 0 4rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--hayat-teal); font-weight: 600; margin-bottom: 1rem; font-size: .95rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem); color: var(--charcoal); margin-bottom: 1rem; max-width: 14ch;
}
.hero p { font-size: 1.08rem; color: var(--slate); max-width: 38ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-visual {
  position: relative; min-height: 420px; border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(11,110,110,.92), rgba(8,85,85,.88)),
    repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255,255,255,.04) 12px, rgba(255,255,255,.04) 24px);
  box-shadow: var(--shadow);
  display: flex; align-items: flex-end; padding: 2rem;
  color: #fff;
}
.hero-visual-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px; padding: 1.25rem 1.4rem; width: 100%;
  backdrop-filter: blur(8px);
}
.hero-visual-card strong { display: block; font-size: 1.25rem; margin-bottom: .25rem; }
.hero-visual-card span { opacity: .85; font-size: .92rem; }

/* Trust bar */
.trust-bar {
  background: var(--charcoal); color: #fff; padding: 1.15rem 0;
}
.trust-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  font-size: .92rem; font-weight: 500;
}
.trust-list li { display: flex; align-items: center; gap: .55rem; opacity: .92; }
.trust-list li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hayat-orange);
}

/* Category cards */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
.cat-card {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 160px;
  padding: 1.4rem; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--hayat-teal); transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:nth-child(2n) { background: #0E7C7C; }
.cat-card:nth-child(3n) { background: #0A5F5F; }
.cat-card:nth-child(4n) { background: #126868; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card small { opacity: .8; letter-spacing: .02em; }
.cat-card strong { font-size: 1.2rem; margin-top: .2rem; }

/* Product card */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-media {
  aspect-ratio: 1.1; background: var(--soft-gray);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-media img.product-img-fallback,
.pdp-gallery img.product-img-fallback {
  object-fit: contain;
  padding: 18%;
  background:
    radial-gradient(circle at 30% 30%, rgba(232,106,23,.08), transparent 45%),
    linear-gradient(160deg, #F7FBFA, #EEF5F5);
}
.product-card-media .placeholder {
  width: 64px; height: 64px; border-radius: 16px; background: var(--hayat-teal-soft); color: var(--hayat-teal);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
}
.product-card-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.product-card-body h3 { font-size: 1.02rem; margin: 0; }
.product-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--hayat-teal); margin-top: .2rem; }
.product-card-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .7rem; }

/* B2B band */
.b2b-band {
  background: linear-gradient(120deg, var(--hayat-teal-dark), var(--hayat-teal));
  color: #fff; border-radius: 24px; padding: 2.5rem; display: flex;
  justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.b2b-band h2 { color: #fff; margin-bottom: .4rem; }
.b2b-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 36rem; }

/* Footer */
.store-footer {
  background: var(--charcoal); color: rgba(255,255,255,.78); padding: 3.5rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.store-footer h4 { color: #fff; margin-bottom: 1rem; }
.store-footer a:hover { color: var(--hayat-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem;
}

/* Catalog layout */
.catalog-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start;
}
.catalog-layout--full {
  grid-template-columns: 1fr;
}
.catalog-layout--full .catalog-results,
.catalog-layout--full .product-grid {
  width: 100%;
  min-width: 0;
}
.filters-panel { padding: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.filters-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem;
}
.filters-panel-head h3 { font-size: 1rem; margin: 0; }
.filters-reset { color: var(--hayat-orange) !important; font-weight: 600; }
.filter-block { margin-bottom: 1.1rem; }
.filter-block h4 { font-size: .88rem; color: var(--slate); margin-bottom: .55rem; }
.catalog-results.is-loading {
  opacity: .45; pointer-events: none; transition: opacity .2s ease;
  position: relative;
}
.catalog-results.is-loading::after {
  content: '';
  position: absolute; top: 2rem; left: 50%;
  width: 28px; height: 28px; margin-left: -14px;
  border: 3px solid var(--border); border-top-color: var(--hayat-teal);
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* Product detail */
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.pdp-gallery {
  background: var(--soft-gray); border-radius: 22px; aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--border);
}
.pdp-info .sku { color: var(--slate); font-size: .9rem; }
.pdp-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.specs-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.specs-table th, .specs-table td { text-align: right; padding: .7rem .4rem; border-bottom: 1px solid var(--border); }
.specs-table th { color: var(--slate); font-weight: 500; width: 40%; }
.qty-control {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden;
}
.qty-control button {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem;
}
.qty-control input {
  width: 56px; border: 0; text-align: center; background: transparent;
}

/* Cart / Checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 1rem .75rem; border-bottom: 1px solid var(--border); text-align: right; }
.cart-summary, .checkout-summary {
  padding: 1.4rem; position: sticky; top: calc(var(--header-h) + 1rem);
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: .7rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: .9rem; margin-top: .9rem; }

.checkout-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.5rem; }

/* Timeline tracking */
.timeline { position: relative; padding-right: 1.5rem; }
.timeline::before {
  content: ''; position: absolute; right: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 0 1.5rem 1.4rem 0; }
.timeline-item::before {
  content: ''; position: absolute; right: 0; top: .35rem; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid var(--border); background: #fff;
}
.timeline-item.done::before { background: var(--hayat-teal); border-color: var(--hayat-teal); }
.timeline-item.current::before { background: var(--hayat-orange); border-color: var(--hayat-orange); box-shadow: 0 0 0 4px var(--hayat-orange-soft); }

/* Empty / Error */
.empty-state, .error-state {
  text-align: center; padding: 4rem 1.5rem; max-width: 480px; margin: 0 auto;
}
.empty-state .icon, .error-state .icon {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 1.2rem;
  background: var(--soft-gray); display: grid; place-items: center; font-size: 1.6rem; color: var(--hayat-teal);
}
.loading-spinner {
  width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--hayat-teal);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Page hero small */
.page-hero {
  background: linear-gradient(180deg, var(--soft-gray), #fff);
  padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--slate); font-size: .88rem; margin-bottom: .8rem; }
.breadcrumbs a:hover { color: var(--hayat-teal); }

/* ===================== ADMIN ===================== */
body.admin-body { background: #F5F7F9; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: var(--sidebar-w); background: var(--charcoal); color: rgba(255,255,255,.78);
  position: fixed; inset-block: 0; right: 0; overflow-y: auto; z-index: 50;
  display: flex; flex-direction: column;
}
.admin-brand {
  padding: 1.4rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: .75rem;
}
.admin-brand strong { color: #fff; display: block; }
.admin-brand span { font-size: .75rem; opacity: .7; }
.admin-nav { padding: 1rem .75rem 2rem; flex: 1; }
.admin-nav-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  opacity: .45; padding: .8rem .7rem .35rem; font-weight: 600;
}
.admin-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .85rem; border-radius: 10px; color: rgba(255,255,255,.78); margin-bottom: .15rem;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.08); color: #fff;
}
.admin-nav a.active { background: var(--hayat-teal); }
.admin-main {
  margin-right: var(--sidebar-w); flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.admin-topbar {
  height: 68px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1.5rem; position: sticky; top: 0; z-index: 40;
}
.admin-search {
  flex: 1; max-width: 420px; position: relative;
}
.admin-search input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 999px;
  padding: .7rem 1rem .7rem 1rem; background: var(--soft-gray);
}
.admin-content { padding: 1.5rem; }
.greeting { margin-bottom: 1.5rem; }
.greeting h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.greeting p { color: var(--slate); margin: 0; }

.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem;
}
.kpi-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem 1.25rem;
}
.kpi-card .label { color: var(--slate); font-size: .88rem; margin-bottom: .35rem; }
.kpi-card .value { font-size: 1.55rem; font-weight: 700; font-family: var(--display); }
.kpi-card .hint { font-size: .8rem; color: #7A8692; margin-top: .35rem; }

.panel {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem;
}
.panel-header h2, .panel-header h3 { margin: 0; font-size: 1.05rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th {
  text-align: right; color: var(--slate); font-weight: 600; font-size: .8rem;
  padding: .75rem .6rem; border-bottom: 1px solid var(--border); background: #FAFBFC;
}
.data-table td { padding: .85rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: #FCFDFD; }

.admin-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.chart-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 1rem;
}
.chart-bars .bar {
  flex: 1; background: linear-gradient(180deg, var(--hayat-teal), #149090);
  border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; opacity: .9;
}
.chart-bars .bar:hover { opacity: 1; }
.chart-bars .bar span {
  position: absolute; bottom: 100%; right: 50%; transform: translateX(50%);
  font-size: .65rem; color: var(--slate); white-space: nowrap; display: none;
}
.chart-bars .bar:hover span { display: block; }

.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(232,106,23,.1), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(11,110,110,.12), transparent 35%),
    var(--soft-gray);
}
.login-card {
  width: min(100% - 2rem, 420px); background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; box-shadow: var(--shadow);
}
.login-card .brand { margin-bottom: 1.5rem; }

/* Print */
@media print {
  .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
  .admin-main { margin: 0 !important; }
  .admin-content { padding: 0 !important; }
}

/* Responsive */
/* App tab bar — mobile only */
.app-tabbar { display: none; }

@media (max-width: 1023px) {
  .hero-grid, .pdp-grid, .catalog-layout, .checkout-grid, .admin-grid-2, .footer-grid,
  .about-intro, .about-story-grid, .contact-layout, .value-grid {
    grid-template-columns: 1fr;
  }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .about-stat { min-height: 84px; padding: 1rem; }
  .about-stat strong { font-size: 1.05rem; }
  .catalog-layout { gap: 1rem; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-main { display: none; }
  .mobile-nav-toggle { display: grid; }
  .admin-sidebar { transform: translateX(105%); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 180px; }
  .hero--compact .hero-grid { padding: 1.5rem 0 1.25rem; gap: 1.25rem; }
  .filters-panel { position: static; }
  .section-tight { padding: 1.5rem 0; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  body.store-app { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .container, .container-wide { width: min(100% - 1.25rem, var(--container)); }
  .store-header { backdrop-filter: blur(16px); }
  .store-header-inner { height: var(--header-h); gap: .5rem; }
  .store-header form[role="search"] { display: none !important; }
  .header-actions .btn-outline { display: none; }
  .page-hero, .page-hero--tight { padding: 1rem 0 .75rem; }
  .page-hero h1 { font-size: 1.4rem; margin-bottom: .35rem; }
  .section { padding: 1.5rem 0; }
  .section-sm, .section-tight { padding: 1.15rem 0; }
  .hero h1 { font-size: 1.7rem; max-width: none; margin-bottom: .65rem; }
  .hero p { font-size: .98rem; margin-bottom: 1.1rem; }
  .hero-visual { min-height: 140px; border-radius: 18px; padding: 1rem; }
  .hero-ctas .btn { flex: 1 1 calc(50% - .4rem); padding: .8rem 1rem; font-size: .92rem; }
  .content-band, .content-card, .about-intro-main, .about-story { padding: 1.15rem 1rem; border-radius: 16px; }
  .about-stats { grid-template-columns: 1fr; }
  .about-story-grid { gap: .7rem; }
  .value-grid { gap: .7rem; }
  .cta-panel, .b2b-band { padding: 1.15rem; border-radius: 16px; }
  .b2b-actions { width: 100%; }
  .b2b-actions .btn { flex: 1; }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
  }
  .cat-card {
    min-height: 110px; border-radius: 16px; padding: 1rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
  }
  .product-card { border-radius: 16px; }
  .product-card-body { padding: .85rem .8rem 1rem; gap: .35rem; }
  .product-card-body h3 { font-size: .92rem; line-height: 1.35; }
  .product-price { font-size: 1rem; }
  .product-card-actions .btn { border-radius: 12px; padding: .65rem .5rem; font-size: .82rem; }
  .product-card-media { aspect-ratio: 1; }
  .product-card-media img.product-img-fallback { padding: 22%; }
  .kpi-grid, .admin-grid-3 { grid-template-columns: 1fr; }
  .b2b-band { padding: 1.25rem; border-radius: 18px; }
  .brand-text span { display: none; }
  .cart-table thead { display: none; }
  .cart-table tr { display: block; border: 1px solid var(--border); border-radius: 14px; margin-bottom: .8rem; padding: .65rem; }
  .cart-table td { display: flex; justify-content: space-between; border: 0; padding: .45rem .25rem; }
  .cart-table td::before { content: attr(data-label); font-weight: 600; color: var(--slate); }
  .store-footer { margin-top: 1.5rem; padding-bottom: 1.5rem; }
  .checkout-grid { gap: 1rem; }

  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 120;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(26,31,36,.05);
  }
  .app-tabbar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 64px;
    padding: 0;
    margin: 0;
    color: #7A8692;
    text-decoration: none;
    border-radius: 0;
    background: transparent;
  }
  .app-tabbar .tab-ico {
    position: relative;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
  }
  .app-tabbar .tab-ico svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  .app-tabbar .tab-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  .app-tabbar .tab-badge {
    position: absolute;
    top: -5px;
    left: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--hayat-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    display: grid;
    place-items: center;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
  }
  .app-tabbar .tab-item.active {
    color: var(--hayat-teal);
    background: transparent;
  }
  .app-tabbar .tab-item.active .tab-ico {
    background: var(--hayat-teal-soft);
    border-radius: 12px;
    width: 40px;
    height: 28px;
  }
  .app-tabbar .tab-item.active .tab-label {
    color: var(--hayat-teal);
    font-weight: 700;
  }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; background: rgba(26,31,36,.45); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 320px);
  background: #fff; padding: 1.25rem; transform: translateX(100%); transition: transform .25s ease;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-panel a {
  display: block; padding: .85rem 0; border-bottom: 1px solid var(--border); font-weight: 500;
}
