/*
Theme Name: Casa Uniqum Art
Theme URI: https://casauniqum.com/
Author: Casa Uniqum Art
Description: Custom WordPress & WooCommerce theme for Casa Uniqum Art — handmade soy and coconut wax candles, wardrobe scents, and ceramic aroma diffusers.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casa-uniqum
*/

/* WordPress-specific helpers (never alter BEM component classes or breakpoints in css/). */

/* Prevent WP body_class("blog") from inheriting section .blog padding/lavender on <body>,
   and keep header/footer firmly anchored at the top and bottom of the viewport. */
body.blog {
  padding-block: 0;
  background: var(--color-paper);
}

div.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.admin-bar div.page {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar div.page {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

div.page > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

div.page > main > section:only-child {
  flex: 1 0 auto;
}

/* Wide desktop (17"–32" screens > 1440px): full-bleed backgrounds with a comfortable
   1760px content limit and capped media heights so nothing stretches or warps. */
@media (min-width: 1441px) {
  body.page,
  div.page {
    max-width: none;
  }

  div.page .container:not(.article__inner):not(.content-page__inner),
  div.page .menu__inner {
    width: 100%;
    max-width: 1760px;
    margin-inline: auto;
  }

  div.page .hero,
  div.page .ceramics {
    padding-inline: max(0px, calc((100% - 1760px) / 2));
  }

  div.page .hero__media {
    width: 100%;
    aspect-ratio: auto;
    height: clamp(606px, 42vw, 680px);
  }

  div.page .ceramics__media {
    width: 100%;
    aspect-ratio: auto;
    height: clamp(490px, 34vw, 560px);
  }

  div.page .footer {
    padding-inline: max(68px, calc((100% - 1624px) / 2));
  }
}

.article__inner > p,
.article__inner > ul,
.article__inner > ol,
.article__inner > blockquote {
  font-size: var(--fs-md);
  line-height: 22px;
  color: var(--color-muted);
}

.article__inner > h2,
.article__inner > h3 {
  font-family: var(--font-serif);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-display);
  color: var(--color-plum);
}

.article__inner > h2 {
  font-size: 2rem;
  line-height: 1.094;
}

.article__inner > h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.article__inner > ul,
.article__inner > ol {
  padding-left: 1.25em;
}

.article__inner > ul {
  list-style: disc;
}

.article__inner > ol {
  list-style: decimal;
}

.content-page__inner > h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: var(--fw-regular);
  line-height: 1.094;
  letter-spacing: var(--ls-display);
  color: var(--color-plum);
}

.content-page__inner > h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: var(--fw-regular);
  line-height: 1.15;
  letter-spacing: var(--ls-display);
  color: var(--color-plum);
}

.content-page__inner > p,
.content-page__inner > ul,
.content-page__inner > ol {
  font-size: var(--fs-md);
  line-height: 22px;
  color: var(--color-muted);
}

.content-page__inner > ul {
  list-style: disc;
  padding-left: 1.25em;
}

.content-page__inner > ol {
  list-style: decimal;
  padding-left: 1.25em;
}

.enquiry__notice {
  width: 100%;
  max-width: 670px;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-mauve);
  background: var(--color-cream);
  color: var(--color-plum);
  font-size: var(--fs-sm);
  line-height: 20px;
}

.blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.blog__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.blog__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-plum);
}

.blog__pagination .page-numbers.current {
  border-color: var(--color-plum);
  background: var(--color-plum);
  color: var(--color-white);
}

/* WooCommerce notices & transactional UI helpers using theme design tokens. */
.woocommerce-notices-wrapper {
  width: 100%;
}

.wc-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  width: 100%;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-plum);
  background: var(--color-cream);
  color: var(--color-plum);
  font-size: var(--fs-sm);
  line-height: 20px;
}

.wc-notice--success {
  border-color: var(--color-line);
  border-left: 3px solid var(--color-plum);
  background: var(--color-cream);
}

.wc-notice--error {
  border-color: var(--color-line);
  border-left: 3px solid var(--color-mauve);
  background: var(--color-cream);
}

.wc-notice a.button,
.wc-notice a.wc-forward {
  display: inline-flex;
  align-items: center;
  font-weight: var(--fw-semibold);
  color: var(--color-mauve);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wc-notice__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.wc-notice__list li {
  position: relative;
  padding-left: 14px;
}

.wc-notice__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-mauve);
}

