/* Compare remains part of the shared Buon Caffe shell. */
.compare-button .icon { width: 20px; height: 20px; }
.compare-count { position: absolute; top: 0; right: -2px; display: none; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; background: var(--bottega-accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.compare-button.has-items .compare-count { display: grid; }

.bottega-site .compare-page { padding: 0 0 64px; color: var(--bottega-text); background: var(--bottega-surface); font-family: var(--bottega-font-family); }
.compare-page .compare-page__inner { width: 100%; max-width: none; padding: 0; }
.compare-page .compare-page__breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; color: var(--bottega-text-muted); font-size: var(--bottega-font-control); }
/* A compact toolbar keeps the products close to the top of the page. */
.compare-page .compare-page__hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 20px 28px; border-radius: 22px; background: var(--bottega-accent); color: #fff9ed; }
.compare-page__intro { flex: 1 1 300px; min-width: 0; }
.compare-page__title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.compare-page .compare-page__hero h1 { margin: 0; color: inherit; font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.compare-page__intro > p { margin: 8px 0 0; color: #f1eadc; font-size: var(--bottega-font-body); line-height: 1.5; }
.compare-page__counter { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 5px 10px; border-radius: 999px; background: #fff9ed20; color: #fff9ed; font-size: var(--bottega-font-control); font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-page__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--bottega-font-control); font-weight: 500; line-height: 1.5; }
.compare-page__eyebrow > .icon { width: 22px; height: 22px; }
.compare-page__hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Actions use the existing type, colours and target sizes. */
.compare-page .compare-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 12px 20px; border: 1px solid var(--bottega-accent); border-radius: var(--bottega-control-radius); background: transparent; color: var(--bottega-accent-hover); font-family: inherit; font-size: var(--bottega-font-control); font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; white-space: normal; cursor: pointer; transition: background-color .18s, border-color .18s; }
.compare-page .compare-action > .icon { flex: 0 0 19px; width: 19px; height: 19px; }
.compare-page .compare-action--icon { flex: 0 0 48px; width: 48px; padding-inline: 0; }
.compare-page .compare-action--primary { background: var(--bottega-accent); color: #fff; }
.compare-page .compare-action--secondary { background: var(--bottega-surface-selected); }
.compare-page .compare-action--light { border-color: #fff9ed; background: #fff9ed; color: var(--bottega-accent-hover); }
.compare-page .compare-action--ghost { border-color: #fff9ed80; color: #fff9ed; }
.compare-page .compare-action:disabled { background: var(--bottega-surface-selected); color: var(--bottega-text-muted); cursor: not-allowed; }
@media (hover: hover) {
  .compare-page .compare-action--primary:hover { background: var(--bottega-accent-hover); border-color: var(--bottega-accent-hover); }
  .compare-page .compare-action--secondary:hover { background: var(--bottega-surface-soft); }
  .compare-page .compare-action--light:hover { background: #e2e8dc; border-color: #e2e8dc; }
  .compare-page .compare-action--ghost:hover { background: #fff9ed18; border-color: #fff9ed; }
}

.compare-page__section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 24px; margin: 28px 0 20px; }
.compare-page__section-heading .compare-page__eyebrow { color: var(--bottega-text-muted); }
.compare-page__section-heading h2 { margin: 8px 0 0; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.compare-page__scroll-hint { display: inline-flex; align-items: center; gap: 10px; color: var(--bottega-text-muted); font-size: var(--bottega-font-control); line-height: 1.5; }
.compare-page__scroll-hint .icon { width: 19px; height: 19px; }
.compare-page__hint, .compare-page__notice { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; padding: 20px 24px; border-radius: 18px; background: var(--bottega-surface-soft); color: var(--bottega-text); font-size: var(--bottega-font-body); line-height: 1.6; }
.compare-page__hint > .icon { flex: 0 0 26px; width: 26px; height: 26px; color: var(--bottega-accent); }
.compare-page__hint > span, .compare-page__notice > p { flex: 1 1 320px; min-width: 0; margin: 0; }

/* Native table rows align images, titles, prices and both action rows. */
.compare-page .compare-table-wrap { --compare-label-width: 190px; --compare-product-min: 270px; --compare-product-max: 360px; width: min(100%, calc(var(--compare-label-width) + var(--compare-columns) * var(--compare-product-max) + 2px)); border: 1px solid var(--bottega-border); border-radius: 24px; background: #fff; overflow: auto; overscroll-behavior-inline: contain; scrollbar-color: var(--bottega-accent) var(--bottega-surface-soft); }
.compare-page .compare-table { display: table; width: 100%; min-width: calc(var(--compare-label-width) + var(--compare-columns) * var(--compare-product-min)); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare-page .compare-table thead { display: table-header-group; }
.compare-page .compare-table tbody { display: table-row-group; }
.compare-page .compare-table tr { display: table-row; }
.compare-page .compare-table__label-col { width: var(--compare-label-width); }
.compare-page .compare-table th, .compare-page .compare-table td { display: table-cell; float: none; padding: 20px 24px; border: 0; border-right: 1px solid var(--bottega-border); border-bottom: 1px solid var(--bottega-border); color: var(--bottega-text); font-size: var(--bottega-font-control); font-weight: 400; line-height: 1.6; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.compare-page .compare-table tr > :last-child { border-right: 0; }
.compare-page .compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-page .compare-table tr:not(.compare-table__group) > th:first-child:not(.compare-product) { position: sticky; left: 0; z-index: 4; background: #f3ecdf; color: var(--bottega-text); font-weight: 500; }
.compare-page .compare-table .compare-table__intro { padding-top: 36px; vertical-align: middle; }
.compare-table__intro > .icon { display: block; width: 36px; height: 36px; margin-bottom: 18px; color: var(--bottega-accent); stroke-width: 1.4; }
.compare-table__intro > strong { display: block; margin-bottom: 12px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.compare-table__intro > span { display: block; color: var(--bottega-text-muted); font-size: var(--bottega-font-control); }
.compare-page .compare-product { position: relative; padding-top: 24px; padding-bottom: 24px; background: #fff; }
.compare-product__remove { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bottega-border); border-radius: 50%; background: var(--bottega-surface); color: var(--bottega-text); cursor: pointer; }
.compare-product__remove > .icon { width: 20px; height: 20px; }
.compare-product__media { position: relative; display: grid; place-items: center; height: clamp(180px, 16vw, 250px); margin: 16px 0 24px; border-radius: 16px; background: #fff; overflow: hidden; }
.compare-product__media img { display: block; width: 100%; height: 100%; padding: 10px 14px; object-fit: contain; }
.compare-product__media:focus-visible::after { content: ""; position: absolute; right: 14px; bottom: 4px; left: 14px; height: 3px; border-radius: 3px; background: var(--bottega-accent-hover); }
.compare-product__brand { display: block; margin-bottom: 8px; color: var(--bottega-accent); font-size: var(--bottega-font-control); font-weight: 500; }
.compare-page .compare-product h2 { margin: 0; color: var(--bottega-text); font-family: inherit; font-size: clamp(1.125rem, 1.45vw, 1.5rem); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.compare-product h2 a { color: inherit; text-decoration: none; }
.compare-product h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.compare-product__category { display: inline-block; margin-top: 12px; color: var(--bottega-text-muted); font-size: var(--bottega-font-meta); line-height: 1.5; }
.compare-page .compare-table__price-row > * { vertical-align: middle; background: #fbf8f2; }
.compare-product__price .product-price { gap: 4px 10px; }
.compare-product__price .product-price > strong { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.compare-product__price .product-price__regular { color: var(--bottega-text-muted); font-size: var(--bottega-font-control); }
.compare-product__price .product-price__tax-note { color: var(--bottega-text-muted); font-size: var(--bottega-font-control); white-space: normal; }
.compare-page .compare-table__stock-row > * { border-bottom: 0; padding-bottom: 10px; }
.compare-product__stock { display: inline-flex; align-items: center; gap: 8px; color: var(--bottega-accent); font-size: var(--bottega-font-control); font-weight: 500; line-height: 1.5; }
.compare-product__stock > i { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.compare-product__stock.is-unavailable { color: var(--bottega-text-muted); }
.compare-page .compare-table__buy-row > * { padding-top: 8px; padding-bottom: 0; border-bottom: 0; }
.compare-page .compare-table__buy-row > th { vertical-align: middle; }
.compare-page .compare-table__details-row > * { padding-top: 10px; padding-bottom: 24px; }
.compare-table__buy-row .compare-action, .compare-table__details-row .compare-action { width: 100%; }
.compare-product__not-buyable { display: flex; align-items: center; min-height: 48px; color: var(--bottega-text-muted); font-size: var(--bottega-font-control); line-height: 1.5; }
.compare-page .compare-table .compare-table__group > th { position: static; padding: 18px 24px; background: var(--bottega-surface-soft); font-size: 1.125rem; font-weight: 600; }
.compare-page .compare-table tbody tr:not(.compare-table__group):nth-child(odd) > td { background: #fcfaf6; }
.compare-table__coffee-price { display: grid; gap: 8px; }
.compare-table__coffee-price > strong { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-table__coffee-price > small { color: var(--bottega-text-muted); font-size: var(--bottega-font-control); line-height: 1.6; }
.compare-table__missing { color: var(--bottega-text-muted); }
.compare-page__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 28px; }
.compare-page__bottom > p { flex: 1 1 400px; max-width: 62ch; margin: 0; color: var(--bottega-text-muted); font-size: var(--bottega-font-body); line-height: 1.6; }

/* Empty, loading and unavailable data share the same visual hierarchy. */
.compare-page__empty, .compare-page__state { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); align-items: center; gap: clamp(28px, 5vw, 80px); margin-top: 32px; padding: clamp(28px, 4vw, 64px); border: 1px solid var(--bottega-border); border-radius: 28px; background: #fffaf2; }
.compare-page__empty > div, .compare-page__state > div { min-width: 0; }
.compare-page__empty h2, .compare-page__state h2, .compare-page__loading h2 { margin: 12px 0 0; color: var(--bottega-text); font-size: clamp(1.5rem, 2.8vw, 2.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.compare-page__empty p, .compare-page__state p, .compare-page__loading p { max-width: 60ch; margin: 18px 0 24px; color: var(--bottega-text-muted); font-size: var(--bottega-font-body); line-height: 1.65; }
.compare-page__empty-art { position: relative; display: grid; place-items: center; min-height: 250px; }
.compare-page__empty-art > span { display: grid; place-items: center; width: clamp(180px, 16vw, 240px); aspect-ratio: 1; border-radius: 50%; background: var(--bottega-surface-selected); }
.compare-page__empty-art .icon { width: 88px; height: 88px; color: var(--bottega-accent); stroke-width: 1.2; }
.compare-page__empty-art > img { position: absolute; right: 0; bottom: -8px; width: 120px; height: 120px; object-fit: contain; transform: rotate(24deg); }
.compare-page__state-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: var(--bottega-surface-selected); color: var(--bottega-accent); }
.compare-page__state-icon > .icon { width: 38px; height: 38px; }
.compare-page__state { grid-template-columns: 88px minmax(0, 1fr); align-items: start; }
.compare-page__state h2 { margin-top: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.compare-page__loading { margin-top: 32px; padding: 32px; border: 1px solid var(--bottega-border); border-radius: 24px; background: #fffaf2; }
.compare-page__loading > .compare-page__state-icon { width: 56px; height: 56px; border-radius: 16px; }
.compare-page__loading > .compare-page__state-icon > .icon { width: 28px; height: 28px; }
.compare-page__loading h2 { font-size: 1.5rem; }
.compare-page__skeleton { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px; }
.compare-page__skeleton > div { display: grid; gap: 14px; padding: 24px; border-radius: 18px; background: var(--bottega-surface); }
.compare-page__skeleton span { height: 160px; border-radius: 12px; background: var(--bottega-surface-soft); }
.compare-page__skeleton i { display: block; width: 80%; height: 12px; border-radius: 6px; background: var(--bottega-border); }
.compare-page__skeleton i:last-child { width: 55%; }

@media (hover: hover) { .compare-product__remove:hover { border-color: var(--bottega-control-border); background: var(--bottega-surface-selected); color: var(--bottega-accent-hover); } }
@media (max-width: 1000px) {
  .compare-page .compare-table-wrap { --compare-label-width: 160px; --compare-product-min: 250px; }
  .compare-page .compare-table th, .compare-page .compare-table td { padding-inline: 20px; }
}
@media (max-width: 700px) {
  .compare-page .compare-page__hero { gap: 16px; padding: 20px; border-radius: 20px; }
  .compare-page .compare-page__hero h1 { font-size: 1.5rem; }
  .compare-page__hero-actions { width: 100%; }
  .compare-page__hero-actions > * { flex: 1 1 140px; }
  .compare-page__hero-actions > .compare-action--icon { flex: 0 0 48px; }
  .compare-page__section-heading { margin-top: 28px; }
  .compare-page__hint, .compare-page__notice { padding: 20px; }
  .compare-page .compare-table-wrap { --compare-label-width: 124px; --compare-product-min: 230px; border-radius: 20px; }
  .compare-page .compare-table th, .compare-page .compare-table td { padding-inline: 16px; }
  .compare-page .compare-table__intro { padding-inline: 14px; }
  .compare-table__intro > strong { font-size: 1.125rem; }
  .compare-table__intro > span { font-size: var(--bottega-font-meta); }
  .compare-product__media { height: 190px; }
  .compare-page .compare-product h2 { font-size: 1.125rem; }
  .compare-page__empty, .compare-page__state { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 24px; border-radius: 24px; }
  .compare-page__empty-art { min-height: 210px; }
  .compare-page__empty-art > img { right: max(0px, calc(50% - 140px)); bottom: -2px; width: 105px; height: 105px; }
  .compare-page__empty h2 { font-size: 2rem; }
  .compare-page__bottom { align-items: stretch; }
  .compare-page__bottom > .compare-action { flex: 1 1 100%; }
  .compare-page__loading { padding: 24px; }
  .compare-page__skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .compare-page__skeleton > div { padding: 12px; }
  .compare-page__skeleton span { height: 110px; }
}
@media (prefers-reduced-motion: reduce) { .compare-page .compare-action { transition: none; } }
@media (max-width: 520px) {
  .compare-page .compare-table-wrap { --compare-label-width: 104px; --compare-product-min: min(260px, calc(90vw - 106px)); }
  .compare-page .compare-table th, .compare-page .compare-table td { padding-inline: 12px; }
  .compare-table__intro > strong { font-size: 1rem; }
}

.compare-page > .compare-page__inner > .compare-page__notice { margin-top: 16px; }
.compare-page__notice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
