/* WooCommerce overrides — Graziela Leão theme */

/* ─── Globals ────────────────────────────────────────────────────────────── */
.woocommerce-notices-wrapper { padding: 0 var(--px); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--paper);
  border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--ink);
  padding: 16px 24px;
  margin-bottom: 24px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.woocommerce-error { border-top-color: var(--rust); }

.woocommerce-message .button,
.woocommerce-info .button {
  background: var(--green);
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* ─── Cart page ──────────────────────────────────────────────────────────── */
.gl-wc-main { max-width: var(--max-w); margin: 0 auto; padding: 64px var(--px); }

.woocommerce-cart table.cart,
.woocommerce-checkout table.cart {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.woocommerce-cart table.cart th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.woocommerce-cart table.cart td { padding: 20px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }

.woocommerce-cart table.cart .product-thumbnail img { border-radius: 8px; width: 72px; height: 96px; object-fit: cover; }
.woocommerce-cart table.cart .product-name a { font-family: var(--serif); font-size: 18px; color: var(--green); text-decoration: none; }
.woocommerce-cart table.cart .product-name a:hover { color: var(--rust); }
.woocommerce-cart table.cart input.qty { width: 56px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; font-size: 14px; text-align: center; color: var(--ink); }
.woocommerce-cart table.cart .remove { color: var(--muted) !important; font-size: 18px; text-decoration: none; }
.woocommerce-cart table.cart .remove:hover { color: var(--rust) !important; }

.cart-collaterals { margin-top: 48px; }
.cart_totals { max-width: 460px; background: var(--paper); border-radius: var(--radius-md); padding: 40px; border: 1px solid var(--rule); }
.cart_totals h2 { font-family: var(--serif); font-size: 28px; color: var(--green); margin-bottom: 24px; }
.cart_totals table { width: 100%; font-size: 14px; }
.cart_totals table th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cart_totals table td { text-align: right; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cart_totals .order-total th, .cart_totals .order-total td { font-weight: 700; font-size: 18px; color: var(--green); }

.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  background: var(--green);
  color: var(--paper) !important;
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-top: 24px;
  text-decoration: none;
  transition: opacity .15s;
}
.wc-proceed-to-checkout .checkout-button:hover { opacity: .88; }

/* ─── Checkout ───────────────────────────────────────────────────────────── */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.woocommerce-checkout .col2-set @media (max-width: 768px) { grid-template-columns: 1fr; }

.woocommerce-checkout h3 { font-family: var(--serif); font-size: 28px; color: var(--green); margin-bottom: 24px; font-weight: 400; }
.woocommerce-checkout .form-row label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  font-family: var(--sans);
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus { border-color: var(--green); }

.woocommerce-checkout #order_review_heading { font-family: var(--serif); font-size: 28px; color: var(--green); margin-bottom: 24px; font-weight: 400; }
.woocommerce-checkout #payment { background: var(--paper); border-radius: var(--radius-md); padding: 32px; border: 1px solid var(--rule); }
.woocommerce-checkout #payment .payment_methods { list-style: none; padding: 0; margin-bottom: 24px; }
.woocommerce-checkout #payment .payment_methods li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.woocommerce-checkout #payment .payment_methods label { font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }

.woocommerce-checkout #place_order {
  width: 100%;
  background: var(--green);
  color: var(--paper);
  border: none;
  border-radius: var(--radius-pill);
  padding: 18px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  font-family: var(--sans);
}
.woocommerce-checkout #place_order:hover { opacity: .88; }

/* ─── Account / My Orders ────────────────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--rule);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--sand);
  color: var(--green);
  font-weight: 600;
}

/* ─── Buttons (global WC) ────────────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--green);
  color: var(--paper) !important;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
  font-family: var(--sans);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { opacity: .88; background: var(--green) !important; color: var(--paper) !important; }

.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--rust); }
.woocommerce a.button.alt:hover { background: var(--rust) !important; }

/* ─── Product Reviews ────────────────────────────────────────────────────── */
.woocommerce-Reviews { padding: 0; }

.woocommerce-Reviews-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--green);
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -.01em;
}

ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment_container {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.comment_container img.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment_container .comment-text { flex: 1; min-width: 0; }

/* Stars — Unicode overlay approach (no WC icon font needed) */
.comment_container .star-rating {
  display: inline-block;
  overflow: hidden;
  position: relative;
  height: 1.1em;
  width: 6.2em;
  font-size: 15px;
  line-height: 1.1;
  vertical-align: middle;
  margin-bottom: 10px;
}
.comment_container .star-rating::before {
  content: "★★★★★";
  color: #ddd;
  position: absolute;
  top: 0; left: 0;
  letter-spacing: .24em;
}
.comment_container .star-rating span {
  overflow: hidden;
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  font-size: 0;
}
.comment_container .star-rating span::before {
  content: "★★★★★";
  color: var(--rust);
  font-size: 15px;
  letter-spacing: .24em;
}

.comment_container p.meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.woocommerce-review__author {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.woocommerce-review__dash { margin: 0 4px; }
.woocommerce-review__published-date { font-size: 13px; }

.comment_container .description p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

/* ─── Review form ────────────────────────────────────────────────────────── */
#respond {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}

#reply-title {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--green);
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

/* hide small cancel-reply link */
#reply-title small { display: none; }

/* logged-in-as / comment-notes */
#commentform .logged-in-as,
#commentform .comment-notes {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
#commentform .logged-in-as a,
#commentform .comment-notes a { color: var(--green); }

/* field wrappers */
#commentform .comment-form-rating,
#commentform .comment-form-comment { margin-bottom: 20px; }

/* label style — applies to all labels */
#commentform label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

/* fix label appearing below textarea: reverse flex order */
#commentform .comment-form-comment {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
#commentform .comment-form-comment label { margin-bottom: 0; }

/* inputs & textarea */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  font-family: var(--sans);
  transition: border-color .15s;
  box-sizing: border-box;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus { border-color: var(--green); outline: none; }

#commentform textarea { min-height: 130px; resize: vertical; }

/* star selector */
#commentform .stars a {
  font-size: 22px;
  color: #ddd;
  text-decoration: none;
  letter-spacing: .1em;
  transition: color .15s;
}
#commentform .stars a:hover,
#commentform .stars a.active,
#commentform .stars.selected a { color: var(--rust); }

/* submit button */
#commentform #submit {
  background: var(--green);
  color: var(--paper);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity .15s;
}
#commentform #submit:hover { opacity: .85; }

/* required asterisk */
#commentform .required { color: var(--rust); }
#commentform .required-field-message { display: none; }

@media (min-width: 640px) {
  .comment-form-author-email { display: flex; gap: 20px; }
  .comment-form-author-email .comment-form-author,
  .comment-form-author-email .comment-form-email { flex: 1; }
}
