/* ============================================================
   FreshMart — Complete Theme Stylesheet
   Fresh Grocery & Organics Theme
   ============================================================ */

/* === Design System Variables === */

:root {
  --fm-green:       var(--main-color-one, #2E7D32);
  --fm-green-deep:  var(--main-color-two, #1B5E20);
  --fm-green-light: var(--secondary-color, #E8F5E9);
  --fm-green-mid:   var(--main-color-three, #4CAF50);
  --fm-orange:      var(--new-color, #FF6F00);
  --fm-orange-lt:   var(--secondary-color-two, #FFF3E0);
  --fm-bg:          var(--section-bg-1, #F8FDF8);
  --fm-white:       #FFFFFF;
  --fm-dark:        var(--heading-color, #1B2E1B);
  --fm-muted:       var(--body-color, #5A6E5A);
  --fm-border:      var(--extra-light-color, #C8E6C9);
  --fm-radius:      10px;
  --fm-radius-sm:   6px;
  --fm-shadow:      0 8px 28px -8px color-mix(in srgb, var(--fm-green) 18%, transparent);
  --fm-shadow-sm:   0 2px 10px -4px color-mix(in srgb, var(--fm-green) 12%, transparent);
  --fm-font:        'Poppins', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--fm-bg); font-family: var(--fm-font); color: var(--fm-dark); margin: 0; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* === Promo Bar === */
.fm-promo-bar { background: var(--fm-green); color: #fff; text-align: center; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.fm-promo-bar a { color: #AED6A2; }

/* === Navbar === */
.fm-navbar { background: #fff; border-bottom: 2px solid var(--fm-border); padding: 12px 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--fm-shadow-sm); }
.fm-navbar-logo-img { max-height: 46px; object-fit: contain; display: block; }
.fm-brand { font-size: 26px; font-weight: 800; color: var(--fm-green); letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.fm-brand-icon { width: 36px; height: 36px; background: var(--fm-green); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.fm-search { width: 280px; flex-shrink: 0; display: flex; border-radius: 8px; overflow: visible; background: var(--fm-green-light); position: relative; }
.fm-search-cat { border: 0; background: transparent; padding: 0 12px; font-size: 13px; font-family: var(--fm-font); color: var(--fm-muted); border-right: 1px solid var(--fm-border); outline: none; cursor: pointer; }
.fm-search input { flex: 1; border: 0; background: transparent; padding: 6px 14px; font-size: 14px; font-family: var(--fm-font); outline: none; }
.fm-search button { background: var(--fm-green); color: #fff; border: 0; padding: 0 20px; font-size: 18px; cursor: pointer; transition: background .2s; }
.fm-search button:hover { background: var(--fm-green-deep); }
.fm-search-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--fm-border, #c8e6c9); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 9999; list-style: none; margin: 0; padding: 6px 0; max-height: 380px; overflow-x: hidden; overflow-y: auto; }
.fm-search-dropdown.open { display: block; }
.fm-search-dropdown .product-suggestion-list-item { width: 100% !important; }
.fm-search-dropdown .product-suggestion-list-link, .fm-search-dropdown li > a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--fm-dark, #1a1a1a); transition: background .15s; border-radius: 8px; margin: 0 4px; }
.fm-search-dropdown .product-suggestion-list-link:hover, .fm-search-dropdown li > a:hover { background: rgba(0,0,0,.04); }
.fm-search-dropdown .product-image { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--fm-border, #c8e6c9); }
.fm-search-dropdown .product-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.fm-search-dropdown .product-info { flex: 1; min-width: 0; }
.fm-search-dropdown .product-info-top { margin: 0 !important; }
.fm-search-dropdown .product-name, .fm-search-dropdown h6.product-name { display: block !important; font-size: 13px !important; font-weight: 600 !important; color: var(--fm-dark, #1a1a1a) !important; margin: 0 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; line-height: 1.4 !important; }
.fm-search-dropdown .price-update-through { display: flex !important; align-items: center; gap: 5px; margin-top: 2px; }
.fm-search-dropdown .flash-price, .fm-search-dropdown .flash-prices { font-size: 12px !important; font-weight: 700; color: var(--fm-green, #2E7D32); }
.fm-search-dropdown .flash-old-prices { font-size: 11px !important; color: #aaa; text-decoration: line-through; }
.fm-search-footer { border-top: 1px solid var(--fm-border, #c8e6c9) !important; margin-top: 6px; padding-top: 4px; }
.fm-search-footer a { display: flex !important; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px !important; margin: 0 !important; font-size: 12px; font-weight: 700; color: var(--fm-green, #2E7D32) !important; text-decoration: none; transition: background .15s; }
.fm-search-footer a:hover { background: rgba(0,0,0,.04) !important; }
.fm-search-empty { display: flex !important; align-items: center; justify-content: center; padding: 20px 14px; font-size: 13px; color: #aaa; }
.fm-icon-btn { width: 42px; height: 42px; border-radius: 8px; background: var(--fm-green-light); border: 1.5px solid var(--fm-border); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--fm-green); cursor: pointer; transition: all .2s; position: relative; }
.fm-icon-btn:hover { background: var(--fm-green); color: #fff; }
.fm-icon-btn--text { width: auto; padding: 0 14px; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.fm-icon-btn--text i { font-size: 18px; }
.fm-badge { position: absolute; top: -5px; right: -5px; background: var(--fm-orange); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.fm-nav-links { display: flex; align-items: center; gap: 0; }
.fm-nav-links .theme-nav-menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.fm-nav-links .theme-nav-menu > li { position: relative; }
.fm-nav-links .theme-nav-menu > li > a { font-size: 14px; font-weight: 600; color: var(--fm-dark); transition: color .2s; white-space: nowrap; padding: 4px 0; display: block; }
.fm-nav-links .theme-nav-menu > li > a:hover,
.fm-nav-links .theme-nav-menu > li.active > a { color: var(--fm-green); }

/* Dropdown sub-menu */
.fm-nav-links .theme-nav-menu > li .sub-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--fm-border); border-radius: 8px; box-shadow: var(--fm-shadow); padding: 8px 0; list-style: none; margin: 0; z-index: 1001; }
.fm-nav-links .theme-nav-menu > li:hover .sub-menu { display: block; }
.fm-nav-links .theme-nav-menu > li .sub-menu li a { display: block; padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--fm-dark); transition: all .15s; }
.fm-nav-links .theme-nav-menu > li .sub-menu li a:hover { color: var(--fm-green); background: var(--fm-green-light); padding-left: 22px; }

/* Digital product card styles */
.fm-dp-card { background: #fff; border-radius: var(--fm-radius); border: 1.5px solid var(--fm-border); overflow: hidden; transition: all .25s; }
.fm-dp-card:hover { box-shadow: var(--fm-shadow); transform: translateY(-3px); }
.fm-dp-card-img { position: relative; height: 220px; background: var(--fm-green-light); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fm-dp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fm-dp-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; color: var(--fm-green); background: var(--fm-green-light); }
.fm-dp-card-body { padding: 14px; }
.fm-dp-cat { display: inline-block; background: var(--fm-green-light); color: var(--fm-green); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.fm-dp-name { font-size: 14px; font-weight: 700; color: var(--fm-dark); display: block; line-height: 1.4; transition: color .15s; }
.fm-dp-name:hover { color: var(--fm-green); }

/* === Buttons === */
.fm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px; border-radius: 8px; font-family: var(--fm-font); font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.fm-btn-green { background: var(--fm-green); color: #fff; }
.fm-btn-green:hover { background: var(--fm-green-deep); color: #fff; }
.fm-btn-outline { background: transparent; color: var(--fm-green); border-color: var(--fm-green); }
.fm-btn-outline:hover { background: var(--fm-green); color: #fff; }
.fm-btn-orange { background: var(--fm-orange); color: #fff; border-color: var(--fm-orange); }
.fm-btn-sm { padding: 7px 16px; font-size: 13px; }

/* === Section Headings === */
.fm-section-tag { display: inline-block; background: var(--fm-green-light); color: var(--fm-green); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.fm-section-title { font-size: 30px; font-weight: 800; color: var(--fm-dark); margin-bottom: 4px; }
.fm-section-sub { font-size: 14px; color: var(--fm-muted); margin-bottom: 32px; }
.fm-sec-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.fm-view-all { font-size: 13px; font-weight: 700; color: var(--fm-green); display: inline-flex; align-items: center; gap: 4px; }
.fm-view-all:hover { color: var(--fm-green-deep); }

/* === Category Cards === */
.fm-cat-card { border-radius: var(--fm-radius); overflow: hidden; background: #fff; border: 1.5px solid var(--fm-border); text-align: center; padding: 20px 12px 16px; transition: all .2s; cursor: pointer; display: block; }
.fm-cat-card:hover { border-color: var(--fm-green); box-shadow: var(--fm-shadow-sm); transform: translateY(-2px); }
.fm-cat-img { height: 80px; width: 80px; border-radius: 50%; background: var(--fm-green-light); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.fm-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.fm-cat-name { font-size: 13px; font-weight: 700; color: var(--fm-dark); }
.fm-cat-count { font-size: 11px; color: var(--fm-muted); }

/* === Product Cards === */
.fm-card { background: #fff; border-radius: var(--fm-radius); border: 1.5px solid var(--fm-border); overflow: hidden; transition: all .25s; position: relative; }
.fm-card:hover { box-shadow: var(--fm-shadow); transform: translateY(-3px); }
.fm-card-img { position: relative; height: 200px; background: var(--fm-green-light); overflow: hidden; }
/* Product photos are shown whole, on white: a supermarket's packshots are tall cans and boxes that cover cut in half. */
.fm-card-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 10px; box-sizing: border-box; transition: transform .35s; }
.fm-card:hover .fm-card-img img { transform: scale(1.05); }
.fm-card-badge { position: absolute; top: 8px; left: 8px; background: var(--fm-orange); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.fm-card-organic { position: absolute; top: 8px; right: 8px; background: var(--fm-green); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.fm-card-wishlist { position: absolute; bottom: 8px; right: 8px; width: 30px; height: 30px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--fm-muted); box-shadow: 0 2px 6px rgba(0,0,0,.1); cursor: pointer; border: none; transition: all .2s; }
.fm-card-wishlist:hover { background: var(--fm-green); color: #fff; }
.fm-card-body { padding: 14px; }
.fm-card-cat { font-size: 11px; font-weight: 600; color: var(--fm-green); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.fm-card-name { font-size: 15px; font-weight: 700; color: var(--fm-dark); margin-bottom: 4px; line-height: 1.3; }
.fm-card-weight { font-size: 12px; color: var(--fm-muted); margin-bottom: 6px; }
.fm-stars { color: var(--review-color, #F59E0B); font-size: 12px; margin-bottom: 8px; }
.fm-card-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
/* A price says what it is per ("₪8.00 / كغ"); beside a struck-through price, a phone's half-width card wraps rather than spills. */
.fm-card-price { flex-wrap: wrap; row-gap: 0; column-gap: 6px; }
.fm-list-card .velo-soldas { max-width: 240px; }
.fm-price-sale { font-size: 18px; font-weight: 800; color: var(--fm-green); }
.fm-price-orig { font-size: 13px; color: var(--fm-muted); text-decoration: line-through; }
.fm-card-atc { width: 100%; padding: 9px; border-radius: 8px; background: var(--fm-green); color: #fff; border: none; font-family: var(--fm-font); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fm-card-atc:hover { background: var(--fm-green-deep); }
.fm-img-ph { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; }

/* === Newsletter Section === */
.fm-newsletter-inner { background: var(--fm-green); border-radius: 20px; text-align: center; color: #fff; padding: 60px 40px; }
.fm-nl-row { display: flex; max-width: 560px; margin: 0 auto; border-radius: 50px; overflow: hidden; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.fm-newsletter-tag { display: inline-block; background: rgba(255,255,255,.18); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 18px; border-radius: 40px; margin-bottom: 20px; border: 1.5px solid rgba(255,255,255,.35); }
.fm-newsletter-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; margin-bottom: 14px; line-height: 1.15; }
.fm-newsletter-sub { font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.fm-newsletter-form { max-width: 560px; margin: 0 auto; }
.fm-nl-row { display: flex; border-radius: 50px; overflow: hidden; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.fm-nl-row input { flex: 1; border: 0; padding: 16px 26px; font-size: 15px; font-family: var(--fm-font); outline: none; color: var(--fm-dark); background: transparent; }
.fm-nl-row button { background: var(--fm-orange); color: #fff; border: 0; padding: 16px 28px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; white-space: nowrap; font-family: var(--fm-font); border-radius: 0 50px 50px 0; flex-shrink: 0; }
.fm-nl-row button:hover { background: color-mix(in srgb, var(--fm-orange) 82%, black); }

/* === Footer === */
.fm-footer { background: color-mix(in srgb, var(--fm-dark) 80%, black); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.fm-footer-logo { max-height: 40px; width: auto; }
.fm-footer-brand { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.fm-footer-brand span { color: var(--fm-green-mid); }
.fm-footer-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.fm-footer-bottom-link { font-size: 12px; color: rgba(255,255,255,.4); transition: color .2s; }
.fm-footer-bottom-link:hover { color: var(--fm-green-mid); }
.fm-footer-desc { font-size: 13px; line-height: 1.7; opacity: .7; margin-bottom: 16px; color: var(--fm-white);}
.fm-footer-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--fm-green-mid); margin-bottom: 14px; }
.fm-footer-links { list-style: none; padding: 0; margin: 0; }
.fm-footer-links li { margin-bottom: 9px; }
.fm-footer-links a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s; }
.fm-footer-links a:hover { color: var(--fm-green-mid); }
.fm-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.72); }
.fm-socials { display: flex; gap: 8px; }
.fm-social-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: 16px; transition: all .2s; }
.fm-social-btn:hover { background: var(--fm-green); color: #fff; }

/* === Page Banner & Breadcrumb === */
.fm-page-banner { background: linear-gradient(135deg, var(--breadcrumb-bg, #E8F5E9) 0%, color-mix(in srgb, var(--breadcrumb-bg, #E8F5E9) 88%, white) 100%); padding: 40px 0; border-bottom: 2px solid var(--fm-border); }
.fm-breadcrumb { font-size: 13px; color: var(--fm-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fm-breadcrumb a { color: var(--fm-muted); transition: color .2s; }
.fm-breadcrumb a:hover { color: var(--fm-green); }
.fm-breadcrumb .current { color: var(--fm-green); font-weight: 600; }
.fm-breadcrumb .sep { color: var(--fm-border); }

/* === Sidebar (Shop & Blog) === */
.fm-sidebar-card { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); padding: 20px; margin-bottom: 20px; }
.fm-sidebar-title { font-size: 15px; font-weight: 700; color: var(--fm-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--fm-green); display: inline-block; }
.fm-filter-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--fm-border); }
.fm-filter-item:last-child { border-bottom: none; }
.fm-filter-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fm-dark); font-weight: 500; cursor: pointer; }
.fm-filter-label input { accent-color: var(--fm-green); }
.fm-filter-count { font-size: 11px; color: var(--fm-muted); background: var(--fm-green-light); padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.fm-price-input { flex: 1; min-width: 0; width: 100%; padding: 8px 10px; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); font-size: 13px; font-family: var(--fm-font); outline: none; text-align: center; }
.fm-price-input:focus { border-color: var(--fm-green); }

/* === Shop Toolbar === */
/* Filters behind a button on a phone (main.js); the sidebar is unchanged on a desktop. */
.fm-filter-toggle, .fm-filter-done { display: none; }
@media (max-width: 991.98px) {
    .fm-filters { display: none; }
    .fm-filters.is-open { display: block; }
    .fm-filter-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--fm-border); background: var(--fm-green-light); color: var(--fm-green); font-weight: 700; font-size: 14px; cursor: pointer; }
    .fm-filter-toggle[aria-expanded="true"] { background: var(--fm-green); color: #fff; border-color: var(--fm-green); }
    .fm-filter-toggle i { font-size: 18px; }
    .fm-filter-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--fm-green); font-size: 12px; line-height: 20px; text-align: center; }
    .fm-filter-toggle[aria-expanded="false"] .fm-filter-n { background: var(--fm-green); color: #fff; }
    .fm-filter-done { display: block; width: 100%; height: 46px; margin: 4px 0 20px; border: 0; border-radius: 12px; background: var(--fm-green); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
}
.fm-shop-toolbar { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.fm-result-count { font-size: 14px; color: var(--fm-muted); }
.fm-sort-select { border: 2px solid var(--fm-border); border-radius: var(--fm-radius); padding: 6px 12px; font-size: 13px; font-family: var(--fm-font); color: var(--fm-dark); outline: none; cursor: pointer; }
.fm-sort-select:focus { border-color: var(--fm-green); }

/* === Category Nav Bar === */
.fm-cat-nav { background: #fff; border-bottom: 2px solid var(--fm-border); overflow-x: auto; }
.fm-cat-link-pill { display: inline-block; padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--fm-muted); border-bottom: 3px solid transparent; cursor: pointer; transition: all .2s; white-space: nowrap; }
.fm-cat-link-pill.active, .fm-cat-link-pill:hover { color: var(--fm-green); border-bottom-color: var(--fm-green); }

/* === Pagination === */
.fm-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.fm-page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); font-size: 14px; font-weight: 600; color: var(--fm-dark); cursor: pointer; background: #fff; transition: all .2s; }
.fm-load-more { display: flex; justify-content: center; padding: 12px 0 4px; }
.fm-load-more-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 28px; border: 2px solid var(--fm-border); border-radius: 50px; background: #fff; color: var(--fm-green); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; }
.fm-load-more-btn:hover { border-color: var(--fm-green); }
.fm-load-more-spinner { display: none; width: 18px; height: 18px; border: 2px solid var(--fm-border); border-top-color: var(--fm-green); border-radius: 50%; animation: fmLogoSpin .8s linear infinite; }
.fm-load-more.is-loading .fm-load-more-spinner { display: inline-block; }
.fm-load-more.is-loading .fm-load-more-btn { pointer-events: none; opacity: .85; }
.fm-page-btn.active, .fm-page-btn:hover { background: var(--fm-green); border-color: var(--fm-green); color: #fff; }

/* === Product Details === */
.fm-product-main-img { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--fm-green-light), var(--fm-border)); border-radius: var(--fm-radius); display: flex; align-items: center; justify-content: center; font-size: 110px; border: 2px solid var(--fm-border); overflow: hidden; }
.fm-product-main-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 16px; box-sizing: border-box; }
.fm-product-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.fm-product-thumb { width: 70px; height: 70px; background: var(--fm-green-light); border-radius: var(--fm-radius); display: flex; align-items: center; justify-content: center; font-size: 28px; border: 2px solid var(--fm-border); cursor: pointer; flex-shrink: 0; transition: border-color .2s; overflow: hidden; }
.fm-product-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; box-sizing: border-box; }
.fm-product-thumb.active, .fm-product-thumb:hover { border-color: var(--fm-green); }
.fm-product-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--fm-green); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 30px; margin-bottom: 10px; }
.fm-product-title { font-size: 28px; font-weight: 800; color: var(--fm-dark); margin-bottom: 8px; }
.fm-product-stars { color: #FFC107; font-size: 16px; }
.fm-product-rating-txt { font-size: 13px; color: var(--fm-muted); }
.fm-product-price-sale { font-size: 30px; font-weight: 800; color: var(--fm-green); }
.fm-product-price-orig { font-size: 18px; color: var(--fm-muted); text-decoration: line-through; margin-left: 8px; }
.fm-product-price-save { font-size: 12px; font-weight: 700; color: var(--fm-orange); background: var(--fm-orange-lt); padding: 2px 10px; border-radius: 30px; margin-left: 10px; }
.fm-qty-wrap { display: flex; align-items: center; gap: 0; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); overflow: hidden; width: fit-content; }
.fm-qty-btn { width: 40px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--fm-green-light); border: none; cursor: pointer; font-size: 18px; color: var(--fm-green); font-weight: 700; transition: background .2s; }
.fm-qty-btn:hover { background: var(--fm-green); color: #fff; }
.fm-qty-input { width: 50px; height: 42px; text-align: center; border: none; outline: none; font-size: 15px; font-weight: 700; font-family: var(--fm-font); color: var(--fm-dark); }
.fm-product-meta { font-size: 13px; color: var(--fm-muted); border-top: 1px solid var(--fm-border); padding-top: 16px; margin-top: 16px; }
.fm-product-meta span { font-weight: 700; color: var(--fm-dark); }
.fm-tabs { border-bottom: 2px solid var(--fm-border); display: flex; gap: 4px; margin-bottom: 24px; }
.fm-tab-btn { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--fm-muted); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; font-family: var(--fm-font); transition: all .2s; }
.fm-tab-btn.active { color: var(--fm-green); border-bottom-color: var(--fm-green); }
.fm-tab-content { display: none; }
.fm-tab-content.show { display: block; }
.fm-review-card { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); padding: 18px; margin-bottom: 14px; }
.fm-review-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--fm-green), #4CAF50); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; flex-shrink: 0; }
.fm-product-form .size-lists { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.fm-product-form .size-lists li { padding: 6px 16px; border: 1.5px solid var(--fm-border); border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--fm-muted); transition: all .2s; }
.fm-product-form .size-lists li:hover, .fm-product-form .size-lists li.active { border-color: var(--fm-green); color: var(--fm-green); background: var(--fm-green-light); }
.fm-product-form .size-lists li.disabled { opacity: .45; pointer-events: none; }
.fm-product-form .color-list li { width: 28px; height: 28px; border-radius: 50%; padding: 0; }
.fm-product-form .input-title { font-size: 13px; font-weight: 700; color: var(--fm-dark); display: block; margin-bottom: 8px; }
.fm-product-form .form--input { display: none; }
.fm-tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--fm-border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.fm-tab-nav::-webkit-scrollbar { display: none; }
.fm-tab-nav-btn { padding: 12px 24px; font-size: 14px; font-weight: 700; color: var(--fm-muted); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; font-family: inherit; transition: all .2s; }
.fm-tab-nav-btn.active { color: var(--fm-green); border-bottom-color: var(--fm-green); }
.fm-tab-panel { display: none; }
.fm-tab-panel.active { display: block; }

/* === Cart & Checkout === */
.fm-cart-wrap { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); overflow: hidden; }
.fm-cart-table { width: 100%; border-collapse: collapse; }
.fm-cart-table th { background: var(--fm-green-light); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--fm-dark); padding: 14px 16px; border-bottom: 2px solid var(--fm-border); }
.fm-cart-table td { padding: 16px; border-bottom: 1px solid var(--fm-border); vertical-align: middle; font-size: 14px; color: var(--fm-dark); }
.fm-cart-table tr:last-child td { border-bottom: none; }
.fm-cart-img { width: 60px; height: 60px; background: var(--fm-green-light); border-radius: var(--fm-radius); display: flex; align-items: center; justify-content: center; font-size: 28px; border: 2px solid var(--fm-border); overflow: hidden; flex-shrink: 0; }
.fm-cart-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; box-sizing: border-box; }
.fm-cart-name { font-weight: 600; color: var(--fm-dark); }
.fm-cart-variant { font-size: 12px; color: var(--fm-muted); }
.fm-remove-btn { background: none; border: none; color: var(--fm-muted); font-size: 18px; cursor: pointer; transition: color .2s; padding: 4px; border-radius: 4px; }
.fm-remove-btn:hover { color: #D32F2F; background: #FFEBEE; }
.fm-order-summary { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); overflow: hidden; }
.fm-summary-head { background: var(--fm-green); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 20px; }
.fm-summary-body { padding: 20px; }
.fm-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--fm-border); font-size: 14px; }
.fm-summary-row:last-child { border-bottom: none; }
.fm-summary-row .label { color: var(--fm-muted); }
.fm-summary-row .value { font-weight: 600; color: var(--fm-dark); }
.fm-summary-price { font-weight: 600; color: var(--fm-dark); }
.fm-summary-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; border-top: 2px solid var(--fm-green); margin-top: 4px; }
.fm-summary-total .label { font-size: 16px; font-weight: 800; color: var(--fm-dark); }
.fm-summary-total .value { font-size: 22px; font-weight: 800; color: var(--fm-green); }
.fm-coupon-input { flex: 1; padding: 10px 14px; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); font-size: 13px; font-family: var(--fm-font); outline: none; }
.fm-coupon-input:focus { border-color: var(--fm-green); }

/* Checkout form fields */
.fm-form-card { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); padding: 28px; margin-bottom: 20px; }
.fm-form-section-title { font-size: 17px; font-weight: 700; color: var(--fm-dark); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--fm-border); display: flex; align-items: center; gap: 8px; }
.fm-label { display: block; font-size: 13px; font-weight: 600; color: var(--fm-dark); margin-bottom: 6px; }
.fm-input { width: 100%; padding: 10px 14px; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); font-size: 14px; font-family: var(--fm-font); color: var(--fm-dark); background: #fff; outline: none; transition: border-color .2s; }
.fm-input:focus { border-color: var(--fm-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fm-green) 8%, transparent); }
.fm-input::placeholder { color: var(--fm-muted); }
.fm-select { width: 100%; padding: 10px 14px; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); font-size: 14px; font-family: var(--fm-font); color: var(--fm-dark); background: #fff; outline: none; cursor: pointer; }
.fm-select:focus { border-color: var(--fm-green); }
/* Shared state-city-input component overrides */
.label-title { display: block; font-size: 13px; font-weight: 600; color: var(--fm-dark); margin-bottom: 6px; }
.form--control { width: 100%; padding: 10px 14px; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); font-size: 14px; font-family: var(--fm-font); color: var(--fm-dark); background: #fff; outline: none; transition: border-color .2s; }
.form--control:focus { border-color: var(--fm-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fm-green) 8%, transparent); }
.form--control::placeholder { color: var(--fm-muted); }
.single-input { width: 100%; }
.live-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 2px solid var(--fm-green); border-top: none; border-radius: 0 0 var(--fm-radius) var(--fm-radius); max-height: 200px; overflow-y: auto; z-index: 999; }
.live-dropdown div, .live-dropdown li { padding: 9px 14px; font-size: 13px; color: var(--fm-dark); cursor: pointer; list-style: none; border-bottom: 1px solid var(--fm-border); }
.live-dropdown div:last-child, .live-dropdown li:last-child { border-bottom: none; }
.live-dropdown div:hover, .live-dropdown li:hover { background: var(--fm-green-light); color: var(--fm-green); }
.fm-checkout-summary { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); overflow: hidden; position: sticky; top: 20px; }
.fm-checkout-summary-head { background: var(--fm-green); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 20px; }
.fm-checkout-summary-body { padding: 20px; }
.fm-mini-cart-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--fm-border); }
.fm-mini-cart-row:last-child { border-bottom: none; }
.fm-mini-cart-img { width: 40px; height: 40px; border-radius: var(--fm-radius-sm); background: var(--fm-green-light); overflow: hidden; flex-shrink: 0; border: 1px solid var(--fm-border); }
.fm-mini-cart-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; box-sizing: border-box; }
.fm-section-box { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); padding: 24px; margin-bottom: 20px; }
.fm-section-box-title { font-size: 16px; font-weight: 700; color: var(--fm-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--fm-border); padding-bottom: 12px; }

/* === Auth Pages === */
.fm-auth-card { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); padding: 40px 36px; }
.fm-auth-header { text-align: center; margin-bottom: 28px; }
.fm-auth-logo { max-height: 48px; margin: 0 auto 16px; }
.fm-auth-title { font-size: 24px; font-weight: 800; color: var(--fm-dark); margin-bottom: 6px; }
.fm-auth-sub { font-size: 14px; color: var(--fm-muted); margin-bottom: 0; line-height: 1.6; }
.fm-auth-switch { text-align: center; font-size: 13px; color: var(--fm-muted); margin-top: 20px; }
.fm-auth-switch a { color: var(--fm-green); font-weight: 700; }
.fm-form-group { margin-bottom: 18px; }
.fm-required { color: var(--fm-orange); }
.fm-input-wrap { position: relative; }
.fm-input-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--fm-muted); font-size: 18px; padding: 0; }
.fm-forgot { color: var(--fm-green); font-weight: 600; font-size: 13px; }
.fm-forgot:hover { color: var(--fm-green-deep); }
.fm-remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13px; }
.fm-remember-label { display: flex; align-items: center; gap: 6px; color: var(--fm-muted); font-weight: 500; cursor: pointer; }
.fm-remember-label input { accent-color: var(--fm-green); }
.fm-generate-pwd { font-size: 12px; color: var(--fm-green); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.fm-terms-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--fm-muted); }
.fm-terms-check input { accent-color: var(--fm-green); margin-top: 2px; }
.fm-terms-check a { color: var(--fm-green); font-weight: 600; }

/* === Blog === */
.fm-blog-card { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); overflow: hidden; transition: box-shadow .2s; height: 100%; }
.fm-blog-card:hover { box-shadow: 0 8px 30px color-mix(in srgb, var(--fm-green) 12%, transparent); }
.fm-blog-thumb { background: linear-gradient(135deg, var(--fm-green-light), var(--fm-border)); display: flex; align-items: center; justify-content: center; font-size: 72px; height: 200px; overflow: hidden; }
.fm-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fm-blog-body { padding: 22px; }
.fm-blog-cat-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--fm-green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 12px; border-radius: 30px; margin-bottom: 10px; }
.fm-blog-title { font-size: 18px; font-weight: 700; color: var(--fm-dark); margin-bottom: 10px; line-height: 1.3; }
.fm-blog-title a { color: var(--fm-dark); }
.fm-blog-title a:hover { color: var(--fm-green); }
.fm-blog-excerpt { font-size: 14px; color: var(--fm-muted); line-height: 1.7; margin-bottom: 16px; }
.fm-blog-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--fm-muted); flex-wrap: wrap; }
.fm-blog-meta span { display: flex; align-items: center; gap: 4px; }
.fm-read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--fm-green); transition: gap .2s; }
.fm-read-more:hover { gap: 10px; color: var(--fm-green-deep); }
.fm-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-tag { display: inline-block; background: var(--fm-green-light); border: 1.5px solid var(--fm-border); color: var(--fm-muted); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 30px; transition: all .2s; }
.fm-tag:hover { background: var(--fm-green); border-color: var(--fm-green); color: #fff; }
.fm-cat-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--fm-border); font-size: 14px; color: var(--fm-dark); font-weight: 500; transition: color .2s; }
.fm-cat-link:last-child { border-bottom: none; }
.fm-cat-link:hover, .fm-cat-link.active { color: var(--fm-green); font-weight: 700; }

/* Blog article */
.fm-article { background: #fff; border: 2px solid var(--fm-border); border-radius: var(--fm-radius); overflow: hidden; }
.fm-article-hero { height: 380px; background: linear-gradient(135deg, var(--fm-green-light), var(--fm-border)); display: flex; align-items: center; justify-content: center; font-size: 80px; overflow: hidden; }
.fm-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.fm-article-body { padding: 32px; }
.fm-article-cat { display: inline-block; background: var(--fm-green); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 30px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.fm-article-title { font-size: 28px; font-weight: 800; color: var(--fm-dark); margin-bottom: 14px; line-height: 1.3; }
.fm-article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--fm-muted); margin-bottom: 24px; flex-wrap: wrap; }
.fm-article-meta span { display: flex; align-items: center; gap: 5px; }
.fm-article-meta a { color: var(--fm-muted); }
.fm-article-content { font-size: 15px; line-height: 1.8; color: var(--fm-dark); }
.fm-post-share { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 2px solid var(--fm-border); }
.fm-comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--fm-border); }
.fm-comment:last-child { border-bottom: none; }
.fm-comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--fm-green-light); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--fm-green); flex-shrink: 0; overflow: hidden; }
.fm-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fm-comment-name { font-size: 14px; font-weight: 700; color: var(--fm-dark); }
.fm-comment-date { font-size: 12px; color: var(--fm-muted); margin-bottom: 6px; }
.fm-comment-text { font-size: 14px; color: var(--fm-dark); line-height: 1.6; margin: 0; }
.fm-reply-btn { background: none; border: none; color: var(--fm-green); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }

