/* Shop online — la vetrina (D106). */

.sh-hero { position: relative; overflow: hidden; padding: 0 0 110px; background: var(--ink); }
.sh-awning {
  display: block;
  width: 100%;
  height: clamp(54px, 7vw, 92px);
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 1s cubic-bezier(.34, 1.3, .64, 1) .15s;
  filter: drop-shadow(0 14px 18px rgba(23, 25, 26, .18));
}
.is-ready .sh-awning { transform: scaleY(1); }
.sh-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 72px; }
.sh-hero h1 { margin: 0 0 28px; font-size: clamp(46px, 5vw, 80px) !important; line-height: 1.03 !important; }
.sh-hero .sh-hero__lead { margin: 0; max-width: 560px; font-size: 19px !important; line-height: 1.6 !important; color: var(--mist); }

/* The shop window: a framed pane with a light sweep across the glass. */
.sh-window {
  position: relative;
  padding: 36px 28px 30px;
  border: 10px solid var(--cream);
  border-radius: 14px;
  background: linear-gradient(180deg, #F7F7F5, #ECECE8);
  box-shadow: 0 50px 90px -50px rgba(23, 25, 26, .5);
  overflow: hidden;
}
.sh-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: var(--cream);
  opacity: .08;
}
.sh-window__glass {
  position: absolute;
  inset: -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .7) 48%, transparent 54%);
  transform: translateX(-60%);
}
.is-ready .sh-window__glass { animation: sh-sweep 2.2s ease-in-out 1.3s both; }
@keyframes sh-sweep { to { transform: translateX(60%); } }
.sh-window .act--shop { min-height: 0; }

