/* Ethanol Wine storefront — catalog_app owned styles (theme + custom + overrides) */
/* Edit this file for storefront UI changes. Base grid/components: storefront-base.css */

/* Ethanol Wine — Classic theme aligned storefront */
/* Load after: variables.css, bootstrap */

/* Responsive visibility handled in storefront-base.css */

/* ── Base: system fonts only (no webfont downloads) ── */
html body {
  font-family: var(--ew-font) !important;
}

.ew-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  line-height: 1;
  color: inherit;
}

.ew-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

body {
  font-family: var(--ew-font);
  color: var(--ew-text);
  background: var(--ew-bg);
  line-height: 1.5;
  margin: 0;
}

a { color: var(--ew-primary); text-decoration: none; }
a:hover { color: var(--ew-primary-dark); text-decoration: none; }

.logo-h1 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }

/* ── Header ── */
#header { background: var(--ew-bg); }

#header .header-top { padding: 1.25rem 0; }

@media (min-width: 768px) {
  #header .header-top {
    height: 100px;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  #header .header-top .container {
    height: 100%;
    display: flex;
    align-items: center;
  }
}

#header .header-top .nav-link {
  color: var(--ew-text);
  font-weight: 400;
  padding: 0.4rem 0.75rem;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

#header .header-top .nav-link:hover { color: var(--ew-primary); }

#header .top-menu .nav { flex-wrap: wrap; }

#header .header-top .menu.js-top-menu.position-static {
  padding-left: 0;
}

#header .header-nav {
  background: var(--ew-bg-soft);
  padding: 0;
  font-size: 0.875rem;
}

#header .header-nav #contact-link,
#header .header-nav a {
  color: var(--ew-text);
  font-size: 0.875rem;
}

#header .header-nav a:hover { color: var(--ew-primary); }

#header .header-nav #ew-desktop-contact {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.75rem;
}

#header .header-nav #ew-desktop-contact .ew-header-utility-home {
  flex: 0 0 auto;
  white-space: nowrap;
}

#header .header-nav #ew-desktop-contact .ew-header-utility-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  min-width: 0;
  white-space: nowrap;
}

#header .header-nav #ew-desktop-contact .ew-header-utility-links a {
  flex: 0 0 auto;
}

#header .header-nav #ew-desktop-language {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
  flex: 0 0 auto;
}

.language-selector-wrapper { padding: 0.625rem 0; }

.language-selector .current-lang {
  font-weight: 600;
  color: var(--ew-text);
  font-size: 0.875rem;
}

.language-selector .lang-link {
  color: var(--ew-muted);
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

.language-selector .lang-link:hover { color: var(--ew-primary); }

.logo img,
img.logo {
  max-height: 70px;
  width: auto;
}

/* Theme #search_widget appearance (id renamed to avoid vendor autocomplete) */
#ew-header-search-desktop {
  margin-bottom: 0.625rem;
  overflow: auto;
}

#ew-header-search-desktop form {
  position: relative;
}

#ew-header-search-desktop form .ew-search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a7a;
  pointer-events: none;
  transform: translateY(-50%);
}

#ew-header-search-desktop form .ew-search-clear {
  position: absolute;
  top: 50%;
  right: 15px;
  padding: 0;
  color: #7a7a7a;
  cursor: pointer;
  transform: translateY(-50%);
  display: none;
}

#ew-header-search-desktop form input[type="text"] {
  width: 100%;
  padding: 10px 20px 10px 40px;
  outline: none;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
}

@media (min-width: 768px) {
  #ew-header-search-desktop {
    float: right;
    margin-bottom: 0;
  }

  .header-top #ew-header-search-desktop input[type="text"] {
    padding-right: 1rem;
  }
}

@media (min-width: 992px) {
  #ew-header-search-desktop {
    min-width: 16.5rem;
  }
}

@media (min-width: 768px) {
  .ew-header-top-desktop {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem 1.25rem;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
  }

  #ew-desktop-logo {
    flex: 0 0 auto;
    min-width: 0;
  }

  #ew-desktop-logo h1 {
    margin: 0;
  }

  #ew-desktop-logo img.logo,
  #ew-desktop-logo img {
    display: block;
    max-height: 60px;
    max-width: none;
    width: auto;
    height: auto;
  }

  #ew-desktop-top-menu {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    position: static;
    padding-left: 0;
  }

  #ew-desktop-top-menu .top-menu[data-depth="0"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    row-gap: 0.25rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #ew-desktop-top-menu .top-menu[data-depth="0"] > li,
  #ew-desktop-top-menu .top-menu[data-depth="0"] > li.category {
    float: none !important;
    flex: 0 0 auto;
  }

  #ew-desktop-top-menu .top-menu a[data-depth="0"] {
    white-space: nowrap;
    line-height: 1.25rem;
  }

  .ew-header-top-desktop.is-menu-compact #ew-desktop-top-menu .top-menu a[data-depth="0"] {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.9375rem;
  }

  #ew-desktop-top-menu .clearfix {
    display: none;
  }

  #header .ew-header-top-desktop #ew-header-search-desktop {
    flex: 0 0 auto;
    width: 16.5rem;
    min-width: 0;
    max-width: 16.5rem;
    float: none !important;
    margin-bottom: 0 !important;
    overflow: hidden;
  }

  #header .ew-header-top-desktop #ew-header-search-desktop form {
    width: 100%;
    margin: 0;
  }

  #header .ew-header-top-desktop #ew-header-search-desktop form input[type="text"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (min-width: 992px) {
  #header .ew-header-top-desktop #ew-header-search-desktop {
    min-width: 0 !important;
  }
}

@media (max-width: 1199px) {
  body.lang-en #ew-desktop-top-menu .top-menu a[data-depth="0"],
  body.lang-en .ew-header-top-desktop.is-menu-compact #ew-desktop-top-menu .top-menu a[data-depth="0"] {
    font-size: 12px;
  }
}

#header .header-nav .ew-header-nav-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 90%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

#header .header-nav #ew-desktop-contact #contact-link,
#header .header-nav .language-selector {
  margin-top: 0;
}

#header .header-nav .language-selector-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

#header .header-nav .language-selector button.btn-unstyle {
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
}

@media (max-width: 991px) {
  #header .header-nav > .container,
  #header .header-top > .container {
    width: 100%;
    max-width: 100%;
  }
}

/* ── Mobile header (<768px) ── */
@media (max-width: 767px) {
  .ew-header-nav-mobile {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 40px;
  }

  .ew-header-nav-mobile > #menu-icon {
    justify-self: start;
  }

  .ew-header-nav-mobile__pages {
    justify-self: center;
    flex-shrink: 0;
  }

  .ew-header-nav-mobile__lang {
    justify-self: end;
    flex-shrink: 0;
  }

  .ew-header-pages-selector {
    position: relative;
  }

  .ew-header-pages-selector > button.btn-unstyle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.5;
    white-space: nowrap;
  }

  .ew-header-pages-selector__plus {
    font-size: 1rem;
    line-height: 1;
    font-weight: 500;
  }

  .ew-header-pages-selector .dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  #menu-icon.ew-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .ew-header-top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0;
    margin-right: 0;
  }

  .ew-header-logo-col {
    flex: 0 0 auto;
    width: auto;
    max-width: 45%;
    padding: 0;
  }

  .ew-header-logo-col .logo-h1 {
    margin: 0;
  }

  .ew-header-logo-col img.logo,
  .ew-header-logo-col img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
  }

  .ew-header-search-col {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
  }

  .ew-header-search-col .search-widgets {
    max-width: none;
    width: 100%;
  }

  .ew-header-search-col #search_widget_mobile {
    display: block;
    float: none;
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
    overflow: visible;
  }

  .ew-header-search-col #search_widget_mobile form {
    position: relative;
    display: block;
    margin: 0;
  }

  .ew-header-search-col #search_widget_mobile form input[type="hidden"] {
    display: none;
  }

  .ew-header-search-col #search_widget_mobile form input[type="text"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    padding: 0 2.25rem 0 2.5rem;
    outline: none;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px;
    color: #9b9b9b;
    font-size: 0.875rem;
  }

  .ew-header-search-col #search_widget_mobile form input[type="text"]:focus {
    background: #fff;
  }

  .ew-header-search-col #search_widget_mobile form .ew-search-icon,
  .ew-header-search-col #search_widget_mobile form .ew-search-clear {
    position: absolute;
    z-index: 1;
    top: 50%;
    padding: 0;
    margin: 0;
    transform: translateY(-50%);
  }

  .ew-header-search-col #search_widget_mobile form .ew-search-icon {
    left: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b9b9b;
    pointer-events: none;
  }

  .ew-header-search-col #search_widget_mobile form .ew-search-clear {
    right: 0.625rem;
    left: auto;
    color: #9b9b9b;
    cursor: pointer;
  }

  #header .container,
  #wrapper .container,
  .container {
    width: 100%;
    max-width: 100%;
  }

  #header .header-top {
    padding: 0.75rem 0;
  }
}