/* === Responsive === */
@media (max-width: 767px) {
  .fm-product-title { font-size: 22px; }
  .fm-product-price-sale { font-size: 24px; }
  .fm-article-hero { height: 240px; }
  .fm-article-title { font-size: 22px; }
  .fm-newsletter-inner { padding: 48px 0; }
  .fm-newsletter-form { border-radius: 12px; }
  .fm-newsletter-form input { border-radius: 12px 0 0 12px; }
  .fm-newsletter-form button { border-radius: 0 12px 12px 0; }
  .fm-auth-card { padding: 28px 20px; }
}

/* ---- Widget Section Wrappers ---- */
.fm-hero-widget { background: linear-gradient(135deg, var(--fm-green-light) 0%, color-mix(in srgb, var(--fm-green-light) 88%, white) 100%); padding: 70px 0; overflow: hidden; }
.fm-category-grid-widget { padding: 64px 0; }
.fm-featured-products-widget { padding: 72px 0; }
.fm-newsletter-section { background: var(--fm-bg); padding: 80px 0; }

/* ---- Hero ---- */
.fm-hero-badge { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--fm-green); color: var(--fm-green); font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 50px; background: transparent; }
.fm-hero-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: var(--fm-dark); line-height: 1.15; margin-bottom: 18px; }
.fm-hero-title span { color: var(--fm-green); }
.fm-hero-title em { color: var(--fm-green); font-style: normal; }
.fm-hero-sub { font-size: 15px; color: var(--fm-muted); line-height: 1.7; margin-bottom: 28px; max-width: 460px; }
.fm-hero-img-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.fm-hero-img-circle {
    width: 520px;
    aspect-ratio: 1/1;
    overflow: hidden;

    /* Blob Shape */
    border-radius: 58% 42% 35% 65% / 42% 35% 65% 58%;

    background: #f5f5f5;
    box-shadow: 0 30px 60px rgba(0,0,0,.12);

    position: relative;
}
.fm-hero-img-circle img { width: 100%; height: 100%; object-fit: cover; }
/* Hero slideshow: photos stacked in the same frame, crossfading with a slow zoom (main.js). */
.fm-hero-slides { position: relative; cursor: pointer; }
.fm-hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.fm-hero-slide.is-on { opacity: 1; }
.fm-hero-slide img { transform: scale(1); transition: transform 4.5s ease-out; }
.fm-hero-slide.is-on img { transform: scale(1.07); }
.fm-hero-slide figcaption { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); max-width: 80%; padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.92); color: var(--fm-green); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.fm-hero-dots { position: absolute; left: 0; right: 0; bottom: -18px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.fm-hero-dots span { width: 7px; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--fm-green) 25%, #fff); transition: width .3s, background .3s; }
.fm-hero-dots span.is-on { width: 20px; background: var(--fm-green); }
@media (prefers-reduced-motion: reduce) { .fm-hero-slide, .fm-hero-slide img { transition: none; } .fm-hero-slide.is-on img { transform: none; } }
@media (max-width: 575.98px) { .fm-hero-slide figcaption { font-size: 12px; padding: 4px 10px; bottom: 12%; max-width: 88%; } }
.fm-hero-img-placeholder { background: var(--fm-green-light); display: flex; align-items: center; justify-content: center; font-size: 100px; color: var(--fm-green); opacity: .4; }
.fm-hero-deco { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: color-mix(in srgb, var(--fm-green) 7%, transparent); z-index: 1; right: -30px; bottom: -20px; }
.fm-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fm-hero-stat { background: #fff; border: 1.5px solid var(--fm-border); border-radius: var(--fm-radius); padding: 14px 18px; }
.fm-hero-stat-value { font-size: 22px; font-weight: 800; color: var(--fm-dark); line-height: 1; margin-bottom: 4px; }
.fm-hero-stat-label { font-size: 12px; color: var(--fm-muted); }

/* Animated logo, shown in the hero instead of the photo when the shop sets one */
.fm-hero-logo { --fm-lime: #8cc63f; position: relative; width: min(440px, 84vw); aspect-ratio: 1; margin-inline: auto; z-index: 2; }
.fm-hero-logo-glow { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--fm-green) 26%, transparent) 0%, transparent 68%); animation: fmLogoPulse 5s ease-in-out infinite; }
.fm-hero-logo-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.fm-hero-logo-ring--dashed { inset: 7%; border: 2px dashed color-mix(in srgb, var(--fm-green) 35%, transparent); animation: fmLogoSpin 48s linear infinite; }
.fm-hero-logo-ring--arc { inset: 2%; background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in srgb, var(--fm-lime) 70%, transparent) 80%, var(--fm-green) 92%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: fmLogoSpin 7s linear infinite; }
.fm-hero-logo-orbit { position: absolute; inset: 0; animation: fmLogoSpin 30s linear infinite reverse; }
.fm-hero-logo-spark { position: absolute; translate: -50% -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--fm-green) 55%, transparent); animation: fmLogoSpin 30s linear infinite; }
.fm-hero-logo-spark i { font-style: normal; font-weight: 800; font-size: 22px; line-height: 1; color: var(--fm-green); animation: fmLogoTwinkle 2.4s ease-in-out infinite var(--d, 0s); }
.fm-hero-logo-spark--1 i { color: var(--fm-lime); }
.fm-hero-logo-spark--2 i { color: var(--fm-orange, #f59e0b); }
.fm-hero-logo-card { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #fff 55%, color-mix(in srgb, var(--fm-green-light) 70%, #fff) 100%); box-shadow: 0 34px 60px -28px color-mix(in srgb, var(--fm-green) 60%, transparent), 0 0 0 10px color-mix(in srgb, #fff 70%, transparent); display: grid; place-items: center; overflow: hidden; animation: fmLogoIn .9s cubic-bezier(.2, .9, .3, 1.25) both, fmLogoFloat 6s ease-in-out .9s infinite; }
.fm-hero-logo-img { width: 76%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .12)); }
.fm-hero-logo-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%); transform: translateX(-130%); animation: fmLogoShine 6s ease-in-out 1.6s infinite; }
/* On the brand's green (promo banner) the rings and glow turn light so they still read. */
.fm-hero-logo--on-dark { width: min(380px, 80vw); }
.fm-hero-logo--on-dark .fm-hero-logo-glow { background: radial-gradient(circle, rgba(255, 255, 255, .28) 0%, transparent 68%); }
.fm-hero-logo--on-dark .fm-hero-logo-ring--dashed { border-color: rgba(255, 255, 255, .45); }
.fm-hero-logo--on-dark .fm-hero-logo-ring--arc { background: conic-gradient(from 0deg, transparent 0 62%, rgba(255, 255, 255, .55) 80%, var(--fm-lime) 92%, transparent 100%); }
.fm-hero-logo--on-dark .fm-hero-logo-card { box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .45), 0 0 0 10px rgba(255, 255, 255, .18); }
.fm-hero-logo--on-dark .fm-hero-logo-spark { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); }
@keyframes fmLogoSpin { to { rotate: 360deg; } }
@keyframes fmLogoPulse { 0%, 100% { scale: .94; opacity: .75; } 50% { scale: 1.04; opacity: 1; } }
@keyframes fmLogoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes fmLogoIn { from { opacity: 0; scale: .6; filter: blur(6px); } to { opacity: 1; scale: 1; filter: none; } }
@keyframes fmLogoTwinkle { 0%, 100% { scale: .8; opacity: .7; } 50% { scale: 1.15; opacity: 1; } }
@keyframes fmLogoShine { 0%, 60% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) {
    .fm-hero-logo *, .fm-hero-logo *::before { animation: none !important; }
}
@media (max-width: 575px) {
    .fm-hero-logo-spark { width: 28px; height: 28px; }
    .fm-hero-logo-spark i { font-size: 18px; }
}

