/* Trapstar Italia — Unified Storefront System Styles */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  padding-top: 116px !important;
  min-height: calc(100vh - 400px);
}

@media (max-width: 640px) {
  main {
    padding-top: 104px !important;
  }
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 1000;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Animations */
/* One heading scale for every public page. Layered important declarations
   override the legacy page-specific and utility heading styles consistently. */
@layer storefront-headings {
  main h1,
  main h2 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
  }

  main h1 {
    font-size: 44px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.035em !important;
  }

  main h2 {
    font-size: 30px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
  }

  /* Product names are compact card labels, even where their markup uses H2. */
  [data-home-products] article h2,
  #category-grid article h2,
  #cart-items-container article h2,
  #wishlist-recommendations article h2,
  #wishlist-grid article h2 {
    font-size: 14px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
  }

  @media (max-width: 640px) {
    main h1 { font-size: 32px !important; }
    main h2 { font-size: 24px !important; }
    [data-home-products] article h2,
    #category-grid article h2,
    #cart-items-container article h2,
    #wishlist-recommendations article h2,
    #wishlist-grid article h2 { font-size: 12px !important; }
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar clean */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #999;
}