/* ── Slide-out storefront menu (all viewports) ── */
body.ew-menu-open {
  overflow: hidden;
}

.ew-menu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  display: block;
  width: 50%;
  max-width: 20rem;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: 2px 0 12px rgb(0 0 0 / 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.ew-menu-open .ew-menu-wrapper {
  transform: translateX(0);
}

.ew-menu-wrapper__inner {
  padding: 0 0 1.25rem;
}

.ew-menu-wrapper__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.5rem 0.5rem 0.25rem;
  background: #fff;
}

.ew-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #232323;
  cursor: pointer;
}

.ew-menu-close .ew-icon {
  line-height: 1;
  display: inline-flex;
}

.ew-menu-close .ew-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.ew-menu-close:hover {
  color: var(--ew-primary);
  background: #f6f6f6;
}

.ew-menu-wrapper__nav {
  display: block;
}

.ew-menu-section + .ew-menu-section {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ececec;
}

.ew-menu-section--home + .ew-menu-section {
  margin-top: 0.35rem;
}

.ew-menu-section__title {
  margin: 0;
  padding: 0.35rem 1rem 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: #8a8a8a;
  text-transform: uppercase;
}

.ew-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ew-menu-list > li {
  display: block;
  float: none;
}

.ew-menu-link {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 0;
  border-bottom: 1px solid #f6f6f6;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #232323;
  text-decoration: none;
  text-transform: none;
}

.ew-menu-list > li:last-child .ew-menu-link {
  border-bottom: 0;
}

.ew-menu-link:hover {
  color: var(--ew-primary);
}

.ew-mobile-layer {
  position: fixed;
  inset: 0;
  z-index: 1999;
  display: none;
  background: rgb(29 29 27 / 0.8);
  transition: opacity 0.15s ease;
}

body.ew-menu-open .ew-mobile-layer {
  display: block;
}

/* ── Fixed menu (after header scrolls away) ── */
.ew-fixed-menu-icon {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #C82254;
  color: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

body.ew-menu-open .ew-fixed-menu-icon {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.ew-fixed-menu-icon .ew-icon {
  line-height: 1;
  display: inline-flex;
}

.ew-fixed-menu-icon .ew-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.ew-fixed-menu-icon.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ew-fixed-menu-icon:hover {
  background: #a81c46;
}

.ew-fixed-menu-icon[hidden] {
  display: inline-flex;
}

.ew-fixed-menu-icon:not(.is-visible) {
  pointer-events: none;
}

/* ── Floating actions (WhatsApp + scroll to top) ── */
.ew-float-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ew-whatsapp-btn,
.ew-scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.ew-whatsapp-btn {
  background: #25D366;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.ew-whatsapp-btn:focus,
.ew-whatsapp-btn:active,
.ew-whatsapp-btn:focus-visible {
  background: #25D366;
  color: #fff;
  outline: none;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .ew-whatsapp-btn:hover {
    background: #1ebe57;
    color: #fff;
    opacity: 1;
  }
}

.ew-whatsapp-btn .ew-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.ew-whatsapp-btn .ew-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ew-scroll-top {
  background: #C82254;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
}

.ew-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ew-scroll-top:hover {
  background: #a81c46;
}

.ew-scroll-top[hidden] {
  display: none;
}

.ew-scroll-top.is-visible[hidden] {
  display: inline-flex;
}

@media (max-width: 767px) {
  .ew-float-actions {
    right: 1rem;
    bottom: 1rem;
  }

  .ew-whatsapp-btn,
  .ew-scroll-top {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ── Wrapper ── */
@media (min-width: 1200px) {
  .container {
    width: 1540px;
    max-width: 100%;
  }
}

#wrapper { padding-bottom: 2rem; }

#wrapper .container { padding-top: 0.5rem; }

/* ── Breadcrumb (Classic) ── */
#wrapper .breadcrumb {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--ew-bg-soft);
  border-radius: 0;
}

#wrapper .breadcrumb ol {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

#wrapper .breadcrumb li {
  display: inline;
  font-size: 0.875rem;
}

#wrapper .breadcrumb a { color: var(--ew-muted); }
#wrapper .breadcrumb a:hover { color: var(--ew-primary); }
#wrapper .breadcrumb li span { color: var(--ew-text); }

/* ── Homepage shelf section headers ── */
.featured-products {
  margin-bottom: 0;
}

/* Banner → first shelf: sit flush (no large empty band) */
.page-home #carousel {
  margin-bottom: 0;
}

.page-home #carousel + .featured-products > .products-section-title {
  margin-top: 0.75rem;
}

.page-home .featured-products + .featured-products {
  margin-top: 20px;
  border-top: 1px solid var(--ew-border);
}

#products .products-section-title,
.featured-products .products-section-title,
.product-accessories .products-section-title,
.featured-products h2.products-section-title.h2 {
  margin: 20px 0;
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase !important;
  color: var(--ew-text);
  text-align: center;
}

#products .all-product-link,
.featured-products .all-product-link,
.product-accessories .all-product-link,
.featured-products a.all-product-link.h4 {
  float: right;
  margin-top: 10px;
  margin-bottom: 0;
  clear: both;
  font-weight: 500 !important;
  font-size: 16px;
  text-transform: none !important;
  color: #7a7a7a;
}

.featured-products .all-product-link:hover,
#products .all-product-link:hover,
.product-accessories .all-product-link:hover {
  color: var(--ew-primary);
}

.featured-products .all-product-link .ew-icon,
#products .all-product-link .ew-icon,
.product-accessories .all-product-link .ew-icon {
  margin-left: 0.125rem;
  vertical-align: middle;
}

.section-title {
  margin-bottom: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.125rem;
  color: var(--ew-text);
  text-align: center;
}

.page-home-title { display: none; }

/* ── Product grid (Classic miniature) ── */
.products {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.40625rem;
  margin-right: -0.40625rem;
}

.product-miniature {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0 0.40625rem;
}

.product-miniature .thumbnail-container {
  position: relative;
  width: 100%;
  overflow: visible;
  background: var(--ew-bg);
}

.product-miniature .product-thumbnail {
  display: block;
  position: relative;
}

.product-miniature .product-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
  padding: 0.5rem;
}

.product-miniature .product-description {
  position: relative;
  padding: 0.25rem 0.25rem 0.7rem;
  background: var(--ew-bg);
}

.product-miniature .product-title {
  margin-top: 0.7rem;
  text-align: center;
  text-transform: capitalize;
  font-size: 1rem;
}

.product-miniature .product-title a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ew-muted);
  text-align: center;
  line-height: 1.4;
}

.product-miniature .product-title a:hover { color: var(--ew-primary); }

/* ── Category page ── */
.block-category {
  min-height: 0;
  margin-bottom: 0;
}

#js-product-list-header .h1 {
  font-size: 2rem;
  font-weight: 400;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.catalog-list-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.catalog-list-header__row .h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 10px;
}

.catalog-list-header__search {
  flex: 0 0 auto;
  width: auto;
  margin-bottom: 10px;
}

/* Wine cascade — match #search_filters / .block-categories */
.ew-wine-cascade {
  padding: 15px;
  margin-bottom: 15px;
  background: #fff;
  box-shadow: none;
}

.ew-wine-cascade__facet {
  padding-top: 0;
  border-bottom: 1px solid #f6f6f6;
}

.ew-wine-cascade__facet:last-child {
  border-bottom: 0;
}

.ew-wine-cascade__facet > .facet-title {
  display: block;
  margin: 0;
  padding: 0.85rem 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #232323;
  text-transform: uppercase;
}

.ew-wine-cascade__facet[data-tier="country"] > .facet-title {
  padding-top: 0;
}

.ew-wine-cascade__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0 0 0.85rem;
}

