/* Generated by content/bin/build-theme-css.php; edit asset/css/src instead. */

/* Source: header.css */
.cm-header{background:#fff;border-bottom:1px solid #e8e0d8;color:#382719;position:relative;z-index:auto;width:100%;flex:none}.cm-header *{box-sizing:border-box}.cm-header-inner{max-width:1200px;margin:auto;padding:0 16px}.cm-header-row{display:flex;align-items:center;gap:30px;padding:18px 0}.cm-logo{display:flex;align-items:center;flex:none}.cm-logo svg{width:175px;height:60px}.cm-header-search{display:flex;align-items:center;flex:1;min-width:0;max-width:560px;border:1px solid #e5d8cb;border-radius:12px;background:#faf7f3;overflow:hidden}.cm-header-search:focus-within{outline:2px solid #bc4b1e;outline-offset:2px}.cm-header-search input{border:0;outline:none;background:transparent;min-width:0;width:100%;font-size:14px;padding:14px 16px;color:#382719}.cm-header-search button{display:flex;justify-content:center;align-items:center;align-self:stretch;border:0;background:#bc4b1e;color:#fff;min-width:50px}.cm-header-search button svg{width:21px;height:21px}.cm-header-actions{display:flex;align-items:center;gap:20px;margin-right:auto;flex:none}.cm-orders,.cm-cart{display:flex;gap:7px;align-items:center;font-size:12px;position:relative;min-height:44px;color:#544434}.cm-orders svg,.cm-cart svg{width:26px;height:26px}.cm-cart-count{position:absolute;right:15px;top:0;background:#bc4b1e;color:white;font-size:10px;min-width:17px;height:17px;line-height:17px;text-align:center;border-radius:50%}.cm-header-nav{display:flex;align-items:center;gap:24px;padding:0 0 13px}.cm-header-categories{position:relative;flex:none}.cm-header-categories>div>button{border-color:#e5d8cb;box-shadow:none;color:#382719}.cm-header-categories svg{width:20px;height:20px}.cm-main-links{display:flex;align-items:center;gap:24px;font-size:13px}.cm-main-links a:hover,.cm-orders:hover{color:#bc4b1e}.cm-header-contact{margin-right:auto;display:flex;align-items:center;gap:8px;font-size:12px;color:#80694f}.cm-header-contact svg{width:19px;height:19px}.cm-menu-toggle{display:none}.cm-header-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.cm-header button:focus-visible,.cm-header a:focus-visible{outline:2px solid #bc4b1e;outline-offset:4px}
@media(max-width:1000px) and (min-width:768px){.cm-header-row{gap:18px}.cm-logo svg{width:145px}.cm-orders span,.cm-cart-label{display:none}.cm-header-actions{gap:16px}.cm-main-links{gap:18px}}
@media(max-width:767px){.cm-header-inner{padding:0 12px}.cm-header-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;padding:10px 0 13px}.cm-menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;grid-column:1;grid-row:1}.cm-menu-toggle svg{width:24px;height:24px}.cm-logo{grid-column:2;grid-row:1;justify-content:center}.cm-logo svg{width:145px;height:49px}.cm-header-actions{grid-column:3;grid-row:1;margin:0;justify-content:center}.cm-orders,.cm-cart-label{display:none}.cm-cart{width:44px;justify-content:center}.cm-cart-count{right:0;top:0}.cm-header-search{grid-column:1/-1;grid-row:2;width:100%;max-width:none;margin-top:1px;border-radius:10px}.cm-header-search input{padding:12px;font-size:13px}.cm-header-search button{min-width:46px}.cm-header-nav{display:none}}


