/* Atelier Nocturne — commerce pages (cart, checkout, account) */

.woo-shell {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(200, 169, 107, 0.08), transparent 65%),
    var(--navy-deep);
}

.page-content--woo {
  max-width: none;
  padding: 0;
}

.woo-page-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.woo-page-header .eyebrow {
  margin-bottom: 0.75rem;
}

.woo-page-header h1 {
  font-size: clamp(2.4rem, 2rem + 2vw, 3.5rem);
  font-weight: 400;
  margin: 0 0 0.65rem;
  letter-spacing: 0.03em;
}

.woo-page-header__lede {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.45;
}

.page-content--woo .entry-content > .woocommerce {
  margin-top: 0;
}

/* ——— Cart ——— */
.woocommerce-cart .woocommerce > *:not(.woocommerce-cart-form):not(.cart-collaterals) {
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  margin: 0;
  min-width: 0;
  overflow-x: auto;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  margin: 0;
  width: 100%;
  min-width: 0;
}

.woocommerce table.shop_table {
  border: 1px solid rgba(200, 169, 107, 0.18) !important;
  background: rgba(7, 26, 43, 0.45) !important;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 1.25rem !important;
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: rgba(200, 169, 107, 0.12) !important;
  color: var(--ivory);
  padding: 1.1rem 0.85rem !important;
  vertical-align: middle;
  word-break: break-word;
}

.woocommerce table.cart .product-remove {
  width: 2.75rem;
}

.woocommerce table.cart .product-thumbnail {
  width: 5.75rem;
}

.woocommerce table.cart .product-thumbnail a {
  display: block;
  width: 4.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(200, 169, 107, 0.12), transparent 70%),
    linear-gradient(165deg, #14344c 0%, #0a1f32 55%, #061522 100%);
  border: 1px solid rgba(200, 169, 107, 0.2);
}

.woocommerce table.cart img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  margin: 0;
}

.woocommerce table.cart .product-name a {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.woocommerce table.cart .product-name a:hover {
  color: var(--gold-light);
}

.woocommerce table.cart .product-remove a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  line-height: 1;
  border: 1px solid rgba(200, 169, 107, 0.28);
  background: rgba(4, 17, 29, 0.4) !important;
  border-radius: 0 !important;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.woocommerce table.cart .product-remove a:hover {
  color: var(--ivory) !important;
  border-color: var(--gold) !important;
  background: rgba(200, 169, 107, 0.12) !important;
}

.woocommerce table.shop_table th {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold) !important;
  font-weight: 500;
  background: rgba(4, 17, 29, 0.35);
}

.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
  width: 6.5rem;
}

.woocommerce table.cart .product-quantity {
  width: 8.5rem;
}

.woocommerce table.cart td.actions {
  padding: 1.25rem !important;
  background: rgba(4, 17, 29, 0.25);
}

.woocommerce table.cart td.actions::after {
  content: "";
  display: table;
  clear: both;
}

.woocommerce table.cart td.actions .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  float: left !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: calc(100% - 9rem);
}

.woocommerce table.cart td.actions .coupon label {
  display: none;
}

.woocommerce table.cart td.actions .coupon .input-text {
  width: 12rem !important;
  min-width: 10rem !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce table.cart td.actions .button {
  float: none !important;
  margin: 0 !important;
  white-space: nowrap;
}

.woocommerce table.cart td.actions > .button[name="update_cart"] {
  float: right !important;
}

.woocommerce .cart_totals {
  background: rgba(7, 26, 43, 0.55);
  border: 1px solid rgba(200, 169, 107, 0.22);
  padding: 1.65rem 1.5rem;
}

.woocommerce .cart_totals h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 1.15rem;
  color: var(--ivory);
}

.woocommerce .cart_totals table {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
}

.woocommerce .cart_totals th,
.woocommerce .cart_totals td {
  border-color: rgba(200, 169, 107, 0.12) !important;
  padding: 0.85rem 0 !important;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
  color: var(--gold) !important;
  font-size: 1.1rem;
}