.ew-wine-cascade__chip {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid #f6f6f6;
  background: #fff;
  color: #232323;
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ew-wine-cascade__chip:hover {
  border-color: var(--ew-primary, #24b9d7);
  color: var(--ew-primary, #24b9d7);
  text-decoration: none;
}

.ew-wine-cascade__chip.is-selected {
  border-color: var(--ew-primary, #24b9d7);
  background: rgba(36, 185, 215, 0.08);
  color: var(--ew-primary, #24b9d7);
  font-weight: 500;
}

.ew-wine-cascade__chip.is-selected:hover {
  color: var(--ew-primary, #24b9d7);
  border-color: var(--ew-primary, #24b9d7);
}

.ew-wine-cascade__chip.is-dimmed {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.ew-wine-cascade.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* Tree mode in left column (above #search_filters) */
.ew-wine-cascade--tree {
  padding: 0;
  margin-bottom: 0;
  background: transparent;
}

.ew-wine-cascade--tree .block-categories {
  margin-bottom: 1rem;
}

/* Expandable catalog tree — match admin .ew-catalog-tree__list / __children */
.ew-wine-cascade--expand .ew-wine-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ew-wine-cascade--expand .ew-wine-tree__item,
.ew-wine-cascade--expand .category-sub-menu .ew-wine-tree__item[data-depth="0"] {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.ew-wine-cascade--expand .ew-wine-tree__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.ew-wine-cascade--expand .ew-wine-tree__link {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  padding: 0.25rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ew-text, #363a41);
}

.ew-wine-cascade--expand .ew-wine-tree__link:hover {
  background: #25b9d7;
  color: #fff;
}

.ew-wine-cascade--expand .ew-wine-tree__link.active,
.ew-wine-cascade--expand .block-categories a.ew-wine-tree__link.active,
.ew-wine-cascade--expand .block-categories a.category-sub-link.active {
  background: #25b9d7;
  color: #fff;
  font-weight: 600;
}

.ew-wine-cascade--expand .ew-wine-tree__item--all .ew-wine-tree__link {
  font-weight: 600;
}

.ew-wine-cascade--expand .ew-wine-tree__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #6c868e;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ew-wine-cascade--expand .ew-wine-tree__toggle:hover {
  background: #f0f0f0;
  color: #363a41;
}

.ew-wine-cascade--expand .ew-wine-tree__chevron {
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-left: -1px;
}

.ew-wine-cascade--expand .ew-wine-tree__item.is-open > .ew-wine-tree__row .ew-wine-tree__chevron {
  transform: rotate(45deg);
  margin-top: -2px;
}

.ew-wine-cascade--expand .ew-wine-tree__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
}

.ew-wine-cascade--expand .ew-wine-tree > .ew-wine-tree__item > .ew-wine-tree__list,
.ew-wine-cascade--expand .ew-wine-tree__children {
  position: relative;
  margin-left: 0.55rem;
  padding-left: 0.75rem;
  border-left: 0;
}

.ew-wine-cascade--expand .ew-wine-tree__children[hidden] {
  display: none !important;
}

/*
 * Prestashop Classic .block-categories breaks admin-style L rails:
 * - depth≥2 ::before { content: "-" }
 * - depth=1 margin-bottom
 * - nested padding-left
 * - category-sub-menu margin-top
 * Match admin .ew-catalog-tree / .ew-product-catalog-picker__tree.
 */
.ew-wine-cascade--expand .block-categories .category-sub-menu {
  margin-top: 0;
}

.ew-wine-cascade--expand .block-categories .category-sub-menu .ew-wine-tree__item,
.ew-wine-cascade--expand .block-categories .category-sub-menu li[data-depth],
.ew-wine-cascade--expand .block-categories .category-sub-menu li[data-depth="0"],
.ew-wine-cascade--expand .block-categories .category-sub-menu li[data-depth="1"],
.ew-wine-cascade--expand .block-categories .category-sub-menu li:not([data-depth="0"]):not([data-depth="1"]) {
  display: block;
  flex-wrap: unset;
  align-items: unset;
  margin: 0;
  margin-bottom: 0;
  padding: 0;
  padding-left: 0;
  position: relative;
}

.ew-wine-cascade--expand .block-categories .category-sub-menu .ew-wine-tree__item::before,
.ew-wine-cascade--expand .block-categories .category-sub-menu li[data-depth]::before,
.ew-wine-cascade--expand .block-categories .category-sub-menu li:not([data-depth="0"]):not([data-depth="1"])::before {
  content: none;
  margin: 0;
  margin-right: 0;
  border: 0;
}

.ew-wine-cascade--expand .block-categories .ew-wine-tree__children > .ew-wine-tree__item {
  position: relative;
}

.ew-wine-cascade--expand .block-categories .ew-wine-tree__children > .ew-wine-tree__item::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0;
  bottom: 0;
  margin: 0;
  border: 0;
  border-left: 1px solid #c5c5c5;
  pointer-events: none;
}

/* No stub above the first branch (same as admin catalog tree). */
.ew-wine-cascade--expand .block-categories .ew-wine-tree__children > .ew-wine-tree__item:first-child::before {
  top: 0.9rem;
}

/*
 * Leaf last-child → L corner.
 * has-children last-child → keep rail through the whole block (admin Country-style).
 */
.ew-wine-cascade--expand .block-categories .ew-wine-tree__children > .ew-wine-tree__item:last-child:not(.has-children)::before {
  bottom: auto;
  height: 0.9rem;
}

.ew-wine-cascade--expand .block-categories .ew-wine-tree__children > .ew-wine-tree__item:last-child.has-children::before {
  top: 0.9rem;
  bottom: 0;
  height: auto;
}

.ew-wine-cascade--expand .block-categories .ew-wine-tree__children > .ew-wine-tree__item:first-child:last-child:not(.has-children)::before {
  content: none;
}

.ew-wine-cascade--expand .block-categories .ew-wine-tree__children > .ew-wine-tree__item::after {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.9rem;
  width: 0.65rem;
  border-top: 1px solid #c5c5c5;
  pointer-events: none;
}

.ew-wine-cascade--expand .ew-wine-tree__item[data-depth="0"] > .ew-wine-tree__row {
  display: flex;
}

/* Drill hub (Country / Region / Type) — match admin .ew-catalog-drill */
.ew-wine-cascade--drill .block-categories {
  margin-bottom: 0;
  padding: 0;
}

.ew-wine-drill__title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #6c868e;
}

.ew-wine-drill__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ew-wine-drill__item {
  margin: 0.1rem 0;
}

.ew-wine-drill__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: 3px;
  color: #363a41;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.ew-wine-drill__link:hover,
.ew-wine-drill__link.is-active {
  background: #25b9d7;
  color: #fff;
  text-decoration: none;
}

.ew-wine-drill__item--back .ew-wine-drill__link {
  font-weight: 600;
}

.ew-wine-drill__chevron {
  margin-right: 0.25rem;
}

#search_filters_wrapper.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.catalog-product-filter__input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--ew-border);
  border-radius: 0;
  background-color: #fff;
  color: var(--ew-text);
  font-size: 0.875rem;
  text-align: left;
  outline: none;
}

.catalog-product-filter__input::placeholder {
  color: #9b9b9b;
}

.catalog-product-filter__input:focus {
  border-color: var(--ew-primary);
}

.catalog-product-filter-empty {
  margin: 0 0 1rem;
}

.ew-catalog-autocomplete {
  position: fixed;
  z-index: 10050;
  display: none;
  max-height: 18rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  border: 1px solid var(--ew-border);
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
}

.ew-catalog-autocomplete.is-open {
  display: block;
}

.ew-catalog-autocomplete .ui-menu-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ew-catalog-autocomplete .ui-menu-item a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  margin: 0;
  border: none;
  border-radius: 0;
  outline: none;
  color: var(--ew-text);
  text-decoration: none;
  background: transparent;
}

.ew-catalog-autocomplete .ui-menu-item a:hover,
.ew-catalog-autocomplete .ui-menu-item a.ui-state-focus,
.ew-catalog-autocomplete .ui-menu-item a.ui-state-active {
  border: none;
  margin: 0;
  background: rgba(36, 185, 215, 0.08);
  color: var(--ew-primary);
}

.ew-catalog-autocomplete .autocomplete-thumbnail {
  flex: 0 0 auto;
  width: 50px;
  height: auto;
  object-fit: contain;
}

.ew-catalog-autocomplete .product {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.category-description {
  margin-bottom: 1.5rem;
  color: var(--ew-text-soft);
  line-height: 1.6;
}

.page-category #left-column {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  body.layout-left-column #wrapper .container > .row.ew-left-column-row {
    align-items: flex-start;
  }

  #left-column.ew-left-column-sticky.is-sticky-active {
    position: sticky;
    align-self: flex-start;
    z-index: 5;
  }
}

@media (max-width: 767px) {
  #category.page-category #left-column #search_filters_wrapper {
    margin-left: 0;
    margin-right: 0;
  }

  #category.page-category #left-column #search_filters {
    padding: 15px !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
  }

  #category.page-category #left-column #search_filters .facet {
    padding-top: 0.625rem !important;
    border-bottom: none !important;
  }

  #category.page-category #left-column #search_filters .facet .title.hidden-md-up {
    display: none !important;
  }

  #category.page-category #left-column #search_filters .facet .facet-title.hidden-sm-down {
    display: block !important;
  }

  #category.page-category #left-column #search_filters .facet .collapse,
  #category.page-category #left-column #search_filters .facet .collapse.in,
  #category.page-category #left-column #search_filters .facet .collapse.show {
    display: block !important;
  }

  #category.page-category #left-column #search_filters .facet .h6 {
    padding: 0 !important;
  }

  #category.page-category #left-column #search_filters .facet ul li {
    padding: 0 !important;
    border-top: none !important;
  }

  #category.page-category #left-column #search_filters .facet .facet-label a {
    margin-top: 0 !important;
  }

  .page-category #search_filter_controls,
  .page-category .filter-button {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .page-category #js-product-list .products > .js-product {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }
}

