/**
 * Poemboem — Cart page + WC notices + cart indicator
 * Light theme matching the open site
 */

:root {
  --pfc-bg: #f7f4ef;
  --pfc-surface: #ffffff;
  --pfc-surface-2: #f3efe8;
  --pfc-ink: #2a241c;
  --pfc-muted: rgba(42, 36, 28, 0.62);
  --pfc-line: rgba(42, 36, 28, 0.14);
  --pfc-accent: #9a7b55;
  --pfc-accent-text: #ffffff;
  --pfc-ok: #2f7a45;
  --pfc-warn: #9a6700;
  --pfc-err: #b42318;
  --pfc-radius: 8px;
}

/* ========== Cart indicator (sitewide) ========== */
.pfc-cart-indicator {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  background: #fff;
  color: var(--pfc-ink) !important;
  border: 1px solid var(--pfc-line);
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(42, 36, 28, 0.12);
  font-size: 0.88rem;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pfc-chip-in 0.35s ease both;
}

.pfc-cart-indicator.is-empty {
  display: none !important;
}

.pfc-cart-indicator:hover {
  transform: translateY(-2px);
  color: var(--pfc-ink) !important;
  box-shadow: 0 14px 36px rgba(42, 36, 28, 0.16);
  border-color: var(--pfc-accent);
}

.pfc-cart-indicator__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--pfc-accent);
}

.pfc-cart-indicator__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pfc-cart-indicator__label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pfc-muted);
}

.pfc-cart-indicator__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  color: var(--pfc-ink);
}

.pfc-cart-indicator__count::after {
  content: " prod.";
  font-weight: 500;
  color: var(--pfc-muted);
}

.pfc-cart-indicator__sep {
  color: var(--pfc-muted);
}

.pfc-cart-indicator__total {
  color: var(--pfc-accent);
}

@keyframes pfc-chip-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .pfc-cart-indicator {
    right: 14px;
    bottom: 16px;
    padding: 11px 14px;
  }
}

/* Hide on cart/checkout — already there */
body.woocommerce-cart .pfc-cart-indicator,
body.woocommerce-checkout .pfc-cart-indicator {
  display: none !important;
}

/* ========== WooCommerce notices (sitewide) ========== */
.woocommerce-notices-wrapper {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  background: var(--pfc-surface) !important;
  border: 1px solid var(--pfc-line) !important;
  border-left: 3px solid var(--pfc-accent) !important;
  border-radius: var(--pfc-radius) !important;
  color: var(--pfc-ink) !important;
  padding: 14px 18px !important;
  margin: 0 0 16px !important;
  list-style: none !important;
  box-shadow: 0 6px 20px rgba(42, 36, 28, 0.04);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none !important;
}

.woocommerce-message {
  border-left-color: var(--pfc-ok) !important;
}

.woocommerce-info {
  border-left-color: var(--pfc-accent) !important;
}

.woocommerce-error {
  border-left-color: var(--pfc-err) !important;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a,
.woocommerce-notice a {
  color: var(--pfc-accent) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.woocommerce-error li {
  color: var(--pfc-ink) !important;
}

/* Gift card strip */
.ywgc_have_code,
.ywgc_have_code .woocommerce-info {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.ywgc_have_code .woocommerce-info {
  background: var(--pfc-surface-2) !important;
}

.ywgc_enter_code {
  background: var(--pfc-surface) !important;
  border: 1px solid var(--pfc-line) !important;
  border-radius: var(--pfc-radius) !important;
  padding: 16px !important;
  max-width: 1120px;
  margin: 0 auto 16px !important;
  color: var(--pfc-ink) !important;
}

/* ========== Cart page ========== */
body.woocommerce-cart.pfc-cart-active .woocommerce,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

body.pfc-cart-active .pfc-cart-intro {
  max-width: 1120px;
  margin: 0 auto 20px;
  padding: 0 16px;
  text-align: center;
}

body.pfc-cart-active .pfc-cart-intro__title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pfc-ink);
}

body.pfc-cart-active .pfc-cart-intro__hint {
  margin: 0;
  color: var(--pfc-muted);
  font-size: 0.9rem;
}

body.pfc-cart-active .woocommerce-cart-form,
body.pfc-cart-active .cart_totals {
  background: var(--pfc-surface);
  border: 1px solid var(--pfc-line);
  border-radius: var(--pfc-radius);
  padding: 20px 22px;
  box-shadow: 0 8px 28px rgba(42, 36, 28, 0.05);
}

body.pfc-cart-active .cart_totals {
  margin-top: 0;
}

body.pfc-cart-active .cart_totals h2 {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pfc-ink) !important;
  margin: 0 0 14px !important;
}

