:root {
  --blue: rgb(0, 15, 159);
  --colortext: rgb(0, 0, 0);
  --background: rgb(255, 255, 255);
  --table-light: #eaeaea;
  --table-shadow: #c0c0c0;
  --sz-head: 52px;
  --sz-gutter: 12px;
  --sz-margin: 20px;
  --sz-mediumspace: 24px;
  --sz-bigspace: 32px;
  --sz-section: clamp(28px, 4vw, 48px);
  --sz-logo: 35px;
  --fs-standard: 24px;
  --fs-medium: 48px;
  --fs-titles: 136px;
  --lh-standard: 22px;
  --lh-body: 26px;
  --lh-medium: 48px;
  --lh-titles: 110px;
  --sp-standard: -0.0425em;
  --sp-display: -0.0425em;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  background: var(--background);
  color: var(--colortext);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-standard);
  line-height: var(--lh-standard);
  letter-spacing: var(--sp-standard);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  min-height: calc(100vh - var(--sz-head));
}

.page-copy {
  max-width: 860px;
}

.page-copy p {
  margin-bottom: 14px;
  line-height: var(--lh-body);
}

.legal-copy {
  max-width: 980px;
}

.legal-layout {
  max-width: 720px;
  width: 100%;
}

.legal-section {
  margin-bottom: 34px;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: var(--fs-standard);
  font-weight: bold;
  line-height: var(--lh-body);
  letter-spacing: var(--sp-standard);
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.legal-layout p,
.legal-layout a {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.legal-list {
  margin-left: 1.1em;
}

.legal-list li {
  margin-bottom: 14px;
  line-height: var(--lh-body);
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.menu-open main,
body.menu-open .legal-footer {
  pointer-events: none;
  user-select: none;
}

body.age-gate-open {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--sz-margin);
  background: rgba(255, 255, 255, 0.98);
}

.age-gate[hidden] {
  display: none;
}

.age-gate-panel {
  width: min(100%, 720px);
}

.age-gate-title {
  margin: 0 0 var(--sz-mediumspace);
  font-size: var(--fs-titles);
  line-height: var(--lh-titles);
}

.age-gate-copy {
  max-width: 620px;
}

.age-gate-copy p {
  margin-bottom: 14px;
  line-height: var(--lh-body);
}

.age-gate-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: var(--sz-mediumspace);
}

.age-gate-button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 0.1em solid currentColor;
}

.age-gate-button.secondary {
  color: var(--colortext);
}

a {
  color: var(--blue);
}

img {
  display: block;
}

#skip {
  display: none;
}

main {
  padding: var(--sz-margin) var(--sz-margin) var(--sz-head);
}

h1 {
  font-size: var(--fs-titles);
  font-weight: normal;
  line-height: var(--lh-titles);
  letter-spacing: var(--sp-standard);
  margin: 0 0 var(--sz-mediumspace);
}

.hero-logo {
  display: block;
  max-width: min(100%, 900px);
  margin: 0 0 var(--sz-mediumspace);
  line-height: 0;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.categories {
  font-size: var(--fs-medium);
  font-weight: normal;
  line-height: var(--lh-medium);
  letter-spacing: var(--sp-standard);
  margin: 0 0 var(--sz-mediumspace);
}

.categories a {
  text-decoration: none;
  white-space: nowrap;
}

.categories a span {
  background-image: linear-gradient(transparent calc(100% - 0.075em), currentColor 0.075em);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.categories a[aria-current="page"] {
  color: var(--colortext);
  cursor: default;
}

.categories a.is-active {
  color: var(--colortext);
  cursor: default;
}

.categories a.is-active,
.categories a.is-active:visited,
.categories a.is-active:hover,
.categories a.is-active:active {
  color: var(--colortext);
}

.categories a[aria-current="page"] span {
  background-image: none;
}

.categories a.is-active span {
  background-image: none;
}

.categories a.is-active span,
.categories a.is-active:hover span,
.categories a.is-active:active span,
.categories a.is-active:visited span {
  background-image: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sz-gutter);
  padding-bottom: var(--sz-section);
}

.product {
  position: relative;
  width: 100%;
}

.product a {
  text-decoration: none;
}

.avatar {
  display: block;
  position: relative;
  margin-bottom: var(--sz-gutter);
  background-color: #f7f7f7;
}

.filler {
  display: block;
  padding-top: 150%;
}

.name {
  display: inline-block;
  padding-bottom: 2px;
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.125em;
}

.subtitle {
  display: flex;
  justify-content: space-between;
  color: var(--colortext);
}

.avatar picture {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar picture.large {
  inset: 12%;
}

.avatar picture.normal {
  inset: 12%;
}

.avatar picture.small {
  inset: 12%;
}

.avatar picture.altView {
  inset: 0;
  opacity: 0;
}

.avatar picture.altView img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product a:hover .avatar picture {
  opacity: 0;
}

.product a:hover .avatar picture.altView {
  opacity: 1;
}

@media (hover: none) {
  .avatar picture.altView {
    display: none;
  }

  .product a:hover .avatar picture {
    opacity: 1;
  }
}

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

.products-message {
  margin-bottom: var(--sz-section);
  color: var(--table-shadow);
}

.is-hidden {
  display: none;
}

.breadcrumb {
  margin: 0 0 10px;
}

.breadcrumb ul {
  display: flex;
  list-style: none;
}

.breadcrumb li::after {
  content: "";
}

.breadcrumb a {
  display: inline-block;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.125em;
}

/* ---------- Product page (Balestra-style) ---------- */

.page-product {
  background: transparent;
  --product-body-size: var(--fs-standard);
  --product-body-line-height: var(--lh-body);
  --product-note-size: 20px;
  --product-note-line-height: 22px;
  --product-content-max: 1180px;
}

.page-product main {
  background: transparent;
  padding-top: 14px;
  padding-bottom: 110px;
}

.product-page {
  background: transparent;
  max-width: var(--product-content-max);
  --hero-fixed-height: 760px;
}

.product-page h1 {
  margin: 0 0 18px;
  font-size: 160px;
  font-weight: normal;
  line-height: 1;
  letter-spacing: var(--sp-display);
  max-width: 1120px;
  white-space: nowrap;
  overflow: visible;
  padding-bottom: 0.08em;
}

.product-layout {
  display: grid;
  grid-template-columns: 480px 480px;
  gap: 30px;
  margin-bottom: 34px;
  align-items: stretch;
}

.product-image {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #f7f7f7;
  height: var(--hero-fixed-height);
  padding: 16px;
  overflow: hidden;
}

.product-image .filler {
  display: none;
}

.bottle-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f7f7;
  margin: 0 auto;
  overflow: hidden;
}

.bottle-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 480px;
  min-height: var(--hero-fixed-height);
}

