/*
Theme Name: Cmosa Flower v1.2.15
Theme URI: https://cmosaflower.com
Author: Cmosa Team
Description: Custom mobile-first WooCommerce theme for Cmosa Flower — ร้านดอกไม้พรีเมี่ยมปากคลองตลาด. Forked from Aorest theme architecture, optimized for speed, SEO silo, and Valentine 2027 launch.
Version: 1.2.15
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmosa
Tags: woocommerce, mobile-first, seo, custom
*/

/* ===================================================================
   CMOSA THEME — UNIFIED STYLESHEET
   All CSS lives here per ModSecurity constraints (no inline in PHP).
   Sections:
   1. Reset & Base
   2. CSS Variables (Cmosa palette)
   3. Typography (Thai web fonts)
   4. Layout
   5. Header
   6. Hero
   7. Product Grid & Cards
   8. Single Product
   9. Category / Archive
   10. Pillar Pages (Valentine, etc.)
   11. Blog
   12. Footer
   13. Mobile Sticky CTA
   14. Utilities
   =================================================================== */

/* === 1. RESET & BASE =============================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; }
ul, ol { padding-left: 1.25em; }

/* === 2. CSS VARIABLES (Cmosa palette) ============================= */
:root {
  /* Primary brand — Cmosa gold (จากการ scan เว็บเดิม) */
  --c-primary: #DC9814;
  --c-primary-light: #EE9E13;
  --c-primary-dark: #B57A0F;
  --c-primary-50: #FDF6E8;

  /* Accent — LINE / CTA */
  --c-accent: #3BB54A;
  --c-accent-dark: #2E9038;

  /* Neutrals */
  --c-text: #1F1F1F;
  --c-text-muted: #69727D;
  --c-text-light: #9DA5AE;
  --c-border: #E2E2E2;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8F8F8;
  --c-bg-soft: #FAF6EE;

  /* Sale / urgency */
  --c-sale: #E63946;

  /* Shadows */
  --c-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --c-shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --c-shadow-lg: 0 12px 32px rgba(0,0,0,.10);

  /* Layout */
  --c-container: 1200px;
  --c-radius: 12px;
  --c-radius-sm: 6px;
  --c-radius-lg: 20px;

  /* Spacing scale */
  --c-s1: 4px;
  --c-s2: 8px;
  --c-s3: 12px;
  --c-s4: 16px;
  --c-s5: 24px;
  --c-s6: 32px;
  --c-s7: 48px;
  --c-s8: 64px;
}

/* === 3. TYPOGRAPHY (Kanit — Cmosa brand font) ===================== */
body {
  font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--c-s4);
  color: var(--c-text);
}
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
p  { margin: 0 0 var(--c-s4); }

/* === 4. LAYOUT ==================================================== */
.cmosa-container {
  width: 100%;
  max-width: var(--c-container);
  margin: 0 auto;
  padding: 0 var(--c-s4);
  box-sizing: border-box;
}
.cmosa-section { padding: var(--c-s7) 0; }
.cmosa-section-title {
  text-align: center;
  margin-bottom: var(--c-s6);
}
.cmosa-section-title::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: var(--c-primary);
  margin: var(--c-s3) auto 0;
  border-radius: 2px;
}

/* === 4B. COMPACT SECTIONS (mobile-first homepage) ================ */
/* Tight padding, no centered title, inline "ดูทั้งหมด" link */
.cmosa-section-tight {
  padding: var(--c-s4) 0;
  width: 100%;
  overflow: hidden; /* prevent any child from breaking out */
}
@media (min-width: 768px) {
  .cmosa-section-tight { padding: var(--c-s6) 0; }
}
.cmosa-section-header-tight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--c-s3);
  margin-bottom: var(--c-s3);
}
.cmosa-section-header-tight h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--c-text);
  line-height: 1.2;
}
@media (min-width: 768px) {
  .cmosa-section-header-tight h2 { font-size: 22px; }
}
.cmosa-section-link {
  font-size: 13px;
  color: var(--c-primary-dark);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.cmosa-section-link:hover { color: var(--c-primary); }

/* === 4C. TRUST STRIP (4 icons under banner) ====================== */
.cmosa-trust-strip {
  background: linear-gradient(135deg, var(--c-bg-soft), #fff);
  border-bottom: 1px solid var(--c-border);
  padding: var(--c-s3) 0;
  margin-top: 0;
}
.cmosa-trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: var(--c-container);
  margin: 0 auto;
  padding: 0 var(--c-s2);
}
.cmosa-trust-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  font-size: 11px;
  color: var(--c-text);
  text-align: center;
  line-height: 1.3;
}
.cmosa-trust-icon {
  font-size: 22px;
  line-height: 1;
}
@media (min-width: 600px) {
  .cmosa-trust-pill { font-size: 13px; padding: 10px; }
  .cmosa-trust-pill .cmosa-trust-icon { font-size: 28px; }
}

/* === 4D. QUICK CATEGORY ICONS (Shopee-style nav) ================= */
.cmosa-quick-cats {
  background: #fff;
  padding: var(--c-s4) 0;
  border-bottom: 1px solid var(--c-border);
}
.cmosa-quick-cats-inner {
  display: flex;
  gap: var(--c-s2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--c-s4);
  scroll-snap-type: x mandatory;
  margin-left: 10px;
}
.cmosa-quick-cats-inner::-webkit-scrollbar { display: none; }
.cmosa-quick-cat-icon {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  text-decoration: none;
  color: var(--c-text);
  scroll-snap-align: start;
  transition: transform .15s;
}
.cmosa-quick-cat-icon:hover {
  transform: translateY(-2px);
  color: var(--c-primary-dark);
}
.cmosa-quick-cat-emoji {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-bg-soft), #FFF8E7);
  border: 1px solid var(--c-primary-50);
  border-radius: 50%;
  font-size: 24px;
  transition: all .15s;
}
.cmosa-quick-cat-icon:hover .cmosa-quick-cat-emoji {
  background: var(--c-primary);
  border-color: var(--c-primary);
  filter: brightness(1.1);
}
.cmosa-quick-cat-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .cmosa-quick-cats-inner {
    justify-content: center;
    gap: var(--c-s5);
  }
  .cmosa-quick-cat-icon { width: 80px; }
  .cmosa-quick-cat-emoji { width: 64px; height: 64px; font-size: 32px; }
  .cmosa-quick-cat-label { font-size: 13px; }
}

/* === 4E. TRUST STRIP (4 trust signals — replaces owner promo) ===== */
.cmosa-trust-strip {
  padding: var(--c-s4) 0;
  background: var(--c-bg);
}
.cmosa-trust-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: var(--c-s2);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
@media (min-width: 768px) {
  .cmosa-trust-card {
    grid-template-columns: repeat(4, 1fr);
    padding: var(--c-s3);
  }
}
.cmosa-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  position: relative;
}
/* Vertical divider on desktop / horizontal on mobile */
.cmosa-trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  background: var(--c-border);
}
@media (max-width: 767.98px) {
  .cmosa-trust-item:nth-child(1)::after,
  .cmosa-trust-item:nth-child(2)::after {
    left: 8px; right: 8px;
    bottom: 0;
    height: 1px;
  }
  .cmosa-trust-item:nth-child(odd)::after {
    /* split bottom border */
  }
  .cmosa-trust-item:nth-child(1)::before,
  .cmosa-trust-item:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 8px; bottom: 8px;
    right: 0;
    width: 1px;
    background: var(--c-border);
  }
}
@media (min-width: 768px) {
  .cmosa-trust-item:not(:last-child)::after {
    top: 8px; bottom: 8px;
    right: 0;
    width: 1px;
  }
}
.cmosa-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1A1A1A;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmosa-trust-icon svg {
  width: 20px;
  height: 20px;
}
/* Per-item color variants — meaning-encoded backgrounds */
.cmosa-trust-item.is-delivery .cmosa-trust-icon { background: #F97316; }  /* Orange — speed/express */
.cmosa-trust-item.is-fresh    .cmosa-trust-icon { background: #EC4899; }  /* Pink — flowers/fresh */
.cmosa-trust-item.is-chat     .cmosa-trust-icon { background: #06C755; }  /* LINE green — chat */
.cmosa-trust-item.is-trust    .cmosa-trust-icon { background: var(--c-primary); }  /* Cmosa gold — premium */
.cmosa-trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.cmosa-trust-text strong {
  font-size: 13px;
  color: var(--c-text);
  font-weight: 700;
}
.cmosa-trust-text small {
  font-size: 11px;
  color: var(--c-text-muted);
}
@media (min-width: 768px) {
  .cmosa-trust-text strong { font-size: 15px; }
  .cmosa-trust-text small { font-size: 12px; }
  .cmosa-trust-icon { width: 44px; height: 44px; }
  .cmosa-trust-icon svg { width: 22px; height: 22px; }
}

/* === 4F. WHY GRID (compact 2x2 mobile / 4-col desktop) =========== */
.cmosa-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--c-s2);
}
@media (min-width: 768px) {
  .cmosa-why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--c-s4);
  }
}
.cmosa-why-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: var(--c-s3);
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.cmosa-why-item:hover {
  border-color: var(--c-primary-light);
  transform: translateY(-2px);
}
.cmosa-why-icon {
  font-size: 32px;
  margin-bottom: 4px;
}
@media (min-width: 768px) {
  .cmosa-why-item { padding: var(--c-s5); }
  .cmosa-why-icon { font-size: 40px; margin-bottom: var(--c-s2); }
}
.cmosa-why-item h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  color: var(--c-text);
}
@media (min-width: 768px) {
  .cmosa-why-item h3 { font-size: 15px; }
}
.cmosa-why-item p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--c-text-muted);
  margin: 0;
}
@media (min-width: 768px) {
  .cmosa-why-item p { font-size: 13px; }
}

/* === 5. HEADER ==================================================== */
/* ========================================================
 * 5. HEADER (Aorest-style 3-column proper layout)
 * Mobile:  [☰]   [Logo center]   [🔍][LINE]
 * Desktop: [Logo]   [Nav center]   [🔍][LINE]
 * ======================================================== */
.cmosa-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-sm);
}
.cmosa-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* equal sides → logo perfectly centered */
  align-items: center;
  gap: var(--c-s3);
  padding: 12px var(--c-s4);
  max-width: var(--c-container);
  margin: 0 auto;
  min-height: 64px;
}

/* === LOGO === */
.cmosa-logo {
  display: flex;
  align-items: center;
  justify-self: center;       /* perfectly centered */
  line-height: 0;
  grid-column: 2;             /* explicit middle column */
}
.cmosa-logo img,
.cmosa-logo .custom-logo {
  height: 36px !important;
  width: auto !important;
  max-width: 140px !important;
  max-height: 36px !important;
  object-fit: contain;
  display: block !important;
}

/* === MENU TOGGLE (LEFT, mobile only) === */
.cmosa-menu-toggle {
  display: flex; flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
  justify-self: start;        /* anchor to left */
  grid-column: 1;
}
.cmosa-menu-toggle:hover { background: var(--c-bg-alt); }
.cmosa-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* === DESKTOP NAV (hidden on mobile) === */
.cmosa-nav { display: none; }
.cmosa-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--c-s5);
  justify-content: center;
}
.cmosa-nav > div > ul > li,
.cmosa-nav > ul > li {
  position: relative;
}
.cmosa-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--c-text);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}
.cmosa-nav a:hover,
.cmosa-nav .current-menu-item > a,
.cmosa-nav .current_page_item > a {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}
/* Chevron indicator on items with children (desktop) */
.cmosa-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
  vertical-align: middle;
  opacity: .7;
}
/* Sub-menu (desktop hover dropdown) */
.cmosa-nav .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 6px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 100;
}
.cmosa-nav .sub-menu li {
  width: 100%;
}
.cmosa-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-bottom: 0;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.cmosa-nav .sub-menu a:hover,
.cmosa-nav .sub-menu .current-menu-item > a {
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  border-bottom: 0;
}
.cmosa-nav li:hover > .sub-menu,
.cmosa-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}
.cmosa-nav li:hover > a.menu-item-has-children::after,
.cmosa-nav .menu-item-has-children:hover > a::after {
  transform: translateY(0) rotate(225deg);
}

/* === RIGHT CTA CLUSTER === */
.cmosa-header-cta {
  display: flex; align-items: center;
  gap: 8px;
  justify-self: end;          /* anchor to right */
  grid-column: 3;
}

/* === LINE button — PNG image, NO styling (transparent PNG, embedded styling) === */
.cmosa-line-btn {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  transition: transform .15s, opacity .15s;
}
.cmosa-line-btn:hover {
  transform: scale(1.08);
  opacity: 0.92;
}
.cmosa-line-btn-img {
  width: 36px;
  height: 36px;
  display: block;
}

/* Desktop inline search — hidden on mobile (default), shown on desktop in header grid */
.cmosa-search-form-desktop {
  display: none !important;
}

/* === SEARCH BAR (always visible under header — Aorest-style) === */
.cmosa-search-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: var(--c-s2) 0 6px;
}

.cmosa-search-form-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 4px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.cmosa-search-form-header:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(220,152,20,.10);
}
.cmosa-search-icon {
  flex-shrink: 0;
  color: var(--c-text-muted);
}
.cmosa-search-form-header input {
  flex: 1;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  color: var(--c-text);
  min-width: 0;
}
.cmosa-search-form-header input::placeholder {
  color: var(--c-text-muted);
}

