.shop-page {
  --shop-wine: #7b1c2c;
  --shop-ink: #231816;
  --shop-copper: #c07b46;
  --shop-muted: #6f625b;
  position: relative;
  isolation: isolate;
  padding: 148px 6% 110px;
  background:
    linear-gradient(180deg, rgba(251, 248, 242, 0.88) 0%, rgba(247, 240, 231, 0.8) 24%, rgba(239, 228, 214, 0.84) 100%),
    radial-gradient(circle at top left, rgba(192, 123, 70, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(123, 28, 44, 0.12), transparent 30%),
    url("Vinos/pedroheras-galgo-artistico.jpg") center top / cover fixed no-repeat;
}

.shop-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 84% 74%, rgba(123, 28, 44, 0.08), transparent 24%);
}

.footer-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  white-space: nowrap;
}

.footer-flag {
  flex: 0 0 auto;
  width: 18px;
  max-width: 18px;
  height: auto;
  display: block;
  border-radius: 2px;
  object-fit: cover;
}

.shop-hero,
.shop-catalog {
  max-width: 1480px;
  margin: 0 auto;
}

.shop-hero {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 30px;
  align-items: stretch;
  perspective: 1200px;
}

.shop-hero-copy {
  max-width: 840px;
  padding: 42px 42px 44px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(123, 28, 44, 0.08);
  box-shadow: 0 20px 56px rgba(36, 21, 19, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  margin: 34px 0 34px -84px;
  overflow: hidden;
  animation: shopHeroCopyReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s both,
    shopHeroCopyFloat 7.5s ease-in-out 1.25s infinite;
}

.shop-hero-visual {
  overflow: hidden;
  border-radius: 34px;
  min-height: 100%;
  background: #d8c0a4;
  box-shadow: 0 22px 58px rgba(36, 21, 19, 0.12);
  position: relative;
  isolation: isolate;
  animation: shopHeroVisualReveal 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.shop-hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0.28) 49%, rgba(255, 255, 255, 0) 72%);
  transform: translateX(-62%) skewX(-12deg);
  z-index: 1;
  pointer-events: none;
  animation: shopHeroLightSweep 1.9s ease-out 0.55s both;
  transition: opacity 0.45s ease, transform 0.8s ease;
}

.shop-hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 8% 0 auto;
  width: 42%;
  height: 46%;
  background: radial-gradient(circle, rgba(192, 123, 70, 0.22), transparent 70%);
  filter: blur(10px);
  opacity: 0.9;
  z-index: 0;
  animation: shopHeroGlowPulse 6.5s ease-in-out 1.3s infinite;
  transition: opacity 0.45s ease, transform 0.6s ease;
}

.shop-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.04);
  animation: shopHeroImageSettle 1.35s cubic-bezier(0.18, 0.8, 0.2, 1) 0.08s both;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.shop-hero-visual:hover {
  transform: none;
  box-shadow: 0 28px 72px rgba(36, 21, 19, 0.18);
}

.shop-hero-visual:hover::before {
  opacity: 0.55;
  transform: translateX(122%) skewX(-12deg);
}

.shop-hero-visual:hover::after {
  opacity: 0.9;
  transform: scale(1.08);
}

.shop-hero-visual:hover img {
  transform: scale(1.16);
  filter: saturate(1.08) contrast(1.03) brightness(1.02);
}

.shop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--shop-wine);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: shopHeroTextFade 0.7s ease 0.55s both;
}

.shop-kicker::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--shop-copper);
}

.shop-hero h1 {
  margin: 0 0 20px;
  color: var(--shop-ink);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  animation: shopHeroTextFade 0.82s ease 0.7s both;
}

.shop-hero p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 18px;
  line-height: 1.85;
  animation: shopHeroTextFade 0.82s ease 0.9s both;
}

.shop-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  animation: shopHeroTextFade 0.82s ease 1.05s both;
}

