/*
Ported from reference-pages/*.html. All classes are prefixed `asm-` and scoped under
.asm-product-page to avoid colliding with Astra / WooCommerce / Elementor global styles
(the reference used generic names like .price, .info, .card, which are unsafe to reuse
site-wide on a real theme). Values are unchanged from the approved reference design.
*/
:root{
  --asm-bg:#F8F8FD; --asm-white:#FFFFFF;
  --asm-title:#34597A; --asm-text:#4E6A86; --asm-nav:#49749C; --asm-muted:#5F7386; /* darkened from #4E7BA6 / #6F869C for WCAG AA contrast (2026-10-15) */
  --asm-line:#DCE2EA; --asm-dark:#1E2B38; --asm-sand:#EDE6DA; --asm-sand-ink:#6B5A43; --asm-studio:#EEEDF5;
  --asm-font:'Montserrat','Helvetica Neue',Helvetica,Arial,sans-serif;
}
.asm-product-page{
  background:var(--asm-bg);color:var(--asm-text);font-family:var(--asm-font);-webkit-font-smoothing:antialiased;
}
.asm-product-page *,.asm-product-page *::before,.asm-product-page *::after{box-sizing:border-box}
.asm-product-page a{color:var(--asm-nav);text-decoration:none}
.asm-product-page button{font-family:var(--asm-font);cursor:pointer}
.asm-product-page img{max-width:100%;display:block}
.asm-product-page :focus-visible{outline:2px solid var(--asm-title);outline-offset:3px}

/* ---------------------------------------------------------------------------
 * Overrides for theme/plugin CSS that otherwise fights our layout. Each one
 * traced to its actual source rule via browser devtools, not guessed.
 * ------------------------------------------------------------------------- */
/* Astra's WooCommerce compatibility CSS floats+shrinks .summary to 48% width,
   which breaks inside our CSS Grid layout (it has an #content id in its
   selector, so plain class-based overrides lose the specificity fight). */
.asm-product-page .summary.entry-summary{float:none!important;width:100%!important;clear:none!important;margin:0!important;}
/* woo-variation-swatches renders its own native "Size: 100 ml / Svuota" UI
   inside table.variations - we drive the hidden <select> directly instead. */
.asm-product-page table.variations,
.asm-product-page .reset_variations_alert{display:none!important;}
/* Stripe mounts Apple Pay / Google Pay / Link as three separate elements -
   only the first two are wanted on the product page. */
#wc-stripe-express-checkout-element-link{display:none!important;}
/* The side-cart plugin's floating bubble overlaps page content (notes card text,
   contact block) on migrated product pages - hidden here in favor of a header cart
   icon. .xoo-wsc-container also wraps the slide-out panel itself (header/body/
   footer), so this only hides the bubble (.xoo-wsc-basket), not the container -
   hiding the whole container would make the cart unreachable. */
body.asm-product-page-active .xoo-wsc-basket{display:none!important;}
.asm-ph{background:var(--asm-studio);color:var(--asm-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:13px;text-align:center;padding:14px}
.asm-ph em{font-style:normal;font-size:11px}

/* product (gallery + info columns) */
.asm-breadcrumb{max-width:1180px;margin:0 auto;padding:30px clamp(16px,5vw,40px) 0;font-size:13px;color:var(--asm-muted);display:flex;gap:4px;flex-wrap:wrap}
.asm-breadcrumb a{color:var(--asm-muted)}
.asm-product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);max-width:1180px;margin:0 auto;padding:22px clamp(16px,5vw,40px) 0;align-items:start}
.asm-gallery{position:sticky;top:20px;display:flex;flex-direction:column;gap:14px}
.asm-stage{aspect-ratio:1/1;background:#EEEEF7;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.asm-stage img,.asm-stage .asm-ph{width:100%;height:100%;object-fit:cover}
.asm-stage img{-webkit-user-drag:none;pointer-events:none}
.asm-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.asm-thumbs button{aspect-ratio:1/1;padding:0;border:1px solid var(--asm-line);background:var(--asm-white);overflow:hidden;border-radius:4px;font-size:11px;color:var(--asm-muted)}
.asm-thumbs button[aria-current="true"]{border:2px solid var(--asm-dark)}
.asm-thumbs img{width:100%;height:100%;object-fit:cover}
.asm-dots{display:none;justify-content:center}
.asm-dots button{width:34px;height:44px;border:0;background:none;display:flex;align-items:center;justify-content:center}
.asm-dots span{width:7px;height:7px;border-radius:50%;background:#C6D0DB}
.asm-dots button[aria-current="true"] span{background:var(--asm-title)}
/* per-format gallery: images of other formats (hidden by PHP/JS) */
.asm-thumbs button[hidden],.asm-dots button[hidden]{display:none!important}

.asm-info{display:flex;flex-direction:column}
.asm-kicker{font-size:14px;color:var(--asm-muted);margin-bottom:10px}
.asm-info .asm-title{margin:0 0 8px;font-weight:400;font-size:clamp(24px,2.2vw,30px);line-height:1.22;letter-spacing:.005em;color:var(--asm-title)}
.asm-price-top{margin:0 0 14px;font-size:20px;font-weight:400;color:var(--asm-title)}
.asm-price-fmt{font-size:14px;color:var(--asm-muted)}
.asm-tagline{margin:0 0 22px;font-weight:300;font-style:italic;font-size:clamp(17px,1.5vw,20px);line-height:1.45}
.asm-lead{margin:0 0 26px;font-size:16px;line-height:1.8;font-weight:300;max-width:60ch}
.asm-facts{border-top:1px solid var(--asm-line);margin:0 0 30px}
.asm-facts div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--asm-line);font-size:15px;line-height:1.5}
.asm-facts dt{color:var(--asm-title);font-weight:500}
.asm-facts dd{margin:0;font-weight:300}

