/* Shopping operativo 2026: pagina corta, ricerca prima, risultati subito. */
.shopping-page {
  --shop-ink: #0b1f3a;
  --shop-muted: #60758c;
  --shop-blue: #1769ff;
  --shop-blue-dark: #0b50c9;
  --shop-line: #d9e5f2;
  --shop-soft: #f4f8fd;
  margin: 0;
  overflow-x: hidden;
  background: #f3f7fc;
  color: var(--shop-ink);
}

.shopping-page [hidden] { display: none !important; }

.shopping-page .shopping-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 82px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--shop-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.shopping-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--shop-ink);
  text-decoration: none;
}

.shopping-brand img { width: 54px; height: 54px; flex: none; object-fit: contain; border-radius: 14px; }
.shopping-brand > span { display: grid; min-width: 0; line-height: 1; }
.shopping-brand strong { font-size: 32px; font-weight: 950; letter-spacing: -.04em; }
.shopping-brand small { margin-top: 5px; color: #536b84; font-size: 10px; font-weight: 750; white-space: nowrap; }

.shopping-page .shopping-header .market {
  min-width: 170px;
  margin-left: auto;
  padding: 10px 15px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: #fff;
  color: var(--shop-ink);
  font-weight: 750;
}

.shopping-menu { position: relative; flex: none; }
.shopping-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--shop-ink);
  font-size: 25px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.shopping-menu summary::-webkit-details-marker { display: none; }
