:root {
  color-scheme: light;
  --paper: #fffdfb;
  --ink: #302327;
  --muted: #695d60;
  --wine: #6a3043;
  --berry: #973c56;
  --berry-dark: #792940;
  --pink: #f8eeeb;
  --line: #ebdfdc;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 18px; }
body.city-catalog-page { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select { min-width: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--berry-dark); outline-offset: 4px; }
.wrap { width: min(1256px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden, .icon-library { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 3; top: 8px; left: 10px; transform: translateY(-150%); background: white; padding: 8px 12px; }
.skip:focus { transform: translateY(0); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { display: inline-grid; place-items: center; width: 44px; min-height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--wine); }
.icon-button:hover, .icon-button[aria-pressed="true"] { background: var(--pink); }

.top-note { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 12px; text-align: center; background: #622c3d; color: #fff9f8; font-size: .875rem; }
.top-note .icon { width: 15px; height: 15px; }
.catalog-header { background: #fff; }
.header-main { display: grid; grid-template-columns: auto minmax(140px, 1fr) auto auto; gap: clamp(16px, 3.4vw, 49px); align-items: center; min-height: 76px; }
.logo { display: block; width: 205px; }
.logo img { width: 100%; height: auto; }
.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fcf8f7; }
.search:focus-within { border-color: var(--berry); }
.search input { width: 100%; height: 46px; padding: 0 0 0 15px; border: 0; background: transparent; outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search button { align-self: stretch; display: grid; place-items: center; width: 46px; flex: none; border: 0; border-radius: 9px; background: transparent; color: var(--wine); }
.search button:hover { background: var(--pink); }
.location { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 5px 0; border: 0; background: transparent; text-align: left; color: var(--wine); }
.location span { display: grid; gap: 1px; }
.location small { font-size: .8rem; color: var(--muted); }
.location strong { font-size: .94rem; line-height: 1.14; }
.location .location-chevron { width: 15px; height: 15px; margin-left: 2px; }
.header-actions { display: flex; align-items: center; gap: 3px; }
.saved-action, .order-action { position: relative; }
.saved-count { position: absolute; top: 1px; right: 0; min-width: 18px; padding: 0 3px; border-radius: 9px; background: var(--berry-dark); color: white; font-size: .75rem; font-weight: 700; line-height: 18px; text-align: center; }
.nav-frame { border-block: 1px solid #f0e7e4; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3.1vw, 46px); min-height: 46px; }
.main-nav a { flex: none; position: relative; display: flex; align-items: center; gap: 7px; min-height: 46px; font-size: .94rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: var(--berry-dark); }
.main-nav .nav-current { color: var(--berry-dark); font-weight: 700; }
.nav-current::after { position: absolute; inset: auto 0 -1px; height: 2px; border-radius: 1px; background: var(--berry); content: ""; }
.main-nav .nav-offer, .main-nav .nav-help { color: var(--berry-dark); }
.main-nav .nav-help { margin-left: auto; }
.nav-help .icon { width: 19px; height: 19px; }

.hero { display: grid; grid-template-columns: 45% 55%; min-height: 327px; margin-top: 25px; border-radius: 20px; overflow: hidden; background: #f9eeeb; }
.hero-copy { align-self: center; padding: 30px clamp(30px, 4.1vw, 62px) 35px; }
.hero-context { margin: 0 0 9px; color: var(--berry-dark); font-size: .875rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.hero h1 { margin: 0; color: #482333; font: 400 clamp(3.4rem, 5.35vw, 5.35rem)/.96 var(--serif); letter-spacing: -.058em; }
.hero h1 em { color: var(--berry); font-weight: 400; }
.hero-description { max-width: 345px; margin: 15px 0 20px; color: #59444a; }
.hero-photo { min-width: 0; min-height: 100%; position: relative; background: #e9c5bb; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 9px 19px; border: 1px solid transparent; border-radius: 8px; font-size: .94rem; font-weight: 700; text-align: center; }
.primary { background: var(--berry-dark); color: white; }
.primary:hover { background: #622034; }
.secondary { border-color: #d8adb9; background: transparent; color: var(--berry-dark); }
.secondary:hover { background: var(--pink); }

.section { margin-top: 35px; }
.section h2 { margin: 0; color: #422b34; font: 400 clamp(1.95rem, 3.1vw, 2.7rem)/1.14 var(--serif); letter-spacing: -.045em; }
.occasion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.occasion {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #4a263012;
  border-radius: 12px;
  background-color: var(--tile);
}
.occasion::before { position: absolute; z-index: -2; inset: 0; background: var(--art) right center / cover no-repeat; transition: transform .22s ease; content: ""; }
.occasion::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--tile) 27%, var(--tile) 40%, transparent 78%); content: ""; }
.occasion:hover::before { transform: scale(1.055); }
.occasion-title { color: #442b34; font: 400 clamp(1.24rem, 1.85vw, 1.7rem)/1.08 var(--serif); letter-spacing: -.034em; }
.occasion-note { max-width: 54%; margin-top: 6px; color: #5e4b52; font-size: .875rem; line-height: 1.3; }
.birthday { --tile: #ffe9ed; --art: url("../img/home-floral/cumpleanos.webp"); }
.anniversary { --tile: #eae2f5; --art: url("../img/home-floral/aniversarios.webp"); }
.just-because { --tile: #fff2ca; --art: url("../img/home-floral/porque-si.webp"); }
.roses { --tile: #e1f0df; --art: url("../img/home-floral/rosas.webp"); }

.catalog { margin-top: 36px; }
.catalog-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sort-control { position: relative; flex: none; }
.sort-control select { appearance: none; min-height: 43px; min-width: 156px; padding: 7px 34px 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .875rem; cursor: pointer; }
.sort-control .icon { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 17px; }
.filters a { display: inline-flex; align-items: center; flex: none; min-height: 38px; padding: 5px 15px; border: 1px solid var(--line); border-radius: 22px; background: #fff; font-size: .875rem; }
.filters a:hover, .filters .filter-current { border-color: #e2bac6; background: #f8e6eb; color: #722b40; }
.filters .filter-current { font-weight: 700; }
.city-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.city-product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.product-visual { position: relative; background: #f5eeeb; }
.product-image-link { display: block; overflow: hidden; }
.product-image-link:focus-visible { outline-offset: -3px; }
.product-visual img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .25s ease; }
.product-image-link:hover img { transform: scale(1.04); }
.product-heart { position: absolute; top: 10px; right: 10px; background: #fffdfa; box-shadow: 0 1px 5px #39232623; }
.product-heart[aria-pressed="true"] .icon, .saved-action[aria-current="page"] .icon { fill: currentColor; }
.product-badge { position: absolute; top: 13px; left: 12px; padding: 4px 9px; border-radius: 5px; background: #fff4f6; color: var(--berry-dark); font-size: .875rem; font-weight: 700; }
.product-copy { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.city-product-card h3 { margin: 0 0 4px; font-size: 1.04rem; line-height: 1.24; }
.product-name:hover { color: var(--berry-dark); text-decoration: underline; }
.product-description { margin: 0 0 12px; color: var(--muted); font-size: .875rem; }
.product-price { margin: auto 0 12px; color: #623043; }
.product-price span { color: var(--muted); font-size: .8rem; }
.product-price strong { font-size: 1.16rem; }
.product-action { align-self: stretch; min-height: 40px; }
.more-catalog { display: flex; justify-content: center; margin-top: 22px; }
.empty { padding: 25px; border-radius: 10px; background: var(--pink); text-align: center; }
.empty p { margin: 0 0 14px; }

.service-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 43px 0; padding: 22px 23px; border-radius: 13px; background: var(--pink); }
.service-strip > div { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .875rem; }
.service-strip .icon { width: 26px; height: 26px; color: var(--berry-dark); }
.service-strip strong { color: var(--ink); font-size: 1rem; }
.service-strip a { text-decoration: underline; text-underline-offset: 3px; }
.catalog-faq { margin-bottom: 40px; }
.catalog-faq details { padding: 13px 0; border-bottom: 1px solid var(--line); }
.catalog-faq summary { cursor: pointer; font-weight: 600; }
.catalog-faq details p { margin: 8px 0 0; color: var(--muted); }
.city-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 25px max(40px, calc((100% - 1256px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .875rem;
}
.city-footer .city-logo { display: block; width: 170px; }
.city-footer .city-logo img { width: 100%; height: auto; }
.city-footer h2 { margin: 0 0 10px; color: var(--ink); font-size: 1rem; }
.city-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.city-footer a:hover { color: var(--berry-dark); text-decoration: underline; }
.city-footer small { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.home-sort { display: flex; align-items: center; gap: 8px; }

.listing-main { min-height: 58vh; margin-block: 25px 42px; }
.catalog-heading { padding: 28px clamp(18px, 4vw, 44px); border-radius: 16px; background: var(--pink); }
.catalog-heading h1 { margin: 0; color: #482333; font: 400 clamp(2.2rem, 5vw, 4rem)/1.06 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.catalog-heading p:last-child { margin: 10px 0 0; color: var(--muted); }
.city-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-field { flex: 1 1 160px; min-width: 0; }
.filter-field label { display: block; margin: 0 0 4px; font-size: .875rem; font-weight: 700; }
.filter-field .sort-control { display: block; }
.filter-field select { width: 100%; min-width: 0; }
.clear-filters { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 7px; color: var(--berry-dark); font-size: .875rem; text-decoration: underline; }
.city-result-count { margin: 16px 0 12px; color: var(--muted); font-size: .875rem; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .header-main { gap: 17px; }
  .city-footer { padding-inline: 24px; }
  .logo { width: 174px; }
  .hero { grid-template-columns: 48% 52%; }
  .hero-copy { padding-inline: 24px; }
  .occasion { min-height: 109px; padding-inline: 11px; }
  .occasion-note { max-width: 62%; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-main { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; padding-block: 8px 11px; }
  .logo { width: min(151px, 100%); }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .location { padding-inline: 2px; gap: 4px; }
  .location small { font-size: .75rem; }
  .location > .icon { width: 17px; }
  .location .location-chevron { display: none; }
  .header-actions { gap: 0; }
  .main-nav { gap: 19px; width: 100%; padding-inline: 16px; overflow: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { min-height: 42px; font-size: .875rem; }
  .main-nav .nav-help { margin-left: 0; }
  .hero { min-height: auto; margin-top: 15px; border-radius: 15px; }
  .hero h1 { font-size: clamp(2.55rem, 7.1vw, 3.5rem); }
  .hero-copy { padding: 22px 14px 23px 19px; }
  .hero-context { font-size: .75rem; letter-spacing: .065em; }
  .hero-description { margin-block: 12px 14px; font-size: .94rem; }
  .hero-photo img { object-position: 55% center; }
  .section, .catalog { margin-top: 26px; }
  .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
  .occasion { min-height: 89px; padding: 10px; }
  .occasion-note { font-size: .8rem; }
  .city-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-copy { padding: 11px; }
  .product-description { font-size: .84rem; }
  .product-heart { top: 6px; right: 6px; }
  .product-badge { top: 8px; left: 7px; }
  .city-footer { grid-template-columns: 1fr; padding-inline: 16px; }
  .listing-main { margin-top: 15px; }
  .service-strip { grid-template-columns: 1fr; gap: 14px; margin-block: 28px; padding: 16px; }
}

@media (max-width: 435px) {
  .top-note { font-size: .8rem; }
  .top-note .icon { width: 13px; }
  .header-actions .icon-button { width: 38px; }
  .location strong { font-size: .83rem; }
  .hero { grid-template-columns: 55% 45%; }
  .hero-copy { padding: 21px 8px 20px 14px; }
  .hero-context { margin-bottom: 7px; font-size: .69rem; }
  .hero h1 { font-size: clamp(2rem, 8.65vw, 2.55rem); }
  .hero-description { font-size: .85rem; }
  .hero .button { padding-inline: 11px; font-size: .86rem; }
  .occasion { min-height: 85px; }
  .occasion-title { font-size: 1.2rem; }
  .sort-control select { min-width: 126px; padding-inline: 7px 26px; }
  .sort-control .icon { right: 6px; }
  .filters { gap: 5px; }
  .filters a { min-height: 40px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { scroll-behavior: auto !important; transition: none !important; }
}
