/*!
 * From Mars theme: styles for WordPress and WooCommerce block markup.
 * Tokens and shared components (cards, rails, badges, buttons) come from fm-components.css,
 * which is generated from the design preview so both always match.
 */

body { padding-bottom: 0; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-block-start: 0; }

/* ---------- Announcement ---------- */
.fm-announce { background: var(--fm-ink); color: #EFEAF6; font-size: 0.8125rem; padding-block: 9px; }
.fm-announce p { margin: 0; }
.fm-announce a { color: #CFC6F5; }

/* ---------- Header ---------- */
.fm-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.94);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
@media (min-width: 601px) { .admin-bar .fm-site-header { top: var(--wp-admin--admin-bar--height, 32px); } }
.fm-site-header.is-scrolled { border-bottom-color: var(--fm-line); box-shadow: 0 10px 24px -22px rgba(31, 29, 33, 0.6); }
.fm-site-header__row { min-height: 68px; gap: 12px 20px !important; }
.fm-brand { margin: 0; line-height: 1; }
.fm-brand a { display: inline-flex; align-items: center; gap: 8px; color: var(--fm-ink); text-decoration: none; text-transform: lowercase; white-space: nowrap; }
.fm-brand a::before { content: ""; width: 30px; height: 30px; flex: none; background: url("../images/mark.svg") center / contain no-repeat; }
.fm-site-search { flex: 1 1 260px; max-width: 560px; margin: 0 !important; }
.fm-site-search .wp-block-search__inside-wrapper { border: 1.5px solid var(--fm-line); border-radius: var(--fm-r-pill); background: var(--fm-surface); padding: 4px; }
.fm-site-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--fm-lav-700); box-shadow: 0 0 0 3px var(--fm-lav-200); }
.fm-site-search .wp-block-search__input { border: 0; background: transparent; min-height: 40px; padding: 0 14px; font-size: 0.9375rem; color: var(--fm-ink); }
.fm-site-search .wp-block-search__input:focus { outline: none; }
.fm-site-search .wp-block-search__button { margin: 0; border: 0; border-radius: var(--fm-r-pill); background: var(--fm-ink); color: #fff; min-width: 40px; min-height: 40px; padding: 0 12px; }
.fm-site-search .wp-block-search__button svg { fill: currentColor; }
.fm-site-header__actions { gap: 2px !important; }
.fm-site-header__actions .wc-block-mini-cart__button,
.fm-site-header__actions .wc-block-customer-account a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border-radius: var(--fm-r-pill); color: var(--fm-ink); padding: 0 8px;
}
.fm-site-header__actions .wc-block-mini-cart__button:hover,
.fm-site-header__actions .wc-block-customer-account a:hover { background: var(--fm-sunken); }
.wc-block-mini-cart__badge { background: var(--fm-mars-600) !important; color: #fff !important; }
.fm-site-nav { border-top: 1px solid var(--fm-line); min-height: 48px; }
.fm-site-nav .wp-block-navigation__container { gap: 2px; }
.fm-site-nav .wp-block-navigation-item__content { padding: 8px 12px !important; border-radius: var(--fm-r-pill); }
.fm-site-nav .wp-block-navigation-item__content:hover { background: var(--fm-sunken); }
.fm-site-nav .wp-block-navigation__submenu-container {
  border: 1px solid var(--fm-line) !important; border-radius: var(--fm-r-lg); padding: 8px !important;
  box-shadow: var(--fm-shadow-3); min-width: 300px !important; background: var(--fm-surface) !important;
}
.fm-site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 10px; }
@media (max-width: 781px) {
  .fm-site-header__row { flex-wrap: wrap !important; padding-block: 8px; }
  .fm-site-search { order: 3; flex-basis: 100%; max-width: none; }
  .fm-site-nav { border-top: 0; min-height: 0; padding-bottom: 6px; }
}

/* ---------- Page layout ---------- */
.fm-page-main { padding-block: clamp(24px, 4vw, 56px); }
.fm-section { padding-block: clamp(28px, 4.2vw, 56px); }
.fm-sh { margin-bottom: clamp(18px, 2.4vw, 28px) !important; }
.fm-sh p { margin: 0; }
.fm-sh .fm-sh__sub { margin-top: 8px; }
.fm-sh__title { margin: 0; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: var(--fm-surface); color: var(--fm-ink); border: 1.5px solid var(--fm-line-strong); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--fm-ink); background: var(--fm-surface); }
.wp-block-button.is-style-light > .wp-block-button__link { background: #F6F3FF; color: #2B2348; border-color: #F6F3FF; }

/* ---------- Hero ---------- */
.fm-hero { padding-block: clamp(20px, 3.5vw, 48px) clamp(28px, 4vw, 56px); }
.fm-hero__inner { gap: clamp(24px, 4vw, 56px) !important; margin: 0; }
.fm-hero__title { font-size: var(--fm-fs-hero) !important; line-height: 0.98; letter-spacing: -0.038em; margin: 14px 0 18px; text-wrap: balance; }
.fm-hero__title mark { display: block; }
.fm-hero__stage { margin: 0; }
.fm-hero__stage img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: contain; background: var(--fm-lav-100); border-radius: var(--fm-r-xl); }
.fm-hero__ctas { margin-top: 24px; }