body.pfc-cart-active .shop_table {
  border: 0 !important;
}

body.pfc-cart-active .shop_table th,
body.pfc-cart-active .shop_table td {
  border-color: var(--pfc-line) !important;
  color: var(--pfc-ink) !important;
  background: transparent !important;
  padding: 14px 8px !important;
  vertical-align: middle;
}

body.pfc-cart-active .shop_table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pfc-muted) !important;
  font-weight: 600;
}

body.pfc-cart-active .product-remove a {
  color: var(--pfc-muted) !important;
  font-size: 1.25rem;
}

body.pfc-cart-active .product-remove a:hover {
  color: var(--pfc-err) !important;
}

body.pfc-cart-active .product-name a {
  color: var(--pfc-ink) !important;
  font-weight: 600;
  text-decoration: none;
}

body.pfc-cart-active .product-thumbnail img {
  border-radius: 6px;
  max-width: 72px;
  height: auto;
}

body.pfc-cart-active .quantity .qty,
body.pfc-cart-active input.input-text,
body.pfc-cart-active .coupon input.input-text {
  background: var(--pfc-surface-2) !important;
  border: 1px solid var(--pfc-line) !important;
  border-radius: var(--pfc-radius) !important;
  color: var(--pfc-ink) !important;
  min-height: 42px;
  padding: 8px 12px !important;
  box-shadow: none !important;
}

body.pfc-cart-active .button,
body.pfc-cart-active button.button,
body.pfc-cart-active input.button {
  background: var(--pfc-surface-2) !important;
  border: 1px solid var(--pfc-line) !important;
  color: var(--pfc-ink) !important;
  border-radius: var(--pfc-radius) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
  padding: 12px 16px !important;
  box-shadow: none !important;
}

body.pfc-cart-active .wc-proceed-to-checkout .checkout-button,
body.pfc-cart-active a.checkout-button {
  background: var(--pfc-accent) !important;
  border-color: var(--pfc-accent) !important;
  color: var(--pfc-accent-text) !important;
  width: 100%;
  text-align: center;
  padding: 16px 18px !important;
  font-size: 0.9rem !important;
}

body.pfc-cart-active .wc-proceed-to-checkout .checkout-button:hover {
  opacity: 0.92;
}

body.pfc-cart-active .cart_totals .order-total th,
body.pfc-cart-active .cart_totals .order-total td {
  color: var(--pfc-accent) !important;
  font-size: 1.05rem;
}

body.pfc-cart-active .cart-empty.woocommerce-info {
  text-align: center;
  padding: 28px !important;
}

body.pfc-cart-active .return-to-shop .button {
  background: var(--pfc-accent) !important;
  border-color: var(--pfc-accent) !important;
  color: #fff !important;
}

/* Elementor cart widget */
body.pfc-cart-active .e-cart__container {
  gap: 24px !important;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start !important;
}

body.pfc-cart-active .e-cart__column,
body.pfc-cart-active .e-cart__column-start,
body.pfc-cart-active .e-cart__column-end {
  background: var(--pfc-surface) !important;
  border: 1px solid var(--pfc-line) !important;
  border-radius: var(--pfc-radius) !important;
  padding: 20px 22px !important;
  box-shadow: 0 8px 28px rgba(42, 36, 28, 0.05);
}

body.pfc-cart-active .e-cart__column-end {
  position: sticky;
  top: 20px;
}

body.pfc-cart-active .woocommerce-cart-form,
body.pfc-cart-active .cart_totals,
body.pfc-cart-active .e-cart-totals,
body.pfc-cart-active .e-shop-table,
body.pfc-cart-active .coupon.e-cart-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.pfc-cart-active .e-cart-section + .e-cart-section,
body.pfc-cart-active .coupon.e-cart-section {
  margin-top: 16px;
  padding-top: 16px !important;
  border-top: 1px solid var(--pfc-line) !important;
}

body.pfc-cart-active .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  body.pfc-cart-active .e-cart__column-end {
    position: static;
  }
}
