/* Scardi 2.0 approved theme: small, isolated WordPress UX corrections.
   No edits to source Scardi 2.0 CSS, Woo checkout, prices or content. */
.boutique .b-photo-hero .b-hero-actions > a.b-button:not(.b-hero-secondary) {
  background: #fff8ed;
  color: #283228 !important;
  border-color: #fff8ed;
}
.boutique .b-photo-hero .b-hero-actions > a.b-button:not(.b-hero-secondary):hover,
.boutique .b-photo-hero .b-hero-actions > a.b-button:not(.b-hero-secondary):focus-visible {
  background: #e9ddc9;
  color: #263228 !important;
  border-color: #e9ddc9;
}
.boutique .b-photo-hero .b-hero-actions > a.b-button.b-hero-secondary {
  background: rgba(24, 33, 26, .72);
  border-color: #fff8ed;
  color: #fff8ed !important;
}
.boutique .b-photo-hero .b-hero-actions > a.b-button.b-hero-secondary:hover,
.boutique .b-photo-hero .b-hero-actions > a.b-button.b-hero-secondary:focus-visible {
  background: rgba(24, 33, 26, .94);
  color: #fff8ed !important;
}
.boutique .scardi-boutique-product-track {
  scroll-snap-type: x proximity;
  overscroll-behavior: auto;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}
.boutique .scardi-boutique-product-track .b-product-card {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.boutique .scardi-boutique-product-track .b-product-card > a.b-card-image {
  /* WordPress .b-product-card > a {height:100%} made the image 392px in a 269px card.
     Width must follow the grid card, not grow from a fixed aspect ratio at 100% height. */
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-width: 0;
  max-width: 100%;
  flex: none;
}
.boutique .scardi-boutique-product-track .b-card-image > img {
  object-fit: contain;
  -webkit-user-drag: none;
}
.scardi-chat-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  max-height: calc(100dvh - 36px);
}
.scardi-chat-dialog .scardi-chat-heading,
.scardi-chat-dialog .b-chat-notice { flex: 0 0 auto; }
.scardi-chat-dialog .b-chat {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scardi-chat-dialog .b-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.scardi-chat-dialog .b-chat-bottom {
  flex: 0 0 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 641px) and (max-width: 1024px) {
  .boutique .scardi-boutique-product-track {
    grid-auto-columns: clamp(210px, 34vw, 315px);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .boutique .b-carousel-section { padding-block: 42px 38px; }
  .boutique .b-carousel-section .b-section-head { gap: 14px; margin-bottom: 16px; }
  .boutique .b-carousel-section .b-section-head h2 {
    font-size: clamp(29px, 8vw, 35px);
    line-height: 1.12;
    overflow-wrap: break-word;
  }
  .boutique .b-carousel-section .b-section-copy { margin-top: 10px !important; }
  .boutique .b-carousel-section .b-carousel-controls { gap: 10px; }
  .boutique .b-carousel-section .b-carousel-controls > div { gap: 8px; }
  .boutique .scardi-boutique-product-track {
    grid-auto-columns: clamp(184px, 62vw, 265px);
    gap: 12px;
    padding-bottom: 12px;
    scroll-padding-inline: 0;
    scroll-behavior: auto;
  }
  .boutique .scardi-boutique-product-track .b-card-image {
    aspect-ratio: 1 / 1;
    background: #fffdf8;
  }
  .boutique .scardi-boutique-product-track .b-card-image > img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
  }
  .boutique .scardi-boutique-product-track .b-card-info { padding-top: 10px; }
  .boutique .scardi-boutique-product-track .b-card-info h3 {
    font-size: 20px;
    min-height: 0;
    line-height: 1.15;
    margin: 0 0 9px;
  }
  .boutique .scardi-boutique-product-track .b-card-price { font-size: 13px; }
  .scardi-chat-dialog[open] {
    position: fixed;
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    margin: 0 auto;
    width: calc(100% - 16px);
    height: min(76dvh, 620px);
    max-height: calc(100dvh - 28px - env(safe-area-inset-bottom));
    border-radius: 18px;
  }
  .scardi-chat-dialog .scardi-chat-heading { padding: 9px 13px; gap: 8px; }
  .scardi-chat-dialog .scardi-chat-heading h2 { font-size: 22px; }
  .scardi-chat-dialog .b-chat-notice { padding: 8px 12px; font-size: 11px; line-height: 1.4; }
  .scardi-chat-dialog .b-chat-thread { padding: 10px 12px; }
  .scardi-chat-dialog .b-chat-bubble { padding: 9px 11px; font-size: 13px; line-height: 1.48; }
  .scardi-chat-dialog .b-chat-bottom {
    max-height: min(42dvh, 245px);
    padding: 8px 11px max(8px, env(safe-area-inset-bottom));
  }
  .scardi-chat-dialog .b-chat-prompts { gap: 6px; margin: 0 0 8px; }
  .scardi-chat-dialog .b-chat-prompts button { min-height: 36px; padding: 6px 9px; font-size: 12px; }
  .scardi-chat-dialog .b-chat-composer input { min-height: 44px; }
  .scardi-chat-dialog .b-chat-composer .b-button { min-height: 44px; }
  .scardi-chat-dialog .scardi-ai-consent { padding-top: 5px; font-size: 11px; }
  body:has(.scardi-chat-dialog[open]) { overflow: hidden; }
}
@media (max-width: 360px) {
  .boutique .scardi-boutique-product-track { grid-auto-columns: 61vw; }
  .scardi-chat-dialog[open] { height: min(79dvh, 590px); }
  .scardi-chat-dialog .b-chat-bottom { max-height: 44dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .boutique .scardi-boutique-product-track { scroll-behavior: auto; }
}