.page-category #products {
  margin-top: 0;
}

.page-category .products-selection,
#js-product-list-top.products-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: -0.40625rem;
  margin-right: -0.40625rem;
  padding-left: 0.40625rem;
  padding-right: 0.40625rem;
  margin-bottom: 1rem;
  line-height: normal;
}

.page-category .products-selection__count,
.page-category .products-selection__count p {
  margin: 0;
}

.page-category .products-selection__count {
  flex: 1 1 auto;
  min-width: 0;
}

.page-category .sort-by-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.page-category .sort-by-row .sort-by {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-category .products-selection__showing {
  flex: 0 0 100%;
  width: 100%;
  margin: 0.5rem 0 0;
  text-align: center;
}

.products-sort-order {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.products-sort-order .catalog-sort__dropdown {
  position: relative;
  width: auto;
}

.page-category .products-sort-order .catalog-sort__trigger {
  width: auto;
}

.catalog-sort__dropdown.is-open .catalog-sort__trigger {
  border-color: var(--ew-primary);
  box-shadow: 0 0 0 3px rgba(36, 185, 215, 0.12);
}

.page-category .products-sort-order .catalog-sort__trigger {
  min-width: 10.5rem;
}

.catalog-sort__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ew-border);
  border-radius: 0;
  background: #fff;
  color: var(--ew-text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-sort__trigger:hover {
  border-color: var(--ew-primary);
}

.catalog-sort__current {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-sort__chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  opacity: 0.65;
}

.catalog-sort__dropdown.is-open .catalog-sort__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.catalog-sort__menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  border: 1px solid var(--ew-border);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.catalog-sort__menu[hidden] {
  display: none;
}

.catalog-sort__option {
  margin: 0;
}

.catalog-sort__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0;
  color: var(--ew-text);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.catalog-sort__link:hover {
  background: rgba(36, 185, 215, 0.08);
  color: var(--ew-primary);
}

.catalog-sort__link.is-active {
  background: rgba(36, 185, 215, 0.12);
  color: var(--ew-primary);
  font-weight: 600;
}

.catalog-sort__check {
  font-size: 0.8125rem;
  line-height: 1;
}

.page-category #js-product-list .pagination {
  display: block;
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ew-border);
}

.catalog-pagination__summary {
  color: var(--ew-text-muted, #6c757d);
  font-size: 0.9375rem;
}

.catalog-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  order: 2;
  margin-left: auto;
}

.catalog-pagination__per-page {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  order: 3;
  margin-left: 1.25rem;
}

.catalog-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-pagination__item {
  margin: 0;
}

.catalog-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid var(--ew-border);
  border-radius: 0;
  background: #fff;
  color: var(--ew-text);
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

a.catalog-pagination__link:hover {
  border-color: var(--ew-primary);
  color: var(--ew-primary);
  background: rgba(36, 185, 215, 0.06);
}

.catalog-pagination__item.is-active .catalog-pagination__link {
  border-color: var(--ew-primary);
  background: var(--ew-primary);
  color: #fff;
  font-weight: 600;
}

.catalog-pagination__item.is-disabled .catalog-pagination__link {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.catalog-pagination__item--ellipsis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 2.25rem;
  color: var(--ew-text-muted, #6c757d);
}

.catalog-pagination__link--prev,
.catalog-pagination__link--next {
  font-size: 1.125rem;
  font-weight: 600;
}

.catalog-pagination__per-page-label {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ew-text-muted, #6c757d);
  white-space: nowrap;
}

.catalog-pagination__per-page-select {
  min-width: 4.5rem;
  height: 2.25rem;
  padding: 0 1.75rem 0 0.65rem;
  border: 1px solid var(--ew-border);
  border-radius: 0;
  background-color: #fff;
  font-size: 0.875rem;
  color: var(--ew-text);
  cursor: pointer;
}

@media (max-width: 991px) {
  .catalog-pagination {
    flex-wrap: wrap;
    align-items: center;
  }

  .catalog-pagination__summary {
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
  }

  .catalog-pagination__per-page {
    order: 2;
    margin-left: auto;
  }

  .catalog-pagination__controls {
    flex: 0 0 100%;
    order: 3;
    margin-left: 0;
    justify-content: center;
  }

  .catalog-pagination__pages {
    justify-content: center;
  }
}

.page-category #js-product-list .pagination .col-md-4,
.page-category #js-product-list .pagination .col-md-6 {
  padding-left: 0;
  padding-right: 0;
}

.page-category #js-product-list .up {
  margin-top: 1rem;
}

.block-categories .category-sub-link.active {
  color: var(--ew-primary);
  font-weight: 500;
}

/* Expand tree: keep white text on cyan active pill (not primary-on-primary). */
.ew-wine-cascade--expand .block-categories .category-sub-link.active,
.ew-wine-cascade--expand .block-categories .ew-wine-tree__link.active {
  color: #fff;
  font-weight: 600;
}

.ew-wine-cascade--expand .block-categories .ew-wine-tree__link:hover,
.ew-wine-cascade--expand .block-categories .ew-wine-tree__link.active:hover {
  color: #fff;
}

.page-category .block-categories {
  padding: 15px;
  margin-bottom: 15px;
}

.page-category .block-categories .category-top-menu {
  margin-bottom: 0;
}

.block-categories .category-sub-menu li[data-depth="0"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.block-categories .category-sub-menu li[data-depth="0"] > a {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.block-categories .category-sub-menu li[data-depth="0"] > .collapse {
  flex: 0 0 100%;
  width: 100%;
}

.block-categories .collapse-icons {
  position: static;
  flex: 0 0 auto;
  padding: 0.25rem 0;
  cursor: pointer;
}

.block-categories .collapse-icons .ew-collapse-arrow {
  display: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  vertical-align: middle;
}

.block-categories .collapse-icons .ew-collapse-arrow--right {
  transform: rotate(-45deg) translateX(-1px);
}

.block-categories .collapse-icons .ew-collapse-line {
  display: none;
  width: 0.625rem;
  height: 0;
  border-bottom: 2px solid currentColor;
  vertical-align: middle;
}

/* 收起：向右；展開：橫線 */
.block-categories .collapse-icons .add {
  display: inline-block;
}

.block-categories .collapse-icons .remove {
  display: none;
}

.block-categories .collapse-icons[aria-expanded="true"] .add {
  display: none;
}

.block-categories .collapse-icons[aria-expanded="true"] .remove {
  display: inline-block;
}

.block-categories .collapse-icons .ew-icon {
  display: none !important;
}

.scroll-box-arrows .ew-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
  color: #7a7a7a;
  cursor: pointer;
}

.scroll-box-arrows .ew-icon svg {
  width: 2rem;
  height: 2rem;
}

.scroll-box-arrows .ew-icon.left {
  float: left;
}

.scroll-box-arrows .ew-icon.right {
  float: right;
}

#search_filters .facet .facet-label {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  text-align: left;
}

#search_filters .facet .facet-label .custom-checkbox {
  flex: 0 0 auto;
}

#search_filters .facet .facet-label .custom-checkbox input[type="checkbox"] + span {
  margin-right: 0;
}

#search_filters .facet .facet-label a {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  margin: 0 !important;
  padding: 0;
}

.custom-checkbox input[type="checkbox"] + span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.custom-checkbox .ew-icon.checkbox-checked {
  width: 0.875rem;
  height: 0.875rem;
  margin: 0;
  color: #232323;
}

.custom-checkbox .ew-icon.checkbox-checked svg {
  width: 0.875rem;
  height: 0.875rem;
}

.catalog-price-filter__inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.catalog-price-filter__field {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ew-border);
  background: #fff;
}

.catalog-price-filter__prefix {
  padding-left: 0.5rem;
  color: var(--ew-text-muted, #6c757d);
  font-size: 0.875rem;
}

.catalog-price-filter__input {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.5rem 0.45rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--ew-text);
  font-size: 0.875rem;
  line-height: 1.3;
}

.catalog-price-filter__input:focus {
  outline: none;
}

.catalog-price-filter__sep {
  color: var(--ew-text-muted, #6c757d);
  font-size: 0.875rem;
}

.catalog-price-slider {
  position: relative;
  height: 1.25rem;
  margin: 0.25rem 0.35rem 0.5rem;
  touch-action: none;
}

.catalog-price-slider.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.catalog-price-slider__track,
.catalog-price-slider__range {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
}

.catalog-price-slider__track {
  left: 0;
  right: 0;
  background: var(--ew-border);
}

.catalog-price-slider__range {
  background: var(--ew-primary);
}

.catalog-price-slider__handle {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  padding: 0;
  border: 2px solid var(--ew-primary);
  border-radius: 0;
  background: #fff;
  transform: translateY(-50%);
  cursor: grab;
}

.catalog-price-slider.is-dragging .catalog-price-slider__handle {
  cursor: grabbing;
}

.catalog-price-slider__handle:focus {
  outline: 2px solid rgba(36, 185, 215, 0.35);
  outline-offset: 2px;
}

#category.page-category #left-column #search_filters,
#category.page-category #left-column #search_filters_brands,
#category.page-category #left-column #search_filters_suppliers,
.page-category #search_filters,
.page-category #search_filters_brands,
.page-category #search_filters_suppliers {
  padding: 15px;
  margin-bottom: 0;
}