/* Mobile drawer */
.cmosa-mobile-drawer {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--c-bg); z-index: 200;
  padding: var(--c-s6) var(--c-s5);
  box-shadow: var(--c-shadow-lg);
  transition: right .3s ease;
  overflow-y: auto;
}
.cmosa-mobile-drawer.is-open { right: 0; }
.cmosa-mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.cmosa-mobile-drawer li { border-bottom: 1px solid var(--c-border); }
.cmosa-mobile-drawer a {
  display: block; padding: var(--c-s4) 0;
  font-weight: 500; font-size: 17px;
  text-decoration: none;
  color: var(--c-text);
}
/* Mobile drawer sub-menu (accordion) */
.cmosa-mobile-drawer .menu-item-has-children {
  position: relative;
}
.cmosa-mobile-drawer .menu-item-has-children > a {
  padding-right: 44px;
}
.cmosa-mobile-drawer .cmosa-submenu-toggle {
  position: absolute;
  top: 0;
  right: -8px;
  width: 44px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: transform .2s ease;
}
.cmosa-mobile-drawer .cmosa-submenu-toggle::before {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.cmosa-mobile-drawer .menu-item-has-children.is-open > .cmosa-submenu-toggle::before {
  transform: rotate(-135deg);
}
.cmosa-mobile-drawer .sub-menu {
  display: none;
  padding-left: var(--c-s4);
  border-top: 1px solid var(--c-border);
  margin-top: -1px;
}
.cmosa-mobile-drawer .menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.cmosa-mobile-drawer .sub-menu li {
  border-bottom: 0;
}
.cmosa-mobile-drawer .sub-menu li:not(:last-child) {
  border-bottom: 1px solid var(--c-border);
}
.cmosa-mobile-drawer .sub-menu a {
  font-size: 15px;
  font-weight: 400;
  padding: 12px 0;
  color: var(--c-text-muted);
}
.cmosa-mobile-drawer .sub-menu a:hover,
.cmosa-mobile-drawer .sub-menu .current-menu-item > a {
  color: var(--c-primary);
}
.cmosa-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.cmosa-overlay.is-active { opacity: 1; pointer-events: all; }

/* === Desktop layout breakpoint === */
@media (min-width: 900px) {
  .cmosa-header-inner {
    /* Desktop: 4-col grid with flex spacer pattern
     * [logo (auto)] [menu (auto)] [search (1fr fluid, max 380)] [LINE (auto)]
     * Search column gets the leftover space and centers itself within. */
    grid-template-columns: auto auto 1fr auto;
    gap: var(--c-s4);
    padding: 14px var(--c-s5);
    min-height: 72px;
  }
  .cmosa-logo {
    grid-column: 1;       /* logo at far left */
    justify-self: start;
  }
  .cmosa-logo img,
  .cmosa-logo .custom-logo {
    height: 44px !important;
    max-width: 180px !important;
    max-height: 44px !important;
  }
  .cmosa-nav {
    display: block;
    grid-column: 2;       /* menu right of logo */
    justify-self: start;
  }
  .cmosa-menu-toggle { display: none; }

  /* Show desktop inline search — center within its 1fr column */
  .cmosa-search-form-desktop {
    display: flex !important;
    grid-column: 3;
    max-width: 380px;
    width: 100%;
    justify-self: center;     /* center horizontally in the 1fr column */
  }
  .cmosa-search-form-desktop input {
    font-size: 14px;
  }

  /* Hide mobile search bar (the one below header) on desktop */
  .cmosa-search-bar-mobile { display: none; }

  .cmosa-header-cta {
    grid-column: 4;
    justify-self: end;
  }
}

@media (min-width: 1200px) {
  .cmosa-logo img,
  .cmosa-logo .custom-logo {
    height: 48px !important;
    max-width: 200px !important;
    max-height: 48px !important;
  }
}

/* === Global overflow-x lockdown ===================================
 * Prevent any element from causing horizontal scroll on mobile.
 * Banner, carousels, etc. all clip cleanly within viewport.
 *
 * IMPORTANT: Do NOT include .cmosa-container here — it has its own
 * max-width: var(--c-container) (1200px). Forcing max-width: 100%
 * on .cmosa-container would expand it to fill the whole viewport.
 * ================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
.cmosa-site, main, .cmosa-section, .cmosa-section-tight {
  overflow-x: hidden;
  max-width: 100%;
}

/* === 6. HERO BANNER (mobile-first: full edge / desktop: contained) === */
.cmosa-hero-banner {
  width: 100%;
  margin: 0 auto;
  padding: 0;          /* mobile: no padding — full bleed */
  background: transparent;
}
.cmosa-hero-banner-link {
  display: block;
  line-height: 0;
  /* No rounded corners or shadow on mobile — fits edge to edge */
}
.cmosa-hero-banner img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}
@media (min-width: 768px) {
  .cmosa-hero-banner {
    max-width: var(--c-container);
    margin-top: var(--c-s4);
    padding: 0 var(--c-s4);
  }
  .cmosa-hero-banner-link {
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    box-shadow: var(--c-shadow-md);
  }
}

/* Fallback hero (when no banner uploaded) — softer placeholder */
.cmosa-hero-fallback {
  max-width: var(--c-container);
  margin: var(--c-s4) auto 0;
  padding: var(--c-s7) var(--c-s5);
  background: linear-gradient(135deg, var(--c-bg-soft), #fff);
  border-radius: var(--c-radius-lg);
  text-align: center;
  border: 1px dashed var(--c-border);
}

/* Reusable button styles still needed elsewhere */
.cmosa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .2s;
}
.cmosa-btn:active { transform: translateY(1px); }
.cmosa-btn-primary {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 4px 14px rgba(220,152,20,.35);
}
.cmosa-btn-primary:hover { background: var(--c-primary-dark); }
.cmosa-btn-line {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 4px 14px rgba(59,181,74,.35);
}
.cmosa-btn-line:hover { background: var(--c-accent-dark); }
.cmosa-btn-messenger {
  background: #0084FF; color: #fff;
  box-shadow: 0 4px 14px rgba(0,132,255,.35);
}
.cmosa-btn-messenger:hover { background: #006EDC; color: #fff; }
.cmosa-btn-outline {
  border: 2px solid var(--c-primary); color: var(--c-primary);
}
.cmosa-btn-outline:hover { background: var(--c-primary); color: #fff; }

/* === 7. PRODUCT GRID & CARDS ====================================== */
.cmosa-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px) {
  .cmosa-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--c-s4);
  }
}
@media (min-width: 1024px) {
  .cmosa-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--c-s3);
  }
}

/* === Carousel variant — Mobile: horizontal scroll / Desktop: grid === */
.cmosa-products-grid.is-carousel {
  display: flex;
  gap: var(--c-s2);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  /* Negative margin so it bleeds to viewport edges, with padding for first/last card breathing room */
  margin: 0 calc(-1 * var(--c-s4));
  padding-left: var(--c-s4);
  padding-right: var(--c-s4);
  margin-left: 0px;
}
.cmosa-products-grid.is-carousel::-webkit-scrollbar { display: none; }
.cmosa-products-grid.is-carousel > * {
  flex: 0 0 45%;        /* ~2 cards visible + peek */
  max-width: 200px;
  scroll-snap-align: start;
}
@media (min-width: 600px) {
  /* Tablet+: revert to normal grid — explicitly cancel ALL mobile carousel styles */
  .cmosa-products-grid.is-carousel {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--c-s4) !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }
  .cmosa-products-grid.is-carousel > * {
    flex: initial !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }
}
@media (min-width: 1024px) {
  .cmosa-products-grid.is-carousel {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: var(--c-s3) !important;
  }
}
/* When sidebar is NOT present (e.g. homepage featured) — go denser */
.cmosa-products-grid.is-fullwidth {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .cmosa-products-grid.is-fullwidth {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .cmosa-products-grid.is-fullwidth {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Features / Occasions grid — Mobile carousel / Desktop grid */
.cmosa-features-grid {
  /* Mobile: horizontal scroll (Shopee/Lazada-style) */
  display: flex;
  gap: var(--c-s3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 4px var(--c-s4) var(--c-s3);
  margin: 0 calc(-1 * var(--c-s4)); /* break out of container padding */
  margin-left: 0px;
}
.cmosa-features-grid::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}
.cmosa-features-grid > * {
  /* Each card takes ~70% viewport width on mobile, snaps */
  flex: 0 0 70%;
  max-width: 280px;
  scroll-snap-align: start;
}
@media (min-width: 600px) {
  .cmosa-features-grid > * {
    flex: 0 0 45%;
    max-width: 360px;
  }
}
@media (min-width: 768px) {
  /* Desktop: revert to grid 4-col */
  .cmosa-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--c-s5);
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .cmosa-features-grid > * {
    flex: initial;
    max-width: none;
  }
}

/* === Category Cards (homepage "เลือกตามโอกาส") === */
/* Different from product cards — wider aspect ratio (3:2), bigger image, no crop */
.cmosa-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cmosa-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--c-shadow-md);
  border-color: var(--c-primary-light);
}
.cmosa-cat-card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.cmosa-cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s;
}
.cmosa-cat-card:hover .cmosa-cat-card-img img {
  transform: scale(1.05);
}
.cmosa-cat-card-body {
  padding: var(--c-s4) var(--c-s4);
  text-align: center;
}
.cmosa-cat-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--c-text);
  line-height: 1.3;
}
@media (min-width: 768px) {
  .cmosa-cat-card-title { font-size: 17px; }
}

/* Product card wrap — wraps card link + CTA button below */
.cmosa-product-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cmosa-product-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cmosa-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--c-shadow-md);
  border-color: var(--c-primary-light);
}

/* "ทักสั่ง" CTA — sits below card, sticks out */
.cmosa-product-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--c-accent);
  color: #fff;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--c-radius) var(--c-radius);
  border: 1px solid var(--c-accent);
  border-top: 0;
  transition: background .15s;
}
.cmosa-product-card-cta:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: #fff;
}
@media (min-width: 600px) {
  .cmosa-product-card-cta { font-size: 13px; padding: 9px 6px; }
}

.cmosa-product-card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.cmosa-product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.cmosa-product-card:hover .cmosa-product-card-img img { transform: scale(1.04); }
.cmosa-product-card-sale {
  position: absolute; top: 8px; left: 8px;
  background: var(--c-sale); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.cmosa-product-card-body {
  padding: var(--c-s2) var(--c-s3) var(--c-s3);
  display: flex; flex-direction: column; gap: 4px;
  flex: 1;
}
.cmosa-product-card-title {
  font-size: 13px; font-weight: 500;
  color: var(--c-text);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em; /* reserve 2 lines for alignment */
}
@media (min-width: 600px) {
  .cmosa-product-card-title { font-size: 13px; }
}
.cmosa-product-card-price {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
}
.cmosa-product-card-price-now {
  color: var(--c-primary-dark); font-weight: 700; font-size: 15px;
}
.cmosa-product-card-price-was {
  color: var(--c-text-light); text-decoration: line-through; font-size: 12px;
}

/* Views badge — overlay top-right of product image */
.cmosa-product-card-views {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(31,27,22,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.cmosa-product-card-views svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* === 7B. SHOP LAYOUT (sidebar + grid) ============================= */
.cmosa-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--c-s5);
}
@media (min-width: 1024px) {
  .cmosa-shop-layout {
    grid-template-columns: 250px 1fr;
    gap: var(--c-s6);
  }
}

/* Toolbar — sort + result count + mobile filter button */
.cmosa-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--c-s3); flex-wrap: wrap;
  padding: var(--c-s3) 0;
  margin-bottom: var(--c-s4);
  border-bottom: 1px solid var(--c-border);
}
.cmosa-shop-toolbar-count {
  font-size: 14px; color: var(--c-text-muted);
}
.cmosa-shop-toolbar-count strong { color: var(--c-text); }
.cmosa-shop-toolbar-sort {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.cmosa-shop-toolbar-sort select {
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.cmosa-shop-toolbar-sort select:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.cmosa-shop-mobile-filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: #fff;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-weight: 500; font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.cmosa-shop-mobile-filter-btn:hover,
.cmosa-shop-mobile-filter-btn:focus-visible {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.cmosa-shop-mobile-filter-btn svg {
  flex-shrink: 0;
  color: var(--c-text-muted);
}
.cmosa-shop-mobile-filter-btn:hover svg,
.cmosa-shop-mobile-filter-btn:focus-visible svg {
  color: var(--c-primary);
}
.cmosa-shop-filter-count-pill {
  background: var(--c-primary);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
@media (min-width: 1024px) {
  .cmosa-shop-mobile-filter-btn { display: none; }
}

/* Active filter chips */
.cmosa-active-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: var(--c-s3) 0;
  margin-bottom: var(--c-s3);
}
.cmosa-active-filters:empty { display: none; }
.cmosa-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px;
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  border: 1px solid var(--c-primary-light);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.cmosa-filter-chip:hover { background: var(--c-primary-light); color: #fff; }
.cmosa-filter-chip-x {
  font-size: 16px; line-height: 1;
  opacity: .7;
}
.cmosa-filter-chip-clear {
  background: transparent;
  color: var(--c-text-muted);
  border-color: var(--c-border);
  font-weight: 400;
}
.cmosa-filter-chip-clear:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
  border-color: var(--c-text-muted);
}

/* === 7C. FILTER SIDEBAR ============================================ */
.cmosa-filter-sidebar {
  background: #fff;
}
.cmosa-filter-group {
  border-bottom: 1px solid var(--c-border);
  padding: var(--c-s4) 0;
}
.cmosa-filter-group:first-child { padding-top: 0; }
.cmosa-filter-group:last-child { border-bottom: 0; }
.cmosa-filter-group h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 var(--c-s3);
  color: var(--c-text);
  display: flex; align-items: center; gap: 8px;
}
.cmosa-filter-group h3 svg {
  color: var(--c-primary);
  flex-shrink: 0;
}

/* Filter list (occasion / generic) */
.cmosa-filter-list {
  list-style: none;
  margin: 0; padding: 0;
}
.cmosa-filter-list li { margin-bottom: 6px; }
.cmosa-filter-list a,
.cmosa-filter-list label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--c-text);
  border-radius: var(--c-radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.cmosa-filter-list a:hover,
.cmosa-filter-list label:hover {
  background: var(--c-bg-alt);
}
.cmosa-filter-list .is-active {
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  font-weight: 600;
}
.cmosa-filter-count {
  font-size: 12px;
  color: var(--c-text-light);
  background: var(--c-bg-alt);
  padding: 1px 8px;
  border-radius: 999px;
}
.cmosa-filter-list .is-active .cmosa-filter-count {
  background: var(--c-primary);
  color: #fff;
}

/* Color swatches */
.cmosa-color-swatches {
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.cmosa-color-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  color: var(--c-text-muted);
  width: calc(33.33% - 6px);
}
.cmosa-color-swatch-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  transition: transform .15s, border-color .15s;
  position: relative;
}
.cmosa-color-swatch:hover .cmosa-color-swatch-dot {
  transform: scale(1.05);
  border-color: var(--c-text-muted);
}
.cmosa-color-swatch.is-active .cmosa-color-swatch-dot {
  border-color: var(--c-primary);
  border-width: 3px;
  box-shadow: 0 0 0 2px var(--c-primary-50);
}
.cmosa-color-swatch.is-active .cmosa-color-swatch-dot::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.cmosa-color-swatch.is-active { color: var(--c-primary-dark); font-weight: 600; }

/* Price filter */
.cmosa-filter-price-presets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.cmosa-filter-price-presets a {
  display: block; text-align: center;
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  font-size: 13px;
  color: var(--c-text);
  text-decoration: none;
  transition: all .15s;
}
.cmosa-filter-price-presets a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.cmosa-filter-price-presets a.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.cmosa-filter-price-custom {
  display: flex; gap: 6px; align-items: center;
  margin-top: var(--c-s3);
}
.cmosa-filter-price-custom input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  font-size: 13px;
}
.cmosa-filter-price-custom input:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
  border-color: transparent;
}
.cmosa-filter-price-custom button {
  padding: 8px 14px;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--c-radius-sm);
  font-weight: 600; font-size: 13px;
  white-space: nowrap;
}
.cmosa-filter-price-custom button:hover { background: var(--c-primary-dark); }