/* Benefits as price tags hanging from a rail; each swings into place. */
.sh-tags-section { padding: 130px 0; background: var(--ink-2); }
.sh-tags__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.sh-tags-section h2 { margin: 0 0 26px; font-size: clamp(36px, 3.8vw, 56px) !important; line-height: 1.06 !important; }
.sh-tags-section .sh-tags__text { margin: 0 0 16px; max-width: 600px; color: var(--mist); }
.sh-tags-section .sh-tags__label { margin: 4px 0 0; font-family: var(--sans); font-size: 15px !important; font-weight: 600; color: var(--cream); }
.sh-tags { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.sh-tags::before { content: ""; position: absolute; left: -12px; right: -12px; top: 0; height: 4px; border-radius: 4px; background: var(--cream); }
.sh-tag { position: relative; padding-top: 56px; transform-origin: 50% 0; }
.sh-tag.is-in { animation: sh-swing 2.6s cubic-bezier(.3, .7, .4, 1) both; animation-delay: calc(var(--i) * .18s); }
@keyframes sh-swing {
  0% { transform: rotate(14deg); opacity: 0; }
  12% { opacity: 1; }
  30% { transform: rotate(-9deg); }
  52% { transform: rotate(5deg); }
  74% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); opacity: 1; }
}
.sh-tag:not(.is-in) { opacity: 0; }
.sh-tag__string { position: absolute; left: 50%; top: 4px; width: 1px; height: 64px; background: var(--hair-strong); }
.sh-tag__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  padding: 40px 18px 22px;
  clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  border-radius: 4px;
  background: var(--ink);
  box-shadow: 0 20px 40px -26px rgba(23, 25, 26, .4);
}
.sh-tag:nth-child(2) .sh-tag__card { background: var(--night); color: var(--ivory); }
.sh-tag__hole { position: absolute; left: 50%; top: 14px; width: 12px; height: 12px; margin-left: -6px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--hair-strong); }
.sh-tag__t { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.sh-tag__d { font-size: 14px; line-height: 1.5; color: var(--mist); }
.sh-tag:nth-child(2) .sh-tag__d { color: var(--ivory-muted); }

/* The shelf slides sideways while the page scrolls down (--p, --shift). */
.sh-shelf { position: relative; background: var(--ink); }
.sh-shelf__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.sh-shelf__head h2 { margin: 0 0 48px; font-size: clamp(36px, 3.8vw, 56px) !important; line-height: 1.06 !important; }
.sh-shelf__viewport { position: relative; padding-left: max(var(--page-pad), calc((100vw - var(--page-wide)) / 2 + var(--page-pad))); }
.sh-shelf__track {
  display: flex;
  gap: 28px;
  width: max-content;
  margin: 0;
  padding: 0 60px 0 0;
  list-style: none;
  transform: translateX(calc(var(--p, 0) * var(--shift, 0px) * -1));
}
.sh-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 360px;
  min-height: 330px;
  padding: 64px 28px 30px;
  border-radius: 6px 6px 2px 2px;
  background: var(--ink-2);
  box-shadow: inset 0 -10px 0 rgba(23, 25, 26, .05);
}
.sh-box:nth-child(even) { background: #EFE8DC; }
.sh-box:last-child { background: var(--night); color: var(--ivory); }
.sh-box__label {
  position: absolute;
  top: 20px;
  left: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}
.sh-box:last-child .sh-box__label { background: var(--gold-light); color: var(--night); }
.sh-box h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.sh-box p { margin: 0; color: var(--mist); }
.sh-box:last-child p { color: var(--ivory-muted); }
.sh-shelf__plank {
  display: block;
  height: 18px;
  margin-top: 0;
  margin-right: -40px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2A2D2B, #17191A);
  box-shadow: 0 24px 30px -18px rgba(23, 25, 26, .55);
}

/* Right to left (D109): the shelf starts on the right and slides the other way. */
@media (min-width: 901px) {
  html[dir="rtl"] .sh-shelf__viewport { padding-left: 0; padding-right: max(var(--page-pad), calc((100vw - var(--page-wide)) / 2 + var(--page-pad))); }
  html[dir="rtl"] .sh-shelf__track { padding: 0 0 0 60px; transform: translateX(calc(var(--p, 0) * var(--shift, 0px))); }
  html[dir="rtl"] .sh-shelf__plank { margin-right: 0; margin-left: -40px; }
}

/* The receipt prints out of a slot, line by line. */
.sh-receipt-section { padding: 130px 0; background: var(--ink); border-top: 1px solid var(--hair); }
.sh-receipt__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.sh-receipt-section h2 { margin: 0 0 22px; font-size: clamp(36px, 3.8vw, 56px) !important; line-height: 1.06 !important; }
.sh-receipt-section .sh-receipt__text { margin: 0 0 14px; max-width: 520px; color: var(--mist); }
.sh-printer { position: relative; justify-self: center; width: min(380px, 100%); }
.sh-printer__slot { display: block; height: 22px; border-radius: 12px; background: var(--cream); box-shadow: inset 0 -6px 0 #000; }
.sh-printer__paper { overflow: hidden; margin: -8px 14px 0; }
.sh-receipt {
  padding: 28px 24px 34px;
  background: #FFFFFF;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cream);
  box-shadow: 0 30px 60px -36px rgba(23, 25, 26, .45);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  transform: translateY(-101%);
  transition: transform 2.2s steps(14, end);
}
.sh-printer.is-in .sh-receipt { transform: none; }
.sh-receipt__head { text-align: center; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sh-receipt__meta { margin-top: 4px; text-align: center; color: var(--mist); }
.sh-receipt__rule { margin: 16px 0; border-top: 1px dashed var(--hair-strong); }
.sh-receipt__row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; text-transform: uppercase; }
.sh-receipt__dots { flex: 1 1 auto; border-bottom: 1px dotted var(--hair-strong); transform: translateY(-3px); }
.sh-receipt__total { font-weight: 700; font-size: 15px; }
.sh-receipt__barcode {
  height: 46px;
  margin: 24px 10px 10px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 2px, transparent 2px 4px, var(--cream) 4px 5px, transparent 5px 8px, var(--cream) 8px 11px, transparent 11px 13px);
}
.sh-receipt__thanks { text-align: center; color: var(--mist); font-size: 12px; }

@media (max-width: 900px) {
  .sh-hero__grid,
  .sh-tags__grid,
  .sh-receipt__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sh-hero__grid { padding-top: 40px; }
  .sh-hero h1 { font-size: clamp(38px, 8.6vw, 58px) !important; }
  .sh-hero .sh-hero__lead { font-size: 17px !important; }
  .sh-window { padding: 20px 12px; border-width: 7px; }
  .sh-tags { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sh-tags::before { display: none; }
  .sh-tag { padding-top: 20px; }
  .sh-tag__string { display: none; }
  .sh-tag__card { min-height: 0; }
  .sh-shelf { height: auto !important; padding: 80px 0; }
  .sh-shelf__sticky { position: static; height: auto; overflow: visible; }
  .sh-shelf__viewport { padding: 0 var(--page-pad); }
  .sh-shelf__track { flex-direction: column; width: auto; padding: 0; transform: none; }
  .sh-box { width: auto; min-height: 0; }
  .sh-shelf__plank { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-awning, .sh-receipt { transition: none; transform: none; }
  .sh-tag, .sh-window__glass { animation: none !important; opacity: 1; }
}
