/* FontZin shared layout and palette. Loaded after legacy component styles. */
:root {
  --fz-container: 1170px;
  --fz-gap: 24px;
  --fz-gutter: clamp(16px, 3vw, 28px);
  --fz-radius: 16px;
  --fz-card-border: color-mix(in srgb, var(--fz-border) 70%, var(--fz-surface));
  --fz-card-shadow: 0 1px 2px color-mix(in srgb, var(--fz-shadow-color) 4%, transparent), 0 6px 22px color-mix(in srgb, var(--fz-shadow-color) 4%, transparent);
  --fz-card-shadow-hover: 0 12px 30px color-mix(in srgb, var(--fz-shadow-color) 10%, transparent);
  --fz-card-tint: color-mix(in srgb, var(--fz-primary) 3%, var(--fz-surface));
}
body.fz-theme { background: var(--fz-bg); color: var(--fz-text); line-height: 1.6; }
body.fz-theme *, .fz-scope, .fz-scope * { box-sizing: border-box; }
body.fz-theme img, .fz-scope img { max-width: 100%; height: auto; }
body.fz-theme :is(.fz-top,.fz-bottom,.fz-grid-container,.fz-post-content-container,.fz-page-content,.fz-product-details,.fz-footer),
.fz-shell { width: min(calc(100% - 2 * var(--fz-gutter)), var(--fz-container)); max-width: var(--fz-container); margin-inline: auto; }
body.fz-theme :is(.fz-top,.fz-bottom,.fz-footer) { padding-inline: 0; }
body.fz-theme :is(.fz-top-header,.fz-inside-header) { background: var(--fz-header); }
body.fz-theme .fz-bottom { background: var(--fz-primary); }
body.fz-theme .fz-inside-header { border-bottom: 2px solid transparent; }
body.fz-theme :is(.fz-page-content,.fz-post-content-container,.fz-product-details) { margin-block: var(--fz-block-margin, var(--fz-gap)); padding-block: 0; }
.fz-shell { padding: 0; margin-block: var(--fz-block-margin, var(--fz-gap)); clear: both; }
.fz-scope { min-height: 0; background: transparent; color: var(--fz-text); line-height: 1.6; }
body.fz-theme .fz-shell :is(.fz-page-content,.fz-product-details,.fz-grid-container),
.fz-shell .fz-scope :is(.fz-page-content,.fz-product-details),
.fz-shell > .fz-page-content,
body.fz-theme .fz-page-content .fz-page-content { width: 100%; max-width: 100%; margin-inline: 0; }
body.fz-theme :is(.fz-posts-container,.fz-product-grid), .fz-scope .fz-product-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr)); gap: var(--fz-gap); margin: 0; padding: 0;
}
body.fz-theme :is(.fz-grid-item,.fz-product-item,.fz-related-post-item),
.fz-scope :is(.fz-product-item,.fz-preview,.fz-post-meta-info,.fz-login-form,.fz-registration-form,.fz-forgot-password-form,.fz-checkout-left,.fz-checkout-right,.fz-acc-page,.fz-cart-container) {
  min-width: 0; border: 1px solid var(--fz-card-border); border-radius: var(--fz-radius); background: var(--fz-surface); box-shadow: var(--fz-card-shadow); overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.fz-scope :is(.fz-preview,.fz-post-meta-info,.fz-login-form,.fz-registration-form,.fz-forgot-password-form,.fz-checkout-left,.fz-checkout-right,.fz-acc-page,.fz-cart-container) { padding: var(--fz-block-padding, var(--fz-gap)); margin: 0 0 var(--fz-block-margin, var(--fz-gap)); }
body.fz-theme :is(.fz-preview,.fz-post-meta-info), .fz-scope.fz-preview { padding: var(--fz-block-padding, var(--fz-gap)); margin: 0 0 var(--fz-block-margin, var(--fz-gap)); border: 1px solid var(--fz-border); border-radius: var(--fz-radius); background: var(--fz-surface); box-shadow: var(--fz-shadow); }
body.fz-theme .fz-post-content-container { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: var(--fz-gap); }
body.fz-theme .fz-post-content-container > :is(.fz-content,.fz-sidebar) { width: auto; min-width: 0; margin: 0 !important; padding: 0; }
body.fz-theme .fz-post-content-container .fz-content .fz-content { margin: 0 !important; padding: 0; }
body.fz-theme .fz-related-posts { margin-inline: 0 !important; }
.fz-shell .fz-narrow { width: 100%; max-width: 560px; margin-inline: auto; }
.fz-shell .fz-narrow :is(.fz-login-form,.fz-registration-form,.fz-forgot-password-form) { width: 100%; max-width: 100%; }
body.fz-theme .fz-scope :is(.fz-checkout,.fz-account-panels), .fz-shell .fz-checkout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: var(--fz-gap); }
.fz-scope :is(.fz-checkout-left,.fz-checkout-right) { width: auto; min-width: 0; }
body.fz-theme :is(.fz-content,.fz-page-content) a:not([class]), .fz-scope a:not([class]) { color: var(--fz-primary); text-underline-offset: 3px; }
body.fz-theme :is(button,input[type=submit],input[type=button],.button,.fz-button,.fz-download-button,.fz-load-more-button),
.fz-scope :is(button,input[type=submit],input[type=button],.button,.fz-button,.fz-download-button,.fz-load-more-button) {
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--fz-primary); border-radius: 8px; background: var(--fz-primary); color: var(--fz-on-primary); font: inherit; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: background 150ms ease,border-color 150ms ease;
}
body.fz-theme :is(button,input[type=submit],.button,.fz-button,.fz-download-button):hover,
.fz-scope :is(button,input[type=submit],.button,.fz-button,.fz-download-button):hover { background: var(--fz-primary-hover); border-color: var(--fz-primary-hover); color: var(--fz-on-primary); }
body.fz-theme :is(.fz-search-btn,.fz-menu-btn) { background: transparent; border: 0; padding: 4px; }
body.fz-theme .fz-top .fz-search-form { display: flex; align-items: center; flex: 0 1 40%; width: 40%; min-width: 0;  padding: 0; overflow: hidden; border-radius: 8px; }
body.fz-theme .fz-top .fz-search-form input.search { flex: 1; width: 0; min-width: 0;   border-radius: 0;  }
body.fz-theme .fz-top .fz-search-form .fz-search-btn,
body.fz-theme .fz-top .fz-search-form .fz-search-btn:hover { flex: 0 0 auto; min-height: 0; height: auto; padding: 2px 6px; background: var(--fz-surface); color: var(--fz-text); border: 0; border-radius: 0; }
body.fz-theme .fz-top :is(.fz-logo,.fz-cart-icon,.fz-menu-btn) { flex-shrink: 0; }
body.fz-theme :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]),
.fz-scope :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]) {
  min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid var(--fz-border); border-radius: 8px; background: var(--fz-surface); color: var(--fz-text); padding: 10px 12px; font: inherit; box-shadow: none;
}
body.fz-theme :is(input,textarea,select):focus-visible, .fz-scope :is(input,textarea,select):focus-visible { border-color: var(--fz-primary); outline: 3px solid var(--fz-soft); outline-offset: 1px; }
body.fz-theme :is(a,button):focus-visible, .fz-scope :is(a,button):focus-visible { outline: 3px solid var(--fz-accent); outline-offset: 3px; }
.fz-scope :is(input[type=checkbox],input[type=radio],input[type=range]) { accent-color: var(--fz-primary); }
.fz-scope :is(.fz-login-form,.fz-registration-form,.fz-checkout-right) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select) { width: 100%; }
.fz-scope .fz-registration-form .fz-form-group { width: 100%; }
.fz-scope :is(.fz-error-messages,.fz-login-error,.fz-preview-error) { color: var(--fz-error); }
.fz-scope :is(.fz-tab-button.active,.fz-pagination .fz-current) { background: var(--fz-primary); border-color: var(--fz-primary); color: var(--fz-on-primary); }
.fz-scope table { width: 100%; border-collapse: collapse; }
.fz-scope :is(th,td) { padding: 12px; border-color: var(--fz-border); overflow-wrap: anywhere; }
.fz-scope th { background: var(--fz-soft); color: var(--fz-text); }
body.fz-theme .fz-header-full { background-color: var(--fz-header); }
body.fz-theme .fz-footer { gap: var(--fz-gap); padding-block: var(--fz-gap); }

