/* ============================================================
   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: cover; 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-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; }
.fm-card-img img { width: 100%; height: 100%; object-fit: cover; 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; }
.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,.4); }
.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; 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 === */
.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-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: cover; }
.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: cover; }
.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: cover; }
.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: cover; }
.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; }
.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); }

/* ---- 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: rgba(255,255,255,.85); 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); }
