/*
 * VMPT-UX-SYSTEM-001 v0.1 — native Flatsome UX Builder Products/Categories.
 * Shared presentation for native Flatsome product and category blocks.
 * 2026-11-19. No changes to WooCommerce data or live /shop1/.
 */
body .vmpt-ux-system {
  --vmux-card-bg:#fff; --vmux-ink:#24384c; --vmux-muted:#60717d;
  --vmux-line:#e3e8eb; --vmux-accent:#d4af37;
  --vmux-font:Inter,"Segoe UI",Arial,sans-serif;
  --vmux-photo-h:260px; --vmux-photo-h-sm:155px;
  --vmux-card-pad:16px; --vmux-card-radius:15px; --vmux-image-pad:4px;
  --vmux-name-size:16px; --vmux-name-size-sm:14px; --vmux-name-weight:700;
  --vmux-name-line:1.38; --vmux-name-spacing:0px;
  --vmux-cat-size:12px; --vmux-cat-weight:500; --vmux-cat-line:1.4;
  --vmux-cat-title-size:17px; --vmux-cat-title-size-sm:14px;
  --vmux-price-size:22px; --vmux-price-size-sm:18px; --vmux-price-weight:800;
  --vmux-unit-size:14px; --vmux-unit-size-sm:12px;
  --vmux-button-size:13px; --vmux-button-weight:700; --vmux-button-h:44px;
  --vmux-hint-size:12px;
  font-family:var(--vmux-font);
}
/* Grid/columns remain fully controlled by native Flatsome UX Builder. */
body .vmpt-ux-system .row:has(> .col > .col-inner > .product-small.box),
body .vmpt-ux-system .row:has(> .product-category.col) {
  align-items:stretch; grid-auto-rows:1fr;
}
body .vmpt-ux-system .row:has(> .col > .col-inner > .product-small.box) > .col,
body .vmpt-ux-system .row:has(> .product-category.col) > .product-category.col {
  display:flex; min-width:0;
}
body .vmpt-ux-system .col > .col-inner {
  min-width:0; width:100%; display:flex; flex-direction:column;
}
body .vmpt-ux-system .product-small.box,
body .vmpt-ux-system .product-category .box {
  display:flex; flex-direction:column; flex:1 1 auto;
  width:100%; min-width:0; height:100%;
  background:var(--vmux-card-bg);
  border:1px solid var(--vmux-line); border-radius:var(--vmux-card-radius);
  overflow:hidden; box-shadow:0 5px 15px rgba(36,56,76,.045);
}
body .vmpt-ux-system .box-image {
  height:var(--vmux-photo-h); min-height:var(--vmux-photo-h);
  flex:0 0 var(--vmux-photo-h); width:100%; overflow:hidden;
}
body .vmpt-ux-system .box-image > div:not(.image-tools),
body .vmpt-ux-system .box-image > div:not(.image-tools) > a {
  height:100%; width:100%; min-width:0;
}
body .vmpt-ux-system .box-image img {
  width:100%; height:100%; max-height:100%; max-width:100%;
  object-fit:contain; object-position:center;
  padding:var(--vmux-image-pad);
}
body .vmpt-ux-system .box .box-text {
  display:flex; flex-direction:column; flex:1 1 auto;
  padding:var(--vmux-card-pad);
  min-width:0; width:100%; text-align:left;
  background:transparent;
}
body .vmpt-ux-system .box .box-text-inner {
  display:flex; flex-direction:column; flex:1 1 auto; min-width:0; width:100%;
}
body .vmpt-ux-system .box .title-wrapper {min-width:0}
body .vmpt-ux-system .product-small .name,
body .vmpt-ux-system .product-small .name a {
  font-family:var(--vmux-name-font,var(--vmux-font)); font-size:var(--vmux-name-size);
  line-height:var(--vmux-name-line); font-weight:var(--vmux-name-weight);
  letter-spacing:var(--vmux-name-spacing);
  color:var(--vmux-ink); white-space:normal;
  overflow-wrap:anywhere; word-break:normal;
  height:auto; max-height:none; overflow:visible; text-overflow:clip;
}
body .vmpt-ux-system .product-small .category {
  font-family:var(--vmux-cat-font,var(--vmux-font)); font-size:var(--vmux-cat-size);
  font-weight:var(--vmux-cat-weight); line-height:var(--vmux-cat-line);
  color:var(--vmux-muted); white-space:normal; overflow-wrap:anywhere;
}
body .vmpt-ux-system .product-category .header-title,
body .vmpt-ux-system .product-category .header-title * {
  font-family:var(--vmux-cat-title-font,var(--vmux-font)); font-size:var(--vmux-cat-title-size);
  font-weight:var(--vmux-cat-title-weight); line-height:var(--vmux-cat-title-line);
  color:var(--vmux-cat-title-color,var(--vmux-ink)); white-space:normal; overflow-wrap:anywhere;
  max-height:none; height:auto;
}
body .vmpt-ux-system .product-category .box-text {min-height:85px}
body .vmpt-ux-system .product-small .price-wrapper {margin-top:auto; min-width:0}
body .vmpt-ux-system .product-small .price,
body .vmpt-ux-system .product-small .price .amount {
  font-family:var(--vmux-price-font,var(--vmux-font)); font-size:var(--vmux-price-size);
  font-weight:var(--vmux-price-weight); color:var(--vmux-ink); line-height:1.2;
}
body .vmpt-ux-system .product-small .unit-measure {
  font-family:var(--vmux-unit-font,var(--vmux-font)); font-size:var(--vmux-unit-size);
  font-weight:500; color:var(--vmux-muted);
}
body .vmpt-ux-system .vmpt-v2-purchase {margin-top:10px; min-width:0}
body .vmpt-ux-system .vmpt-v2-pack-hint {
  font-family:var(--vmux-hint-font,var(--vmux-font)); font-size:var(--vmux-hint-size); line-height:1.4;
}
body .vmpt-ux-system .vmpt-v2-buy {
  font-family:var(--vmux-button-font,var(--vmux-font)); font-size:var(--vmux-button-size);
  font-weight:var(--vmux-button-weight); min-height:var(--vmux-button-h);
  line-height:1.25; background:var(--vmux-button-bg,var(--vmux-ink)); color:#fff;
  white-space:normal; overflow-wrap:anywhere;
}
@media (max-width:549px) {
  body .vmpt-ux-system .box-image {
    height:var(--vmux-photo-h-sm);min-height:var(--vmux-photo-h-sm);
    flex-basis:var(--vmux-photo-h-sm);
  }
  body .vmpt-ux-system .product-small .name,
  body .vmpt-ux-system .product-small .name a {
    font-size:var(--vmux-name-size-sm);
  }
  body .vmpt-ux-system .product-category .header-title,
  body .vmpt-ux-system .product-category .header-title * {
    font-size:var(--vmux-cat-title-size-sm);
  }
  body .vmpt-ux-system .product-small .price,
  body .vmpt-ux-system .product-small .price .amount {
    font-size:var(--vmux-price-size-sm);
  }
  body .vmpt-ux-system .product-small .unit-measure {
    font-size:var(--vmux-unit-size-sm);
  }
  body .vmpt-ux-system .vmpt-v2-purchase {flex-direction:column}
}