/* Mobile filter drawer */
@media (max-width: 1023px) {
  .cmosa-filter-sidebar {
    position: fixed; top: 0; left: -100%;
    width: 85%; max-width: 360px;
    height: 100vh;
    z-index: 250;
    padding: var(--c-s5);
    overflow-y: auto;
    transition: left .3s ease;
    box-shadow: var(--c-shadow-lg);
  }
  .cmosa-filter-sidebar.is-open { left: 0; }
  .cmosa-filter-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: var(--c-s4);
    margin-bottom: var(--c-s3);
    border-bottom: 1px solid var(--c-border);
  }
  .cmosa-filter-sidebar-header h2 {
    font-size: 18px; margin: 0;
  }
  .cmosa-filter-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all .15s ease;
  }
  .cmosa-filter-close:hover {
    color: var(--c-text);
    border-color: var(--c-primary);
  }
  .cmosa-filter-close svg { flex-shrink: 0; }
  .cmosa-filter-apply-bar {
    position: sticky; bottom: 0;
    background: #fff;
    padding: var(--c-s3) 0;
    margin-top: var(--c-s4);
    border-top: 1px solid var(--c-border);
    display: flex; gap: 8px;
  }
  .cmosa-filter-apply-bar a,
  .cmosa-filter-apply-bar button {
    flex: 1; text-align: center;
    padding: 12px;
    border-radius: 999px;
    font-weight: 600; font-size: 14px;
  }
}
@media (min-width: 1024px) {
  .cmosa-filter-sidebar-header,
  .cmosa-filter-close,
  .cmosa-filter-apply-bar { display: none; }
}

/* === 7D. BLOG HERO LAYOUT ========================================== */
.cmosa-blog-hero-layout {
  display: grid;
  gap: var(--c-s4);
  grid-template-columns: 1fr;
  margin-bottom: var(--c-s6);
}
@media (min-width: 768px) {
  .cmosa-blog-hero-layout {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--c-s5);
  }
}

.cmosa-blog-hero-main { /* the big card */ }
.cmosa-blog-hero-main .cmosa-blog-card-img {
  aspect-ratio: 16/10;
}
.cmosa-blog-hero-main .cmosa-blog-card-body {
  padding: var(--c-s5);
}
.cmosa-blog-hero-main .cmosa-blog-card-body h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: var(--c-s3);
}
.cmosa-blog-hero-main-excerpt {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
@media (min-width: 768px) {
  .cmosa-blog-hero-main-excerpt {
    font-size: 16px;
    line-height: 1.75;
  }
}

.cmosa-blog-hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--c-s4);
}
.cmosa-blog-hero-side .cmosa-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
}
.cmosa-blog-hero-side .cmosa-blog-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.cmosa-blog-hero-side .cmosa-blog-card-img {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.cmosa-blog-hero-side .cmosa-blog-card-img img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cmosa-blog-hero-side .cmosa-blog-card-body {
  padding: var(--c-s3) var(--c-s4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cmosa-blog-hero-side .cmosa-blog-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--c-s2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === 8. SINGLE PRODUCT (Potico-inspired) ========================= */

/* Breadcrumb */
.cmosa-product-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-text-muted);
  padding: 2px var(--c-s4) 6px;
  max-width: var(--c-container);
  margin-inline: auto;
  border-bottom: 1px solid #e9e9e9;
  margin-bottom: 15px;
}
.cmosa-product-breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color .2s;
}
.cmosa-product-breadcrumb a:hover { color: var(--c-primary); }
.cmosa-product-breadcrumb .is-current {
  color: var(--c-text);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 600px) {
  .cmosa-product-breadcrumb .is-current { flex: 0 1 auto; white-space: normal; }
}

.cmosa-single-product {
  display: grid;
  gap: var(--c-s4);
  grid-template-columns: 1fr;
  max-width: var(--c-container);
  margin-inline: auto;
  /* padding: 0 var(--c-s4); */
  margin-top: 4px;
}
@media (min-width: 900px) {
  .cmosa-single-product {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--c-s6);
    align-items: start;
    margin-top: 0;
  }
}

/* Gallery wrap — Mobile: stacked. Desktop: thumbs left + main right */
@media (min-width: 900px) {
  .cmosa-product-gallery-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: var(--c-s3);
    align-items: start;
  }
  .cmosa-product-gallery-main {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0 !important;
  }
  .cmosa-product-gallery-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;
    grid-template-columns: none !important;
  }
}

/* Gallery main image */
.cmosa-product-gallery-main {
  position: relative;
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  background: var(--c-bg-alt);
  aspect-ratio: 1/1;
  margin-bottom: var(--c-s3);
}
.cmosa-product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cmosa-product-sale-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--c-sale, #E53935);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Gallery thumbs — Mobile: horizontal grid 5-col / Desktop: vertical strip */
.cmosa-product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cmosa-product-gallery-thumb {
  aspect-ratio: 1/1;
  border-radius: var(--c-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--c-bg-alt);
  transition: border-color .2s;
  padding: 0;
}
.cmosa-product-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cmosa-product-gallery-thumb.is-active { border-color: var(--c-primary); }
.cmosa-product-gallery-thumb:hover { border-color: var(--c-primary-light); }

/* === SUMMARY (right column) === */
.cmosa-product-title-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--c-s2);
}
.cmosa-product-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}
.cmosa-product-title-row .cmosa-product-rating {
  align-self: flex-start;
  white-space: nowrap;
  font-size: 12px;
}
@media (min-width: 768px) {
  .cmosa-product-title-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--c-s3);
  }
  .cmosa-product-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    flex: 1;
    min-width: 0;
  }
  .cmosa-product-title-row .cmosa-product-rating {
    flex-shrink: 0;
    margin-top: 8px;
    font-size: 14px;
  }
}
.cmosa-product-sku-row {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: var(--c-s3);
}

/* Rating row */
.cmosa-product-rating-row {
  display: flex;
  align-items: center;
  gap: var(--c-s3);
  flex-wrap: wrap;
  padding-bottom: var(--c-s4);
  border-bottom: 1px dashed var(--c-border);
  margin-bottom: var(--c-s4);
  font-size: 14px;
}
.cmosa-product-rating {
  display: flex; align-items: center; gap: 6px;
}
.cmosa-stars {
  color: #FFB400;
  font-size: 16px;
  letter-spacing: 1px;
}
.cmosa-rating-num {
  font-weight: 600;
  color: var(--c-text);
}
.cmosa-rating-count {
  color: var(--c-text-muted);
  font-size: 13px;
}
.cmosa-product-rating-empty .cmosa-stars {
  color: #E0E0E0;
}
.cmosa-product-sku {
  margin-left: auto;
  color: var(--c-text-muted);
  font-size: 13px;
}

/* Price block */
.cmosa-product-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--c-s3);
  flex-wrap: wrap;
  margin-bottom: var(--c-s5);
  padding: var(--c-s4);
  background: linear-gradient(135deg, #FFF8E7 0%, #FAF3EA 100%);
  border-radius: var(--c-radius);
  border: 1px solid var(--c-primary-50);
}
.cmosa-product-price-now {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-primary-dark);
  line-height: 1;
}
.cmosa-product-price-was {
  font-size: 18px;
  color: var(--c-text-light);
  font-weight: 400;
}
.cmosa-product-price-discount {
  background: #E53935;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: auto;
}

/* Quick info row — stack vertical on mobile, 3-col on desktop */
.cmosa-product-quick-info {
  display: flex;
  flex-direction: column;
  gap: var(--c-s2);
  margin-bottom: var(--c-s5);
  padding: var(--c-s3) var(--c-s4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
}
@media (min-width: 768px) {
  .cmosa-product-quick-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: var(--c-s3);
    padding: var(--c-s3) var(--c-s4);
  }
}
.cmosa-product-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  min-width: 0;
}
.cmosa-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  color: var(--c-primary-dark);
  flex-shrink: 0;
}
.cmosa-info-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  background: var(--c-bg-alt);
  display: block;
}
.cmosa-info-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmosa-product-info-item strong {
  font-size: 13px;
  color: var(--c-text);
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .cmosa-product-info-item strong { font-size: 14px; }
}
/* Hide desktop trust block on mobile — chat-style block takes over */
@media (max-width: 767px) {
  .cmosa-product-quick-info { display: none; }
}

/* === MOBILE TRUST CHAT (Avatar + Speech bubble — chat style) =========== */
.cmosa-trust-chat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--c-s4);
  padding: 0;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .cmosa-trust-chat { display: none; }
}
.cmosa-trust-chat-avatar {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  background: var(--c-bg-alt);
}
.cmosa-trust-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmosa-trust-chat-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #06C755;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(6,199,85,.18);
  animation: cmosa-pulse-online 2.4s ease-out infinite;
}
@keyframes cmosa-pulse-online {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,199,85,.35); }
  50%      { box-shadow: 0 0 0 6px rgba(6,199,85,0); }
}
@media (prefers-reduced-motion: reduce) {
  .cmosa-trust-chat-status { animation: none; }
}
.cmosa-trust-chat-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
/* Bubble tail pointing back to avatar (left side) */
.cmosa-trust-chat-bubble::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -7px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 8px 7px 0;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-1px 0 0 var(--c-border));
}
.cmosa-trust-chat-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.cmosa-trust-chat-msg {
  display: block;
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.cmosa-trust-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cmosa-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--c-primary-50);
  border: 1px solid #f3dfb6;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-primary-dark);
  line-height: 1.2;
  white-space: nowrap;
}
.cmosa-trust-chip svg {
  flex-shrink: 0;
}
/* Tap feedback */
.cmosa-trust-chat:active .cmosa-trust-chat-bubble {
  transform: scale(0.99);
  background: var(--c-primary-50);
}
.cmosa-trust-chat-bubble {
  transition: transform .15s ease, background .15s ease;
}

/* Short description */
.cmosa-product-short-desc {
  margin: var(--c-s4) 0;
  padding: var(--c-s4);
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--c-radius) var(--c-radius) 0;
  font-size: 15px;
  line-height: 1.7;
}
.cmosa-product-short-desc p:last-child { margin-bottom: 0; }

/* Action buttons */
.cmosa-product-actions {
  display: flex; flex-direction: column;
  gap: var(--c-s2);
  margin: var(--c-s5) 0;
}
.cmosa-product-actions-row {
  display: flex; gap: var(--c-s2);
  flex-wrap: wrap;
}
.cmosa-product-actions-row > * { flex: 1; min-width: 140px; }
.cmosa-btn-large {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  justify-content: center;
}