.info-row {
  padding: 8px 0;
  border-top: 1px solid #7a7a7a;
  line-height: var(--product-body-line-height);
  font-size: var(--product-body-size);
}

.info-row p {
  margin: 0;
}

.info-row p + p {
  margin-top: 2px;
}

.info-buy a {
  display: inline-block;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.09em;
}

.info-buy .variant-note {
  display: none;
}

.info-row strong {
  font-weight: normal;
}

.info-hero-intro {
  order: 1;
}

.info-hero-details {
  order: 2;
}

.info-variants {
  order: 3;
}

.info-buy {
  order: 4;
}

.info-low {
  color: #c0c0c0;
  order: 5;
  margin-top: auto;
  padding-top: 8px;
}

.info-low a {
  position: relative;
  display: inline-block;
  color: #c0c0c0;
  text-decoration: none;
}

.info-low a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  border-bottom: 1px solid currentColor;
}

.info-low a:visited,
.info-low a:hover,
.info-low a:active {
  color: #c0c0c0;
}

/* Variant selector */
.variant-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 12px;
}

.variant-row .variant-label {
  color: var(--colortext);
  white-space: nowrap;
}

.variant-row .variant-options {
  display: flex;
  gap: 10px;
  margin-left: 0;
  justify-self: end;
  white-space: nowrap;
}

.variant-row .variant-options a {
  text-decoration: none;
  color: var(--table-shadow);
  cursor: pointer;
}

.variant-row .variant-options a.is-active {
  color: var(--blue);
  border-bottom: 0.1em solid currentColor;
}

.variant-row .variant-options a.is-disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.variant-row .variant-options a.is-active.is-disabled {
  opacity: 1;
}

.variant-note {
  margin-top: 4px;
  color: var(--table-shadow);
  line-height: var(--product-note-line-height);
  font-size: var(--product-note-size);
}

/* Product extra */
.product-extra {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #7a7a7a;
  margin-bottom: 24px;
  max-width: var(--product-content-max);
  font-size: var(--product-body-size);
  line-height: var(--product-body-line-height);
}

.extra-column {
  padding: var(--sz-gutter) 0;
  line-height: inherit;
}

.extra-column p {
  margin: 0;
}

.product-extra strong {
  font-weight: normal;
}

.extra-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--blue);
  cursor: pointer;
}

.extra-panel {
  padding-top: var(--sz-gutter);
  line-height: inherit;
}

.extra-panel p {
  margin-bottom: 10px;
}

.extra-panel ul {
  margin-left: 1em;
}

.related-products {
  padding: 16px 0 var(--sz-section);
  border-top: 1px solid #7a7a7a;
  max-width: var(--product-content-max);
}

.related-products h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: normal;
  line-height: 0.94;
}

