/* SAMARIA's homepage. The original Elementor content and WooCommerce loops provide the markup. */
body.samaria-home-redesign {
  --samaria-home-width: min(1240px, calc(100% - clamp(28px, 4.4vw, 76px)));
  --samaria-home-space: clamp(24px, 3.5vw, 48px);
}

@media (min-width: 980px) {
  body.samaria-home-redesign {
    /* Give the content half of each former outer gutter, including on wide screens. */
    --samaria-home-width: min(calc(50% + 620px), calc(100% - clamp(14px, 2.2vw, 38px)));
  }
}

.samaria-home-redesign article.type-page {
  position: relative;
  background: transparent;
}

.samaria-home-redesign #samaria-home-shop > .elementor > .elementor-element-96bd236 {
  /* This section contains only an existing widget hidden at every breakpoint. */
  display: none;
}

.samaria-home-banner {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  width: var(--samaria-home-width);
  margin: clamp(20px, 3vw, 42px) auto var(--samaria-home-space);
  border: 1px solid var(--samaria-line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--samaria-surface), var(--samaria-paper));
  box-shadow: 0 15px 36px rgb(73 46 28 / 12%);
  overflow: hidden;
}

.samaria-home-banner__content {
  align-self: center;
  min-width: 0;
  container-type: inline-size;
  padding: clamp(24px, 4.3vw, 62px);
}

.samaria-home-banner__content :is(h1, h2) {
  max-width: 12ch;
  margin: 0;
  color: var(--samaria-ink);
  font: 400 clamp(2.4rem, 4.25vw, 4.7rem)/.99 var(--samaria-serif);
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.samaria-home-banner__content #samaria-bestsellers-banner-title {
  max-width: 100%;
  font-size: min(clamp(2.4rem, 4.25vw, 4.7rem), 13cqi);
}

.samaria-home-banner__content p {
  margin: 18px 0 23px;
  color: var(--samaria-muted);
  font-size: clamp(.93rem, 1.34vw, 1.08rem);
  line-height: 1.55;
}

.samaria-home-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.samaria-home-banner__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--samaria-line);
  border-radius: 10px;
  background: var(--samaria-surface);
  color: var(--samaria-copper);
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.samaria-home-banner__actions a:hover {
  border-color: var(--samaria-copper);
  background: var(--samaria-nav-hover);
  color: var(--samaria-copper);
}

.samaria-home-banner__actions a.samaria-home-banner__primary {
  border-color: transparent;
  background: var(--samaria-action, var(--samaria-copper));
  color: #fffaf3;
}

.samaria-home-banner__actions a.samaria-home-banner__primary:hover {
  background: var(--samaria-action-hover, #70391f);
  color: #fffaf3;
}

.samaria-home-banner__actions a:focus-visible {
  outline: 2px solid var(--samaria-copper);
  outline-offset: 3px;
}

.samaria-home-banner__bottles {
  position: relative;
  align-self: center;
  min-width: 0;
}

.samaria-home-banner__photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.samaria-home-banner__links {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.samaria-home-banner__links polygon {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

@media (any-hover: hover) {
  .samaria-home-banner__links a:hover polygon {
    fill: rgb(255 250 230 / 8%);
  }
}

.samaria-home-banner__links a:is(:active, .is-tapped) polygon {
  fill: rgb(255 230 178 / 30%);
  stroke: rgb(255 245 211 / 85%);
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px rgb(255 204 123 / 88%));
}

.samaria-home-banner__links a:focus-visible polygon {
  fill: rgb(255 250 230 / 15%);
  stroke: white;
  stroke-width: 2px;
  filter: drop-shadow(0 0 2px #30170b);
}

.samaria-home-slider [hidden] {
  display: none;
}

.samaria-home-slider.has-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.samaria-home-slider.has-controls .samaria-home-banner {
  grid-area: 1 / 1;
  margin-bottom: 0;
}

.samaria-home-slider.has-controls > .samaria-home-banner[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.samaria-home-banner__scene-space {
  aspect-ratio: 3 / 2;
}

.samaria-home-slider__controls {
  grid-area: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: var(--samaria-home-width);
  margin: 10px auto var(--samaria-home-space);
}

.samaria-home-slider__controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--samaria-line);
  border-radius: 50%;
  background: var(--samaria-surface);
  color: var(--samaria-copper);
  font: inherit;
  font-size: 1.24rem;
  cursor: pointer;
}

.samaria-home-slider__controls button:hover {
  border-color: var(--samaria-copper);
  background: var(--samaria-nav-hover);
}

.samaria-home-slider__controls button:focus-visible {
  outline: 2px solid var(--samaria-copper);
  outline-offset: 3px;
}

.samaria-home-slider__controls [data-samaria-rotation] span {
  width: 12px;
  height: 14px;
  border: 0 solid currentColor;
  border-width: 0 4px;
  box-sizing: border-box;
}

.samaria-home-slider__controls [data-samaria-rotation][data-paused="true"] span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .samaria-home-slider__controls [data-samaria-rotation] { display: none; }
}

.samaria-home-slider__dots {
  display: flex;
  gap: 6px;
}

.samaria-home-slider__dots span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--samaria-copper);
  border-radius: 50%;
}

