/* WDEL P1 0.1.7 | Homepage-only visual polish; no commerce, nav-position or media mutation.
 * Scoped to the current Page 3451 body-class. Source assets and runtime remain immutable.
 */

/* Fresh Edge viewport 1437: header-to-Hero gap 157px, solely 142px of
 * #content.site-content padding plus an independent 15px layout separation.
 * Clear only the observed padding; no Breadcrumb, Hero, nav or wrapper rewrite.
 */
body.wdel-homepage-next-shell #page #content.site-content {
  padding-top: 0 !important;
}

/* Refine the existing black/ivory header, keeping native header, menus and link owners. */
body.wdel-homepage-next-shell #masthead :is(.site-title a, .site-branding a) {
  letter-spacing: .12em !important;
}
body.wdel-homepage-next-shell .storefront-primary-navigation {
  border-top: 1px solid rgba(184, 154, 94, .20) !important;
  border-bottom: 1px solid rgba(184, 154, 94, .28) !important;
  box-shadow: none !important;
}

/* Native Woo cart, not an independent cart: preserve href, .amount, .count and fragments. */
body.wdel-homepage-next-shell #masthead .site-header-cart a.cart-contents {
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  padding: 9px 15px !important;
  border: 1px solid rgba(184, 154, 94, .63) !important;
  border-radius: 3px !important;
  background: #fffdf8 !important;
  box-shadow: none !important;
  color: #24211d !important;
  font: 600 13px/1.3 Arial, Helvetica, sans-serif !important;
  letter-spacing: .015em !important;
  text-decoration: none !important;
}
body.wdel-homepage-next-shell #masthead .site-header-cart a.cart-contents:hover {
  border-color: #977848 !important;
  background: #f4eee2 !important;
  color: #151413 !important;
}
body.wdel-homepage-next-shell #masthead .site-header-cart a.cart-contents:focus-visible {
  outline: 3px solid #b89a5e !important;
  outline-offset: 3px !important;
}
body.wdel-homepage-next-shell #masthead .site-header-cart a.cart-contents :is(.amount, .woocommerce-Price-amount),
body.wdel-homepage-next-shell #masthead .site-header-cart a.cart-contents :is(.amount, .woocommerce-Price-amount) * {
  color: #24211d !important;
  font-variant-numeric: tabular-nums;
  font-weight: 650 !important;
}
body.wdel-homepage-next-shell #masthead .site-header-cart a.cart-contents .count {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #6a5941 !important;
  font: 600 10px/1.35 Arial, Helvetica, sans-serif !important;
  letter-spacing: .05em !important;
  white-space: nowrap !important;
}

/* The separate existing "Svuota carrello" control must remain available and focusable. */
body.wdel-homepage-next-shell #masthead .site-header-cart .wpt_empty_cart_btn[role="button"] {
  min-width: 36px !important;
  min-height: 40px !important;
  padding: 8px !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: #6a5941 !important;
  box-shadow: none !important;
}
body.wdel-homepage-next-shell #masthead .site-header-cart .wpt_empty_cart_btn[role="button"]:focus-visible {
  outline: 3px solid #b89a5e !important;
  outline-offset: 2px !important;
}
@media (max-width: 767px) {
  body.wdel-homepage-next-shell #masthead .site-header-cart a.cart-contents {
    min-height: 44px !important;
    padding: 8px 12px !important;
  }
}