/* Share row */
.cmosa-product-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: var(--c-s4);
  padding-bottom: var(--c-s4);
  margin-bottom: var(--c-s3);
  border-top: 1px dashed var(--c-border);
  border-bottom: 1px dashed var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
}
.cmosa-share-label {
  font-weight: 500;
  margin-right: 4px;
}
.cmosa-share-btn {
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}
.cmosa-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
  opacity: 0.92;
}
/* LINE — green */
.cmosa-share-btn-line {
  background: #06C755;
}
/* Facebook — blue */
.cmosa-share-btn-fb {
  background: #1877F2;
}
/* Copy — primary gold */
.cmosa-share-btn-copy {
  background: var(--c-primary);
}
.cmosa-share-btn.is-copied {
  background: #16A34A;
}

/* === Product Tabs (Desktop) / Accordion (Mobile) === */

/* Tab nav — hidden on mobile, visible on desktop */
.cmosa-product-tabs {
  margin-top: var(--c-s4);
}
.cmosa-product-tabs-nav {
  display: none;
}
.cmosa-product-tabs-panels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Mobile (default): accordion behavior — show all panels with their summary toggles */
@media (max-width: 767.98px) {
  .cmosa-tab-panel {
    display: block !important; /* always render — let <details> handle open/close */
  }
}

/* Desktop+ (≥768px): tabs */
@media (min-width: 768px) {
  /* Tab nav appears */
  .cmosa-product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--c-border);
    margin-bottom: 0;
    padding: 0 4px;
  }
  .cmosa-product-tab-btn {
    background: transparent;
    border: 0;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    font-family: inherit;
    white-space: nowrap;
  }
  .cmosa-product-tab-btn:hover {
    color: var(--c-primary-dark);
  }
  .cmosa-product-tab-btn.is-active {
    color: var(--c-primary-dark);
    border-bottom-color: var(--c-primary);
  }

  /* Panels — hide all, show only active */
  .cmosa-product-tabs-panels {
    background: #fff;
    border: 1px solid var(--c-border);
    border-top: 0;
    border-radius: 0 0 var(--c-radius) var(--c-radius);
    gap: 0;
  }
  .cmosa-tab-panel {
    display: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .cmosa-tab-panel.is-active {
    display: block !important;
  }
  /* Hide <summary> on desktop — tab nav handles it */
  .cmosa-tab-panel > summary {
    display: none !important;
  }
  /* Body padding (no border-top since summary is hidden) */
  .cmosa-tab-panel .cmosa-product-description-body,
  .cmosa-tab-panel .cmosa-info-block-body {
    border-top: 0 !important;
    padding: var(--c-s4) var(--c-s5) !important;
  }
}

/* === Description + Info blocks (collapsible — tight stack) === */
.cmosa-product-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--c-s4);
}
.cmosa-product-description-block,
.cmosa-info-block {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
}
.cmosa-product-description-block summary,
.cmosa-info-block summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--c-s4);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  transition: background .15s;
  list-style: none;
}
@media (min-width: 768px) {
  .cmosa-product-description-block summary,
  .cmosa-info-block summary {
    font-size: 15px;
    padding: 14px var(--c-s5);
  }
}
.cmosa-product-description-block summary::-webkit-details-marker,
.cmosa-info-block summary::-webkit-details-marker { display: none; }
.cmosa-product-description-block summary:hover,
.cmosa-info-block summary:hover {
  background: var(--c-bg-soft);
}
.cmosa-toggle-icon {
  font-size: 12px;
  color: var(--c-text-muted);
  transition: transform .2s;
}
details[open] .cmosa-toggle-icon {
  transform: rotate(180deg);
}
.cmosa-product-description-body,
.cmosa-info-block-body {
  padding: 12px var(--c-s4) var(--c-s4);
  border-top: 1px solid var(--c-border);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text);
}
@media (min-width: 768px) {
  .cmosa-product-description-body,
  .cmosa-info-block-body {
    padding: var(--c-s4) var(--c-s5) var(--c-s4);
    font-size: 15px;
    line-height: 1.8;
  }
}
.cmosa-product-description-body p,
.cmosa-info-block-body p { margin-bottom: var(--c-s3); }
.cmosa-product-description-body p:last-child,
.cmosa-info-block-body p:last-child { margin-bottom: 0; }
.cmosa-info-block-body ul {
  list-style: none;
  padding: 0; margin: 0;
}
.cmosa-info-block-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14px;
}
.cmosa-info-block-body ul li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--c-primary);
  font-weight: 700;
}
.cmosa-info-block-body a {
  color: var(--c-primary-dark);
  font-weight: 500;
}

.cmosa-product-info-blocks {
  max-width: 920px;
  margin: var(--c-s5) auto;
  display: flex;
  flex-direction: column;
  gap: var(--c-s3);
}

/* Related products section */
.cmosa-product-related {
  max-width: var(--c-container);
  margin: var(--c-s7) auto 0;
}
.cmosa-product-related h2 {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--c-s5);
}

/* === ADD-ON PRODUCTS (Potico-inspired) ============================ */
.cmosa-addons-section {
  max-width: var(--c-container);
  margin: var(--c-s7) auto 0;
  padding: var(--c-s6) var(--c-s4);
  background: linear-gradient(135deg, #FFF8E7 0%, #FAF3EA 50%, #FFF 100%);
  border-radius: var(--c-radius-lg);
}

.cmosa-addons-header {
  text-align: center;
  margin-bottom: var(--c-s5);
}
.cmosa-addons-header h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 0 var(--c-s2);
  color: var(--c-primary-dark);
}
.cmosa-addons-header p {
  color: var(--c-text-muted);
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto;
}

/* Filter chips */
.cmosa-addons-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--c-s5);
}
.cmosa-addon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.cmosa-addon-chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.cmosa-addon-chip.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.cmosa-addon-chip-count {
  font-size: 12px;
  opacity: .8;
}

/* Add-on grid */
.cmosa-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--c-s3);
}
@media (min-width: 600px) {
  .cmosa-addons-grid { grid-template-columns: repeat(3, 1fr); gap: var(--c-s4); }
}
@media (min-width: 900px) {
  .cmosa-addons-grid { grid-template-columns: repeat(4, 1fr); }
}

.cmosa-addon-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cmosa-addon-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-primary-light);
  box-shadow: var(--c-shadow-md);
}
.cmosa-addon-card.is-hidden {
  display: none;
}
.cmosa-addon-card-img {
  display: block;
  aspect-ratio: 1/1;
  background: var(--c-bg-alt);
  overflow: hidden;
}
.cmosa-addon-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.cmosa-addon-card:hover .cmosa-addon-card-img img {
  transform: scale(1.05);
}
.cmosa-addon-card-body {
  padding: var(--c-s3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cmosa-addon-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  color: var(--c-text);
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmosa-addon-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-top: auto;
}
.cmosa-addon-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--c-accent);
  color: #fff;
  padding: 8px;
  border-radius: var(--c-radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: background .15s;
}
.cmosa-addon-card-cta:hover {
  background: var(--c-accent-dark);
  color: #fff;
}

.cmosa-addons-note {
  text-align: center;
  margin-top: var(--c-s5);
  padding: var(--c-s3);
  background: rgba(255,255,255,.6);
  border: 1px dashed var(--c-primary-light);
  border-radius: var(--c-radius);
  font-size: 13px;
  color: var(--c-text);
}
.cmosa-addons-note strong { color: var(--c-primary-dark); }

/* === Existing styles below === */
/* Hide old badge style — replaced with sale-tag on image */
.cmosa-product-badge { display: none !important; }

/* === 9. CATEGORY / ARCHIVE ========================================= */
.cmosa-archive-header {
  text-align: center;
  padding: var(--c-s7) var(--c-s4);
  background: linear-gradient(135deg, var(--c-bg-soft), #fff);
  margin-bottom: var(--c-s6);
}
.cmosa-archive-header h1 { margin-bottom: var(--c-s3); }
.cmosa-archive-header p {
  max-width: 640px; margin: 0 auto;
  color: var(--c-text-muted); font-size: 1.0625rem;
}

/* Breadcrumb */
.cmosa-breadcrumb {
  font-size: 13px; color: var(--c-text-muted);
  padding: var(--c-s3) 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cmosa-breadcrumb a:hover { color: var(--c-primary); }
.cmosa-breadcrumb .sep { color: var(--c-text-light); }

/* === 10. PILLAR PAGES (Valentine, Graduation, etc.) ================ */
.cmosa-pillar-hero {
  background: linear-gradient(135deg, #FFE0E6 0%, #FFF5E1 100%);
  padding: var(--c-s8) var(--c-s4);
  text-align: center;
  border-radius: var(--c-radius-lg);
  margin-bottom: var(--c-s6);
}
.cmosa-pillar-hero h1 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  margin-bottom: var(--c-s4);
}
.cmosa-pillar-hero h1 .heart { color: #E63946; }
.cmosa-pillar-toc {
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-primary);
  padding: var(--c-s5);
  border-radius: var(--c-radius-sm);
  margin: var(--c-s5) 0;
}
.cmosa-pillar-toc h3 { margin-top: 0; }
.cmosa-pillar-toc ul { padding-left: 1.25em; }
.cmosa-pillar-toc a { color: var(--c-primary-dark); }
.cmosa-pillar-toc a:hover { text-decoration: underline; }

/* === 11. BLOG ====================================================== */
.cmosa-blog-grid {
  display: grid; gap: var(--c-s5);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .cmosa-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cmosa-blog-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cmosa-blog-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 21px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.cmosa-blog-card:hover { transform: translateY(-3px); box-shadow: var(--c-shadow-md); }
.cmosa-blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--c-bg-alt); }
.cmosa-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cmosa-blog-card-body { padding: var(--c-s4); }
.cmosa-blog-card-body h3 { font-size: 17px; margin-bottom: var(--c-s2); }
.cmosa-blog-card-meta { font-size: 13px; color: var(--c-text-muted); margin-bottom: var(--c-s2); }

.cmosa-single-post {
  max-width: 760px; margin: 0 auto;
  padding: var(--c-s6) var(--c-s4);
}
.cmosa-single-post h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.cmosa-single-post .entry-content {
  font-size: 1.0625rem; line-height: 1.8;
}
.cmosa-single-post .entry-content h2 { margin-top: var(--c-s7); }
.cmosa-single-post .entry-content img { border-radius: var(--c-radius); margin: var(--c-s5) 0; }


/* === 12. QUICK CONTACT STRIP (3 actions above footer) ============ */
.cmosa-quick-contact {
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: var(--c-s5) 0;
}
.cmosa-quick-contact-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--c-s4));
  margin-left: 0;
  padding: 0 var(--c-s4);
}
.cmosa-quick-contact-grid::-webkit-scrollbar { display: none; }
.cmosa-qc-item {
  flex: 0 0 78%;
  max-width: 280px;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .cmosa-quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .cmosa-qc-item {
    flex: initial;
    max-width: none;
    scroll-snap-align: none;
  }
}
.cmosa-qc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  text-decoration: none;
  color: var(--c-text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cmosa-qc-item:hover {
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  color: var(--c-text);
}
.cmosa-qc-item.is-line:hover {
  border-color: #06C755;
}
.cmosa-qc-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1A1A1A;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmosa-qc-icon svg {
  width: 18px;
  height: 18px;
}
.cmosa-qc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
}
.cmosa-qc-text strong {
  font-size: 13px;
  color: var(--c-text);
  font-weight: 600;
}
.cmosa-qc-text small {
  font-size: 11px;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .cmosa-qc-text strong { font-size: 14px; }
  .cmosa-qc-text small { font-size: 13px; }
  .cmosa-qc-item { padding: 14px 16px; }
  .cmosa-qc-icon { width: 42px; height: 42px; }
  .cmosa-qc-icon svg { width: 20px; height: 20px; }
}

/* === 12A. LOCATION BLOCK (Aorest-style — info + map) ============== */
.cmosa-location-block {
  background: #fff;
  padding: var(--c-s5) 0;
  border-top: 1px solid var(--c-border);
}
.cmosa-location-block .cmosa-container {
  display: flex;
  flex-direction: column;
  gap: var(--c-s4);
}

/* Info card frame — both mobile and desktop */
.cmosa-location-info {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: var(--c-s5);
  box-shadow: 0 1px 3px rgb(175 175 175 / 4%);
}
@media (min-width: 768px) {
  .cmosa-location-block .cmosa-container {
    flex-direction: row;
    align-items: stretch;
    gap: var(--c-s4);
  }
  .cmosa-location-info {
    flex: 0 0 28%;
    max-width: 28%;
    padding: var(--c-s5);
  }
  .cmosa-location-map {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 480px;
  }
  /* Desktop: stack action buttons vertically (one per row), narrower */
  .cmosa-location-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cmosa-location-actions > * {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
  }
}
.cmosa-location-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 var(--c-s3);
  color: var(--c-text);
  line-height: 1.45;
  letter-spacing: -0.2px;
}
.cmosa-location-name strong {
  color: var(--c-primary-dark);
  font-weight: 800;
}
.cmosa-location-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin: 0 0 var(--c-s4);
}
.cmosa-location-desc strong {
  color: var(--c-text);
  font-weight: 600;
}
.cmosa-location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--c-s4);
}
.cmosa-location-tag {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-primary-50);
  color: var(--c-primary-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
/* Address + hours rows: icon column + text column, aligned */
.cmosa-location-address,
.cmosa-location-hours {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.6;
  margin: 0 0 var(--c-s2);
}
.cmosa-location-address small {
  display: block;
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 2px;
}
.cmosa-location-hours strong {
  color: var(--c-primary-dark);
  font-weight: 700;
}
.cmosa-loc-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  margin-top: 2px;
}
.cmosa-loc-icon svg {
  width: 18px;
  height: 18px;
}
/* Footer contact list inline icon */
.cmosa-fc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: var(--c-text-muted);
  vertical-align: -4px;
}
.cmosa-fc-icon svg {
  width: 16px;
  height: 16px;
}
/* Add bottom margin between hours and CTA buttons */
.cmosa-location-hours { margin-bottom: var(--c-s4); }