/* ── Product detail ── */
#main { padding-top: 0.5rem; }

.product-container { margin-top: 0.5rem; }

.product-container h1 {
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: capitalize;
  margin-bottom: 0.75rem;
}

.product-cover {
  position: relative;
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
}

.product-cover__zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.product-cover__zoom:focus-visible {
  outline: 2px solid #24b9d7;
  outline-offset: 2px;
}

.product-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.ew-product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.ew-product-lightbox[hidden] {
  display: none !important;
}

.ew-product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.72);
  cursor: pointer;
}

.ew-product-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: min(96vw, 960px);
  max-height: 92vh;
  margin: 0;
}

.ew-product-lightbox__stage {
  overflow: hidden;
  max-height: calc(92vh - 3.5rem);
  background: var(--ew-bg, #fff);
  box-shadow: var(--ew-shadow-md, 0 4px 16px rgb(0 0 0 / 0.08));
  touch-action: none;
}

.ew-product-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 3.5rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: default;
}

.ew-product-lightbox.is-zoomed .ew-product-lightbox__img {
  cursor: grab;
}

.ew-product-lightbox.is-dragging .ew-product-lightbox__img {
  cursor: grabbing;
  transition: none;
}

.ew-product-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ew-radius, 4px);
  background: var(--ew-bg, #fff);
  color: var(--ew-text, #232323);
  cursor: pointer;
  box-shadow: var(--ew-shadow-sm, 0 2px 5px 0 rgb(0 0 0 / 0.11));
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ew-product-lightbox__close .ew-icon {
  display: inline-flex;
  line-height: 1;
}

.ew-product-lightbox__close .ew-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ew-product-lightbox__close:hover,
.ew-product-lightbox__close:focus-visible {
  color: var(--ew-primary, #24b9d7);
  background: var(--ew-bg-soft, #f6f6f6);
  outline: none;
}

.ew-product-lightbox__zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ew-product-lightbox__zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ew-radius, 4px);
  background: var(--ew-primary, #24b9d7);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ew-product-lightbox__zoom-btn .ew-icon {
  display: inline-flex;
  line-height: 1;
}

.ew-product-lightbox__zoom-btn .ew-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.ew-product-lightbox__zoom-btn:hover,
.ew-product-lightbox__zoom-btn:focus-visible {
  background: var(--ew-primary-dark, #1a9bb5);
  outline: none;
}

.ew-product-lightbox__zoom-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

body.ew-product-lightbox-open {
  overflow: hidden;
}

body.ew-product-lightbox-open .ew-fixed-menu-icon,
body.ew-product-lightbox-open .ew-float-actions,
body.ew-product-lightbox-open .ew-scroll-top,
body.ew-product-lightbox-open #menu-icon {
  visibility: hidden !important;
  pointer-events: none !important;
}

.product-page .page-content {
  position: relative;
}

.product-page .js-qv-mask {
  margin-top: 0.75rem;
}

.product-page .product-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-page .product-images .thumb {
  width: 98px;
  height: 98px;
  object-fit: contain;
  border: 1px solid var(--ew-border);
  cursor: pointer;
}

.product-page .product-images .thumb.selected,
.product-page .product-images .thumb:hover {
  border-color: var(--ew-primary);
}

.product-page .product-prices {
  margin-bottom: 1rem;
}

.product-page .product-prices .regular-price {
  text-decoration: line-through;
  color: var(--ew-muted);
  margin-right: 0.5rem;
}

.product-page .product-price.has-discount .current-price-value {
  color: var(--ew-primary);
}

.product-page .product-information {
  margin-top: 0.5rem;
}

.product-page .product-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ew-text-soft);
  margin-bottom: 1rem;
}

.product-page .product-add-to-cart {
  margin-bottom: 1.25rem;
}

.product-page .product-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.product-page .product-quantity .qty input {
  width: 4.5rem;
}

/* TouchSpin arrows without Material Icons font */
.bootstrap-touchspin .input-group-btn-vertical i.material-icons,
.bootstrap-touchspin .input-group-btn-vertical .touchspin-up,
.bootstrap-touchspin .input-group-btn-vertical .touchspin-down {
  font-family: var(--ew-font) !important;
  font-size: 9px !important;
  font-style: normal;
  font-weight: 700;
  width: auto;
  height: auto;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-feature-settings: normal;
  font-feature-settings: normal;
}

.bootstrap-touchspin .input-group-btn-vertical .touchspin-up::before,
.bootstrap-touchspin .input-group-btn-vertical .touchspin-up::after,
.bootstrap-touchspin .input-group-btn-vertical .touchspin-down::before,
.bootstrap-touchspin .input-group-btn-vertical .touchspin-down::after {
  font-family: var(--ew-font) !important;
  font-size: 9px;
  font-weight: 700;
  color: var(--ew-text);
  speak: none;
}

.bootstrap-touchspin .input-group-btn-vertical .touchspin-up::after {
  content: "▲";
}

.bootstrap-touchspin .input-group-btn-vertical .touchspin-down::after {
  content: "▼";
}

.product-page .tabs {
  margin-top: 1.5rem;
}

.product-page .product-features .data-sheet {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.product-page .product-features .data-sheet dt {
  margin: 0;
  font-weight: 600;
}

.product-page .product-features .data-sheet dd {
  margin: 0;
}

.product-page .featured-products {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ew-border);
}

.product-page .featured-products > h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-thumbnails img {
  border: 1px solid var(--ew-border);
  padding: 2px;
  cursor: pointer;
}

.product-thumbnails img:hover { border-color: var(--ew-primary); }

.page-content.product-description,
.product-short {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ew-text-soft);
}

/* ── Homepage slider (ps_imageslider style) ── */
#carousel,
.home-slider .carousel {
  margin-bottom: 1.75rem;
}

.page-home #carousel {
  margin-bottom: 0;
}

#carousel .carousel-item img,
.home-slider .carousel-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ── Categories list on home ── */
.home-categories { margin-bottom: 2rem; }

.home-categories ul li a {
  color: var(--ew-text);
  font-size: 0.9375rem;
  padding: 0.2rem 0;
  display: inline-block;
}

.home-categories ul li a:hover { color: var(--ew-primary); }

/* ── CMS ── */
.page-content.page-cms,
.cms-page .page-content {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.cms-content h1, .cms-content h2, .cms-content h3 {
  color: var(--ew-text);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.cms-content a { text-decoration: underline; }

/* ── Contact ── */
.page-contact .page-content.card {
  border: 1px solid var(--ew-border);
  background: var(--ew-bg);
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: none;
}

.page-contact .ew-contact-info {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ew-border);
}

.page-contact .ew-contact-info-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ew-text-soft);
}

.page-contact .ew-contact-info-body > *:first-child {
  margin-top: 0;
}

.page-contact .ew-contact-info-body > *:last-child {
  margin-bottom: 0;
}

.page-contact .ew-contact-info-body h1,
.page-contact .ew-contact-info-body h2,
.page-contact .ew-contact-info-body h3,
.page-contact .ew-contact-info-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--ew-text);
}

.page-contact .ew-contact-info-body p {
  margin: 0 0 0.85rem;
}

.page-contact .ew-contact-info-body a {
  color: var(--ew-primary-dark);
  text-decoration: none;
}

.page-contact .ew-contact-info-body a:hover {
  text-decoration: underline;
}

.page-contact .ew-contact-info-body ul,
.page-contact .ew-contact-info-body ol {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.page-contact .ew-contact-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.55rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.page-contact .ew-contact-info dt {
  margin: 0;
  color: var(--ew-muted);
  font-weight: 500;
}

.page-contact .ew-contact-info dd {
  margin: 0;
  color: var(--ew-text-soft);
}

.page-contact .ew-contact-info dd a {
  color: var(--ew-primary-dark);
  text-decoration: none;
}

.page-contact .ew-contact-info dd a:hover {
  text-decoration: underline;
}

.page-contact .ew-contact-info .ew-contact-address {
  white-space: pre-line;
}

.page-contact .ew-contact-compose h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.page-contact .ew-mail-compose {
  border: 1px solid var(--ew-border);
  background: linear-gradient(180deg, #fafbfc 0%, var(--ew-bg) 12rem);
  border-radius: var(--ew-radius);
  overflow: hidden;
}

.page-contact .ew-mail-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ew-border);
  margin: 0;
}

.page-contact .ew-mail-row label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ew-muted);
  text-transform: none;
}