@media (max-width: 800px) {
  :root { --fz-gap: 16px; }
  body.fz-theme .fz-post-content-container, body.fz-theme .fz-scope :is(.fz-checkout,.fz-account-panels), .fz-shell .fz-checkout { grid-template-columns: minmax(0,1fr); }
  body.fz-theme :is(.fz-posts-container,.fz-product-grid), .fz-scope .fz-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  body.fz-theme .fz-sidebar { position: static; }
  .fz-scope table { display: block; max-width: 100%; overflow-x: auto; }
  .fz-scope .fz-registration-form form { gap: 16px; }
  body.fz-theme .fz-top { gap: 12px; }
  .fz-scope :is(h1,.page-title) { font-size: clamp(24px,6vw,32px); }
}
@media (max-width: 480px) {

  body.fz-theme .fz-top { gap: 8px; }
  body.fz-theme .fz-top .fz-logo img { max-height: 50px; }
  body.fz-theme .fz-top img.fz-icon-shop { max-width: 44px; margin-right: 6px; }
  body.fz-theme .fz-top .fz-menu-btn img { width: 30px; height: 30px; max-width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  body.fz-theme *, .fz-scope * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.fz-load-products[hidden] { display: none !important; }

/* Full-width navigation background, with both menus inside one content frame. */
body.fz-theme .fz-bottom { width: 100%; max-width: none; margin-inline: 0; }
body.fz-theme .fz-bottom .fz-menu-inner {
    width: min(calc(100% - 2 * var(--fz-gutter)), var(--fz-container));
    max-width: var(--fz-container);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
body.fz-theme .fz-bottom .fz-menu-inner > .menu {
    width: auto; max-width: none; margin: 0; padding: 0; min-width: 0;
}

body.fz-theme .fz-comments { width:min(calc(100% - 2 * var(--fz-gutter)),var(--fz-container)); margin:var(--fz-gap) auto; padding:var(--fz-gap); border:1px solid var(--fz-border); border-radius:var(--fz-radius); background:var(--fz-surface); }

.fz-scope.fz-collection {margin-block:var(--fz-gap);}
body.fz-theme .fz-collection .fz-product-grid, .fz-scope.fz-collection .fz-product-grid {grid-template-columns:repeat(var(--fz-columns,4),minmax(0,1fr));}
@media(max-width:800px){body.fz-theme .fz-collection .fz-product-grid,.fz-scope.fz-collection .fz-product-grid{grid-template-columns:repeat(var(--fz-mobile-columns,2),minmax(0,1fr));}}

/* Original single-product composition: full-width gallery, then 70/30 columns. */
.fz-product-shell.fz-shell { width: 100%; max-width: none; margin: 0; }
.fz-product-shell .fz-product-gallery { width: 100%; min-width: 0; }
.fz-product-shell .fz-product-gallery .fz-slider-nav { position: static; margin: 0; }
.fz-product-shell .fz-product-gallery .fz-slider-nav button { width: 35px; min-height: 35px; padding: 0; }
.fz-product-shell.fz-shell.fz-scope .fz-product-details {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 20px;
  width: min(calc(100% - 2 * var(--fz-gutter)), var(--fz-container)); max-width: var(--fz-container);
  margin: var(--fz-block-margin, var(--fz-gap)) auto; padding: 0; align-items: start;
}
.fz-product-shell .fz-product-details .fz-product-summary { grid-column: 2; grid-row: 1; min-width: 0; width: auto; }
.fz-product-shell .fz-product-details .fz-product-description { grid-column: 1; grid-row: 1; min-width: 0; width: auto; padding: 0; }
.fz-product-shell .fz-product-description > .fz-content { margin: 0; padding: 0; }
.fz-product-shell .fz-product-reviews-inner { width: min(calc(100% - 2 * var(--fz-gutter)), var(--fz-container)); margin-inline: auto; }
@media (max-width: 767px) {
  .fz-product-shell.fz-shell.fz-scope .fz-product-details { grid-template-columns: minmax(0, 1fr); }
  .fz-product-shell .fz-product-details .fz-product-summary,
  .fz-product-shell .fz-product-details .fz-product-description { grid-column: 1; grid-row: auto; padding: 0 !important; }
}

/* Original shop/archive composition and product cards. */
.fz-catalog-shell.fz-shell { width: 100%; max-width: none; margin: 0; }
.fz-catalog-shell.fz-shell.fz-scope .fz-product-list,
.fz-catalog-shell.fz-shell.fz-scope > main > .fz-page-content {
  width: min(calc(100% - 2 * var(--fz-gutter)), var(--fz-container)); max-width: var(--fz-container); margin: 20px auto;
}
body.fz-theme .fz-product-grid, .fz-scope .fz-product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; margin: 20px 0; padding: 0 15px;
}
.fz-scope article.fz-product-item {
  border: 1px solid var(--fz-card-border); border-radius: var(--fz-radius); box-shadow: var(--fz-card-shadow);
}
.fz-scope .fz-product-thumbnail { width: 100%; height: 180px; overflow: hidden; border-bottom: 1px solid var(--fz-border); }
.fz-scope .fz-product-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fz-scope .fz-product-meta { padding: 10px 15px; text-align: center; border-top: 1px solid var(--fz-border); }
.fz-scope .fz-product-meta :is(.fz-add-to-cart-button,.fz-add-to-cart-button-one) { width: 100%; }
.fz-scope .fz-product-meta .fz-price-group { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
@media (max-width: 767px) {
  body.fz-theme .fz-product-grid, .fz-scope .fz-product-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 10px 0; padding: 0; }
  .fz-scope .fz-product-thumbnail { height: 120px; }
  .fz-scope .fz-product-meta { padding: 0 10px 10px; }
}

/* Match original header element dimensions, independent of shared form sizing. */
body.fz-theme .fz-inside-header { font-size: 16px; line-height: normal; }
body.fz-theme .fz-top { gap: 0; padding-block: 10px; }
body.fz-theme .fz-top .fz-logo img { max-height: 50px; width: auto; height: auto; }
body.fz-theme .fz-top .fz-search-form input.search {
  min-height: 0 !important;  margin: 0 10px; padding: 8px !important; border: 0 !important; box-shadow: none; font-size: 16px !important; line-height: 1.5 !important;
}
body.fz-theme .fz-top .fz-search-form .fz-search-btn { margin-top: 4px; font-size: 16px; line-height: normal; }
body.fz-theme .fz-top .fz-search-btn svg { width: 24px; height: 24px; }
body.fz-theme .fz-bottom .menu > li { padding: 8px; }
body.fz-theme .fz-top .fz-menu-btn { min-height: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 0; }
@media (max-width: 767px) {
  body.fz-theme .fz-top { width: 100%; padding: 5px 10px !important; }
  body.fz-theme .fz-top .fz-search-form { flex: 1 1 auto; width: calc(100% - 140px); }
  body.fz-theme .fz-top .fz-search-form input.search { padding: 0 !important; }
  body.fz-theme .fz-top .fz-menu-btn { margin-right: 5px; margin-top: 8px; }
  body.fz-theme .fz-top img.fz-icon-shop { max-width: none; margin-right: 12px; }
}

.fz-grid-item > .fz-grid-item-info { margin: 0; padding: 12px 15px; }
.fz-grid-item .fz-grid-item-info .fz-grid-title { margin: 0; padding: 0; font-size: 16px; line-height: 1.4; color: var(--fz-text); }
.fz-grid-item .fz-grid-item-meta[hidden] { display: none !important; }

/* Consistent crop and two-line titles for post and product grid cards. */
.fz-grid-item .fz-post-thumbnail,
.fz-product-item .fz-product-thumbnail { overflow: hidden; background-size: cover; background-position: center; }
body.fz-theme .fz-grid-item .fz-post-thumbnail img,
.fz-scope .fz-grid-item .fz-post-thumbnail img,
.fz-product-item .fz-product-thumbnail img {
  display: block;    
}
.fz-grid-item .fz-grid-item-info .fz-grid-title,
.fz-product-item .fz-product-header .fz-product-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis; white-space: normal; line-height: 1.4; max-height: 2.8em; overflow-wrap: anywhere;
}

/* Uniform 4:3 thumbnails across post and product grids. */
body.fz-theme .fz-grid-item .fz-post-thumbnail,
.fz-scope .fz-grid-item .fz-post-thumbnail,
.fz-product-item .fz-product-thumbnail {
  position: relative; width: 100%; height: auto; padding: 0; aspect-ratio: var(--fz-grid-ratio, 4 / 3); overflow: hidden;
}
body.fz-theme .fz-grid-item .fz-post-thumbnail img,
.fz-scope .fz-grid-item .fz-post-thumbnail img,
.fz-product-item .fz-product-thumbnail img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* Do not distribute spare card height above or below its thumbnail. */
body.fz-theme .fz-grid-item, .fz-scope .fz-grid-item { justify-content: flex-start; }
.fz-grid-item > .fz-post-link, .fz-product-item > .fz-product-link { display: block; }
.fz-grid-item .fz-post-thumbnail, .fz-product-item .fz-product-thumbnail { margin: 0; border: 0; border-radius: 0; }
.fz-grid-item .fz-post-thumbnail img, .fz-product-item .fz-product-thumbnail img { margin: 0; padding: 0; border: 0; border-radius: 0; }

/* Customizer controls for regular post/product grids; collection columns stay local. */
body.fz-theme .fz-posts-container,
body.fz-theme .fz-product-grid,
.fz-scope .fz-posts-container,
.fz-scope .fz-product-grid { grid-template-columns: repeat(var(--fz-grid-columns, 4), minmax(0, 1fr)); }
@media (max-width: 800px) {
  body.fz-theme .fz-posts-container,
  body.fz-theme .fz-product-grid,
  .fz-scope .fz-posts-container,
  .fz-scope .fz-product-grid { grid-template-columns: repeat(var(--fz-grid-mobile-columns, 2), minmax(0, 1fr)); }
}

/* Responsive spacing controlled from the theme Customizer. */
:root {
  --fz-block-padding: var(--fz-space-padding-desktop, 24px);
  --fz-block-margin: var(--fz-space-margin-desktop, 24px);
  --fz-gutter: var(--fz-space-gutter-desktop, 28px);
  --fz-post-grid-gap: var(--fz-space-post-gap-desktop, 24px);
  --fz-product-grid-gap: var(--fz-space-product-gap-desktop, 20px);
}
body.fz-theme .fz-posts-container, .fz-scope .fz-posts-container { gap: var(--fz-post-grid-gap); }
body.fz-theme .fz-product-grid, .fz-scope .fz-product-grid { gap: var(--fz-product-grid-gap); }
.fz-catalog-shell.fz-shell.fz-scope .fz-product-list,
.fz-catalog-shell.fz-shell.fz-scope > main > .fz-page-content { margin-block: var(--fz-block-margin); }
@media (max-width: 800px) {
  :root {
    --fz-block-padding: var(--fz-space-padding-mobile, 16px);
    --fz-block-margin: var(--fz-space-margin-mobile, 16px);
    --fz-gutter: var(--fz-space-gutter-mobile, 16px);
    --fz-post-grid-gap: var(--fz-space-post-gap-mobile, 12px);
    --fz-product-grid-gap: var(--fz-space-product-gap-mobile, 10px);
  }
}

/* Responsive button dimensions from the theme Customizer. */
:root {
  --fz-button-height: var(--fz-button-height-desktop, 44px);
  --fz-button-padding-y: var(--fz-button-padding-y-desktop, 10px);
  --fz-button-padding-x: var(--fz-button-padding-x-desktop, 18px);
  --fz-button-font-size: var(--fz-button-font-size-desktop, 16px);
  --fz-button-radius: var(--fz-button-radius-desktop, 8px);
  --fz-button-border: var(--fz-button-border-desktop, 1px);
}
body.fz-theme :is(button,input[type="submit"],input[type="button"],.button,.fz-button,.fz-download-button,.fz-load-more-button,.fz-add-to-cart-button,.fz-add-to-cart-button-one):not(:where(.fz-search-btn,.fz-menu-btn,.fz-slider-nav--prev,.fz-slider-nav--next,.fz-prev-slide,.fz-next-slide,.fz-close-modal,.fz-close-btn,.fz-modal--close,.fz-license-close,.fz-dot)) {
  min-height: var(--fz-button-height) !important;
  padding: var(--fz-button-padding-y) var(--fz-button-padding-x) !important;
  font-size: var(--fz-button-font-size) !important;
  border-radius: var(--fz-button-radius) !important;
  border-style: solid; border-color: var(--fz-primary); border-width: var(--fz-button-border) !important;
}
@media (max-width: 800px) {
  :root {
    --fz-button-height: var(--fz-button-height-mobile, 44px);
    --fz-button-padding-y: var(--fz-button-padding-y-mobile, 10px);
    --fz-button-padding-x: var(--fz-button-padding-x-mobile, 18px);
    --fz-button-font-size: var(--fz-button-font-size-mobile, 16px);
    --fz-button-radius: var(--fz-button-radius-mobile, 8px);
    --fz-button-border: var(--fz-button-border-mobile, 1px);
  }
}

/* Header controls; keep sticky positioning in normal document flow. */
:root {
  --fz-header-logo-height: var(--fz-header-logo-height-desktop, 50px);
  --fz-header-padding: var(--fz-header-padding-desktop, 10px);
  --fz-header-search-width: var(--fz-header-search-width-desktop, 40%);
  --fz-header-search-height: var(--fz-header-search-height-desktop, 42px);
  --fz-header-menu-font: var(--fz-header-menu-font-desktop, 16px);
  --fz-header-menu-padding: var(--fz-header-menu-padding-desktop, 8px);
  --fz-header-cart-size: var(--fz-header-cart-size-desktop, 32px);
  --fz-header-shop-size: var(--fz-header-shop-size-desktop, 30px);
}
body.fz-theme .fz-top { padding-block: var(--fz-header-padding) !important; }
body.fz-theme .fz-top .fz-logo img { height: var(--fz-header-logo-height); max-height: var(--fz-header-logo-height); }
body.fz-theme .fz-top .fz-search-form { flex: 0 1 var(--fz-header-search-width); width: var(--fz-header-search-width); max-width: 100%; height: var(--fz-header-search-height); }
body.fz-theme .fz-top .fz-search-form input.search { height: 100%; padding-block: 0 !important; }
body.fz-theme .fz-bottom .menu { font-size: var(--fz-header-menu-font); }
body.fz-theme .fz-bottom .menu > li { padding: var(--fz-header-menu-padding); }
body.fz-theme .fz-top #fz-cart-count { width: var(--fz-header-cart-size); min-width: var(--fz-header-cart-size); height: var(--fz-header-cart-size); padding: 0; line-height: calc(var(--fz-header-cart-size) - 2px); }
body.fz-theme .fz-top img.fz-icon-shop { height: var(--fz-header-shop-size) !important; }
body.fz-theme.fz-header-static > header { position: relative; top: 0; }
body.fz-theme.fz-header-no-search .fz-top .fz-search-form { display: none; }
body.fz-theme.fz-header-no-cart .fz-top .fz-cart-icon { display: none; }
@media (max-width: 800px) {
  :root {
    --fz-header-logo-height: var(--fz-header-logo-height-mobile, 50px);
    --fz-header-padding: var(--fz-header-padding-mobile, 5px);
    --fz-header-search-width: var(--fz-header-search-width-mobile, 100%);
    --fz-header-search-height: var(--fz-header-search-height-mobile, 34px);
    --fz-header-menu-font: var(--fz-header-menu-font-mobile, 16px);
    --fz-header-menu-padding: var(--fz-header-menu-padding-mobile, 8px);
    --fz-header-cart-size: var(--fz-header-cart-size-mobile, 28px);
    --fz-header-shop-size: var(--fz-header-shop-size-mobile, 30px);
  }
}

body.fz-theme .fz-top .fz-logo { height: var(--fz-header-logo-height); display: flex; align-items: center; }
body.fz-theme .fz-side-menu .menu a { font-size: var(--fz-header-menu-font); padding-block: var(--fz-header-menu-padding); }

/* Product detail gallery: independent of grid thumbnail settings. */
:root {
  --fz-gallery-count: var(--fz-gallery-count-desktop, 0);
  --fz-gallery-height: var(--fz-gallery-height-desktop, auto);
  --fz-gallery-ratio: var(--fz-gallery-ratio-desktop, 4 / 3);
}
.fz-product-shell .fz-product-gallery-hero { min-height: 0; padding-block: 20px; }
.fz-product-shell .fz-product-gallery .fz-product-slider .fz-slide { position: relative; height: var(--fz-gallery-height); aspect-ratio: var(--fz-gallery-ratio); min-width: 0; }
.fz-product-shell .fz-product-gallery .fz-slide img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 800px) {
  :root {
    --fz-gallery-count: var(--fz-gallery-count-mobile, 0);
    --fz-gallery-height: var(--fz-gallery-height-mobile, auto);
    --fz-gallery-ratio: var(--fz-gallery-ratio-mobile, 4 / 3);
  }
}

