/*
Theme Name: Gabos 2026
Theme URI: https://gabosny.com
Author: Gabos
Description: Curtain site with an editable home landing. Shop is not included.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gabos-2026
*/

@font-face {
  font-family: "estilo";
  src: url("fonts/EstiloPro-Bold.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "renner";
  src: url("fonts/Renner-bold.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-curtain: #6e0001;
  --gutter-inline: 20px;
  --gutter-top: 20px;
  --gutter-bottom: 20px;
  --font-gabos: "estilo", Palatino, "Palatino Linotype", Georgia, serif;
  --body: 1rem;
  --shop-before-footer: 150px;
  --shop-after-nav: 110px;
  --shop-after-nav-pdp: 24px;
  --shop-before-footer-pdp: 20px;
  --shop-card-caption-overlap: 25px;
  --shop-card-width: 445px;
  --shop-card-gap: 20px;
  --shop-detail-image-start: 0;
  --shop-detail-stack-gap: var(--shop-card-gap);
  --shop-detail-sticky-top: 1.25rem;
  --shop-detail-text-offset-min: 6vh;
  --shop-detail-text-offset-max: 25vh;
  --shop-detail-text-offset-height-min: 50rem;
  --shop-detail-text-offset-height-max: 100rem;
  --shop-detail-text-offset: clamp(
    var(--shop-detail-text-offset-min),
    calc(
      var(--shop-detail-text-offset-min) +
        (var(--shop-detail-text-offset-max) - var(--shop-detail-text-offset-min)) *
        (100dvh - var(--shop-detail-text-offset-height-min)) /
        (var(--shop-detail-text-offset-height-max) - var(--shop-detail-text-offset-height-min))
    ),
    var(--shop-detail-text-offset-max)
  );
  --shop-detail-copy-inset-mid: clamp(9rem, 15vh, 17rem);
  --store-vertical-edge-gap: 104px;
  --store-vertical-stack-gap: 40px;
  --store-placeholder-header: calc(var(--gutter-top, 20px) + 2.5rem);
  /* Short scroll past centered copy to reach footer (not a full extra screen). */
  --store-placeholder-footer-peek: min(10dvh, 72px);
  --cart-top-min: 113px;
  --cart-top-max: 242px;
  --cart-top-height-min: 50rem;
  --cart-top-height-max: 100rem;
  --cart-top: clamp(
    var(--cart-top-min),
    calc(
      var(--cart-top-min) + (var(--cart-top-max) - var(--cart-top-min)) *
        (100dvh - var(--cart-top-height-min)) /
        (var(--cart-top-height-max) - var(--cart-top-height-min))
    ),
    var(--cart-top-max)
  );
}

html {
  font-size: 16px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-curtain);
  color: #fff;
  font-family: var(--font-gabos);
  font-weight: 200;
  line-height: 1.2;
}

body.gabos-curtain-active {
  overflow: hidden;
}

html.gabos-curtain-locked,
body.gabos-curtain-locked {
  overflow: hidden;
  height: 100%;
}

a {
  color: #fff;
  font-family: var(--font-gabos);
  font-size: var(--body);
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrapper {
  background-color: var(--color-curtain);
  width: 100%;
  max-width: 1920px;
  min-height: 100dvh;
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.wrapper--scroll {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.wrapper--scroll.wrapper--opened {
  background-color: transparent;
}

body.gabos-curtain-active .wrapper--scroll .linkContainer--landing {
  visibility: visible;
}

.wrapper--scroll.wrapper--opened .linkContainer--landing {
  visibility: visible;
}

.wrapper .fixedCurtainLeft,
.wrapper .fixedCurtainRight {
  position: absolute;
  top: 0;
  height: 100vh;
  z-index: 3;
  object-fit: cover;
  pointer-events: none;
}

.wrapper .fixedCurtainLeft {
  left: 0;
  object-position: right center;
}

.wrapper .fixedCurtainRight {
  right: 0;
  object-position: left center;
}

.wrapper--scroll .fixedCurtainLeft,
.wrapper--scroll .fixedCurtainRight {
  position: absolute;
  top: 0;
}

.wrapper--scroll.wrapper--opened .fixedCurtainLeft,
.wrapper--scroll.wrapper--opened .fixedCurtainRight {
  z-index: 5;
  pointer-events: none;
}

.wrapper .mobileCurtain,
.wrapper .curtainLeft,
.wrapper .curtainRight {
  display: none;
  height: 100vh;
  z-index: 2;
}

/* Contact: closed curtains + hidden copy until curtain.js adds .wrapper--opened */
body.gabos-curtain-locked .wrapper.page-contact .linkContainer {
  visibility: hidden;
}

body.gabos-curtain-active .wrapper.page-contact .linkContainer,
body.gabos-curtain-locked .wrapper.page-contact.wrapper--opened .linkContainer {
  visibility: visible;
}

body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .curtainLeft,
body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .curtainRight {
  display: block;
  position: absolute;
  top: 0;
  width: 51%;
  height: 100vh;
  z-index: 4;
  object-fit: cover;
}

body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .curtainLeft {
  left: 0;
}

body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .curtainRight {
  right: 0;
}

body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .mobileCurtain {
  display: none;
}

@media screen and (max-width: 767px) {
  body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .curtainLeft,
  body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .curtainRight {
    display: none;
  }

  body.gabos-curtain-locked .wrapper.page-contact:not(.wrapper--opened) .mobileCurtain {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 4;
    object-fit: cover;
  }
}

.wrapper--scroll .mobileCurtain,
.wrapper--scroll .curtainLeft,
.wrapper--scroll .curtainRight {
  position: fixed;
  max-width: 100vw;
}

.wrapper .mobileCurtain {
  width: 100%;
  object-fit: cover;
}

.wrapper .navWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 1;
  position: relative;
}

.wrapper--scroll .navWrapper {
  width: 100%;
  height: auto;
  min-height: 100vh;
  align-items: flex-start;
}

.wrapper--scroll.wrapper--opened .navWrapper {
  z-index: 1;
}

.wrapper .linkContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.wrapper--scroll .linkContainer--landing {
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  position: relative;
  min-width: 0;
}

.gabos-home {
  font-size: 1.3125rem;
  text-transform: uppercase;
}

.gabos-home h1 {
  font-size: 2rem;
  font-weight: 200;
  line-height: normal;
  margin: 0;
}

.gabos-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: #fff;
  background: transparent;
}

.gabos-hero-stage {
  display: grid;
  width: min(748px, calc(100% - 32px));
  min-height: 315px;
  place-items: center;
  padding: 3rem 1.75rem;
  background: transparent;
}

.gabos-hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 72px);
}

