/* Macrigi Vendors 2027 — Storefront Option B Modern v0.5.8
   Mock contract: approved “OPZIONE B — MODERN”.
   Scope: public WC Vendors storefront only. */

.macrigi-vendor-storefront{
  --mvs-navy:#0b3449;
  --mvs-navy-2:#123f57;
  --mvs-blue:#45a9d0;
  --mvs-blue-soft:#eef8fc;
  --mvs-teal:#0e879e;
  --mvs-text:#173247;
  --mvs-muted:#6d8290;
  --mvs-border:#d8e6ec;
  --mvs-surface:#fff;
  --mvs-cream:#fbf5e9;
  --mvs-bg:#f5fafc;
}

/* v0.5.7 — scoped neutralization of the Core/WooCommerce archive shell.
   Verified in Core Theme v0.7.6: product archives use a 1440px .mc-main cap and
   .mc-main has overflow-x:clip. On vendor storefronts only, Vendors owns the
   presentation width, so the shell is released without changing global archives. */
body.macrigi-vendor-storefront .mc-main{
  width:100vw!important;
  max-width:100vw!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding-inline:0!important;
  overflow:visible!important;
}
body.macrigi-vendor-storefront .mc-main :where(.woocommerce,.site-main,#primary,.content-area,.container,.container-fluid,.mc-container,.mc-layout,.mc-layout--standard){
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
  overflow:visible!important;
}
body.macrigi-vendor-storefront{overflow-x:hidden}

.macrigi-vendor-storefront :where(
  .wcv-header-container,.wcv-store-header,.wcv-store-header-container,
  .wcv-store-header-wrapper,.wcv_vendor_store_header,.wcv-vendor-store-header,
  .vendor-store-header,.store-header-wrapper,.wcv-store-address,
  .wcv-store-address-container,.wcv-store-address-wrapper,.wcv-store-meta,
  .wcv-store-meta-container,.vendor-store-address,.store-address-wrapper
),
.macrigi-vendor-storefront .woocommerce-breadcrumb{display:none!important}

.macrigi-vendor-storefront.woocommerce :where(.site-main,.content-area,.container,.woocommerce-products-header){max-width:none}
.macrigi-vendor-storefront.woocommerce ul.products li.product :where(.price,.price *,.amount,.amount *,[class*="wholesale_price"],[class*="wholesale_price"] *){color:var(--mvs-teal)!important}

.mvs-modern,
.macrigi-vendor-categories,
.macrigi-vendor-storefront.woocommerce .woocommerce-notices-wrapper,
.macrigi-vendor-storefront.woocommerce .woocommerce-result-count,
.macrigi-vendor-storefront.woocommerce .woocommerce-ordering,
.macrigi-vendor-storefront.woocommerce ul.products,
.macrigi-vendor-storefront.woocommerce nav.woocommerce-pagination,
.mvs-company,
.macrigi-vendor-empty-state{
  width:min(94vw,1840px);
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}

.mvs-modern{margin-top:32px;color:var(--mvs-text)}

