
/* Tienda pública VIKO */
:root {
  --canvas: #f7f7f4;
  --navy: #08254d;
  --gold: #ffd02f;
  --edge: #e1e7ee;
  --deal: #19623d;
}

.market-home, .market-page { background: var(--canvas); }
.site-header { border-bottom: 1px solid #e3e8ed; }
.header-main { height: 74px; gap: clamp(14px, 2.6vw, 40px); }
.header-strip { background: #fff; }
.strip-inner { height: 42px; gap: 12px; }
.strip-inner .strip-gs { color: #704b0d; }
.strip-inner .strip-gs.active { background: #fff1c9; color: #684203; }
.header-main .market-menu-mobile { display: none; }
.header-actions .hdr-two { padding-inline: 10px; height: 42px; }
.header-actions .hdr-two strong { gap: 6px; }
.market-categories-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; color: var(--navy); border: 1px solid #e4eaf0; border-radius: 7px; font-weight: 750; font-size: .86rem; }
.market-categories-button:hover, .market-categories-button[aria-expanded="true"] { background: #eff3f9; }
.market-nav-secondary { display: flex; gap: 3px; margin-left: auto; }
.search input { border-radius: 9px !important; padding-left: 16px !important; }
.search-btn { border-radius: 7px; }
.header-actions .bag-btn { border: 1px solid var(--edge); height: 43px; width: 45px; }
.header-actions .bag-btn .dot-badge { color: var(--navy); background: var(--gold); border-color: white; }

.market-hero { padding-top: 20px; }
.market-hero .hero-track { min-height: 0; border: 1px solid #e8dfca; border-radius: 16px; overflow: hidden; }
.market-hero .market-slide.active {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 340px;
  animation: none;
}
.market-hero .market-slide { border-radius: 0; background: #fff5dc; }
.market-hero .market-slide-promo { background: var(--slide-color, #ffe9a9); }
.market-copy { position: relative; z-index: 2; align-self: center; padding: 30px 16px 39px clamp(24px, 4vw, 57px); }
.market-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: #f4e9cb;
  color: #624709;
  font-size: .8rem;
  font-weight: 800;
}
.market-copy h1, .market-copy h2 {
  max-width: 16ch;
  margin: 11px 0 10px;
  font-size: clamp(3.05rem, 4.55vw, 4.4rem);
  line-height: .94;
  letter-spacing: -.071em;
  font-weight: 850;
  color: var(--navy);
  text-wrap: pretty;
}
.market-copy h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.market-copy p { max-width: 36ch; font-size: clamp(.94rem, 1.38vw, 1.13rem); margin: 0 0 17px; }
.market-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.market-ctas .btn { border-radius: 8px; }
.market-more { display: inline-flex; align-items: center; gap: 2px; font-size: .84rem; font-weight: 800; }
.market-more:hover { text-decoration: underline; }
.market-art { position: relative; min-width: 0; display: grid; place-items: center; }
.market-art img { display: block; position: absolute; width: 100%; height: 100%; object-fit: contain; }
.market-slide-main .market-art img {
  object-fit: cover;
  object-position: 66% 10%;
}
.market-art .market-mark { width: 140px; height: 140px; }
.market-controls {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  right: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  background: #fffaf0;
  box-shadow: 0 2px 8px #152a4120;
  padding: 3px 6px;
}
.market-controls > button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.market-controls > button:hover { background: #ffec9d; }
.market-controls .hero-dots { position: static; display: flex; transform: none; gap: 0; }
.market-controls .hero-dots button { width: 17px; height: 22px; display: grid; place-items: center; background: transparent; }
.market-controls .hero-dots button::after { content: ""; width: 6px; height: 6px; background: #8190a5; border-radius: 25px; }
.market-controls .hero-dots button.active::after { background: #08254d; }
.market-controls .hero-dots button.active { width: 25px; }
.market-controls .hero-dots button.active::after { width: 16px; }

.home-shelf { margin-top: 31px; }
.home-shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 13px; }
.home-shelf-head h2 { font-size: clamp(1.3rem, 2.1vw, 1.78rem); letter-spacing: -.042em; margin: 0; }
.home-shelf-head .link { font-size: .86rem; flex-shrink: 0; }
.home-shelf .hs-track { grid-auto-columns: calc((100% - 60px) / 6); gap: 12px; padding-bottom: 4px; scroll-padding-inline: 2px; }
.home-shelf .hs-btn { box-shadow: 0 4px 14px #12365526; }
.hs-btn:disabled { opacity: 0; pointer-events: none; }
.gs-band { background: #ffeeb8; }

.pcard { border-color: var(--edge); border-radius: 10px; }
.pcard:focus-within { border-color: #9bb1cc; }
.pcard .pcard-img { background: #f8f8f8; aspect-ratio: 1.08; }
.pcard .pcard-img img { background: #f8f8f8; }
.pcard .pcard-body { padding: 10px 12px 5px; gap: 3px; }
.pcard .pcard-brand { color: #586a7f; font-size: .75rem; }
.pcard .pcard-name { min-height: 2.55em; font-size: .93rem; letter-spacing: -.018em; font-weight: 700; }
.pcard .price { font-size: clamp(1.02rem, 1.7vw, 1.52rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.18; }
.pcard .price-line { gap: 6px; flex-wrap: wrap; }
.pcard .disc { color: var(--deal); background: #e9f5eb; border-radius: 4px; font-size: .7rem; }
.pcard .price-old { color: #56647a; font-size: .77rem; }
.pcard-shipping { display: flex; align-items: center; gap: 4px; color: var(--deal); font-size: .75rem; font-weight: 800; }
.pcard .pcard-add { padding: 5px 10px 10px; }
.pcard .pcard-add .btn { font-size: .78rem; font-weight: 800; box-shadow: none; background: #eff4f9; color: #193a61; border-radius: 7px; }
.pcard .pcard-add .btn:hover { background: #12385f; color: white; }
.pcard .pcard-tags .tag-gs { color: #664100; background: #fff1bc; }
.pcard .fav-btn { width: 33px; height: 33px; border: 1px solid var(--edge); box-shadow: none; }

.product-page .pdp { padding: clamp(16px, 2vw, 29px); gap: clamp(16px, 2.65vw, 40px); }
.pdp-visual { min-width: 0; }
.pdp-info .pdp-title { font-size: clamp(1.65rem, 2.45vw, 2.45rem); text-wrap: pretty; }
.pdp-gallery .main-img { border-radius: 11px; background: #f8f8f8; }
.pdp-gallery .thumb { background: #f8f8f8; }
.pdp-gallery .thumb.active { box-shadow: 0 0 0 1px var(--primary); }
.photo-source { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .78rem; color: #536780; }
.pdp-price .pdp-savings { color: var(--deal); font-weight: 800; }
.pdp-info .pdp-price { background: #fff5cf; }
.pdp-price .pp-row strong { color: var(--navy); }
.pdp-info .pdp-actions .btn-primary { background: #ffc824; color: var(--navy); }
.pdp-info .pdp-actions .btn-ghost { color: var(--navy); background: #eaf1f9; border-color: #eaf1f9; }
.pdp-info .pdp-actions .btn-ghost:hover { background: #dce8f7; }
.pdp-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 10px;
}
.pdp-section-nav a { padding: 5px 10px; font-size: .86rem; color: var(--primary); font-weight: 800; border-radius: 6px; }
.pdp-section-nav a:hover { background: #edf3fa; }
.pdp-details .card { scroll-margin-top: 128px; }
.pdp-photo-open { position: absolute; top: 12px; left: 12px; border-radius: 50%; background: white; border: 1px solid var(--edge); z-index: 2; }
.photo-dialog { width: min(880px, 94vw); height: min(840px, 91dvh); border: none; border-radius: 15px; padding: 42px 28px 25px; overflow: hidden; background: #fff; }
.photo-dialog::backdrop { background: #05142dde; }
.photo-dialog img { width: 100%; height: 100%; object-fit: contain; }
.photo-dialog .close-photo { position: absolute; top: 6px; right: 6px; }
.photo-dialog .gallery-count { border: 1px solid var(--edge); }
.pdp-mobile-buy { display: none; }

@media (max-width: 1140px) { .home-shelf .hs-track { grid-auto-columns: calc((100% - 48px) / 5); } }
@media (max-width: 920px) {
  .home-shelf .hs-track { grid-auto-columns: calc((100% - 36px) / 4); }
  .market-copy { padding-left: 28px; }
}
@media (max-width: 860px) {
  .header-main { height: auto; gap: 6px; }
  .header-main .market-menu-mobile { display: inline-flex; }
  .market-hero .market-slide.active { min-height: 315px; }
  .market-copy { padding: 24px 12px 35px 23px; }
  .market-copy h1 { font-size: clamp(2.15rem, 6.6vw, 3.4rem); }
  .market-copy h2 { font-size: clamp(2rem, 5.8vw, 3rem); }
  .home-shelf .hs-track { grid-auto-columns: calc((100% - 24px) / 3); }
}
@media (max-width: 640px) {
  .market-hero { padding-top: 12px; }
  .market-hero .hero-track { border-radius: 12px; }
  .market-hero .market-slide.active { min-height: 216px; grid-template-columns: minmax(0, 1fr) minmax(0, .67fr); }
  .market-copy { padding: 18px 4px 22px 12px; }
  .market-location { font-size: .69rem; padding: 4px 6px; }
  .market-copy h1 { font-size: clamp(1.65rem, 6.1vw, 2.6rem); }
  .market-copy p { font-size: .84rem; }
  .market-ctas { gap: 8px; }
  .market-ctas .btn { min-height: 38px; font-size: .78rem; padding-inline: 10px; }
  .market-more { font-size: .73rem; }
  .market-slide-main .market-art img { object-position: 67% 50%; }
  .market-controls { bottom: 7px; right: 7px; gap: 1px; }
  .market-controls > button { width: 26px; height: 26px; }
  .market-mark { max-width: 80%; }
  .home-shelf { margin-top: 23px; }
  .home-shelf .hs-track { grid-auto-columns: max(142px, calc((100% - 8px) / 2.18)); gap: 8px; }
  .home-shelf-head .link { font-size: .76rem; }
  .pcard .pcard-body { padding-inline: 8px; }
  .pcard .pcard-name { font-size: .83rem; }
  .pcard .pcard-add { padding-inline: 6px; }
  .pcard .pcard-add .btn { font-size: .72rem; gap: 3px; padding-inline: 5px; }
  .pdp-gallery .main-img { aspect-ratio: 1.14; }
  body:has(.pdp-mobile-buy:not([hidden])) { padding-bottom: 130px; }
  .pdp-mobile-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    bottom: calc(50px + env(safe-area-inset-bottom));
    inset-inline: 0;
    z-index: 51;
    background: #fff;
    border-top: 1px solid var(--edge);
    box-shadow: 0 -5px 18px #08254d11;
    padding: 9px 14px;
    min-height: 60px;
  }
  .pdp-mobile-buy strong { font-size: 1.3rem; letter-spacing: -.04em; }
  .pdp-mobile-buy .btn { background: #ffc824; color: var(--navy); }
}
@media (max-width: 360px) {
  .market-hero .market-slide.active { grid-template-columns: minmax(0, 1fr) minmax(0, .52fr); }
  .market-copy h1 { font-size: 1.55rem; }
  .market-copy h2 { font-size: 1.56rem; }
}

.catalog-page .page-banner { margin: 0 0 18px; padding: 15px 18px; }
.catalog-page .page-banner p { margin: 0; display: flex; align-items: center; gap: 8px; }
.catalog-page .list-head h1, .cart-page h1, .checkout-page h1 { letter-spacing: -.045em; font-size: clamp(1.65rem, 2.5vw, 2.2rem); }
.catalog-page .list-head { margin-bottom: 18px; }
.catalog-page .filters, .catalog-page .results-bar { background: #fff; border: 1px solid var(--edge); border-radius: 11px; }
.catalog-page .results-bar { padding: 9px 12px; }
.cart-page .summary, .checkout-page .summary { border-color: var(--edge); }
.cart-page .summary .btn-primary, .checkout-page .summary .btn-primary { background: #ffc824; color: var(--navy); }
.cart-page .summary .btn-primary:hover, .checkout-page .summary .btn-primary:hover { background: #f1b909; }
.cart-page .cart-store { background: #eef3f9; }
.checkout-page .checkout-steps { margin-top: 14px; }
.checkout-page .checkout-main h2 .ico { color: var(--primary); }
@media (max-width: 640px) {
  .catalog-page .list-head h1 { font-size: 1.55rem; }
  .catalog-page .results-bar { flex-wrap: wrap; }
}

.toast-link { flex-shrink: 0; color: var(--primary); text-decoration: underline; font-weight: 800; font-size: .85rem; }

.catalog-page .results, .store-layout .results { min-width: 0; }
.catalog-page .sort { min-width: 0; }
.catalog-page .sort select { min-width: 0; max-width: 100%; }
@media (max-width: 860px) { .catalog-page .listing { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
  .cart-page .cart-item { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 12px; gap: 10px; }
  .cart-page .ci-img img { width: 58px; height: 58px; }
  .cart-page .ci-info { grid-column: 2 / -1; }
  .cart-page .cart-item .qty { grid-column: 1 / 3; justify-self: start; margin: 0; }
  .cart-page .ci-price { grid-column: 3; text-align: right; min-width: 0; }
}

/* Categorías del catálogo */
.category-section { margin-top: clamp(30px, 4.2vw, 58px); scroll-margin-top: 124px; }
.category-heading { margin-bottom: 16px; }
.category-heading h2 { margin: 0; }
.category-heading .link { flex-shrink: 0; }
.department-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.department-card {
  display: grid;
  grid-template-rows: 1fr minmax(49px, auto);
  height: 100%;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.department-card:hover { border-color: #a0aebc; box-shadow: 0 4px 14px #08254d0d; }
.department-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.7;
  background: #f3f0ea;
  color: #536b84;
  overflow: hidden;
}
.department-image img {
  width: 62%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
  transition: transform .22s;
}
.department-image > .ico { stroke-width: 1.35; }
.department-card:hover img { transform: scale(1.05); }
.department-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 9px 12px;
  font-size: .92rem;
}
.department-label strong { font-weight: 750; }
.department-label .ico { flex: none; color: #61768c; }
@media (max-width: 1020px) {
  .department-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .category-heading { align-items: flex-start; gap: 12px; }
  .category-heading .link { font-size: .78rem; white-space: nowrap; }
  .category-heading h2 { font-size: 1.25rem; }
  .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .department-card { grid-template-rows: 1fr minmax(42px, auto); }
  .department-label { padding: 8px 9px; font-size: .83rem; }
}
@media (prefers-reduced-motion: reduce) {
  .department-card, .department-image img { transition: none; }
}