.cmosa-location-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cmosa-location-actions > * {
  flex: 1;
  min-width: 140px;
}

/* === Action Pills (Aorest-reference style) ===
 * Dark + Light variant — pill with circle icon on left + label on right
 * ============================================== */
.cmosa-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 22px 6px 6px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s;
  white-space: nowrap;
  justify-content: center;
  line-height: 1;
}
.cmosa-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
.cmosa-action-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dark variant — solid black pill, white circle with dark icon */
.cmosa-action-btn-dark {
  background: #1A1A1A;
  color: #fff;
  border: 1px solid #1A1A1A;
}
.cmosa-action-btn-dark:hover {
  background: #000;
  color: #fff;
}
.cmosa-action-btn-dark .cmosa-action-btn-icon {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* Light variant — white pill, dark circle with white icon */
.cmosa-action-btn-light {
  background: #fff;
  color: #1A1A1A;
  border: 1px solid var(--c-border);
  padding: 8px;
}
.cmosa-action-btn-light:hover {
  background: #FAFAFA;
  color: #000;
  border-color: #1A1A1A;
}
.cmosa-action-btn-light .cmosa-action-btn-icon {
  background: #1A1A1A;
  color: #fff;
}

/* LINE outline variant — green border, transparent bg */
.cmosa-action-btn-line {
  border: 1px solid #06C755;
  color: #06C755;
  padding: 8px;
}
.cmosa-action-btn-line:hover {
  background: rgba(6,199,85,.08);
  border-color: #05B14C;
  color: #05B14C;
}
.cmosa-action-btn-line .cmosa-action-btn-icon {
  background: #06C755;
  color: #fff;
}

/* Product page CTA — 2 pills inline (same row) */
.cmosa-product-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--c-s3);
}
.cmosa-product-actions .cmosa-action-btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 6px 18px 6px 6px;
  font-size: 14px;
}
.cmosa-product-actions .cmosa-action-btn-icon {
  width: 34px;
  height: 34px;
}

/* Small size variant — for promo card etc. */
.cmosa-action-btn-sm {
  padding: 4px 16px 4px 4px;
  font-size: 13px;
  gap: 8px;
}
.cmosa-action-btn-sm .cmosa-action-btn-icon {
  width: 28px;
  height: 28px;
}

/* Keep .cmosa-btn-dark for backward compat (used in other places) */
.cmosa-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: #1F1B16;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.cmosa-btn-dark:hover {
  background: var(--c-text);
  color: #fff;
  transform: translateY(-1px);
}

.cmosa-location-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 240px;
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  box-shadow: var(--c-shadow-sm);
  border: 1px solid var(--c-border);
}
.cmosa-location-map iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}
.cmosa-location-map-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-primary-dark);
  text-decoration: none;
  box-shadow: var(--c-shadow-sm);
  transition: background .15s;
}
.cmosa-location-map-link:hover {
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
}

/* === 12A2. MONEY BACK GUARANTEE BLOCK ============================== */
.cmosa-guarantee-block {
  background: linear-gradient(180deg, #fff 0%, var(--c-bg-soft) 100%);
  padding: var(--c-s5) 0;
  border-top: 1px solid var(--c-border);
}
.cmosa-guarantee-card {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.cmosa-guarantee-badge {
  display: flex;
  justify-content: center;
  margin-bottom: var(--c-s4);
  position: relative;
  padding: 8px 0;
}
.cmosa-guarantee-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  /* Fresh green gradient — matches Aorest reference */
  background:
    radial-gradient(circle at 30% 30%, #BBF7D0 0%, transparent 35%),
    linear-gradient(135deg, #4ADE80 0%, #16A34A 50%, #15803D 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 28px rgba(34,197,94,.40),
    inset 0 2px 6px rgba(255,255,255,.30),
    inset 0 -3px 8px rgba(0,0,0,.18);
  /* Stamp-like double border */
  border: 4px solid #fff;
  outline: 2px solid #16A34A;
  outline-offset: 2px;
  position: relative;
  animation: cmosa-guarantee-bob 3s ease-in-out infinite;
  z-index: 1;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
}

/* Sparkle/shine sweep across badge */
.cmosa-guarantee-circle::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,255,255,.55) 48%,
    rgba(255,255,255,.7) 52%,
    transparent 70%
  );
  animation: cmosa-guarantee-shine 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* Pulsing outer ring */
.cmosa-guarantee-circle::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid #16A34A;
  opacity: 0.5;
  animation: cmosa-guarantee-pulse 2s ease-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes cmosa-guarantee-bob {
  0%   { transform: translateY(0) rotate(-2deg); }
  50%  { transform: translateY(-4px) rotate(2deg); }
  100% { transform: translateY(0) rotate(-2deg); }
}
@keyframes cmosa-guarantee-shine {
  0%   { transform: translateX(-110%) skewX(-15deg); }
  60%  { transform: translateX(110%) skewX(-15deg); }
  100% { transform: translateX(110%) skewX(-15deg); }
}
@keyframes cmosa-guarantee-pulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  80%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cmosa-guarantee-circle,
  .cmosa-guarantee-circle::before,
  .cmosa-guarantee-circle::after {
    animation: none;
  }
}

.cmosa-guarantee-pct {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0px;
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.cmosa-guarantee-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 4px;
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.cmosa-guarantee-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 6px;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .cmosa-guarantee-title { font-size: 20px; }
}
.cmosa-guarantee-desc {
  font-size: 14px;
  color: var(--c-text-muted);
  margin: 0 0 var(--c-s3);
  line-height: 1.6;
}
.cmosa-guarantee-desc strong {
  color: var(--c-primary-dark);
  font-weight: 700;
}
.cmosa-guarantee-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #1F1B16;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.cmosa-guarantee-link:hover {
  background: var(--c-text);
  color: #fff;
  transform: translateY(-1px);
}

/* === 12A3. MONEY BACK GUARANTEE on Single Product Page =============== */
.cmosa-product-guarantee {
  max-width: 920px;
  margin: var(--c-s4) auto 0;
}
@media (min-width: 768px) {
  .cmosa-product-guarantee {
    max-width: 100%;
  }
}
.cmosa-product-guarantee-inner {
  display: flex;
  align-items: center;
  gap: var(--c-s3);
  padding: var(--c-s4);
  background: linear-gradient(135deg, #FFF8E7 0%, #FAF3EA 100%);
  border: 1px solid #f3dfb6;
  border-radius: var(--c-radius-lg);
}
@media (min-width: 768px) {
  .cmosa-product-guarantee-inner {
    gap: var(--c-s4);
    padding: var(--c-s4) var(--c-s5);
  }
}
.cmosa-guarantee-badge-sm .cmosa-guarantee-circle {
  width: 80px;
  height: 80px;
  border-width: 3px;
}
.cmosa-guarantee-badge-sm .cmosa-guarantee-pct {
  font-size: 11px;
}
.cmosa-guarantee-badge-sm .cmosa-guarantee-tag {
  font-size: 7px;
  letter-spacing: 0.5px;
}
.cmosa-product-guarantee-text {
  flex: 1;
  min-width: 0;
}
.cmosa-product-guarantee-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 0 0 4px;
  line-height: 1.4;
}
.cmosa-product-guarantee-text p {
  font-size: 13px;
  color: var(--c-text);
  margin: 0 0 6px;
  line-height: 1.5;
}
.cmosa-product-guarantee-text p strong {
  color: var(--c-primary-dark);
  font-weight: 700;
}
.cmosa-product-guarantee-text .cmosa-guarantee-link {
  display: inline-block;
  background: transparent;
  color: var(--c-primary-dark);
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}
.cmosa-product-guarantee-text .cmosa-guarantee-link:hover {
  background: transparent;
  transform: none;
  color: #16A34A;
}
.cmosa-product-guarantee-cta {
  display: none; /* hidden on mobile by default — inline link inside text is shown instead */
}
@media (min-width: 768px) {
  .cmosa-product-guarantee-text h3 { font-size: 18px; margin-bottom: 6px; }
  .cmosa-product-guarantee-text p { font-size: 15px; line-height: 1.6; margin-bottom: 0; }
  .cmosa-guarantee-badge-sm .cmosa-guarantee-circle {
    width: 110px;
    height: 110px;
    border-width: 4px;
  }
  .cmosa-guarantee-badge-sm .cmosa-guarantee-pct { font-size: 14px; }
  .cmosa-guarantee-badge-sm .cmosa-guarantee-tag { font-size: 9px; }
  .cmosa-product-guarantee-text .cmosa-guarantee-link {
    display: none; /* hidden on desktop — moved to dedicated CTA on the right */
  }
  .cmosa-product-guarantee-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1.5px solid #16A34A;
    border-radius: 999px;
    color: #16A34A;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
  }
  .cmosa-product-guarantee-cta:hover {
    background: #16A34A;
    color: #fff;
    transform: translateY(-1px);
  }
}

/* === 12B. FOOTER (clean light theme — minimal, accordion mobile / 4-col desktop) ==== */
.cmosa-footer {
  background: #FAFAFA;
  color: var(--c-text);
  padding: var(--c-s5) 0 var(--c-s3);
  position: relative;
  border-top: 1px solid var(--c-border);
}
.cmosa-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-primary);
}

.cmosa-footer-cols {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 768px) {
  .cmosa-footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: var(--c-s6);
    margin-bottom: var(--c-s5);
  }
}

/* Brand col — always visible */
.cmosa-footer-brand-col {
  padding: var(--c-s3) 0;
  border-bottom: 1px solid var(--c-border);
}
@media (min-width: 768px) {
  .cmosa-footer-brand-col {
    padding: 0;
    border-bottom: 0;
  }
}
.cmosa-footer-brand-name {
  color: #292827;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  /* letter-spacing: 1px; */
  text-transform: uppercase;
}
.cmosa-footer-brand-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin: 0 0 var(--c-s3);
}
.cmosa-footer-social {
  display: flex;
  gap: 8px;
}
.cmosa-footer-social a {
  width: 36px; height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}
.cmosa-footer-social a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
  opacity: 0.92;
}
/* Brand colors */
.cmosa-footer-social .cmosa-social-line {
  background: #06C755;
  color: #fff !important;
}
.cmosa-footer-social .cmosa-social-fb {
  background: #1877F2;
  color: #fff !important;
}
.cmosa-footer-social .cmosa-social-ig {
  background: #fff; /* IG uses gradient SVG fill, white bg shows it */
  border: 1px solid var(--c-border);
}

/* Accordion col (mobile) / Static col (desktop) */
.cmosa-footer-acc {
  border-bottom: 1px solid var(--c-border);
}
.cmosa-footer-acc:last-of-type {
  border-bottom: 0; /* avoid double line above footer-bottom */
}
@media (min-width: 768px) {
  .cmosa-footer-acc {
    border-bottom: 0;
  }
}
.cmosa-footer-acc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--c-s3) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cmosa-footer-acc summary::-webkit-details-marker { display: none; }
.cmosa-acc-arrow {
  font-size: 20px;
  color: var(--c-text-muted);
  transition: transform .2s;
  line-height: 1;
}
.cmosa-footer-acc[open] .cmosa-acc-arrow {
  transform: rotate(90deg);
}

/* Always-open on desktop */
@media (min-width: 768px) {
  .cmosa-footer-acc summary {
    padding: 0 0 var(--c-s3);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: default;
    pointer-events: none;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: var(--c-s3);
    color: var(--c-primary-dark);
  }
  .cmosa-acc-arrow { display: none; }
  /* Force <details> to render as if open on desktop, regardless of [open] attribute */
  .cmosa-footer-acc {
    display: block;
  }
  .cmosa-footer-acc > ul,
  .cmosa-footer-acc > ol,
  .cmosa-footer-acc > p,
  .cmosa-footer-acc > div {
    display: block !important;
  }
}

.cmosa-footer-acc ul {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--c-s3);
}
@media (min-width: 768px) {
  .cmosa-footer-acc ul { padding: 0; }
}
.cmosa-footer-acc li {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.cmosa-footer-acc a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color .15s;
}
.cmosa-footer-acc a:hover {
  color: var(--c-primary);
}