.samaria-home-slider__dots .is-current {
  background: var(--samaria-copper);
}

@media (prefers-reduced-motion: no-preference) {
  .samaria-home-slider.has-switched > .samaria-home-banner:not([hidden]) {
    animation: samaria-banner-appear .22s ease-out;
  }
}

@keyframes samaria-banner-appear {
  from { opacity: .55; }
  to { opacity: 1; }
}

.samaria-production {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  width: var(--samaria-home-width);
  margin: 0 auto var(--samaria-home-space);
  overflow: hidden;
  scroll-margin-block-start: 100px;
  border: 1px solid var(--samaria-line);
  border-radius: 20px;
  background: var(--samaria-surface);
  color: var(--samaria-ink);
}

.samaria-production__media {
  position: relative;
  background: var(--samaria-paper);
}

.samaria-production__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 50%;
}

.samaria-production__copy {
  align-self: center;
  padding: clamp(22px, 3.3vw, 48px);
}

.samaria-production__copy h2 {
  margin: 0;
  color: var(--samaria-ink);
  font: 400 clamp(1.9rem, 3.1vw, 3.25rem)/1.04 var(--samaria-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.samaria-production__copy p,
.samaria-production__copy dd {
  max-width: 62ch;
  margin: 0;
  color: var(--samaria-muted);
  line-height: 1.55;
}

.samaria-production__copy p { margin-top: .85rem; }
.samaria-production__copy dl { margin: 1.3rem 0 .75rem; }
.samaria-production__copy dt {
  margin: .85rem 0 .2rem;
  padding-top: .7rem;
  border-top: 1px solid var(--samaria-line);
  color: var(--samaria-ink);
  font-weight: 700;
}

.samaria-production__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  color: var(--samaria-copper);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.samaria-production__link:is(:hover, :focus-visible) { color: var(--samaria-ink); }

@media (max-width: 760px) {
  .samaria-production { grid-template-columns: minmax(0, 1fr); }
  .samaria-production__media { aspect-ratio: 2 / 1; }
}

.samaria-home-redesign #samaria-home-shop .samaria-home-shop {
  width: var(--samaria-home-width);
  max-width: none;
  margin-block: 0 var(--samaria-home-space);
  padding: 0;
  color: var(--samaria-ink);
}

.samaria-home-redesign #samaria-home-shop .samaria-home-section {
  margin: 0;
  padding: clamp(14px, 2.8vw, 34px);
  border: 1px solid var(--samaria-line);
  border-radius: 20px;
  background: var(--samaria-surface);
  background: color-mix(in srgb, var(--samaria-surface) 94%, transparent);
}

