@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/cormorant-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/cormorant-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/cormorant-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.catalog-section {
  --section-bg: #1a1b19;
  --section-panel: #20211e;
  --section-rule: #50473a;
  --section-accent: #ddc397;
  background-color: var(--section-bg);
  transition: background-color .4s ease;
}

.catalog-section[data-theme="wine"] {
  --section-bg: #21141b;
  --section-panel: #321e28;
  --section-rule: #67414e;
  --section-accent: #e9a9b3;
}

.catalog-section[data-theme="whisky"] {
  --section-bg: #221912;
  --section-panel: #33251c;
  --section-rule: #6e5038;
  --section-accent: #e8b578;
}

.catalog-section[data-theme="vodka"] {
  --section-bg: #151e24;
  --section-panel: #202c34;
  --section-rule: #485f70;
  --section-accent: #c2d8e4;
}

.catalog-section[data-theme="sparkling"] {
  --section-bg: #212015;
  --section-panel: #302e20;
  --section-rule: #67623f;
  --section-accent: #e8d998;
}

.catalog-section[data-theme="gin"] {
  --section-bg: #13201b;
  --section-panel: #203028;
  --section-rule: #495f4c;
  --section-accent: #afcea5;
}

.catalog-section[data-theme="rum"] {
  --section-bg: #112223;
  --section-panel: #1c3031;
  --section-rule: #3d6363;
  --section-accent: #a4d6cc;
}

.catalog-section[data-theme="cognac"] {
  --section-bg: #271918;
  --section-panel: #392623;
  --section-rule: #775047;
  --section-accent: #efb199;
}

.category-options .category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-options .category[aria-current="page"] {
  background: var(--section-accent);
  border-color: var(--section-accent);
  color: #1a1713;
}

.catalog-section[data-theme] .category:not([aria-current]) {
  color: #e0d8d1;
  background: var(--section-panel);
  border-color: var(--section-rule);
}

.catalog-section[data-theme] .category:hover,
.catalog-section[data-theme] .card:hover {
  border-color: var(--section-accent);
}

.catalog-section[data-theme] :is(.catalog-heading .eyebrow, .card-category, .card-price, .search span, .prices legend, #clear) {
  color: var(--section-accent);
}

.catalog-section[data-theme] :is(.card, .card-bottom, .search, .prices) {
  border-color: var(--section-rule);
}

.catalog-section[data-theme] .card {
  background: var(--section-panel);
}

.catalog-section[data-theme] :focus-visible {
  outline-color: var(--section-accent);
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  grid-template-areas: "copy art";
  background: var(--section-panel);
  border: 1px solid var(--section-rule);
  margin: 14px 0 44px;
}

.story-art {
  grid-area: art;
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.story-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-art::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #f3dfbd38;
  pointer-events: none;
}

.story-copy {
  grid-area: copy;
  align-self: center;
  padding: clamp(24px, 3.6vw, 58px);
  overflow-wrap: anywhere;
}

.story-kicker {
  margin: 0 0 16px;
  color: var(--section-accent);
}

.story-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
}

.story-copy h3 {
  max-width: 18ch;
  margin: 0;
  color: #f6eee2;
  font: 400 clamp(36px, 3.6vw, 58px)/1.04 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

#story-history,
#story-pairing {
  max-width: 55ch;
  margin: 12px 0 0;
  color: #e4dcd1;
  font-size: 15px;
  line-height: 1.65;
}

.story-table {
  margin: 22px 0 12px;
  padding-left: 16px;
  border-left: 2px solid var(--section-accent);
}

.story-table h4 {
  margin: 0;
  color: var(--section-accent);
  font: italic 400 21px/1.2 var(--serif);
}

#story-pairing {
  margin-top: 5px;
  font-size: 14px;
}

.story-source {
  display: inline-block;
  max-width: 100%;
  padding-block: 8px;
  color: var(--section-accent);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-source::after {
  content: " ↗";
}

.catalog-aside {
  display: grid;
  justify-items: end;
}
.catalog-aside .catalog-note { margin: 0; }
#jump-to-drinks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--section-accent);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#catalog-results { scroll-margin-top: 12px; }
@media (max-width: 560px) {
  .catalog-aside { justify-items: start; }
}
@media (any-pointer: coarse), (max-width: 850px) {
  .story-source { min-height: 44px; padding-block: 12px; }
}

.category-options .category {
  min-height: 44px;
  padding: 10px 19px;
  font-size: 13px;
  line-height: 1.25;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}

.category-options .category[aria-current="page"] {
  box-shadow: 0 0 18px color-mix(in srgb, var(--section-accent) 10%, transparent);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, .65fr) minmax(160px, .8fr);
  align-items: end;
  gap: clamp(16px, 3.5vw, 56px);
  margin: 10px 0 0;
  padding: 16px 0 4px;
}

