/* Butterfly V8.3.3 — readability & responsive refinements across ALL five storefront themes.
   Loaded after theme CSS so existing shop/brand colors remain customizable. */
html[data-store-theme] { scroll-padding-top: 85px; }
html[data-store-theme] body { min-width: 0; font-size: 16px; line-height: 1.7; text-rendering: optimizeLegibility; }
html[data-store-theme] .storefront-shell,
html[data-store-theme] .theme-dynamic-page,
html[data-store-theme] .dynamic-section-wrap,
html[data-store-theme] .shop-container { min-width: 0; max-width: 100%; }
html[data-store-theme] .shop-container { width: min(100%, 1210px); margin-inline: auto; }
html[data-store-theme] .theme-dynamic-page :is(h1,h2,h3,h4,p,li,label,span,strong,small,a) { overflow-wrap: break-word; }
html[data-store-theme] .theme-brand { min-width: 0; overflow-wrap: anywhere; }
html[data-store-theme] .theme-brand > span:last-child { min-width: 0; }
html[data-store-theme] .theme-site-nav { flex-shrink: 0; }
html[data-store-theme] .premium-hero,
html[data-store-theme] .premium-hero-copy,
html[data-store-theme] .premium-hero-art { min-width: 0; }
html[data-store-theme] .product-intro h2 { font-size: clamp(25px, 4vw, 46px); line-height: 1.35; letter-spacing: normal; }
html[data-store-theme] .product-intro p { font-size: clamp(14px, 1.5vw, 17px); line-height: 1.85; letter-spacing: normal; }
html[data-store-theme] .premium-hero-perks { font-size: 13px; line-height: 1.65; }
html[data-store-theme] .premium-hero-button,
html[data-store-theme] .theme-header-cta,
html[data-store-theme] .custom-block-button,
html[data-store-theme] .gallery-slide .slide-select,
html[data-store-theme] .place-order { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.5; }
html[data-store-theme] .premium-hero-button { gap: 14px; }
html[data-store-theme] .gallery-track { min-width: 0; }
html[data-store-theme] .gallery-slide { min-width: 0; }
html[data-store-theme] .gallery-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--surface-2, #f9f3f6); }
html[data-store-theme] .gallery-slide span { display: block; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
html[data-store-theme] .collection-title { align-items: center; flex-wrap: wrap; }
html[data-store-theme] .featured-intro { font-size: clamp(20px, 2.3vw, 28px); line-height: 1.5; }
html[data-store-theme] .collection-count { font-size: 12px; }
html[data-store-theme] .premium-assurance > div { min-width: 0; }
html[data-store-theme] .premium-assurance span { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
html[data-store-theme] .premium-assurance small { font-size: 12px; line-height: 1.5; }
html[data-store-theme] .checkout-section .checkout-columns { min-width: 0; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
html[data-store-theme] .checkout-section .product-choices { min-width: 0; }
html[data-store-theme] .checkout-section .choice { min-width: 0; }
html[data-store-theme] .checkout-section .choice-body { min-width: 0; }
html[data-store-theme] .checkout-section .choice-name { font-size: 14px; line-height: 1.6; }
html[data-store-theme] .checkout-section .choice-price { font-size: 14px; }
html[data-store-theme] .checkout-section .choice-img,
html[data-store-theme] .checkout-section .summary-item img { object-fit: contain; background: #f8f4f8; }
html[data-store-theme] .checkout-section .field-group label { font-size: 14px; font-weight: 650; line-height: 1.5; color: #51445b; }
html[data-store-theme] .checkout-section .field-group :is(input, select, textarea),
html[data-store-theme] .checkout-section .variant-attribute-field select,
html[data-store-theme] .checkout-section .product-variant-field select,
html[data-store-theme] .checkout-section .payment-instructions input { font-size: 16px; min-width: 0; max-width: 100%; min-height: 44px; line-height: 1.5; }
html[data-store-theme] .checkout-section .field-group :is(input, select, textarea)::placeholder { color: #716c79; opacity: 1; }
html[data-store-theme] .checkout-section .section-label { font-size: clamp(18px,2vw,23px); line-height: 1.5; }
html[data-store-theme] .checkout-section .label-aside { font-size: 13px; line-height: 1.7; }
html[data-store-theme] .checkout-section .payment-option { min-height: 52px; font-size: 15px; line-height: 1.6; }
html[data-store-theme] .checkout-section .checkout-safe,
html[data-store-theme] .checkout-tracking-notice,
html[data-store-theme] .order-help,
html[data-store-theme] .checkout-section .variant-stock-info,
html[data-store-theme] .checkout-section .summary-line #shippingLabel { font-size: 13px; line-height: 1.7; }
html[data-store-theme] .checkout-section .summary-item .item-name,
html[data-store-theme] .checkout-section .summary-item .item-meta { font-size: 13px; line-height: 1.6; }
html[data-store-theme] .checkout-section .summary-line { font-size: 14px; }
html[data-store-theme] .checkout-section .summary-line strong { font-size: 15px; }
html[data-store-theme] .checkout-section .qty-picker button { min-width: 33px; min-height: 33px; }
html[data-store-theme] .checkout-section .variant-add-button,
html[data-store-theme] .checkout-section .variant-remove-line { min-height: 40px; font-size: 13px; }
html[data-store-theme] .custom-content-block p { font-size: 15px; line-height: 1.85; }
html[data-store-theme] .custom-content-block h2 { overflow-wrap: anywhere; }
html[data-store-theme] :is(img, video, iframe, svg) { max-width: 100%; }
html[data-store-theme] :is(img, video) { height: auto; }
/* Actual product/hero media have dedicated dimensions to avoid unexpected stretching. */
html[data-store-theme] .gallery-slide img,
html[data-store-theme] .checkout-section .choice-img,
html[data-store-theme] .checkout-section .summary-item img,
html[data-store-theme] .custom-hero-banner { height: 100%; }
html[data-store-theme] .premium-hero-art:has(> .custom-hero-banner) { height: auto !important; aspect-ratio: 16 / 9; min-height: 180px; }
html[data-store-theme] .premium-hero-art .custom-hero-banner { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; background: transparent; }
html[data-store-theme] .custom-section-image { width: min(100%,800px); height: auto; object-fit: contain; }
html[data-store-theme] .theme-video-frame,
html[data-store-theme] .custom-video { max-width: 100%; min-width: 0; }
html[data-store-theme] .theme-video-frame :is(iframe,video) { max-width: 100%; }
@media (max-width: 900px) {
  html[data-store-theme] .checkout-section .checkout-columns { grid-template-columns: minmax(0,1fr); }
  html[data-store-theme] .shop-container { padding-inline: 16px; }
  html[data-store-theme] .premium-assurance { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  html[data-store-theme] body { font-size: 15px; }
  html[data-store-theme] .shop-container { padding-inline: 13px; }
  html[data-store-theme] .theme-site-header { gap: 8px; padding-inline: 12px; }
  html[data-store-theme] .theme-brand { font-size: 14px; line-height: 1.25; }
  html[data-store-theme] .theme-brand small { font-size: 10px; line-height: 1.45; }
  html[data-store-theme] .theme-brand-icon { flex-shrink: 0; }
  html[data-store-theme] .theme-site-nav .theme-header-cta { font-size: 13px; padding: 10px 12px; }
  html[data-store-theme] .theme-topline { font-size: 11px; line-height: 1.5; letter-spacing: normal; overflow-wrap: anywhere; }
  html[data-store-theme] .premium-hero { padding: 24px 16px; gap: 18px; margin: 20px auto 24px; }
  html[data-store-theme] .premium-kicker { font-size: 12px; letter-spacing: .04em; line-height: 1.6; }
  html[data-store-theme] .product-intro h2 { font-size: clamp(24px, 7vw, 32px); line-height: 1.38; }
  html[data-store-theme] .product-intro p { font-size: 15px; line-height: 1.8; }
  html[data-store-theme] .premium-hero-perks { font-size: 13px; }
  html[data-store-theme] .premium-hero-art:has(> .custom-hero-banner) { aspect-ratio: 4 / 3; min-height: 155px; }
  html[data-store-theme] .gallery-slide { height: clamp(215px, 66vw, 310px); }
  html[data-store-theme] .gallery-slide span { font-size: 13px; }
  html[data-store-theme] .collection-count { font-size: 11px; }
  html[data-store-theme] .premium-assurance { grid-template-columns: 1fr; }
  html[data-store-theme] .premium-assurance > div { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line,#e5dce5); }
  html[data-store-theme] .premium-assurance > div:last-child { border-bottom: 0; }
  html[data-store-theme] .premium-assurance strong { font-size: 21px; }
  html[data-store-theme] .premium-assurance span { font-size: 14px; }
  html[data-store-theme] .checkout-section .customer-col,
  html[data-store-theme] .checkout-section .order-col { padding: 20px 15px; min-width: 0; }
  html[data-store-theme] .checkout-section .product-choices { grid-template-columns: minmax(0, 1fr); }
  html[data-store-theme] .checkout-section .choice-name { font-size: 14px; }
  html[data-store-theme] .checkout-section .variant-attribute-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-store-theme] .checkout-section .variant-cart-row { gap: 8px; }
  html[data-store-theme] .checkout-section .variant-cart-label { flex-basis: 100%; }
  html[data-store-theme] .checkout-section .payment-title { gap: 8px; }
  html[data-store-theme] .checkout-section .summary-head,
  html[data-store-theme] .checkout-section .summary-item,
  html[data-store-theme] .checkout-section .summary-line { padding-inline: 12px; }
  html[data-store-theme] .support-call a { max-width: 100%; font-size: clamp(16px, 5.5vw, 21px); overflow-wrap: anywhere; }
  html[data-store-theme] .custom-content-block p { font-size: 15px; }
}
@media (max-width: 380px) {
  html[data-store-theme] .theme-brand { font-size: 12px; }
  html[data-store-theme] .theme-brand-icon { width: 33px; height: 33px; }
  html[data-store-theme] .theme-site-nav .theme-header-cta { padding: 9px 10px; font-size: 12px; }
  html[data-store-theme] .gallery-slide { height: 225px; }
  html[data-store-theme] .checkout-section .customer-col,
  html[data-store-theme] .checkout-section .order-col { padding: 15px 11px; }
  html[data-store-theme] .checkout-section .variant-attribute-fields { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-store-theme] .gallery-slide img,
  html[data-store-theme] .premium-hero-button { transition: none !important; }
}