.samaria-home-redesign #samaria-home-shop .samaria-home-heading {
  align-items: flex-end;
  gap: 12px 20px;
  margin-bottom: 15px;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-heading h2 {
  color: var(--samaria-ink);
  font: 400 clamp(1.8rem, 3.2vw, 3rem)/1.06 var(--samaria-serif);
  letter-spacing: -.025em;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-chips {
  gap: 6px;
  margin-bottom: 12px;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-group-filter {
  min-height: 40px;
  padding: 7px 12px;
  border-color: var(--samaria-line);
  background: #f9f1e6;
  color: var(--samaria-ink);
  font-size: .8rem;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-group-filter:hover {
  border-color: #af8066;
  background: #f1e2d3;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-group-filter[aria-current="true"] {
  border-color: var(--samaria-copper);
  background: var(--samaria-copper);
  color: #fff;
}

.samaria-home-redesign #samaria-home-shop :is(.samaria-home-status, .samaria-home-empty) {
  color: var(--samaria-muted);
}

.samaria-home-redesign #samaria-home-shop .samaria-home-status {
  margin: 10px 0 15px;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products ul.products {
  gap: clamp(9px, 1.6vw, 20px);
}

@media (min-width: 1200px) {
  .samaria-home-redesign :is(#samaria-home-kind-products, #samaria-home-range-products) ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products ul.products > li.product {
  width: 100%;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-product {
  display: flex;
  flex-direction: column;
  border-color: var(--samaria-line);
  border-radius: 13px;
  background: #fffdfa;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-featured {
  container-type: inline-size;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products li.product .entry-featured > a {
  aspect-ratio: 4 / 5;
  max-height: max(360px, 87cqw);
  overflow: hidden;
  border: 0;
  background: #f1e4d5;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products li.product .entry-featured > a:has(.samaria-home-cutout) {
  background: var(--samaria-photo);
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-featured img.samaria-home-studio {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  /* The existing frame is no wider than the source, so cover trims only the sides. */
  object-fit: cover;
  object-position: center;
}

.samaria-home-redesign #samaria-home-shop img.samaria-home-studio.samaria-bottle-200ml {
  scale: none;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-wrap {
  display: flex;
  flex: 1 1 auto;
  padding: clamp(10px, 1.5vw, 18px);
  border-top: 1px solid var(--samaria-line);
  background: #fffdfa;
  color: var(--samaria-ink);
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-header {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-header h3,
.samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-header h3 a {
  margin: 0;
  color: var(--samaria-ink);
  font-weight: 650;
  line-height: 1.36;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-attributes {
  justify-content: flex-start;
  margin: 6px 0;
  color: var(--samaria-muted);
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .price {
  margin: auto 0 0;
  padding-top: 5px;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-products .price .amount {
  color: var(--samaria-copper);
  line-height: 1.2;
}

.samaria-home-redesign #samaria-home-shop :is(.samaria-home-more, .entry-header .button) {
  border-color: var(--samaria-copper);
  background: var(--samaria-copper);
  color: #fff;
  font-weight: 700;
  text-transform: none;
}

.samaria-home-redesign #samaria-home-shop :is(.samaria-home-more, .entry-header .button):hover {
  border-color: #71371f;
  background: #71371f;
}

.samaria-home-redesign #samaria-home-shop :is(a, button, select):focus-visible {
  outline: 3px solid #b76f48;
  outline-offset: 3px;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-alcohol {
  gap: 2px;
  min-width: 0;
  min-height: 0;
  padding: 5px 8px;
  border-color: #d7b89d;
  border-radius: 8px;
  background: #fff8ed;
  color: var(--samaria-copper);
}

.samaria-home-redesign #samaria-home-shop .samaria-home-alcohol-label {
  color: var(--samaria-muted);
  font-size: .63rem;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-design-label {
  align-self: flex-start;
  color: var(--samaria-copper);
  font-size: .72rem;
  font-weight: 700;
}

.samaria-home-redesign #samaria-home-shop .samaria-home-alcohol-value {
  font-size: 1.22rem;
}

.samaria-home-collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 1.45vw, 1.1rem);
  margin-block: var(--samaria-home-space);
  scroll-margin-top: 110px;
}

.samaria-home-collection-card {
  display: grid;
  grid-template-columns: minmax(52px, 29%) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 1.3vw, 1.1rem);
  padding: clamp(.7rem, 1.15vw, 1rem);
  border: 1px solid var(--samaria-line);
  border-radius: 16px;
  background: var(--samaria-surface);
  color: var(--samaria-ink);
  text-decoration: none;
}

.samaria-home-collection-card:hover,
.samaria-home-collection-card:focus-visible {
  border-color: var(--samaria-copper);
  color: var(--samaria-ink);
}

.samaria-home-collection-card:focus-visible {
  outline: 2px solid var(--samaria-copper);
  outline-offset: 3px;
}

.samaria-home-collection-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94px;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--samaria-paper);
  object-fit: cover;
}

.samaria-home-collection-image.samaria-home-collection-logo {
  padding: .3rem;
  object-fit: contain;
}

.samaria-home-collection-title {
  display: block;
  font: 400 clamp(1.05rem, 1.8vw, 1.57rem)/1.1 var(--samaria-serif);
  overflow-wrap: anywhere;
}

.samaria-home-collection-description {
  display: block;
  margin-top: .35rem;
  color: var(--samaria-muted);
  font-size: .79rem;
  line-height: 1.4;
}

.samaria-home-collection-arrow {
  color: var(--samaria-copper);
  font-size: 1.2rem;
}

@media (max-width: 750px) {
  .samaria-home-collections { grid-template-columns: minmax(0, 1fr); }
  .samaria-home-collection-card { grid-template-columns: 64px minmax(0, 1fr) auto; }
}

@media (max-width: 850px) {
  .samaria-home-redesign #samaria-home-shop .samaria-home-heading {
    align-items: flex-start;
  }
}

@media (max-width: 740px) {
  .samaria-home-banner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    border-radius: 18px;
  }

  .samaria-home-banner__content {
    padding: 23px clamp(15px, 4.8vw, 34px) 20px;
  }

  .samaria-home-banner__content :is(h1, h2) {
    max-width: none;
    font-size: clamp(2.16rem, 7.6vw, 3.1rem);
    text-wrap: initial;
  }

  .samaria-home-banner__content #samaria-bestsellers-banner-title {
    font-size: min(clamp(2.16rem, 7.6vw, 3.1rem), 13cqi);
  }

  .samaria-home-banner__content p {
    margin: 10px 0 15px;
  }

  .samaria-home-banner__actions a {
    padding-inline: 10px;
    font-size: .78rem;
  }

}

@media (max-width: 620px) {
  .samaria-home-redesign #samaria-home-shop .samaria-home-group-filter {
    min-height: 44px;
  }
}

@media (max-width: 500px) {
  .samaria-home-redesign #samaria-home-shop .samaria-home-alcohol {
    position: static;
    align-self: center;
    width: fit-content;
    max-width: calc(100% - 12px);
    margin: 6px 0;
  }

  .samaria-home-redesign #samaria-home-shop .samaria-home-alcohol-label {
    max-width: none;
  }

  .samaria-home-redesign #samaria-home-shop .samaria-home-products .entry-header .button {
    min-height: 44px;
    padding-inline: 6px;
    font-size: .74rem;
  }
}