.cm-header-social{margin-right:auto;display:flex;align-items:center;gap:8px}.cm-contact-link{display:flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;border:1px solid #eee3da;border-radius:10px;color:#80614a;background:#fff;transition:background .15s,color .15s}.cm-contact-link svg{width:21px;height:21px;flex:none}.cm-header-social .cm-contact-link span{display:none}.cm-contact-link:hover{background:#faf0e7;color:#bc4b1e}.cm-contact-drawer{display:none}
@media(max-width:767px){
.cm-contact-drawer{position:fixed;left:0;top:50%;z-index:35;width:164px;display:flex;align-items:center;direction:ltr;transform:translate3d(calc(-100% + 28px),-50%,0);transition:transform .25s ease;filter:drop-shadow(0 3px 9px #38271922)}
.cm-contact-drawer.is-open{transform:translate3d(0,-50%,0)}
.cm-contact-panel{width:136px;flex:0 0 136px;background:#fff;border:1px solid #e5d8cb;border-left:0;border-radius:0 14px 14px 0;padding:6px;direction:rtl;display:flex;flex-direction:column;gap:5px;max-height:min(60dvh,320px);overflow-y:auto;visibility:hidden;transition:visibility 0s .25s}
.cm-contact-drawer.is-open .cm-contact-panel{visibility:visible;transition-delay:0s}
.cm-contact-panel .cm-contact-link{justify-content:flex-start;gap:7px;min-height:36px;padding:6px 7px;font-size:11px;text-decoration:none}
.cm-contact-toggle{box-sizing:border-box;width:28px;height:36px;max-width:28px;max-height:36px;min-height:36px;flex:0 0 28px;background:#bc4b1e;color:#fff;border:0;border-radius:0 8px 8px 0;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.cm-contact-toggle svg{width:14px;height:14px;flex:none;transition:transform .25s}.cm-contact-drawer.is-open .cm-contact-toggle svg{transform:rotate(180deg)}
.cm-contact-panel .cm-contact-link svg{width:17px;height:17px}
.cm-contact-toggle:focus-visible,.cm-contact-panel a:focus-visible{outline:2px solid #382719;outline-offset:-3px}
}
@media(prefers-reduced-motion:reduce){.cm-contact-drawer,.cm-contact-toggle svg,.cm-contact-panel{transition:none}}


/* Cook Market v18 — mobile menu overlay and stacking, without Tailwind bg-opacity dependency.
   The drawer is a direct child of <body>; these rules work even if utility CSS changes. */
@media (max-width: 767px) {
  body .cm-mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040 !important;
    background-color: rgba(30, 20, 15, .42) !important;
  }
  /* Hide the original header cart only while a mobile dialog is open. */
  .cm-header.cm-header--drawer-open .cm-header-actions,
  .cm-header.cm-header--cart-open .cm-header-actions { visibility: hidden; }
  /* The cart used to have z-50 while the backdrop had z-index:1040;
     that rendered the backdrop ABOVE the cart, dimming it and exposing overlapping UI. */
  body .cm-mobile-cart-panel {
    position: fixed;
    inset-block: 0;
    inset-inline-start: auto;
    left: 0;
    right: auto;
    z-index: 1050 !important;
    width: min(320px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    box-sizing: border-box;
    background: #fff !important;
    color: #382719;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body .cm-mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1050 !important;
    background: #fff !important;
    max-width: calc(100vw - 32px);
    overscroll-behavior: contain;
  }
}
@media (min-width: 768px) {
  body .cm-mobile-menu-backdrop,
  body .cm-mobile-menu-panel { display: none !important; }
}

/* Cart remains a proper overlay on desktop without changing desktop header/navigation. */
@media (min-width: 768px) {
  body .cm-mobile-cart-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050 !important;
    background: #fff !important;
  }
}

/* Source: trustbar.css */
/* Small fallback for the service bar. Full style lives in cookmarket-layout-v4.css. */
.cm-header.cm-header--source-v2 .cm-trustbar{background:#392219;color:#fff9f1}
.cm-header.cm-header--source-v2 .cm-trustbar-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:32px;direction:rtl}
.cm-header.cm-header--source-v2 .cm-trustbar-notes,
.cm-header.cm-header--source-v2 .cm-trustbar-links{display:flex;align-items:center;justify-content:flex-start;gap:16px;min-width:0}
.cm-header.cm-header--source-v2 .cm-trustbar-notes{flex:0 1 auto}
.cm-header.cm-header--source-v2 .cm-trustbar-links{margin-inline-start:auto;flex:none}
.cm-header.cm-header--source-v2 .cm-trustbar-item,
.cm-header.cm-header--source-v2 .cm-trustbar-link{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.cm-header.cm-header--source-v2 .cm-trustbar-icon{width:16px;height:16px;flex:none}
@media(max-width:767px){.cm-header.cm-header--source-v2 .cm-trustbar{display:none}}

/* Source: layout.css */
/* Cook Market site-wide Header & Footer | phase 1.4
   Keep the accepted compact product cards CSS unchanged.
   Load after style.css, app.css and header.css. Replace (do not stack with)
   the older cookmarket-header-slider-v3.css test patch. */
:root {
  --cm-source-espresso: var(--cm-espresso, #352018);
  --cm-source-primary: var(--cm-primary, #ad3321);
  --cm-source-cream: var(--cm-canvas, #fff9f3);
  --cm-source-text: var(--cm-text, #392820);
}
.cm-header.cm-header--source-v2 {
  width: 100%; padding-top: 0 !important; background: var(--cm-source-cream);
  color: var(--cm-source-text); border-bottom: 1px solid #ecddcf;
}
.cm-header--source-v2 .cm-header-inner { max-width: 1200px; width:100%; padding-inline:18px; }
.cm-header--source-v2 .cm-trustbar {
  background: linear-gradient(105deg,#332018,#573327 56%,#352019);
  color: #fff9f2; font-size: 11px; line-height: 1.7;
}
.cm-header--source-v2 .cm-trustbar-inner {
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; min-height:34px;
}
.cm-header--source-v2 .cm-trustbar-notes,
.cm-header--source-v2 .cm-trustbar-links {
  display:flex; align-items:center; gap:clamp(8px,1.9vw,23px); min-width:0;
}
.cm-header--source-v2 .cm-trustbar-notes { flex:0 1 auto; justify-content:flex-start; }
.cm-header--source-v2 .cm-trustbar-notes span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.cm-header--source-v2 .cm-trustbar-links { justify-content:flex-start; flex:none; margin-inline-start:auto; }
.cm-header--source-v2 .cm-trustbar-links a { color:inherit; white-space:nowrap; font-weight:500; }
.cm-header--source-v2 .cm-trustbar-links a:hover { color:#ffd8b2; }
.cm-header--source-v2 .cm-header-row { min-height:64px; padding:7px 0; gap:clamp(12px,2.6vw,28px); }
.cm-header--source-v2 .cm-logo svg { width:150px; height:54px; max-width:100%; }
.cm-header--source-v2 .cm-header-search {
  flex:1 1 auto; min-width:0; min-height:39px; max-width:510px;
  background:#fff5ec; border:1px solid #e4ceba; border-radius:24px;
}
.cm-header--source-v2 .cm-header-search input {
  padding:9px 15px; font-size:12px; min-height:39px; line-height:1.6;
}
.cm-header--source-v2 .cm-header-search button { background:transparent; color:#43291c; min-width:44px; }
.cm-header--source-v2 .cm-header-search button:hover { background:#f9e9dc; color:var(--cm-source-primary); }
.cm-header--source-v2 .cm-header-actions { gap:13px; margin-right:auto; }
.cm-header--source-v2 .cm-orders, .cm-header--source-v2 .cm-cart { min-height:38px; font-size:11px; gap:5px; }
.cm-header--source-v2 .cm-orders svg, .cm-header--source-v2 .cm-cart svg { width:22px; height:22px; }
.cm-header--source-v2 .cm-cart-count { background:var(--cm-source-primary); }
.cm-header--source-v2 .cm-header-nav { gap:clamp(10px,2.2vw,22px); min-height:40px; padding:2px 0 8px; }
.cm-header--source-v2 .cm-header-categories > div > button {
  background:linear-gradient(100deg,#922919,#c64d2c); color:#fff; border-color:transparent;
  border-radius:22px; padding:6px 15px; font-size:12px; font-weight:700; box-shadow:none;
}
.cm-header--source-v2 .cm-header-categories > div > button svg { width:17px; height:17px; }
.cm-header--source-v2 .cm-main-links { gap:clamp(10px,2vw,23px); white-space:nowrap; font-size:12px; }
.cm-header--source-v2 .cm-main-links a { font-weight:600; }
.cm-header--source-v2 .cm-main-links a:hover { color:var(--cm-source-primary); }
.cm-header--source-v2 .cm-header-social { flex:none; margin-right:auto; gap:6px; }
.cm-header--source-v2 .cm-header-social .cm-contact-link {
  min-width:29px; min-height:29px; border-radius:8px;
}
.cm-header--source-v2 .cm-header-social .cm-contact-link svg { width:18px; height:18px; }
.cm-header--source-v2 :is(button,a,input):focus-visible { outline:2px solid #b34b2d; outline-offset:2px; }
/* ---- Footer: scoped typography and compact layout, matches new warm brand palette. ---- */
.cm-footer.cm-footer--v2 {
  background:linear-gradient(110deg,#2c1b15 0%,#42251a 52%,#301c15 100%);
  color:#fff7ec; padding:32px max(16px,calc((100vw - 1200px)/2)) 16px;
  font-family:var(--cm-font-body,'IRANSansX',Tahoma,sans-serif); font-size:12px;
  line-height:1.85;
}
 .cm-footer--v2 > .cm-footer-grid { max-width:1200px; margin-inline:auto; gap:24px; }
.cm-footer--v2 h3 { color:#fff9f0; font:700 14px/1.7 var(--cm-font-heading,'Peyda','IRANSansX',Tahoma,sans-serif); }
.cm-footer--v2 p { color:#f1ddce; font-size:12px; line-height:1.95; }
.cm-footer--v2 a { color:#f5e7db; transition:color .15s; text-decoration:none; }
.cm-footer--v2 a:hover { color:#ffb879; }
.cm-footer--v2 ul { color:#f4e0d2; }
.cm-footer--v2 .cm-footer-social-link { display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; margin-inline:2px; border-radius:9px;
  background:rgba(255,255,255,.09); color:#fff7ee; border:1px solid rgba(255,255,255,.1); }
.cm-footer--v2 .cm-footer-social-link svg { width:19px; height:19px; }
.cm-footer--v2 .cm-footer-social-link:hover { background:rgba(255,185,117,.14); }
.cm-footer--v2 a:focus-visible { outline:2px solid #ffd7ad; outline-offset:3px; }
.cm-footer--v2 > .border-t { border-color:rgba(255,255,255,.22); }
.cm-mobile-bottom-nav { font-family:var(--cm-font-body,'IRANSansX',Tahoma,sans-serif); }
@media(max-width:1023px){
   .cm-footer--v2 > .cm-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px){
  .cm-footer.cm-footer--v2 { padding:26px 16px 94px; font-size:11px; }
   .cm-footer--v2 > .cm-footer-grid { grid-template-columns:1fr; gap:20px; }
  .cm-footer--v2 .cm-footer-social-link { width:38px; height:38px; }
  .cm-mobile-bottom-nav { min-height:60px; background:#fff8f1; border-color:#efdfce; }
  .cm-mobile-bottom-nav a,.cm-mobile-bottom-nav button { min-height:42px; }
}

.cm-header--source-v2 .cm-logo svg { color:#a12f21; }

/* Layout v2 baseline: compact, readable five-column footer at standard desktop widths. */
.cm-footer.cm-footer--v2 { padding:26px 18px 18px; }
.cm-footer--v2 .cm-footer-grid {
  display:grid; grid-template-columns:minmax(150px,1.2fr) repeat(3,minmax(110px,1fr)) minmax(160px,1.2fr);
  gap:clamp(12px,2.2vw,28px); max-width:1200px; margin-inline:auto;
  align-items:start;
}
.cm-footer--v2 .cm-footer-brand-logo svg { width:145px; max-width:100%; height:auto; color:#fff8ed; }
.cm-footer--v2 .cm-footer-brand p { max-width:250px; font-size:11px; margin-top:10px; line-height:1.95; }
.cm-footer--v2 .cm-footer-column h3,
.cm-footer--v2 .cm-footer-contact h3 { margin:0 0 10px; font-size:13px; font-weight:700; color:#fffaf5; }
.cm-footer--v2 .cm-footer-column ul,
.cm-footer--v2 .cm-footer-contact ul { padding:0; margin:0; list-style:none; }
.cm-footer--v2 .cm-footer-column li,
.cm-footer--v2 .cm-footer-contact li { margin:0 0 6px; line-height:1.9; font-size:11px; }
.cm-footer--v2 .cm-footer-contact .cm-enamad { max-width:152px; margin-top:8px; }
.cm-footer--v2 .cm-footer-bottom { max-width:1200px; margin:16px auto 0; border-top:1px solid rgba(255,255,255,.25); padding:12px 0 0; display:flex; flex-wrap:wrap; align-items:center; gap:12px; justify-content:space-between; }
.cm-footer--v2 .cm-footer-copyright {font-size:10px; color:#ead4c6}
.cm-footer--v2 .cm-footer-socials {display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:0;}
.cm-footer--v2 .cm-footer-social-link { width:30px; height:30px; border:0; background:transparent; }
.cm-header.cm-header--source-v2 .cm-trustbar {width:100%;}
.cm-header--source-v2 .cm-trustbar-inner {flex-wrap:nowrap;}
.cm-header--source-v2 .cm-trustbar-notes {flex:0 1 auto;justify-content:flex-start;}
.cm-header--source-v2 .cm-trustbar-links {flex:none;}
.cm-header--source-v2 .cm-trustbar-notes span {font-size:10.5px;}
.cm-header--source-v2 .cm-trustbar-links a {font-size:10.5px;}
@media (min-width:768px) and (max-width:1100px){
  .cm-footer--v2 .cm-footer-grid {grid-template-columns:minmax(110px,1.05fr) repeat(3,minmax(95px,.95fr)) minmax(145px,1.1fr);gap:13px;}
}
@media(max-width:767px){
  .cm-footer.cm-footer--v2 {padding:24px 14px 90px;}
  .cm-footer--v2 .cm-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;}
  .cm-footer--v2 .cm-footer-brand {grid-column:1 / -1;}
  .cm-footer--v2 .cm-footer-contact {grid-column:1 / -1;}
  .cm-footer--v2 .cm-footer-bottom {align-items:flex-start;}
}
@media(max-width:420px){
  .cm-footer--v2 .cm-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .cm-footer--v2 .cm-footer-column:last-of-type {grid-column:1 / -1;}
}



/* Phase 1.3: final visual polish for the existing layout markup.
   This is a full replacement for layout v2, not an additional override. */
.cm-header--source-v2 .cm-trustbar-notes span,
.cm-header--source-v2 .cm-trustbar-links a {font-size:11.5px;}
.cm-header--source-v2 .cm-main-links {font-size:12.5px;}
.cm-header--source-v2 .cm-header-actions :is(.cm-orders,.cm-cart) {font-size:12px;}
.cm-header--source-v2 .cm-header-search input {font-size:13px;}
.cm-header--source-v2 .cm-header-categories > div > button {font-size:12.5px;}
.cm-footer.cm-footer--v2 {padding-block:25px 13px;}
.cm-footer--v2 .cm-footer-column h3,
.cm-footer--v2 .cm-footer-contact h3 {font-size:14px; margin-bottom:8px;}
.cm-footer--v2 .cm-footer-column li,
.cm-footer--v2 .cm-footer-contact li {font-size:12px; margin-bottom:4px;}
.cm-footer--v2 .cm-footer-brand p {font-size:12px; margin-top:8px;}
.cm-footer--v2 .cm-footer-grid {column-gap:clamp(12px,2.2vw,24px);row-gap:16px;}
.cm-footer--v2 .cm-footer-bottom {
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;column-gap:14px;row-gap:10px;
  margin-top:18px;padding-top:10px;
}
.cm-footer--v2 .cm-footer-socials {grid-column:1;justify-content:flex-start;}
.cm-footer--v2 .cm-footer-copyright {grid-column:2;text-align:center;font-size:11px;}
.cm-footer--v2 .cm-footer-trust {grid-column:3;justify-self:end;min-width:108px;}
.cm-footer--v2 .cm-enamad {margin:0;max-width:none;}
.cm-footer--v2 .cm-enamad > div {width:120px;max-width:120px;}
.cm-footer--v2 .cm-enamad .h-24 {height:72px;}
.cm-footer--v2 .cm-enamad .h-8 {height:25px;width:25px;}
.cm-footer--v2 .cm-enamad a {border-radius:8px;}
.cm-footer--v2 .cm-enamad .text-xs {font-size:10px;line-height:1.45;}
@media(max-width:767px){
  .cm-footer--v2 .cm-footer-bottom {grid-template-columns:minmax(0,1fr) auto;}
  .cm-footer--v2 .cm-footer-socials {grid-column:1;}
  .cm-footer--v2 .cm-footer-copyright {grid-column:1 / -1;grid-row:2;text-align:center;}
  .cm-footer--v2 .cm-footer-trust {grid-column:2;grid-row:1;}
  .cm-header--source-v2 .cm-header-search input {font-size:13px;}
}
@media(max-width:359px){
  .cm-footer--v2 .cm-footer-bottom {grid-template-columns:1fr;}
  .cm-footer--v2 .cm-footer-socials,
  .cm-footer--v2 .cm-footer-trust,
  .cm-footer--v2 .cm-footer-copyright {grid-column:1;justify-self:center;}
  .cm-footer--v2 .cm-footer-trust {grid-row:2;}
  .cm-footer--v2 .cm-footer-copyright {grid-row:3;}
}

/* Phase 1.4 — compact RTL service strip with real icons. */
.cm-header.cm-header--source-v2 .cm-trustbar-inner {
  direction: rtl;
  justify-content: space-between;
  gap: 18px;
}
.cm-header.cm-header--source-v2 .cm-trustbar-notes {
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: clamp(10px, 1.5vw, 20px);
  min-width: 0;
}
.cm-header.cm-header--source-v2 .cm-trustbar-links {
  flex: 0 0 auto;
  margin-inline-start: auto;
  justify-content: flex-start;
  gap: clamp(10px, 1.6vw, 22px);
}
.cm-header.cm-header--source-v2 .cm-trustbar-item,
.cm-header.cm-header--source-v2 .cm-trustbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.6;
  white-space: nowrap;
  flex: none;
  font-size: 11px;
  font-weight: 500;
}
.cm-header.cm-header--source-v2 .cm-trustbar-link { color: #fff9f2; text-decoration: none; }
.cm-header.cm-header--source-v2 .cm-trustbar-link:hover { color: #ffd4ad; }
.cm-header.cm-header--source-v2 .cm-trustbar-item > span,
.cm-header.cm-header--source-v2 .cm-trustbar-link > span { display: inline; }
.cm-header.cm-header--source-v2 .cm-trustbar-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #fef8ef;
}
@media (min-width:768px) and (max-width:900px) {
  .cm-header.cm-header--source-v2 .cm-trustbar-inner { gap:8px; padding-inline:12px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-notes,
  .cm-header.cm-header--source-v2 .cm-trustbar-links { gap:8px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-item,
  .cm-header.cm-header--source-v2 .cm-trustbar-link { gap:4px;font-size:9px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-icon { width:13px;height:13px;flex-basis:13px; }
}
@media (max-width:767px) {
  .cm-header.cm-header--source-v2 .cm-trustbar { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .cm-header.cm-header--source-v2 .cm-trustbar-link {transition:none;}
}

/* Phase 1.5 — approved Cook Market SVG wordmark, chef's hat and slogan.
   Logo only: keep menu, cart, footer and existing responsive rules unchanged. */
.cm-header.cm-header--source-v2 .cm-logo {
  flex: 0 0 auto;
  max-width: 222px;
  min-width: 0;
}
.cm-header.cm-header--source-v2 .cm-logo .cm-brand-img {
  display: block;
  width: 222px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}
.cm-header.cm-header--source-v2 .cm-header-row {
  min-height: 76px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cm-header.cm-header--source-v2 .cm-logo { max-width: 185px; }
  .cm-header.cm-header--source-v2 .cm-logo .cm-brand-img { width: 185px; }
  .cm-header.cm-header--source-v2 .cm-header-row { min-height: 66px; }
}
@media (max-width: 767px) {
  .cm-header.cm-header--source-v2 .cm-logo { max-width: 166px; }
  .cm-header.cm-header--source-v2 .cm-logo .cm-brand-img { width: 166px; }
  .cm-header.cm-header--source-v2 .cm-header-row { min-height: 0; }
}
@media (max-width: 359px) {
  .cm-header.cm-header--source-v2 .cm-logo { max-width: 146px; }
  .cm-header.cm-header--source-v2 .cm-logo .cm-brand-img { width: 146px; }
}


/* Phase 1.6 — approved footer: brand image, buying guide, seal under contact.
   Full replacement for layout-v5.css; do not load both stylesheets. */
.cm-footer--v2 .cm-footer-brand-logo {display:inline-flex; align-items:center; max-width:100%;}
.cm-footer--v2 .cm-footer-brand-img {
  display:block; width:clamp(154px,17vw,200px); height:auto; max-width:100%;
  object-fit:contain; aspect-ratio:3 / 1;
}
.cm-footer--v2 .cm-footer-contact .cm-footer-trust--contact {
  display:block; margin:12px 0 0; max-width:124px; min-width:0;
  grid-column:auto; grid-row:auto; justify-self:auto;
}
.cm-footer--v2 .cm-footer-contact .cm-enamad {max-width:124px; margin:0;}
.cm-footer--v2 .cm-footer-contact .cm-enamad > div {max-width:120px; width:120px;}
.cm-footer--v2 .cm-footer-bottom {grid-template-columns:minmax(0,1fr) auto;}
.cm-footer--v2 .cm-footer-bottom .cm-footer-socials {grid-column:1; grid-row:1;}
.cm-footer--v2 .cm-footer-bottom .cm-footer-copyright {grid-column:2; grid-row:1; text-align:end;}
@media(max-width:767px) {
  .cm-footer--v2 .cm-footer-brand-img {width:185px;}
  .cm-footer--v2 .cm-footer-bottom {grid-template-columns:1fr;}
  .cm-footer--v2 .cm-footer-bottom .cm-footer-socials {grid-column:1;grid-row:1;justify-content:center;}
  .cm-footer--v2 .cm-footer-bottom .cm-footer-copyright {grid-column:1;grid-row:2;text-align:center;}
}

/* =============================================================
   Cook Market — header final polish v8 (2026-11-17)
   Preserve approved 15px Peyda menu, approved logo and product cards.
   Source CSS: cookmarket-layout-v6.css; this is its replacement.
   ============================================================= */
/* Peyda SemiPro web fonts purchased by owner; font files are NOT bundled. */
@font-face {
  font-family: 'Peyda';
  src: url('/asset/font/PeydaWeb-SemiBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('/asset/font/PeydaWeb-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Peyda';
  src: url('/asset/font/PeydaWeb-Black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* Trust/service bar: two compact RTL/LTR-edge groups with readable text. */
.cm-header.cm-header--source-v2 .cm-trustbar {
  background: linear-gradient(105deg, #352018, #513025 52%, #352018);
  color: #fff9f2;
}
.cm-header.cm-header--source-v2 .cm-trustbar-inner {
  min-height: 36px;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding-block: 4px;
}
.cm-header.cm-header--source-v2 .cm-trustbar-notes {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 1 auto;
  min-width: 0;
}
.cm-header.cm-header--source-v2 .cm-trustbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-inline-start: auto;
}
.cm-header.cm-header--source-v2 .cm-trustbar-item,
.cm-header.cm-header--source-v2 .cm-trustbar-link {
  gap: 6px;
  color: #fff9f2;
  line-height: 1.6;
  font-family: 'IRANSansX', Tahoma, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  font-size: 12px;
}
.cm-header.cm-header--source-v2 .cm-trustbar-item > span,
.cm-header.cm-header--source-v2 .cm-trustbar-link > span {
  font-size: inherit;
  overflow: visible;
  text-overflow: clip;
}
.cm-header.cm-header--source-v2 .cm-trustbar-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* Main navigation labels remain unchanged: only approved typography/spacing. */
.cm-header.cm-header--source-v2 .cm-main-links {
  gap: clamp(13px, 1.6vw, 20px);
}
.cm-header.cm-header--source-v2 .cm-main-links a {
  font-family: 'Peyda', 'IRANSansX', Tahoma, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.cm-header.cm-header--source-v2 .cm-header-categories > div > button {
  font-family: 'Peyda', 'IRANSansX', Tahoma, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}
.cm-header.cm-header--source-v2 .cm-header-nav {
  gap: clamp(12px, 1.8vw, 22px);
  padding-block: 4px 9px;
}
.cm-header.cm-header--source-v2 .cm-header-row {
  gap: clamp(12px, 2.2vw, 26px);
}
/* Keep the approved SVG width and avoid forcing its height. */
.cm-header.cm-header--source-v2 .cm-brand-img { height: auto; }

/* Tablet: preserve one row without shrinking the menu excessively. */
@media (min-width: 768px) and (max-width: 1023px) {
  .cm-header.cm-header--source-v2 .cm-trustbar-inner { gap: 10px; padding-inline: 14px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-notes { gap: 9px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-links { gap: 9px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-item,
  .cm-header.cm-header--source-v2 .cm-trustbar-link { font-size: 10.5px; gap: 4px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .cm-header.cm-header--source-v2 .cm-header-row { gap: 14px; }
  .cm-header.cm-header--source-v2 .cm-header-search { min-width: 160px; }
  .cm-header.cm-header--source-v2 .cm-main-links { gap: 12px; }
  .cm-header.cm-header--source-v2 .cm-main-links a { font-size: 14px; }
  .cm-header.cm-header--source-v2 .cm-header-categories > div > button { font-size: 14px; }
}
@media (max-width: 767px) {
  /* Menu/categorical links remain in the current mobile drawer. */
  .cm-header.cm-header--source-v2 .cm-trustbar { display: none; }
  .cm-header.cm-header--source-v2 .cm-header-row { gap: 10px; padding-block: 9px 11px; }
  .cm-header.cm-header--source-v2 .cm-header-search { max-width: none; width: 100%; }
  .cm-header.cm-header--source-v2 .cm-header-search input { font-size: 13px; }
  .cm-header.cm-header--source-v2 .cm-header-nav { display: none; }
}
@media (max-width: 359px) {
  .cm-header.cm-header--source-v2 .cm-header-row { gap: 7px; }
}


/* ===========================================================
   Cook Market — v9: final header micro-polish
   - Keep approved logo, 15px Peyda main menu, all links and footer.
   - Slightly more legible top service strip without increasing height.
   - Compact announcement strip generated by legacyHomeSection(top_bar).
   =========================================================== */
@media (min-width: 1024px) {
  .cm-header.cm-header--source-v2 .cm-trustbar-item,
  .cm-header.cm-header--source-v2 .cm-trustbar-link {
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 600;
  }
  .cm-header.cm-header--source-v2 .cm-trustbar-inner {
    min-height: 34px;
    padding-block: 2px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cm-header.cm-header--source-v2 .cm-trustbar-item,
  .cm-header.cm-header--source-v2 .cm-trustbar-link {
    font-size: 11.2px;
    line-height: 1.4;
    font-weight: 600;
  }
  .cm-header.cm-header--source-v2 .cm-trustbar-notes,
  .cm-header.cm-header--source-v2 .cm-trustbar-links { gap: 8px; }
  .cm-header.cm-header--source-v2 .cm-trustbar-inner {
    min-height: 32px;
    padding-block: 2px;
  }
}
/* Announcements are a separate section before the header in homepage.php. */
section[data-home-section="top_bar"] {
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: 7px 12px !important;
}
section[data-home-section="top_bar"] > div {
  min-height: 0;
  padding: 8px 14px !important;
  border-radius: 11px;
  background-color: #fff0d3;
  color: #503025;
  font-family: 'IRANSansX', Tahoma, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
section[data-home-section="top_bar"] > div p { margin: 0; }
@media (max-width: 767px) {
  section[data-home-section="top_bar"] { padding: 5px 8px !important; }
  section[data-home-section="top_bar"] > div {
    padding: 7px 9px !important;
    font-size: 11px;
    line-height: 1.6;
  }
}

/* Mobile QA: max-width logo previously anchored to the start of its grid cell.
   Center the approved SVG without changing its size or the other controls. */
@media (max-width: 767px) {
  .cm-header.cm-header--source-v2 .cm-logo { justify-self: center; }
}