/* Shared presentation utilities extracted from templates. */
.fz-hidden{display:none;}
.fz-primary-text{color:var(--fz-primary);}
.fz-field-error{color:var(--fz-error); font-size:14px;}
.fz-processing-dialog{display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1001; background-color: var(--fz-surface); padding: 20px; border-radius: 8px; text-align: center;}
.fz-wide-page{padding-top: 50px;max-width: 1170px;margin: 30px auto;}
.fz-narrow-page{padding-top: 50px;max-width: 800px;margin: 30px auto;}
.fz-error-text{color:var(--fz-error);}
.fz-gallery-overlay{background: var(--fz-text-alpha-95-0);}
.fz-content-container{max-width:1170px; margin:0 auto;padding:0 20px;}
.fz-social-description{font-family: sans-serif; font-size: 15px; line-height: 1.6; color: var(--fz-text);}
.fz-social-link{color: var(--fz-primary);}
.fz-contact-section{margin: auto; padding: 40px 0;}
.fz-contact-heading{font-size: 25px;}
.fz-contact-columns{display: flex; flex-wrap: wrap; gap: 40px;}
.fz-contact-details{flex: 2; min-width: 280px;}
.fz-contact-fields{flex: 3; min-width: 280px;}
.fz-form-control{width:100%;padding:10px;}
.fz-submit-button{padding:12px 20px;}
.fz-success-text{color:var(--fz-success);}
.fz-inline{display:inline;}
.fz-full-width{width:100%;}
.fz-inline-block{display:inline-block;}
.fz-gallery-thumbnail{width:60px;height:40px;object-fit:cover;}
.fz-row-divider{border-bottom: 1px solid var(--fz-border);}
.fz-section-spacing{margin-top:40px;}
.fz-narrow-content{max-width: 800px;margin: 30px auto;}
.fz-intro-spacing{margin: 10px;}
.fz-header-actions{display:flex;align-items: center;flex:1;justify-content:flex-end;gap:15px;}
.fz-shop-icon{border-radius:5px;margin-bottom: 7px;margin-right: 12px;height: 30px!important;width: auto;}
.fz-on-primary-text{color:var(--fz-on-primary);}
[hidden]{display:none!important;}
.fz-header-full{position:relative;isolation:isolate;}
.fz-header-full > img.fz-hero-background{position:absolute!important;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;pointer-events:none;}
.fz-post-thumbnail > img.fz-thumbnail-image{width:100%;height:100%;object-fit:cover;display:block;}
.fz-grid-range{width:100%;}