/* Shipping methods: kill default bullets, polish radios */
.woocommerce ul#shipping_method,
.woocommerce-checkout ul#shipping_method,
.woocommerce .woocommerce-shipping-methods {
  list-style: none !important;
  margin: 0.35rem 0 0.65rem !important;
  padding: 0 !important;
}

.woocommerce ul#shipping_method li,
.woocommerce-checkout ul#shipping_method li,
.woocommerce .woocommerce-shipping-methods li {
  list-style: none !important;
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
}

.woocommerce ul#shipping_method li::marker,
.woocommerce-checkout ul#shipping_method li::marker,
.woocommerce .woocommerce-shipping-methods li::marker {
  content: none !important;
  font-size: 0 !important;
}

.woocommerce ul#shipping_method li label,
.woocommerce-checkout ul#shipping_method li label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ivory);
  font-size: 0.92rem;
  cursor: pointer;
}

.woocommerce ul#shipping_method input[type="radio"],
.woocommerce-checkout ul#shipping_method input[type="radio"] {
  appearance: none;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  border: 1px solid rgba(200, 169, 107, 0.55);
  background: rgba(4, 17, 29, 0.55);
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
}

.woocommerce ul#shipping_method input[type="radio"]:checked,
.woocommerce-checkout ul#shipping_method input[type="radio"]:checked {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 2px var(--navy-deep);
}

.woocommerce .woocommerce-shipping-destination {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.woocommerce .shipping-calculator-button {
  color: var(--gold-light) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.82rem;
}

.woocommerce .wc-proceed-to-checkout {
  padding: 1.25rem 0 0 !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
  display: block;
  text-align: center;
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  padding: 1.05rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  font-weight: 600;
  border: 0 !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--gold-light) !important;
  color: var(--navy-deep) !important;
}

.woocommerce-cart .cart-empty,
.woocommerce-info.cart-empty {
  text-align: center;
  border: 1px solid rgba(200, 169, 107, 0.2) !important;
  background: rgba(7, 26, 43, 0.45) !important;
  padding: 2.5rem 1.5rem !important;
  color: var(--ivory) !important;
}

.woocommerce-cart .return-to-shop {
  text-align: center;
  margin: 1.5rem 0 0;
}

.woocommerce-cart .return-to-shop .button {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  border-color: var(--gold) !important;
}

.woocommerce .cross-sells {
  grid-column: 1 / -1;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(200, 169, 107, 0.16);
}

.woocommerce .cross-sells > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ——— Checkout ——— */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
  background: rgba(7, 26, 43, 0.45);
  border: 1px solid rgba(200, 169, 107, 0.18);
  padding: 1.85rem 1.6rem;
  float: none !important;
  width: 100% !important;
}

.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--ivory);
}

.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 2;
  background: rgba(7, 26, 43, 0.55);
  border: 1px solid rgba(200, 169, 107, 0.22);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  width: 100% !important;
  float: none !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
}

.woocommerce-checkout h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ivory);
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(200, 169, 107, 0.18);
}

.woocommerce-checkout-payment ul.payment_methods {
  list-style: none !important;
}

.woocommerce-checkout-payment ul.payment_methods li {
  list-style: none !important;
}

.woocommerce-checkout-payment ul.payment_methods li::marker {
  content: none !important;
}

.woocommerce-checkout-payment ul.payment_methods {
  border: 1px solid rgba(200, 169, 107, 0.2) !important;
  background: rgba(11, 36, 56, 0.4) !important;
  padding: 1.15rem !important;
  margin: 0 0 1.25rem !important;
  list-style: none !important;
}

