/* Header and hero have a wider frame than the content below them. */
.mast .mast-inner,.home .hero-grid{
    width:min(calc(100% - 2 * clamp(20px,2.65vw,54px)),1760px);
}
.mast .mast-inner{display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);gap:clamp(14px,2vw,36px)}
.mast .brand{justify-self:start}
.mast .utilities{justify-self:end}
.mast .desktop-nav,.mast .utilities{gap:clamp(12px,1.4vw,24px)}
.mast .desktop-nav a,.mast .catalog-menu summary{white-space:nowrap}

.home .hero-grid{
    --pc-copy: .76fr;
    --pc-visual: 1.24fr;
    --pc-hero-height:clamp(350px,37vw,570px);
    grid-template-columns:minmax(0,var(--pc-copy)) minmax(0,var(--pc-visual));
    gap:clamp(20px,3.2vw,56px);
    min-height:0;
}
.home .hero-copy{padding:clamp(26px,4vw,62px) 0;min-width:0}
.home .hero-visual{justify-content:flex-end;padding:clamp(18px,2.1vw,35px) 0;order:0}
.home .hero-primary{
    flex:0 1 auto;
    width:min(100%,calc(var(--pc-hero-height) * var(--pc-image-ratio,1.35)));
}
.home .hero-visual img{width:100%;height:auto;display:block}
.home .hero-secondary{order:-1;flex:0 0 23%}
.home .hero-secondary img{max-height:260px;object-fit:contain}
.home.layout-tall .hero-visual{max-width:none;margin-inline:0}
.home.layout-tall .hero-grid{--pc-copy:.82fr;--pc-visual:1.18fr;--pc-hero-height:clamp(350px,36vw,555px)}
.home.layout-editorial .hero-grid{--pc-copy:.87fr;--pc-visual:1.13fr}
.home.layout-editorial .hero-visual a{outline-offset:5px}
.home.layout-gallery .hero-visual{align-items:flex-end}
.home.layout-gallery .hero-secondary{transform:none;margin-bottom:20px}
.home.layout-mosaic .hero-grid{--pc-copy:.72fr;--pc-visual:1.28fr}
.home.layout-mosaic .hero-secondary{flex:0 0 22%;margin:0 -9% 0 0;z-index:1;align-self:flex-end;border:4px solid var(--paper)}
.home.layout-mosaic .hero-primary img{height:auto}
.home.layout-split .hero-visual a{border-radius:26% 2px 2px 2px}
.home.layout-reverse .hero-grid{--pc-copy:.79fr;--pc-visual:1.21fr}
.theme-catalog-ravellorugs .home.layout-gallery .hero-grid{--pc-copy:.88fr;--pc-visual:1.12fr}
.theme-catalog-towelvora .home.layout-tall .hero-grid{--pc-hero-height:clamp(340px,39vw,585px)}
.theme-catalog-stridenora .home.layout-mosaic .hero-grid{--pc-copy:.66fr;--pc-visual:1.34fr}
.theme-catalog-flexavora .home.layout-gallery .hero-secondary{margin-bottom:0;align-self:flex-start}
.theme-catalog-travenlora .home.layout-gallery .hero-secondary{align-self:center}

.woocommerce div.product form.cart .pc-purchase-quantity{display:flow-root;margin-bottom:10px}
.woocommerce div.product form.cart .pc-purchase-quantity:not(:has(input[type="number"])){margin-bottom:0}
.woocommerce div.product form.cart .pc-purchase-quantity div.quantity{float:none;margin:0}
.woocommerce div.product form.cart .quantity.pc-stepper{
    display:inline-grid;
    grid-template-columns:44px minmax(48px,auto) 44px;
    align-items:center;
    border:1px solid var(--line);
    border-radius:7px;
    background:#fff;
}
.woocommerce div.product form.cart .pc-stepper .qty{
    appearance:textfield;
    width:100%;min-width:0;max-width:5.5em;
    border:0;background:transparent;padding:0 4px;color:inherit;
    text-align:center;font-weight:700;
}
.pc-stepper .qty::-webkit-inner-spin-button,.pc-stepper .qty::-webkit-outer-spin-button{appearance:none;margin:0}
.pc-stepper .pc-quantity-step{
    min-height:44px;border:0;background:transparent;color:var(--ink);
    font:700 1.2rem/1 system-ui;
}
.pc-stepper .pc-quantity-step:disabled{opacity:.45;cursor:default}
.woocommerce div.product form.cart .pc-purchase-actions{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(7px,1.4vw,14px);
}
.woocommerce div.product form.cart .pc-purchase-actions .single_add_to_cart_button{
    width:100%;min-height:48px;float:none;margin:0;padding:10px 6px;line-height:1.25;white-space:normal;
}
.woocommerce div.product form.cart .pc-purchase-actions .single_add_to_cart_button:not(.pc-buy-now){
    background:#fff!important;color:var(--ink)!important;
}
.woocommerce div.product form.cart .pc-purchase-actions .single_add_to_cart_button:not(.pc-buy-now):hover{
    background:var(--paper)!important;
}

@media(max-width:860px){
    .mast .mast-inner{grid-template-columns:minmax(0,1fr) auto;gap:8px}
    .mast .desktop-nav{display:none}
    .mast .mobile-nav{display:block}
    .mast .brand{white-space:normal}
}
@media(max-width:700px){
    .mast .mast-inner,.home .hero-grid{width:calc(100% - 28px)}
    .mast .utilities{gap:10px}
    .home .hero-grid{--pc-hero-height:clamp(235px,76vw,460px);grid-template-columns:minmax(0,1fr);gap:4px}
    .home .hero-copy{padding:20px 0 5px}
    .home .hero-visual{padding:8px 0 15px}
    .home.layout-gallery .hero-secondary,.home.layout-mosaic .hero-secondary{margin-bottom:0}
    .home.layout-tall .hero-grid{--pc-hero-height:clamp(235px,76vw,460px)}
    .home.layout-editorial .hero-visual a{outline-offset:3px}
    .home .hero-secondary img{max-height:150px}
}