.page-contact .ew-mail-row input,
.page-contact .ew-mail-row select,
.page-contact .ew-mail-body {
  width: 100%;
  border: 1px solid var(--ew-border);
  background: var(--ew-bg);
  border-radius: var(--ew-radius);
  padding: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  color: var(--ew-text);
  font-family: var(--ew-font);
}

.page-contact .ew-mail-row input:focus,
.page-contact .ew-mail-row select:focus,
.page-contact .ew-mail-body:focus {
  outline: 0;
  border-color: var(--ew-primary);
  box-shadow: 0 0 0 2px var(--ew-primary-light);
}

.page-contact .ew-mail-body-wrap {
  padding: 1rem;
  border-bottom: 1px solid var(--ew-border);
}

.page-contact .ew-mail-body-wrap > label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ew-muted);
}

.page-contact .ew-mail-body {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.55;
}

.page-contact .ew-inquiry-products-block {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--ew-border);
  border-radius: var(--ew-radius);
  background: var(--ew-bg-soft);
}

.page-contact .ew-inquiry-products-label {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ew-text);
}

.page-contact .ew-inquiry-count {
  font-weight: 500;
  color: var(--ew-muted);
}

.page-contact .ew-inquiry-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-contact .ew-inquiry-product {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--ew-border);
  background: var(--ew-bg);
  border-radius: var(--ew-radius);
}

.page-contact .ew-inquiry-product img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  background: var(--ew-bg);
  border: 1px solid var(--ew-border);
  border-radius: 2px;
}

.page-contact .ew-inquiry-product-meta {
  min-width: 0;
}

.page-contact .ew-inquiry-product-name {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ew-text);
  line-height: 1.35;
}

.page-contact .ew-inquiry-product-name a {
  color: inherit;
  text-decoration: none;
}

.page-contact .ew-inquiry-product-name a:hover {
  color: var(--ew-primary-dark);
  text-decoration: underline;
}

.page-contact .ew-inquiry-product-qty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ew-muted);
  line-height: 1.45;
}

.page-contact .ew-inquiry-product-price-sep {
  margin: 0 0.2rem;
  color: var(--ew-border-dark);
}

.page-contact .ew-inquiry-grand-total {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ew-border);
  font-size: 0.9375rem;
  color: var(--ew-text);
  text-align: right;
}

.page-contact .ew-inquiry-grand-total strong {
  font-size: 1.05rem;
}

.page-contact .ew-inquiry-remove-form {
  margin: 0;
}

.page-contact .ew-inquiry-remove-btn {
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--ew-border-dark);
  background: var(--ew-bg);
  color: var(--ew-text-soft);
  border-radius: var(--ew-radius);
  cursor: pointer;
}

.page-contact .ew-inquiry-remove-btn:hover {
  border-color: var(--ew-danger);
  color: var(--ew-danger);
  background: #fff5f5;
}

.page-contact .ew-mail-footer-fields {
  padding: 0.25rem 0 0;
}

.page-contact .ew-mail-actions {
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.page-contact .ew-mail-actions .btn {
  min-width: 8rem;
}

.page-contact .ew-mail-actions .btn-primary {
  background-color: #C82254;
  border-color: #C82254;
}

.page-contact .ew-mail-actions .btn-primary:hover,
.page-contact .ew-mail-actions .btn-primary:focus {
  background-color: #C82254;
  border-color: #C82254;
}

.page-contact .ew-contact-flash {
  margin-bottom: 1rem;
}

@media (max-width: 575px) {
  .page-contact .ew-contact-info dl,
  .page-contact .ew-mail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .page-contact .ew-inquiry-product {
    grid-template-columns: 3.5rem 1fr;
  }

  .page-contact .ew-inquiry-product img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .page-contact .ew-inquiry-remove-form {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* ── Footer ── */
#footer {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  background: var(--ew-bg);
}

.footer-before { padding: 0.5rem 0; }

.footer-container {
  background: var(--ew-bg);
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}

.footer-container .block.links h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ew-text);
  margin-bottom: 1rem;
}

.footer-container li a {
  font-size: 0.875rem;
  color: var(--ew-muted);
  line-height: 1.9;
}

.footer-container li a:hover { color: var(--ew-primary); }

.footer-container .footer-copyright {
  margin-bottom: 0;
  color: var(--ew-muted);
  font-size: 0.875rem;
}

.footer-store-text {
  font-size: 0.875rem;
  color: var(--ew-muted);
  line-height: 1.7;
}

.footer-store-image,
.footer-warning-content {
  margin-top: 0.75rem;
}

.footer-store-image img,
.footer-warning-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-store-map iframe {
  max-width: 100%;
  width: 100%;
  border: 0;
  border-radius: 4px;
}

.footer-links-col,
.footer-store-col,
.footer-warning-col {
  margin-bottom: 1.5rem;
}

/* Footer column wrappers — stack children full-width; multi-col rows stay centered */
.footer-container > .container > .row {
  justify-content: center;
}

.footer-container .links.wrapper,
.footer-container .block-contact.links.wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  padding-right: 15px !important;
  padding-left: 15px !important;
  margin-left: auto;
  margin-right: auto;
}

/* Theme .block-contact { padding-left: 1.5rem } — keep store column symmetric */
.footer-container .block-contact {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.footer-container .col-xs-12.links.wrapper,
.footer-container .col-xs-12.block-contact.links.wrapper,
.footer-container .col-md-12.links.wrapper,
.footer-container .col-md-12.block-contact.links.wrapper,
.footer-container .footer-store-col.col-xs-12,
.footer-container .footer-links-col.col-xs-12,
.footer-container .footer-warning-col.col-xs-12,
.footer-row-full > .links.wrapper,
.footer-row-full > .block-contact.links.wrapper {
  float: left;
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.footer-container .footer-store-content,
.footer-container .footer-warning-content,
.footer-container .footer-store-map,
.footer-container .footer-store-image,
.footer-container .block-contact-title,
.footer-container .links .h3,
.footer-container .links ul {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 991px) {
  .footer-container .block-contact.links.wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 767px) {
  /* Keep desktop footer layout below 768px — do not switch to theme mobile accordion/stack */
  .footer-container {
    overflow: visible;
  }

  .footer-container > .container > .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -15px;
    margin-right: -15px;
  }

  .footer-container .col-md-3.links.wrapper,
  .footer-container .col-md-3.block-contact.links.wrapper {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .footer-container .col-md-4.links.wrapper,
  .footer-container .col-md-4.block-contact.links.wrapper {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .footer-container .col-md-6.links.wrapper,
  .footer-container .col-md-6.block-contact.links.wrapper {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .footer-container .col-md-12.links.wrapper,
  .footer-container .col-md-12.block-contact.links.wrapper,
  .footer-container .col-xs-12.links.wrapper,
  .footer-container .col-xs-12.block-contact.links.wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .footer-container .links.wrapper,
  .footer-container .block-contact.links.wrapper {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

  .footer-container .links ul {
    margin-bottom: 0;
    background-color: transparent;
    padding-left: 0;
    list-style: none;
  }

  .footer-container .links ul > li {
    padding: 0;
    font-weight: normal;
    border-bottom: none;
  }

  .footer-container .links ul > li a {
    color: var(--ew-muted);
    font-weight: normal;
  }

  .footer-container .links .title {
    display: none !important;
    padding: 0;
    border-bottom: none;
    cursor: default;
  }

  .footer-container .links .collapse,
  .footer-container .footer-store-content,
  .footer-container .footer-warning-content {
    display: block !important;
    height: auto !important;
  }
}

.footer-row-full {
  width: 100%;
  justify-content: flex-start;
}

.footer-row-full .footer-store-content,
.footer-row-full .footer-warning-content {
  max-width: 100%;
  width: 100%;
}

/* ── Pagination ── */
.pagination .page-link { color: var(--ew-primary); }
.pagination .page-item.active .page-link {
  background: var(--ew-primary);
  border-color: var(--ew-primary);
}

/* ── Buttons ── */
.btn-primary {
  background-color: var(--ew-primary);
  border-color: var(--ew-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ew-primary-dark);
  border-color: var(--ew-primary-dark);
}

/* ── 404 ── */
.page-not-found { padding: 3rem 0; text-align: center; }

@media (min-width: 1200px) {
  .product-miniature .product-thumbnail img { min-height: 200px; object-fit: contain; }
}

/* --- Header / brand customizations --- */
/* Ethanol Wine storefront customizations */
#header {
  -webkit-box-shadow: none;
  box-shadow: none;
}

#header .header-nav {
  border-bottom: none;
  height: 40px;
  max-height: 40px;
  background: #C82254;
  padding: 0;
}

#header .header-nav > .container,
#header .header-nav > .container > .ew-header-nav-row {
  height: 100%;
}

#header .header-nav a,
#header .header-nav .language-selector button.btn-unstyle,
#header .header-nav .language-selector .expand-more,
#header .header-nav .ew-header-pages-selector button.btn-unstyle,
#header .header-nav .ew-header-pages-selector__label,
#header .header-nav .ew-header-pages-selector__plus {
  color: #fff;
}

#header .header-nav a:hover,
#header .header-nav .language-selector button.btn-unstyle:hover,
#header .header-nav .ew-header-pages-selector button.btn-unstyle:hover {
  color: #fff;
  opacity: 0.9;
}

