:root {
  --navy: #081c99;
  --navy-2: #00106f;
  --orange: #f40707;
  --orange-2: #ff3434;
  --green: #081c99;
  --ink: #172033;
  --muted: #667085;
  --line: #dde4f0;
  --surface: #ffffff;
  --soft-blue: #eef5ff;
  --soft-orange: #fff0f0;
  --shadow: 0 18px 50px rgba(23, 25, 79, 0.16);
  --content: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fd;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(23, 25, 79, 0.08);
  backdrop-filter: blur(14px);
}

.header-main {
  display: grid;
  grid-template-columns: 190px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: var(--content);
  margin: 0 auto;
  padding: 15px 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.logo-link img {
  width: 142px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 52px;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(242, 138, 22, 0.12);
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.search-box button {
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link,
.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--navy);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
}

.header-link:hover,
.cart-trigger:hover {
  border-color: var(--line);
  background: var(--soft-blue);
}

.cart-trigger {
  position: relative;
  color: #ffffff;
  background: var(--navy);
}

.cart-trigger:hover {
  color: #ffffff;
  background: var(--navy-2);
}

.cart-trigger strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--orange);
  font-size: 0.78rem;
}

.category-nav {
  display: flex;
  gap: 8px;
  width: var(--content);
  margin: 0 auto;
  padding: 0 0 13px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-pill {
  flex: 0 0 auto;
  padding: 9px 15px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
}

.category-pill.active,
.category-pill:hover {
  color: #ffffff;
  border-color: var(--orange);
  background: var(--orange);
}

main {
  overflow: hidden;
}

.hero {
  min-height: 390px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 16, 111, 0.92) 0%, rgba(0, 16, 111, 0.72) 48%, rgba(0, 16, 111, 0.18) 100%),
    url("assets/petfort-fachada.png") center 42% / cover no-repeat,
    linear-gradient(135deg, #00106f, #081c99);
}