[data-fz-columns="1"]{--fz-columns:1;--fz-mobile-columns:1;}
[data-fz-columns="2"]{--fz-columns:2;--fz-mobile-columns:2;}
[data-fz-columns="3"]{--fz-columns:3;--fz-mobile-columns:2;}
[data-fz-columns="4"]{--fz-columns:4;--fz-mobile-columns:2;}
[data-fz-columns="5"]{--fz-columns:5;--fz-mobile-columns:2;}
[data-fz-columns="6"]{--fz-columns:6;--fz-mobile-columns:2;}

/* Refined cards and content panels; colors remain driven by the selected theme palette. */
body.fz-theme :is(.fz-grid-item,.fz-related-post-item),
.fz-scope article.fz-product-item {
  border: 1px solid var(--fz-card-border);
  border-radius: var(--fz-radius);
  background: var(--fz-surface);
  box-shadow: var(--fz-card-shadow);
  overflow: hidden;
  transform: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
body.fz-theme .fz-grid-item > .fz-grid-item-info { padding: 16px 18px 18px; }
body.fz-theme .fz-grid-item .fz-grid-item-info .fz-grid-title,
.fz-scope .fz-product-item .fz-product-header .fz-product-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.45;
  max-height: 2.9em;
  min-height: 2.9em;
  text-align: left;
}
.fz-scope .fz-product-item .fz-product-header { margin: 0; padding: 16px 16px 12px; }
.fz-scope .fz-product-item .fz-product-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto;
  padding: 14px 16px;
  border-color: var(--fz-card-border);
  background: var(--fz-card-tint);
}
.fz-scope .fz-product-item .fz-product-meta .fz-price-group {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; flex: 1 1 auto; min-width: 0;
  gap: 2px; min-height: 44px; margin: 0; padding: 0;
}
.fz-scope .fz-product-item .fz-product-meta .fz-price-group p { margin: 0; white-space: nowrap; }
.fz-scope .fz-product-item .fz-product-meta .fz-product-regular-price { font-size: 13px; color: var(--fz-muted); }
.fz-scope .fz-product-item .fz-product-meta .fz-product-price { font-size: 18px; letter-spacing: -0.02em; }
.fz-scope .fz-product-item .fz-product-price { font-weight: 700; }
.fz-scope .fz-product-item::before, body.fz-theme .fz-grid-item::before { content: none; }
.fz-scope :is(.fz-preview,.fz-post-meta-info,.fz-login-form,.fz-registration-form,.fz-forgot-password-form,.fz-checkout-left,.fz-checkout-right,.fz-acc-page,.fz-cart-container),
body.fz-theme :is(.fz-preview,.fz-post-meta-info),
.fz-scope .fz-product-details .fz-product-summary {
  border: 1px solid var(--fz-card-border);
  border-radius: var(--fz-radius);
  background: var(--fz-surface);
  box-shadow: var(--fz-card-shadow);
  transform: none;
}
.fz-scope .fz-product-details .fz-product-summary { padding: 12px; }
.fz-scope .fz-product-details .fz-product-summary .fz-inner { gap: 8px; }
.fz-scope .fz-product-details .fz-product-summary h1 { font-size: clamp(22px,2.2vw,28px); line-height: 1.25; letter-spacing: -0.025em; }
.fz-scope .fz-product-details .fz-product-summary .fz-product-excerpt { color: var(--fz-muted); line-height: 1.65; }
.fz-scope :is(.fz-login-form,.fz-registration-form,.fz-checkout-right,.fz-edit-profile) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select) { border-radius: 10px; }
.fz-scope .fz-account-panels { border: 1px solid var(--fz-card-border); border-radius: var(--fz-radius); background: var(--fz-surface); }
.fz-scope .fz-account-tabs .fz-tab-button { border-radius: 10px; }
.fz-scope .fz-account-tabs .fz-tab-button:not(.active) { background: var(--fz-card-tint); color: var(--fz-text); }
@media (hover: hover) and (pointer: fine) {
  body.fz-theme :is(.fz-grid-item,.fz-related-post-item):hover,
  .fz-scope article.fz-product-item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--fz-primary) 25%, var(--fz-border));
    box-shadow: var(--fz-card-shadow-hover);
  }
}
@media (max-width: 800px) {
  :root { --fz-radius: 12px; }
  body.fz-theme .fz-grid-item > .fz-grid-item-info { padding: 12px; }
  .fz-scope .fz-product-item .fz-product-header { padding: 12px 12px 10px; }
  .fz-scope .fz-product-item .fz-product-meta { padding: 12px; }
  body.fz-theme .fz-grid-item .fz-grid-item-info .fz-grid-title,
  .fz-scope .fz-product-item .fz-product-header .fz-product-title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.fz-theme :is(.fz-grid-item,.fz-related-post-item),
  .fz-scope article.fz-product-item { transition: none; }
  body.fz-theme :is(.fz-grid-item,.fz-related-post-item):hover,
  .fz-scope article.fz-product-item:hover { transform: none; }
}