.gabos-hero-nav-group {
  display: flex;
  gap: 3rem;
}

.gabos-hero-nav a {
  text-transform: uppercase;
}

.gabos-hero-logo {
  flex-shrink: 0;
  line-height: 0;
  cursor: default;
}

.gabos-hero-logo-img {
  display: block;
  width: 165px;
  height: 165px;
  object-fit: contain;
  transform: translateX(12%);
}

.gabos-christmas-menu {
  position: absolute;
  top: clamp(18px, 4vh, 40px);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  max-width: none;
  color: #fff;
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.flourish {
  display: block;
  width: 82px;
  height: 21px;
}

.landing-panel {
  --landing-huella-width: min(382.5px, 61.2vw);
  --landing-statement-gap: clamp(96px, 10vw, 180px);
  position: relative;
  background-color: var(--color-curtain);
  text-align: center;
  color: #fff;
}

.landing-panel-inner {
  padding: calc(var(--landing-huella-width) * (554 / 450.263) * 0.72) var(--gutter-inline) var(--gutter-bottom);
}

.landing-huellas {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 10;
  width: var(--landing-huella-width);
  aspect-ratio: 450.263 / 554.006;
  transform: translateX(-50%) translateY(-28%);
  pointer-events: none;
}

.landing-huella {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: huella-cycle 5.34s infinite;
}

.landing-huella img {
  max-width: 100%;
  max-height: 100%;
}

.landing-huella:nth-child(1) { animation-name: huella-1; }
.landing-huella:nth-child(2) { animation-name: huella-2; }
.landing-huella:nth-child(3) { animation-name: huella-3; }
.landing-huella:nth-child(4) { animation-name: huella-4; }
.landing-huella:nth-child(5) { animation-name: huella-5; }
.landing-huella:nth-child(6) { animation-name: huella-6; }

@keyframes huella-1 {
  0%, 7.8% { opacity: 0; }
  8.6%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes huella-2 {
  0%, 15.7% { opacity: 0; }
  16.5%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes huella-3 {
  0%, 23.6% { opacity: 0; }
  24.4%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes huella-4 {
  0%, 31.4% { opacity: 0; }
  32.2%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes huella-5 {
  0%, 39.3% { opacity: 0; }
  40.1%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes huella-6 {
  0%, 47.1% { opacity: 0; }
  47.9%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.landing-statement {
  max-width: 910px;
  margin: 0 auto;
  padding-top: var(--landing-statement-gap);
  padding-bottom: var(--landing-statement-gap);
}

.landing-video {
  margin: 0 auto;
  width: 100%;
  max-width: 910px;
  aspect-ratio: 2250 / 2813;
}

.landing-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-instagram {
  display: grid;
  margin: clamp(72px, 8vw, 120px) auto 0;
  text-transform: uppercase;
}

.landing-instagram:hover {
  opacity: 0.7;
}

.landing-footer {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 2.5rem;
  margin-top: clamp(96px, 12vh, 200px);
  text-align: center;
  text-transform: uppercase;
}

.landing-footer__brand-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.landing-footer__logo {
  line-height: 0;
  justify-self: center;
}

.landing-footer__logo img {
  width: auto;
  height: 120px;
}

.landing-footer__origin,
.landing-footer__legal {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0;
}

.landing-footer__place {
  letter-spacing: 0.35em;
}

@media screen and (min-width: 768px) {
  .landing-footer {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }

  .landing-footer__logo {
    justify-self: start;
  }

  .landing-footer__place {
    letter-spacing: 31.5px;
    margin-right: -31.5px;
  }

  .landing-footer__legal {
    justify-items: end;
    text-align: right;
  }
}

@media screen and (max-width: 1023px) {
  .landing-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
  }

  .landing-footer__brand-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

@media screen and (min-width: 1024px) {
  .landing-footer__brand-group {
    display: contents;
  }
}

.wrapper .heading {
  font-family: "renner", sans-serif;
  font-size: 0.7rem;
  font-weight: normal;
  color: #fff;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  width: 100%;
}

.page-contact {
  color: #fff;
  line-height: 1.5;
}

.wrapper .email,
.wrapper .phoneNumber,
.wrapper .details {
  font-family: "renner", sans-serif;
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.5;
  text-transform: none;
  color: #fff;
  padding-bottom: 30px;
  width: 100%;
  max-width: 30vw;
}

.wrapper .linkContainer a.email {
  display: block;
  font-family: "renner", sans-serif;
  font-size: 1.4rem;
  text-align: center;
  text-transform: none;
}

.wrapper .details.item {
  display: block;
}

.wrapper .details p {
  margin: 0;
  text-align: center;
}

.wrapper .details .hours-line {
  display: block;
}

.wrapper .details .hours-days,
.wrapper .details .hours-time {
  white-space: nowrap;
}

.wrapper .details .hours-time::before {
  content: "\00a0";
}

.page-contact .linkContainer {
  width: auto;
  max-width: 100%;
  align-items: center;
}

.page-contact .linkContainer .details,
.page-contact .linkContainer a.email,
.page-contact .linkContainer .heading {
  width: min(100%, 30vw);
  max-width: 30vw;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

@media screen and (min-width: 1024px) {
  .landing-video {
    width: 47.4%;
  }
}

@media screen and (max-width: 767px) {
  .gabos-home {
    font-size: calc(1.3125rem * 0.75);
    background: var(--color-curtain);
  }

  .gabos-home h1 {
    font-size: calc(2rem * 0.75);
  }

  .gabos-hero {
    min-height: 100dvh;
    place-items: start center;
    padding-top: clamp(40px, 9vh, 72px);
  }

  .gabos-hero-stage {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .gabos-hero-nav {
    position: relative;
    z-index: 6;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .gabos-hero-nav-group {
    display: contents;
  }

  .gabos-hero-logo {
    order: 1;
    display: block;
    width: 15%;
    min-width: 200px;
    margin: 0;
    text-align: center;
  }

  .gabos-hero-logo-img {
    display: inline;
    width: 100%;
    max-height: 120px;
    height: auto;
    padding: 40px 0;
    margin-bottom: 2vh;
    transform: translateX(6%);
    object-fit: contain;
  }

  .gabos-hero-nav-book { order: 2; }
  .gabos-hero-nav-menu { order: 3; }
  .gabos-hero-nav-contact { order: 4; }
  .gabos-hero-nav-shop { order: 5; }

  .gabos-hero-nav-menu,
  .gabos-hero-nav-shop,
  .gabos-hero-nav-book,
  .gabos-hero-nav-contact {
    display: block;
    width: 100%;
    max-width: 50vw;
    margin: 0 0 5vh;
    text-align: center;
    font-size: 1.3125rem;
  }

  .gabos-christmas-menu {
    position: static;
    transform: none;
    order: 0;
    max-width: 70vw;
    gap: 0.5rem;
    margin-bottom: 5vh;
    font-size: 21px;
  }

  .flourish {
    width: 32px;
    height: 10px;
  }

  .wrapper--scroll.wrapper--opened .navWrapper {
    z-index: 4;
  }

  .wrapper--scroll.wrapper--opened .fixedCurtainLeft,
  .wrapper--scroll.wrapper--opened .fixedCurtainRight {
    z-index: 10;
  }

  .landing-panel {
    --landing-huella-width: min(calc(382.5px * 0.7), calc(61.2vw * 0.7));
    overflow: visible;
  }

  .landing-panel-inner {
    padding-top: calc(var(--landing-huella-width) * 1.05 - 18vh);
  }

  .landing-huellas {
    transform: translateX(-50%) translateY(calc(-15% - 18vh));
  }

  .wrapper .details .hours-time {
    display: block;
  }

  .wrapper .details .hours-time::before {
    content: none;
  }
}

@media screen and (max-width: 1350px) {
  .wrapper .fixedCurtainLeft,
  .wrapper .fixedCurtainRight {
    width: 35%;
  }

  .wrapper .linkContainer .item {
    width: 100%;
    margin-bottom: 5vh;
    text-align: center;
    max-width: 50vw;
  }

  .wrapper .linkContainer a.email {
    font-size: var(--body);
    margin-bottom: 15px !important;
    max-width: 80vw;
    width: min(100%, 80vw);
  }

  .wrapper .email,
  .wrapper .phoneNumber,
  .wrapper .details {
    font-size: var(--body);
    margin-bottom: 15px !important;
    max-width: 80vw;
    width: min(100%, 80vw);
  }

  .page-contact .linkContainer .heading {
    width: min(100%, 80vw);
    max-width: 80vw;
  }
}

@media screen and (min-width: 1921px) {
  .wrapper {
    max-width: none;
  }

  .wrapper .fixedCurtainLeft,
  .wrapper .fixedCurtainRight {
    position: fixed;
    height: 100vh;
    width: clamp(954px, 32vw, 1400px);
  }

  .wrapper--scroll .fixedCurtainLeft,
  .wrapper--scroll .fixedCurtainRight {
    position: absolute;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-huella {
    animation: none;
    opacity: 1;
  }
}

html:has(body.gabos-store),
body.gabos-store {
  background: #fff;
  color: #000;
}

html:has(.shop-coming-soon),
body.gabos-store:has(.shop-coming-soon) {
  height: auto;
  overflow: visible;
}

.gabos-store-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 20px 20px;
  background: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  color: #000;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 20px;
  background: #fff;
}

.store-header a {
  color: #000;
  font-size: 21px;
  text-transform: uppercase;
}

.store-header a.is-active {
  text-decoration: underline;
}

.store-desktop {
  display: none;
}

.store-mobile-bar,
.store-desktop {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.store-mobile-bar {
  display: grid;
}

.store-mobile-bar .store-brand {
  justify-self: center;
}

.store-desktop .store-brand {
  justify-self: start;
}

.store-menu-toggle {
  justify-self: start;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
}

.store-icon-close {
  display: none;
}

.store-menu-open .store-icon-open {
  display: none;
}

.store-menu-open .store-icon-close {
  display: block;
}

.store-mobile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  margin-top: 2rem;
}

.store-mobile-panel[hidden] {
  display: none;
}

.store-menu-open .store-mobile {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 20px;
  background: #fff;
}

.gabos-store-page:has(.shop-coming-soon),
.gabos-store-page:has(.cart-empty) {
  box-sizing: border-box;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow: visible;
}

.shop-coming-soon,
.cart-empty {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 0;
}

.shop-coming-soon p,
.cart-empty p {
  position: static;
  inset: auto;
  transform: none;
  width: min(909px, 90vw);
  margin: 0;
  text-align: center;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.landing-footer--store {
  color: #000;
}

.landing-footer--store .landing-footer__logo img {
  height: 120px;
  filter: brightness(0);
}

.gabos-store-page:has(.shop-coming-soon) .store-header,
.gabos-store-page:has(.shop-coming-soon) .landing-footer {
  flex-shrink: 0;
}

.gabos-store-page:has(.shop-coming-soon) .landing-footer {
  margin-top: 0;
}

@media screen and (max-width: 767px) {
  html:has(.cart-empty),
  body.gabos-store:has(.cart-empty) {
    height: auto;
    overflow: visible;
  }

  .gabos-store-page:has(.cart-empty) {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .shop-coming-soon,
  .cart-empty {
    min-height: calc(
      100svh - var(--store-placeholder-header) - var(--store-placeholder-footer-peek)
    );
  }

  .gabos-store-page:has(.shop-coming-soon) .landing-footer,
  .gabos-store-page:has(.cart-empty) .landing-footer {
    margin-top: var(--store-vertical-stack-gap);
  }

  .landing-footer__brand-group {
    transform: scale(0.8);
    transform-origin: center center;
  }
}

@media screen and (min-width: 768px) {
  .gabos-store-page:has(.shop-coming-soon),
  .gabos-store-page:has(.cart-empty) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .shop-coming-soon,
  .cart-empty {
    flex: 1 1 0;
    min-height: 0;
  }

  .store-mobile {
    display: none;
  }

  .store-desktop {
    display: grid;
  }

  .store-desktop .store-brand {
    justify-self: start;
  }

  .store-desktop nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

}

@media screen and (min-width: 1024px) {
  .store-desktop nav {
    gap: 3rem;
  }
}

/* —— Shop grid + PDP (Next /shop) —— */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gabos-store-page.gabos-page-shop {
  background: #f2f2f2;
  color: #251f1f;
}

.gabos-store-page.gabos-page-shop .store-header a,
.gabos-store-page.gabos-page-shop .store-menu-toggle {
  color: #251f1f;
}

.store-cart-link {
  justify-self: end;
  font-size: 21px;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.store-cart-link:hover {
  opacity: 0.7;
}

.store-main--shop {
  flex: 0 1 auto;
  min-height: calc(100dvh - var(--gutter-top) - var(--gutter-bottom) - 2.5rem);
  padding-top: var(--shop-after-nav);
  padding-bottom: var(--shop-before-footer);
}

.store-main--pdp {
  padding-top: var(--shop-after-nav-pdp);
  padding-bottom: var(--shop-before-footer-pdp);
}

.shop-product-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--shop-card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-product-row > li {
  flex: 0 0 auto;
  width: min(var(--shop-card-width), calc((100% - 3 * var(--shop-card-gap)) / 4));
}

.shop-product-row--fits-viewport {
  flex-wrap: nowrap;
  width: 100%;
  justify-content: space-between;
  gap: 0;
}

.shop-product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-product-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 445 / 545;
  overflow: hidden;
}

.shop-product-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.shop-product-card__photo-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.shop-product-card:hover .shop-product-card__photo-main {
  opacity: 0;
}

.shop-product-card:hover .shop-product-card__photo-hover {
  opacity: 1;
}

.shop-product-card__caption {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--shop-card-caption-overlap));
  text-align: center;
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
}

.shop-product-card__caption h2,
.shop-product-card__caption p {
  margin: 0;
}

.shop-detail-layout {
  display: grid;
  gap: var(--shop-detail-stack-gap);
  align-items: start;
}

.shop-detail-photos {
  display: flex;
  flex-direction: column;
  gap: var(--shop-detail-stack-gap);
  padding-top: var(--shop-detail-image-start);
}

.shop-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.shop-detail-copy h1 {
  margin: 0;
  text-align: center;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.shop-detail-meta {
  display: flex;
  flex-direction: column;
  gap: var(--store-vertical-stack-gap);
  max-width: 444px;
  margin: 0 auto;
  text-align: center;
}

.shop-detail-price {
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1;
}

.shop-detail-sizes {
  display: flex;
  justify-content: space-between;
  max-width: 444px;
  margin: 0 auto;
  font-size: 21px;
  line-height: 1;
}

.shop-detail-size.is-selected {
  text-decoration: underline;
}

.shop-detail-description {
  margin: 0;
  font-size: 21px;
  line-height: normal;
  text-transform: uppercase;
  white-space: pre-line;
}

.shop-detail-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 157px;
  height: 38px;
  margin: 0 auto;
  border: 1px solid #251f1f;
  font-size: 19px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.shop-detail-add-to-cart:hover {
  opacity: 0.7;
}

@media screen and (max-width: 767px) {
  .gabos-store-page.gabos-page-shop {
    --shop-after-nav: 72px;
  }

  .shop-product-row {
    flex-direction: column;
    align-items: center;
  }

  .shop-product-row > li {
    width: min(var(--shop-card-width), 100%);
  }

  .shop-product-row--fits-viewport {
    justify-content: flex-start;
    gap: var(--shop-card-gap);
  }
}

@media screen and (min-width: 1024px) {
  .shop-detail-layout {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .shop-detail-copy {
    position: sticky;
    top: var(--shop-detail-sticky-top);
    padding-top: max(var(--shop-detail-text-offset), var(--shop-detail-copy-inset-mid));
  }

  .shop-detail-sizes {
    margin-top: 2.75rem;
  }

  .shop-detail-description {
    margin-top: 3rem;
  }

  .shop-detail-add-to-cart {
    margin-top: 1.75rem;
  }
}
