/*
 * MCigarClub v0.32.6 — UI refinement layer
 * Loaded after the legacy/site styles (and after the isolated product gallery
 * on single-product pages). This file is intentionally presentation-only.
 */

:root {
  --mc-ui-radius-sm: 10px;
  --mc-ui-radius: 14px;
  --mc-ui-radius-lg: 20px;
  --mc-ui-shadow-sm: 0 8px 24px rgba(11, 17, 32, .06);
  --mc-ui-shadow: 0 18px 44px rgba(11, 17, 32, .10);
  --mc-ui-gold-ring: rgba(201, 162, 75, .32);
}

/* ---------- Global interaction and rhythm ---------- */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #d7b55e;
  outline-offset: 3px;
}

:where(button, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { border-radius: 8px; }

.btn-gold,
.btn-dark,
.btn-ghost,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
  min-height: 44px;
}

/* ---------- Header ---------- */
header[data-header] {
  border-bottom: 1px solid rgba(201, 162, 75, .11);
}

@media (max-width: 1023px) {
  .mcigar-desktop-notice__inner {
    min-height: 30px;
    height: auto !important;
    padding-block: 6px;
    gap: 12px !important;
    font-size: 10.5px;
  }

  .mcigar-desktop-notice__inner > span {
    max-width: min(88vw, 560px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header[data-header] .mcigar-header-inner {
    height: 66px !important;
    min-height: 66px;
    gap: 8px !important;
  }

  header[data-header] [data-menu-open],
  header[data-header] .mcigar-mobile-search-trigger {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0 !important;
  }

  /* Keep the desktop search trigger out of the mobile header.
     The old generic [data-search-open] rule overrode Tailwind's hidden utility. */
  header[data-header] .mcigar-header-actions [data-search-open] {
    display: none !important;
  }

  header[data-header] .mcigar-header-logo .site-logo__image {
    width: auto;
    max-width: min(42vw, 178px);
    max-height: 42px;
  }

  header[data-header] .mcigar-header-logo .site-logo__mark {
    width: 36px;
    height: 36px;
  }

  header[data-header] .mcigar-header-logo .site-logo__text {
    font-size: 1.08rem;
  }

  header[data-header] .mcigar-header-actions {
    gap: 3px !important;
  }
}

@media (max-width: 380px) {
  .mcigar-desktop-notice__inner { font-size: 10px; }
  header[data-header] .mcigar-header-logo .site-logo__image { max-width: 132px; }
  header[data-header] .mcigar-header-logo .site-logo__text { font-size: .98rem; }
}

/* ---------- Homepage hero ---------- */
[data-hero] {
  min-height: 500px;
  max-height: 820px;
}

[data-hero] [data-hero-slide] > .container-x > div {
  max-width: 620px;
}

.mcigar-hero-cta {
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid rgba(221, 190, 116, .58);
  border-radius: 999px;
  background: rgba(8, 15, 29, .52);
  color: #f0d486;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .025em;
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

[data-hero-slide]:hover .mcigar-hero-cta {
  border-color: rgba(235, 207, 139, .9);
  background: rgba(201, 162, 75, .13);
  transform: translateY(-1px);
}

.mcigar-hero-cta svg { transition: transform .2s ease; }
[data-hero-slide]:hover .mcigar-hero-cta svg { transform: translateX(3px); }

@media (max-width: 639px) {
  [data-hero] {
    height: min(68svh, 610px) !important;
    min-height: 460px !important;
  }

  [data-hero] [data-hero-slide] > .container-x {
    align-items: flex-end !important;
    padding-bottom: 58px;
  }

  [data-hero] [data-hero-slide] > .container-x > div {
    width: 100%;
    max-width: 94%;
    padding-bottom: 0 !important;
  }

  [data-hero] h1,
  [data-hero] h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.05 !important;
  }

  [data-hero] p:not(.eyebrow) {
    max-width: 42ch !important;
    font-size: 13.5px !important;
    line-height: 1.62 !important;
  }

  .mcigar-hero-cta {
    min-height: 42px;
    margin-top: 20px;
    padding: 9px 14px;
    font-size: 12.5px;
  }
}

/* ---------- Homepage sections and cards ---------- */
.home main > section.container-x,
.home main > section > .container-x {
  scroll-margin-top: 96px;
}

.home .gold-underline::after { border-radius: 999px; }

.mcigar-home-bestsellers-grid {
  align-items: stretch;
}

.mcigar-home-bestsellers-grid > [data-reveal],
.mcigar-home-bestsellers-grid .card-dark,
.mcigar-home-bestsellers-grid .card-dark > a {
  height: 100%;
}

.mcigar-home-bestsellers-grid .card-dark {
  border-radius: var(--mc-ui-radius);
  box-shadow: 0 8px 26px rgba(11,17,32,.045);
}

.mcigar-home-bestsellers-grid .mcigar-product-card__media {
  background: linear-gradient(180deg, #fff, #fdfcf9);
}

@media (max-width: 767px) {
  .mcigar-home-bestsellers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .mcigar-home-bestsellers-grid .card-dark > a > div:first-child {
    aspect-ratio: 1 / 1;
  }

  .mcigar-home-bestsellers-grid .card-dark > a > div:first-child img {
    padding: 12px !important;
  }

  .mcigar-home-bestsellers-grid .card-dark > a > div:last-child {
    padding: 12px !important;
  }

  .mcigar-home-bestsellers-grid .card-dark > a > div:last-child > p:first-child {
    font-size: 9.5px !important;
    letter-spacing: .095em !important;
  }

  .mcigar-home-bestsellers-grid .card-dark h3 {
    min-height: 2.7em;
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .mcigar-home-bestsellers-grid .card-dark .mcigar-card-origin {
    font-size: 9.5px !important;
  }

  .mcigar-home-bestsellers-grid .card-dark .mt-auto p:first-child {
    font-size: 9.5px !important;
  }

  .mcigar-home-bestsellers-grid .card-dark .mt-auto p:last-child {
    font-size: 15px !important;
  }

  .mcigar-home-bestsellers-grid .card-dark > .absolute span {
    padding: 3px 6px !important;
    font-size: 8px !important;
  }

  .home .container-x.py-16,
  .home .container-x.lg\:py-20 {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

@media (max-width: 359px) {
  .mcigar-home-bestsellers-grid { grid-template-columns: 1fr !important; }
  .mcigar-home-bestsellers-grid .card-dark > a > div:first-child { aspect-ratio: 5 / 4; }
}

/* Brand marquee: dedicated track so the homepage motion does not depend on a generated utility class. */
.mcigar-brand-rail {
  overflow: hidden;
}
.mcigar-brand-marquee {
  --mcigar-brand-gap: clamp(40px, 6vw, 72px);
  display: flex;
  width: max-content;
  max-width: none;
  align-items: center;
  white-space: nowrap;
  animation: mcigar-brand-marquee 42s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.mcigar-brand-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--mcigar-brand-gap);
  padding-right: var(--mcigar-brand-gap);
}
.mcigar-brand-marquee a {
  flex: 0 0 auto;
  opacity: .86;
  transition: opacity .18s ease, color .18s ease;
}
.mcigar-brand-marquee a:hover { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .mcigar-brand-rail:hover .mcigar-brand-marquee,
  .mcigar-brand-rail:focus-within .mcigar-brand-marquee {
    animation-play-state: paused;
  }
}

@keyframes mcigar-brand-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Store / catalog ---------- */
.woocommerce-shop .mcigar-commerce,
.tax-product_cat .mcigar-commerce,
.tax-mcigar_strength .mcigar-commerce,
.tax-mcigar_origin .mcigar-commerce,
.tax-pa_vitola .mcigar-commerce {
  padding-bottom: 76px;
}

.mcigar-store-header {
  align-items: end;
}

.mcigar-store-header h1 {
  line-height: .98;
}

.mcigar-shop-ordering select {
  min-height: 44px;
  border-radius: 10px;
}

.mcigar-active-filters {
  gap: 10px;
}

.mcigar-active-filter {
  min-height: 34px;
  border-radius: 999px;
}

.woocommerce .mcigar-shop-results ul.products li.product {
  border-radius: var(--mc-ui-radius);
  box-shadow: 0 6px 18px rgba(11,17,32,.025);
}

.woocommerce .mcigar-shop-results ul.products li.product a img {
  background: linear-gradient(180deg, #fff, #fdfcf9);
}

.woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title {
  text-wrap: balance;
}

@media (max-width: 767px) {
  .woocommerce-shop .mcigar-commerce,
  .tax-product_cat .mcigar-commerce,
  .tax-mcigar_strength .mcigar-commerce,
  .tax-mcigar_origin .mcigar-commerce,
  .tax-pa_vitola .mcigar-commerce {
    padding-top: 26px;
    padding-bottom: 54px;
  }

  .mcigar-store-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .mcigar-store-header h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .mcigar-store-header__count {
    margin-top: 7px;
    font-size: 12.5px;
  }

  .mcigar-shop-ordering {
    width: 100%;
    margin-top: 0;
  }

  .mcigar-shop-ordering .woocommerce-ordering,
  .mcigar-shop-ordering .woocommerce-ordering select {
    width: 100%;
  }

  .mcigar-filter-toggle {
    min-height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    box-shadow: var(--mc-ui-shadow-sm);
  }

  .woocommerce .mcigar-shop-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product a img {
    aspect-ratio: 1 / 1;
    padding: 12px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand,
  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
    margin-left: 11px !important;
    margin-right: 11px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand {
    margin-top: 11px !important;
    font-size: 9.5px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.75em;
    font-size: 13px !important;
    line-height: 1.37;
  }

  .woocommerce .mcigar-shop-results .mcigar-strength-line > span:last-child,
  .woocommerce .mcigar-shop-results .mcigar-card-origin {
    font-size: 9.5px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price {
    padding-top: 10px !important;
    padding-bottom: 13px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price span {
    font-size: 9.5px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price strong {
    font-size: 15px !important;
  }

  .mcigar-product-badge {
    padding: 3px 6px !important;
    font-size: 7.8px !important;
  }

  .mcigar-active-filters {
    margin-bottom: 16px;
  }

  .mcigar-active-filters__list {
    gap: 7px;
  }

  .mcigar-active-filter {
    min-height: 36px;
    padding-inline: 11px;
  }
}

@media (max-width: 359px) {
  .woocommerce .mcigar-shop-results ul.products {
    grid-template-columns: 1fr !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product a img {
    aspect-ratio: 5 / 4;
    padding: 18px !important;
  }
}

/* ---------- Shop product cards: homepage Best Seller visual language (v0.32.4) ---------- */
/*
 * Keep WooCommerce's native loop markup/query intact and align only the visual
 * presentation inside the Shop results area. This deliberately does not fake
 * Best Seller / Featured flags for products that do not have those states.
 */
.woocommerce .mcigar-shop-results ul.products li.product {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--mc-border) !important;
  border-radius: var(--mc-ui-radius) !important;
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(11,17,32,.045) !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.woocommerce .mcigar-shop-results ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: #ddd4c3 !important;
  box-shadow: 0 20px 40px -18px rgba(11,17,32,.22) !important;
}

.woocommerce .mcigar-shop-results ul.products li.product > a.woocommerce-loop-product__link,
.woocommerce .mcigar-shop-results ul.products li.product > a.woocommerce-LoopProduct-link {
  display: flex !important;
  width: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
}

.woocommerce .mcigar-shop-results ul.products li.product a img {
  width: 100%;
  aspect-ratio: 5 / 4;
  margin: 0 !important;
  padding: 24px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mc-border) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #fff, #fdfcf9) !important;
  object-fit: contain !important;
  transition: transform .45s ease;
}

.woocommerce .mcigar-shop-results ul.products li.product:hover a img {
  transform: scale(1.055);
}

.woocommerce .mcigar-shop-results .mcigar-product-badges {
  top: 10px;
  left: 10px;
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 5px;
  max-width: calc(100% - 20px);
}

.woocommerce .mcigar-shop-results .mcigar-product-badge {
  min-height: 0;
  padding: 4px 7px !important;
  border-radius: 3px;
  font-size: 9px !important;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .075em;
}

.woocommerce .mcigar-shop-results .mcigar-product-badge--featured {
  border: 1px solid rgba(201,162,75,.6);
  background: rgba(255,255,255,.94);
  color: var(--mc-gold-dark);
}

.woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand,
.woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title,
.woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength,
.woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
  margin-left: 16px !important;
  margin-right: 16px !important;
}

.woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand {
  margin-top: 15px !important;
  margin-bottom: 4px !important;
  color: var(--mc-gold-dark);
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.7em;
  margin-top: 1px !important;
  color: var(--mc-ink);
  font-family: var(--mc-body);
  font-size: 15.5px !important;
  font-weight: 600;
  line-height: 1.35;
}

.woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength {
  margin-top: 8px !important;
  color: var(--mc-muted);
  font-size: 11px !important;
}

.woocommerce .mcigar-shop-results .mcigar-strength-line {
  min-width: 0;
  gap: 7px;
}

.woocommerce .mcigar-shop-results .mcigar-strength-dots {
  flex: 0 0 auto;
  gap: 3px;
}

.woocommerce .mcigar-shop-results .mcigar-strength-dots i {
  width: 7px;
  height: 7px;
}

.woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
  margin-top: auto !important;
  padding-top: 13px !important;
  padding-bottom: 16px !important;
  border-top: 0 !important;
}

.woocommerce .mcigar-shop-results .mcigar-product-card__price span {
  display: block;
  margin-bottom: 1px;
  color: var(--mc-muted);
  font-size: 11px !important;
}

.woocommerce .mcigar-shop-results .mcigar-product-card__price strong {
  color: var(--mc-gold-dark);
  font-size: 18px !important;
  font-weight: 650;
  line-height: 1.15;
}

.woocommerce .mcigar-shop-results .mcigar-product-card__unit {
  color: var(--mc-muted);
  font-size: .66em;
  font-weight: 500;
}

@media (max-width: 767px) {
  .woocommerce .mcigar-shop-results ul.products li.product a img {
    aspect-ratio: 1 / 1;
    padding: 12px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
    max-width: calc(100% - 12px);
  }

  .woocommerce .mcigar-shop-results .mcigar-product-badge {
    padding: 3px 6px !important;
    font-size: 8px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand,
  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand {
    margin-top: 12px !important;
    font-size: 9.5px !important;
    letter-spacing: .095em;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.7em;
    margin-top: 0 !important;
    font-size: 13px !important;
    line-height: 1.35;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength {
    margin-top: 6px !important;
    font-size: 9.5px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-strength-dots i {
    width: 5px;
    height: 5px;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
    padding-top: 9px !important;
    padding-bottom: 12px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price span {
    font-size: 9.5px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price strong {
    font-size: 15px !important;
  }
}

@media (max-width: 359px) {
  .woocommerce .mcigar-shop-results ul.products li.product a img {
    aspect-ratio: 5 / 4;
    padding: 18px !important;
  }
}

/* ---------- Product page ---------- */
.single-product .mcigar-commerce {
  padding-top: 34px;
}

.single-product .woocommerce div.product {
  gap: clamp(34px, 4.5vw, 64px);
}

.single-product .summary.entry-summary {
  padding-top: 4px;
}

.single-product .woocommerce div.product .product_title {
  max-width: 16ch;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  text-wrap: balance;
}

.single-product .mcigar-product-kicker {
  margin-bottom: 10px;
}

.single-product .mcigar-product-facts {
  gap: 9px 18px;
  margin-top: 15px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ebe5d9;
}

.single-product .woocommerce-product-details__short-description {
  margin-top: 17px;
  font-size: 14.5px;
}

.single-product .mcigar-blend-panel {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #dfe3e9;
  border-radius: 12px;
  background: #0b1120;
  box-shadow: 0 10px 26px rgba(11,17,32,.08);
}

.single-product .mcigar-blend-panel summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  color: #f2ecdd;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.single-product .mcigar-blend-panel summary svg {
  flex: 0 0 auto;
  color: #c9a24b;
  transition: transform .2s ease;
}

.single-product .mcigar-blend-panel[open] summary svg { transform: rotate(180deg); }

.single-product .mcigar-blend-panel__body {
  padding: 0 1px 1px;
}

.single-product .mcigar-blend-grid {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
}

.single-product .mcigar-blend-card {
  padding: 13px 16px;
}

.single-product .mcigar-blend-card dd {
  font-size: 12.5px;
  line-height: 1.5;
}

.single-product .mcigar-blend-aromas {
  margin: 1px 0 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
}

.single-product .variations_form,
.single-product form.cart:not(.variations_form) {
  margin-top: 24px;
}

.single-product .mcigar-vitola-option__copy,
.single-product .mcigar-packaging__copy {
  border-radius: 9px;
}

.single-product .mcigar-vitola-option__copy {
  min-height: 44px;
}

.single-product .mcigar-packaging__copy {
  min-height: 68px;
}

.single-product .quantity .qty {
  min-height: 48px;
  border-radius: 9px;
}

.single-product .single_add_to_cart_button {
  min-height: 48px !important;
  border-radius: 9px !important;
}

.single-product .mcigar-variation-facts {
  min-height: 34px;
  align-items: center;
}

@media (max-width: 767px) {
  .single-product .mcigar-commerce {
    padding-top: 22px;
    padding-bottom: 54px;
  }

  .single-product .woocommerce-breadcrumb {
    margin-bottom: 16px;
  }

  .single-product .woocommerce div.product {
    gap: 24px;
  }

  .single-product .summary.entry-summary {
    padding-top: 0;
  }

  .single-product .woocommerce div.product .product_title {
    max-width: none;
    font-size: clamp(1.85rem, 8.6vw, 2.35rem);
  }

  .single-product .mcigar-product-facts {
    align-items: flex-start;
    gap: 8px 14px;
    font-size: 11.5px;
  }

  .single-product .woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.68;
  }

  .single-product .mcigar-blend-grid {
    grid-template-columns: 1fr !important;
  }

  .single-product .mcigar-blend-card + .mcigar-blend-card {
    border-top: 1px solid rgba(255,255,255,.10);
  }

  .single-product .mcigar-packaging__options {
    grid-template-columns: 1fr 1fr;
  }

  .single-product .woocommerce-variation-add-to-cart,
  .single-product form.cart:not(.variations_form) {
    gap: 10px;
  }

  .single-product .quantity {
    min-width: 92px;
  }

  .single-product .single_add_to_cart_button {
    flex: 1 1 180px;
  }
}

@media (max-width: 420px) {
  .single-product .mcigar-packaging__options { grid-template-columns: 1fr; }
  .single-product .mcigar-vitola-options { display: grid; grid-template-columns: 1fr 1fr; }
  .single-product .mcigar-vitola-option { width: 100%; }
  .single-product .mcigar-vitola-option__copy { width: 100%; padding-inline: 9px; }
}

/* ---------- Related products ---------- */
.single-product .mcigar-brand-related > h2 {
  text-wrap: balance;
}

@media (max-width: 639px) {
  .single-product .mcigar-brand-related ul.products {
    gap: 12px !important;
  }

  .single-product .mcigar-brand-related ul.products li.product {
    border-radius: var(--mc-ui-radius-sm) !important;
  }

  .single-product .mcigar-brand-related ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
  }
}

/* ---------- Common content/support/auth pages ---------- */
.mcigar-auth-shell,
.mcigar-track-shell,
.mcigar-policy-card,
.mcigar-wholesale-page form,
.mcigar-giftcards-page form,
.page-contact form,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
  border-radius: var(--mc-ui-radius) !important;
}

.mcigar-auth-shell,
.mcigar-track-shell,
.woocommerce-account .woocommerce-MyAccount-content {
  box-shadow: 0 14px 38px rgba(0,0,0,.10);
}

.page-contact input,
.page-contact textarea,
.mcigar-wholesale-page input,
.mcigar-wholesale-page select,
.mcigar-wholesale-page textarea,
.mcigar-giftcards-page input,
.mcigar-giftcards-page select,
.mcigar-giftcards-page textarea,
.mcigar-auth-page input,
.mcigar-auth-page select {
  min-height: 46px;
}

.page-contact textarea,
.mcigar-wholesale-page textarea,
.mcigar-giftcards-page textarea { min-height: 120px; }

.mcigar-faq-answer { line-height: 1.7 !important; }

/* ---------- Footer ---------- */
footer {
  border-top-color: rgba(201,162,75,.20) !important;
}

footer a,
footer button {
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  footer .container-x {
    --mc-shell: min(100% - 30px, 1240px);
  }

  footer h4 {
    margin-bottom: 12px !important;
  }

  footer ul {
    line-height: 1.55;
  }

  footer .border-t > .container-x {
    padding-top: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* ---------- Motion/accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /*
   * The homepage brand rail is intentionally kept moving even when Android/Chrome
   * reports reduced motion. This is a slow, linear, non-flashing navigation strip
   * and restoring it prevents the rail from appearing broken on affected phones.
   */
  .mcigar-brand-rail {
    overflow: hidden;
  }
  .mcigar-brand-marquee {
    animation: mcigar-brand-marquee 42s linear infinite !important;
    transform: translate3d(0, 0, 0);
  }
  .mcigar-brand-marquee__group[aria-hidden="true"] {
    display: flex;
  }
}


/* ---------- Shop cards v0.32.5: homepage Best Seller fidelity + 3-column mobile grid ---------- */
/*
 * The shop uses WooCommerce's native loop/data, but its compact mobile card
 * presentation now mirrors the homepage Best Seller cards: brand, title,
 * strength dots + country, then a clean "από" price line. No product data is
 * duplicated or hard-coded here.
 */
@media (max-width: 767px) {
  .woocommerce .mcigar-shop-results ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product {
    min-width: 0;
    border-radius: 12px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product a img {
    aspect-ratio: 1 / 1;
    padding: 8px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-badges {
    top: 5px;
    left: 5px;
    gap: 2px;
    max-width: calc(100% - 10px);
  }

  .woocommerce .mcigar-shop-results .mcigar-product-badge {
    max-width: 100%;
    padding: 2px 4px !important;
    overflow: hidden;
    font-size: 6.8px !important;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand,
  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand {
    margin-top: 9px !important;
    margin-bottom: 3px !important;
    overflow: hidden;
    font-size: 7.8px !important;
    letter-spacing: .11em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    min-height: 3.9em;
    margin-top: 0 !important;
    overflow: hidden;
    color: var(--mc-ink);
    font-family: var(--mc-display);
    font-size: 10.8px !important;
    font-weight: 550;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength {
    min-height: 13px;
    margin-top: 5px !important;
    font-size: 7.6px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-strength-line {
    min-width: 0;
    gap: 4px;
  }

  .woocommerce .mcigar-shop-results .mcigar-strength-dots {
    gap: 2px;
  }

  .woocommerce .mcigar-shop-results .mcigar-strength-dots i {
    width: 4px;
    height: 4px;
  }

  /* On compact cards the dots already communicate strength. Give the text
     slot to the country, exactly like the homepage Best Seller cards. */
  .woocommerce .mcigar-shop-results .mcigar-card-strength-label,
  .woocommerce .mcigar-shop-results .mcigar-card-meta-separator {
    display: none !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-card-origin {
    display: block !important;
    min-width: 0;
    overflow: hidden;
    color: var(--mc-muted);
    font-size: 7.6px !important;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
    margin-top: auto !important;
    padding-top: 7px !important;
    padding-bottom: 9px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price > span {
    margin-bottom: 1px;
    font-size: 7.5px !important;
    line-height: 1.15;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price strong {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 2px;
    color: var(--mc-gold-dark);
    font-size: clamp(11px, 3.25vw, 13px) !important;
    font-weight: 650;
    line-height: 1.1;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price .woocommerce-Price-amount {
    white-space: nowrap;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__unit {
    font-size: 7px !important;
    font-weight: 500;
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  .woocommerce .mcigar-shop-results ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product a img {
    aspect-ratio: 1 / 1;
    padding: 6px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__brand,
  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__strength,
  .woocommerce .mcigar-shop-results ul.products li.product .mcigar-product-card__price {
    margin-left: 6px !important;
    margin-right: 6px !important;
  }

  .woocommerce .mcigar-shop-results ul.products li.product .woocommerce-loop-product__title {
    font-size: 9.6px !important;
  }

  .woocommerce .mcigar-shop-results .mcigar-product-card__price strong {
    font-size: 10px !important;
  }
}