#header .header-nav .language-selector .ew-icon.expand-more {
  color: #fff;
}

#header .header-nav .language-selector .dropdown-menu {
  right: 0;
  left: auto;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.12);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
  min-width: 10rem;
  max-width: calc(100vw - 1rem);
  padding: 0.25rem 0;
  box-sizing: border-box;
}

#header .header-nav .language-selector .dropdown-menu .dropdown-item {
  color: #232323;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.375rem 1rem;
}

#header .header-nav .language-selector .dropdown-menu .dropdown-item:hover,
#header .header-nav .language-selector .dropdown-menu .dropdown-item:focus {
  color: #C82254;
  background: #f7f7f7;
}

#header .header-nav .ew-header-pages-selector .dropdown-menu {
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.12);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
  min-width: 12rem;
  max-width: calc(100vw - 1rem);
  padding: 0.25rem 0;
  box-sizing: border-box;
}

#header .header-nav .ew-header-pages-selector .dropdown-menu .dropdown-item {
  color: #232323;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.375rem 1rem;
}

#header .header-nav .ew-header-pages-selector .dropdown-menu .dropdown-item:hover,
#header .header-nav .ew-header-pages-selector .dropdown-menu .dropdown-item:focus {
  color: #C82254;
  background: #f7f7f7;
}

#header .header-nav .language-selector .dropdown-menu li.current .dropdown-item {
  color: #C82254;
  font-weight: 600;
}

#header .header-nav #menu-icon .ew-icon {
  line-height: 1;
}

#header .header-banner {
  -webkit-box-shadow: none;
  box-shadow: none;
}

#header .header-top {
  -webkit-box-shadow: 0 2px 5px 0 rgb(0 0 0 / .11);
  box-shadow: 0 2px 5px 0 rgb(0 0 0 / .11);
}

.header-banner .header-banner-legal {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.5rem 1rem;
}

.header-banner .header-banner-legal p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
}

/* --- Catalog storefront overrides --- */
/* Keep catalog-only notes readable without fighting Classic layout */
.footer-catalog-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Homepage slider: keep slides/images inside page bounds (no 100vw breakout) */
#carousel.carousel,
#carousel {
  position: relative;
  left: auto;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  overflow: hidden;
}

#carousel .carousel-inner {
  height: 340px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#carousel .carousel-item {
  height: 100%;
  width: 100%;
  max-width: 100%;
}

#carousel .carousel-item figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#carousel .carousel-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

#carousel .direction .carousel-control .ew-icon {
  color: rgba(0, 0, 0, 0.65);
}

#carousel .direction .carousel-control:hover .ew-icon {
  color: rgba(0, 0, 0, 0.85);
}

#carousel .carousel-indicators {
  display: flex !important;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  width: auto;
  margin: 0;
  padding: 0;
  z-index: 10;
  list-style: none;
}

#carousel .carousel-indicators li {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  text-indent: -999px;
  overflow: hidden;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
}

#carousel .carousel-indicators li.active {
  background-color: #C82254;
  border-color: #C82254;
}

@media (max-width: 767px) {
  #carousel.carousel,
  #carousel {
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #carousel .carousel-inner {
    height: auto;
  }

  #carousel .carousel-item img {
    height: auto;
  }
}

/* Desktop-first footer; mobile header rebuilt in .ew-header-* rules above */
#footer .collapse {
  display: block !important;
  height: auto !important;
}

#footer .title.hidden-md-up {
  display: none !important;
}

#footer .h3.hidden-sm-down,
#footer .h4.hidden-sm-down {
  display: block !important;
}

/* Product cards */
.product-miniature .thumbnail-container {
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.product-miniature .thumbnail-container:hover {
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
}

.product-miniature .thumbnail-container .product-description {
  position: relative;
}

.product-miniature .thumbnail-container .product-description::after {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  content: "";
  border-top: #7a7a7a 1px solid;
  opacity: 0.25;
  display: block;
}

.product-miniature .thumbnail-container:hover .product-description::after,
.product-miniature .thumbnail-container:focus .product-description::after {
  display: block;
  opacity: 0.25;
}

.product-flags li.product-flag.popular {
  background-color: #C82254;
}

.product-flags li.product-flag.out_of_stock {
  background-color: #6c757d;
}

/*
 * Flag bleed: painted shape may extend at most 10px outside the image area,
 * and the image/flag layer stays above own description + neighboring card bodies.
 */
.product-miniature .thumbnail-top,
.product-page .product-cover {
  position: relative;
  z-index: 4;
  overflow: hidden;
  clip-path: inset(-10px);
  -webkit-clip-path: inset(-10px);
}

@supports (overflow-clip-margin: 10px) {
  .product-miniature .thumbnail-top,
  .product-page .product-cover {
    overflow: clip;
    overflow-clip-margin: 10px;
    clip-path: none;
    -webkit-clip-path: none;
  }
}

.product-miniature .thumbnail-top {
  container-type: inline-size;
  container-name: ew-product-image;
}

.product-miniature .thumbnail-top .product-thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.product-miniature .product-flags,
.featured-products .product-flags,
.product-page .product-cover .product-flags {
  position: absolute !important;
  z-index: 5;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  pointer-events: none;
  /* Positioning + cqw size both relative to this image overlay. */
  container-type: inline-size;
  container-name: ew-product-image;
}

.product-miniature .thumbnail-container {
  position: relative;
  overflow: visible;
}

.product-miniature .product-description {
  position: relative;
  z-index: 1;
}

.product-miniature .product-flags li.product-flag,
.featured-products .product-flags li.product-flag,
.product-page .product-cover .product-flags li.product-flag {
  display: contents !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

.product-miniature .product-flags li.product-flag > .product-flag__shape,
.featured-products .product-flags li.product-flag > .product-flag__shape,
.product-page .product-cover .product-flags li.product-flag > .product-flag__shape {
  position: absolute !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: fit-content !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  pointer-events: none;
  overflow: hidden !important;
  left: var(--ew-flag-x, 2%) !important;
  top: var(--ew-flag-y, 2%) !important;
  transform: translate(-50%, -50%)
    rotate(var(--ew-flag-rotate, 0deg))
    scale(var(--ew-flag-flip-x, 1), var(--ew-flag-flip-y, 1)) !important;
  padding: 0.35em 0.5em;
  line-height: 1.2;
  border-radius: var(--ew-flag-radius, 0);
  background: var(--ew-flag-bg, #24b9d7);
  color: transparent;
  font-size: calc(var(--ew-flag-text-size-num, var(--ew-flag-size-num, 12)) * 100cqw / 300) !important;
  font-weight: 700;
  text-transform: uppercase;
}

.product-miniature .product-flags li.product-flag > .product-flag__shape > .product-flag__shape-sizer,
.featured-products .product-flags li.product-flag > .product-flag__shape > .product-flag__shape-sizer,
.product-page .product-cover .product-flags li.product-flag > .product-flag__shape > .product-flag__shape-sizer {
  visibility: hidden !important;
  color: transparent !important;
  font-size: inherit !important;
  line-height: inherit !important;
  display: block !important;
}

.product-miniature .product-flags li.product-flag > .product-flag__shape > .product-flag__label,
.featured-products .product-flags li.product-flag > .product-flag__shape > .product-flag__label,
.product-page .product-cover .product-flags li.product-flag > .product-flag__shape > .product-flag__label {
  position: absolute !important;
  right: auto !important;
  bottom: auto !important;
  left: var(--ew-flag-text-x, 50%) !important;
  top: var(--ew-flag-text-y, 50%) !important;
  display: block !important;
  width: fit-content !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  background: transparent !important;
  color: var(--ew-flag-color, #fff) !important;
  font-size: inherit !important;
  font-weight: inherit;
  line-height: inherit !important;
  text-transform: inherit;
  transform: translate(
      calc(var(--ew-flag-text-x, 50%) * -1),
      calc(var(--ew-flag-text-y, 50%) * -1)
    )
    scale(var(--ew-flag-flip-x, 1), var(--ew-flag-flip-y, 1)) !important;
  z-index: 1;
  pointer-events: none;
}

.product-miniature .product-title {
  margin: 5px 0 !important;
}

.product-miniature .product-price-and-shipping {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 0.625rem;
  min-height: calc(1.2rem + 2px + 0.9rem);
}

.product-miniature .product-price-and-shipping .ew-product-price {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #232323;
}

.product-miniature .product-price-and-shipping .ew-product-regular-price {
  display: block;
  min-height: 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: #7a7a7a;
  text-decoration: line-through;
}

.product-miniature .product-price-and-shipping .ew-product-regular-price--placeholder {
  visibility: hidden;
  text-decoration: none;
}

.product-miniature .product-price-and-shipping .ew-product-price--placeholder {
  visibility: hidden;
}

/* Catalog grids: equal-height cards (homepage shelf pattern) */
#js-product-list .products,
.product-page .featured-products .products {
  align-items: stretch;
}

/* ≥1540px: list pages 4 cols; product related 5 cols */
@media (min-width: 1540px) {
  body.page-category #js-product-list .products > .js-product,
  body.page-search #js-product-list .products > .js-product,
  body.page-shelf #js-product-list .products > .js-product {
    flex: 0 0 25%;
    max-width: 25%;
    width: 25%;
  }

  .product-page .featured-products .products > .js-product {
    flex: 0 0 20%;
    max-width: 20%;
    width: 20%;
  }
}

#js-product-list .products > .js-product,
.product-page .featured-products .products > .js-product {
  display: flex;
  margin-bottom: 1.5rem;
}

#js-product-list .products > .js-product > .product-miniature,
.product-page .featured-products .products > .js-product > .product-miniature {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
}

#js-product-list .product-miniature .thumbnail-container,
.product-page .featured-products .product-miniature .thumbnail-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

#js-product-list .product-miniature .thumbnail-top,
.product-page .featured-products .product-miniature .thumbnail-top {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  /* Keep 10px flag bleed clip from base .thumbnail-top rules. */
}

#js-product-list .product-miniature .product-thumbnail,
.product-page .featured-products .product-miniature .product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#js-product-list .product-miniature .product-thumbnail img,
.product-page .featured-products .product-miniature .product-thumbnail img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
}

#js-product-list .product-miniature .product-description,
.product-page .featured-products .product-miniature .product-description {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

#js-product-list .product-miniature .product-title,
.product-page .featured-products .product-miniature .product-title {
  flex: 0 0 auto;
  min-height: calc(2 * 1.2em);
}

#js-product-list .product-miniature .product-title a,
.product-page .featured-products .product-miniature .product-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.2;
  white-space: normal;
  text-overflow: ellipsis;
}

#js-product-list .product-miniature .product-price-and-shipping,
.product-page .featured-products .product-miniature .product-price-and-shipping {
  flex: 0 0 auto;
  margin-top: auto;
}

/* Homepage shelf: 2 rows max, horizontal pages with prev/next */
.featured-products .ew-shelf-carousel {
  position: relative;
  margin-bottom: 0.5rem;
  padding: 0 2.5rem;
}

.featured-products .ew-shelf-carousel__viewport {
  /* Allow flag bleed up to 10px while still hiding off-page slides. */
  overflow: hidden;
  clip-path: inset(-10px);
  -webkit-clip-path: inset(-10px);
  width: 100%;
}

@supports (overflow-clip-margin: 10px) {
  .featured-products .ew-shelf-carousel__viewport {
    overflow: clip;
    overflow-clip-margin: 10px;
    clip-path: none;
    -webkit-clip-path: none;
  }
}

.featured-products .ew-shelf-carousel__track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: var(--ew-shelf-col-width, 220px);
  row-gap: var(--ew-shelf-row-gap, 7px);
  column-gap: var(--ew-shelf-col-gap, 14px);
  align-items: stretch;
  width: max-content;
  will-change: transform;
  transition: transform 0.35s ease;
}

.featured-products .ew-shelf-carousel__item {
  display: flex;
  min-width: 0;
  align-self: stretch;
}

.featured-products .ew-shelf-carousel .ew-shelf-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 !important;
  float: none;
}