/* ---- Category extras ---- */
.fm-cat-icon-fallback { font-size: 32px; color: var(--fm-green); }

/* ---- Product image placeholder ---- */
.fm-img-ph-icon { font-size: 56px; color: var(--fm-green); opacity: .4; }

/* ---- Empty states ---- */
.fm-empty-state { text-align: center; padding: 40px 0; color: var(--fm-muted); }

/* ---- Promo Banner Widget ---- */
.fm-promo-banner-widget { background: var(--fm-green); padding: 70px 0; }
.fm-promo-banner-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.fm-promo-banner-text { font-size: 15px; color: #fff; line-height: 1.7; margin-bottom: 28px; max-width: 520px; }
.fm-promo-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fm-promo-banner-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--fm-green-deep); font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: var(--fm-radius-sm); text-decoration: none; transition: background .2s, color .2s; }
.fm-promo-banner-btn-primary:hover { background: var(--fm-green-light); color: var(--fm-green-deep); }
.fm-promo-banner-btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; font-weight: 600; font-size: 14px; padding: 11px 24px; border-radius: var(--fm-radius-sm); border: 2px solid rgba(255,255,255,.7); text-decoration: none; transition: border-color .2s, background .2s; }
.fm-promo-banner-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.fm-promo-banner-icons { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.fm-promo-emoji { font-size: 72px; line-height: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
.fm-promo-emoji-mid { font-size: 90px; transform: translateY(-12px); }

/* Global Footer Widget Colors */
.fm-footer h6 { color: var(--fm-green); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.fm-footer p  { color: rgba(255,255,255,.6); }
.fm-footer a  { color: rgba(255,255,255,.6); text-decoration: none; }
.fm-footer a:hover { color: var(--fm-green); }

/* ── Shop showcase: the shop's film and photos ─────────────────────────── */
.fm-showcase { padding: 48px 0; }
.fm-showcase-film { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1b2e1b; box-shadow: var(--fm-shadow); margin-bottom: 18px; }
.fm-showcase-film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-showcase-film-btn { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.fm-showcase-film:not(.is-playing) .fm-showcase-film-btn { inset-inline-end: 50%; bottom: 50%; transform: translate(50%, 50%); width: 68px; height: 68px; font-size: 30px; background: var(--fm-green); }
[dir="rtl"] .fm-showcase-film:not(.is-playing) .fm-showcase-film-btn { transform: translate(-50%, 50%); }
.fm-showcase-film-btn:hover, .fm-showcase-film-btn:focus-visible { background: var(--fm-green-deep); }
.fm-showcase-film-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.fm-showcase-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .fm-showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } .fm-showcase-film { border-radius: 22px; margin-bottom: 22px; } }
@media (min-width: 1100px) { .fm-showcase-grid { grid-template-columns: repeat(4, 1fr); } .fm-showcase-film { aspect-ratio: 21 / 9; } }
.fm-showcase-more { display: none; }
.fm-showcase.is-all .fm-showcase-more { display: block; }
.fm-showcase-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--fm-green-light); aspect-ratio: 3 / 2; }
.fm-showcase-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.fm-showcase-open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.fm-showcase-open:hover img, .fm-showcase-open:focus-visible img { transform: scale(1.05); }
.fm-showcase-open:focus-visible { outline: 3px solid var(--fm-green); outline-offset: -3px; }
.fm-showcase-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); pointer-events: none; }
.fm-showcase-all { margin-top: 16px; border: 2px solid var(--fm-green); background: #fff; color: var(--fm-green-deep); font-weight: 700; border-radius: 999px; padding: 10px 22px; cursor: pointer; }
.fm-showcase-all:hover, .fm-showcase-all:focus-visible { background: var(--fm-green); color: #fff; }

.fm-showcase-box { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.fm-showcase-box::backdrop { background: rgba(10, 16, 10, .9); }
.fm-showcase-box figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 24px; }
.fm-showcase-box img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; object-fit: contain; }
.fm-showcase-box figcaption { color: #fff; margin-top: 12px; font-weight: 600; text-align: center; }
.fm-showcase-box-close, .fm-showcase-box-nav { position: fixed; border: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; display: grid; place-items: center; cursor: pointer; }
.fm-showcase-box-close { top: 12px; inset-inline-end: 12px; }
.fm-showcase-box-nav { top: 50%; transform: translateY(-50%); }
.fm-showcase-box-nav.is-prev { inset-inline-start: 10px; }
.fm-showcase-box-nav.is-next { inset-inline-end: 10px; }
[dir="rtl"] .fm-showcase-box-nav i { transform: scaleX(-1); }
.fm-showcase-box-close:hover, .fm-showcase-box-nav:hover, .fm-showcase-box-close:focus-visible, .fm-showcase-box-nav:focus-visible { background: var(--fm-green); }
@media (prefers-reduced-motion: reduce) { .fm-showcase-open img { transition: none; } }

/* ── Category intro: a made-to-order category opens with what the shop makes and how to book ── */
.fm-catintro { padding: 22px 0 0; }
.fm-catintro-card { background: #fff; border: 1px solid var(--fm-border); border-radius: 20px; overflow: hidden; box-shadow: var(--fm-shadow); display: grid; grid-template-columns: minmax(0, 1fr); }
.fm-catintro-media { display: grid; gap: 4px; background: var(--fm-green-light); min-width: 0; overflow: hidden; }
/* The frame sets its own shape; each photo only fills its cell. Safari grows a grid row to an
   image's own aspect ratio, so the photos carry none of their own. */
.fm-catintro-media img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; display: block; }
.fm-catintro-media--1 { aspect-ratio: 4 / 3; }
.fm-catintro-media--2 { aspect-ratio: 2 / 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-catintro-media--3 { aspect-ratio: 3 / 2; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.fm-catintro-media--3 img:first-child { grid-row: 1 / span 2; }
.fm-catintro-media--4 { aspect-ratio: 1 / 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.fm-catintro-body { padding: 22px 20px 24px; min-width: 0; overflow-wrap: anywhere; }
.fm-catintro-eye { display: inline-block; background: var(--fm-green-light); color: var(--fm-green-deep); font-weight: 800; font-size: 13px; padding: 5px 14px; border-radius: 999px; }
.fm-catintro-title { font-size: 25px; font-weight: 900; color: var(--fm-dark); line-height: 1.2; margin: 12px 0 8px; }
.fm-catintro-text { color: var(--fm-muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.fm-catintro-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.fm-catintro-points li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; font-weight: 600; color: var(--fm-dark); }
.fm-catintro-points i { color: var(--fm-green); font-size: 21px; line-height: 1.2; flex-shrink: 0; }
.fm-catintro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-catintro-wa, .fm-catintro-call { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 20px; font-weight: 800; font-size: 15.5px; text-decoration: none; min-height: 48px; }
.fm-catintro-wa { background: #128c4a; color: #fff; flex: 1 1 auto; justify-content: center; }
.fm-catintro-wa i { font-size: 22px; }
.fm-catintro-wa:hover, .fm-catintro-wa:focus-visible { background: #0d6e3a; color: #fff; }
.fm-catintro-call { border: 2px solid var(--fm-green); color: var(--fm-green-deep); background: #fff; justify-content: center; }
.fm-catintro-call:hover, .fm-catintro-call:focus-visible { background: var(--fm-green-light); color: var(--fm-green-deep); }
.fm-catintro a:focus-visible { outline: 3px solid var(--fm-green-deep); outline-offset: 2px; }
@media (min-width: 992px) {
  .fm-catintro { padding-top: 32px; }
  .fm-catintro-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .fm-catintro-body { padding: 34px 38px; align-self: center; }
  .fm-catintro-title { font-size: 34px; }
  .fm-catintro-wa { flex: 0 0 auto; }
}

.fm-showcase-end { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 14px 16px; background: linear-gradient(transparent 45%, rgba(10, 30, 15, .45)); }
.fm-showcase-end[hidden] { display: none; }
.fm-showcase-film.is-ended .fm-showcase-film-btn { display: none; }
.fm-showcase-end-go, .fm-showcase-end-again { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; }
.fm-showcase-end-go { background: var(--fm-green); color: #fff; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .4); }
.fm-showcase-end-go:hover, .fm-showcase-end-go:focus-visible { background: var(--fm-green-deep); color: #fff; }
[dir="rtl"] .fm-showcase-end-go i { transform: none; }
[dir="ltr"] .fm-showcase-end-go i { transform: scaleX(-1); }
.fm-showcase-end-again { background: rgba(255, 255, 255, .95); color: var(--fm-green-deep); }
.fm-showcase-end-go:focus-visible, .fm-showcase-end-again:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 575.98px) {
  .fm-showcase-end { padding-bottom: 10px; gap: 8px; }
  .fm-showcase-end-go, .fm-showcase-end-again { min-height: 42px; padding: 8px 16px; font-size: 14px; }
}

/* ── Hero, full width: the shop's photos behind the words ─────────────── */
.fm-herofull { position: relative; overflow: hidden; color: #fff; min-height: 560px; display: flex; align-items: center; background: var(--fm-green-deep); isolation: isolate; }
.fm-herofull-media { position: absolute; inset: 0; z-index: -2; }
.fm-herofull-media .fm-hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.fm-herofull-media .fm-hero-slide.is-on { opacity: 1; }
.fm-herofull-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.fm-herofull-media .fm-hero-slide.is-on img { animation: fm-herofull-drift 9s ease-out both; }
@keyframes fm-herofull-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
/* The words sit on the reading side: the shade is deepest there and clears toward the photo. */
.fm-herofull-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(9, 38, 19, .88) 0%, rgba(9, 38, 19, .72) 38%, rgba(9, 38, 19, .18) 72%, rgba(9, 38, 19, .05) 100%); }
[dir="ltr"] .fm-herofull-shade { background: linear-gradient(to right, rgba(9, 38, 19, .88) 0%, rgba(9, 38, 19, .72) 38%, rgba(9, 38, 19, .18) 72%, rgba(9, 38, 19, .05) 100%); }
.fm-herofull-inner { position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.fm-herofull-copy { max-width: 600px; }
.fm-herofull-eye { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.fm-herofull-title { color: #fff; font-weight: 900; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.08; margin: 18px 0 14px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.fm-herofull-title em, .fm-herofull-title span { font-style: normal; color: #b9ec7a; }
.fm-herofull-sub { color: rgba(255, 255, 255, .92); font-size: 18px; line-height: 1.65; margin: 0 0 26px; max-width: 520px; }
.fm-herofull-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fm-herofull-go, .fm-herofull-alt { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; transition: transform .15s ease, background .2s ease; }
.fm-herofull-go { background: #fff; color: var(--fm-green-deep); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
.fm-herofull-go:hover, .fm-herofull-go:focus-visible { background: #eaf7d8; color: var(--fm-green-deep); transform: translateY(-1px); }
.fm-herofull-alt { color: #fff; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.fm-herofull-alt:hover, .fm-herofull-alt:focus-visible { background: rgba(255, 255, 255, .16); color: #fff; }
.fm-herofull-go i, .fm-herofull-alt i { font-size: 21px; }
.fm-herofull a:focus-visible { outline: 3px solid #b9ec7a; outline-offset: 3px; }
.fm-herofull-facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fm-herofull-facts li { display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 16px; min-width: 120px; }
.fm-herofull-facts b { font-size: 19px; font-weight: 900; color: #fff; direction: ltr; unicode-bidi: plaintext; }
.fm-herofull-facts span { font-size: 13px; color: rgba(255, 255, 255, .85); }
@media (min-width: 1200px) { .fm-herofull { min-height: 600px; } }
/* A phone: the photo above, the words at the foot of the frame on a shade rising from below. */
@media (max-width: 767.98px) {
  .fm-herofull { min-height: 0; align-items: flex-end; }
  .fm-herofull-copy { max-width: none; }
  .fm-herofull-shade, [dir="ltr"] .fm-herofull-shade { background: linear-gradient(to top, rgba(9, 38, 19, .95) 0%, rgba(9, 38, 19, .82) 42%, rgba(9, 38, 19, .25) 72%, rgba(9, 38, 19, 0) 100%); }
  .fm-herofull-inner { padding-top: 150px; padding-bottom: 22px; }
  .fm-herofull-title { font-size: 34px; font-weight: 800; margin: 12px 0 8px; }
  .fm-herofull-sub { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
  .fm-herofull-cta { flex-direction: column; gap: 10px; }
  .fm-herofull-go, .fm-herofull-alt { width: 100%; min-height: 52px; font-size: 16px; }
  .fm-herofull-facts { margin-top: 16px; gap: 8px; flex-wrap: nowrap; }
  .fm-herofull-facts li { min-width: 0; flex: 1 1 0; padding: 8px 10px; }
  .fm-herofull-facts b { font-size: 15px; }
  .fm-herofull-facts span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-herofull-media .fm-hero-slide { transition: none; }
  .fm-herofull-media .fm-hero-slide.is-on img { animation: none; }
}
