/**
 * SPVIET V9.9.62 - Responsive Visual Presets / Brand Layout Profiles Pro
 * This layer applies brand/layout profiles using CSS variables and body classes.
 * It is intentionally loaded after the responsive system and before inline admin overrides.
 */
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off){
  --spv-density-scale:1;
  --spv-preset-shadow-soft:0 16px 38px rgba(15,23,42,.10);
  --spv-preset-shadow-compact:0 8px 20px rgba(15,23,42,.08);
  --spv-preset-shadow-minimal:0 3px 12px rgba(15,23,42,.06);
  --spv-preset-shadow-premium:0 22px 54px rgba(44,21,87,.16);
  color:var(--spv-preset-ink,#1f2937);
}

body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-site-header,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .site-header,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) header.site-header{
  border-bottom:1px solid color-mix(in srgb,var(--spv-preset-accent,#d97706) 18%,transparent);
  background:linear-gradient(135deg,#fff 0%,color-mix(in srgb,var(--spv-preset-surface,#fff7ed) 76%,#fff 24%) 100%);
}

body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) a,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-link{color:var(--spv-preset-accent,#d97706)}

body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-btn,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .button.alt,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .woocommerce a.button,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .woocommerce button.button,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-mobile-filter-toggle-v9952,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-qr-order-btn{
  border-radius:calc(var(--spv-preset-radius,20px) * .75)!important;
  background:linear-gradient(135deg,var(--spv-preset-accent,#d97706),var(--spv-preset-accent-2,#7c2d12))!important;
  border-color:color-mix(in srgb,var(--spv-preset-accent,#d97706) 70%,#111 30%)!important;
  color:#fff!important;
}

body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-feature-tile,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-quick-tile,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-product-card,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-wc-card,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .woocommerce ul.products li.product,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-wc-filter-panel,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-map-card,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-fanpage-card{
  border-radius:var(--spv-preset-radius,20px)!important;
  border-color:color-mix(in srgb,var(--spv-preset-accent,#d97706) 14%,#e5e7eb 86%)!important;
  box-shadow:var(--spv-preset-shadow-soft);
}

body.spviet-preset-shadow-compact .spviet-feature-tile,
body.spviet-preset-shadow-compact .spviet-quick-tile,
body.spviet-preset-shadow-compact .woocommerce ul.products li.product{box-shadow:var(--spv-preset-shadow-compact)!important}
body.spviet-preset-shadow-minimal .spviet-feature-tile,
body.spviet-preset-shadow-minimal .spviet-quick-tile,
body.spviet-preset-shadow-minimal .woocommerce ul.products li.product{box-shadow:var(--spv-preset-shadow-minimal)!important}
body.spviet-preset-shadow-premium .spviet-feature-tile,
body.spviet-preset-shadow-premium .spviet-quick-tile,
body.spviet-preset-shadow-premium .woocommerce ul.products li.product{box-shadow:var(--spv-preset-shadow-premium)!important}

body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-quick-links,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-home-products-grid,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-wc-grid{
  gap:var(--spv-preset-gap,14px)!important;
}

body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-full-slider-track,
body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-slider-track{
  min-height:min(var(--spv-preset-hero,520px), var(--spv-ctl-slider-pc-h,540px));
}

/* Profile-specific refinements */
body.spviet-preset-mini_market .woocommerce ul.products li.product,
body.spviet-preset-retail_pos .woocommerce ul.products li.product{padding:calc(12px * var(--spv-density-scale,.9))!important}
body.spviet-preset-mini_market .woocommerce ul.products li.product .price,
body.spviet-preset-retail_pos .woocommerce ul.products li.product .price{font-size:1.08rem;font-weight:900;color:var(--spv-preset-accent-2,#065f46)!important}
body.spviet-preset-food_menu .woocommerce-loop-product__title,
body.spviet-preset-restaurant .woocommerce-loop-product__title{font-weight:900;letter-spacing:-.01em}
body.spviet-preset-landing_page .spviet-full-slider-track,
body.spviet-preset-landing_page .spviet-slider-track{border-radius:calc(var(--spv-preset-radius,28px) + 6px)!important;overflow:hidden}

/* Card style profiles */
body.spviet-preset-card-price .woocommerce ul.products li.product img,
body.spviet-preset-card-utility .woocommerce ul.products li.product img{border-radius:calc(var(--spv-preset-radius,14px) * .7)!important;aspect-ratio:1/1;object-fit:cover}
body.spviet-preset-card-photo .woocommerce ul.products li.product img,
body.spviet-preset-card-menu .woocommerce ul.products li.product img{border-radius:calc(var(--spv-preset-radius,20px) * .82)!important;aspect-ratio:4/3;object-fit:cover}
body.spviet-preset-card-story .woocommerce ul.products li.product img{border-radius:var(--spv-preset-radius,28px)!important;aspect-ratio:16/10;object-fit:cover}

html.spviet-device-phone body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off){
  background:linear-gradient(180deg,#fff 0%,color-mix(in srgb,var(--spv-preset-surface,#fff7ed) 82%,#fff 18%) 100%);
}
html.spviet-device-phone body.spviet-preset-density-dense .spviet-quick-tile,
html.spviet-device-phone body.spviet-preset-density-compact .spviet-quick-tile{padding:12px!important;min-height:var(--spv-touch-target-comfort,52px)}
html.spviet-device-tablet body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-wc-filter-panel{background:color-mix(in srgb,var(--spv-preset-surface,#fff7ed) 58%,#fff 42%)!important}
html.spviet-device-desktop body.spviet-preset-landing_page .spviet-full-slider-track,
html.spviet-device-desktop body.spviet-preset-landing_page .spviet-slider-track{min-height:var(--spv-preset-hero,620px)!important}

@supports not (color: color-mix(in srgb, red 50%, white 50%)){
  body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .spviet-site-header,
  body.spviet-visual-presets-v9962:not(.spviet-visual-presets-off) .site-header{background:var(--spv-preset-surface,#fff7ed)}
}