.woocommerce-checkout-payment ul.payment_methods li {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.woocommerce-checkout-payment ul.payment_methods li label {
  color: var(--ivory);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.woocommerce-checkout-payment div.payment_box {
  background: rgba(4, 17, 29, 0.55) !important;
  color: var(--muted) !important;
  border: 1px solid rgba(200, 169, 107, 0.15);
  margin-top: 0.65rem;
}

.woocommerce-checkout-payment div.payment_box::before {
  display: none !important;
}

.woocommerce #place_order,
.woocommerce button.button.alt {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  border: 0 !important;
  width: 100%;
  padding: 1.05rem 1.5rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.woocommerce #place_order:hover,
.woocommerce button.button.alt:hover {
  background: var(--gold-light) !important;
}

.woocommerce-order {
  max-width: 44rem;
  margin: 0 auto;
  background: rgba(7, 26, 43, 0.5);
  border: 1px solid rgba(200, 169, 107, 0.2);
  padding: 2rem 1.75rem;
}

.woocommerce-order .woocommerce-thankyou-order-received {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ivory);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.woocommerce-order-overview li {
  background: rgba(4, 17, 29, 0.4);
  border: 1px solid rgba(200, 169, 107, 0.14);
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.woocommerce-order-overview li strong {
  display: block;
  color: var(--ivory);
  margin-top: 0.35rem;
  font-size: 1rem;
}

/* ——— Account ——— */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.woocommerce-account:not(.logged-in) .woocommerce {
  display: block;
}

.woocommerce-account .u-columns,
.woocommerce-account .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  width: 100% !important;
  float: none !important;
  max-width: 56rem;
  margin: 0 auto;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2,
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  background: rgba(7, 26, 43, 0.55);
  border: 1px solid rgba(200, 169, 107, 0.18);
  padding: 1.15rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0 0 0.25rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.75rem 0.85rem;
  color: rgba(245, 241, 232, 0.72);
  border-left: 1px solid transparent;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  color: var(--gold-light);
  border-left-color: var(--gold);
  background: rgba(200, 169, 107, 0.08);
}

.woocommerce-account .woocommerce-MyAccount-content {
  background: rgba(7, 26, 43, 0.45);
  border: 1px solid rgba(200, 169, 107, 0.16);
  padding: 2rem 1.75rem;
  min-height: 18rem;
}

.woocommerce-account .woocommerce-MyAccount-content > p,
.woocommerce-account .woocommerce-MyAccount-content > p a {
  color: var(--muted);
  line-height: 1.7;
}

.woocommerce-account .woocommerce-MyAccount-content > p a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ivory);
  margin-top: 0;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.woocommerce form.edit-account,
.woocommerce-address-fields {
  background: rgba(7, 26, 43, 0.5);
  border: 1px solid rgba(200, 169, 107, 0.18);
  padding: 2rem 1.75rem;
  max-width: none;
  margin: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce form.login,
.woocommerce-account:not(.logged-in) .woocommerce form.register {
  height: 100%;
}

.woocommerce form.login .button,
.woocommerce form.register .button,
.woocommerce form.edit-account .button,
.woocommerce-address-fields .button {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  border: 0 !important;
  width: auto;
  min-width: 10rem;
  padding: 0.9rem 1.4rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  font-weight: 600;
}

.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-orders {
  width: 100%;
}

.woocommerce-account .woocommerce-orders-table a {
  color: var(--gold-light);
}

.woocommerce-Address,
.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2 {
  background: rgba(4, 17, 29, 0.35);
  border: 1px solid rgba(200, 169, 107, 0.14);
  padding: 1.35rem 1.25rem;
}

.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2 {
  float: none !important;
  width: 100% !important;
}

.woocommerce-Address-title h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.woocommerce-customer-details,
.woocommerce-order-details {
  margin-top: 1.75rem;
}

.woocommerce-customer-details address,
.woocommerce-order-details address {
  border: 1px solid rgba(200, 169, 107, 0.16);
  background: rgba(4, 17, 29, 0.35);
  padding: 1.15rem;
  font-style: normal;
  color: var(--muted);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: rgba(11, 36, 56, 0.85) !important;
  color: var(--ivory) !important;
  border-top: 0 !important;
  border: 1px solid rgba(200, 169, 107, 0.28) !important;
  padding: 1rem 1.15rem !important;
  margin: 0 0 1.5rem !important;
}

.woocommerce-message a,
.woocommerce-info a {
  color: var(--gold-light) !important;
}

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

/* Generic page content padding under fixed header */
body:not(.home) .page-content:not(.page-content--woo) {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4rem;
}

@media (max-width: 960px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout form.checkout,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #order_review,
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
  }

  .woocommerce-account .u-columns,
  .woocommerce-account .col2-set,
  .woocommerce-Addresses,
  .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }
}
