/* Charme.life static site – additions on top of the original Dawn theme CSS */

/* ------------------------------------------------------------ Order Now button */
.order-now { margin-bottom: 1.5rem; }
.order-now__button {
  background-color: rgb(var(--color-base-accent-1));
  color: rgb(var(--color-base-solid-button-labels));
  letter-spacing: .12rem;
  font-size: 1.6rem;
  min-height: 5rem;
}
.order-now__button:hover { box-shadow: 0 0 0 .2rem rgb(var(--color-base-accent-1)); }
.order-now__note { margin: 1rem 0 0; color: rgba(var(--color-foreground), .75); }
.product-form__quantity { margin-bottom: 1.5rem; }

/* ------------------------------------------------------------ Order modal */
body.order-modal-open { overflow: hidden; }
.order-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; transition: opacity .2s ease;
}
.order-modal[hidden] { display: none; }
.order-modal.is-open { opacity: 1; }
.order-modal__overlay { display: block !important; position: absolute; inset: 0; background: rgba(18, 18, 18, .55); }
.order-modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 62rem; max-height: calc(100vh - 4rem); max-height: calc(100dvh - 4rem);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgb(var(--color-base-background-1));
  color: rgb(var(--color-base-text));
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .25);
  transform: translateY(1.5rem); transition: transform .2s ease;
}
.order-modal.is-open .order-modal__dialog { transform: none; }
.order-modal__body { padding: 3.6rem 3.6rem 3rem; }
.order-modal__close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  width: 4.4rem; height: 4.4rem; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: rgb(var(--color-base-text)); cursor: pointer;
}
.order-modal__close .icon { width: 1.6rem; height: 1.6rem; }
.order-modal__eyebrow { margin: 0 0 .4rem; }
.order-modal__title { margin: 0 0 2rem; }
.order-modal__product {
  display: flex; gap: 1.4rem; align-items: center;
  padding: 1.2rem; margin-bottom: 2rem;
  background: rgb(var(--color-base-background-2));
}
.order-modal__product-img { width: 7.2rem; height: 7.2rem; object-fit: cover; flex: 0 0 auto; }
.order-modal__product-title { margin: 0 0 .4rem; font-family: var(--font-heading-family); font-size: 1.6rem; line-height: 1.3; }
.order-modal__product-price { margin: 0; font-size: 1.4rem; }

.order-form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6rem; }
.order-form__full { grid-column: 1 / -1; }
.order-form .field { margin-bottom: 1.6rem; }
.order-form .text-area { min-height: 8rem; resize: vertical; }
.order-form .field--with-error .field__input { outline: .1rem solid #c0392b; }
.order-form__error {
  margin: 0 0 1.4rem; padding: 1rem 1.4rem;
  background: #fdecea; color: #b3261e; font-size: 1.4rem;
}
.order-form__submit { min-height: 5rem; font-size: 1.6rem; letter-spacing: .1rem; }
.order-form__submit.loading { opacity: .6; pointer-events: none; }
.order-form__hint { margin: 1.2rem 0 0; text-align: center; color: rgba(var(--color-foreground), .7); }

.order-modal__success { text-align: center; padding-top: 5rem; }
.order-modal__success .h2 { margin: 1.6rem 0 1rem; }
.order-modal__tick {
  width: 6.4rem; height: 6.4rem; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgb(var(--color-base-accent-1)); color: #fff; font-size: 3.2rem;
}
.order-modal__success-text { max-width: 44rem; margin: 0 auto 1.2rem; line-height: 1.6; }
.order-modal__success-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2rem 0 1rem; }
.order-modal__success .button--tertiary { margin-top: 1rem; }

@media screen and (max-width: 749px) {
  .order-modal { padding: 0; align-items: flex-end; }
  .order-modal__dialog { max-width: none; max-height: 92vh; max-height: 92dvh; transform: translateY(100%); }
  .order-modal__body { padding: 3.2rem 2rem 2.4rem; }
  .order-form__grid { grid-template-columns: 1fr; }
  .order-modal__success-actions .button { width: 100%; }
}