.shop-highlight-card {
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: rgba(255, 248, 240, 0.74);
  border: 1px solid rgba(123, 28, 44, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.shop-highlight-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--shop-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shop-highlight-card span {
  display: block;
  color: var(--shop-muted);
  font-size: 14px;
  line-height: 1.65;
}

@keyframes shopHeroVisualReveal {
  from {
    opacity: 0;
    transform: translate3d(-38px, 26px, 0) rotateX(6deg) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  }
}

@keyframes shopHeroCopyReveal {
  from {
    opacity: 0;
    transform: translate3d(42px, 12px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes shopHeroImageSettle {
  from {
    transform: scale(1.12);
    filter: saturate(0.9) contrast(0.96);
  }

  to {
    transform: scale(1.04);
    filter: saturate(1) contrast(1);
  }
}

@keyframes shopHeroLightSweep {
  0% {
    opacity: 0;
    transform: translateX(-62%) skewX(-12deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(138%) skewX(-12deg);
  }
}

@keyframes shopHeroGlowPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes shopHeroCopyFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes shopHeroTextFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero-copy,
  .shop-hero-visual,
  .shop-hero-visual::before,
  .shop-hero-visual::after,
  .shop-hero-visual img,
  .shop-kicker,
  .shop-hero h1,
  .shop-hero p {
    animation: none;
    transform: none;
  }
}

.shop-toolbar {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.shop-toolbar-side {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-toolbar-side-left {
  justify-content: flex-start;
}

.shop-toolbar-side-right {
  justify-content: flex-end;
  margin-left: auto;
}

.shop-toolbar-side .shop-sort {
  justify-content: inherit;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-sort-label {
  color: #7b6d65;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-catalog-head {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.shop-section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--shop-wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shop-catalog-head h2 {
  margin: 0 0 12px;
  color: var(--shop-ink);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
}

.shop-catalog-head p {
  margin: 0;
  max-width: 760px;
  color: var(--shop-muted);
  font-size: 17px;
  line-height: 1.8;
}

.shop-catalog-meta {
  justify-self: end;
}

.shop-results {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(123, 28, 44, 0.08);
  color: var(--shop-wine);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(36, 21, 19, 0.06);
}

.shop-results::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shop-copper);
}

.shop-sort-select {
  min-width: 290px;
  padding: 14px 42px 14px 16px;
  border: 1px solid rgba(123, 28, 44, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #6a5a53;
  font-size: 15px;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(36, 21, 19, 0.06);
  background-image:
    linear-gradient(45deg, transparent 50%, #8d7a71 50%),
    linear-gradient(135deg, #8d7a71 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.shop-sort-select:focus {
  outline: none;
  border-color: rgba(123, 28, 44, 0.36);
}

.shop-notice {
  margin-bottom: 26px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(123, 28, 44, 0.08);
  border: 1px solid rgba(123, 28, 44, 0.08);
}

.shop-notice p {
  margin: 0;
  color: var(--shop-wine);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

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

.shop-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(123, 28, 44, 0.08);
  box-shadow: 0 20px 56px rgba(36, 21, 19, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.shop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(36, 21, 19, 0.16);
}

.shop-card-media {
  min-height: 332px;
  padding: 26px 22px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(192, 123, 70, 0.15), transparent 32%),
    linear-gradient(180deg, #fffdf9 0%, #f5ede2 100%);
}

.shop-card-media-link {
  width: 100%;
  min-height: 298px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
}

.shop-card-media img {
  display: block;
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(36, 21, 19, 0.16));
}

.shop-card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
}

.shop-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(123, 28, 44, 0.08);
  color: var(--shop-wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-card-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shop-copper);
}

.shop-card-body h3 {
  margin: 0;
  color: var(--shop-ink);
  font-size: 21px;
  line-height: 1.2;
  min-height: 2.4em;
  width: 100%;
}

.shop-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.28s ease;
}

.shop-card-title-link:hover {
  color: var(--shop-wine);
}

.shop-card-price {
  margin: auto 0 0;
  width: 100%;
  color: var(--shop-wine);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.shop-card-detail-link {
  margin-top: 8px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--shop-wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.shop-card-detail-link::after {
  content: ">";
  transition: transform 0.28s ease;
}

.shop-card-detail-link:hover::after {
  transform: translateX(5px);
}

.shop-add-cart {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b1c2c, #9f2f44);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(123, 28, 44, 0.24);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.shop-add-cart::before {
  content: "+";
  font-size: 16px;
  line-height: 1;
}

.shop-add-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(123, 28, 44, 0.28);
}

.shop-add-cart.is-added {
  background: linear-gradient(135deg, #3d7a49, #50965d);
  box-shadow: 0 14px 28px rgba(61, 122, 73, 0.24);
}

.shop-card-stock-note {
  margin: auto 0 0;
  align-self: center;
  color: #b3261e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-empty-state {
  margin-top: 22px;
  padding: 34px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(123, 28, 44, 0.08);
  box-shadow: 0 18px 44px rgba(36, 21, 19, 0.08);
  text-align: center;
}

.shop-empty-state h3 {
  margin: 0 0 10px;
  color: var(--shop-ink);
  font-size: 28px;
}

.shop-empty-state p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 16px;
  line-height: 1.75;
}

.shop-cart-toast {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 1200;
  max-width: 320px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(36, 24, 23, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 18px 44px rgba(36, 21, 19, 0.24);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.shop-cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .shop-hero {
    grid-template-columns: 1fr;
  }

  .shop-hero-copy {
    margin: -54px 18px 0;
  }

  .shop-hero-highlights {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-page {
    padding: 130px 5% 92px;
  }

  .shop-hero-copy {
    padding: 34px 28px 36px;
    margin: -36px 0 0;
  }

  .shop-hero-visual img {
    min-height: 300px;
  }

  .shop-catalog-head {
    grid-template-columns: 1fr;
  }

  .shop-catalog-meta {
    justify-self: start;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .shop-sort {
    width: 100%;
  }

  .shop-toolbar-side {
    width: 100%;
    justify-content: flex-start;
  }

  .shop-toolbar-side-right {
    margin-left: 0;
  }

  .shop-sort-select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-card-media {
    min-height: 300px;
  }

  .shop-card-media-link {
    min-height: 268px;
  }

  .shop-hero h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .shop-hero p {
    font-size: 16px;
  }

  .shop-catalog-head p {
    font-size: 16px;
  }

  .shop-card-body h3 {
    font-size: 19px;
  }
}