/* Theme-specific layout wrappers and plugin-safe defaults */

.boutique-content-shell {
  width: min(1200px, calc(100% - 84px));
  margin: 0 auto 40px;
}

.boutique-page-shell {
  padding: 20px 0 40px;
}

.boutique-elementor-front-page,
.boutique-elementor-page {
  position: relative;
  z-index: 1;
}

.boutique-elementor-front-page {
  padding-bottom: 24px;
}

.boutique-elementor-front-page--live {
  min-height: 40vh;
}

.boutique-elementor-front-page .elementor,
.boutique-elementor-page .elementor {
  width: 100%;
}

.boutique-elementor-front-page .elementor-section.elementor-section-boxed > .elementor-container,
.boutique-elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1320px;
}

.boutique-elementor-front-page .elementor-widget-wrap > .elementor-element,
.boutique-elementor-page .elementor-widget-wrap > .elementor-element {
  --kittydarling-widget-radius: 20px;
}

/*
 * Elementor HTML widgets wrap custom markup in extra containers.
 * For the hero collage we flatten those wrappers so the existing
 * grid selectors still apply to the actual polaroid/frame elements.
 */
.boutique-elementor-front-page .hero-photos > .elementor-element,
.boutique-elementor-front-page .hero-photos > .elementor-element > .elementor-widget-container,
.boutique-elementor-page .hero-photos > .elementor-element,
.boutique-elementor-page .hero-photos > .elementor-element > .elementor-widget-container {
  display: contents;
}

.boutique-elementor-front-page .cta-banner > .elementor-element,
.boutique-elementor-front-page .cta-banner > .elementor-element > .elementor-widget-container,
.boutique-elementor-page .cta-banner > .elementor-element,
.boutique-elementor-page .cta-banner > .elementor-element > .elementor-widget-container {
  display: contents;
}

.boutique-elementor-page--full {
  padding: 0 0 24px;
}

.boutique-elementor-page .elementor-section:first-child,
.boutique-elementor-front-page .elementor-section:first-child {
  margin-top: 0;
}

.boutique-page-shell h1,
.boutique-content-shell h1 {
  font-family: "Abril Fatface", serif;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 400;
  line-height: 1;
}

.boutique-builder-guide {
  padding: 24px 0 48px;
}

.boutique-builder-guide .boutique-content-shell {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 248, 237, 0.84);
  box-shadow: var(--card-shadow);
}

.boutique-builder-guide code {
  font-size: 16px;
}

.boutique-page-shell p,
.boutique-content-shell p,
.boutique-page-shell li,
.boutique-content-shell li {
  font-size: 20px;
  line-height: 1.5;
}

.boutique-shop-shell {
  padding: 0 0 48px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-breadcrumb {
  color: var(--muted);
  font-size: 18px;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 12px 12px 22px;
  background: linear-gradient(180deg, #fffdfa, #fdf7ec);
  border: 1px solid rgba(205, 186, 160, 0.45);
  border-radius: 6px;
  box-shadow:
    0 10px 18px rgba(90, 58, 34, 0.1),
    0 20px 38px rgba(200, 154, 92, 0.12);
  position: relative;
  transform: rotate(-1deg);
}

.woocommerce ul.products li.product:nth-child(even),
.woocommerce-page ul.products li.product:nth-child(even) {
  transform: rotate(0.8deg);
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  margin-bottom: 18px;
  border-radius: 2px;
  aspect-ratio: 0.84;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  padding: 0 10px;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--rose-dark);
  font-size: 21px;
  font-weight: 700;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  padding: 0 10px;
  margin-top: 14px;
  margin-bottom: 14px;
  font-family: "Caveat", cursive;
  font-size: 28px;
  line-height: 1;
}

.woocommerce span.onsale {
  min-width: 0;
  min-height: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  line-height: 1;
  top: 14px;
  left: 14px;
  right: auto;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .button.alt {
  border: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff9f2;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(170, 44, 89, 0.18);
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  margin: auto 10px 0;
  align-self: flex-start;
  padding: 0.8em 1.35em;
  font-size: 17px;
}

.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
  display: block;
  margin: 10px 10px 0;
  color: var(--rose-dark);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce ul.products li.product::after,
.woocommerce-page ul.products li.product::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 186, 154, 0.8), transparent);
}

.woocommerce ul.products li.product a,
.woocommerce-page ul.products li.product a {
  color: inherit;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  margin-top: 24px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce .woocommerce-notices-wrapper:empty + .woocommerce-ordering + ul.products,
.woocommerce table.shop_table {
  background: rgba(255, 248, 237, 0.84);
  border: 1px solid rgba(194, 152, 111, 0.16);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  padding: 18px;
}

.woocommerce div.product .product_title {
  font-family: "Abril Fatface", serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .product_meta,
.woocommerce div.product form.cart {
  font-size: 19px;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
  border-radius: 10px;
}

.woocommerce .quantity .qty {
  min-height: 46px;
  border: 1px solid rgba(194, 152, 111, 0.35);
  border-radius: 14px;
  background: #fffaf1;
}

.woocommerce table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: rgba(194, 152, 111, 0.16);
}

.woocommerce-checkout .col2-set,
.woocommerce-account .woocommerce {
  display: grid;
  gap: 24px;
}

.woocommerce-account .woocommerce {
  grid-template-columns: 280px minmax(0, 1fr);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  padding: 18px;
}

.woocommerce .related.products,
.woocommerce .up-sells,
.woocommerce .cross-sells {
  margin-top: 40px;
}

.woocommerce .related.products > h2,
.woocommerce .up-sells > h2,
.woocommerce .cross-sells > h2 {
  font-family: "Abril Fatface", serif;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 720px) {
  .boutique-content-shell {
    width: min(100% - 36px, 1000px);
  }

  .boutique-elementor-front-page .elementor-section.elementor-section-boxed > .elementor-container,
  .boutique-elementor-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: calc(100% - 24px);
  }

  .woocommerce div.product,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
}
