/* Elementos compartidos de la tienda: cabecera, tarjetas, buscador, menú, ficha y cesta. */
.header-inner {
  height: 80px;
}
header nav {
  align-items: center;
}
header nav button {
  font-size: 14px;
  min-height: 44px;
  padding: 0;
}
.header-actions {
  gap: 16px;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}
.icon-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.section {
  padding: 76px var(--gap) 0;
}
.section-head {
  margin-bottom: 30px;
}
.section-head h2 {
  font-size: 36px;
  letter-spacing: -1.4px;
  margin-top: 12px;
}
.section-head > a {
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-image {
  aspect-ratio: 1/1.15;
  background: #e9e3d9;
  position: relative;
  overflow: hidden;
}
.card-image > a {
  display: block;
  height: 100%;
  overflow: hidden;
}
.card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.product-card:hover img {
  transform: scale(1.025);
}
.card-info {
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.card-info h3 {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 5px;
}
.card-info > span {
  font-size: 12px;
  white-space: nowrap;
}
footer {
  display: block;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.search-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}
.search-row strong {
  font-size: 14px;
  display: block;
  font-weight: 400;
}
.search-row span {
  font-size: 12px;
  color: var(--muted);
}
#search {
  width: 640px;
  max-width: calc(100vw - 30px);
}
#search-input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 10px;
}
#search label {
  display: block;
  font-size: 12px;
  margin-top: 24px;
}
#search-count {
  font-size: 12px;
  color: var(--muted);
}
#shop-menu {
  width: 750px;
  max-width: calc(100vw - 30px);
}
#shop-menu nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  margin-top: 25px;
}
#shop-menu nav a {
  font-size: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.product-buy label {
  font-size: 12px;
}
.product-buy .primary {
  width: 100%;
  margin-top: 10px;
}
.live-product {
  padding-bottom: 30px;
}
.live-product .product-info {
  padding-top: 10px;
}
.live-product h1 {
  font-size: clamp(42px, 4.5vw, 65px);
  line-height: 1.03;
}
.live-product .gallery img {
  width: 100%;
}
.live-product .product-buy {
  margin-top: 25px;
}
.live-product .product-info > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.product-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
}
.product-quantity input {
  width: 75px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.bag-item button {
  margin-right: 15px;
}
#cart-status {
  pointer-events: none;
}
.drawer .primary {
  width: 100%;
}
@media (max-width: 1000px) {
  .header-actions {
    gap: 4px;
  }
  .header-inner nav {
    gap: 20px;
  }
  .product-grid {
    gap: 16px;
  }
  .card-info {
    display: block;
  }
  .card-info > span {
    display: block;
    margin-top: 7px;
  }
  .section-head h2 {
    font-size: 30px;
  }
}
@media (max-width: 650px) {
  .header-inner {
    height: 78px;
    margin: 0 20px;
  }
  .header-actions {
    gap: 1px;
  }
  .icon-button {
    min-width: 36px;
    padding: 8px;
  }
  .bag-button {
    gap: 5px;
    padding: 0 4px;
  }
  .wordmark {
    font-size: 43px;
  }
  .section {
    padding: 44px 20px 0;
  }
  .section-head {
    align-items: start;
    gap: 15px;
    margin-bottom: 23px;
  }
  .section-head h2 {
    font-size: 27px;
    letter-spacing: -1px;
    margin-top: 10px;
  }
  .section-head > a {
    font-size: 9px;
    white-space: nowrap;
    margin-top: 20px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 14px;
  }
  .card-info h3 {
    font-size: 12px;
  }
  .card-info > span {
    font-size: 12px;
  }
  .dialog-head h2 {
    font-size: 27px;
  }
  #shop-menu nav {
    grid-template-columns: 1fr;
  }
  #shop-menu nav a {
    font-size: 22px;
  }
  .live-product {
    margin: 0 20px;
  }
  .live-product .product-info {
    padding: 22px 0 0;
  }
  .live-product h1 {
    font-size: 46px;
  }
  .live-product .gallery {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}