.wc-notice--error strong {
  font-weight: var(--fw-semibold);
  color: var(--color-plum);
}

/* Quantity stepper (- / +) on single product and cart */
.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-line);
  background: var(--color-white);
}

.qty-control__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-plum);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.qty-control__btn:hover {
  background: var(--color-cream);
}

.qty-control__input {
  width: 48px;
  height: 38px;
  padding: 0 4px;
  border: 0;
  border-inline: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-plum);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-align: center;
  -moz-appearance: textfield;
}

.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Single product enhancements (gallery thumbs, attributes, add-to-cart form) */
.product-details__media-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-details__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.product-details__thumb {
  display: block;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.product-details__thumb--active {
  border-color: var(--color-plum);
}

.product-details__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details__cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.product-details__attributes {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  width: 100%;
  padding-block: 10px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  font-size: var(--fs-sm);
  line-height: 20px;
}

.product-details__attr-label {
  font-weight: var(--fw-semibold);
  color: var(--color-plum);
}

.product-details__attr-value {
  margin: 0;
  color: var(--color-muted);
}

.product-details__full-desc p {
  font-size: var(--fs-md);
  line-height: 22px;
  color: var(--color-muted);
}

.product-details__full-desc p + p {
  margin-top: 10px;
}

/* Cart enhancements */
.cart__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.cart-item__price {
  margin-left: auto;
}

.cart__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Checkout enhancements (prevent double padding on form.checkout + payment box styling) */
form.checkout.checkout__layout {
  padding-block: 0;
}

@media (min-width: 901px) {
  form.checkout.checkout__layout {
    row-gap: 24px;
  }
}

form.checkout.checkout__layout > .woocommerce-NoticeGroup,
form.checkout.checkout__layout > .woocommerce-NoticeGroup-checkout,
form.checkout.checkout__layout > .woocommerce-error,
form.checkout.checkout__layout > .wc-notice {
  grid-column: 1 / -1;
  order: 3;
  margin-bottom: 0;
}

form.checkout.checkout__layout > .woocommerce-NoticeGroup .wc-notice,
form.checkout.checkout__layout > .woocommerce-NoticeGroup-checkout .wc-notice {
  margin-bottom: 0;
}

.order-summary__items {
  display: flex;
  flex-direction: column;
}

.order-summary__row--item {
  border-bottom: 1px solid var(--color-line);
}

.order-summary__shipping-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.order-summary__shipping-list label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.order-summary__payment {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.woocommerce-checkout-review-order {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-summary__payment .place-order {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-summary__payment .woocommerce-terms-and-conditions-wrapper:not(:has(*)) {
  display: none;
}

.order-summary__methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-summary__method {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-summary__method-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 26px;
  letter-spacing: var(--ls-display);
  color: var(--color-plum);
  cursor: pointer;
}

.order-summary__method-box {
  font-size: var(--fs-sm);
  line-height: 20px;
  color: var(--color-muted);
}

.order-summary__method-box p {
  font-size: var(--fs-sm);
  line-height: 20px;
  color: var(--color-muted);
}

/* Order confirmation details card */
.confirmation__details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  padding: 20px 22px;
  background: var(--color-cream);
}

.confirmation__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-sm);
  line-height: 20px;
  color: var(--color-plum);
}

.confirmation__label {
  color: var(--color-muted);
}

.confirmation__value {
  font-weight: var(--fw-semibold);
  text-align: right;
}

/* Shop empty state */
.collection__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  align-self: stretch;
  padding-block: 24px;
  text-align: center;
}

/* Single product related products (self-contained so is_product only loads product-details.css + product-card.css) */
.product-related {
  padding-block: var(--section-space);
}

.product-related__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-related__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.product-related__title {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-regular);
  line-height: 1.083;
  letter-spacing: var(--ls-display);
  color: var(--color-plum);
}

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

@media (max-width: 900px) {
  .product-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-related__inner {
    gap: 22px;
  }

  .product-related__grid {
    gap: 22px 14px;
  }
}

/* Clean visual placeholder when a Media Library image has not been uploaded yet */
.media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-lavender) 100%);
}

.media-placeholder--dark {
  background: linear-gradient(135deg, rgba(247, 240, 232, 0.14) 0%, rgba(247, 240, 232, 0.05) 100%);
}

.hero__media > .media-placeholder {
  position: absolute;
  inset: 0;
}

.gift-feature__info > p + p {
  margin-top: 8px;
}


