/* Gastonello homepage only: never changes production header, checkout, or Marmite layout. */
.unified-home-catalog[hidden]{display:none!important}
/* Preserve the original Gastonello category tabs and products BELOW the new three primary groups. */
body.unified-home-active #crossCartDiscoveryProducts,
body.unified-home-active [data-cross-cart-cta],
body.unified-home-active #crossCatalogPartnerContent{display:none!important}
.unified-home-catalog{margin:14px 0 26px;color:#241c16}
.unified-home-primary{display:flex;flex-wrap:wrap;gap:12px;margin:2px 0 20px}
.unified-home-categories{display:flex;gap:9px;overflow-x:auto;scrollbar-width:thin;padding:2px 0 12px;margin-bottom:18px}
.unified-home-tab{border:1px solid #dfd2c2;border-radius:24px;background:white;white-space:nowrap;cursor:pointer;min-height:40px;padding:10px 16px;font:800 13px/1.2 Inter,system-ui,sans-serif}
.unified-home-primary .unified-home-tab{border-radius:12px;min-width:143px;padding:15px 22px;font-size:16px}
.unified-home-tab:hover{border-color:#bb242a}
.unified-home-tab.is-active{background:#161312;border-color:#161312;color:white}
.unified-home-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:17px}
.unified-home-card{background:white;border:1px solid #e6d9c9;border-radius:17px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 5px 23px rgba(45,23,12,.045)}
.unified-home-card-content{display:flex;flex-direction:column;gap:10px;padding:17px;flex:1}
.unified-home-image{width:100%;height:178px;object-fit:cover}
.unified-home-origin{font-size:10px;letter-spacing:.08em;font-weight:900;text-transform:uppercase;color:#735c42}
.unified-home-card h3{font:800 20px/1.24 Georgia,serif;color:#241c16;margin:0}
.unified-home-description{font-size:13px;line-height:1.48;color:#675b50;margin:0 0 9px}
.unified-home-card-actions{display:flex;gap:9px;align-items:center;justify-content:space-between;margin-top:auto}
.unified-home-card-actions strong{font-size:13px;white-space:nowrap}
.unified-home-add,.unified-home-basket,.unified-home-save{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#b51b23;border:0;border-radius:9px;padding:11px 14px;color:white;font-size:13px;font-weight:800;cursor:pointer}
.unified-home-basket[aria-disabled=true]{opacity:.55;cursor:not-allowed}
.unified-home-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:23px;border-top:1px solid #e5d8c6;padding:17px 0;flex-wrap:wrap}
.unified-home-summary{font-size:13px;font-weight:650}
.unified-home-dialog,.unified-cart-dialog{border:1px solid #ddd1c2;border-radius:18px;background:#fffdf9;padding:0;color:#241c16;box-shadow:0 25px 80px rgba(0,0,0,.25);width:min(620px,calc(100vw - 30px));max-height:85dvh;overflow:auto}
.unified-home-dialog::backdrop,.unified-cart-dialog::backdrop{background:rgba(14,13,12,.65)}
.unified-home-dialog-form,.unified-cart-box{padding:24px;display:flex;flex-direction:column;gap:17px}
.unified-home-dialog-header{display:flex;align-items:start;justify-content:space-between;gap:15px}
.unified-home-dialog-header h3{margin:0;font:800 25px/1.2 Georgia,serif}
.unified-home-close{border:0;background:transparent;font-size:29px;line-height:1;cursor:pointer}
.unified-home-option-fields{display:flex;flex-direction:column;gap:14px}
.unified-option-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:750}
.unified-option-field select,.unified-option-field textarea{width:100%;border:1px solid #d6c9b9;background:#fff;border-radius:8px;padding:10px;font:inherit;color:#201915}
.unified-option-section{border:1px solid #e7dac9;border-radius:12px;padding:12px}
.unified-option-section h4{font-size:14px;margin:0 0 9px}
.unified-home-check{display:flex;gap:9px;align-items:center;padding:5px;font-size:13px}
.unified-home-dialog-actions{display:flex;justify-content:end;gap:12px}
.unified-home-cancel,.unified-home-cart-line button{background:transparent;border:1px solid #d8c9b6;border-radius:8px;padding:10px;cursor:pointer}
.unified-home-cart-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #ede0d1}
.unified-home-cart-notice,.unified-home-form-notice{font-size:13px;color:#a51e29}
.unified-menu-slot{padding:8px 0}
.unified-menu-nested{margin-top:12px;border-left:3px solid #cdb892;padding-left:12px;display:flex;flex-direction:column;gap:12px}
@media(max-width:600px){.unified-home-primary .unified-home-tab{flex:1 1 100%;min-width:0}.unified-home-grid{grid-template-columns:1fr}.unified-home-dialog-form,.unified-cart-box{padding:16px}}

.unified-home-return{border:1px solid #b51b23;border-radius:10px;color:#b51b23;background:#fff;padding:10px 14px;font-weight:800;margin-top:10px;cursor:pointer}

/* Original navigation remains visible below the three new groups; avoid duplicate category bars. */
body.unified-home-active .unified-home-categories{display:none}

/* Exactly one catalog is visible; native DOM and its handlers are retained. */
.unified-home-results[hidden],.unified-home-footer[hidden]{display:none!important}
body.cross-native-hidden #menuContent,body.cross-native-hidden #categoryTabs{display:none!important}
#crossCartDiscoveryProducts,[data-cross-cart-cta],#crossCatalogPartnerContent{display:none!important}
.unified-home-primary{flex-wrap:nowrap;gap:8px;overflow-x:auto}
.unified-home-primary .unified-home-tab{flex:1;min-width:0;white-space:normal}
.unified-home-product-info img{display:block;width:100%;max-height:300px;object-fit:cover;border-radius:12px}
.unified-home-product-info p{white-space:pre-line;line-height:1.5}
.unified-home-cart-line small{display:block;max-width:28rem}
.unified-home-selection-price{text-align:right}
#crossCatalogDisplaySettings label{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
@media(max-width:600px){.unified-home-primary .unified-home-tab{flex:1;padding:12px 8px;font-size:14px;min-height:48px}.unified-home-cart-line{flex-wrap:wrap}}

.partner-add-button{border:0;border-radius:50%;background:#b51b23;color:white;width:40px;height:40px;font-size:25px;cursor:pointer;flex-shrink:0}


/* Cross-catalog supplements: same compact rows as native Gastonello. */
.cross-supplement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:250px;overflow-y:auto;overflow-x:hidden;min-width:0;margin-top:9px}
.cross-supplement-grid .cross-supplement-choice{box-sizing:border-box;display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-width:0;margin:0;padding:11px;background:#f6f1ea;border:1px solid transparent;border-radius:10px;cursor:pointer;font:700 16px/1.3 Inter,system-ui,sans-serif;color:#191613}
.cross-supplement-grid .cross-supplement-choice:has(input:checked){border-color:#d71920;background:#fff1f1}
.cross-supplement-grid .cross-supplement-choice input[type=checkbox]{appearance:auto;display:block;box-sizing:border-box;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;margin:0;padding:0;border:0;border-radius:4px;box-shadow:none;accent-color:#d71920}
.cross-supplement-grid .cross-supplement-choice input[type=checkbox]:focus-visible{outline:2px solid rgba(215,25,32,.5);outline-offset:2px;box-shadow:none}
.cross-supplement-grid .cross-supplement-name{min-width:0;overflow-wrap:anywhere;color:inherit;font:inherit}
.cross-supplement-grid .cross-supplement-price{justify-self:end;white-space:nowrap;color:#d71920;font-size:12px;font-weight:900}
@media(max-width:760px){.cross-supplement-grid{grid-template-columns:1fr}.cross-supplement-grid .cross-supplement-choice{padding:12px 10px}}

/* Native cart already sets hidden from the real item count. Respect that state only. */
#emptyCart[hidden]{display:none!important}

/* Gastonello shared-cart drawer reuses the native presentation. */
dialog.gastonello-native-cart{position:fixed;inset:0 0 0 auto;margin:0;width:min(475px,100%);max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;background:var(--surface);box-shadow:-25px 0 70px rgba(0,0,0,.25)}.gastonello-native-cart .unified-cart-box{padding:25px;min-height:100%;gap:17px}.gastonello-native-cart .unified-home-dialog-header{padding-bottom:18px;border-bottom:1px solid var(--line)}.gastonello-native-cart h2{font-size:38px}.gastonello-native-cart .unified-home-cart-line{padding:16px 0;border-bottom:1px solid var(--line)}.gastonello-native-cart .unified-home-cart-line strong{color:var(--red)}.gastonello-native-cart .primary-button{color:#fff;background:var(--red);text-align:center;text-decoration:none;margin-top:auto}.gastonello-native-cart .unified-home-close{background:#eee7dd;color:var(--black)}@media(max-width:600px){.gastonello-native-cart .unified-cart-box{padding:20px 16px}}