@media (max-width: 480px) {
  .fz-scope .fz-product-item .fz-product-meta .fz-price-group { min-height: 40px; }
  
}

/* Leave heading anchors visible below the customizable sticky header. */
body.fz-theme :is(.fz-content,.fz-page-content) :is(h1,h2,h3,h4,h5,h6)[id] {
  scroll-margin-top: calc(max(var(--fz-header-logo-height), var(--fz-header-search-height), var(--fz-header-cart-size), var(--fz-header-shop-size)) + 2 * var(--fz-header-padding) + 1.5 * var(--fz-header-menu-font) + 2 * var(--fz-header-menu-padding) + 24px + var(--wp-admin--admin-bar--height, 0px));
}
@media (max-width: 800px) {
  body.fz-theme :is(.fz-content,.fz-page-content) :is(h1,h2,h3,h4,h5,h6)[id] {
    scroll-margin-top: calc(max(var(--fz-header-logo-height), var(--fz-header-search-height), var(--fz-header-cart-size), var(--fz-header-shop-size)) + 2 * var(--fz-header-padding) + 24px + var(--wp-admin--admin-bar--height, 0px));
  }
}
body.fz-theme.fz-header-static :is(.fz-content,.fz-page-content) :is(h1,h2,h3,h4,h5,h6)[id] { scroll-margin-top: 24px; }