.featured-products .ew-shelf-carousel .ew-shelf-card .product-miniature,
.featured-products .ew-shelf-carousel .ew-shelf-card .thumbnail-container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-bottom: 0 !important;
  padding: 0;
}

.featured-products .ew-shelf-carousel .ew-shelf-card .thumbnail-top {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Keep 10px flag bleed clip from base .thumbnail-top rules. */
}

.featured-products .ew-shelf-carousel .ew-shelf-card .product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.featured-products .ew-shelf-carousel .ew-shelf-card .product-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0.5rem;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

.featured-products .ew-shelf-carousel .ew-shelf-card .product-description {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0.35rem 0.625rem 0.65rem;
}

.featured-products .ew-shelf-carousel .ew-shelf-card .product-title {
  flex: 0 0 auto;
  min-height: calc(2 * 1.2em);
  margin: 5px 0 !important;
}

.featured-products .ew-shelf-carousel .ew-shelf-card .product-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.2;
  white-space: normal;
  text-overflow: ellipsis;
}

.featured-products .ew-shelf-carousel .ew-shelf-card .product-price-and-shipping {
  flex: 0 0 auto;
  margin-top: auto;
}

.featured-products .ew-shelf-carousel__nav {
  position: absolute;
  top: var(--ew-shelf-nav-top, 50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
  color: rgb(0 0 0 / 0.65);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, box-shadow 0.2s ease, top 0.2s ease;
}

.featured-products .ew-shelf-carousel__nav:hover:not(:disabled),
.featured-products .ew-shelf-carousel__nav:focus-visible:not(:disabled) {
  color: rgb(0 0 0 / 0.85);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.2);
}

.featured-products .ew-shelf-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.featured-products .ew-shelf-carousel__nav--prev {
  left: 0;
}

.featured-products .ew-shelf-carousel__nav--next {
  right: 0;
}

@media (max-width: 575px) {
  .featured-products .ew-shelf-carousel {
    padding: 0 2rem;
  }
}

/* Spacing: use grid/flex gaps, not thumbnail-container margin (base bundle sets 1.563rem) */
.product-miniature .thumbnail-container {
  margin-bottom: 0 !important;
}

/* ── Age verification gate (also mirrored as critical inline CSS in front.php) ── */
html.ew-age-locked {
  overflow: hidden !important;
}

html.ew-age-locked body {
  overflow: hidden !important;
}

html.ew-age-locked body > main,
html.ew-age-locked .ew-fixed-menu-icon,
html.ew-age-locked .ew-float-actions,
html.ew-age-locked .ew-scroll-top {
  pointer-events: none;
  user-select: none;
}

/* Denied: solid white — hide site behind */
html.ew-age-is-denied body > main,
html.ew-age-is-denied .ew-fixed-menu-icon,
html.ew-age-is-denied .ew-float-actions,
html.ew-age-is-denied .ew-scroll-top {
  visibility: hidden;
}

.ew-age-gate,
.ew-age-denied {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 2147483000 !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  margin: 0;
}

html.ew-age-locked:not(.ew-age-is-denied) .ew-age-gate {
  display: flex !important;
}

html.ew-age-is-denied .ew-age-denied {
  display: flex !important;
}

.ew-age-gate[hidden],
.ew-age-denied[hidden] {
  display: none !important;
}

.ew-age-gate {
  background: rgba(18, 16, 14, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

.ew-age-denied {
  background: #fff;
}

.ew-age-gate__panel {
  width: min(32rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid #e4ddd4;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.ew-age-denied__panel {
  width: min(28rem, 100%);
  text-align: center;
  color: #1a1a1a;
}

.ew-age-gate__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 1rem;
}

.ew-age-gate__warning,
.ew-age-denied__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.ew-age-gate__warning span + span {
  margin-left: 0.5rem;
  font-size: 1.1rem;
}

.ew-age-denied__title + .ew-age-denied__title {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.ew-age-gate__copy,
.ew-age-denied__copy {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #3a3a3a;
}

.ew-age-gate__copy + .ew-age-gate__actions,
.ew-age-denied__copy + .ew-age-gate__btn {
  margin-top: 1.25rem;
}

.ew-age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ew-age-gate__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ew-age-gate__btn--yes {
  background: #1a1a1a;
  color: #fff;
}

.ew-age-gate__btn--yes:hover,
.ew-age-gate__btn--yes:focus-visible {
  background: #333;
}

.ew-age-gate__btn--no {
  background: #fff;
  border-color: #cfc7bc;
  color: #1a1a1a;
}

.ew-age-gate__btn--no:hover,
.ew-age-gate__btn--no:focus-visible {
  border-color: #1a1a1a;
}

.ew-age-gate__btn--back {
  background: #1a1a1a;
  color: #fff;
  margin-top: 1.25rem;
}

.ew-age-gate__btn--back:hover,
.ew-age-gate__btn--back:focus-visible {
  background: #333;
}

.ew-age-denied__hint {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

@media (min-width: 576px) {
  .ew-age-gate__panel {
    padding: 2rem 2rem 1.75rem;
  }

  .ew-age-gate__actions {
    flex-direction: row;
  }

  .ew-age-gate__btn--yes {
    flex: 1.4;
  }

  .ew-age-gate__btn--no {
    flex: 0.8;
  }
}