.related-grid {
  padding-bottom: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-grid .name {
  font-size: 28px;
  line-height: 1.05;
}

.related-grid .subtitle {
  font-size: 20px;
  line-height: 1.1;
}

.legal-footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sz-gutter);
  padding: 0 var(--sz-margin) calc(var(--sz-section) + var(--sz-head));
  color: var(--table-shadow);
  font-size: 16px;
  line-height: 16px;
  letter-spacing: var(--sp-standard);
}

.legal-footer p {
  margin: 0;
}

.legal-footer .company p:first-child {
  font-weight: bold;
}

.legal-footer a {
  color: var(--blue);
}

.contacts {
  grid-column: 2 / span 2;
}

.legal-links {
  display: flex;
  grid-column: 5 / span 1;
  flex-direction: column;
  align-self: start;
}

header {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sz-margin);
  height: var(--sz-head);
  padding: 0 var(--sz-margin);
  background-color: var(--background);
}

header ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  white-space: nowrap;
}

header li {
  height: var(--sz-logo);
}

header li:not(:first-child)::before {
  content: ", ";
}

header a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 0.1em solid currentColor;
}

#mobilemenu {
  display: none;
  height: 100%;
}

#mobilemenu summary {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.125em;
}

#mobilemenu summary::-webkit-details-marker {
  display: none;
}

#mobilemenu summary::marker {
  content: "";
}

#mobilemenu ul {
  position: fixed;
  right: 0;
  bottom: var(--sz-head);
  left: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: var(--sz-margin);
  background-color: var(--background);
  border-top: 2px solid var(--table-light);
  border-bottom: 2px solid var(--table-shadow);
}

#mobilemenu ul a {
  font-size: var(--fs-medium);
  line-height: var(--lh-medium);
}

#mobilemenu li {
  height: auto;
}

#mobilemenu li::before {
  content: none;
}


.status-page {
  min-height: calc(100vh - var(--sz-head));
}

.status-page p {
  max-width: 640px;
  line-height: var(--lh-body);
}

@media (max-width: 1280px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .legal-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .legal-links {
    grid-column: 4 / span 1;
  }
}

@media (max-width: 1180px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
  }

  .product-image {
    height: var(--hero-fixed-height, 740px);
  }

  .product-info {
    width: auto;
    min-width: 0;
    min-height: var(--hero-fixed-height, 740px);
  }
}

@media (max-width: 1024px) {
  :root {
    --fs-standard: 22px;
    --fs-medium: 44px;
    --fs-titles: 120px;
    --lh-standard: 21px;
    --lh-body: 24px;
    --lh-medium: 40px;
    --lh-titles: 100px;
  }

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

  .page-product {
    --product-body-size: 22px;
    --product-body-line-height: 24px;
    --product-note-size: 18px;
    --product-note-line-height: 20px;
  }
}

@media (max-width: 855px) {
  #menulinks {
    display: none;
  }

  #mobilemenu {
    display: block;
  }
}

@media (max-width: 800px) {
  :root {
    --fs-standard: 18px;
    --fs-medium: 36px;
    --fs-titles: 72px;
    --lh-standard: 20px;
    --lh-body: 24px;
    --lh-medium: 36px;
    --lh-titles: 72px;
  }

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

  h1 {
    margin-bottom: 16px;
  }

  .categories {
    margin-bottom: 16px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-image {
    height: 420px;
    padding: var(--sz-gutter);
  }

  .bottle-image {
    height: 100%;
    min-height: 0;
  }

  .product-info {
    max-width: none;
    min-height: auto;
    width: 100%;
  }

  .info-row {
    font-size: var(--product-body-size);
    line-height: var(--product-body-line-height);
    padding: 8px 0;
  }

  .variant-row {
    grid-template-columns: auto 1fr;
  }

  .variant-row .variant-options {
    justify-self: end;
    gap: 8px;
  }

  .product-extra {
    max-width: none;
    grid-template-columns: 1fr;
    font-size: var(--product-body-size);
    line-height: var(--product-body-line-height);
  }

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

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

  .contacts,
  .legal-links {
    grid-column: auto;
  }

  .page-product {
    --product-body-size: 18px;
    --product-body-line-height: 22px;
    --product-note-size: 16px;
    --product-note-line-height: 19px;
  }
}

@media (max-width: 600px) {
  :root {
    --sz-head: 44px;
    --sz-logo: 24px;
    --fs-standard: 16px;
    --fs-medium: 30px;
    --fs-titles: 52px;
    --lh-standard: 18px;
    --lh-body: 21px;
    --lh-medium: 31px;
    --lh-titles: 52px;
  }

  .page-product main {
    padding-bottom: 85px;
  }

  .page-product {
    --product-body-size: 17px;
    --product-body-line-height: 21px;
    --product-note-size: 15px;
    --product-note-line-height: 18px;
  }

  .related-products h2 {
    font-size: 40px;
    line-height: 0.96;
  }

  .legal-footer {
    display: flex;
    flex-direction: column;
  }
}