.search,
.prices,
.sort-field {
  width: 100%;
  max-width: none;
  border-color: var(--section-rule);
  padding: 0;
  transition: border-color .2s;
}

.search {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.search span,
.prices legend,
.sort-field span {
  margin: 0;
  color: var(--section-accent);
  font-size: 10px;
  line-height: 1.5;
}

.sort-field {
  display: grid;
  min-width: 0;
  border-bottom: 1px solid var(--section-rule);
}
.sort-field span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.sort-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-block: 8px;
  border: 0;
  border-radius: 0;
  color: #eee3d2;
  background-color: transparent;
  color-scheme: dark;
  font: 400 16px/1.4 var(--sans);
  cursor: pointer;
}
.sort-field option {
  color: #eee3d2;
  background: var(--section-panel);
}

.discount-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  color: #e9ddc9;
  font: 500 14px/1.4 var(--sans);
  cursor: pointer;
}
/* A short or empty selection still has room to align below the sticky header. */
#catalog.offers-section { min-height: calc(100svh - var(--shop-header-height) - 64px); }
.discount-filter input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--section-accent);
  color-scheme: dark;
}
@media (min-width: 1000px) {
  .toolbar {
    grid-template-columns: minmax(0, 1.4fr) minmax(130px, .65fr) minmax(160px, .8fr) auto;
    column-gap: clamp(16px, 2.7vw, 44px);
  }
}
@media (min-width: 701px) and (max-width: 999px) {
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
}
.search input,
.prices input {
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
}

.search input::placeholder,
.prices input::placeholder {
  color: #b4afa5;
}

.toolbar :is(.prices, .search, .sort-field):focus-within {
  border-bottom-color: var(--section-accent);
}

.toolbar :is(input, select):focus-visible {
  outline: 2px solid var(--section-accent);
  outline-offset: 2px;
}

.price-error {
  color: #ffc3ac;
}

.results {
  min-height: 44px;
  align-items: center;
  margin: 8px 0 12px;
  color: #cec4b4;
  font-size: 12px;
}

.catalog-list {
  align-items: stretch;
  gap: clamp(22px, 3vw, 44px) clamp(14px, 2vw, 28px);
}

.card {
  display: flex;
  flex-direction: column;
  border-color: var(--section-rule);
}

.card,
.catalog-section .card:hover {
  transform: none;
  box-shadow: none;
}

.catalog-section .card:hover {
  border-color: var(--section-rule);
}

.card-image {
  background: #b4a696;
}

.card .card-image img,
.card:hover .card-image img {
  display: block;
  filter: saturate(.94);
  transform: none;
}

.card-image::after {
  inset: 7px;
  border: 1px solid #fff7e72e;
  background: none;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 1.9vw, 30px);
  min-width: 0;
}

.card-category {
  color: var(--section-accent);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .12em;
}

.card h3 {
  font: 500 clamp(28px, 2.45vw, 39px)/1.03 var(--serif);
  letter-spacing: -.025em;
  margin: 7px 0 8px;
  text-wrap: pretty;
}

.card-detail {
  color: #c5beb1;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  border-color: var(--section-rule);
  margin-top: auto;
  padding-top: 12px;
}

.card-price {
  color: var(--section-accent);
  font: 500 clamp(24px, 1.8vw, 29px)/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}

.card-bottom span {
  margin: 0;
  color: #bcafa0;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .08em;
}

@media (min-width: 360px) {
  .catalog-list > .card:only-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    width: min(100%, 860px);
  }
}

@media (min-width: 960px) {
  .catalog-list:has(> .card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-list:has(> .card:nth-child(2):last-child) > .card {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 560px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 8px;
  }

  .category-options .category {
    padding-inline: 13px;
  }

  .catalog-list {
    gap: 18px 12px;
  }

  .card-content {
    padding: 15px 11px;
  }

  .card h3 {
    font-size: clamp(24px, 6vw, 30px);
  }

  .card-detail {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .card-category {
    letter-spacing: .07em;
  }

  .card-image::after {
    inset: 4px;
  }
}

@media (max-width: 690px) {
  .story-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "art" "copy";
    margin: 20px 0 30px;
  }

  .story-art {
    min-height: 0;
    aspect-ratio: 2.35;
  }

  .story-copy {
    padding: 24px clamp(18px, 5vw, 34px) 16px;
  }
}

@media (min-width: 370px) and (max-width: 700px) {
  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px clamp(12px, 3vw, 22px);
  }
  .toolbar .search { grid-column: 1 / -1; }
}
