/* ==========================================================
   Showstopper — WooCommerce elements not in the static designs
   (loaded after the page styles on every store screen)
   ========================================================== */

/* Ratings: empty stars */
.stars svg.off { color: #e3d6c5; }

/* Prices: sale prices and screen-reader text WooCommerce adds */
.price del { color: var(--muted); font-weight: 400; font-size: .82em; margin-right: 6px; }
.price ins { text-decoration: none; }
.price .screen-reader-text,
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Product cards */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
}
.add-cart.loading { opacity: .6; pointer-events: none; }
.add-cart.added { background: #3f7a4a; }
.add-cart.is-disabled { background: #cfc4b6; cursor: not-allowed; }
a.added_to_cart { display: none; }
.wish[aria-pressed="true"] { color: var(--red); --heart-fill: currentColor; }
.wish[aria-pressed="true"] svg { --heart-fill: currentColor; }

/* Shop extras */
.clear-filters { display: block; margin-top: 12px; font-size: 13px; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.no-products {
  padding: 60px 20px;
  border: 1px dashed #e3d6c5;
  border-radius: 14px;
  text-align: center;
}
.no-products > svg { width: 40px; height: 40px; color: var(--gold); display: block; margin: 0 auto 10px; }
.no-products h2 { font-size: 22px; margin-bottom: 6px; }
.no-products p { color: var(--ink-soft); margin-bottom: 20px; }
.pagination .page-numbers.dots { border: 0; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  background: #fbefd9;
  font-size: 13.5px;
  color: #5c3f1a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.woocommerce-error { border-left-color: var(--red); background: #fbe7e4; color: #8a2a22; display: block; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button,
.woocommerce-info .button {
  order: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
}
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a { color: var(--brown); text-decoration: underline; }
.pagination .page-numbers.current { background: var(--gold-2); color: #fff; }

/* Product page */
.pdp > .container:first-child:empty { display: none; }
.pdp-desc p { margin: 0; }
.opt-error { margin-left: 8px; font-weight: 500; color: var(--red); font-size: 12px; }
.lengths.is-invalid .length-opt { border-color: var(--red); }
.size-guide-link { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.add-to-cart.is-loading { opacity: .75; pointer-events: none; }
.stock.out-of-stock { margin-top: 20px; padding: 12px 16px; border-radius: 8px; background: #fbe7e4; color: #8a2a22; font-weight: 500; }
.thumbs[hidden] { display: none; }
.gallery-pdp:has(.thumbs[hidden]) { grid-template-columns: minmax(0, 1fr); }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul { list-style: disc; padding-left: 18px; margin-top: 12px; }
.entry-content li::marker { color: var(--gold); }

/* Reviews */
.review-head { flex-wrap: wrap; }
.review-head .verified { padding: 1px 8px; border-radius: 4px; background: #dcefd9; color: #2f6b38; font-size: 11px; font-weight: 500; }
.review-head time { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.review p { margin: 0; }
.no-reviews, .review-login { margin-bottom: 18px; }
.review-login a, .no-reviews a { color: var(--brown); text-decoration: underline; }
.review-form-wrap { margin-top: 24px; padding: 20px; border: 1px solid #efe4d6; border-radius: 12px; background: #fdfaf6; max-width: 620px; }
.comment-reply-title { font-size: 20px; margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.comment-form .required { color: var(--red); }
.comment-form textarea,
.comment-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddcfbe;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
}
.comment-form-rating { margin-bottom: 14px; }
.comment-form-rating select { max-width: 220px; }
.comment-form .form-submit { margin-top: 14px; }
/* WooCommerce turns the rating select into clickable stars */
p.stars { margin: 0; }
p.stars span { display: inline-flex; gap: 4px; }
p.stars a {
  width: 22px;
  height: 22px;
  overflow: hidden;
  text-indent: -999px;
  background: #e3d6c5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3L2.9 9.5l6.3-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
p.stars:hover a, p.stars.selected a { background: var(--gold-2); }
p.stars:hover a:hover ~ a, p.stars.selected a.active ~ a { background: #e3d6c5; }

/* Cart */
.woocommerce-cart-form.is-updating { opacity: .6; pointer-events: none; transition: opacity .2s; }
.cart-items > .woocommerce-notices-wrapper { margin-bottom: 4px; }
.item-meta:empty { display: none; }
.item-price .amount, .item-total .amount { font-weight: 600; }
.remove-item { text-decoration: none; }
.coupon-tag { margin-left: 4px; padding: 1px 8px; border-radius: 4px; background: #dcefd9; color: #2f6b38; font-size: 11.5px; font-weight: 500; }
.remove-coupon { margin-left: 4px; color: var(--muted); font-size: 15px; }
.remove-coupon:hover { color: var(--red); }
.sum-total strong .amount { color: var(--brown); }
.coupon-form button { cursor: pointer; }
.cart-empty { margin-top: 10px; border: 1px dashed #e3d6c5; border-radius: 14px; }
.sum-total strong span,
.sum-row strong span { font-family: var(--sans); }

/* ---------- Form rows (checkout, account, login) ---------- */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper,
.ss-form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.form-row { grid-column: span 6; margin: 0; }
.form-row-first, .form-row-last { grid-column: span 3; }
.form-row.ss-third { grid-column: span 2; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.form-row label .required { color: var(--red); text-decoration: none; border: 0; }
.form-row label .optional { font-weight: 400; color: var(--muted); }
.form-row .woocommerce-input-wrapper { display: block; }
.form-row input.input-text,
.form-row select,
.form-row textarea,
.woocommerce-form input.input-text,
.woocommerce-EditAccountForm input.input-text {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #ddcfbe;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-row textarea { height: 80px; padding: 8px 12px; }
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1b18' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
}
.form-row input.input-text:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 149, 79, .18);
}
.form-row.woocommerce-invalid input.input-text,
.form-row.woocommerce-invalid select { border-color: var(--red); }
.form-row.woocommerce-validated input.input-text { border-color: #8fbf95; }
.form-row ::placeholder { color: #8d8277; }
.form-row .description { font-size: 11.5px; color: var(--muted); }
.form-row.hidden, .form-row[hidden] { display: none; }

/* ---------- Checkout ---------- */
.checkout-notices:empty { display: none; }
.checkout-notices .woocommerce-form-login-toggle,
.checkout-notices .woocommerce-form-coupon-toggle { margin-bottom: 14px; }
.checkout-notices form.login,
.checkout-notices form.checkout_coupon {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #efe4d6;
  border-radius: 12px;
  background: #fdfaf6;
}
.checkout_coupon { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.checkout_coupon p:first-child { width: 100%; margin: 0; font-size: 13px; }
.checkout_coupon .form-row { flex: 1; min-width: 180px; }
.checkout_coupon button, .checkout-notices form.login button[type=submit] {
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.account-fields { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e3d6c5; }
.account-note { margin-bottom: 12px; font-size: 13px; color: var(--brown); }
.option.is-static { cursor: default; border: 1.5px solid var(--gold); background: #fcf3e6; }
.option-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--brown); background: radial-gradient(circle, var(--brown) 0 4.5px, #f7e3c4 5px); }
.wc_payment_methods { list-style: none; margin: 0; padding: 0; }
/* Payment options: fixed columns, so a hidden radio (single method) doesn't shift the layout */
.wc_payment_method .option { grid-template-columns: 22px 40px minmax(0, 1fr); align-items: center; padding-top: 12px; padding-bottom: 12px; }
.wc_payment_method .option > input,
.wc_payment_method .option > .option-dot { grid-column: 1; grid-row: 1; justify-self: center; }
.wc_payment_method .option > .option-icon { grid-column: 2; grid-row: 1; }
.wc_payment_method .option > span { grid-column: 3; grid-row: 1; }
.wc_payment_method .option.is-static > input { display: none; }
.wc_payment_method .option small { margin-top: 2px; font-size: 12.5px; line-height: 1.5; }
.payment_box { margin: 8px 0 0; padding: 10px 14px; border-radius: 6px; background: #fdf7ef; font-size: 12.5px; }
#order_review .shop_table { margin: 0; }
.s-item img { width: 78px; height: 70px; border-radius: 6px; object-fit: cover; object-position: center top; }
.s-price .amount { font-weight: 600; }
.woocommerce-terms-and-conditions-wrapper { margin: 0 4px 14px; font-size: 12.5px; }
.woocommerce-terms-and-conditions-wrapper .form-row { display: block; }
.woocommerce-terms-and-conditions-wrapper label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.woocommerce-terms-and-conditions-wrapper input[type=checkbox] { margin-top: 2px; accent-color: var(--gold); }
.woocommerce-terms-and-conditions-wrapper a { color: var(--brown); text-decoration: underline; }
.checkout .blockUI.blockOverlay { background: rgba(250, 245, 238, .7) !important; }
.place-order.processing { opacity: .7; pointer-events: none; }
@media (max-width: 600px) {
  .form-row-first, .form-row-last, .form-row.ss-third { grid-column: span 6; }
}

/* Order confirmation / details */
.paid-badge.cod { background: #fbefd9; color: #8a5a22; }
.order-cancelled { padding: 12px 16px; border-radius: 8px; background: #fbe7e4; color: #8a2a22; font-weight: 500; }
.o-item img { width: 56px; height: 52px; border-radius: 6px; object-fit: cover; object-position: center top; }
.o-item p:empty { display: none; }
.side-panel address { line-height: 1.55; }
.place-order::before,
.place-order::after {
  content: "";
  width: 19px;
  height: 19px;
  flex: none;
  background: currentColor;
}
.place-order::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 14.5v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Cpath d='M12 14.5v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.place-order::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-password-strength:empty, .woocommerce-password-hint:empty { display: none; }
.woocommerce-password-strength { margin-top: 6px; padding: 4px 10px; border-radius: 4px; font-size: 12px; background: #fbefd9; }
.woocommerce-password-strength.strong { background: #dcefd9; color: #2f6b38; }
.woocommerce-password-strength.bad, .woocommerce-password-strength.short { background: #fbe7e4; color: #8a2a22; }
.woocommerce-password-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* ---------- My Account ---------- */
.acc-main > .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 14px; }
.acc-empty {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px dashed #e3d6c5;
  border-radius: 10px;
  text-align: center;
  color: var(--ink-soft);
}
.acc-empty a, .acc-empty-note a { color: var(--brown); text-decoration: underline; }
.acc-empty-note { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.orders img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; object-position: center top; }
.status.processing { background: #fbefd9; color: #8a5a22; }
.acc-form .info-card { margin-bottom: 16px; padding: 18px 20px 20px; }
.acc-form .info-card h3 { margin-bottom: 16px; }
.acc-form > .btn { margin-top: 4px; }
.order-placed-line { margin: -4px 0 14px; font-size: 13.5px; color: var(--ink-soft); }
.acc-track { margin-bottom: 16px; padding: 16px 20px; grid-template-columns: 170px minmax(0, 1fr); }
.acc-order-details .confirm { padding: 0; }
.acc-order-details .container { padding: 0; max-width: none; }
.acc-order-details .confirm-grid { grid-template-columns: minmax(0, 1fr); }
.acc-order-details .side-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-notes { margin-top: 16px; padding: 16px 20px; }
.acc-notes h2 { font-size: 19px; margin-bottom: 8px; }
.acc-notes p { font-size: 13px; margin-top: 6px; }
.wish-actions .btn-outline.is-disabled { opacity: .6; pointer-events: none; }
.wish-actions .btn-outline.added { background: #3f7a4a; border-color: #3f7a4a; color: #fff; }

/* Addresses (WooCommerce markup) */
.woocommerce-Addresses { display: grid; gap: 16px; }
.woocommerce-Address,
.woocommerce-address-fields {
  padding: 18px 20px;
  border: 1px solid #efe4d6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdf9f4, #fbf4ec);
}
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.woocommerce-Address-title h2, .woocommerce-address-fields + h2, .acc-main > form > h2 { font-size: 19px; }
.woocommerce-Address-title a { font-size: 13px; color: var(--brown); text-decoration: underline; }
.woocommerce-Address address { font-style: normal; font-size: 13.5px; line-height: 1.6; }
.acc-main > p:first-child { margin-bottom: 14px; font-size: 13.5px; color: var(--ink-soft); }
.acc-main form > h2 { margin-bottom: 14px; }
.woocommerce-address-fields > p:last-child { margin-top: 16px; }
.acc-main button[name="save_address"],
.acc-main .woocommerce-address-fields .button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

/* Login / password reset */
.auth > .container > .woocommerce-notices-wrapper:not(:empty),
.auth > .container > .woocommerce-error,
.auth > .container > .woocommerce-message { margin-bottom: 16px; }
.auth-card--single { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; padding-bottom: 44px; }
.auth-card--single .auth-btn { margin-top: 4px; }
.auth-form .woocommerce-privacy-policy-text { display: none; }

@media (max-width: 900px) {
  .acc-track { grid-template-columns: minmax(0, 1fr); }
  .acc-order-details .side-panels { grid-template-columns: minmax(0, 1fr); }
}

/* Track order */
.lookup-msg a { color: var(--brown); text-decoration: underline; }
.recent-track .recent-order {
  display: grid;
  grid-template-columns: 80px 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.recent-track .recent-order:hover strong { color: var(--gold); }
.recent-track .status-name { color: var(--brown); font-weight: 500; }
.timeline time br + * { display: inline; }
@media (max-width: 600px) { .recent-track .recent-order { grid-template-columns: 60px 1fr auto; } .recent-track .recent-order > span:nth-child(2) { display: none; } }
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* ---------- Order confirmation: awaiting payment note ---------- */
.pay-note-wrap { padding: 0 0 18px; }
.pay-note {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px solid #ecd9bd;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(90deg, #f8eddf, #fbf4ea);
}
.pay-note > svg { width: 38px; height: 38px; flex: none; color: var(--gold); }
.pay-note h2 { margin: 0 0 2px; color: var(--brown); font-size: 20px; }
.pay-note p { font-size: 13.5px; line-height: 1.6; }
@media (max-width: 600px) {
  .pay-note { align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .pay-note > svg { width: 30px; height: 30px; }
}