/* ---------- Product cards and rows (WooCommerce images) ---------- */
.fm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--fm-ease); }
.fm-card:hover .fm-card__media img { transform: scale(1.04); }
.fm-card p, .fm-card h3 { margin: 0; }
.fm-card .fm-icon, .fm-merchant .fm-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fm-price del { color: var(--fm-muted); font-size: var(--fm-fs-sm); font-weight: 500; }
.fm-price ins { text-decoration: none; }
.fm-price .amount { font-weight: 750; }
.fm-price del .amount { font-weight: 500; }
.fm-products--rail .fm-rail__nav { justify-content: flex-end; margin-bottom: 12px; }
.fm-products--rail .fm-rail__nav .fm-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fm-cat__art img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.fm-btn.is-added { box-shadow: 0 0 0 3px var(--fm-success-bg); }
.fm-picks__note { margin-top: 24px; font-size: var(--fm-fs-sm); color: var(--fm-muted); }

/* ---------- Collections ---------- */
.fm-bento-wp { display: grid !important; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.fm-bento-wp > .fm-col { position: relative; display: block; margin: 0 !important; min-height: 260px; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--fm-r-xl); overflow: hidden; }
.fm-col--sand { background: var(--fm-tone-sand); }
.fm-col--sky { background: var(--fm-tone-sky); }
.fm-col--sage { background: var(--fm-tone-sage); }
.fm-col--lavender { background: var(--fm-tone-lavender); }
.fm-col--coral { background: var(--fm-tone-coral); }
.fm-bento-wp .fm-col__title { margin: 0; position: relative; z-index: 1; }
.fm-bento-wp .fm-col__title a { color: inherit; text-decoration: none; }
.fm-bento-wp .fm-col__title a::after { content: ""; position: absolute; inset: calc(-1 * clamp(18px, 2.4vw, 28px)); z-index: 2; }
.fm-bento-wp .fm-col__title a:focus-visible { outline: none; }
.fm-bento-wp .fm-col:focus-within { outline: 2.5px solid var(--fm-focus); outline-offset: 3px; }
.fm-bento-wp .fm-col__tag { margin: 8px 0 0; max-width: 30ch; position: relative; z-index: 1; }
.fm-bento-wp .fm-col__art { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; margin: 0; }
.fm-bento-wp .fm-col__art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
@media (min-width: 768px) {
  .fm-bento-wp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-bento-wp > .fm-col:first-child { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .fm-bento-wp { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(250px, auto)); gap: 16px; }
  .fm-bento-wp > .fm-col:first-child { grid-column: span 2; grid-row: span 2; }
  .fm-bento-wp > .fm-col:first-child .fm-col__title { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); }
  .fm-bento-wp > .fm-col:first-child .fm-col__art { height: 70%; }
}

/* ---------- Exclusive band ---------- */
.fm-exclusive.wp-block-columns { margin: 0; }
.fm-exclusive .wp-block-column { min-width: 0; }
.fm-exclusive h2, .fm-exclusive .fm-lead { color: var(--fm-ink); }

/* ---------- Story ---------- */
.fm-story-wp { gap: clamp(24px, 4vw, 56px) !important; }
.fm-story__img { margin: 0; }
.fm-story__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--fm-r-xl); }
.fm-values-wp { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.fm-values-wp li { position: relative; padding-left: 30px; color: var(--fm-ink-2); }
.fm-values-wp li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--fm-mars-500); box-shadow: 0 0 0 4px var(--fm-lav-100); }

/* ---------- Footer ---------- */
.fm-site-footer { background: #1F1D21; color: #ECE7F5; margin-top: clamp(40px, 6vw, 80px); padding-block: clamp(40px, 6vw, 64px) 28px; }
.fm-site-footer a { color: #ECE7F5; }
.fm-site-footer .fm-brand a { color: #F6F3FF; }
.fm-site-footer__title { font-family: var(--fm-font-ui) !important; font-size: 0.75rem !important; font-weight: 750 !important; letter-spacing: 0.1em; text-transform: uppercase; color: #BEB5E0; margin: 0 0 12px; }
.fm-site-footer__nav .wp-block-navigation-item__content { padding: 5px 0; }
.fm-site-footer__meta { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px !important; padding-top: 24px; font-size: 0.8125rem; color: #C7C0E2; gap: 8px 24px !important; }
.fm-site-footer__meta p { margin: 0; }

/* ---------- WooCommerce pages ---------- */
.woocommerce div.product .fm-merchant { margin-block: 16px; }
.woocommerce div.product .fm-merchant .button { width: 100%; }
.woocommerce div.product .fm-pick { margin-block: 12px; }
.woocommerce ul.products li.product .button { border-radius: var(--fm-r-pill); }
.woocommerce-product-gallery__image img { border-radius: var(--fm-r-xl); }

/* ---------- Small layout refinements ---------- */
p.fm-picks__note { display: block; max-width: 72ch; }
@media (min-width: 768px) { #picks .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fm-site-footer__nav .wp-block-navigation__container { gap: 4px; }

/* Coming soon page (WooCommerce "Coming soon" mode uses templates/coming-soon.html). */
.fm-coming-soon { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 48px 16px; box-sizing: border-box; background: radial-gradient(circle at 78% 18%, #FFFFFF 0, rgba(255,255,255,0) 42%), var(--fm-canvas, #FBF8F3); }
.fm-coming-soon .fm-brand { font-size: 1.5rem; }
.fm-coming-soon .fm-brand a { justify-content: center; }
.fm-coming-soon__title { margin: 0; font-size: clamp(2.5rem, 7vw + 1rem, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.fm-coming-soon__lead { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--fm-ink-2, #45404B); }
.fm-coming-soon__bn { margin: 0; font-family: var(--wp--preset--font-family--bangla); line-height: 1.7; color: var(--fm-muted, #625C68); }

/* Product names can be long (partner items especially), so the product page title is smaller than page titles. */
.single-product .wp-block-post-title,
.single-product h1.product_title { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.625rem); line-height: 1.1; overflow-wrap: break-word; }
