/* MILORIA: ivory, sand and plum. One finishing layer for every surface. */
:root{--boutique-paper:#fffdf9;--boutique-ink:#382d35;--boutique-muted:#72666a;--boutique-line:#e7ddd7;--boutique-accent:#543a4b;--boutique-ease:cubic-bezier(.16,1,.3,1)}
body.storefront{--editorial-green:var(--boutique-accent);--editorial-gold:#d8c8b8;background:#f8f5f0;color:var(--boutique-ink)}
body.storefront .storefront-collage,body.storefront .hero-editorial-collage{display:none}
body.storefront .header,body.storefront .store-sections{background:var(--boutique-paper);border-color:var(--boutique-line)}
body.storefront .hero-band.wrap{background:transparent;max-width:1240px;width:calc(100% - 48px);margin-inline:auto}
body.storefront .hero-editorial{background:linear-gradient(145deg,#f5ede3,#fcfaf6 65%,#eee5df);border-radius:32px;overflow:hidden;border:1px solid var(--boutique-line);margin-top:22px}
body.storefront .hero-editorial-content h1,body.storefront .hero-3d-card .hero-category-label,body.storefront #mobile-discovery h2,body.storefront .mobile-audience-name,body.storefront .mobile-category-name{color:var(--boutique-accent)}
body.storefront .hero-editorial-content::before{background:#b59c85}
body.storefront .hero-editorial-content .hero-actions .button{background:var(--boutique-accent);border-color:var(--boutique-accent)}
body.storefront .hero-3d-card,body.storefront .mobile-audience-image,body.storefront .mobile-category-image{border-color:var(--boutique-line);background:#f0e9e1;box-shadow:0 12px 32px -22px #503d37}
body.storefront .hero-3d-card{background:transparent;box-shadow:none;border-radius:24px}
body.storefront .hero-3d-card-image{border-color:var(--boutique-line)}
body.storefront .service-strip{font-size:.8rem;color:var(--boutique-muted)}
body.storefront .catalog-intro{display:none}
body.storefront .product{background:var(--boutique-paper);border:1px solid var(--boutique-line);border-radius:24px;box-shadow:0 6px 24px -22px #543a4b}
body.storefront .product .photo{background:#f2ede7;border-radius:18px;overflow:hidden}
body.storefront .product .photo img{object-fit:contain}
body.storefront .product-info{padding-inline:6px}
body.storefront .product h3{line-height:1.35;letter-spacing:-.02em}
body.storefront .product .meta{font-size:.75rem;letter-spacing:.065em;color:var(--boutique-muted)}
body.storefront .product-badge{font-size:.65rem;letter-spacing:.04em;background:#f2ede9;border:0}
body.storefront .product-badges .product-badge:not(:first-child){display:none}
body.storefront .product-badges:has(.product-badge-sale) .product-badge{display:none}
body.storefront .product-badges .product-badge.product-badge-sale{display:inline-block;background:#eee5e9;color:#543a4b}
body.storefront .product-action{border-color:transparent;background:transparent;box-shadow:none;color:var(--boutique-accent)}
body.storefront :is(.search,.sort-trigger,#filter-toggle,.favorites-toggle){box-shadow:0 3px 12px -10px #543a4b;border-color:#d9ccc5}
body.storefront :is(.buy-guide,.trust-strip,.recently-viewed){border-color:var(--boutique-line);background:var(--boutique-paper);border-radius:24px}
body.storefront .trust-strip{padding:24px;gap:24px}
body.storefront .trust-strip strong{font-weight:600;font-size:.95rem}
body.storefront .trust-strip span{font-size:.82rem;line-height:1.6;color:var(--boutique-muted)}
body.storefront .footer{border-color:var(--boutique-line)}
body.storefront dialog,body.admin-page dialog{border:1px solid var(--boutique-line);border-radius:28px;box-shadow:0 24px 80px -24px #382d3555}
body.storefront dialog::backdrop,body.admin-page dialog::backdrop{background:#30262c66;backdrop-filter:blur(6px)}
body.storefront :is(input,select,textarea):focus-visible{outline:2px solid #8c6b80;outline-offset:3px}
body.storefront .mobile-discovery-header{padding-block:12px}
body.storefront :is(.mobile-audience-card,.mobile-category-card){color:var(--boutique-ink)}
body.storefront :is(#mobile-socials,.hero-editorial-actions){background:transparent}
body.storefront #mobile-socials .miloria-social-link{color:var(--boutique-accent)}
body.legal-page{background:#f8f5f0;color:var(--boutique-ink)}
body.legal-page .legal-main{border-color:var(--boutique-line);background:var(--boutique-paper);border-radius:28px;padding:clamp(24px,5vw,56px);box-shadow:0 14px 40px -32px #543a4b}
body.legal-page :is(h1,h2,h3){color:var(--boutique-accent)}
body.admin-page :is(.summary>div,.today-card,.order-card,.payment-card,.admin-status-note){border-radius:20px;border-color:var(--boutique-line)}
body.admin-page :is(button,input,select,textarea){border-radius:12px}
body.admin-page :is(.tabs,.admin-tabs){gap:8px}
.boutique-animate{will-change:auto}
@media(min-width:901px){body.storefront .hero-editorial{padding-block:40px 32px}body.storefront .hero-editorial-content h1{font-size:clamp(2.8rem,4.6vw,4.4rem);max-width:17ch;margin-inline:auto}body.storefront .hero-editorial-content{padding-top:8px}body.storefront .hero-category-explorer{margin-top:24px}}
@media(max-width:900px){body.storefront .header{padding-block:12px}body.storefront .header>.brand img{width:150px}body.storefront #mobile-discovery[data-audience="all"] h2{font-size:clamp(1.85rem,7vw,2.5rem);max-width:16ch;line-height:1.15;margin-inline:auto}body.storefront #coleccion{background:transparent;padding-top:16px}body.storefront :is(.catalog-toolbar,#catalog-filter-summary,#catalog-results,.recently-viewed){background:transparent}body.storefront #mobile-discovery{background:transparent}body.storefront .mobile-audience-image{border-width:1px}body.storefront .trust-strip{margin:24px 16px;width:auto}body.storefront .product{border-radius:20px}body.storefront .product .photo{border-radius:14px}}
@media(prefers-reduced-motion:no-preference){
 html{scroll-behavior:smooth}
 body :is(button,.button,input,select,textarea){transition:background-color .22s ease,border-color .22s ease,box-shadow .3s ease,transform .3s var(--boutique-ease)}
 body.storefront .hero-editorial-content{animation:boutique-rise 850ms var(--boutique-ease) both}
 body.storefront :is(dialog[open],#quick-add-dialog[open]),body.admin-page dialog[open]{animation:boutique-panel 440ms var(--boutique-ease)}
 body.storefront dialog[open]::backdrop,body.admin-page dialog[open]::backdrop{animation:boutique-backdrop 360ms ease}
 body.storefront :is(#filters:not([hidden]),.sort-menu:not([hidden])),body.admin-page main>section:not([hidden]){animation:boutique-rise 400ms var(--boutique-ease)}
 body.storefront .product,body.storefront .product.scroll-reveal{transition:box-shadow .45s ease,border-color .3s ease,transform .45s var(--boutique-ease)}
 body.storefront :is(.product-options-action,.product-quick-add,.button):not(:disabled):active{transform:scale(.97)}
 body.storefront :is(.favorite-button,.close,.quick-purchase-close):active{transform:scale(.92)}
 @media(hover:hover) and (pointer:fine){body.storefront .product:hover{transform:translateY(-5px);box-shadow:0 18px 36px -24px #543a4b66;border-color:#cbb7c1}body.storefront :is(.button,.product-options-action,.product-quick-add,.related-card,.recently-viewed-card):not(:disabled):hover{transform:translateY(-3px)}body.storefront .product-action:hover{background:#f3edf0}}
 @keyframes boutique-rise{from{opacity:.35;transform:translateY(24px)}to{opacity:1;transform:none}}
 @keyframes boutique-panel{from{opacity:0;transform:translateY(24px) scale(.985)}to{opacity:1;transform:none}}
 @keyframes boutique-backdrop{from{opacity:0}to{opacity:1}}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body *,body *::before,body *::after,body dialog::backdrop{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Frames follow each original photograph: no crop and no painted bands. */
body.storefront .product .photo:has(>img){display:block;aspect-ratio:auto;height:auto;min-height:0;background:transparent;position:relative;box-shadow:none}
body.storefront .product .photo>img{display:block;position:static;inset:auto;width:100%;height:auto;max-width:100%;max-height:none;margin:0;object-fit:contain;transform:none}
body.storefront .catalog-content{border-radius:28px;border-color:var(--boutique-line);background:var(--boutique-paper)}
body.storefront .mobile-audience-card,body.storefront .mobile-category-card{background:transparent;box-shadow:none;border-radius:22px}
body.storefront #mobile-carousel-toggle{color:var(--boutique-accent)}
body.storefront #mobile-carousel-toggle:hover{color:var(--boutique-accent)}
body.storefront #mobile-carousel-toggle:focus-visible{outline-color:var(--boutique-accent)}
body.storefront #mobile-carousel-toggle .mobile-carousel-control-icon{background:#eee5e9;border-color:#d9c7d2;color:var(--boutique-accent)}
@media(max-width:900px){
 body.storefront .header>#bag-button{background:#f4edf1;border-color:#d9c7d2;color:var(--boutique-accent)}
 body.storefront #bag-count{background:var(--boutique-accent);color:white}
 body.storefront #floating-whatsapp.is-inline-mobile{background:var(--boutique-accent);color:#fff;border-color:var(--boutique-accent);box-shadow:0 6px 18px -10px #543a4b88}
 body.storefront .catalog-content{background:transparent;border:0;padding-inline:0;border-radius:0}
}

body.legal-page :is(input,select,textarea,fieldset,.legal-note){border-radius:14px}

/* Equal photo heights, natural widths: no cropping or empty bands. */
@media(max-width:900px){
 body.storefront{overflow-anchor:none;--mobile-audience-height:clamp(180px,calc((100vw - 48px)/1.555),280px)}
 body.storefront #mobile-discovery[data-audience="all"] .mobile-discovery-header{margin-bottom:18px;padding-block:4px 8px}
 body.storefront #mobile-discovery[data-audience="all"] h2{font-size:clamp(1.75rem,7vw,2.5rem);max-width:100%}
 body.storefront #mobile-audiences{grid-auto-columns:max-content;justify-content:start;gap:12px;margin:0;padding:0 0 8px;scroll-padding:0;scrollbar-width:none;overflow-anchor:none}
 body.storefront #mobile-audiences.is-looping .mobile-carousel-track{grid-auto-columns:max-content;gap:12px}
 body.storefront #mobile-audiences::-webkit-scrollbar{display:none}
 body.storefront #mobile-audiences .mobile-audience-card{width:calc(var(--mobile-audience-height) * var(--audience-ratio,.75));gap:10px;border-radius:18px}
 body.storefront #mobile-audiences .mobile-audience-name{font-size:clamp(1.15rem,5vw,1.5rem);line-height:1.25}
 body.storefront #mobile-audiences .mobile-audience-image{height:var(--mobile-audience-height);min-height:0;aspect-ratio:auto;border:0;border-radius:18px;background:transparent;box-shadow:none}
 body.storefront #mobile-audiences img{object-fit:contain;border-radius:0;max-height:100%;transform:none}
 body.storefront #mobile-discovery[data-audience="all"] .mobile-discovery-empty-note{display:none}
 body.storefront .mobile-carousel-control{justify-content:center;margin:4px 0 8px}
 body.storefront #mobile-carousel-toggle{padding:0 8px;font-size:.72rem;font-weight:500}
 body.storefront #mobile-discovery-title:focus{outline:none}
 body.storefront #mobile-discovery-title:focus-visible{outline:2px solid var(--boutique-accent);outline-offset:5px;border-radius:8px}
}
@media(max-width:900px){
 body.storefront :is(.mobile-rail-label,.mobile-subcategory-label){color:var(--boutique-muted)}
 body.storefront #mobile-category-rail .mobile-category-image{display:block;aspect-ratio:auto;height:auto;min-height:0;border-radius:16px;background:transparent;box-shadow:none;overflow:hidden}
 body.storefront #mobile-category-rail .mobile-category-image img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:0}
 body.storefront #mobile-reset-selection{border-color:#d9c7d2;background:var(--boutique-paper)}
}
/* Compact navigation and a quiet help entry keep the collection in view. */
@media(max-width:900px){
 body.storefront .header{padding-block:8px}
 body.storefront .header>.brand img{width:122px;max-width:100%;height:auto}
 body.storefront .store-sections{gap:24px}
 body.storefront .catalog-heading-repeated{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
 body.storefront #floating-whatsapp.is-mobile-help{position:fixed;inset:auto 14px calc(14px + env(safe-area-inset-bottom)) auto;display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;margin:0;border:1px solid #cbbbc6;border-radius:50%;background:var(--boutique-accent);color:#fff;box-shadow:0 5px 18px -7px #543a4b77;z-index:12}
 body.storefront #floating-whatsapp.is-mobile-help>span:last-child{display:none}
 body.storefront #floating-whatsapp.is-mobile-help .floating-whatsapp-icon{background:transparent;width:28px;height:28px}
 body.storefront #floating-whatsapp.is-mobile-help .whatsapp-logo{width:26px;height:26px}
 body.storefront:has(dialog[open]) #floating-whatsapp,
 body.storefront:has(#filter-toggle[aria-expanded="true"]) #floating-whatsapp{display:none}
 body.storefront .footer{margin-bottom:76px}
}
@media(max-width:700px){
 body.storefront #dialog:has(.detail) .mobile-purchase-bar{position:sticky;bottom:-20px;z-index:5;display:grid;grid-template-columns:minmax(0,1fr);margin:20px -20px -20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);border-radius:0;background:var(--paper);box-shadow:0 -8px 24px -18px #543a4b88}
 body.storefront #dialog:has(.detail) .mobile-purchase-bar #add-detail{min-height:48px;font-size:.95rem}
}

/* A shared interaction rhythm, with readable controls on small screens. */
body.storefront :is(button,a,input,select,textarea,summary){-webkit-tap-highlight-color:transparent}
body.storefront :is(button,.button)[disabled]{cursor:not-allowed}
body.storefront :is(button,.button)[disabled]:is(:hover,:active){transform:none;box-shadow:none}
body.storefront :is(.favorite-button,.filters-close){min-width:44px;min-height:44px}
body.storefront .sort-menu button{white-space:normal;overflow-wrap:normal;line-height:1.4}
body.storefront .sort-menu{max-height:min(360px,60dvh);overflow-y:auto;overscroll-behavior:contain}
body.storefront :is(.checkout-method-card,.quick-purchase-choice>span){position:relative}
body.storefront :is(.checkout-methods input,.quick-purchase-choice input):focus-visible+span{outline:3px solid #815e75;outline-offset:3px}
body.storefront :is(.cart-total,.price,.purchase-total,.quantity output){font-variant-numeric:tabular-nums}
@media(max-width:700px){
 /* Prevent iPhone input zoom from displacing a modal while entering contact data. */
 body.storefront :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){font-size:max(16px,1rem)}
 body.storefront .sort-trigger{gap:8px}
 body.storefront .sort-trigger>span:first-child{min-width:0;white-space:normal;line-height:1.3}
}
@media(prefers-reduced-motion:no-preference){
 body.storefront :is(button,.button,a,summary,input,select,textarea){
  transition:transform .25s var(--boutique-ease),background-color .22s ease,color .22s ease,border-color .22s ease,box-shadow .25s ease,opacity .2s ease;
 }
 body.storefront :is(input,select,textarea):focus-visible{box-shadow:0 0 0 4px #815e751a}
 body.storefront :is(.checkout-method-card,.quick-purchase-choice>span){transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease}
 body.storefront :is(.checkout-methods input:checked+.checkout-method-card,.quick-purchase-choice input:checked+span){box-shadow:inset 0 0 0 1px #815e75}
 body.storefront :is(.quantity button,.mobile-category-card,.mobile-audience-card,.categories button,.store-sections a){transition:scale .2s var(--boutique-ease),background-color .22s ease,color .22s ease,box-shadow .25s ease}
 body.storefront :is(.quantity button,.mobile-category-card,.mobile-audience-card,.categories button,.store-sections a):not(:disabled):active{scale:.97}
 body.storefront :is(.checkout-fields,.checkout-methods,.checkout-summary,.empty-bag,.cart-row,.favorite-item){animation:miloria-surface-in .38s var(--boutique-ease) both}
 body.storefront .checkout-methods{animation-delay:60ms}
 body.storefront details[open]>:not(summary){animation:miloria-disclosure-in .28s ease-out}
 body.storefront :is(.filter-chip,.active-filter-chip){animation:miloria-disclosure-in .22s ease-out}
 body.storefront :is(.catalog-empty-copy,.unavailable-note,#checkout-error:not(:empty),.receipt-action-status:not(:empty)){animation:miloria-disclosure-in .28s ease-out}
 body.storefront :is(.header .brand,.store-sections){animation:miloria-surface-in .6s var(--boutique-ease) both}
 body.storefront .store-sections{animation-delay:90ms}
 @media(hover:hover) and (pointer:fine){
  body.storefront :is(.mobile-category-card,.hero-category-tile,.collection-guide-grid button):hover{box-shadow:0 10px 24px -18px #543a4b88}
  body.storefront :is(.footer a,.text-button):hover{text-decoration-color:currentColor}
 }
 @keyframes miloria-surface-in{from{opacity:.5;translate:0 8px}to{opacity:1;translate:0 0}}
 @keyframes miloria-disclosure-in{from{opacity:.5}to{opacity:1}}
}
body.storefront .bag-loading{display:flex;align-items:center;gap:12px;min-height:44px;color:var(--boutique-muted)}
body.storefront .bag-loading::before{content:"";width:18px;height:18px;flex:0 0 18px;border:2px solid #d9c7d2;border-top-color:#543a4b;border-radius:50%}
@media(prefers-reduced-motion:no-preference){body.storefront .bag-loading::before{animation:miloria-loading-turn .85s linear infinite}@keyframes miloria-loading-turn{to{rotate:360deg}}}
/* Let service labels reflow with larger text instead of overlapping. */
body.storefront .trust-strip{grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr))}
body.storefront .trust-strip>div{min-width:0;overflow-wrap:break-word}
@media(max-width:900px){
 /* A nonanimated rail must keep its first card reachable by touch and keyboard. */
 body.storefront #mobile-audiences:not(.is-looping){justify-content:start}
}
body.storefront .recently-viewed-head{flex-wrap:wrap}
body.storefront .recently-viewed-head>div{min-width:0;flex:1 1 14rem}
body.storefront .recently-viewed-head .text-button{min-height:44px}

/* Apply the same full-photo treatment throughout the shopping journey. */
body.storefront #dialog .detail .photo:has(>img){display:block;aspect-ratio:auto;height:auto;min-height:0;background:transparent;box-shadow:none}
body.storefront #dialog .detail .photo>img{display:block;position:static;inset:auto;width:100%;height:auto;max-width:100%;max-height:none;margin:0;object-fit:contain;border-radius:inherit}
body.storefront :is(.related-photo,.recently-viewed-photo,.favorite-item-photo,.cart-visual,.quick-purchase-image):has(>img){height:auto;min-height:0;aspect-ratio:auto;align-self:center;background:transparent;border:0;box-shadow:none;padding:0}
body.storefront :is(.related-photo,.recently-viewed-photo,.favorite-item-photo,.cart-visual,.quick-purchase-image)>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:inherit}
body.storefront #dialog .thumbnails button{height:auto;min-height:0;align-self:center;background:transparent;padding:0}
body.storefront #dialog .thumbnails img{display:block;width:56px;height:auto;max-height:none;object-fit:contain}
body.storefront .order-product-image{height:auto;max-height:none;background:transparent;object-fit:contain;align-self:center}
body.storefront .hero-subcategory-image:has(>img){height:auto;min-height:0;aspect-ratio:auto;align-self:center;background:transparent;border:0;box-shadow:none;padding:0}
body.storefront .hero-subcategory-image>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:inherit}
body.storefront .hero-3d-card-image:has(>img){display:block;aspect-ratio:auto;height:auto;min-height:0;background:transparent;border:0;box-shadow:none;padding:0}
body.storefront .hero-3d-card-image>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:inherit}
body.storefront #checkout-dialog .receipt-details .order-product-image{height:auto;max-height:none;background:transparent;object-fit:contain}
/* Watches share a frame while keeping the complete watch and included bracelet visible. */
body.storefront .product[data-product-category="Relojes"] .photo:has(>img){
 display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;height:auto;
 padding:clamp(6px,2.5vw,12px);background:#fff;
}
body.storefront .product[data-product-category="Relojes"] .photo>img{
 width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;
}
body.storefront #dialog .detail[data-product-category="Relojes"] .photo:has(>img){
 display:flex;align-items:center;justify-content:center;
 height:clamp(240px,48svh,420px);padding:clamp(8px,2vw,16px);background:#fff;
}
body.storefront #dialog .detail[data-product-category="Relojes"] .photo>img{
 width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;
}
body.storefront #dialog .detail[data-product-category="Relojes"] .thumbnails button{
 display:flex;align-items:center;justify-content:center;width:60px;height:72px;background:#fff;
}
body.storefront #dialog .detail[data-product-category="Relojes"] .thumbnails img{
 width:56px;height:68px;max-height:68px;object-fit:contain;
}
body.storefront .hero-3d-card-image:has(>img),body.storefront #mobile-category-rail .mobile-category-image:has(>img){align-self:start}
/* In the watch detail, the photo stays vertically centred in the visible window while the text scrolls. */
@media(min-width:601px){
 body.storefront #dialog .detail[data-product-category="Relojes"]>div:first-child{
  position:sticky;top:24px;align-self:start;height:calc(min(90vh,88dvh) - 150px);
  display:flex;flex-direction:column;justify-content:center;gap:12px;
 }
}

/* Mobile carousel: a single quiet, comfortable motion control. */
@media(max-width:900px){
 body.storefront .mobile-carousel-control{margin:12px 0 8px}
 body.storefront #mobile-carousel-toggle{min-height:44px;padding:7px 14px;gap:8px;border:1px solid var(--boutique-line);border-radius:999px;background:#fffaf7;font-size:.75rem}
 body.storefront #mobile-carousel-toggle .mobile-carousel-control-icon{width:24px;height:24px;border:0}
}
