/* ==========================================================================
   renu — WooCommerce overrides
   Restyle WC's stock cart, checkout, my-account, and shop pages to match
   the renu editorial system. Keeps WC functionality intact.
   ========================================================================== */

/* Page wrapper renders inside .section > .container, so WC inherits typography. */
.is-woocommerce-page { padding: 60px 0 100px; }

/* Headings inside WC pages */
.woocommerce h1,
.woocommerce h2,
.woocommerce-page h1,
.woocommerce-page h2 {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.woocommerce h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0 0 1rem; }

/* ==========================================================================
   Buttons — make WC buttons read as renu primary
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce #respond input#submit,
.woocommerce #content input.button,
.woocommerce-page #respond input#submit,
.woocommerce-page #content input.button {
  background: var(--ink, #1c2016);
  color: var(--cream, #f4ecde);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--sans, -apple-system, "Segoe UI", sans-serif);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: background .2s ease, transform .2s ease;
  box-shadow: none;
  text-shadow: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover {
  background: var(--ink-hover, #2a2e26);
  transform: translateY(-1px);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--ink, #1c2016);
}

/* ==========================================================================
   Forms — calm, editorial input style
   ========================================================================== */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row select,
.select2-container--default .select2-selection--single {
  border: 1px solid #d8cdb6;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbf6ec;
  color: var(--ink, #1c2016);
  font-size: 0.95rem;
  font-family: var(--sans, -apple-system, "Segoe UI", sans-serif);
}
.woocommerce form .form-row label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #7a7264;
  text-transform: uppercase;
}
.woocommerce form .form-row .required { color: #b48a4a; }

/* ==========================================================================
   Cart — table + items
   ========================================================================== */
.woocommerce-cart .woocommerce { max-width: 1080px; margin: 0 auto; }

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
  background: transparent;
  margin: 1.5rem 0 2rem;
  width: 100%;
}
.woocommerce table.shop_table th {
  background: transparent;
  font-family: var(--sans, -apple-system, "Segoe UI", sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #9a8f7e;
  text-transform: uppercase;
  border-bottom: 1px solid #e0d4ba;
  padding: 12px 14px;
  text-align: left;
}
.woocommerce table.shop_table td {
  padding: 24px 14px;
  border-bottom: 1px solid #ece2c8;
  vertical-align: middle;
  font-family: var(--sans, -apple-system, "Segoe UI", sans-serif);
  color: var(--ink, #1c2016);
  background: transparent;
}
.woocommerce table.shop_table tr:last-child td { border-bottom: 0; }

.woocommerce table.cart .product-thumbnail img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.woocommerce table.cart .product-name a {
  color: var(--ink, #1c2016);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  text-transform: lowercase;
}
.woocommerce table.cart .product-name a:hover { color: #4a4f3f; }
.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.15rem;
  color: var(--ink, #1c2016);
}

/* Remove button — subtle × */
.woocommerce a.remove,
.woocommerce-page a.remove {
  width: 28px;
  height: 28px;
  line-height: 26px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #a09684 !important;
  font-weight: 400 !important;
  font-size: 1.1rem !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.woocommerce a.remove:hover {
  background: #e8dec9 !important;
  color: var(--ink, #1c2016) !important;
  transform: scale(1.05);
}

/* ==========================================================================
   Quantity stepper (rendered as a single rounded pill with the input centered)
   ========================================================================== */
.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  background: #fbf6ec;
  border: 1px solid #d8cdb6;
  border-radius: 999px;
  padding: 4px 8px;
  min-width: 88px;
  justify-content: center;
}
.woocommerce .quantity .qty {
  width: 56px;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  font-family: var(--sans, -apple-system, "Segoe UI", sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink, #1c2016);
  appearance: textfield;
  -moz-appearance: textfield;
}
.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.woocommerce .quantity .qty:focus {
  outline: 0 !important;
  box-shadow: none !important;
}
.woocommerce .quantity:focus-within {
  border-color: var(--ink, #1c2016);
}

/* Coupon row + Update cart button */
.woocommerce table.cart td.actions {
  padding-top: 28px;
  border-top: 1px solid #ece2c8;
  background: transparent;
}
.woocommerce table.cart td.actions .coupon { display: inline-flex; gap: 10px; align-items: center; }
.woocommerce table.cart td.actions .coupon .input-text {
  width: 220px;
  border: 1px solid #d8cdb6;
  border-radius: 999px;
  padding: 12px 18px;
  background: #fbf6ec;
  font-size: 0.92rem;
}

/* ==========================================================================
   Cart totals card
   ========================================================================== */
.woocommerce .cart_totals,
.woocommerce-page .cart_totals,
.woocommerce .cart-collaterals {
  background: #fbf6ec;
  border: 1px solid #ece2c8;
  border-radius: 22px;
  padding: 32px;
  margin-top: 24px;
}
.woocommerce .cart_totals h2 {
  margin: 0 0 18px;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ink, #1c2016);
  letter-spacing: -0.01em;
}
.woocommerce .cart_totals table th {
  font-family: var(--sans, -apple-system, "Segoe UI", sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7264;
  background: transparent;
  border: 0;
  padding: 12px 0;
  text-align: left;
}
.woocommerce .cart_totals table td {
  border: 0;
  background: transparent;
  text-align: right;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--ink, #1c2016);
}
.woocommerce .cart_totals tr.order-total th,
.woocommerce .cart_totals tr.order-total td {
  border-top: 1px solid #e0d4ba;
  padding-top: 18px;
  font-size: 1.1rem;
}
.woocommerce .cart_totals tr.order-total td .amount {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.5rem;
  font-weight: 500;
}

/* Proceed to checkout */
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 18px 24px;
  border-radius: 999px;
  margin-top: 10px;
  font-weight: 500;
  text-transform: lowercase;
}

/* PayPal / Venmo / Pay Later button stack — give them breathing room */
.woocommerce .cart_totals .ppc-button-container,
.woocommerce .cart_totals .paypal-button-container { margin-top: 14px; }

/* Empty cart state */
.woocommerce .cart-empty,
.woocommerce-cart .cart-empty {
  text-align: center;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink, #1c2016);
  padding: 60px 24px;
}
.woocommerce .return-to-shop a.button {
  background: var(--ink, #1c2016);
  color: var(--cream, #f4ecde);
  border-radius: 999px;
  padding: 14px 30px;
  text-transform: lowercase;
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.woocommerce-checkout #payment {
  background: #fbf6ec;
  border-radius: 18px;
  border: 1px solid #ece2c8;
  padding: 8px 18px;
}
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #ece2c8;
}
.woocommerce-checkout-review-order-table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #fbf6ec;
  border-left: 4px solid var(--ink, #1c2016);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--ink, #1c2016);
  font-size: 0.92rem;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { color: var(--ink, #1c2016); }

/* ==========================================================================
   My account
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 240px;
  margin-right: 32px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fbf6ec;
  border: 1px solid #ece2c8;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid #ece2c8;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 18px;
  color: var(--ink, #1c2016);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #f4ecde;
}

/* ==========================================================================
   Shop archive (catalog)
   ========================================================================== */
.woocommerce ul.products li.product .price {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.2rem;
  color: var(--ink, #1c2016);
}
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--sans, -apple-system, "Segoe UI", sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 6px !important;
  text-transform: lowercase;
}
.woocommerce ul.products li.product img { border-radius: 18px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px;
  border: 1px solid #d8cdb6;
}

/* ==========================================================================
   Mobile niceties
   ========================================================================== */
@media (max-width: 720px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 1 1 100%;
    margin: 0 0 24px;
  }
  .woocommerce table.shop_table_responsive tr td { display: block; }
}
}


/* ============================================================
   Mobile fixes: hero + PDP carousel aspect-ratio so images
   stop being side-cropped on phones; also hide WC stock count
   ============================================================ */
.woocommerce p.stock,
.woocommerce div.product p.stock,
.pdp p.stock { display: none !important; }

@media (max-width: 720px) {
  .hero--banner { aspect-ratio: 1 / 1 !important; }
  .hero--banner .hero__media img { object-position: center 65%; }
  .pdp__carousel { aspect-ratio: 1 / 1 !important; }
  .pdp__slide img { object-position: center center; }
}