/* Bottom strip — minimal */
.cmosa-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  padding-top: var(--c-s3);
  margin-top: var(--c-s3);
  border-top: 1px solid var(--c-border);
  font-size: 11px;
  color: var(--c-text-light);
}
@media (min-width: 600px) {
  .cmosa-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.cmosa-footer-payment {
  font-size: 11px;
}

/* === 13. MOBILE STICKY CTA — floating action pills ================ */
.cmosa-sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 50;
  pointer-events: none; /* let underlying content scroll/click */
}
.cmosa-sticky-cta > * {
  pointer-events: auto;
  flex: 1;
  max-width: 200px;
  /* Inherit cmosa-action-btn styles + add floating shadow */
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.cmosa-sticky-cta .cmosa-action-btn-light {
  background: #fff;
}
@media (min-width: 900px) { .cmosa-sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 80px; }
@media (min-width: 900px) { body.has-sticky-cta { padding-bottom: 0; } }

/* === BLOG FEATURED (Trending/Sticky article — large card) ========= */
.cmosa-blog-featured {
  margin-bottom: 0;
}
.cmosa-blog-featured-link {
  display: block;
  background: #fff;
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow .2s ease;
  border: 1px solid var(--c-border);
}
.cmosa-blog-featured-link:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.cmosa-blog-featured-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.cmosa-blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmosa-blog-featured-body {
  padding: var(--c-s4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cmosa-blog-trending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF6B6B 0%, #DC2626 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(220,38,38,.25);
}
.cmosa-blog-trending-icon {
  font-size: 14px;
  line-height: 1;
}
.cmosa-blog-featured-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary-dark);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmosa-blog-featured-excerpt {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmosa-blog-cat-pill {
  display: inline-flex;
  background: var(--c-bg-soft);
  color: var(--c-primary-dark);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (min-width: 768px) {
  .cmosa-blog-featured-title { font-size: 22px; }
  .cmosa-blog-featured-excerpt { font-size: 14px; -webkit-line-clamp: 2; }
  .cmosa-blog-featured-link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }
  .cmosa-blog-featured-img {
    aspect-ratio: auto;
    min-height: 320px;
  }
  .cmosa-blog-featured-body {
    padding: var(--c-s5);
    justify-content: center;
  }
}

/* === BLOG CAROUSEL (latest news/articles) ========================= */
.cmosa-blog-carousel {
  position: relative;
  margin: 0 calc(-1 * var(--c-s4));
}
.cmosa-blog-track {
  display: flex;
  gap: var(--c-s3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px var(--c-s4) var(--c-s3);
}
@media (max-width: 899px) {
  .cmosa-blog-track { margin-left: 15px; }
}
.cmosa-blog-track::-webkit-scrollbar { display: none; }
.cmosa-blog-track .cmosa-blog-card {
  flex: 0 0 75%;
  max-width: 280px;
  scroll-snap-align: start;
}
@media (min-width: 600px) {
  .cmosa-blog-track .cmosa-blog-card { flex: 0 0 45%; max-width: 320px; }
}
@media (min-width: 900px) {
  .cmosa-blog-carousel { margin: 0; }
  .cmosa-blog-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--c-s4);
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .cmosa-blog-track .cmosa-blog-card {
    flex: initial;
    max-width: none;
    scroll-snap-align: none;
  }
}
.cmosa-blog-card-link {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
}
.cmosa-blog-card-link:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.cmosa-blog-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg-soft);
  border-top-left-radius: var(--c-radius-lg);
  border-top-right-radius: var(--c-radius-lg);
}
.cmosa-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmosa-blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.cmosa-blog-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(31,27,22,.85);
  color: var(--c-primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.cmosa-blog-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cmosa-blog-card-date {
  font-size: 11px;
  color: var(--c-text-muted);
}
.cmosa-blog-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmosa-blog-card-excerpt {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmosa-blog-card-foot {
  margin-top: auto;
  padding-top: 8px;
}
.cmosa-blog-card-read {
  font-size: 12px;
  color: var(--c-primary-dark);
  font-weight: 600;
}
@media (min-width: 768px) {
  .cmosa-blog-card-title { font-size: 15px; }
  .cmosa-blog-card-excerpt { font-size: 13px; }
}

/* === REVIEWS CAROUSEL ============================================== */
.cmosa-reviews-carousel {
  position: relative;
  margin: 0 calc(-1 * var(--c-s4));
}
.cmosa-reviews-track {
  display: flex;
  gap: var(--c-s3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px var(--c-s4) var(--c-s3);
}
.cmosa-reviews-track::-webkit-scrollbar { display: none; }
.cmosa-review-card {
  flex: 0 0 85%;
  max-width: 360px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: var(--c-s4);
  display: flex;
  flex-direction: column;
  gap: var(--c-s2);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
@media (min-width: 600px) {
  .cmosa-review-card { flex: 0 0 48%; }
}
@media (min-width: 900px) {
  .cmosa-reviews-carousel { margin: 0; }
  .cmosa-reviews-track {
    padding: 4px 0 var(--c-s3);
  }
  .cmosa-review-card {
    flex: 0 0 calc((100% - 2 * var(--c-s3)) / 3);
  }
}
.cmosa-review-stars {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--c-text-muted);
}
.cmosa-review-stars .is-filled { color: #FBBF24; }
.cmosa-review-stars .is-empty { color: #E5E5E5; }
.cmosa-review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmosa-review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: var(--c-s2);
  border-top: 1px solid var(--c-border);
}
.cmosa-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-bg-soft);
}
.cmosa-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmosa-review-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.cmosa-review-meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.cmosa-review-meta-text strong {
  font-size: 13px;
  color: var(--c-text);
  font-weight: 600;
}
.cmosa-review-meta-text small {
  font-size: 11px;
  color: var(--c-text-muted);
}
.cmosa-reviews-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--c-s3);
}
.cmosa-reviews-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-border);
  transition: background .15s, transform .15s, width .25s;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.cmosa-reviews-dots .dot.is-active {
  background: var(--c-primary);
  width: 22px;
  border-radius: 4px;
}

/* === GOOGLE RATING BAR (below reviews) ============================ */
.cmosa-google-rating-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--c-s3);
  margin-top: var(--c-s4);
  padding: var(--c-s3) var(--c-s4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
}
@media (min-width: 600px) {
  .cmosa-google-rating-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}
.cmosa-google-rating-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmosa-google-rating-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cmosa-google-rating-text strong {
  font-size: 22px;
  color: var(--c-text);
  font-weight: 700;
}
.cmosa-google-stars {
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}
.cmosa-google-stars .is-filled { color: #FBBF24; }
.cmosa-google-stars .is-empty { color: #E5E5E5; }
.cmosa-google-rating-text small {
  font-size: 12px;
  color: var(--c-text-muted);
}

/* === 13B. PAGE TEMPLATES (About, Contact, Delivery, etc.) ========= */

/* Generic page hero — used by all info pages */
.cmosa-page-hero {
  background: linear-gradient(135deg, var(--c-bg-soft) 0%, #FFF 100%);
  padding: var(--c-s7) var(--c-s4);
  text-align: center;
  margin-bottom: var(--c-s6);
}
.cmosa-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--c-s3);
}
.cmosa-page-hero h1 span { color: var(--c-primary); }
.cmosa-page-hero .lead {
  color: var(--c-text-muted);
  font-size: 1.0625rem;
  max-width: 640px; margin: 0 auto;
}

/* Two-column layout (TOC + content) for long pages (Policy/FAQ) */
.cmosa-page-with-toc {
  display: grid;
  gap: var(--c-s5);
  grid-template-columns: 1fr;
  margin-bottom: var(--c-s7);
}
@media (min-width: 900px) {
  .cmosa-page-with-toc {
    grid-template-columns: 240px 1fr;
    gap: var(--c-s7);
  }
}
.cmosa-page-toc {
  position: relative;
}
@media (min-width: 900px) {
  .cmosa-page-toc {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}
.cmosa-page-toc h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-text-muted);
  margin: 0 0 var(--c-s3);
  padding-bottom: var(--c-s2);
  border-bottom: 1px solid var(--c-border);
}
.cmosa-page-toc ul {
  list-style: none; margin: 0; padding: 0;
}
.cmosa-page-toc li { margin-bottom: 4px; }
.cmosa-page-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--c-radius-sm);
  font-size: 14px;
  color: var(--c-text);
  border-left: 3px solid transparent;
  transition: all .15s;
}
.cmosa-page-toc a:hover {
  background: var(--c-bg-alt);
  border-left-color: var(--c-primary-light);
}
.cmosa-page-toc a.is-active {
  background: var(--c-primary-50);
  border-left-color: var(--c-primary);
  color: var(--c-primary-dark);
  font-weight: 600;
}

/* Page content — clean prose width */
.cmosa-page-content {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.8;
}
.cmosa-page-content h2 {
  margin-top: var(--c-s7);
  padding-top: var(--c-s3);
  font-size: 1.5rem;
  scroll-margin-top: 90px;
}
.cmosa-page-content h2:first-child { margin-top: 0; padding-top: 0; }
.cmosa-page-content h3 {
  margin-top: var(--c-s5);
  font-size: 1.125rem;
  scroll-margin-top: 90px;
}
.cmosa-page-content ul, .cmosa-page-content ol {
  padding-left: 1.5em;
}
.cmosa-page-content li { margin-bottom: 6px; }

/* === ABOUT page === */
.cmosa-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--c-s4);
  background: var(--c-bg-soft);
  padding: var(--c-s6) var(--c-s4);
  border-radius: var(--c-radius-lg);
  margin: var(--c-s6) 0;
}
@media (min-width: 700px) {
  .cmosa-stats-row { grid-template-columns: repeat(4, 1fr); }
}
.cmosa-stat { text-align: center; }
.cmosa-stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--c-primary-dark);
  line-height: 1.1;
}
.cmosa-stat-label {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-top: 4px;
}

.cmosa-timeline {
  position: relative;
  padding-left: var(--c-s5);
  margin: var(--c-s5) 0;
}
.cmosa-timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--c-primary-light);
}
.cmosa-timeline-item {
  position: relative;
  padding-bottom: var(--c-s5);
}
.cmosa-timeline-item::before {
  content: '';
  position: absolute;
  left: -23px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--c-primary-light);
}
.cmosa-timeline-item h4 {
  margin: 0 0 4px;
  color: var(--c-primary-dark);
}
.cmosa-timeline-item p {
  margin: 0;
  color: var(--c-text);
}

/* === CONTACT page === */
.cmosa-contact-grid {
  display: grid;
  gap: var(--c-s5);
  grid-template-columns: 1fr;
  margin-bottom: var(--c-s7);
}
@media (min-width: 900px) {
  .cmosa-contact-grid { grid-template-columns: 1fr 1.4fr; }
}
.cmosa-contact-channels {
  display: grid;
  gap: var(--c-s3);
}
.cmosa-contact-channel {
  display: flex;
  align-items: center;
  gap: var(--c-s4);
  padding: var(--c-s4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  transition: border-color .2s, transform .15s;
  text-decoration: none;
  color: var(--c-text);
}
.cmosa-contact-channel:hover {
  border-color: var(--c-primary);
  transform: translateX(2px);
}
.cmosa-contact-channel-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: #1A1A1A;
  color: #fff;
}
.cmosa-contact-channel-icon svg {
  width: 22px;
  height: 22px;
}
/* Legacy color variants kept for backward compatibility but won't apply (now use SVG) */
.cmosa-contact-channel-icon.is-line,
.cmosa-contact-channel-icon.is-phone,
.cmosa-contact-channel-icon.is-email,
.cmosa-contact-channel-icon.is-map {
  background: #1A1A1A;
  color: #fff;
}
.cmosa-contact-channel-label {
  font-size: 13px;
  color: var(--c-text-muted);
}
.cmosa-contact-channel-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}

.cmosa-map-embed {
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: var(--c-shadow-sm);
  aspect-ratio: 16/12;
}
.cmosa-map-embed iframe {
  width: 100%; height: 100%; border: 0;
  display: block;
}

/* Contact form */
.cmosa-form {
  display: grid;
  gap: var(--c-s3);
  background: var(--c-bg-soft);
  padding: var(--c-s5);
  border-radius: var(--c-radius);
}
.cmosa-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.cmosa-form label .req { color: var(--c-sale); }
.cmosa-form input,
.cmosa-form textarea,
.cmosa-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  background: #fff;
}
.cmosa-form input:focus,
.cmosa-form textarea:focus,
.cmosa-form select:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
  border-color: transparent;
}
.cmosa-form textarea { min-height: 120px; resize: vertical; }
.cmosa-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--c-s3);
}
@media (min-width: 600px) {
  .cmosa-form-row { grid-template-columns: 1fr 1fr; }
}

/* === DELIVERY page === */
.cmosa-delivery-zones {
  width: 100%;
  border-collapse: collapse;
  margin: var(--c-s4) 0;
  background: #fff;
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: var(--c-shadow-sm);
}
.cmosa-delivery-zones th {
  background: var(--c-primary);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
}
.cmosa-delivery-zones td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  vertical-align: top;
}
.cmosa-delivery-zones tr:last-child td { border-bottom: 0; }
.cmosa-delivery-zones tr:nth-child(even) { background: var(--c-bg-soft); }
.cmosa-delivery-zones .price-free {
  color: var(--c-accent-dark);
  font-weight: 700;
}
.cmosa-delivery-zones .price {
  color: var(--c-primary-dark);
  font-weight: 600;
}

.cmosa-cutoff-card {
  background: var(--c-primary-50);
  border-left: 4px solid var(--c-primary);
  padding: var(--c-s4) var(--c-s5);
  border-radius: var(--c-radius-sm);
  margin: var(--c-s5) 0;
}
.cmosa-cutoff-card h3 {
  margin: 0 0 var(--c-s2);
  color: var(--c-primary-dark);
  font-size: 1.0625rem;
}
.cmosa-cutoff-card p { margin: 0; }