.shopping-menu summary:hover,
.shopping-menu summary:focus-visible { border-color: #c9d9ed; background: #eef5ff; }
.shopping-menu nav {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  gap: 2px;
  border: 1px solid #d5e2f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 31, 53, .18);
}
.shopping-menu nav a,
.shopping-menu nav a[href="/shopping"] {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #173250;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  animation: none;
}
.shopping-menu nav a:hover,
.shopping-menu nav a:focus-visible,
.shopping-menu nav a[href="/shopping"]:hover,
.shopping-menu nav a[href="/shopping"]:focus-visible { background: #eef5ff; color: var(--shop-blue); }

.shopping-page main { max-width: 1120px; margin: 0 auto; padding: 18px 14px 30px; }

.shopping-hero {
  padding: 28px clamp(18px, 4vw, 42px);
  border-radius: 24px;
  background: linear-gradient(128deg, #072e67 0%, #0b58b8 60%, #1769ff 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(12, 64, 135, .18);
}
.shopping-eyebrow {
  margin: 0 0 5px;
  color: #1769ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.shopping-hero .shopping-eyebrow { color: #b9dbff; }
.shopping-hero h1 { margin: 0; color: #fff; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -.045em; }
.shopping-hero > p:not(.shopping-eyebrow) { margin: 10px 0 0; color: #e7f2ff; font-size: 15px; }
.shopping-hero form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  margin: 20px 0 0;
  padding: 7px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 31, 70, .24);
}
.shopping-hero input { min-height: 50px; padding: 12px 15px; border: 0; background: #f6f9fd; color: var(--shop-ink); }
.shopping-hero button { min-width: 150px; min-height: 50px; cursor: pointer; }

.shopping-categories { padding: 20px 4px 10px; }
.shopping-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.shopping-section-heading h2 { margin: 0; color: var(--shop-ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.shopping-category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.shopping-category-grid a {
  display: flex;
  min-width: 0;
  min-height: 88px;
  padding: 12px 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--shop-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 51, 96, .06);
  color: var(--shop-ink);
  text-align: center;
  text-decoration: none;
}
.shopping-category-grid a:hover,
.shopping-category-grid a:focus-visible { border-color: #8db7f0; color: var(--shop-blue); transform: translateY(-2px); }
.shopping-category-grid span { font-size: 24px; }
.shopping-category-grid strong { font-size: 12px; line-height: 1.15; }
.shopping-category-more { margin-top: 9px; }
.shopping-category-more summary { width: max-content; margin-left: auto; color: var(--shop-blue); font-size: 13px; font-weight: 900; cursor: pointer; }
.shopping-category-more nav { display: flex; margin-top: 9px; gap: 7px; flex-wrap: wrap; }
.shopping-category-more nav a { padding: 7px 10px; border: 1px solid var(--shop-line); border-radius: 999px; background: #fff; color: #36516f; font-size: 12px; font-weight: 800; text-decoration: none; }

.shopping-trust {
  display: flex;
  margin: 7px 4px 17px;
  padding: 10px 15px;
  justify-content: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  border: 1px solid #cfe2d8;
  border-radius: 13px;
  background: #f1faf5;
  color: #255c44;
  font-size: 12px;
  font-weight: 800;
}

.shopping-page .shopping-weekly-offers {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--shop-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 51, 96, .06);
}
.shopping-page .weekly-offers__heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 8px; gap: 18px; }
.shopping-page .weekly-offers__heading h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.shopping-page .weekly-offers__heading > p { max-width: 480px; margin: 0; font-size: 12px; }
.shopping-page .weekly-offers__status { margin: 0 0 9px; }
.shopping-page .weekly-offers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shopping-page .weekly-offer-card { border-radius: 14px; box-shadow: none; }
.shopping-page .weekly-offer-card__image { height: 150px; aspect-ratio: auto; padding: 8px; background: #f8fafc; }
.shopping-page .weekly-offer-card__body { min-height: 168px; padding: 11px; gap: 5px; }
.shopping-page .weekly-offer-card__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; }
.shopping-page .weekly-offer-card__prices strong { font-size: 20px; }
.shopping-page .weekly-offer-card__action { min-height: 38px; padding: 8px 11px; }

.shopping-page .live-search-section {
  scroll-margin-top: 92px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--shop-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 51, 96, .06);
}
.results-heading { align-items: start; }
.results-heading .notice { max-width: 620px; margin: 0; padding: 10px 12px; font-size: 13px; }
.filters-toggle { display: none; width: 100%; min-height: 46px; margin-top: 14px; cursor: pointer; }
.shopping-page .search-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 15px 0 12px;
  padding: 13px;
  gap: 10px;
  box-shadow: none;
  background: var(--shop-soft);
}
.shopping-page .search-controls label { min-width: 0; }
.shopping-page .search-controls select,
.shopping-page .search-controls input[type="number"] { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #c9d9eb; border-radius: 10px; background: #fff; color: var(--shop-ink); }
.shopping-page .search-controls .verified-filter { min-width: 0; align-self: end; background: #fff; }
.shopping-page .translation-actions { grid-template-columns: minmax(220px, 300px) 1fr; margin-bottom: 12px; padding: 10px; border-width: 1px; box-shadow: none; }
.shopping-page .translation-actions .translation-button { min-height: 44px; font-size: 14px; }
.shopping-page #live-results.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.shopping-page .live-result-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 210px; border-radius: 14px; box-shadow: none; }
.shopping-page .live-result-card .pic { height: 100%; min-height: 210px; aspect-ratio: auto; border-right: 1px solid var(--shop-line); background: #f9fbfd; }
.shopping-page .live-result-card .content { padding: 14px 16px; }
.shopping-page .live-result-card .content h2 { margin: 3px 0; font-size: 18px; }
.shopping-page .live-result-card .price { margin: 5px 0; font-size: 23px; }
.shopping-page .offer-count { margin: 2px 0; color: #1769ff; font-size: 12px; font-weight: 900; }
.shopping-page .live-result-card .actions { margin-top: 10px; }
.shopping-page .offer-comparison { margin-top: 9px; }
.shopping-page .offer-comparison__summary { padding: 10px 12px; }
.shopping-page .offer-comparison__row { grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) auto; padding: 10px 12px; }
.shopping-page .offer-comparison__row .button { width: auto; }
.shopping-page .retailer-searches { margin-top: 12px; }

.shopping-footer {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 390px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--shop-line);
  background: #fff;
  color: var(--shop-muted);
  font-size: 11px;
  text-align: left;
}
.shopping-footer__brand { display: flex; align-items: center; gap: 7px; color: var(--shop-ink); font-size: 18px; text-decoration: none; }
.shopping-footer__brand img { width: 34px; height: 34px; object-fit: contain; }
.shopping-footer nav { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.shopping-footer nav a { color: #38516c; font-size: 11px; text-decoration: none; }
.shopping-footer p { margin: 0; text-align: right; }

@media (max-width: 900px) {
  .shopping-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shopping-page .search-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopping-footer { grid-template-columns: 1fr; }
  .shopping-footer nav { justify-content: flex-start; }
  .shopping-footer p { text-align: left; }
}

@media (max-width: 680px) {
  .shopping-page .shopping-header { min-height: 76px; padding: 8px 10px; gap: 7px; }
  .shopping-brand { gap: 7px; }
  .shopping-brand img { width: 45px; height: 45px; }
  .shopping-brand strong { font-size: 27px; }
  .shopping-brand small { margin-top: 3px; font-size: 7px; }
  .shopping-page .shopping-header .market { width: min(142px, 37vw); min-width: 0; max-width: 37vw; padding: 8px 6px; font-size: 11px; }
  .shopping-menu summary { width: 38px; height: 38px; font-size: 22px; }
  .shopping-menu nav { top: 45px; }
  .shopping-page main { padding: 10px 9px 20px; }
  .shopping-hero { padding: 20px 13px; border-radius: 18px; }
  .shopping-hero h1 { font-size: clamp(31px, 9vw, 40px); }
  .shopping-hero > p:not(.shopping-eyebrow) { font-size: 12px; }
  .shopping-hero form { grid-template-columns: 1fr; margin-top: 14px; padding: 6px; }
  .shopping-hero input { min-height: 47px; }
  .shopping-hero button { min-width: 0; min-height: 46px; }
  .shopping-categories { padding-top: 15px; }
  .shopping-category-grid { display: flex; margin-inline: -9px; padding: 0 9px 4px; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .shopping-category-grid a { flex: 0 0 102px; min-height: 80px; scroll-snap-align: start; }
  .shopping-category-more summary { margin-right: 3px; }
  .shopping-trust { margin: 5px 0 12px; padding: 8px 9px; gap: 5px 12px; font-size: 10px; }
  .shopping-page .shopping-weekly-offers { margin-bottom: 12px; padding: 14px 10px; border-radius: 17px; }
  .shopping-page .weekly-offers__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .shopping-page .weekly-offers__heading > p { font-size: 11px; }
  .shopping-page .weekly-offers__grid { display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .shopping-page .weekly-offer-card { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; }
  .shopping-page .live-search-section { scroll-margin-top: 80px; padding: 14px 10px; border-radius: 17px; }
  .results-heading { display: block; }
  .results-heading .notice { margin-top: 8px; }
  .filters-toggle:not([hidden]) { display: block; }
  .shopping-page .search-controls { display: none; grid-template-columns: 1fr; margin-top: 8px; }
  .shopping-page .search-controls.is-open { display: grid; }
  .shopping-page .translation-actions { grid-template-columns: 1fr; }
  .shopping-page .live-result-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 190px; }
  .shopping-page .live-result-card .pic { min-height: 190px; }
  .shopping-page .live-result-card .content { padding: 11px; }
  .shopping-page .live-result-card .content h2 { font-size: 15px; }
  .shopping-page .live-result-card .price { font-size: 20px; }
  .shopping-page .offer-comparison__row { grid-template-columns: 1fr; }
  .shopping-page .offer-comparison__row .button { width: 100%; }
  .shopping-footer { padding: 17px 13px; }
}

@media (max-width: 390px) {
  .shopping-brand img { width: 42px; height: 42px; }
  .shopping-brand strong { font-size: 24px; }
  .shopping-brand small { display: none; }
  .shopping-page .shopping-header .market { width: 126px; max-width: 35vw; }
  .shopping-menu summary { width: 34px; }
  .shopping-page .live-result-card { grid-template-columns: 94px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .shopping-page * { scroll-behavior: auto !important; transition: none !important; }
}