.hero-layout {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(220px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 58px 0 66px;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-heading span,
.offers-band span,
.cart-drawer header span {
  display: inline-flex;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 14px 0 12px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.hero p {
  max-width: 530px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  color: #ffffff;
  background: var(--orange);
}

.secondary-action {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.benefits,
.quick-categories,
.featured-section,
.product-section,
.offers-band,
.site-footer {
  width: var(--content);
  margin: 0 auto;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px 0 16px;
}

.benefits article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.benefits article[data-hidden-benefit="delivery"],
.benefits article:has(strong[data-benefit="delivery"]) {
  display: none;
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits strong {
  color: var(--navy);
  font-size: 1rem;
}

.benefits span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.quick-categories,
.featured-section,
.product-section {
  padding: 30px 0;
}

.featured-section {
  margin-top: 22px;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef5ff, #ffffff 55%, #fff0f0);
  box-shadow: 0 18px 50px rgba(23, 25, 79, 0.1);
}

.featured-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-heading span {
  color: var(--orange);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-grid button {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  text-align: left;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
}

.category-grid button:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 32px rgba(23, 25, 79, 0.1);
}

.category-grid img {
  width: 70px;
  aspect-ratio: 1;
  object-fit: contain;
}

.offers-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 0 10px;
}

.offers-band article {
  min-width: 0;
  padding: 20px;
  color: #ffffff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 174, 66, 0.5), transparent 32%),
    linear-gradient(135deg, var(--navy), #283289);
}

.offers-band strong {
  display: block;
  min-height: 58px;
  margin: 8px 0 12px;
  font-size: 1.22rem;
  line-height: 1.24;
}

.offers-band a {
  display: inline-flex;
  color: var(--orange-2);
  font-weight: 900;
}

.product-heading {
  align-items: center;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.sort-control select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
}

.result-line {
  min-height: 22px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.product-card-featured {
  border-color: rgba(8, 28, 153, 0.2);
  box-shadow: 0 14px 34px rgba(23, 25, 79, 0.12);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  background: linear-gradient(180deg, #ffffff, var(--soft-blue));
}

.product-media img {
  width: 88%;
  max-height: 188px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.product-card:hover .product-media img {
  transform: translateY(-3px);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.product-meta > span:last-child {
  margin-left: auto;
  padding-left: 8px;
  white-space: nowrap;
}

.brand {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.32;
}

.category-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.price-block {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding-top: 12px;
}

.price-block > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 950;
}

.stock-line {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-source {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.add-to-cart {
  min-height: 44px;
  width: 100%;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  font-weight: 950;
}

.add-to-cart:hover {
  background: #cf0000;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.load-more {
  display: block;
  min-width: 240px;
  min-height: 48px;
  margin: 24px auto 0;
  padding: 0 22px;
  color: #ffffff;
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  font-weight: 900;
}

.load-more[hidden] {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  width: 100%;
  margin-top: 20px;
  padding: 34px max(16px, calc((100vw - 1180px) / 2)) 46px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy);
}

body::after {
  content: "";
  display: block;
  height: 0;
}

.site-footer::before {
  content: none;
}

.site-footer {
  position: relative;
}

.site-footer img {
  width: 168px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.site-footer strong,
.site-footer a,
.site-footer span,
.site-footer p {
  display: block;
}

.site-footer strong {
  margin-bottom: 10px;
  color: #ffffff;
}

.site-footer p,
.site-footer span,
.site-footer a {
  margin: 0 0 7px;
  line-height: 1.5;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(13, 18, 39, 0.46);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100vw);
  max-width: 100%;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer header h2 {
  margin: 5px 0 0;
  color: var(--navy);
  font-size: 1.36rem;
}

.cart-drawer header button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cart-items {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 82px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft-blue);
}

.cart-item h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart-item > div {
  min-width: 0;
}

.cart-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty-control button {
  height: 34px;
  border: 0;
  background: var(--soft-blue);
  color: var(--navy);
  font-weight: 900;
}

.qty-control span {
  text-align: center;
  color: var(--navy);
  font-weight: 900;
}

.remove-button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #c03535;
  font-size: 0.84rem;
  font-weight: 900;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.cart-summary {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: #f8fbff;
}

.coupon-box {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.coupon-box input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.delivery-choice {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.delivery-choice legend {
  padding: 0 5px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 900;
}

.delivery-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}

.cart-summary dl {
  margin: 15px 0;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.cart-summary dt {
  color: var(--muted);
}

.cart-summary dd {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.total-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.16rem;
}

.checkout-button {
  width: 100%;
  min-height: 48px;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  font-weight: 950;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.whatsapp-checkout {
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  color: #075e54;
  border: 1px solid #25d366;
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.whatsapp-checkout:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
  .cart-drawer { width: 100vw; height: 100dvh; min-height: 100dvh; }
  .cart-drawer header { padding: 14px 16px; }
  .cart-items { padding: 10px 14px; }
  .cart-summary { max-height: 46dvh; overflow-y: auto; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cart-summary dl { margin: 10px 0; }
  .delivery-choice { margin-top: 9px; padding: 9px; }
  .promotion-hints { margin: 7px 0; }
}

.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 16, 72, 0.68);
  backdrop-filter: blur(3px);
}

.payment-modal {
  position: fixed;
  z-index: 91;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(860px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 10, 70, 0.32);
  transform: translate(-50%, -50%);
}

.payment-modal[hidden],
.payment-overlay[hidden] {
  display: none;
}

.payment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  color: #ffffff;
  background: var(--navy);
}

.payment-modal-header span {
  color: #ffcccb;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-modal-header h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
}

.payment-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.payment-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 28px;
}

.payment-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 15px 17px;
  border: 1px solid #cbd8ef;
  border-radius: 12px;
  background: #f2f6ff;
  color: var(--navy);
}

.payment-order-summary span {
  font-weight: 800;
}

.payment-order-summary strong {
  font-size: 1.35rem;
}

.payment-security-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.payment-loading {
  padding: 28px 16px;
  color: var(--navy);
  text-align: center;
  font-weight: 850;
}

.payment-result {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 18px 10px;
  text-align: center;
}

.payment-result[hidden] {
  display: none;
}

.payment-result-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  border-radius: 50%;
  background: #16834f;
  font-size: 1.8rem;
  font-weight: 950;
}

.payment-result.is-pending .payment-result-icon {
  background: #d78600;
}

.payment-result.is-error .payment-result-icon {
  background: #c03232;
}

.payment-result h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1.45rem;
}

.payment-result p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pix-qr-code {
  width: min(250px, 72vw);
  height: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.pix-copy-box {
  display: grid;
  width: min(100%, 620px);
  gap: 7px;
  color: var(--navy);
  text-align: left;
  font-weight: 850;
}

.pix-copy-box textarea {
  min-height: 84px;
  resize: vertical;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  font: 0.78rem/1.4 monospace;
  word-break: break-all;
}

.pix-copy-button,
.payment-ticket-link,
.payment-finish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.pix-copy-button {
  color: #ffffff;
  border: 0;
  background: #16834f;
}

.payment-ticket-link {
  color: #ffffff;
  background: var(--navy);
}

.payment-finish-button {
  margin-top: 6px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: #ffffff;
}

.toast {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 70;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 16px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--orange);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .top-strip {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .header-main {
    grid-template-columns: 148px 1fr;
  }

  .logo-link img {
    width: 136px;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .benefits,
  .product-grid,
  .category-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offers-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  :root {
    --content: min(100vw - 24px, 1180px);
  }

  .top-strip span:nth-child(n + 2),
  .header-link span,
  .cart-trigger span {
    display: none;
  }

  .header-main {
    grid-template-columns: 114px 1fr;
    gap: 10px;
    padding: 11px 0;
  }

  .logo-link img {
    width: 106px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-link,
  .cart-trigger {
    min-width: 42px;
    padding: 8px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(0, 16, 111, 0.9) 0%, rgba(0, 16, 111, 0.66) 58%, rgba(0, 16, 111, 0.28) 100%),
      url("assets/petfort-fachada.png") center 44% / cover no-repeat,
      linear-gradient(135deg, #00106f, #081c99);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0 46px;
  }

  .hero h1 {
    font-size: clamp(2.08rem, 14vw, 3rem);
  }

  .benefits,
  .category-grid,
  .offers-band,
  .featured-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .featured-section {
    padding: 24px 18px;
  }

  .featured-note {
    text-align: left;
  }

  .product-heading {
    align-items: stretch;
  }

  .sort-control {
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }

  .product-media {
    min-height: 190px;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item img {
    width: 72px;
  }

  .payment-modal {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .payment-modal-header {
    padding: 16px;
  }

  .payment-modal-header h2 {
    font-size: 1.3rem;
  }

  .payment-modal-body {
    padding: 16px 12px 24px;
  }
}

.account-trigger{border:0;background:transparent;font:inherit;color:inherit;cursor:pointer}.account-overlay{position:fixed;inset:0;background:rgba(15,31,26,.58);z-index:80}.account-modal{position:fixed;z-index:81;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw,480px);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;padding:30px;box-shadow:0 28px 80px rgba(0,0,0,.28)}.account-modal[hidden],.account-overlay[hidden]{display:none}.account-close{position:absolute;right:18px;top:14px;border:0;background:#f1f5f2;border-radius:50%;width:36px;height:36px;font-size:25px;cursor:pointer}.account-heading span{color:#e56c20;font-weight:800;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.account-heading h2{margin:6px 40px 6px 0;font-size:1.7rem}.account-heading p{margin:0 0 20px;color:#647067}.account-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f1f5f2;padding:4px;border-radius:12px;margin-bottom:20px}.account-tabs button{border:0;background:transparent;padding:11px 8px;border-radius:9px;font-weight:700;cursor:pointer}.account-tabs button.active{background:#fff;color:#126b49;box-shadow:0 2px 8px rgba(0,0,0,.08)}.account-form{display:grid;gap:14px}.account-form label{display:grid;gap:6px;font-weight:700;color:#263b32}.account-form input{border:1px solid #cad5ce;border-radius:10px;padding:12px;font:inherit}.account-form input:focus{outline:2px solid #91ceb5;border-color:#126b49}.account-submit{border:0;border-radius:12px;padding:14px;background:#126b49;color:#fff;font-weight:800;font-size:1rem;cursor:pointer}.form-message{margin:0;color:#b33d2e;font-size:.9rem;min-height:1em}.account-signed{display:grid;gap:8px;padding:18px;background:#f1f7f3;border-radius:14px}.account-signed strong{font-size:1.2rem}.account-signed span{color:#647067}.account-signed button{margin-top:8px;border:1px solid #b9c8bf;border-radius:10px;padding:10px;background:#fff;color:#8d352a;font-weight:700;cursor:pointer}@media(max-width:600px){.account-modal{padding:24px 18px;border-radius:18px}.account-heading h2{font-size:1.4rem}}
.account-form[hidden],.account-signed[hidden],.account-tabs[hidden]{display:none!important}
.cep-message{margin:-8px 0 0;color:#126b49;font-size:.86rem;min-height:1em}.cep-message.error{color:#b33d2e}.account-form input[readonly]{background:#f6f8f6;color:#4f5f56}
.promotion-hints,.discount-details{display:grid;gap:7px;margin:10px 0}.promotion-hints p,.discount-details p{margin:0;padding:9px 11px;border-radius:10px;font-size:.84rem}.promotion-hints p{background:#fff5e8;color:#80501f}.discount-details p{display:flex;justify-content:space-between;background:#edf8f2;color:#176044}.cashback-use{display:flex;align-items:center;gap:9px;padding:11px;background:#eef5ff;border-radius:10px;color:#274e78;font-size:.88rem}.cashback-use input{width:18px;height:18px}.cashback-profile{display:grid;gap:3px;margin-top:8px;padding:13px;border-radius:11px;background:#e7f5ec}.cashback-profile small{color:#537061}.cashback-profile strong{color:#126b49;font-size:1.25rem}.cashback-profile span{font-size:.8rem;color:#647067}
.customer-orders-profile{display:grid;gap:10px;margin-top:8px;padding:13px;border-radius:11px;background:#fff;border:1px solid #d8e5dc}.customer-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.customer-orders-heading div{display:grid;gap:2px}.customer-orders-heading small{color:#537061}.customer-orders-heading strong{font-size:1rem;color:#173e2d}.customer-orders-heading button{border:1px solid #a9c8b6;background:#fff;border-radius:8px;padding:7px 9px;font:inherit;font-size:.78rem;font-weight:800;color:#126b49;cursor:pointer}.customer-orders-list{display:grid;gap:8px}.customer-orders-list>p{margin:0;color:#647067;font-size:.85rem}.customer-order-item{display:grid;gap:5px;padding:10px;border-radius:9px;background:#f6faf7}.customer-order-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.customer-order-top strong{font-size:.88rem;color:#263b32}.customer-order-item small{color:#647067;font-size:.77rem}.fulfillment-badge{display:inline-flex;width:max-content;padding:4px 7px;border-radius:999px;background:#e8f0ed;color:#275a42;font-size:.72rem!important;font-weight:800}.fulfillment-badge.delivery{background:#fff0da;color:#9b5912}.fulfillment-badge.done{background:#e5f7e9;color:#16713a}.fulfillment-badge.pending{background:#eef0f5;color:#5d6570}
.account-recovery-link{border:0;background:transparent;color:#126b49;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer;padding:3px 0}
.cashback-use[hidden],#cashback-applied-row[hidden]{display:none!important}
.coupon-message{min-height:1em;margin:5px 0 0;font-size:.8rem;color:#80501f}.coupon-message.valid{color:#176044}