/* === PAYMENT page === */
.cmosa-payment-methods {
  display: grid;
  gap: var(--c-s4);
  grid-template-columns: 1fr;
  margin: var(--c-s5) 0;
}
@media (min-width: 700px) {
  .cmosa-payment-methods { grid-template-columns: repeat(3, 1fr); }
}
.cmosa-payment-method {
  background: #fff;
  border: 2px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: var(--c-s5);
  text-align: center;
  transition: border-color .2s, transform .15s;
}
.cmosa-payment-method:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
}
.cmosa-payment-method-icon {
  font-size: 40px;
  margin-bottom: var(--c-s3);
}
.cmosa-payment-method h3 {
  margin: 0 0 var(--c-s2);
  font-size: 1.0625rem;
}

.cmosa-bank-account {
  background: var(--c-bg-soft);
  border-radius: var(--c-radius);
  padding: var(--c-s4) var(--c-s5);
  margin: var(--c-s4) 0;
  display: flex; align-items: center; gap: var(--c-s4);
}
.cmosa-bank-account-logo {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
}
.cmosa-bank-account-info { flex: 1; }
.cmosa-bank-account-bank {
  font-size: 13px;
  color: var(--c-text-muted);
}
.cmosa-bank-account-number {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-text);
  font-family: 'Courier New', monospace;
}
.cmosa-bank-account-name {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 2px;
}

.cmosa-steps {
  list-style: none;
  counter-reset: cmosa-steps;
  padding: 0;
  margin: var(--c-s5) 0;
}
.cmosa-steps li {
  counter-increment: cmosa-steps;
  position: relative;
  padding: var(--c-s4) var(--c-s4) var(--c-s4) calc(var(--c-s7) + 8px);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  margin-bottom: var(--c-s3);
}
.cmosa-steps li::before {
  content: counter(cmosa-steps);
  position: absolute;
  left: var(--c-s4); top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* === FAQ page === */
.cmosa-faq-search {
  position: relative;
  margin: 0 0 var(--c-s5);
}
.cmosa-faq-search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--c-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
}
.cmosa-faq-search input:focus {
  outline: none;
  border-color: var(--c-primary);
}
.cmosa-faq-search::before {
  content: '🔍';
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

.cmosa-faq-group {
  margin-bottom: var(--c-s6);
}
.cmosa-faq-group h2 {
  margin: 0 0 var(--c-s3);
  padding-bottom: var(--c-s2);
  border-bottom: 2px solid var(--c-primary);
  scroll-margin-top: 90px;
}

.cmosa-faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  margin-bottom: var(--c-s2);
  overflow: hidden;
  transition: border-color .15s;
}
.cmosa-faq-item[open] { border-color: var(--c-primary); }
.cmosa-faq-item summary {
  padding: var(--c-s4);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--c-s3);
  font-size: 15px;
}
.cmosa-faq-item summary::-webkit-details-marker { display: none; }
.cmosa-faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--c-primary);
  transition: transform .2s;
  flex-shrink: 0;
}
.cmosa-faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
.cmosa-faq-item-content {
  padding: 0 var(--c-s4) var(--c-s4);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px dashed var(--c-border);
  padding-top: var(--c-s3);
}
.cmosa-faq-item-content p:last-child { margin-bottom: 0; }
.cmosa-faq-item-content.is-hidden { display: none; }

/* === Final CTA bar (used on all info pages) === */
.cmosa-page-cta {
  background: linear-gradient(135deg, var(--c-primary-50), var(--c-bg-soft));
  border-radius: var(--c-radius-lg);
  padding: var(--c-s7) var(--c-s5);
  text-align: center;
  margin: var(--c-s7) 0;
}
.cmosa-page-cta h2 {
  margin: 0 0 var(--c-s3);
}
.cmosa-page-cta p {
  color: var(--c-text-muted);
  max-width: 480px;
  margin: 0 auto var(--c-s5);
}
.cmosa-page-cta-buttons {
  display: flex;
  gap: var(--c-s3);
  justify-content: center;
  flex-wrap: wrap;
}

/* === 8B. PRODUCT GALLERY + STICKY CTA ============================= */

/* Gallery main image with thumbnails below */
.cmosa-product-gallery-wrap {
  position: relative;
  /* margin-bottom: var(--c-s5); */
}
.cmosa-product-gallery-main {
  border-radius: var(--c-radius);
  overflow: hidden;
  background: var(--c-bg-alt);
  aspect-ratio: 4/5;
  margin-bottom: var(--c-s3);
}
.cmosa-product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cmosa-product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cmosa-product-gallery-thumb {
  aspect-ratio: 1/1;
  border-radius: var(--c-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  background: var(--c-bg-alt);
}
.cmosa-product-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cmosa-product-gallery-thumb.is-active {
  border-color: var(--c-primary);
}
.cmosa-product-gallery-thumb:hover {
  border-color: var(--c-primary-light);
}

/* Sale badge on single product */
.cmosa-product-badge {
  display: inline-block;
  background: var(--c-sale);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--c-s3);
}

/* Share buttons */
.cmosa-share {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: var(--c-s4);
  padding-top: var(--c-s4);
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
}
.cmosa-share-buttons {
  display: flex; gap: 6px;
}
.cmosa-share button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-bg-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.cmosa-share button:hover {
  background: var(--c-primary-50);
  transform: translateY(-1px);
}

/* Mobile sticky product CTA bar (shows on single product mobile) */
.cmosa-product-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: 10px var(--c-s3);
  z-index: 60;
  box-shadow: 0 -4px 16px rgba(0,0,0,.10);
  display: flex;
  gap: 8px;
  align-items: center;
}
.cmosa-product-sticky-cta-price {
  display: flex; flex-direction: column;
  font-size: 11px; color: var(--c-text-muted);
  line-height: 1.2;
  flex-shrink: 0;
  padding-right: 8px;
  border-right: 1px solid var(--c-border);
  margin-right: 4px;
}
.cmosa-product-sticky-cta-price strong {
  color: var(--c-primary-dark);
  font-size: 16px;
  font-weight: 700;
}
.cmosa-product-sticky-cta a {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: opacity .15s, transform .1s;
}
.cmosa-product-sticky-cta a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Phone — dark circle with white icon */
.cmosa-product-sticky-cta-call {
  width: 44px;
  height: 44px;
  background: #1A1A1A;
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 0 !important;
}

/* LINE — green pill with chat icon in white circle + label */
.cmosa-product-sticky-cta-line {
  background: #06C755;
  color: #fff;
  flex: 1;
  height: 44px;
  border-radius: 999px;
  padding: 0 18px 0 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
.cmosa-product-sticky-cta-line-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
@media (min-width: 900px) {
  .cmosa-product-sticky-cta { display: none; }
}
body.single-product { padding-bottom: 80px; }
@media (min-width: 900px) {
  body.single-product { padding-bottom: 0; }
}
/* Hide the generic site-wide sticky CTA on single product (replaced) */
body.single-product .cmosa-sticky-cta {
  display: none;
}

/* === 9B. CATEGORY PAGE SEO ENHANCEMENTS =========================== */
.cmosa-category-seo {
  max-width: 760px;
  margin: var(--c-s7) auto 0;
  padding: var(--c-s6) var(--c-s4);
  background: var(--c-bg-soft);
  border-radius: var(--c-radius);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
}
.cmosa-category-seo h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--c-s3);
}
.cmosa-category-seo h3 {
  font-size: 1.0625rem;
  margin-top: var(--c-s5);
}
.cmosa-category-seo p:last-child { margin-bottom: 0; }

/* Sub-category chips (when a category has children) */
.cmosa-subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--c-s4) 0 var(--c-s5);
}
.cmosa-subcat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--c-text);
  text-decoration: none;
  transition: all .15s;
}
.cmosa-subcat-chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.cmosa-subcat-chip.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.cmosa-subcat-chip-count {
  font-size: 12px;
  opacity: .75;
}

/* === 9C. SEARCH RESULTS PAGE ====================================== */
.cmosa-search-header {
  text-align: center;
  padding: var(--c-s6) var(--c-s4);
  background: linear-gradient(135deg, var(--c-bg-soft), #fff);
  margin-bottom: var(--c-s5);
}
.cmosa-search-header h1 {
  margin-bottom: var(--c-s4);
}
.cmosa-search-form {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.cmosa-search-form input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 2px solid var(--c-primary-light);
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
}
.cmosa-search-form input:focus {
  outline: none;
  border-color: var(--c-primary);
}
.cmosa-search-form button {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.cmosa-search-form button:hover { background: var(--c-primary-dark); }

.cmosa-search-tabs {
  display: flex; gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--c-s4) 0;
}
.cmosa-search-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  color: var(--c-text);
  text-decoration: none;
  transition: all .15s;
}
.cmosa-search-tab:hover { border-color: var(--c-primary); }
.cmosa-search-tab.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.cmosa-search-tab-count {
  font-size: 12px; opacity: .8;
}

.cmosa-search-section {
  margin-bottom: var(--c-s7);
}
.cmosa-search-section h2 {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: var(--c-s2);
  margin-bottom: var(--c-s4);
  border-bottom: 2px solid var(--c-primary);
}
.cmosa-search-section h2 .count {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-muted);
}

/* === ENHANCED 404 ============================================== */
.cmosa-404 {
  text-align: center;
  padding: var(--c-s7) var(--c-s4);
}
.cmosa-404-emoji { font-size: 72px; margin-bottom: var(--c-s3); }
.cmosa-404 h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--c-primary);
  margin-bottom: var(--c-s3);
}
.cmosa-404 .lead {
  color: var(--c-text-muted);
  max-width: 520px;
  margin: 0 auto var(--c-s5);
  font-size: 1.0625rem;
}
.cmosa-404-suggestions {
  margin-top: var(--c-s7);
  padding-top: var(--c-s5);
  border-top: 1px solid var(--c-border);
  text-align: left;
}
.cmosa-404-suggestions h2 {
  text-align: center;
  margin-bottom: var(--c-s4);
}
.cmosa-404-quick-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--c-s3);
  max-width: 480px;
  margin: var(--c-s5) auto 0;
}
@media (min-width: 600px) {
  .cmosa-404-quick-links { grid-template-columns: 1fr 1fr; }
}
.cmosa-404-quick-link {
  display: flex; align-items: center; gap: 12px;
  padding: var(--c-s4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  text-decoration: none;
  color: var(--c-text);
  transition: all .15s;
}
.cmosa-404-quick-link:hover {
  border-color: var(--c-primary);
  transform: translateX(2px);
}
.cmosa-404-quick-link-icon { font-size: 28px; flex-shrink: 0; }
.cmosa-404-quick-link-label {
  font-size: 13px;
  color: var(--c-text-muted);
}
.cmosa-404-quick-link-title {
  font-weight: 600;
  font-size: 15px;
}

/* === 14. UTILITIES ================================================= */
.cmosa-text-center { text-align: center; }
.cmosa-mt-0 { margin-top: 0 !important; }
.cmosa-mt-3 { margin-top: var(--c-s3); }
.cmosa-mt-5 { margin-top: var(--c-s5); }
.cmosa-mb-0 { margin-bottom: 0 !important; }
.cmosa-mb-5 { margin-bottom: var(--c-s5); }
.cmosa-hidden { display: none !important; }
.cmosa-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* WordPress core compat */
.alignleft { float: left; margin-right: var(--c-s4); }
.alignright { float: right; margin-left: var(--c-s4); }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%);
  clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* =====================================================
   PILLAR PAGE TEMPLATE (template-pillar-page.php)
   Generic pillar landing — all sections share same rhythm
   ===================================================== */
.cmosa-pillar-page > section { margin-top: var(--c-s7); }
.cmosa-pillar-page > section:first-child { margin-top: 0; }

/* --- 1. HERO --- */
.cmosa-pillar-hero {
  position: relative;
  padding: var(--c-s7) var(--c-s4);
  text-align: center;
  background: linear-gradient(135deg, var(--c-bg-soft) 0%, var(--c-primary-50) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.cmosa-pillar-hero.has-bg { color: #fff; }
.cmosa-pillar-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  display: none;
}
.cmosa-pillar-hero.has-bg .cmosa-pillar-hero-overlay { display: block; }
.cmosa-pillar-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.cmosa-pillar-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 var(--c-s3);
  line-height: 1.2;
}
.cmosa-pillar-hero.has-bg h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.cmosa-pillar-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  margin: 0 auto var(--c-s5);
  max-width: 640px;
  opacity: .92;
}
.cmosa-pillar-hero.has-bg .cmosa-pillar-subtitle { text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.cmosa-pillar-hero-cta {
  display: flex;
  gap: var(--c-s3);
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .cmosa-pillar-hero { padding: 96px var(--c-s4); }
}

/* --- Section heading shared --- */
.cmosa-pillar-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--c-s3);
  margin-bottom: var(--c-s5);
  flex-wrap: wrap;
}
.cmosa-pillar-section-head h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0;
}

/* --- 2. PRODUCTS GRID --- */
.cmosa-pillar-products .cmosa-products-grid {
  margin-bottom: var(--c-s5);
}
.cmosa-pillar-cta-row {
  text-align: center;
  margin-top: var(--c-s5);
}
.cmosa-pillar-empty {
  text-align: center;
  color: var(--c-text-muted);
  padding: var(--c-s5);
  background: var(--c-bg-soft);
  border-radius: var(--c-radius);
}

