/* Horizontal product cards keep tablet pricing and quantities together. */
@media(min-width:701px) and (max-width:1599px){
  html.store-untitled body:has(.direct-catalog){font-size:16px;min-width:0}
  html.store-untitled body:has(.direct-catalog)>.sidebar{display:none}
  html.store-untitled body:has(.direct-catalog)>.app-shell{margin-left:0}
  html.store-untitled body:has(.direct-catalog) .topbar{min-height:64px;padding:8px 16px;gap:12px}
  html.store-untitled body:has(.direct-catalog) .topbar-left{flex:1;min-width:0;gap:10px}
  html.store-untitled body:has(.direct-catalog) .menu-toggle{display:inline-flex;width:44px;height:44px;min-height:44px;padding:12px}
  html.store-untitled body:has(.direct-catalog) .topbar-brand{display:inline-flex;width:44px;min-width:44px;height:44px}
  html.store-untitled body:has(.direct-catalog) .topbar-brand img{width:36px;height:40px}
  html.store-untitled body:has(.direct-catalog) .breadcrumbs{font-size:18px;line-height:1.3}
  html.store-untitled body:has(.direct-catalog) .topbar-right{gap:10px}
  html.store-untitled body:has(.direct-catalog) .topbar .button{font-size:14px;min-height:44px;padding:8px 12px;line-height:24px}
  html.store-untitled body:has(.direct-catalog) .topbar .avatar{width:44px;height:44px;padding:3px;box-sizing:border-box}
  html.store-untitled main:has(>.direct-catalog){padding:16px 16px 0;min-height:calc(100dvh - 64px);max-width:none;width:100%;gap:16px}
  html.store-untitled .direct-catalog>form{gap:12px}
  html.store-untitled .direct-catalog .catalog-shelf-grid{grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch}
  html.store-untitled .catalog-shelf.direct-catalog .catalog-purchase-card{display:grid;grid-template-columns:clamp(160px,18vw,240px) minmax(0,1fr) 124px;grid-template-rows:auto auto;align-items:center;column-gap:16px;row-gap:0;padding:12px!important;min-height:0;border-radius:12px}
  html.store-untitled .catalog-shelf.direct-catalog .catalog-card-identity{grid-column:1;grid-row:1;min-height:78px;gap:10px;margin:0;padding:0;border:0}
  html.store-untitled .catalog-shelf.direct-catalog .catalog-card-identity>img{width:36px;height:42px;flex:none}
  html.store-untitled .direct-catalog .catalog-card-identity>div{min-width:0}
  html.store-untitled .direct-catalog .catalog-card-identity h2{font-size:clamp(16px,1.6vw,20px);line-height:1.35;overflow-wrap:anywhere}
  html.store-untitled .direct-catalog .catalog-card-identity p{font-size:12px;line-height:1.5;margin-top:3px}
  html.store-untitled .direct-catalog .product-manual-link{display:inline-flex;align-items:center;font-size:12px;line-height:1.4;min-height:44px;margin-top:0}
  html.store-untitled .direct-catalog .direct-quantity-list{grid-column:2;grid-row:1/3;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto;gap:6px;min-height:0;max-height:none;flex:none;align-self:stretch;align-items:center}
  html.store-untitled .direct-catalog .direct-quantity-row{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:112px;gap:4px;padding:8px 2px;border-color:var(--border);border-radius:10px}
  html.store-untitled .direct-catalog .direct-quantity-row>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0;align-items:center}
  html.store-untitled .direct-catalog .direct-quantity-row label{font-size:14px;white-space:nowrap}
  html.store-untitled .direct-catalog .direct-quantity-row strong{font-size:15px}
  html.store-untitled .direct-catalog .direct-quantity-row>div:first-child>span{font-size:12px;white-space:nowrap}
  html.store-untitled .direct-catalog .direct-price-unit{display:none}
  html.store-untitled .direct-catalog .direct-quantity-row:is(.is-current,.is-selected){border-color:#c3d8e7}
  html.store-untitled .direct-catalog .direct-period-controls{gap:2px;justify-content:center;position:relative}
  html.store-untitled .direct-catalog .direct-period-select{width:44px;height:44px;padding-bottom:12px}
  html.store-untitled .direct-catalog .direct-selected-count{position:absolute;left:50%;bottom:0;transform:translateX(-50%);font-size:12px}
  html.store-untitled .direct-catalog .direct-product-summary{grid-column:3;grid-row:1/3;display:grid;grid-template-rows:minmax(0,1fr) 44px;align-self:center;min-height:112px;margin:0;padding:0 0 0 4px;border:0;gap:8px}
  html.store-untitled .direct-catalog .direct-selection-tools{grid-column:1;grid-row:2;gap:0;flex-wrap:nowrap}
  html.store-untitled .direct-catalog .direct-selection-tools>[data-direct-active-term]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html.store-untitled .direct-catalog .direct-stepper{grid-template-columns:44px 32px 44px}
  html.store-untitled .direct-catalog .direct-stepper .input{width:32px;font-size:16px}
  html.store-untitled .direct-catalog .direct-product-total{grid-column:1;grid-row:1;align-self:end;flex:none;width:100%;min-width:0;font-size:13px;flex-direction:column;gap:4px;align-items:flex-end}
  html.store-untitled .direct-catalog .direct-product-total strong{min-width:0;max-width:100%;font-size:clamp(18px,1.6vw,24px);overflow-wrap:anywhere;text-align:right}
  html.store-untitled .direct-catalog .direct-product-summary:has(.direct-selection-tools:not([hidden])) .direct-product-total>span{display:inline}
  html.store-untitled .direct-catalog .direct-contact-panel{position:relative;grid-column:1;grid-row:2;display:block;min-width:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
  html.store-untitled .direct-catalog .direct-contact-panel>summary{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;font-size:13px;color:var(--accent);list-style:none;cursor:pointer}
  .direct-contact-panel>summary::-webkit-details-marker,.direct-redemption-panel>summary::-webkit-details-marker{display:none}
  html.store-untitled .direct-contact-panel>summary .icon,html.store-untitled .direct-redemption-panel>summary>.icon{width:14px;height:14px;transform:rotate(90deg)}
  html.store-untitled .direct-contact-panel[open]>summary .icon,html.store-untitled .direct-redemption-panel[open]>summary>.icon{transform:rotate(-90deg)}
  html.store-untitled .direct-catalog .catalog-purchase-card .catalog-contact{position:absolute;z-index:20;left:0;top:calc(100% + 8px);width:216px;box-sizing:border-box;flex-direction:column;padding:16px;margin:0;gap:10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 12px 24px #1018281f;text-align:center}
  html.store-untitled .direct-catalog .direct-contact-panel[data-contact-above] .catalog-contact{top:auto;bottom:calc(100% + 8px)}
  html.store-untitled .direct-catalog .direct-contact-panel .catalog-contact:after{content:'';position:absolute;left:24px;top:-5px;width:8px;height:8px;transform:rotate(45deg);border-top:1px solid var(--border);border-left:1px solid var(--border);background:var(--surface)}
  html.store-untitled .direct-catalog .direct-contact-panel[data-contact-above] .catalog-contact:after{top:auto;bottom:-5px;border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
  html.store-untitled .direct-catalog .catalog-contact img{width:160px;height:160px}
  html.store-untitled .direct-catalog .catalog-contact figcaption{align-items:center;gap:2px}
  html.store-untitled .direct-catalog .catalog-contact figcaption strong{display:none}
  html.store-untitled .direct-catalog .catalog-contact figcaption span{font-size:12px}
  html.store-untitled .direct-catalog .direct-checkout-bar{grid-template-columns:minmax(0,1fr) auto auto;gap:12px 24px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));min-height:66px;bottom:0;align-self:stretch}
  html.store-untitled .direct-catalog .direct-redemption-panel{display:block;grid-column:1;grid-row:1;min-width:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
  html.store-untitled .direct-catalog .direct-redemption-panel>summary{display:none}
  html.store-untitled .direct-catalog .direct-redemption{display:flex;grid-column:auto;align-items:center;justify-content:flex-start;gap:12px}
  html.store-untitled .direct-catalog .direct-redemption-content{width:auto;flex:0 1 440px;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
  html.store-untitled .direct-catalog .direct-redemption-content .input{width:100%;max-width:280px;min-width:120px;height:44px;min-height:44px;font-size:16px;flex:1 1 160px}
  html.store-untitled .direct-catalog .direct-redemption-content p{font-size:13px;line-height:1.5;margin:0;white-space:normal;overflow-wrap:anywhere}
  html.store-untitled .direct-catalog .direct-redemption>label{font-size:14px;line-height:44px}
  html.store-untitled .direct-catalog .direct-payment-total{grid-column:2;grid-row:1;display:flex;flex-direction:row;align-items:center;gap:20px}
  html.store-untitled .direct-catalog .direct-price-breakdown{font-size:12px;line-height:1.5;gap:4px 12px;justify-content:flex-start}
  html.store-untitled .direct-catalog .direct-payable{gap:8px}
  html.store-untitled .direct-catalog .direct-payable>span{font-size:14px}
  html.store-untitled .direct-catalog .direct-payable>strong{font-size:26px}
  html.store-untitled .direct-catalog .direct-checkout-bar>.button{grid-column:3;grid-row:1;font-size:15px;min-width:120px;min-height:44px;padding:9px 16px;line-height:24px;white-space:nowrap}
  html.store-untitled .direct-catalog :is(input,button,summary,a){scroll-margin-block:80px 100px}
  html.store-untitled main:has(>.direct-catalog)>.footer{margin-top:auto;padding-block:12px;font-size:12px;gap:8px}
  html.store-untitled main:has(>.direct-catalog)>.footer .legal-links{font-size:12px;gap:8px 12px}
  html.store-untitled[lang=en] .direct-catalog .direct-quantity-row>div:first-child{display:flex;flex-direction:column;align-items:center;gap:4px}
  html.store-untitled[lang=en] .direct-catalog .direct-quantity-row label{font-size:12px;line-height:1.3}
  html.store-untitled[lang=en] .direct-catalog .direct-price-unit{display:none}
}
@media(min-width:701px) and (max-width:1000px){
  html.store-untitled .direct-catalog .direct-checkout-bar{column-gap:16px}
  html.store-untitled .direct-catalog .direct-payment-total{flex-direction:column-reverse;align-items:flex-end;gap:2px;max-width:200px}
  html.store-untitled .direct-catalog .direct-price-breakdown{flex-wrap:wrap;gap:0 8px}
  html.store-untitled .direct-catalog .direct-redemption-content{flex-basis:280px}
}
@media(min-width:701px) and (max-width:900px){
  html.store-untitled .catalog-shelf.direct-catalog .catalog-purchase-card{column-gap:12px}
  html.store-untitled .direct-catalog .direct-quantity-list{gap:4px}
  html.store-untitled .direct-catalog .direct-quantity-row strong{font-size:13px}
  html.store-untitled .direct-catalog .catalog-card-identity h2{font-size:16px}
  html.store-untitled .direct-catalog .direct-selected-count{font-size:11px}
}


/* Portrait tablets put the price choices across the full card width. */
@media(min-width:701px) and (max-width:1599px) and (orientation:portrait){
  html.store-untitled .catalog-shelf.direct-catalog .catalog-purchase-card{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:10px 16px;padding:12px 16px!important}
  html.store-untitled .catalog-shelf.direct-catalog .catalog-card-identity{grid-column:1/-1;grid-row:1;min-height:56px;gap:12px}
  html.store-untitled .catalog-shelf.direct-catalog .catalog-card-identity>img{width:44px;height:52px}
  html.store-untitled .direct-catalog .catalog-card-identity>div{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:20px;flex:1}
  html.store-untitled .direct-catalog .catalog-card-identity h2{grid-column:1;grid-row:1;font-size:20px;line-height:1.3}
  html.store-untitled .direct-catalog .catalog-card-identity p{grid-column:1;grid-row:2;font-size:13px;margin-top:2px}
  html.store-untitled .direct-catalog .product-manual-link{grid-column:2;grid-row:1/3;font-size:13px;white-space:nowrap;min-height:44px}
  html.store-untitled .direct-catalog .direct-quantity-list{grid-column:1/-1;grid-row:2;gap:8px}
  html.store-untitled .direct-catalog .direct-quantity-row{min-height:clamp(104px,calc((100dvh - 716px)/3),184px);gap:8px;padding:10px 4px}
  html.store-untitled .direct-catalog .direct-quantity-row>div:first-child{gap:8px}
  html.store-untitled .direct-catalog .direct-quantity-row label{font-size:14px;line-height:1.4}
  html.store-untitled .direct-catalog .direct-quantity-row strong{font-size:17px}
  html.store-untitled .direct-catalog .direct-selected-count{font-size:12px}
  html.store-untitled .direct-catalog .direct-contact-panel{grid-column:1;grid-row:3;align-self:center}
  html.store-untitled .direct-catalog .direct-product-summary{grid-column:2;grid-row:3;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;min-height:44px;margin:0;padding:0;gap:20px}
  html.store-untitled .direct-catalog .direct-selection-tools{flex:none}
  html.store-untitled .direct-catalog .direct-product-total{align-self:auto;display:flex;flex-direction:row;align-items:center;gap:10px;flex:none;width:auto}
  html.store-untitled .direct-catalog .direct-product-total strong{font-size:22px;white-space:nowrap}
  html.store-untitled[lang=en] .direct-catalog .direct-quantity-row label{font-size:14px}
}

@media(min-width:1600px){
  html.store-untitled .direct-catalog .catalog-shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1600px) and (max-width:1799px){
  html.store-untitled .direct-catalog .direct-quantity-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  html.store-untitled .direct-catalog .direct-quantity-row>div:first-child{grid-template-columns:56px minmax(0,1fr);gap:8px}
}
