/*
Theme Name: Food Guide Luxe
Theme URI: https://store.foodguide.cloud
Author: Food Guide
Author URI: https://foodguide.cloud
Description: متجر فود جايد لخدمات المطاعم والكافيهات. ثيم عربي (RTL) مبني على ووكومرس، يتضمن أداة لاستيراد الـ 57 خدمة والأقسام الـ 11 بصورها وأوصافها، ومتوافق مع ميسر وتابي وتمارا.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: foodguide-luxe
Tags: rtl-language-support, e-commerce, woocommerce, custom-menu, featured-images
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #1E2328;
  --ink-2: #2B3239;
  --ink-soft: #3A434B;
  --ember: #DF6807;
  --ember-deep: #B45205;
  --ember-tint: #FCEBDD;
  --sand: #E9DCC6;
  --sand-tint: #F6F0E6;
  --steel: #5B6670;
  --line: #E4DED4;
  --bg: #FFFFFF;
  --ok: #2F7A4D;

  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.25rem;
  --step-5: clamp(2.25rem, 4.6vw, 3.5rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember-deep); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 999; top: 8px; inset-inline-start: 8px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-feature-settings: "tnum" 1; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Buttons ---------- */
.btn, .button, button.button, a.button, input[type="submit"], .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 999px; border: 0;
  background: var(--ember); color: #fff !important; font-family: var(--f-display);
  font-weight: 500; font-size: var(--step-0); cursor: pointer; text-align: center;
  transition: background-color .15s ease;
}
.btn:hover, .button:hover, button.button:hover, a.button:hover, input[type="submit"]:hover { background: var(--ember-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff !important; }
.btn--light { background: #fff; color: var(--ink) !important; }
.btn--light:hover { background: var(--sand); color: var(--ink) !important; }
.btn[disabled], .button.disabled { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.site-top {
  background: var(--ink); color: #D5DADF; font-size: var(--step--1);
}
.site-top .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 38px; align-items: center; }
.site-top a { color: #fff; }
.site-top a:hover { color: var(--sand); }
.site-top__links { display: flex; gap: 20px; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: auto; height: 44px; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; color: var(--ink); }
.brand__name small { display: block; font-weight: 400; font-size: .72rem; color: var(--steel); margin-top: 2px; }
.brand img { max-height: 46px; width: auto; }
.brand__lockup { height: 54px !important; max-height: none !important; width: auto; }
.brand__tag { font-size: .8rem; color: var(--steel); line-height: 1.4; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); max-width: 9em; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .97rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a { background: var(--sand-tint); color: var(--ink); }
.main-nav .sub-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--sand-tint); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--ember); color: #fff; font-size: 11px; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }
.header-search { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.header-search.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
}
.search-form input[type="search"]:focus { border-color: var(--ink); outline: none; }

/* ---------- Hero with compass ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px);
  align-items: center; padding-block: clamp(48px, 8vw, 96px);
}
.hero h1 { color: #fff; font-weight: 600; max-width: 15ch; margin-bottom: .45em; font-size: clamp(2.1rem, 3.9vw, 3.1rem); text-wrap: balance; }
.hero__lead { color: #C9D0D6; font-size: var(--step-1); max-width: 46ch; margin-bottom: 1.8em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn--ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.hero__actions .btn--ghost:hover { background: #fff; color: var(--ink) !important; }
.hero__facts { display: flex; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: #AEB7BF; font-size: var(--step--1); flex-wrap: wrap; }
.hero__facts strong { display: block; color: #fff; font-family: var(--f-display); font-size: var(--step-2); font-weight: 500; }

.compass { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-inline: auto; }
.compass svg.compass__dial { position: absolute; inset: 0; width: 100%; height: 100%; }
.compass__needle {
  position: absolute; inset: 0; transform: rotate(var(--bearing, 0deg));
  transition: transform .7s cubic-bezier(.34, 1.4, .5, 1);
  pointer-events: none;
}
.compass__needle svg { width: 100%; height: 100%; }
.compass.is-loading .compass__needle { transform: rotate(-140deg); transition: none; }
.compass__point {
  position: absolute; width: 28%; transform: translate(50%, -50%); text-align: center;
  color: #fff; padding: 10px 8px; border-radius: var(--r-md);
}
.compass__point strong { display: block; font-family: var(--f-display); font-size: clamp(.95rem, 1.6vw, 1.15rem); font-weight: 600; }
.compass__point span { display: block; font-size: .78rem; color: #AEB7BF; line-height: 1.5; }
.compass__point:hover, .compass__point:focus-visible, .compass__point.is-active { background: rgba(255,255,255,.07); color: #fff; }
.compass__point:hover strong, .compass__point.is-active strong { color: var(--sand); }
.compass__point--n { top: 20%; right: 50%; }
.compass__point--e { top: 50%; right: 21%; }
.compass__point--s { top: 80%; right: 50%; }
.compass__point--w { top: 50%; right: 79%; }
.compass__center {
  position: absolute; inset: 38%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-size: .78rem; color: #AEB7BF; line-height: 1.5; pointer-events: none; padding: 6px;
}
.compass__center b { display: block; color: #fff; font-family: var(--f-display); font-weight: 500; font-size: clamp(.85rem, 1.4vw, 1rem); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand-tint); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { color: var(--steel); margin: .4em 0 0; max-width: 56ch; }
.link-more { font-weight: 600; color: var(--ember-deep); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* Directory of categories, grouped by pillar */
.directory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.directory__pillar { padding: 26px 22px 30px; border-inline-start: 1px solid var(--line); }
.directory__pillar:first-child { border-inline-start: 0; padding-inline-start: 0; }
.directory__pillar:last-child { padding-inline-end: 0; }
.directory__pillar h3 { display: flex; align-items: center; gap: 10px; font-size: var(--step-1); margin-bottom: 4px; }
.directory__pillar h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); flex-shrink: 0; }
.directory__pillar > p { color: var(--steel); font-size: var(--step--1); margin-bottom: 18px; }
.directory__cat { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.directory__cat:hover { color: var(--ink); }
.directory__cat:hover .directory__name { color: var(--ember-deep); }
.directory__name { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.directory__name em { font-style: normal; font-weight: 500; color: var(--steel); font-size: var(--step--1); white-space: nowrap; }
.directory__desc { display: block; color: var(--steel); font-size: var(--step--1); line-height: 1.6; margin-top: 2px; }
.directory__from { display: block; font-size: .8rem; color: var(--ember-deep); margin-top: 6px; font-weight: 500; }

/* ---------- Product grid & card ---------- */
.products-grid, ul.products {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 28px 22px;
  margin: 0 !important; padding: 0 !important;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; }
.card { display: flex; flex-direction: column; height: 100%; position: relative; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background: var(--sand-tint);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.035); }
.card__badge {
  position: absolute; top: 44px; inset-inline-start: 14px; z-index: 2;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 500; padding: 5px 12px; border-radius: 999px;
}
.card__badge--sale { background: var(--ember); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 4px 0; }
.card__cat { font-size: .82rem; color: var(--steel); margin-bottom: 4px; }
.card__cat a:hover { color: var(--ember-deep); }
.card__title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; line-height: 1.45; margin: 0 0 6px; }
.card__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 5px; }
.card__tagline {
  color: var(--steel); font-size: var(--step--1); line-height: 1.65; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card__foot .button, .card__foot .added_to_cart { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.card__foot .added_to_cart { display: none; }

.price-tag { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--f-display); }
.price-tag ins, .price-tag .now { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.price-tag del, .price-tag .was { color: var(--steel); font-size: .88rem; font-weight: 400; }
.price-tag .unit { font-family: var(--f-body); font-size: .8rem; color: var(--steel); }
.price, .price-tag .woocommerce-Price-amount { white-space: nowrap; }
.woocommerce-Price-currencySymbol { font-size: .8em; margin-inline-start: 2px; }

/* Featured product — the large one in "most requested" */
.featured { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }
.featured .card--lead .card__media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.featured .card--lead { grid-row: span 2; }
.featured .card--lead .card__title { font-size: var(--step-2); }

/* ---------- Process (real sequence) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.process li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.process li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -17px; inset-inline-start: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--f-display); font-size: .9rem; display: grid; place-items: center;
}
.process h3 { font-size: var(--step-1); margin-bottom: 4px; }
.process p { color: var(--steel); font-size: var(--step--1); margin: 0; }

/* ---------- Payment methods ---------- */
.paystrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.paystrip__label { color: var(--steel); font-size: var(--step--1); margin-inline-end: 6px; }
.paymark {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.paymark--bnpl { background: var(--sand-tint); }
.trust-band { border-block: 1px solid var(--line); }
.trust-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; flex-wrap: wrap; }

/* ---------- CTA ---------- */
.cta-band { background: var(--ember); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; font-size: var(--step-3); }
.cta-band p { margin: 0; color: #FFE6D2; }

/* ---------- Archive / shop ---------- */
.page-head { background: var(--sand-tint); padding-block: clamp(36px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-4); margin-bottom: .2em; }
.page-head p { color: var(--steel); max-width: 60ch; margin: 0; }
.breadcrumbs, .woocommerce-breadcrumb { font-size: var(--step--1); color: var(--steel); margin-bottom: 14px !important; }
.breadcrumbs a:hover, .woocommerce-breadcrumb a:hover { color: var(--ember-deep); }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 44px; padding-block: 44px 88px; }
.shop-side h2 { font-size: var(--step-0); color: var(--steel); font-weight: 500; margin-bottom: 10px; font-family: var(--f-body); }
.shop-side__group { margin-bottom: 28px; }
.shop-side a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: var(--r-sm); font-size: .95rem; }
.shop-side a:hover { background: var(--sand-tint); color: var(--ink); }
.shop-side a.is-current { background: var(--ink); color: #fff; }
.shop-side a span { color: var(--steel); font-size: .82rem; }
.shop-side a.is-current span { color: #C9D0D6; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--steel); font-size: var(--step--1); }
.shop-toolbar .woocommerce-ordering { margin: 0; }
.shop-toolbar select, .woocommerce-ordering select {
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
}
.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.chips a { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; white-space: nowrap; }
.chips a.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; margin-top: 44px; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span {
  display: grid !important; place-items: center; min-width: 42px; height: 42px; border-radius: 50%; padding: 0 !important;
}
.woocommerce-pagination .current { background: var(--ink) !important; color: #fff !important; }

/* ---------- Single product ---------- */
.product-hero { padding-block: 28px 64px; }
.product-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.product-gallery__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-tint); aspect-ratio: 4 / 3; max-width: 100%; }
.product-gallery__frame img { width: 100%; height: 100%; object-fit: cover; }
.product-summary .card__cat { font-size: .9rem; }
.product-summary h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: .3em; }
.product-summary__tagline { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.7; max-width: 46ch; }
.buybox { margin: 26px 0; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.buybox .price-tag ins, .buybox .price-tag .now { font-size: 1.9rem; }
.buybox .price-tag del, .buybox .price-tag .was { font-size: 1rem; }
.buybox__save { display: inline-block; margin-top: 6px; color: var(--ok); font-size: .88rem; font-weight: 600; }
.buybox__vat { display: block; font-size: .8rem; color: var(--steel); margin-top: 4px; }
.buybox form.cart { display: flex; gap: 10px; margin: 18px 0 0 !important; flex-wrap: wrap; }
.buybox form.cart .quantity { display: none; }
.buybox form.cart .button { flex: 1; min-height: 54px; font-size: var(--step-1); }
.buybox .paystrip { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.buybox .paymark { min-height: 30px; font-size: .78rem; padding: 0 10px; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--steel); font-weight: 500; width: 40%; padding-inline-end: 16px; }
.specs td { font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.product-body { border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 80px); }
.product-body__grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); }
.product-toc { position: sticky; top: 100px; align-self: start; }
.product-toc a { display: block; padding: 8px 0 8px 0; padding-inline-start: 14px; border-inline-start: 2px solid var(--line); color: var(--steel); font-size: .95rem; }
.product-toc a:hover { color: var(--ink); border-color: var(--ember); }
.prose { max-width: 70ch; }
.prose > section { margin-bottom: 52px; scroll-margin-top: 110px; }
.prose h2 { font-size: var(--step-3); margin-bottom: .6em; }
.prose p { font-size: var(--step-1); line-height: 1.9; color: var(--ink-soft); }
.feature-list { display: grid; gap: 0; }
.feature-list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list li:first-child { padding-top: 4px; }
.feature-list .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--ember-tint); color: var(--ember-deep); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); margin-bottom: 2px; }
.feature-list span { color: var(--steel); line-height: 1.75; }
.audience { display: grid; gap: 10px; }
.audience li { padding: 14px 18px; border-radius: var(--r-md); background: var(--sand-tint); line-height: 1.7; }
.delivery { padding: 22px 24px; border-radius: var(--r-md); border: 1.5px dashed var(--sand); background: #fff; }
.delivery p { margin: 0; font-size: var(--step-0); }

.related-wrap { padding-block: 64px 96px; background: var(--sand-tint); }
.related-wrap h2 { margin-bottom: 28px; font-size: var(--step-3); }
.related.products > h2, .upsells.products > h2 { display: none; }

/* Sticky mobile buy bar */
.buybar {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: #fff;
  border-top: 1px solid var(--line); padding: 10px var(--gutter); gap: 12px; align-items: center; justify-content: space-between;
  box-shadow: 0 -6px 24px rgba(30,35,40,.08);
}
.buybar .button { min-height: 46px; }

/* ---------- WooCommerce: notices, cart, checkout ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 24px !important; padding: 16px 20px !important; border-radius: var(--r-md);
  background: var(--sand-tint) !important; border: 0 !important; color: var(--ink) !important;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.woocommerce-error { background: #FBE9E7 !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; order: 2; }
.content-area { padding-block: 44px 96px; }
.entry-title { font-size: var(--step-4); }
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; border: 0; border-radius: 0; }
.woocommerce table.shop_table th { font-weight: 500; color: var(--steel); text-align: start; padding: 12px 10px; border-bottom: 2px solid var(--ink); }
.woocommerce table.shop_table td { padding: 16px 10px; border-top: 1px solid var(--line); }
.woocommerce table.shop_table img { width: 72px; border-radius: var(--r-sm); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text, .select2-container .select2-selection--single {
  min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--ink); outline: none; }
.woocommerce form .form-row label { font-weight: 500; margin-bottom: 6px; }
#payment, .woocommerce-checkout #payment { background: var(--sand-tint) !important; border-radius: var(--r-md) !important; }
#payment ul.payment_methods { border-bottom-color: var(--line) !important; }
#place_order { width: 100%; min-height: 56px; font-size: var(--step-1); }
.cart_totals h2, #order_review_heading { font-size: var(--step-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #BAC3CB; font-size: .95rem; }
.site-footer a { color: #E6EAEE; }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 44px; }
.site-footer h2 { font-size: var(--step-0); color: #fff; margin-bottom: 16px; font-family: var(--f-display); font-weight: 500; }
.site-footer li { margin-bottom: 10px; }
.footer-brand p { max-width: 36ch; margin-top: 16px; line-height: 1.8; }
.brand--footer img { width: 150px; height: auto; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name small { color: #AEB7BF; }
.footer-slogan { font-family: var(--f-display); color: var(--sand); font-size: .9rem; direction: ltr; text-align: end; display: block; margin-top: 4px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); }
.socials a:hover { background: var(--ember); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom .paymark { background: var(--ink-2); border-color: transparent; color: #E6EAEE; min-height: 30px; font-size: .78rem; }

/* ---------- Generic content ---------- */
.entry-content { max-width: 75ch; }
.entry-content a { color: var(--ember-deep); text-decoration: underline; }
.not-found { text-align: center; padding-block: 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .directory { grid-template-columns: repeat(2, 1fr); }
  .directory__pillar:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .directory__pillar:nth-child(2) { padding-inline-end: 0; }
  .directory__pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .featured { grid-template-columns: 1fr 1fr; }
  .featured .card--lead { grid-row: auto; grid-column: span 2; }
  .featured .card--lead .card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { border-radius: var(--r-sm); padding: 12px 14px; }
  .menu-toggle { display: grid; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .compass { width: min(100%, 400px); }
  .process { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .shop-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .shop-side { display: none; }
  .chips { display: flex; }
  .product-hero__grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-body__grid { grid-template-columns: 1fr; }
  .product-toc { display: none; }
  .buybar { display: flex; }
  .single-product .site-footer { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .site-top__links { display: none; }
  .site-top .wrap { justify-content: center; }
  .site-header .wrap { gap: 12px; min-height: 64px; }
  .brand__mark { height: 38px; }
  .brand__name small { display: none; }
  .brand__lockup { height: 40px !important; }
  .brand__tag { display: none; }
  .directory { grid-template-columns: 1fr; }
  .directory__pillar { border-inline-start: 0 !important; padding-inline: 0 !important; border-top: 1px solid var(--line); }
  .directory__pillar:first-child { border-top: 0; }
  .featured { grid-template-columns: 1fr; }
  .featured .card--lead { grid-column: auto; }
  .products-grid, ul.products { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card__tagline { display: none; }
  .card__title { font-size: .95rem; }
  .card__media { border-radius: var(--r-md); }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .button { width: 100%; }
  .card__badge { top: 30px; inset-inline-start: 8px; font-size: .68rem; padding: 2px 8px; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .compass__point span { display: none; }
  .compass__center span { font-size: .7rem; }
  .compass__point strong { font-size: .85rem; }
  .hero__facts { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Branded product cover ---------- */
.card__media, .product-gallery__frame, .drawer__thumb { container-type: inline-size; }
.cover {
  --cover-bg: var(--ink); --mark: none;
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7cqw 7cqw 6.5cqw; background: var(--cover-bg); color: #fff; overflow: hidden; isolation: isolate;
}
.cover--ops { --cover-bg: #1F2E38; }
.cover--creative { --cover-bg: #33261F; }
.cover--tech { --cover-bg: #1B2A2B; }
/* The Food Guide compass mark as a large watermark */
.cover::before {
  content: ""; position: absolute; z-index: -1; width: 92cqw; aspect-ratio: 436 / 394; top: -10cqw; inset-inline-end: -26cqw;
  background: var(--fg-mark) center / contain no-repeat; opacity: .09; transform: rotate(var(--turn, 0deg));
  transition: transform .9s cubic-bezier(.3,1.3,.5,1);
}
/* Thin orange baseline: the brand colour on every cover */
.cover::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.6cqw; min-height: 4px; background: var(--ember); }
.cover__ring { display: none; }
.cover__badge {
  position: absolute; top: 6cqw; inset-inline-end: 6cqw; width: 19cqw; aspect-ratio: 1; border-radius: 50%;
  background: var(--ember); display: grid; place-items: center; box-shadow: 0 0 0 1.4cqw rgba(223,104,7,.18);
}
.cover__icon { width: 58%; height: 58%; color: #fff; stroke-width: 1.7; }
.cover__kicker {
  position: absolute; top: 7.2cqw; inset-inline-start: 7cqw; display: block; max-width: 58cqw;
  font-size: max(.66rem, 3.3cqw); color: #C9D0D6; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover__fig { font-family: var(--f-display); font-weight: 600; font-size: 12.5cqw; line-height: 1.15; text-wrap: balance; max-width: 92%; }
.cover__sub {
  margin-top: 1.6cqw; color: var(--sand); font-size: max(.7rem, 3.9cqw); line-height: 1.45; max-width: 86%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .cover::before { transform: rotate(calc(var(--turn, 0deg) + 14deg)); }
.card--lead .cover__fig { font-size: 10cqw; }
.card--lead .cover__badge { width: 14cqw; }
.product-gallery__frame .cover__fig { font-size: 10.5cqw; }
.product-gallery__frame .cover__badge { width: 15cqw; }

/* ---------- Store-only home ---------- */
.store-banner { background: var(--ink); color: #fff; }
.store-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.store-banner h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .25em; }
.store-banner p { color: #C9D0D6; margin: 0; max-width: 60ch; }
.store-banner .paymark { background: var(--ink-2); border-color: transparent; color: #E6EAEE; min-height: 30px; font-size: .78rem; }
.store-chips { position: sticky; top: 84px; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.store-chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.store-chips .wrap::-webkit-scrollbar { display: none; }
.store-chips a { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.store-chips a:hover { border-color: var(--ember); color: var(--ember-deep); }
.store-catalog { padding-block: 28px 80px; }
.store-section { padding-top: 28px; scroll-margin-top: 150px; }
.store-section + .store-section { margin-top: 28px; border-top: 1px solid var(--line); }
.store-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.store-section__head h2 { font-size: var(--step-3); margin: 0; }
.store-section__head span { color: var(--steel); font-size: var(--step--1); }
.store-empty { padding: 60px 0; text-align: center; color: var(--steel); }
.site-footer--compact .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px; flex-wrap: wrap; }
.footer-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-contact li { margin: 0; }

/* ---------- Short checkout ---------- */
.woocommerce-checkout .col2-set { width: 100%; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
.woocommerce-checkout .woocommerce-billing-fields h3 { font-size: var(--step-2); }
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.woocommerce-checkout form.checkout > * { min-width: 0; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
.woocommerce-checkout #order_review_heading { margin: 0; }
.woocommerce-checkout #order_review { grid-row: 2; position: sticky; top: 110px; }
.woocommerce-form-coupon-toggle { display: none; }
@media (max-width: 900px) {
  .store-chips { top: 64px; }
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
}

/* ---------- Header categories ---------- */
.cat-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-family: var(--f-display); cursor: pointer; color: var(--ink);
}
.cat-toggle svg { width: 20px; height: 20px; }
.cat-toggle:hover, .cat-toggle[aria-expanded="true"] { border-color: var(--ember); color: var(--ember-deep); }
.cat-panel { display: none; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 18px 30px rgba(30,35,40,.08); }
.cat-panel.is-open { display: block; }
.cat-panel .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px; padding-block: 20px 24px; max-height: 70vh; overflow-y: auto; }
.cat-panel__group h2 { font-size: .82rem; color: var(--steel); font-family: var(--f-body); font-weight: 500; margin: 0 0 6px; }
.cat-panel a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; }
.cat-panel a:hover { background: var(--sand-tint); color: var(--ink); }
.cat-panel a span { color: var(--steel); font-size: .82rem; }
.main-nav { display: none !important; }
.store-section__head h2 { font-size: clamp(1.25rem, 3.6vw, 1.75rem) !important; }
.brand--footer img { width: 130px !important; height: auto !important; max-height: none !important; }
.site-footer--compact .footer-row { justify-content: space-between; }
.footer-contact { gap: 10px 24px; font-size: .92rem; }
@media (max-width: 900px) {
  .cat-panel .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cat-toggle span { display: none; }
  .cat-toggle { padding: 0; width: 44px; justify-content: center; border: 0; background: var(--sand-tint); }
  .site-header .wrap { justify-content: space-between; }
  .header-actions { margin-inline-start: 0; }
  .cat-panel .wrap { grid-template-columns: 1fr; gap: 4px; }
  .site-footer--compact .footer-row { flex-direction: column; align-items: center; text-align: center; padding-block: 26px; }
  .footer-contact { flex-direction: column; align-items: center; gap: 6px; }
  .footer-bottom .wrap { flex-direction: column; justify-content: center; text-align: center; }
  .footer-bottom .paystrip { justify-content: center; }
  .store-banner .paystrip { display: none; }
}