/* --- 3. WHY US --- */
.cmosa-pillar-why h2 {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 0 var(--c-s5);
}
.cmosa-pillar-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--c-s4);
}
@media (min-width: 768px) {
  .cmosa-pillar-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--c-s5);
  }
}
.cmosa-pillar-why-item {
  text-align: center;
  padding: var(--c-s5) var(--c-s4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  transition: transform .2s, box-shadow .2s;
}
.cmosa-pillar-why-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--c-shadow-md);
}
.cmosa-pillar-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  margin-bottom: var(--c-s3);
}
.cmosa-pillar-why-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--c-text);
}
.cmosa-pillar-why-item p {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- 4. CONTENT BODY --- */
.cmosa-pillar-body-inner {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
}
.cmosa-pillar-body-inner h2,
.cmosa-pillar-body-inner h3 {
  margin-top: var(--c-s6);
  margin-bottom: var(--c-s3);
}
.cmosa-pillar-body-inner h2 { font-size: 1.5rem; }
.cmosa-pillar-body-inner h3 { font-size: 1.2rem; color: var(--c-primary-dark); }
.cmosa-pillar-body-inner p { margin-bottom: var(--c-s4); }
.cmosa-pillar-body-inner ul,
.cmosa-pillar-body-inner ol { margin: 0 0 var(--c-s4) var(--c-s5); }
.cmosa-pillar-body-inner li { margin-bottom: 8px; }
.cmosa-pillar-body-inner img { max-width: 100%; height: auto; border-radius: var(--c-radius); }

/* --- 5. RELATED POSTS --- */
.cmosa-pillar-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--c-s4);
}
@media (min-width: 600px)  { .cmosa-pillar-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cmosa-pillar-related-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- 6. FINAL CTA --- */
.cmosa-pillar-final-cta-inner {
  background: linear-gradient(135deg, var(--c-bg-soft), var(--c-primary-50));
  border: 1px solid #f3dfb6;
  border-radius: var(--c-radius-lg);
  padding: var(--c-s7) var(--c-s5);
  text-align: center;
}
.cmosa-pillar-final-cta-inner h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--c-primary-dark);
  margin: 0 0 var(--c-s2);
}
.cmosa-pillar-final-cta-inner p {
  color: var(--c-text);
  margin: 0 0 var(--c-s4);
  font-size: 15px;
}
.cmosa-pillar-final-cta-btns {
  display: flex;
  gap: var(--c-s3);
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   MID-POST PRODUCT INJECTION (after first paragraph)
   Mobile: 2-col grid (matches shop archive)
   Desktop: 4-col grid x 2 rows = 8 products visible
   ===================================================== */
.cmosa-mid-post-products {
  margin: var(--c-s6) 0;
  padding: var(--c-s5) var(--c-s4);
  background: linear-gradient(135deg, var(--c-bg-soft) 0%, var(--c-primary-50) 100%);
  border: 1px solid #f3dfb6;
  border-radius: var(--c-radius-lg);
}
@media (min-width: 768px) {
  .cmosa-mid-post-products {
    padding: var(--c-s5) var(--c-s5);
    margin: var(--c-s7) 0;
  }
}
.cmosa-mid-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--c-s3);
  margin-bottom: var(--c-s4);
  flex-wrap: wrap;
}
.cmosa-mid-post-head-text { flex: 1; min-width: 0; }
.cmosa-mid-post-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin: 0;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .cmosa-mid-post-head h3 { font-size: 22px; }
}
.cmosa-mid-post-sub {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 4px 0 0;
  line-height: 1.4;
}
.cmosa-mid-post-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
  flex-shrink: 0;
  align-self: center;
}
.cmosa-mid-post-link:hover { color: var(--c-primary); }
.cmosa-mid-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px)  { .cmosa-mid-post-grid { gap: var(--c-s3); grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cmosa-mid-post-grid { grid-template-columns: repeat(4, 1fr); gap: var(--c-s3); } }
.cmosa-mid-post-cta-row {
  display: flex;
  gap: var(--c-s3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--c-s5);
  padding-top: var(--c-s4);
  border-top: 1px solid rgba(243,223,182,.6);
}

/* =====================================================
   ARCHIVE PAGE (archive.php — modern blog archive)
   Sections: hero | featured | filters | grid | pagination | sidebar
   ===================================================== */

/* --- 1. Hero header --- */
.cmosa-archive-hero {
  background: linear-gradient(135deg, var(--c-bg-soft) 0%, var(--c-primary-50) 100%);
  border-bottom: 1px solid #f3dfb6;
  padding: var(--c-s5) var(--c-s4) var(--c-s6);
  margin-bottom: var(--c-s6);
}
@media (min-width: 768px) {
  .cmosa-archive-hero { padding: var(--c-s7) var(--c-s4); margin-bottom: var(--c-s7); }
}
.cmosa-archive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: var(--c-s3);
}
.cmosa-archive-breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color .2s;
}
.cmosa-archive-breadcrumb a:hover { color: var(--c-primary); }
.cmosa-archive-breadcrumb .is-current { color: var(--c-text); font-weight: 500; }
.cmosa-archive-title {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 var(--c-s2);
  color: var(--c-text);
  line-height: 1.2;
}
.cmosa-archive-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.0625rem);
  color: var(--c-text-muted);
  margin: 0 0 var(--c-s3);
  max-width: 720px;
  line-height: 1.6;
}
.cmosa-archive-count {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  margin: 0;
  color: var(--c-text-muted);
}
.cmosa-archive-count strong { color: var(--c-primary-dark); }

/* --- Layout: main + sidebar --- */
.cmosa-archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--c-s5);
  padding: 0 var(--c-s4) var(--c-s7);
}
@media (min-width: 1000px) {
  .cmosa-archive-layout {
    grid-template-columns: 1fr 300px;
    gap: var(--c-s6);
    padding-bottom: var(--c-s7);
  }
}
.cmosa-archive-main { min-width: 0; }

/* --- 2. Featured post --- */
.cmosa-archive-featured {
  margin-bottom: var(--c-s6);
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  transition: transform .2s, box-shadow .2s;
}
.cmosa-archive-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.cmosa-archive-featured-link {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 768px) {
  .cmosa-archive-featured-link {
    grid-template-columns: 1.2fr 1fr;
  }
}
.cmosa-archive-featured-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg-soft);
}
@media (min-width: 768px) {
  .cmosa-archive-featured-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
}
.cmosa-archive-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cmosa-archive-featured-badge {
  position: absolute;
  top: var(--c-s3); left: var(--c-s3);
  background: var(--c-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.cmosa-archive-featured-body {
  padding: var(--c-s5) var(--c-s4);
  display: flex; flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .cmosa-archive-featured-body { padding: var(--c-s6) var(--c-s5); }
}
.cmosa-archive-featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--c-s3);
  font-size: 13px;
  color: var(--c-text-muted);
}
.cmosa-archive-cat-pill {
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.cmosa-archive-date,
.cmosa-archive-readtime { color: var(--c-text-muted); }
.cmosa-archive-readtime::before { content: '·'; margin-right: 6px; }
.cmosa-archive-featured-body h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  margin: 0 0 var(--c-s3);
  line-height: 1.3;
  color: var(--c-text);
}
.cmosa-archive-featured-body p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--c-s3);
}
.cmosa-archive-read-more {
  font-weight: 600;
  color: var(--c-primary-dark);
  font-size: 14px;
}

/* --- 3. Filter chips --- */
.cmosa-archive-filters {
  margin-bottom: var(--c-s5);
  padding-bottom: var(--c-s4);
  border-bottom: 1px solid var(--c-border);
}
.cmosa-archive-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cmosa-archive-filter-chips::-webkit-scrollbar { display: none; }
.cmosa-archive-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.cmosa-archive-chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.cmosa-archive-chip.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.cmosa-archive-chip-count {
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  color: inherit;
}
.cmosa-archive-chip.is-active .cmosa-archive-chip-count {
  background: rgba(255,255,255,.25);
}

/* --- 4. Posts grid --- */
.cmosa-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--c-s4);
  margin-bottom: var(--c-s6);
}
@media (min-width: 600px)  { .cmosa-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cmosa-archive-grid { grid-template-columns: repeat(2, 1fr); gap: var(--c-s5); } }
@media (min-width: 1200px) { .cmosa-archive-grid { grid-template-columns: repeat(3, 1fr); } }

.cmosa-archive-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.cmosa-archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.cmosa-archive-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}
.cmosa-archive-card .cmosa-blog-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg-soft);
  flex-shrink: 0;
}
.cmosa-archive-card .cmosa-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmosa-archive-card .cmosa-blog-card-body {
  padding: var(--c-s4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cmosa-archive-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,.95);
  color: var(--c-primary-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.cmosa-archive-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}
.cmosa-archive-card .cmosa-blog-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--c-text);
}
.cmosa-archive-card-excerpt {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0 0 var(--c-s3);
}
.cmosa-archive-card-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-dark);
}

/* --- 5. Pagination --- */
.cmosa-archive-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--c-s3);
  flex-wrap: wrap;
  margin-top: var(--c-s6);
  padding-top: var(--c-s5);
  border-top: 1px solid var(--c-border);
}
@media (max-width: 599px) {
  .cmosa-archive-pagination {
    justify-content: center;
  }
}

/* Prev / Next buttons (pill style) */
.cmosa-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.cmosa-page-btn:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,152,20,.25);
}
.cmosa-page-btn.is-disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
@media (max-width: 599px) {
  .cmosa-page-btn { padding: 8px 14px; font-size: 13px; }
  .cmosa-page-btn-nav span:not([aria-hidden]) { display: none; }
}

/* Page numbers (center group) */
.cmosa-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cmosa-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  transition: all .18s ease;
  position: relative;
}
.cmosa-page-num:hover {
  background: var(--c-bg-soft);
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
  transform: translateY(-1px);
}
.cmosa-page-num.is-current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 700;
  cursor: default;
  box-shadow:
    0 0 0 4px rgba(220,152,20,.15),
    0 4px 12px rgba(220,152,20,.35);
  transform: none;
}
.cmosa-page-num.is-current:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: none;
}
.cmosa-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 44px;
  color: var(--c-text-muted);
  font-size: 16px;
  font-weight: 600;
  user-select: none;
  letter-spacing: 2px;
}

/* Summary line below pagination */
.cmosa-page-summary {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-muted);
  margin: var(--c-s4) 0 0;
}
.cmosa-page-summary strong {
  color: var(--c-text);
  font-weight: 700;
}

/* --- Empty state --- */
.cmosa-archive-empty {
  text-align: center;
  padding: var(--c-s7) var(--c-s4);
  background: var(--c-bg-soft);
  border-radius: var(--c-radius-lg);
}
.cmosa-archive-empty-icon {
  font-size: 48px;
  margin-bottom: var(--c-s3);
  opacity: .6;
}
.cmosa-archive-empty h2 {
  font-size: 20px;
  margin: 0 0 var(--c-s2);
}
.cmosa-archive-empty p {
  color: var(--c-text-muted);
  margin: 0 0 var(--c-s4);
}

/* --- 6. Sidebar --- */
.cmosa-archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--c-s4);
}
@media (max-width: 999px) {
  .cmosa-archive-sidebar { display: none; } /* Hide on mobile/tablet */
}
.cmosa-archive-sidebar-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-lg);
  padding: var(--c-s4);
}
.cmosa-archive-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--c-text);
  margin: 0 0 var(--c-s3);
  padding-bottom: var(--c-s2);
  border-bottom: 2px solid var(--c-primary-50);
}

/* Sidebar — LINE CTA card */
.cmosa-archive-cta-card {
  background: linear-gradient(135deg, var(--c-bg-soft) 0%, var(--c-primary-50) 100%);
  border-color: #f3dfb6;
  text-align: center;
}
.cmosa-archive-cta-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.cmosa-archive-cta-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--c-primary-dark);
}
.cmosa-archive-cta-card p {
  font-size: 12px;
  color: var(--c-text-muted);
  margin: 0 0 var(--c-s3);
  line-height: 1.4;
}
.cmosa-archive-cta-card .cmosa-action-btn-line {
  width: 100%;
  justify-content: center;
}

/* Sidebar — Categories list */
.cmosa-archive-cat-list {
  list-style: none;
  margin: 0; padding: 0;
}
.cmosa-archive-cat-list li { border-bottom: 1px solid var(--c-border); }
.cmosa-archive-cat-list li:last-child { border-bottom: 0; }
.cmosa-archive-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  text-decoration: none;
  color: var(--c-text);
  font-size: 14px;
  transition: color .15s;
}
.cmosa-archive-cat-list a:hover { color: var(--c-primary); }
.cmosa-archive-cat-list-count {
  background: var(--c-bg-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--c-text-muted);
  font-weight: 600;
}

/* Sidebar — Recent posts */
.cmosa-archive-recent-list {
  list-style: none;
  margin: 0; padding: 0;
}
.cmosa-archive-recent-list li {
  border-bottom: 1px solid var(--c-border);
  padding: 10px 0;
}
.cmosa-archive-recent-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cmosa-archive-recent-list li:first-child { padding-top: 0; }
.cmosa-archive-recent-list a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.cmosa-archive-recent-thumb {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.cmosa-archive-recent-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cmosa-archive-recent-text { flex: 1; min-width: 0; }
.cmosa-archive-recent-text h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cmosa-archive-recent-list a:hover h4 { color: var(--c-primary); }
.cmosa-archive-recent-text span {
  font-size: 11px;
  color: var(--c-text-muted);
}

/* Sidebar — Tags */
.cmosa-archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cmosa-archive-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-bg-soft);
  border-radius: 999px;
  font-size: 12px;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: all .15s;
}
.cmosa-archive-tag:hover {
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
}
