/* Phone layout: preserve the collection's desktop identity and photography. */
.mobile-nav{display:none}
@media(max-width:700px){
 html{scroll-padding-top:100px}
 body{padding-bottom:calc(72px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}
 header{height:86px;padding:0 20px;position:sticky;top:0;z-index:5;background:var(--paper)}
 header .brand{width:145px}
 header>nav{display:none}
 .bag{min-width:48px;min-height:48px;justify-content:center}.bag-label{display:none}
 .preview-note{font-size:9px;padding:7px 12px;letter-spacing:1px}.preview-note span{display:none}
 .hero{grid-template-columns:1fr;min-height:0}
 .hero-copy{padding:32px 24px 28px}
 .hero .eyebrow{font-size:9px;margin-bottom:16px}
 .hero h1{font-size:46px;letter-spacing:-1.5px;margin-bottom:18px}
 .hero p{font-size:14px;line-height:1.7;margin-bottom:24px}.hero p br{display:none}
 .hero .primary{width:100%;font-size:13px}.hero-caption{display:none}
 .hero-photo{min-height:280px;order:2}.hero-photo img{object-position:center 55%}
 .benefits{padding:18px 20px;font-size:10px;line-height:1.5;gap:12px}.benefits span{flex:1}.benefits b{display:block;margin:0 0 6px}
 .universe{grid-template-columns:1fr 1fr}.universe button{padding:22px 16px;min-width:0}.universe button span{font-size:21px}.universe button p{font-size:11px}
 .collection{padding:40px 20px 48px}.section-heading{display:block}.section-heading h2{font-size:33px;letter-spacing:-1px}.section-heading p{font-size:13px;margin-top:16px}.section-heading p br{display:none}
 .catalog-tools{display:block;border:0}.tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:thin;scroll-snap-type:x proximity;max-width:100%}
 .tabs button{flex:0 0 auto;scroll-snap-align:start;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:2px;font-size:12px;white-space:nowrap}.tabs button.active{background:var(--ink);color:white;border-color:var(--ink)}
 .catalog-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:0;padding:8px 0 14px}.search{min-width:0}.search input{width:100%;min-width:0;font-size:16px;min-height:46px}.sort-label{min-width:0}#sort{width:100%;max-width:none;min-height:46px;font-size:13px;border:1px solid var(--line);padding:8px}
 .subcategories{gap:6px}.subcategories button{min-height:44px;padding:9px 12px;font-size:12px}
 .category-description{font-size:13px;line-height:1.6}.catalog-summary{font-size:10px;gap:10px;flex-direction:column;padding:14px 0 20px}.catalog-summary>span+span{max-width:none;text-align:left}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.product-type{font-size:9px;letter-spacing:.7px}.product-title{display:block}.product-title button{font-size:19px;min-height:44px;line-height:1.2}.product-title strong{font-size:14px;display:block;margin-top:5px}.product-sub{font-size:11px;line-height:1.6;min-height:36px}.product-bottom{flex-wrap:wrap;gap:8px}.swatches{gap:4px;flex-wrap:wrap}.swatch{width:12px;height:12px}.quick-add{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;font-size:13px;border:1px solid var(--line);padding:8px 12px}.product-tag{max-width:calc(100% - 16px)}
 .offer{margin:0;grid-template-columns:1fr;padding:32px 24px}.offer h2{font-size:36px}.story{grid-template-columns:1fr;padding:48px 24px}.story h2{font-size:36px}.story p{font-size:14px}.contact{display:block;padding:36px 24px}.contact h2{font-size:30px}.contact p{font-size:14px}.contact .primary{width:100%;margin-top:24px}.text-link,footer button{min-height:44px;align-items:center}
 footer{padding:30px 24px}footer>div{flex-wrap:wrap;gap:4px 18px}footer button{font-size:12px}
 .mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;position:fixed;bottom:0;left:0;right:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);z-index:6;box-shadow:0 -3px 20px #233a3506}
 .mobile-nav a,.mobile-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:48px;font:11px/1.2 Arial,sans-serif;padding:2px}.mobile-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}.mobile-nav b{font-size:9px;background:var(--ink);color:white;border-radius:10px;padding:2px 5px;margin-left:2px}
 dialog{max-width:100%;max-height:calc(100dvh - 24px);padding:56px 22px 24px;width:calc(100% - 24px);overscroll-behavior:contain}
 dialog .close{width:44px;height:44px;right:8px;top:8px;z-index:2;border-radius:50%;background:var(--paper);border:1px solid var(--line)}
 .product-dialog,.product-dialog:has(.corail-photo){width:100%;max-width:100%;max-height:100dvh;margin:0;border-radius:0;position:fixed;inset:0;padding:0}
 .detail-grid,.product-dialog:has(.corail-photo) .detail-grid{grid-template-columns:1fr}
 .detail-image{position:static;min-height:0;padding:12px 48px;background:#efede6}
 .detail-image svg{max-height:35dvh}.detail-image>img,.detail-image .color-photo>img,.detail-image .corail-photo>img{width:100%;height:auto;max-height:36dvh;object-fit:contain}
 .detail-image .color-photo{width:100%}.detail-image .color-photo figcaption{font-size:12px;padding:6px}.detail-image .reference-photo summary{min-height:44px;display:flex;align-items:center;justify-content:center;font-size:11px}.detail-image .reference-photo img{max-height:45dvh}
 .detail-copy{padding:26px 24px calc(28px + env(safe-area-inset-bottom))}.detail-copy h2{font-size:30px}.detail-copy p{font-size:14px}.detail-copy .eyebrow{margin-bottom:14px}.detail-price{margin:16px 0}.detail-copy ul{font-size:13px}.variant-choices label{font-size:12px}.variant-choices select{font-size:16px;min-height:48px}.detail-copy .primary{min-height:54px;font-size:14px}
 .cart-dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;min-height:0;padding:20px 20px calc(24px + env(safe-area-inset-bottom));display:none;flex-direction:column}.cart-dialog[open]{display:flex}.drawer-heading{flex-shrink:0;padding:8px 48px 20px 0}.drawer-heading .close{position:absolute}.drawer-heading h2{font-size:28px}#cart-items{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}#cart-footer{flex-shrink:0}.cart-totals{margin:14px 0}.cart-totals>div{font-size:12px;margin:6px 0}.cart-totals .total{font-size:16px}.cart-item{grid-template-columns:64px minmax(0,1fr);gap:12px}.cart-item>div{min-width:0}.cart-thumb{width:64px;height:90px}.cart-item h3{font-size:18px}.cart-item p{font-size:12px}.quantity-row{flex-wrap:wrap;gap:4px 8px}.stepper{gap:4px}.stepper button{width:44px;height:44px}.remove{min-height:44px;font-size:12px}.cart-line-price{font-size:13px}.cart-dialog .notice{font-size:10px!important;padding:8px 10px;margin-bottom:0}
 .checkout-dialog h2{font-size:30px}.checkout-dialog .primary,.secondary{min-height:48px}#order-summary{font-size:13px}#order-summary>div>span:last-child{white-space:nowrap}
 #toast{bottom:calc(84px + env(safe-area-inset-bottom));width:calc(100% - 32px);font-size:13px;text-align:center;padding:13px 16px}
}
@media(max-width:360px){.hero h1{font-size:41px}.collection{padding-left:16px;padding-right:16px}.product-grid{gap:24px 12px}.universe button span{font-size:19px}}
@media(max-width:700px){.hero-carousel{height:450px;min-height:0}.slideshow-controls{bottom:12px}.slideshow-label{top:10px;left:10px;font-size:9px}}
@media(max-width:360px){.hero-carousel{height:410px}}
/* A compact first view keeps the photograph and purchase controls together. */
@media(max-width:700px){
 .product-dialog .detail-grid{min-height:100dvh;align-content:start}
 .product-dialog .detail-image{padding:8px 52px;min-height:0;height:clamp(140px,34dvh,300px)}
 .product-dialog .detail-image>img,.product-dialog .detail-image svg,.product-dialog .detail-image .color-photo>img,.product-dialog .detail-image .corail-photo>img{width:100%;height:100%;max-height:100%;object-fit:contain}
 .product-dialog .detail-image .color-photo{height:100%;margin:0;padding:0}.product-dialog .detail-image figcaption{display:none}
 .product-dialog .detail-copy{padding:14px 20px calc(12px + env(safe-area-inset-bottom))}
 .product-dialog .detail-copy .eyebrow{font-size:9px;line-height:1.3;margin:0 0 6px;letter-spacing:1.4px}
 .product-dialog .detail-copy h2{font-size:26px;line-height:1.08;letter-spacing:-.6px;margin:0 0 8px}
 .product-dialog .detail-price{font-size:20px;line-height:1.3;margin:0 0 10px}.product-dialog .detail-price small{font-size:10px}
 .product-dialog .duo-detail{font-size:13px;line-height:1.4;margin:0 0 8px;padding:8px 10px}.product-dialog .duo-detail small{display:none}
 .product-dialog .detail-format{display:block;font-size:12px;line-height:1.4;margin:0 0 8px;color:var(--muted)}
 .product-dialog .variant-choices{gap:8px;margin:0 0 12px}.product-dialog .color-picker-label{font-size:12px;line-height:1.4;margin:0 0 3px}.product-dialog .color-picker-options{gap:6px;padding:3px}.product-dialog .color-choice{width:44px;height:44px;min-width:44px}.product-dialog .color-choice>span{width:30px;height:30px}
 .product-dialog .detail-copy .primary{min-height:48px;padding:12px 18px;font-size:14px}
 .product-more{margin-top:8px;border-top:1px solid var(--line)}.product-more>summary{display:list-item;min-height:44px;padding:12px 0;font-size:12px;cursor:pointer;color:var(--ink)}.product-more-content>p{font-size:13px!important}.product-more-content .reference-photo{margin-top:12px}
 .product-dialog .close{width:44px;height:44px;top:6px;right:6px}
}
@media(max-width:700px) and (max-height:700px){
 .product-dialog .detail-image{height:32dvh;min-height:100px}
 .product-dialog .detail-copy{padding-top:10px}.product-dialog .detail-copy h2{font-size:24px;margin-bottom:6px}.product-dialog .detail-price{margin-bottom:7px}.product-dialog .duo-detail{padding:6px 9px;margin-bottom:6px}.product-dialog .detail-format{margin-bottom:5px}.product-dialog .variant-choices{margin-bottom:8px}
}
@media(max-width:700px){
 .product-dialog .corail-detail .detail-image{height:clamp(154px,37.4dvh,330px);padding-left:47px;padding-right:47px}
 .product-dialog .detail-copy h2.model-title{font-size:29px;margin-bottom:4px}
 .product-dialog .detail-copy .model-subtitle{font-size:13px;line-height:1.35;margin:0 0 9px}
}
@media(max-width:700px) and (max-height:700px){.product-dialog .corail-detail .detail-image{height:35.2dvh;min-height:110px}.product-dialog .detail-copy h2.model-title{font-size:27px}}
.checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.checkout-fields label{display:flex;flex-direction:column;gap:5px;font-size:12px}.checkout-fields .wide{grid-column:1/-1}.checkout-fields input,.checkout-fields select{width:100%;max-width:none;padding:12px;border:1px solid #b7beb4;border-radius:4px;background:#fff;color:#233a35;font-size:16px;min-width:0}.checkout-accept{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.6;margin:18px 0}.checkout-accept input{margin-top:5px;flex:none}.payment-reassurance{text-align:center;font-size:11px!important;margin-top:12px}#payment-error{color:#9b3428;font-size:13px}#pay-order:disabled{opacity:.55;cursor:not-allowed}.checkout-dialog{max-height:92dvh}.checkout-dialog .primary{margin-top:12px}
@media(max-width:420px){.checkout-fields{grid-template-columns:1fr}.checkout-fields .wide{grid-column:auto}.checkout-dialog{padding:30px 20px}}

/* Approved Cotton Royal presentation: full artwork on desktop, legible type on phones. */
.hero:has(.hero-brand-copy){grid-template-columns:1fr;min-height:0}
.hero-brand-copy{padding:0 0 32px;align-items:center;background:#fcf8f2}
.brand-banner-window{width:100%;max-width:1280px;overflow:hidden}
.brand-banner{display:block;width:100%;height:auto;margin-top:-14.82%}
.brand-mobile-presentation{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hero-brand-copy .primary{min-width:260px}
.hero:has(.hero-brand-copy) .hero-carousel{height:560px;min-height:0}
@media(max-width:700px){
 .hero-brand-copy{padding:24px 18px 28px}
 .brand-banner-window{display:none}
 .brand-mobile-presentation{position:static;width:100%;height:auto;padding:0;overflow:visible;clip-path:none;white-space:normal;text-align:center;color:#232320}
 .hero .brand-mobile-presentation h1{display:flex;justify-content:center;align-items:baseline;gap:5px;white-space:nowrap;font:300 clamp(14px,4.05vw,28px)/1.3 Arial,Helvetica,sans-serif;letter-spacing:-.5px;margin:0 0 30px}
 .brand-mobile-presentation h1 em{font-family:Georgia,'Times New Roman',serif;font-weight:400}
 .brand-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 28px}
 .brand-values>div{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:13px;letter-spacing:.6px}
 .brand-values svg{width:65px;height:65px;fill:none;stroke:#232320;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
 .brand-values .copper-thread{stroke:#ae5b40}
 .hero .brand-mobile-presentation p{font-size:14px;line-height:1.75;color:#454640;margin:0 auto 26px;max-width:450px}
 .hero-brand-copy .primary{width:100%;min-width:0}
 .hero:has(.hero-brand-copy) .hero-carousel{height:450px}
}

/* Keep the existing header logo centered in the viewport. */
header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
header>.brand{grid-column:2;grid-row:1;justify-self:center}
header>nav{grid-column:1;grid-row:1;justify-self:start}
header>.bag{grid-column:3;grid-row:1;justify-self:end}
@media(min-width:701px) and (max-width:1000px){header>nav{gap:16px;font-size:12px}}

/* Keep model choices directly beneath their parent category tabs. */
.catalog-tools{display:block}
.catalog-tools>.subcategories{margin:8px 0 12px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.catalog-tools>.subcategories:empty{display:none}

/* Category switching is separate from the models of the selected collection. */
.category-navigation{display:flex;align-items:center;gap:20px;padding:18px 0 24px;border-bottom:1px solid var(--line);margin-bottom:24px}
.category-navigation>label{font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;flex-shrink:0}
#category-select{min-height:50px;padding:12px 36px 12px 14px;border:1px solid #b5bca5;border-radius:3px;background:var(--paper);color:var(--ink);font-size:15px;max-width:100%;width:390px;min-width:0}
.model-navigation{padding:0 0 22px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.model-navigation[hidden]{display:none}
#model-heading{font:normal 28px/1.2 var(--serif);margin:0 0 6px;letter-spacing:0}
.model-instruction{font-size:12px;margin:0 0 12px}
.model-navigation>.subcategories{margin:0;gap:8px}
.model-navigation .subcategories button{font-size:13px;min-height:44px;padding:10px 14px;white-space:normal;text-align:left;max-width:100%}
@media(max-width:700px){.category-navigation{display:block;padding:0 0 22px;margin-bottom:22px}.category-navigation>label{display:block;margin-bottom:8px;font-size:10px}#category-select{width:100%;font-size:16px}#model-heading{font-size:26px}.model-navigation .subcategories button{font-size:12px}}

/* The collection entry opens the category overview, before any filtered results. */
.universe-intro{grid-column:1/-1}
.universe-intro h2{font-size:34px;letter-spacing:-.6px;margin:0 0 10px}
.universe-intro p{font-size:13px;margin:0}
@media(max-width:700px){.universe-intro h2{font-size:30px}.universe-intro p{font-size:12px}}

/* Fine line pictograms for the four collections. */
.universe .universe-icon{display:block;width:42px;height:42px;fill:none;stroke:var(--ink);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;margin-bottom:18px}
@media(max-width:700px){.universe .universe-icon{width:38px;height:38px;margin-bottom:16px}}

.product-more-content>p:first-child{white-space:pre-line}

.language-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:5px 5%;border-bottom:1px solid var(--line);background:var(--paper);font-size:11px;min-height:36px}
.language-bar select{color:var(--ink);background:transparent;border:0;padding:5px 20px 5px 6px;font-size:12px;min-height:30px;max-width:145px}
html:not([lang="fr"]) .brand-banner-window{display:none}
html:not([lang="fr"]) .brand-mobile-presentation{display:block;position:static;width:100%;height:auto;overflow:visible;clip-path:none;white-space:normal;text-align:center;padding:28px 5% 0}
html:not([lang="fr"]) .brand-mobile-presentation h1{display:block;white-space:normal;font:clamp(23px,2.5vw,40px)/1.4 Arial,sans-serif;letter-spacing:-.7px;margin:0 0 28px}
html:not([lang="fr"]) .brand-mobile-presentation h1 em{font-family:var(--serif);font-weight:normal}
html:not([lang="fr"]) .brand-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 28px}
html:not([lang="fr"]) .brand-values>div{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:13px}
html:not([lang="fr"]) .brand-values svg{width:60px;height:60px;fill:none;stroke:#232320;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
html:not([lang="fr"]) .brand-values .copper-thread{stroke:#ae5b40}
html:not([lang="fr"]) .hero .brand-mobile-presentation p{font-size:14px;line-height:1.75;margin:0 auto 26px;max-width:450px}
html:not([lang="fr"]) .tabs button,html:not([lang="fr"]) .primary{white-space:normal}
@media(max-width:700px){.language-bar{padding-right:20px;padding-left:20px}.language-bar select{font-size:14px;min-height:34px}html:not([lang="fr"]) .brand-mobile-presentation h1{font-size:clamp(18px,4.8vw,27px)}html:not([lang="fr"]) .universe button span{font-size:20px}html:not([lang="fr"]) .mobile-nav a,html:not([lang="fr"]) .mobile-nav button{font-size:10px}}