.asm-format-label{font-size:16px;font-weight:500;color:var(--asm-title);margin-bottom:12px}
.asm-swatches{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.asm-swatches button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-width:150px;padding:12px 18px!important;position:relative;text-align:left;background:var(--asm-white);border:1px solid #C9D2DC;border-radius:4px;color:var(--asm-dark);font-size:16px;font-weight:400!important;text-transform:none!important;letter-spacing:normal!important}
.asm-swatches button[aria-pressed="true"]{border:2px solid var(--asm-dark);padding:11px 17px!important}
.asm-swatches button b{font-weight:500;font-size:16px}
.asm-swatches.asm-three button{min-width:130px}
.asm-swatches button span{font-size:15px;color:var(--asm-title)}
.asm-unit-price{font-size:12px;color:var(--asm-muted);margin:6px 0 10px}
.asm-badge-best{position:absolute;top:-10px;right:10px;background:var(--asm-title);color:#fff;font-style:normal;font-size:11px;line-height:1;padding:4px 8px;border-radius:999px}
.asm-fmt-hint{font-size:13px;line-height:1.6;color:var(--asm-muted);margin:0 0 26px}

.asm-buy{display:flex;align-items:center;gap:24px}
.asm-price{font-size:30px;font-weight:500;color:var(--asm-title);white-space:nowrap}
/* Styles WooCommerce's own button classes directly (not a class added by JS) so
   there's no unstyled flash while the page loads. */
/* Astra's WooCommerce compat CSS floats buttons left at auto-width (same file as
   the .summary override above) - needs the same !important treatment. */
/* Astra's WooCommerce compat CSS also overrides background/border/color on buttons
   (same source as the float issue above) - every visual property needs !important
   to actually win, not just layout ones. */
.asm-product-page .single_add_to_cart_button{display:flex!important;float:none!important;align-items:center;justify-content:center;gap:4px;width:100%!important;flex:1;height:60px;background:var(--asm-title)!important;color:#fff!important;border:1.5px solid var(--asm-title)!important;font-size:15px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;transition:background .2s,color .2s;white-space:nowrap}
.asm-product-page .single_add_to_cart_button:hover{background:#27445E!important;border-color:#27445E!important;color:#fff!important}
.asm-product-page .single_add_to_cart_button:disabled,.asm-sticky-bar button:disabled{opacity:.6;cursor:default}
.asm-product-page .single_add_to_cart_button.asm-added{background:#27445E!important;color:#fff!important}
/* WooCommerce's own "added" tick + "View cart" link (from the added_to_cart event) -
   we show our own "Aggiunto al carrello" feedback instead */
.asm-product-page .single_add_to_cart_button.added::after{content:none!important;display:none!important}
.asm-product-page a.added_to_cart{display:none!important}
.asm-product-page .quantity{display:none!important}
.asm-cta-sep,.asm-js-price{letter-spacing:.06em}
.asm-shipping-lines{list-style:none!important;margin:14px 0 0;padding:0;font-size:14px;line-height:1.5;color:var(--asm-text)}
.asm-shipping-lines li{position:relative;padding-left:22px;margin-bottom:6px;list-style:none!important}
.asm-shipping-lines li::marker{content:""}
.asm-shipping-lines li::before{content:"";position:absolute;left:2px;top:5px;width:9px;height:5px;border-left:1.5px solid var(--asm-title);border-bottom:1.5px solid var(--asm-title);transform:rotate(-45deg)}
.asm-express-checkout{margin-top:14px}

.asm-assure{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;margin:26px 0 34px;padding:20px 0;border-top:1px solid var(--asm-line);border-bottom:1px solid var(--asm-line)}
.asm-assure div{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.5}
.asm-assure svg{flex-shrink:0;margin-top:1px}
.asm-assure b{display:block;font-weight:500;color:var(--asm-title);font-size:14px}

.asm-accordion{border-top:1px solid var(--asm-line)}
.asm-accordion details{border-bottom:1px solid var(--asm-line)}
.asm-accordion summary{list-style:none;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font-size:17px;color:var(--asm-title)}
.asm-accordion summary::-webkit-details-marker{display:none}
.asm-plus{position:relative;width:16px;height:16px;flex-shrink:0}
.asm-plus::before,.asm-plus::after{content:"";position:absolute;background:var(--asm-muted);transition:transform .2s}
.asm-plus::before{left:0;top:7.5px;width:16px;height:1.4px}
.asm-plus::after{left:7.5px;top:0;width:1.4px;height:16px}
.asm-accordion details[open] .asm-plus::after{transform:scaleY(0)}
.asm-accordion .asm-panel{padding:0 0 22px;font-size:15px;line-height:1.75;font-weight:300}
.asm-accordion .asm-panel p{margin:0 0 10px}
.asm-accordion .asm-panel b{font-weight:500;color:var(--asm-title)}
.asm-hazard-icons{display:inline-flex;gap:6px;margin-left:8px}

/* below the fold */
.asm-wrap{max-width:1180px;margin:0 auto;padding:0 clamp(16px,5vw,40px)}
.asm-h2{margin:0 0 12px;font-weight:400;font-size:clamp(26px,2.6vw,34px);line-height:1.2;color:var(--asm-title)}
.asm-sub{margin:0 0 40px;font-size:16px;line-height:1.7;font-weight:300;max-width:60ch}

.asm-notes{padding:96px 0}
.asm-notes-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
.asm-chips{display:flex;flex-direction:column;gap:30px}
.asm-group-title{font-size:14px;font-weight:500;color:var(--asm-title);margin-bottom:12px}
.asm-chiprow{display:flex;flex-wrap:wrap;gap:10px}
.asm-chip{min-height:44px;padding:0 18px!important;border:1px solid #C9D2DC;border-radius:999px;background:var(--asm-white);color:var(--asm-dark);font-size:15px;font-weight:400!important;text-transform:none!important;letter-spacing:normal!important}
.asm-chip[aria-pressed="true"]{background:var(--asm-title);border-color:var(--asm-title);color:#fff}
/* Astra's global button:hover/:focus/:active (white text, colour transition) fires on
   every iOS tap and briefly flashed the chip - pin both chip states for all of them */
.asm-chip{-webkit-tap-highlight-color:transparent;transition:none!important;box-shadow:none!important}
.asm-chip:hover,.asm-chip:focus,.asm-chip:active{background:var(--asm-white)!important;border-color:#C9D2DC!important;color:var(--asm-dark)!important;outline:none}
.asm-chip[aria-pressed="true"]:hover,.asm-chip[aria-pressed="true"]:focus,.asm-chip[aria-pressed="true"]:active{background:var(--asm-title)!important;border-color:var(--asm-title)!important;color:#fff!important}
.asm-chip:focus-visible{outline:2px solid var(--asm-title)!important;outline-offset:2px}
/* the active card is in normal flow, so the box fits its own text; inactive cards sit
   on top of it, invisible (still laid out, so Fiori's lazy images load before they're
   tapped). product.js animates the box height between cards (200ms) */
.asm-note-cards{position:relative;overflow:hidden;transition:height .2s ease-out}
.asm-note-card{position:absolute;top:0;left:0;right:0;background:var(--asm-white);border:1px solid var(--asm-line);border-radius:6px;padding:24px 24px 30px;display:flex;flex-direction:column;opacity:0;visibility:hidden;transition:opacity .18s ease-out,visibility 0s linear .18s}
.asm-note-card.is-active{position:relative;opacity:1;visibility:visible;transition:opacity .18s ease-out,visibility 0s}
.asm-note-img{aspect-ratio:5/4;border-radius:4px;margin-bottom:22px;overflow:hidden;background:var(--asm-studio)}
.asm-note-img img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.asm-note-card .asm-note-name{font-size:24px;color:var(--asm-title);margin-bottom:8px}
/* estimated sign (asm_estimated_sign) at text size, text colour */
.asm-e{display:inline-block;width:.74em;height:.74em;vertical-align:-.04em}
/* CLP pictograms in the closed accordion title (reference .haz / .ghs) */
.asm-haz{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.asm-haz .ghs{width:26px;height:26px;flex:0 0 auto}
.asm-note-card .asm-note-family{font-size:13px;color:var(--asm-muted);margin-bottom:14px}
.asm-note-card p{margin:0;font-size:15px;line-height:1.75;font-weight:300}
.asm-hint-m{display:none}

.asm-story{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);background:var(--asm-sand)}
.asm-story img{width:100%;height:100%;object-fit:cover;min-height:520px}
.asm-story .asm-story-text{padding:clamp(40px,6vw,88px);display:flex;flex-direction:column;justify-content:center}
.asm-story .asm-story-quote{margin:0 0 26px;font-size:clamp(24px,2.4vw,32px);line-height:1.35;color:var(--asm-title);font-weight:400}
.asm-story p{margin:0 0 14px;font-size:16px;line-height:1.8;font-weight:300;color:#4A5F74;max-width:46ch}
.asm-story .asm-story-source{font-size:13px;color:var(--asm-sand-ink);margin-top:10px}

.asm-gift{padding:96px 0}
.asm-gift-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center}
.asm-gift-list{display:flex;flex-direction:column;border-top:1px solid var(--asm-line)}
/* the [hidden] attribute (used to toggle between format tabs) loses to the class
   rule above, since display:flex on .asm-gift-list has equal/higher specificity
   than the browser's own [hidden] UA rule - was showing both formats at once. */
.asm-gift-content[hidden]{display:none!important}
.asm-gift-list div{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--asm-line);font-size:15px;line-height:1.6;font-weight:300}
.asm-gift-list b{font-weight:500;color:var(--asm-title);min-width:130px}
.asm-gift .asm-ph{aspect-ratio:1/1;border-radius:4px}
.asm-gift-tabs{display:inline-flex;border:1px solid #C9D2DC;border-radius:4px;overflow:hidden;margin-bottom:24px}
.asm-gift-tabs button{min-height:44px;padding:0 20px!important;border:0;background:var(--asm-white);color:var(--asm-dark);font-size:15px;font-weight:400!important;text-transform:none!important;letter-spacing:normal!important}
.asm-gift-tabs button[aria-pressed="true"]{background:var(--asm-dark);color:#fff}

.asm-faq{padding:0 0 96px}
.asm-faq .asm-accordion{max-width:780px}

.asm-contact{background:var(--asm-white);padding:64px 0}
/* reference: .story + .faq{padding-top:96px} (64px on mobile) - without it the FAQ
   sat directly under the story band whenever there's no gift section in between */
.asm-story + .asm-faq{padding-top:96px}
/* Astra's .ast-woocommerce-container adds 16px (mobile) / 25px (desktop) side padding
   around the whole page, insetting the full-bleed sections (story band, contact
   block, mobile gallery); every text block already has its own gutter (.asm-wrap,
   .asm-product, .asm-info, .asm-breadcrumb) */
body.asm-product-page-active .ast-woocommerce-container{padding-left:0!important;padding-right:0!important}
.asm-contact .asm-wrap{display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
.asm-contact p{margin:6px 0 0;font-size:15px;font-weight:300;line-height:1.7;max-width:52ch}
.asm-contact .asm-btns{display:flex;gap:12px;flex-wrap:wrap}
.asm-contact-email{font-size:14px;font-weight:400;color:var(--asm-title);-webkit-user-select:all;user-select:all}
.asm-copy-email{display:block;margin:4px 0 0;font-size:13px;font-weight:400;text-decoration:underline;color:var(--asm-muted);cursor:pointer;-webkit-user-select:none;user-select:none}
.asm-copy-email:hover{color:var(--asm-title)}
.asm-contact-btn{min-height:52px;padding:0 24px;display:inline-flex;align-items:center;border:1.5px solid var(--asm-title);color:var(--asm-title);font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;background:var(--asm-white)}
.asm-contact-btn:hover{background:var(--asm-title);color:#fff}

.asm-cross-sell{padding:96px 0}
.asm-cross-sell-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.asm-cross-sell-card{display:flex;flex-direction:column;gap:12px}
.asm-cross-sell-card img{aspect-ratio:1/1;border-radius:4px;object-fit:cover}
.asm-cross-sell-card b{font-weight:400;font-size:18px;color:var(--asm-title)}
.asm-cross-sell-card small{font-size:14px;color:var(--asm-muted)}
.asm-cross-sell-link{display:inline-block;margin-top:32px;font-size:15px;font-weight:500;color:var(--asm-title)}
.asm-cross-sell-link:hover{text-decoration:underline}

.asm-sticky-bar{display:none}

@media (max-width: 860px){
  .asm-breadcrumb{padding-top:15px;margin-top:-40px}
  .asm-product{grid-template-columns:1fr;padding:14px 0 0;gap:0}
  .asm-gallery{position:static;gap:0}
  .asm-thumbs{display:none}
  .asm-dots{display:flex}
  .asm-info{padding:6px 22px 0}
  .asm-facts div{grid-template-columns:1fr;gap:2px}
  .asm-buy{gap:16px}
  .asm-price{font-size:24px}
  .asm-cta{height:54px;font-size:13px}
  .asm-assure{grid-template-columns:1fr}
  .asm-notes,.asm-gift,.asm-cross-sell{padding:64px 0}
  .asm-notes-grid,.asm-gift-grid{grid-template-columns:1fr;gap:28px}
  .asm-story{grid-template-columns:1fr}
  .asm-story img{min-height:0;aspect-ratio:1/1;height:auto}
  .asm-faq{padding-bottom:64px}
  .asm-story + .asm-faq{padding-top:64px}
  .asm-cross-sell-grid{display:flex;overflow-x:auto;gap:16px;margin-right:calc(-1 * clamp(16px,5vw,40px));padding-right:16px}
  .asm-cross-sell-card{flex:0 0 240px}
  body{padding-bottom:84px}
  .asm-sticky-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10;background:#fff;border-top:1px solid var(--asm-line);box-shadow:0 -6px 18px rgba(52,89,122,.08);align-items:center;justify-content:space-between;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)) 20px;transform:translateY(110%);transition:transform .25s}
  .asm-sticky-bar.asm-show{transform:none}
  .asm-sticky-bar > div{min-width:0;flex:1 1 auto}
  .asm-sticky-bar b,.asm-sticky-bar small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;font-size:15px;color:var(--asm-title)}
  .asm-sticky-bar small{font-size:13px;font-weight:400;color:var(--asm-text)}
  .asm-sticky-bar button{flex:0 0 auto;white-space:nowrap;height:48px;padding:0 20px!important;background:var(--asm-title);color:#fff;border:1.5px solid var(--asm-title);font-size:13px!important;font-weight:600!important;letter-spacing:normal!important;text-transform:none!important}
  .asm-swatches{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .asm-swatches button{min-width:0}
  /* reference .swatches.three (Crema Mani): one row of three, tighter cards */
  .asm-swatches.asm-three{grid-template-columns:repeat(3,1fr);gap:8px}
  .asm-swatches.asm-three button{min-width:0;padding:10px 10px!important}
  .asm-swatches.asm-three button[aria-pressed="true"]{padding:9px 9px!important}
  .asm-swatches.asm-three button b{font-size:14px}
  .asm-gift-grid{display:flex;flex-direction:column;gap:0;align-items:stretch}
  .asm-gift-grid > div:first-child{display:contents}
  .asm-gift .asm-h2{order:1}.asm-gift .asm-sub{order:2}.asm-gift-tabs{order:3;align-self:flex-start;margin-bottom:16px}
  .asm-gift-image{order:4;width:100%;margin-bottom:24px}
  .asm-gift-list{order:5}
}
@media (max-width: 380px){ .asm-sticky-bar button{padding:0 14px!important} }

/* notes: swipeable chip row on mobile */
@media (max-width: 860px){
  .asm-hint-d{display:none}.asm-hint-m{display:block}
  .asm-notes-grid{gap:14px}
  .asm-chips{flex-direction:row;flex-wrap:nowrap;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 calc(-1 * clamp(16px,5vw,40px));padding:6px clamp(16px,5vw,40px);scroll-padding:0 clamp(16px,5vw,40px)}
  .asm-chips::-webkit-scrollbar{display:none}
  .asm-chips > div,.asm-chiprow{display:contents}
  .asm-group-title{display:none}
  .asm-chip{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start;padding:0 14px!important;font-size:14px!important}
  .asm-chips.asm-more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .asm-note-card{padding:16px 16px 22px}
  .asm-note-img{margin-bottom:16px}
  .asm-note-card .asm-note-name{font-size:22px;margin-bottom:4px}
}
@media (prefers-reduced-motion: reduce){
  .asm-product-page *{transition:none!important;scroll-behavior:auto!important}
}