/* One row: price on the left, a compact cart action on the right. */
.fz-scope article.fz-product-item { container: fz-card / inline-size; }
.fz-scope .fz-product-item .fz-product-meta .fz-card-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: 0 0 auto;    
  margin: 0; padding: 0 !important; border-width: 1px !important; 
  font-size: 14px !important; font-weight: 650; line-height: 1;
  background: var(--fz-primary); border-color: var(--fz-primary); color: var(--fz-on-primary);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--fz-primary) 14%, transparent);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.fz-scope .fz-product-item .fz-card-cart svg { display: block; flex: none; width: 20px; height: 20px; }
.fz-scope .fz-product-item .fz-card-cart-label { display: none; }
@container fz-card (min-width: 230px) {
  .fz-scope .fz-product-item .fz-product-meta .fz-card-cart {  padding-inline: 12px !important; }
  .fz-scope .fz-product-item .fz-card-cart-label { display: inline; }
}
@media (hover: hover) and (pointer: fine) {
  .fz-scope .fz-product-item .fz-product-meta .fz-card-cart:hover {
    background: var(--fz-primary-hover); border-color: var(--fz-primary-hover);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--fz-primary) 22%, transparent);
  }
}
.fz-scope .fz-product-item .fz-product-meta .fz-card-cart:active { transform: scale(0.96); }
@media (max-width: 480px) {
  .fz-scope .fz-product-item .fz-product-meta { gap: 6px; }
  .fz-scope .fz-product-item .fz-product-meta .fz-product-price { font-size: 14px; }
  .fz-scope .fz-product-item .fz-product-meta .fz-card-cart { width: 40px; min-width: 40px; height: 40px; min-height: 40px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .fz-scope .fz-product-item .fz-product-meta .fz-card-cart { transition: none; }
  .fz-scope .fz-product-item .fz-product-meta .fz-card-cart:active { transform: none; }
}

/* Product badges and cart action share compact, fixed heights. */
.fz-scope .fz-product-item .fz-product-thumbnail { position: relative; }
.fz-scope .fz-product-item .fz-card-badges {
  position: absolute; inset: 10px 10px auto; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  pointer-events: none;
}
.fz-scope .fz-product-item .fz-card-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; box-sizing: border-box; padding: 0 9px; border-radius: 8px;
  font-size: 11px; font-weight: 750; line-height: 1; letter-spacing: 0.025em;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--fz-text) 12%, transparent);
}
.fz-scope .fz-product-item .fz-card-badge-sale { background: var(--fz-primary); color: var(--fz-on-primary); }
.fz-scope .fz-product-item .fz-card-badge-vip {
  margin-left: auto; background: var(--fz-surface); color: var(--fz-primary);
  border: 1px solid color-mix(in srgb, var(--fz-primary) 35%, var(--fz-surface));
}
.fz-scope .fz-product-item .fz-product-meta .fz-card-cart {
  height: 35px; min-height: 35px !important; width: 35px; min-width: 35px;
  border-radius: 10px !important;
}
@container fz-card (min-width: 230px) {
  .fz-scope .fz-product-item .fz-product-meta .fz-card-cart { width: auto; }
}
/* Keep notifications above all positioned card controls, including on touch screens. */
.fz-scope article.fz-product-item { isolation: isolate; }
.fz-scope .fz-product-item > .fz-overlay-notification { z-index: 20; box-sizing: border-box; }
.fz-scope .fz-product-item > .fz-overlay-notification .fz-overlay-buttons { flex-wrap: wrap; justify-content: center; }

