/* Gervasi Sport Pro 8 — premium commerce components layered on v7. */

.header-collection { position: relative; }
.header-collection .collection-count { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 20px; background: var(--gs-action); color: #fff; font-size: 10px; font-weight: 850; line-height: 20px; text-align: center; }

.product-card-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.product-card-tools button,
.product-collection-actions button,
.gs-remove-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 9px; border: 1px solid var(--gs-line); border-radius: 8px; background: #fff; color: var(--gs-primary); font-size: 11px; font-weight: 750; cursor: pointer; }
.product-card-tools button:hover,
.product-collection-actions button:hover { border-color: var(--gs-primary); background: var(--gs-primary-soft); }
.product-card-tools button.is-active,
.product-collection-actions button.is-active { border-color: #f2c8bd; background: #fff0eb; color: var(--gs-action-dark); }
.product-card-tools span, .product-collection-actions span { font-size: 17px; line-height: 1; }
.product-collection-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.product-collection-actions button { min-height: 42px; padding-inline: 14px; font-size: 12px; }
.loop-badge-new { top: 76px; border-color: #c4d8f0; background: #edf5ff; color: var(--gs-primary); }
.product-buying-help { display: grid; gap: 7px; margin: 16px 0 24px; padding: 15px 18px; border: 1px solid var(--gs-line); border-radius: 10px; background: var(--gs-soft); color: var(--gs-muted); font-size: 12px; }
.product-buying-help span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.product-buying-help strong { color: var(--gs-ink); }
.product-buying-help a { color: var(--gs-primary); font-weight: 760; }

.gs-recently-viewed { clear: both; padding: clamp(55px, 7vw, 90px) 0 20px; }
.gs-recent-grid, .gs-saved-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gs-saved-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--gs-line); border-radius: 15px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.gs-saved-card:hover { border-color: #b8c9dc; box-shadow: var(--gs-shadow); transform: translateY(-3px); }
.gs-saved-image { height: 230px; display: grid; place-items: center; padding: 18px; background: #f8fafc; }
.gs-saved-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gs-saved-copy { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.gs-saved-title { color: var(--gs-ink); font-size: 16px; font-weight: 760; line-height: 1.35; }
.gs-saved-sku { margin-top: 7px; color: var(--gs-muted); }
.gs-saved-price { margin-top: 17px; color: var(--gs-primary); font-size: 18px; }
.gs-saved-rating { margin-top: 8px; color: #9a6500; font-size: 11px; font-weight: 730; }
.gs-saved-stock { margin-top: 7px; color: var(--gs-warning); font-size: 11px; font-weight: 720; }
.gs-saved-stock.is-available { color: var(--gs-success); }
.gs-saved-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; padding-top: 18px; }
.gs-saved-actions .button { min-height: 42px; padding: 10px !important; font-size: 11px; }
.gs-saved-actions button { min-height: 42px; border: 1px solid var(--gs-line); border-radius: 8px; background: #fff; color: var(--gs-primary); font-size: 11px; font-weight: 740; }
.gs-saved-actions .gs-remove-button { grid-column: 1 / -1; min-height: 34px; color: var(--gs-muted); }

.gs-collection-page { min-height: 480px; }
.gs-collection-intro { max-width: 850px; margin-bottom: 40px; }
.gs-collection-empty { padding: clamp(32px, 6vw, 70px); border: 1px dashed #aebdce; border-radius: 18px; background: var(--gs-soft); text-align: center; }
.gs-collection-empty h2 { margin-top: 0; }
.gs-collection-empty p { color: var(--gs-muted); }
.gs-collection-empty .button { margin-top: 15px; }

.gs-compare-scroll { max-width: 100%; border: 1px solid var(--gs-line); border-radius: 16px; overflow: auto; }
.gs-compare-table { width: 100%; min-width: 820px; margin: 0; border-collapse: collapse; background: #fff; }
.gs-compare-table th, .gs-compare-table td { min-width: 190px; padding: 18px; border-right: 1px solid var(--gs-line); border-bottom: 1px solid var(--gs-line); text-align: left; vertical-align: middle; }
.gs-compare-table th { position: sticky; left: 0; z-index: 2; min-width: 145px; background: var(--gs-soft); color: var(--gs-ink); font-size: 12px; }
.gs-compare-table td { color: var(--gs-muted); font-size: 13px; }
.gs-compare-table td a:not(.button) { color: var(--gs-ink); font-weight: 760; }
.gs-compare-table img { width: 150px; height: 150px; object-fit: contain; }
.gs-compare-table .button { width: 100%; min-height: 42px; padding: 9px !important; font-size: 11px; }
.gs-compare-remove { margin-top: 7px; }
.gs-compare-remove button { width: 100%; }

.gs-compare-tray { position: fixed; z-index: 205; left: 50%; bottom: 18px; width: min(720px, calc(100% - 36px)); min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 22px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(3, 31, 73, .97); box-shadow: 0 18px 55px rgba(2, 21, 49, .3); color: #fff; backdrop-filter: blur(12px); }
.gs-compare-tray[hidden] { display: none; }
.gs-compare-tray > span { font-size: 13px; }
.gs-compare-tray > span strong { color: #fff; font-size: 20px; }
.gs-compare-tray > div { display: flex; align-items: center; gap: 8px; }
.gs-compare-tray button { border: 0; background: transparent; color: #c4d5ea; font-size: 12px; cursor: pointer; }
.gs-compare-tray .button { min-height: 44px; padding: 10px 17px !important; border-color: var(--gs-action) !important; background: var(--gs-action) !important; }

.gs-collection-toast { position: fixed; z-index: 500; top: calc(var(--gs-header-offset) + 16px); right: 20px; max-width: min(360px, calc(100% - 40px)); padding: 13px 17px; transform: translateY(-8px); border-radius: 9px; background: var(--gs-primary-dark); box-shadow: var(--gs-shadow); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .2s, transform .2s; }
.gs-collection-toast.is-visible { transform: none; opacity: 1; }

.gs-newsletter-dialog { width: min(920px, calc(100% - 40px)); max-width: 920px; padding: 0; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 35px 100px rgba(1, 16, 39, .32); overflow: visible; }
.gs-newsletter-dialog::backdrop { background: rgba(2, 18, 40, .72); backdrop-filter: blur(4px); }
.gs-newsletter-dialog .dialog-close { position: absolute; z-index: 2; top: 13px; right: 13px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--gs-ink); font-size: 27px; cursor: pointer; }
.newsletter-dialog-grid { display: grid; grid-template-columns: 1.05fr .95fr; }
.newsletter-dialog-copy { min-height: 500px; padding: clamp(36px, 6vw, 68px); border-radius: 20px 0 0 20px; background: linear-gradient(145deg, var(--gs-primary-dark), #0b4f9b); color: #fff; }
.newsletter-dialog-copy .eyebrow { color: #9cc7fb; }
.newsletter-dialog-copy h2 { margin: 18px 0 20px; color: #fff; }
.newsletter-dialog-copy p { color: #c9d7e7; }
.newsletter-dialog-copy ul { display: grid; gap: 9px; margin: 30px 0 0; padding: 0; list-style: none; }
.newsletter-dialog-copy li::before { margin-right: 8px; color: #8de3a5; content: "✓"; font-weight: 900; }
.newsletter-dialog-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 55px); }
.newsletter-dialog-form .text-link { align-self: center; margin-top: 18px; background: transparent; cursor: pointer; }

.gs-sticky-purchase { position: fixed; z-index: 190; left: 50%; bottom: 16px; width: min(920px, calc(100% - 34px)); min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 11px 13px 11px 17px; transform: translateX(-50%); border: 1px solid var(--gs-line); border-radius: 15px; background: rgba(255,255,255,.97); box-shadow: 0 20px 60px rgba(3, 31, 73, .2); backdrop-filter: blur(14px); }
.gs-sticky-purchase[hidden] { display: none; }
.gs-sticky-purchase > div { min-width: 0; display: flex; align-items: center; gap: 13px; }
.gs-sticky-purchase img { width: 54px; height: 54px; border-radius: 8px; object-fit: contain; background: var(--gs-soft); }
.gs-sticky-purchase span { min-width: 0; display: flex; flex-direction: column; }
.gs-sticky-purchase strong { max-width: 520px; overflow: hidden; color: var(--gs-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.gs-sticky-purchase small { color: var(--gs-primary); font-size: 13px; font-weight: 760; }
.gs-sticky-purchase .button { flex: 0 0 auto; min-height: 48px; }
.has-gs-compare-tray .gs-sticky-purchase { bottom: 105px; }

.home-buying-paths { background: var(--gs-soft); }
.buying-path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.buying-path-grid a { min-height: 230px; display: flex; flex-direction: column; padding: 27px; border: 1px solid var(--gs-line); border-radius: 15px; background: #fff; color: var(--gs-ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.buying-path-grid a:hover { border-color: var(--gs-primary); box-shadow: var(--gs-shadow); transform: translateY(-4px); }
.buying-path-grid span { color: var(--gs-action); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.buying-path-grid h3 { margin: 22px 0 10px; }
.buying-path-grid p { color: var(--gs-muted); font-size: 13px; }
.buying-path-grid strong { margin-top: auto; color: var(--gs-primary); font-size: 13px; }
.reviews-band { background: var(--gs-primary); color: #fff; }
.reviews-band-inner { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; padding-block: 55px; }
.reviews-band h2 { margin: 8px 0 0; color: #fff; font-size: clamp(30px, 4vw, 48px); }
.reviews-band .eyebrow { color: #a8cdf8; }
.reviews-band p { max-width: 680px; color: #d4e3f6; }
.reviews-band-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.reviews-band .button { border-color: #fff !important; background: #fff !important; color: var(--gs-primary) !important; }
.reviews-band .button.secondary { border-color: rgba(255,255,255,.35) !important; background: transparent !important; color: #fff !important; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-social a { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: #fff; font-size: 11px; }

.faq-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 34px; }
.faq-shortcuts a { padding: 9px 13px; border: 1px solid var(--gs-line); border-radius: 999px; background: var(--gs-soft); color: var(--gs-primary); font-size: 12px; font-weight: 740; }
.faq-contact { margin-top: 38px; padding: clamp(26px, 5vw, 48px); border-radius: 18px; background: linear-gradient(135deg, var(--gs-primary-dark), var(--gs-primary)); color: #fff; }
.faq-contact h2 { margin-top: 0; color: #fff; }
.faq-contact p { color: #d7e5f6; }
.faq-contact .button { background: #fff !important; color: var(--gs-primary) !important; }

.legal-table-wrap { max-width: 100%; margin: 22px 0 34px; border: 1px solid var(--gs-line); border-radius: 13px; overflow: auto; }
.legal-table-wrap table { width: 100%; min-width: 680px; margin: 0; border-collapse: collapse; background: #fff; }
.legal-table-wrap th, .legal-table-wrap td { padding: 15px 17px; border-bottom: 1px solid var(--gs-line); text-align: left; vertical-align: top; }
.legal-table-wrap th { background: var(--gs-soft); color: var(--gs-ink); font-size: 12px; }
.legal-table-wrap td { color: var(--gs-muted); font-size: 13px; }
.legal-table-wrap tr:last-child td { border-bottom: 0; }

@media (max-width: 1240px) {
	.header-wishlist { display: none; }
	.gs-recent-grid, .gs-saved-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.buying-path-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
	.product-card-tools { grid-template-columns: 1fr; }
	.gs-recent-grid, .gs-saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.newsletter-dialog-grid { grid-template-columns: 1fr; max-height: min(90vh, 760px); overflow: auto; }
	.newsletter-dialog-copy { min-height: 0; padding: 38px 28px; border-radius: 20px 20px 0 0; }
	.newsletter-dialog-copy ul { display: none; }
	.newsletter-dialog-form { padding: 30px 28px; }
	.reviews-band-inner { grid-template-columns: 1fr; gap: 24px; }
	.gs-sticky-purchase { bottom: 10px; }
	.legal-page { padding-inline: 20px; }
}

@media (max-width: 620px) {
	.product-card-tools button b { font-size: 10px; }
	.product-card-tools button { min-height: 35px; padding: 6px 4px; }
	.product-collection-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.product-collection-actions button:last-child { grid-column: 1 / -1; }
	.product-buying-help span { flex-direction: column; }
	.gs-recent-grid, .gs-saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
	.gs-saved-image { height: 150px; padding: 10px; }
	.gs-saved-copy { padding: 13px; }
	.gs-saved-title { font-size: 13px; }
	.gs-saved-price { margin-top: 10px; font-size: 15px; }
	.gs-saved-actions { grid-template-columns: 1fr; }
	.gs-saved-actions .gs-remove-button { grid-column: auto; }
	.buying-path-grid { grid-template-columns: 1fr; }
	.buying-path-grid a { min-height: 205px; }
	.gs-compare-tray { bottom: 8px; align-items: stretch; flex-direction: column; gap: 7px; padding: 11px 13px; }
	.gs-compare-tray > div { justify-content: space-between; }
	.gs-compare-tray .button { min-height: 40px; }
	.gs-sticky-purchase { min-height: 66px; padding: 8px; }
	.has-gs-compare-tray .gs-sticky-purchase { display: none !important; }
	.gs-sticky-purchase img { width: 46px; height: 46px; }
	.gs-sticky-purchase strong { max-width: 170px; }
	.gs-sticky-purchase .button { min-height: 43px; padding: 8px 12px !important; font-size: 11px; }
	.gs-whatsapp { bottom: 88px; }
}

@media (max-width: 380px) {
	.gs-recent-grid, .gs-saved-grid { grid-template-columns: 1fr; }
	.gs-saved-image { height: 230px; }
	.gs-sticky-purchase strong { max-width: 125px; }
}

@media print {
	.gs-compare-tray, .gs-collection-toast, .gs-newsletter-dialog, .gs-sticky-purchase, .product-card-tools, .product-collection-actions { display: none !important; }
}
