:root {
  --orange: #f05f0f;
  --peach: #fff5eb;
  --ink: #333132;
  --brown: #362222;
  --green: #2cce96;
  --yellow: #f7da77;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 14px;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.shell {
  width: min(1110px, calc(100% - 40px));
  margin-inline: auto;
}

.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 24px;
  border: 1px solid var(--brown);
  background: var(--brown);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dark-button:hover { background: var(--orange); border-color: var(--orange); }

.site-header { position: relative; z-index: 5; padding-top: 20px; }

.header-inner {
  width: min(1110px, calc(100% - 40px));
  min-height: 128px;
  margin: auto;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  align-items: center;
  position: relative;
}

.brand { width: 180px; }
.brand img { width: 180px; height: auto; }

.language-switcher {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
}

.language-switcher a {
  min-width: 50px;
  padding: 9px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.language-switcher .active { background: var(--orange); color: #fff; }

.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 39px;
  padding-top: 17px;
}

.top-nav a { font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.top-nav a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 17px; padding: 19px 0 0 28px; }
.login-icon { width: 22px; }

.cart-summary {
  width: 82px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}

.cart-summary strong { font-size: 12px; font-weight: 500; }
.cart-icon-wrap { position: relative; width: 31px; margin-bottom: 3px; }
.cart-icon-wrap b { position: absolute; right: -7px; top: -7px; color: var(--orange); font-size: 11px; }

.category-nav {
  width: min(1110px, calc(100% - 40px));
  min-height: 44px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--orange);
  overflow: hidden;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  border-bottom: 4px solid var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .45px;
  white-space: nowrap;
}

.category-nav a:hover { border-bottom-color: var(--yellow); }
.menu-toggle { display: none; }

.utility-bar {
  min-height: 126px;
  display: grid;
  grid-template-columns: 175px 1fr 275px;
  gap: 15px;
  align-items: center;
}

.enter-shop { width: 175px; }

.search-form {
  height: 40px;
  border: 1px solid var(--orange);
  display: grid;
  grid-template-columns: 1fr 60px;
}