/* Contain configured button z-index inside the footer, below the notification. */
.fz-scope .fz-product-item > .fz-product-meta { position: relative; z-index: 0; }
.fz-scope .fz-product-item .fz-product-meta .fz-card-cart { z-index: auto !important; }

.fz-scope #fz-cart-items .product-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fz-scope #fz-cart-items .product-name .fz-quantity { flex-basis: 100%; display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.fz-scope .fz-cart-multiplier { color: var(--fz-primary); font-weight: 700; white-space: nowrap; }

.fz-scope .fz-tren, .fz-scope #fz-cart-items li { grid-template-columns: minmax(0,3fr) minmax(0,1.5fr) minmax(0,1.2fr) auto; gap: 12px; }
@media (max-width: 600px) {
  .fz-scope .fz-tren { display: none; }
  .fz-scope #fz-cart-items li {  gap: 10px; }
  .fz-scope #fz-cart-items li > .product-name { grid-column: 1 / -1; }
  .fz-scope #fz-cart-items li > .product-total { text-align: right; }
  .fz-scope #fz-cart-items li > .fz-remove-btn {  justify-self: end; }
}

.fz-scope .fz-tren, .fz-scope #fz-cart-items li { grid-template-columns: minmax(0,3fr) minmax(0,2fr) auto; }
#fz-cart-usd { display: block; font-size: 14px; color: var(--fz-muted); }
.fz-mini-cart-wrap { position: relative; display: flex; align-items: center; }
.fz-mini-cart { display: none; position: absolute; top: 100%; right: 0; width: min(350px, calc(100vw - 24px)); padding: 18px; box-sizing: border-box; border: 1px solid var(--fz-border); border-radius: 14px; background: var(--fz-surface); color: var(--fz-text); box-shadow: var(--fz-card-shadow-hover); z-index: 10; text-align: left; }
.fz-mini-cart-wrap:focus-within .fz-mini-cart { display: block; }
@media (hover: hover) { .fz-mini-cart-wrap:hover .fz-mini-cart { display: block; } }
.fz-mini-cart-items { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.fz-mini-cart-items li { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--fz-border); }
.fz-cart-icon .fz-mini-cart a { width: auto; height: auto; font-size: 14px; line-height: 1.5; color: var(--fz-text); background: none; text-decoration: none; }
.fz-mini-cart-items span { font-size: 13px; color: var(--fz-muted); }
.fz-mini-cart-total { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.fz-mini-cart-actions { display: flex; gap: 8px; }
.fz-cart-icon .fz-mini-cart-actions a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: var(--fz-primary); color: var(--fz-on-primary); }
@media (max-width: 600px) { .fz-scope #fz-cart-items li { grid-template-columns: minmax(0,1fr) auto; } .fz-scope #fz-cart-items li > .fz-remove-btn { grid-column: 2; } }

.fz-scope .fz-tong { align-items: center; gap: 5px 12px; }
.fz-scope .fz-tong #fz-total { margin: 0; text-align: right; }
.fz-scope .fz-tong #fz-cart-usd { grid-column: 2; text-align: right; white-space: nowrap; }

@media (max-width: 600px) {
  .fz-mini-cart {
    position: fixed; top: 50%; left: 50%; right: auto;
    transform: translate(-50%, -50%);
    width: min(350px, calc(100vw - 24px));
    max-height: calc(100dvh - 32px); overflow-y: auto;
  }
  .fz-mini-cart-items { max-height: min(300px, 45dvh); }
}

body.fz-theme .fz-related-post-thumbnail { aspect-ratio: var(--fz-grid-ratio, 4 / 3); overflow: hidden; }
body.fz-theme .fz-related-post-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fz-scope .fz-related-products { margin-block: var(--fz-block-margin, 30px); }
.fz-scope .fz-related-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fz-gap, 20px); }
.fz-scope .fz-related-products-grid > article { min-width: 0; margin: 0; }
body .fz-back-to-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 800; width: 42px; height: 42px; min-height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--fz-primary); border-radius: 12px; background: var(--fz-primary); color: var(--fz-on-primary); box-shadow: var(--fz-card-shadow-hover); cursor: pointer; }
body .fz-back-to-top[hidden] { display: none; }
@media (max-width: 767px) { .fz-scope .fz-related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

body.fz-theme .fz-reading-progress { position: absolute; left: 0; bottom: -2px; z-index: 1; display: block; width: 100%; height: 2px; margin: 0; padding: 0; border: 0; appearance: none; background: transparent; color: var(--fz-accent); pointer-events: none; }
body.fz-theme .fz-reading-progress::-webkit-progress-bar { background: transparent; }
body.fz-theme .fz-reading-progress::-webkit-progress-value { background: var(--fz-accent); }
body.fz-theme .fz-reading-progress::-moz-progress-bar { background: var(--fz-accent); }

/* Keep loading controls out of browser scroll anchoring; reserve status space. */
#fz-load-more, .fz-load-products, .fz-posts-status, .fz-products-status, body.fz-theme footer { overflow-anchor: none; }
.fz-posts-status, .fz-products-status { min-height: 1.5em; margin-block: 8px; }
#fz-load-more, .fz-load-products { min-width: 130px; }
@keyframes fz-grid-reveal { from { opacity: 0; } to { opacity: 1; } }
.fz-grid-enter { animation: fz-grid-reveal 220ms ease-out; }
@media (prefers-reduced-motion: reduce) { .fz-grid-enter { animation: none; } }

/* Progressive HTML navigation works alongside AJAX load more. */
.fz-mini-cart-wrap.fz-mini-cart-open .fz-mini-cart { display: block; }
.fz-mini-cart-wrap.fz-mini-cart-dismissed .fz-mini-cart { display: none; }

/* Font preview: one component source for input, controls, variations and loading. */
.fz-preview-input { position: relative; margin-top: 16px; }
.fz-preview.fz-scope .fz-preview-input textarea { display: block; width: 100%; box-sizing: border-box; height: auto; max-height: none; overflow-y: hidden; resize: none; border-radius: 28px !important; padding-top: 18px !important; padding-inline: 20px !important; }
.fz-preview-input-label { position: absolute; top: 0; left: 20px; z-index: 1; max-width: calc(100% - 40px); padding: 0 5px; margin: 0; transform: translateY(-50%); color: var(--fz-muted); background: var(--fz-surface); font-size: 12px; font-weight: 400; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.fz-preview-input .fz-preview-limit { position: absolute; right: 12px; bottom: 8px; max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 8px; margin: 0; color: var(--fz-muted); font-size: 11px; line-height: 1.4; opacity: 0.75; text-align: right; }
.fz-preview-limit [data-fz-preview-count] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fz-preview-limit [data-fz-preview-limit-message]:not(:empty) { color: var(--fz-warning); }
.fz-preview-controls { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px; align-items: center; gap: 12px; margin: 12px 0; }
.fz-preview-controls .fz-preview-font-picker,
.fz-preview-controls .fz-preview-line-height,
.fz-preview-controls .fz-preview-size { display: grid; min-width: 0; align-items: center; gap: 6px; margin: 0; }
.fz-preview-controls .fz-preview-font-picker { grid-template-columns: auto minmax(0, 1fr); }
.fz-preview-controls .fz-preview-line-height,
.fz-preview-controls .fz-preview-size { grid-template-columns: auto minmax(0, 1fr) 3ch; width: 150px; }
.fz-preview-controls label { display: block; margin: 0; white-space: nowrap; line-height: 1.4; }
.fz-preview-controls .fz-preview-font-picker select[data-fz-preview-font] { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; height: var(--fz-preview-control-height, 35px); min-height: var(--fz-preview-control-height, 35px) !important; padding: 0 8px !important; line-height: normal; text-overflow: ellipsis; }
.fz-preview-controls input[type="range"],.fz-preview-axis input[type="range"] { width: 100%; min-width: 0; height: var(--fz-preview-control-height, 35px); padding: 0; margin: 0; accent-color: var(--fz-primary); }
.fz-preview-controls output,.fz-preview-axis output { text-align: right; font-variant-numeric: tabular-nums; }
.fz-preview-variations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.fz-preview-variations[hidden] { display: none; }
.fz-preview-axis { display: grid; grid-template-columns: auto minmax(0, 1fr) 4ch; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.fz-preview-axis > span { white-space: nowrap; }
.fz-preview-image { position: relative; min-height: 96px; border: 1px solid var(--fz-card-border); border-radius: 12px; background: var(--fz-card-tint); user-select: none; -webkit-user-select: none; }
.fz-preview-image img { display: block; max-width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.fz-preview-image img[hidden] { display: none; }
.fz-preview-image.fz-is-rendering > img { opacity: 0.4; }
.fz-preview-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: inherit; color: var(--fz-text); background: color-mix(in srgb, var(--fz-surface) 82%, transparent); backdrop-filter: blur(2px); font-size: 13px; text-align: center; }
.fz-preview-loading[hidden] { display: none; }
.fz-preview-spinner { flex-shrink: 0; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid var(--fz-border); border-top-color: var(--fz-primary); border-radius: 50%; animation: fz-preview-spin 800ms linear infinite; }
@keyframes fz-preview-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .fz-preview-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; font-size: 11px; }
  .fz-preview-controls .fz-preview-font-picker,
  .fz-preview-controls .fz-preview-line-height,
  .fz-preview-controls .fz-preview-size { width: auto; gap: 3px; }
  .fz-preview-controls .fz-preview-font-picker select[data-fz-preview-font] { padding-inline: 2px; }
  .fz-preview-axis { grid-template-columns: auto minmax(0, 1fr) 3ch; gap: 4px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .fz-preview-spinner { animation: none; } }