/* ------------------------------------------------------------ Contact form status */
.form-status-static { margin-bottom: 2rem; padding: 1.2rem 1.6rem; font-size: 1.5rem; line-height: 1.5; }
.form-status-static[hidden] { display: none; }
.form-status-static--success { background: rgba(var(--color-base-accent-1), .1); }
.form-status-static--error { background: #fdecea; color: #b3261e; }

/* ------------------------------------------------------------ Static reviews (replaces Trustify widget) */
.cl-reviews { padding: 2rem 0 4rem; color: rgb(var(--color-base-text)); }
.cl-reviews__title { text-align: center; font-family: var(--font-body-family); font-weight: 700; font-size: 2.4rem; margin: 0 0 2.4rem; }
.cl-reviews__summary {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 3rem; align-items: center;
  max-width: 96rem; margin: 0 auto 3rem;
}
.cl-reviews__avg { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.cl-reviews__score { font-size: 4.8rem; font-weight: 700; line-height: 1; font-family: var(--font-body-family); }
.cl-reviews__stars, .cl-review__stars { display: inline-flex; gap: .2rem; color: #f5b301; }
.cl-reviews__count { font-size: 1.3rem; color: rgba(18, 18, 18, .7); }
.cl-reviews__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: 1.3rem; }
.cl-reviews__bars li { display: grid; grid-template-columns: 1.4rem 1.6rem 1fr 2rem; align-items: center; gap: .8rem; }
.cl-reviews__bars .cl-star { color: #121212; display: flex; }
.cl-reviews__bars .cl-star svg { width: 1.4rem; height: 1.4rem; }
.cl-bar { height: .8rem; border-radius: 1rem; background: #ececec; overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: rgb(var(--color-base-accent-1)); border-radius: 1rem; }
.cl-reviews__cta { display: flex; justify-content: center; }
.cl-reviews__btn {
  display: inline-block; padding: 1rem 2.4rem; border-radius: .4rem;
  background: #e5cfa6; color: #121212; text-decoration: none; font-size: 1.4rem;
}
.cl-reviews__btn:hover { background: #dcc191; }
.cl-reviews__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 2rem; }
.cl-review {
  position: relative; padding: 2.6rem 1.6rem 1.6rem; margin-top: 1.2rem;
  border: .1rem solid rgba(18, 18, 18, .25); border-radius: .8rem; background: #fff;
}
.cl-review__stars { position: absolute; top: -1.2rem; left: 1.4rem; padding: 0 .6rem; background: #fff; }
.cl-review__author { margin: 0 0 .8rem; font-weight: 700; font-size: 1.3rem; letter-spacing: .05rem; }
.cl-review__body { margin: 0; font-size: 1.4rem; }
@media screen and (max-width: 749px) {
  .cl-reviews__summary { grid-template-columns: 1fr; gap: 2rem; max-width: 36rem; }
}

/* ------------------------------------------------------------ Collection filters (static) */
.active-facets { display: none; }
.active-facets.has-active-static { display: flex; }
#product-grid > li[hidden] { display: none !important; }

/* ------------------------------------------------------------ Mobile fixes for original inline styles */
@media screen and (max-width: 749px) {
  /* footer columns use hard-coded inline margins on desktop */
  .footer .footer-block__heading[style],
  .footer .footer-block__details-content[style*="margin-left"] { margin-left: 0 !important; }
  .footer .footer-block-image .footer-block__details-content[style] { margin-top: 2rem !important; }
  .footer-block.grid__item { width: 100%; max-width: 100%; }
  .footer__blocks-wrapper.grid--2-col > .grid__item { width: 100%; max-width: 100%; }
  .announcement-bar__message { font-size: 1.1rem; line-height: 1.5; padding: .8rem 1.2rem; }
  .product__title { word-break: break-word; }
}
@media screen and (min-width: 750px) and (max-width: 989px) {
  .footer .footer-block__heading[style],
  .footer .footer-block__details-content[style*="margin-left"] { margin-left: 0 !important; }
}
img { max-width: 100%; }
html, body { overflow-x: clip; }