.search-form input { border: 0; outline: 0; padding: 0 20px; color: var(--ink); }
.search-form button { border: 0; border-left: 1px solid var(--orange); background: #fcf8f7; }
.search-form button img { width: 22px; margin: auto; }

.phone-block { justify-self: end; display: flex; align-items: center; gap: 10px; color: var(--orange); }
.phone-icon { width: 50px; height: 50px; border: 1px solid var(--orange); border-radius: 50%; display: grid; place-items: center; }
.phone-icon img { width: 18px; }
.phone-block small, .phone-block strong { display: block; text-align: right; font-size: 15px; }
.phone-block strong { margin-top: 4px; }

.product-section {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 650px;
  padding-top: 0;
  padding-bottom: 60px;
}

.product-media {
  margin: 0;
  position: relative;
  min-height: 620px;
  padding: 58px 30px 0 18px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #fff;
  display: grid;
  place-items: center;
}

.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.thumbnail {
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid #e2dedb;
  background: #fff;
  overflow: hidden;
}

.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail:hover, .thumbnail.active { border: 2px solid var(--orange); padding: 3px; }

.vertical-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 27px;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: left top;
  background: #1a1a1a;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.product-details { padding: 94px 0 0 35px; }
.product-details h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.35; }
.product-subtitle { max-width: 590px; margin: 0 0 16px; color: #707070; font-size: 14px; line-height: 1.5; font-weight: 600; }
.price { margin: 0 0 35px; color: var(--orange); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }

.buy-form { display: flex; align-items: center; gap: 19px; margin-bottom: 26px; }
.qty-label { width: 55px; color: #707070; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.quantity-control { display: grid; grid-template-columns: 40px 40px 40px; }
.quantity-control button, .quantity-control input { width: 40px; height: 40px; border: 0; background: var(--peach); text-align: center; }
.quantity-control button { background: #fff; }
.quantity-control button img { width: 16px; margin: auto; }
.quantity-control input { color: var(--brown); font-size: 18px; outline: 0; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.add-cart { width: 160px; padding-inline: 12px; }
.add-cart-icon { display: none; }

.product-specs { margin: 0; }
.product-specs div { display: grid; grid-template-columns: 190px 1fr; min-height: 25px; align-items: center; }
.product-specs dt { color: #717171; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.product-specs dd { margin: 0; font-family: Georgia, serif; font-size: 16px; font-weight: 500; }

.description-section { border-top: 1px solid var(--orange); background: var(--peach); }
.description-inner { display: grid; grid-template-columns: 43% 57%; gap: 70px; padding-top: 62px; padding-bottom: 66px; }
.section-kicker { margin: 0 0 10px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.description-intro h2 { margin: 0 0 24px; font-size: 26px; line-height: 1.3; }
.description-intro p:not(.section-kicker) { margin: 0 0 16px; color: #575354; font-size: 15px; line-height: 1.7; }
.bottle-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.bottle-list article { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid #dfd1c5; }
.bottle-list article:last-child { grid-column: 1 / -1; }
.bottle-list h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.35; }
.bottle-list p { margin: 0; color: #625d5e; font-size: 13px; line-height: 1.55; }

.country-sites { min-height: 145px; border-top: 1px solid #eee; display: flex; align-items: center; justify-content: space-around; gap: 28px; }
.country-sites a { width: 125px; height: 95px; display: grid; place-items: center; }
.country-sites img { max-width: 110px; max-height: 85px; object-fit: contain; }

.site-footer { border-top: 1px solid var(--orange); overflow: hidden; }
.footer-content { padding-top: 72px; padding-bottom: 42px; }
.footer-company { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-company > img { width: 190px; }
.footer-company strong { display: block; margin-top: 12px; font-size: 17px; }
.footer-contact { margin-top: 34px; }
.footer-contact p, .footer-contact a { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 62px; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 16px; line-height: 1.35; font-weight: 500; }
.footer-links a:hover { color: var(--orange); }

.warning {
  min-height: 112px;
  padding: 22px 70px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  text-align: center;
}
.warning p { margin: 3px 0 13px; font-size: 16px; line-height: 1.35; font-weight: 500; }
.warning p:last-child { margin-bottom: 0; }
.back-to-top { position: absolute; right: 34px; bottom: 23px; color: #fff; font-size: 34px; line-height: 1; font-weight: 400; }
.back-to-top:hover { opacity: .75; }

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 65%);
}

.age-modal[hidden] { display: none; }
.age-card { width: min(600px, 100%); padding: 24px; background: #fff; text-align: center; }
.age-languages { display: flex; justify-content: center; gap: 22px; margin-bottom: 20px; }
.age-languages button { border: 0; background: none; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.age-languages span { width: 15px; height: 15px; border: 1px solid var(--orange); border-radius: 50%; }
.age-languages .active span { background: var(--orange); }
.age-rule { height: 1px; background: var(--orange); }
.age-logo { width: 200px; margin: 24px auto; }
.age-card h2 { margin: 0 0 24px; font-size: 21px; line-height: 1.5; }
.age-confirm { width: 220px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  padding: 13px 18px;
  background: #b4f2b4;
  color: #354437;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: .2s ease;
}

.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 160px 1fr auto; }
  .top-nav { gap: 20px; }
  .category-nav { overflow-x: auto; gap: 26px; justify-content: flex-start; }
  .utility-bar { grid-template-columns: 165px 1fr; }
  .phone-block { display: none; }
  .product-section { grid-template-columns: 46% 54%; }
  .description-inner { gap: 38px; }
  .footer-content { padding-top: 64px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 760px) {
  .shell, .header-inner, .category-nav { width: calc(100% - 30px); }
  .site-header { padding-top: 0; }
  .header-inner { min-height: 84px; grid-template-columns: 45px 1fr 75px; }
  .language-switcher, .top-nav, .login-icon { display: none; }
  .menu-toggle { display: grid; gap: 5px; width: 30px; padding: 5px; border: 0; background: transparent; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); }
  .brand { width: 140px; justify-self: center; }
  .brand img { width: 140px; }
  .header-actions { padding: 0; justify-content: flex-end; }
  .cart-summary { width: 68px; font-size: 11px; }
  .cart-icon-wrap { width: 27px; }

  .category-nav { display: none; height: auto; padding: 15px 20px; flex-direction: column; gap: 0; }
  .category-nav.open { display: flex; }
  .category-nav a { min-height: 40px; border: 0; border-bottom: 1px solid rgb(255 255 255 / 25%); }

  .utility-bar { min-height: 82px; grid-template-columns: 1fr; }
  .enter-shop { display: none; }
  .search-form { width: 100%; }

  .product-section { grid-template-columns: 1fr; padding-top: 0; padding-bottom: 45px; }
  .product-media { min-height: 0; padding: 30px 0 0; }
  .gallery-main { width: min(100%, 520px); margin: auto; }
  .product-thumbnails { width: min(100%, 520px); margin: 10px auto 0; gap: 5px; }
  .product-details { padding: 18px 0 0; }
  .product-details h1 { font-size: 20px; line-height: 1.35; }
  .product-subtitle { font-size: 13px; }
  .price { margin-bottom: 25px; font-size: 24px; }
  .buy-form { gap: 12px; }
  .qty-label { display: block; flex: 0 0 68px; width: 68px; font-size: 15px; }
  .add-cart { width: 90px; padding: 0; }
  .add-cart span { display: none; }
  .add-cart-icon { display: block; width: 29px; height: 29px; filter: brightness(0) invert(1); }
  .product-specs div { grid-template-columns: 170px 1fr; }
  .product-specs dd { font-size: 15px; }

  .description-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 42px; padding-bottom: 45px; }
  .description-intro h2 { font-size: 22px; }
  .bottle-list { grid-template-columns: 1fr; }
  .bottle-list article:last-child { grid-column: auto; }

  .country-sites { min-height: 110px; gap: 8px; overflow-x: auto; justify-content: flex-start; }
  .country-sites a { min-width: 90px; }
  .country-sites img { max-width: 75px; max-height: 70px; }

  .footer-content { width: 100%; padding: 80px 12px 15px; }
  .footer-company > img { width: 125px; }
  .footer-company strong { margin-top: 8px; font-size: 15px; }
  .footer-contact { margin-top: 26px; }
  .footer-contact p, .footer-contact a { margin-bottom: 5px; font-size: 14px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
  .footer-links > div { gap: 7px; }
  .footer-links a { font-size: 14px; line-height: 1.3; }
  .warning { min-height: 107px; padding: 21px 44px 18px 10px; }
  .warning p { margin-bottom: 13px; font-size: 15px; line-height: 1.3; }
  .back-to-top { right: 20px; bottom: 19px; font-size: 31px; }

  .age-card { padding: 20px; }
  .age-logo { width: 170px; margin-block: 22px; }
  .age-card h2 { font-size: 17px; }
}

@media (max-width: 380px) {
  .brand, .brand img { width: 122px; }
  .product-thumbnails { grid-template-columns: repeat(3, 1fr); }
  .product-specs div { grid-template-columns: 155px 1fr; }
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 13px; }
  .warning p { font-size: 14px; }
  .age-languages { gap: 10px; }
}