/* VMPT-UX-SYSTEM-001 v0.2 — strict visual alignment of native cards, draft only. */
/* Align the native card's custom quantity UI without touching cart logic. */
body .vmpt-ux-products .product-small.box .vmpt-v2-qty {
  display:flex; flex:0 1 132px; min-width:0; min-height:var(--vmux-button-h);
  border:1px solid var(--vmux-line); border-radius:9px; overflow:hidden;
  background:#fff;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-step {
  display:flex; align-items:center; justify-content:center; flex:0 0 32px;
  width:32px; min-width:0; height:auto; min-height:var(--vmux-button-h);
  padding:0; margin:0; border:0; box-shadow:none; background:#f2f5f7;
  color:var(--vmux-ink); font-size:18px; line-height:1;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-qty-input {
  flex:1 1 auto; min-width:0; width:100%; min-height:var(--vmux-button-h);
  height:auto; margin:0; padding:0 2px; border:0; box-shadow:none;
  text-align:center; font:600 14px/1.3 var(--vmux-font);
  -moz-appearance:textfield; appearance:textfield;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-qty-input::-webkit-inner-spin-button,
body .vmpt-ux-products .product-small.box .vmpt-v2-qty-input::-webkit-outer-spin-button {
  -webkit-appearance:none; margin:0;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-buy {
  display:flex; align-items:center; justify-content:center; text-align:center;
  flex:1 1 0; margin:0; padding:9px 12px; min-width:0; width:100%;
  min-height:var(--vmux-button-h); height:auto; border:0; border-radius:var(--vmux-button-radius,9px);
  box-shadow:none; cursor:pointer;
}
/* Custom amount selector provides purchase, do not print a duplicate native buy. */
body .vmpt-ux-products .product-small.box:has(.vmpt-v2-purchase) .add-to-cart-button {
  display:none;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-unavailable {
  margin-top:auto; min-height:var(--vmux-button-h); display:flex; align-items:center;
}
@media (max-width:849px) {
  body .vmpt-ux-products .product-small.box .vmpt-v2-purchase {
    flex-direction:column;
  }
  body .vmpt-ux-products .product-small.box .vmpt-v2-qty {
    flex:0 0 auto; width:100%;
  }
}

body .vmpt-ux-system .product-category.col .col-inner > a {
  display:flex; flex:1 1 auto; width:100%; min-width:0; text-decoration:none;
}
body .vmpt-ux-system .product-category .box {
  flex:1 1 auto; min-width:0;
}
/* Native product tiles are flex children of equal-height Flatsome cells. */
body .vmpt-ux-products .row:has(> .col > .col-inner > .product-small.box) > .col {
  align-self:stretch; height:auto;
}
body .vmpt-ux-products .row:has(> .col > .col-inner > .product-small.box) > .col > .col-inner,
body .vmpt-ux-products .row:has(> .col > .col-inner > .product-small.box) > .col > .col-inner > .product-small.box {
  height:100%; min-height:100%; width:100%; min-width:0; flex:1 1 auto;
}
/* Let long titles wrap completely, never hide, crop or ellipse them. */
body .vmpt-ux-products .product-small.box .name,
body .vmpt-ux-products .product-small.box .name a,
body .vmpt-ux-categories .product-category .header-title {
  display:block; white-space:normal; overflow:visible; text-overflow:clip;
  word-break:normal; overflow-wrap:anywhere; max-height:none; height:auto;
}
body .vmpt-ux-products .product-small.box .title-wrapper {
  min-height:var(--vmux-row-title-height,0px);
  align-self:stretch; width:100%;
}
/* Price and controls form a consistent footer, with an optional packaging line. */
body .vmpt-ux-products .product-small.box .price-wrapper {
  flex:0 0 auto; margin-top:auto; padding-top:8px;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-pack-hint {
  display:block; min-height:0; margin:var(--vmux-card-gap,8px) 0 0; overflow-wrap:anywhere;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-purchase {
  display:flex; align-items:stretch; gap:8px; flex-shrink:0;
  margin-top:calc(var(--vmux-card-gap,8px) + var(--vmux-missing-pack-space,0px));
  width:100%; min-width:0;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-qty,
body .vmpt-ux-products .product-small.box .vmpt-v2-buy {
  min-width:0; box-sizing:border-box;
}
/* Preserve the same aligned photo plane regardless of Flatsome image mode. */
body .vmpt-ux-system .product-small.box .box-image :is(.image-none,.image-cover,.image-zoom),
body .vmpt-ux-system .product-category .box-image :is(.image-none,.image-cover,.image-zoom) {
  width:100%; height:100%; min-height:0; padding-top:0!important;
  display:flex; align-items:center; justify-content:center;
}
body .vmpt-ux-system .box-image img {
  position:static!important; inset:auto!important; transform:none!important;
  flex:0 1 auto; width:100%; height:100%; object-fit:contain!important;
}
@media (max-width:549px) {
  body .vmpt-ux-products .product-small.box .vmpt-v2-purchase {
    flex-direction:column;
  }
}

/* Typography settings use the same controls in the Customizer and preview. */
body .vmpt-ux-system .product-small .name,
body .vmpt-ux-system .product-small .name a {
  font-weight:var(--vmux-name-weight);
  line-height:var(--vmux-name-line);
  letter-spacing:var(--vmux-name-spacing,0px);
  color:var(--vmux-name-color,var(--vmux-ink));
}

body .vmpt-ux-system .product-small .category {
  font-weight:var(--vmux-cat-weight);
  line-height:var(--vmux-cat-line);
  letter-spacing:var(--vmux-cat-spacing,0px);
  color:var(--vmux-cat-color,var(--vmux-muted));
}

body .vmpt-ux-system .product-category .header-title,
body .vmpt-ux-system .product-category .header-title * {
  font-weight:var(--vmux-cat-title-weight);
  line-height:var(--vmux-cat-title-line);
  letter-spacing:var(--vmux-cat-title-spacing,0px);
  color:var(--vmux-cat-title-color,var(--vmux-ink));
}

body .vmpt-ux-system .product-small .price,
body .vmpt-ux-system .product-small .price .amount {
  font-weight:var(--vmux-price-weight);
  line-height:var(--vmux-price-line);
  letter-spacing:var(--vmux-price-spacing,0px);
  color:var(--vmux-price-color,var(--vmux-ink));
}

body .vmpt-ux-system .product-small .unit-measure {
  font-weight:var(--vmux-unit-weight);
  line-height:var(--vmux-unit-line);
  letter-spacing:var(--vmux-unit-spacing,0px);
  color:var(--vmux-unit-color,var(--vmux-muted));
}

body .vmpt-ux-system .product-small.box .vmpt-v2-buy {
  font-weight:var(--vmux-button-weight);
  line-height:var(--vmux-button-line);
  letter-spacing:var(--vmux-button-spacing,0px);
  color:var(--vmux-button-color,#fff);
}

body .vmpt-ux-system .product-small.box .vmpt-v2-pack-hint {
  font-weight:var(--vmux-hint-weight);
  line-height:var(--vmux-hint-line);
  letter-spacing:var(--vmux-hint-spacing,0px);
  color:var(--vmux-hint-color,var(--vmux-muted));
}
@media (max-width:549px) {
  body .vmpt-ux-system .product-small .category {font-size:var(--vmux-cat-size-sm);}
  body .vmpt-ux-system .product-small.box .vmpt-v2-buy {font-size:var(--vmux-button-size-sm);}
  body .vmpt-ux-system .product-small.box .vmpt-v2-pack-hint {font-size:var(--vmux-hint-size-sm);}
}

/* Stack the purchase controls when the card itself is narrow. */
body .vmpt-ux-products .product-small.box .box-text {
  container-type:inline-size;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-buy {
  overflow-wrap:normal;
  padding-inline:8px;
}
@container (max-width:230px) {
  body .vmpt-ux-products .product-small.box .vmpt-v2-purchase {
    flex-direction:column;
  }
  body .vmpt-ux-products .product-small.box .vmpt-v2-qty {
    flex:0 0 auto;
    width:100%;
  }
}

@media (max-width:549px) {
  body .vmpt-ux-system .box .box-text {
    padding-inline:max(4px,calc(var(--vmux-card-pad) * .625));
  }
}

/* Reserve the category line for cards where the native element omits it. */
body .vmpt-ux-products .product-small.box .title-wrapper {
  padding-top:var(--vmux-row-category-space,0px);
}

body .vmpt-ux-products .vmux-card-article {
  display:block;
  color:var(--vmux-muted);
  font:600 .85rem/1.3 var(--vmux-font);
  margin-block:0 4px;
}


/* Product photography follows the tile width and keeps the full source image. */
body .vmpt-ux-products .product-small.box > .box-image {
  --vmux-photo-frame-ratio:calc(var(--vmux-photo-frame,102) / 100);
  width:100%;
  height:auto;
  min-height:0;
  flex:0 0 auto;
  aspect-ratio:var(--vmux-photo-frame-ratio);
}
body .vmpt-ux-products .box-image img {padding:0;}
body .vmpt-ux-products .product-small.box .box-text {
  padding-block:10px;
  padding-inline:min(var(--vmux-card-pad),12px);
}
body .vmpt-ux-products .product-small.box .price-wrapper {
  padding-top:4px;
}
@container (min-width:180px) {
  body .vmpt-ux-products .product-small.box .vmpt-v2-purchase {flex-direction:row;gap:6px;}
  body .vmpt-ux-products .product-small.box .vmpt-v2-qty {flex:1 1 95px;width:auto;}
  body .vmpt-ux-products .product-small.box .vmpt-v2-buy {flex:1 1 86px;width:auto;padding-inline:4px;}
}
body.page-id-5809 .vmux-catalog-nav {
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;
  padding:12px 14px;background:#fff;border:1px solid #d9e2ea;border-radius:12px;
  box-shadow:0 4px 12px rgba(36,56,76,.06);
}
body.page-id-5809 .vmux-catalog-nav label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
body.page-id-5809 .vmux-catalog-nav input[type=search] {
  margin:0;width:100%;min-height:44px;background:#f6f8fa;border:1px solid #d4dfe8;border-radius:8px;box-shadow:none;
}
body.page-id-5809 .vmux-catalog-nav .vmux-search-submit {
  margin:0;min-height:44px;border-radius:8px;padding-inline:16px;background:#24384c;color:#fff;text-transform:none;
}
body.page-id-5809 .vmux-catalog-nav .vmux-search-reset {color:#24384c;text-decoration:underline;padding-inline:5px;}
body.page-id-5809 .vmux-catalog-chips {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;padding-top:8px;border-top:1px solid #e9eef2;}
body.page-id-5809 .vmux-catalog-chips button {
  margin:0;min-height:34px;border:1px solid #dce4ec;border-radius:6px;padding:0 10px;
  color:#24384c;background:#f6f8fa;font:inherit;font-size:13px;text-transform:none;
}
body.page-id-5809 .vmux-catalog-chips button[aria-pressed=true] {background:#24384c;color:#fff;border-color:#24384c;}
@media(max-width:549px) {
  body.page-id-5809 .vmux-catalog-nav {grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;}
  body.page-id-5809 .vmux-catalog-nav .vmux-search-reset {grid-column:1/-1;justify-self:start;}
}

body .vmpt-ux-products .product-small.box .name {height:auto!important;}
@media(min-width:1200px) {
  body.page-id-5809 .vmpt-ux-products > .section-content > .row,
  body.page-id-5809 section:has(.vmux-catalog-nav) > .section-content > .row {max-width:1400px;}
  body.page-id-5809 .vmpt-ux-products .row:has(> .col .product-small.box) {max-width:1370px;width:100%;margin-inline:auto;}
}

/* Keep Flatsome's secondary hover photo out of the primary photo's layout. */
body .vmpt-ux-products .product-small.box .box-image a:has(> img.back-image) { position:relative; }
body .vmpt-ux-products .product-small.box .box-image img.back-image { position:absolute!important; inset:0!important; }


/* Compact product cards: full-width photo, then a single purchase row. */
body .vmpt-ux-products .product-small.box {
  background:transparent;border:0;border-radius:0;box-shadow:none;
}
body .vmpt-ux-products .product-small.box > .box-image {
  border:0;border-radius:0;
}
body .vmpt-ux-products .product-small.box .box-text {
  height:auto!important;padding:10px 0 0;
}
body .vmpt-ux-products .product-small.box .title-wrapper {
  flex:0 0 auto;
}
body .vmpt-ux-products .product-small.box .price-wrapper {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 6px;
  height:auto!important;margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--vmux-line);
}
body .vmpt-ux-products .product-small.box .price-wrapper > .price {grid-area:1 / 1;min-width:0;}
body .vmpt-ux-products .product-small.box .price-wrapper > .star-rating {grid-column:1 / -1;grid-row:3;}
body .vmpt-ux-products .product-small.box .vmpt-v2-pack-hint {
  grid-column:1 / -1;grid-row:2;margin:0;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-purchase {
  grid-area:1 / 2;display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;width:auto;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-qty {
  flex:none;width:94px;min-height:36px;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-step {
  flex:0 0 24px;width:24px;min-height:34px;font-size:16px;
}
body .vmpt-ux-products .product-small.box .vmpt-v2-qty-input {min-height:34px;}
body .vmpt-ux-products .product-small.box .vmpt-v2-buy {
  flex:0 0 36px;width:36px;min-height:36px;height:36px;padding:0;border-radius:50%;font-size:0;
  background:var(--vmux-button-bg,#24384c);
}
body .vmpt-ux-products .product-small.box .vmpt-v2-buy::after {
  content:"";width:14px;height:14px;
  background:linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,
             linear-gradient(currentColor,currentColor) center/2px 100% no-repeat;
}
@container (max-width:230px) {
  body .vmpt-ux-products .product-small.box .price-wrapper {column-gap:4px;}
  body .vmpt-ux-products .product-small.box .price-wrapper .price .amount {font-size:14px;}
  body .vmpt-ux-products .product-small.box .price-wrapper .unit-measure {font-size:10px;}
  body .vmpt-ux-products .product-small.box .vmpt-v2-purchase {gap:4px;}
  body .vmpt-ux-products .product-small.box .vmpt-v2-qty {width:58px;}
  body .vmpt-ux-products .product-small.box .vmpt-v2-step {flex-basis:16px;width:16px;font-size:13px;}
  body .vmpt-ux-products .product-small.box .vmpt-v2-qty-input {font-size:12px;}
  body .vmpt-ux-products .product-small.box .vmpt-v2-buy {flex-basis:32px;width:32px;height:32px;min-height:32px;}
}

/* Flatsome clearfix must not create an empty product-grid row. */
body .vmpt-ux-products .row.equalize-box:has(> .col > .col-inner > .product-small.box)::after { content: none; }
.vmpt-v2-native-products .vmpt-ux-products + a.button { margin-top: 16px; }