/* OPTION B — immersive hero. Logo lives in the identity card below, as in the approved mock. */
.mvs-modern__hero{
  position:relative;min-height:360px;border-radius:24px;overflow:hidden;
  background:linear-gradient(90deg,rgba(6,35,52,.90) 0%,rgba(6,35,52,.58) 44%,rgba(6,35,52,.16) 76%),var(--mvs-hero-image),linear-gradient(135deg,#284e63,#9bbdca);
  background-size:cover;background-position:center;box-shadow:0 18px 48px rgba(15,47,68,.14)
}
.mvs-modern__hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.18));pointer-events:none}
.mvs-modern__hero-content{position:relative;z-index:1;display:flex;align-items:flex-end;min-height:360px;padding:48px;color:#fff}
.mvs-modern__hero-copy{width:min(760px,74%)}
.mvs-modern__hero-copy h1{margin:0;color:#fff;font-size:clamp(42px,4.1vw,72px);line-height:.98;letter-spacing:-.035em;text-shadow:0 2px 12px rgba(0,0,0,.18)}
.mvs-modern__hero-copy>p{margin:12px 0 22px;color:#fff;font-size:22px;line-height:1.35;font-weight:650}
.mvs-modern__hero-points{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:760px}
.mvs-modern__hero-points span{display:flex;align-items:center;justify-content:center;min-height:46px;padding:9px 10px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(6,35,52,.45);backdrop-filter:blur(7px);font-size:13px;font-weight:800;text-align:center}

/* Identity card overlapping the hero lower edge, like Option B. */
.mvs-modern__profile{position:relative;z-index:2;display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:26px;align-items:center;margin:-34px 22px 0;padding:24px 28px;background:#fff;border:1px solid var(--mvs-border);border-radius:20px;box-shadow:0 14px 34px rgba(15,47,68,.11)}
.mvs-modern__profile-logo{width:132px;height:132px;border-radius:18px;background:#fff;display:grid;place-items:center;overflow:hidden;border:1px solid var(--mvs-border);box-shadow:0 8px 20px rgba(15,47,68,.08);font-size:42px;font-weight:900;color:var(--mvs-navy)}
.mvs-modern__profile-logo img{width:100%;height:100%;object-fit:contain;padding:10px;box-sizing:border-box}
.mvs-modern__profile-meta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:7px;color:var(--mvs-muted);font-size:13px;font-weight:750}
.mvs-modern__profile-meta span::before{content:'•';margin-right:7px;color:var(--mvs-blue)}
.mvs-modern__profile h2,.mvs-modern__catalog-head h2,.mvs-company h2{margin:0;color:var(--mvs-text);font-size:30px;line-height:1.15}
.mvs-modern__profile p{max-width:900px;margin:9px 0 0;color:var(--mvs-muted);font-size:16px;line-height:1.6}
.mvs-modern__profile-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

.mvs-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border-radius:10px;font-weight:850;text-decoration:none!important;transition:.2s ease;box-sizing:border-box;text-align:center}
.mvs-btn--primary{background:var(--mvs-navy);color:#fff!important}
.mvs-btn--outline{border:1px solid var(--mvs-navy);background:#fff;color:var(--mvs-navy)!important}
.mvs-btn:hover{transform:translateY(-1px)}

/* Beige feature rail from Option B. */
.mvs-modern__trust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:16px 22px 0;border:1px solid #eadfc9;border-radius:14px;background:var(--mvs-cream);overflow:hidden}
.mvs-modern__trust>div{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:12px 16px;color:var(--mvs-text);border-right:1px solid #eadfc9}
.mvs-modern__trust>div:last-child{border-right:0}
.mvs-modern__trust i{display:grid;place-items:center;width:26px;height:26px;border-radius:999px;background:#e4f4f8;color:var(--mvs-teal);font-style:normal;font-size:13px;font-weight:900}
.mvs-modern__trust span{font-size:14px;font-weight:800}

.mvs-modern__tabs{display:flex;gap:6px;overflow:auto;margin:16px 22px 0;padding:7px;border:1px solid var(--mvs-border);border-radius:12px;background:#fff;scrollbar-width:thin}
.mvs-modern__tabs a{flex:0 0 auto;padding:10px 18px;border-radius:9px;color:var(--mvs-text);font-weight:850;text-decoration:none!important}
.mvs-modern__tabs a:hover,.mvs-modern__tabs a.is-active{background:var(--mvs-navy);color:#fff}

.mvs-modern__catalog-head{scroll-margin-top:170px;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,610px);gap:24px;align-items:end;padding:28px 22px 12px}
.mvs-modern__eyebrow{margin-bottom:6px;color:var(--mvs-blue);font-size:12px;font-weight:900;letter-spacing:.10em;text-transform:uppercase}
.mvs-modern__search{display:grid;grid-template-columns:1fr auto;border:1px solid var(--mvs-border);border-radius:10px;overflow:hidden;background:#fff}
.mvs-modern__search input{min-width:0;border:0!important;box-shadow:none!important;padding:12px 15px!important;font-size:15px!important;background:#fff!important}
.mvs-modern__search button{border:0;background:var(--mvs-navy);color:#fff;padding:0 20px;font-weight:850;cursor:pointer}

/* Category tiles: images come first from WooCommerce product-category thumbnails. */
.macrigi-vendor-categories{clear:both;margin-top:0;margin-bottom:20px;padding:18px 22px;border:1px solid var(--mvs-border);background:#fff;border-radius:14px;box-shadow:0 6px 18px rgba(15,47,68,.035)}
.macrigi-vendor-categories__title-row{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px}
.macrigi-vendor-categories__title{margin:0;color:var(--mvs-text);font-size:20px;font-weight:850}
.macrigi-vendor-categories__list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.macrigi-vendor-category{display:flex;min-width:0;flex-direction:column;border:1px solid var(--mvs-border);border-radius:10px;color:var(--mvs-text);background:#fff;overflow:hidden;text-decoration:none!important;transition:.18s ease}
.macrigi-vendor-category__visual{display:block;width:100%;aspect-ratio:1.42/1;background:linear-gradient(135deg,#edf6f9,#d9edf5);background-size:cover;background-position:center}
.macrigi-vendor-category__visual--all{background:linear-gradient(135deg,#f7ebd4,#e4f3f8)}
.macrigi-vendor-category__copy{display:block;padding:9px 10px 10px;min-width:0;background:#fff}
.macrigi-vendor-category__copy strong,.macrigi-vendor-category__copy small{display:block;overflow-wrap:anywhere}
.macrigi-vendor-category__copy strong{font-size:13px;line-height:1.25}
.macrigi-vendor-category__copy small{margin-top:3px;color:var(--mvs-muted);font-size:11px;line-height:1.25}
.macrigi-vendor-category:hover,.macrigi-vendor-category:focus,.macrigi-vendor-category.is-active{border-color:#79bdd7;transform:translateY(-2px);box-shadow:0 7px 18px rgba(15,47,68,.08)}
.macrigi-vendor-category.is-active .macrigi-vendor-category__copy{background:var(--mvs-navy);color:#fff}
.macrigi-vendor-category.is-active .macrigi-vendor-category__copy small{color:#d9edf5}

.macrigi-vendor-storefront.woocommerce .woocommerce-result-count{float:none;margin-top:14px;color:var(--mvs-muted);font-size:14px}
.macrigi-vendor-storefront.woocommerce .woocommerce-ordering{float:none;display:flex;justify-content:flex-end;margin-top:-36px;margin-bottom:16px}
.macrigi-vendor-storefront.woocommerce .woocommerce-ordering select{min-height:42px;padding:7px 36px 7px 12px;border:1px solid var(--mvs-border);border-radius:9px;background:#fff;color:var(--mvs-text)}

/* Product grid in Option B is a three-card desktop rhythm. Keep all functional buttons. */
.macrigi-vendor-storefront.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;clear:both;padding:0!important}
.macrigi-vendor-storefront.woocommerce ul.products::before,.macrigi-vendor-storefront.woocommerce ul.products::after{display:none!important}
.macrigi-vendor-storefront.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:13px!important;border:1px solid var(--mvs-border);border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,47,68,.05);overflow:hidden}
.macrigi-vendor-storefront.woocommerce ul.products li.product img{width:100%!important;aspect-ratio:1/1;object-fit:contain;border-radius:10px;background:#fff}
.macrigi-vendor-storefront.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:2.7em;margin-top:11px!important;color:var(--mvs-text)!important;font-size:17px!important;line-height:1.35!important;font-weight:850!important}
.macrigi-vendor-storefront.woocommerce ul.products li.product .button{width:100%;min-height:43px;border-radius:9px;background:var(--mvs-navy);color:#fff;font-weight:850;text-align:center}

/* Final story block follows the approved Option B: one horizontal card, image left, copy right, CTA and four compact pillars. */
.mvs-company{display:block;margin-top:34px;margin-bottom:54px}
.mvs-company__story{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(0,1.55fr);align-items:start;min-height:280px;border:1px solid #eadfc9;border-radius:18px;background:var(--mvs-cream);overflow:hidden;box-shadow:0 8px 24px rgba(15,47,68,.05)}
.mvs-company__visual{height:280px;min-height:280px;align-self:start;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}.mvs-company__visual img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.mvs-company__copy{padding:30px 34px;background:linear-gradient(135deg,#fffdf8,#fbf5e9)}
.mvs-company__copy h2{font-size:28px}
.mvs-company__excerpt,.mvs-company__copy>p{margin:12px 0 0;color:var(--mvs-muted);font-size:16px;line-height:1.65}
.mvs-company__details{margin-top:16px}
.mvs-company__details summary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 16px;border-radius:9px;background:#fff;color:var(--mvs-text);border:1px solid var(--mvs-border);font-weight:850;cursor:pointer;list-style:none}
.mvs-company__details summary::-webkit-details-marker{display:none}
.mvs-company__details summary::after{content:'⌄';margin-left:8px;color:var(--mvs-blue);transition:transform .18s ease}
.mvs-company__summary-label--open{display:none}
.mvs-company__details[open] .mvs-company__summary-label--closed{display:none}
.mvs-company__details[open] .mvs-company__summary-label--open{display:inline}
.mvs-company__details[open] summary::after{content:'⌃'}
.mvs-company__description{margin-top:14px;padding-top:14px;border-top:1px solid #eadfc9;color:var(--mvs-muted);font-size:15px;line-height:1.65}
.mvs-company__description p:last-child{margin-bottom:0}
.mvs-company__pillars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #eadfc9}
.mvs-company__pillars span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;text-align:center;padding:6px;color:var(--mvs-text);font-size:11px;font-weight:850;line-height:1.2}
.mvs-company__pillars i{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#e7f3f7;color:var(--mvs-navy);font-style:normal;font-size:12px}
.mvs-certifications{scroll-margin-top:180px;display:flex!important;align-items:center;gap:18px;margin-top:18px;padding:22px 24px;border:1px solid var(--mvs-border);border-radius:16px;background:#eef8fb;box-shadow:0 6px 18px rgba(15,47,68,.04)}
.mvs-certifications__icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:#e4f6ec;color:#2e9d67;font-size:22px;font-weight:900}
.mvs-certifications__copy{min-width:0}.mvs-certifications__copy h3{margin:2px 0 6px;color:var(--mvs-text);font-size:21px;line-height:1.2}.mvs-certifications__copy p{margin:0;color:var(--mvs-muted);font-size:15px;line-height:1.55}

.macrigi-vendor-empty-state{margin-top:34px;margin-bottom:54px;padding:40px 32px;display:flex;align-items:center;gap:28px;border:1px solid var(--mvs-border);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.05)}
.macrigi-vendor-empty-state__visual{width:160px;flex:0 0 160px}.macrigi-vendor-empty-state__visual img{display:block;width:100%;height:auto}.macrigi-vendor-empty-state__content h2{margin:0 0 10px;font-size:28px;line-height:1.2}.macrigi-vendor-empty-state__content p{margin:0;max-width:650px;font-size:16px;line-height:1.65}

@media (max-width:1280px){
  .mvs-modern,.macrigi-vendor-categories,.macrigi-vendor-storefront.woocommerce .woocommerce-notices-wrapper,.macrigi-vendor-storefront.woocommerce .woocommerce-result-count,.macrigi-vendor-storefront.woocommerce .woocommerce-ordering,.macrigi-vendor-storefront.woocommerce ul.products,.macrigi-vendor-storefront.woocommerce nav.woocommerce-pagination,.mvs-company,.macrigi-vendor-empty-state{width:94vw}
  .mvs-modern__hero-points{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}
  .mvs-modern__profile{grid-template-columns:130px minmax(0,1fr) auto}
  .mvs-modern__profile-logo{width:116px;height:116px}
  .macrigi-vendor-categories__list{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (max-width:900px){
  .mvs-modern,.macrigi-vendor-categories,.macrigi-vendor-storefront.woocommerce .woocommerce-notices-wrapper,.macrigi-vendor-storefront.woocommerce .woocommerce-result-count,.macrigi-vendor-storefront.woocommerce .woocommerce-ordering,.macrigi-vendor-storefront.woocommerce ul.products,.macrigi-vendor-storefront.woocommerce nav.woocommerce-pagination,.mvs-company,.macrigi-vendor-empty-state{width:96vw}
  .mvs-modern__hero,.mvs-modern__hero-content{min-height:330px}
  .mvs-modern__hero-content{padding:34px}
  .mvs-modern__hero-copy{width:88%}.mvs-modern__hero-copy h1{font-size:48px}
  .mvs-modern__profile{grid-template-columns:110px minmax(0,1fr);margin:-28px 14px 0;padding:22px}
  .mvs-modern__profile-logo{width:96px;height:96px}.mvs-modern__profile-actions{grid-column:1/-1;justify-content:flex-start}
  .mvs-modern__trust{grid-template-columns:1fr 1fr;margin-left:14px;margin-right:14px}.mvs-modern__trust>div:nth-child(2){border-right:0}.mvs-modern__trust>div:nth-child(-n+2){border-bottom:1px solid #eadfc9}
  .mvs-modern__tabs{margin-left:14px;margin-right:14px}
  .mvs-modern__catalog-head{grid-template-columns:1fr;padding-left:14px;padding-right:14px}
  .macrigi-vendor-categories__list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .macrigi-vendor-storefront.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mvs-company__story{grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr)}
  .mvs-company__visual{height:240px;min-height:240px}
}

@media (max-width:600px){
  .mvs-modern,.macrigi-vendor-categories,.macrigi-vendor-storefront.woocommerce .woocommerce-notices-wrapper,.macrigi-vendor-storefront.woocommerce .woocommerce-result-count,.macrigi-vendor-storefront.woocommerce .woocommerce-ordering,.macrigi-vendor-storefront.woocommerce ul.products,.macrigi-vendor-storefront.woocommerce nav.woocommerce-pagination,.mvs-company,.macrigi-vendor-empty-state{width:calc(100% - 28px)}
  .mvs-modern{margin-top:18px}
  .mvs-modern__hero{min-height:390px;border-radius:18px}.mvs-modern__hero-content{min-height:390px;padding:22px}.mvs-modern__hero-copy{width:100%}.mvs-modern__hero-copy h1{font-size:38px}.mvs-modern__hero-copy>p{font-size:18px}.mvs-modern__hero-points{grid-template-columns:1fr 1fr;gap:7px}.mvs-modern__hero-points span{font-size:11px;min-height:40px}
  .mvs-modern__profile{grid-template-columns:82px minmax(0,1fr);gap:15px;margin:-22px 10px 0;padding:18px}.mvs-modern__profile-logo{width:78px;height:78px;border-radius:15px;font-size:28px}.mvs-modern__profile-meta{gap:7px;font-size:11px}.mvs-modern__profile h2{font-size:24px}.mvs-modern__profile p{font-size:15px}.mvs-modern__profile-actions{display:grid;grid-template-columns:1fr;width:100%}.mvs-modern__profile-actions .mvs-btn{width:100%}
  .mvs-modern__trust{margin:10px 10px 0}.mvs-modern__trust>div{min-height:52px;padding:10px}.mvs-modern__trust span{font-size:12px}
  .mvs-modern__tabs{margin:10px 10px 0}.mvs-modern__tabs a{padding:9px 13px;font-size:13px}
  .mvs-modern__catalog-head{padding:22px 10px 10px}.mvs-modern__catalog-head h2{font-size:25px}.mvs-modern__search input{font-size:14px!important;padding:11px!important}.mvs-modern__search button{padding:0 13px}
  .macrigi-vendor-categories{padding:14px;margin-bottom:16px}.macrigi-vendor-categories__list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.macrigi-vendor-category__copy{padding:9px}.macrigi-vendor-category__copy strong{font-size:12px}.macrigi-vendor-category__copy small{font-size:10px}
  .macrigi-vendor-storefront.woocommerce .woocommerce-ordering{justify-content:stretch;margin:0 0 14px}.macrigi-vendor-storefront.woocommerce .woocommerce-ordering select{width:100%}.macrigi-vendor-storefront.woocommerce .woocommerce-result-count{margin:11px auto 8px}
  .macrigi-vendor-storefront.woocommerce ul.products{grid-template-columns:1fr;gap:12px}.macrigi-vendor-storefront.woocommerce ul.products li.product{padding:11px!important;border-radius:12px}.macrigi-vendor-storefront.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important}
  .mvs-company{margin-top:24px;margin-bottom:38px}.mvs-company__story{grid-template-columns:1fr}.mvs-company__visual{height:210px;min-height:210px}.mvs-company__copy{padding:22px}.mvs-company__copy h2{font-size:25px}.mvs-company__excerpt,.mvs-company__copy>p{font-size:15px}.mvs-company__pillars{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.mvs-company__pillars span{font-size:10px;padding:4px 2px}.mvs-certifications{margin-top:10px;padding:16px 18px;gap:12px}.mvs-certifications__copy h3{font-size:19px}.mvs-certifications__copy p{font-size:14px}
  .macrigi-vendor-empty-state{margin:24px 14px 38px;padding:28px 22px;flex-direction:column;text-align:center}.macrigi-vendor-empty-state__visual{width:132px;flex-basis:auto}.macrigi-vendor-empty-state__content h2{font-size:24px}
}

@media (max-width:380px){
  .mvs-modern__hero-points{grid-template-columns:1fr}
  .macrigi-vendor-categories__list{grid-template-columns:1fr 1fr}
  .mvs-company__pillars{grid-template-columns:1fr 1fr}
}
