/* Secondary — wellness / performance palette */
:root {
  --bg: #1a1410;
  --bg-card: #241c16;
  --surface: #2f241c;
  --border: #4a3b30;
  --text: #faf6f1;
  --muted: #b9a99a;
  --accent: #f97316;
  --accent-soft: #fb923c;
  --danger: #fca5a5;
  --success: #86efac;
  --radius: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-head: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(900px 500px at 0% 0%, #7c2d12 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 10%, #ca8a04 0%, transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 20, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
button.cart-link {
  -webkit-appearance: none;
  appearance: none;
}
.cart-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.cart-count {
  background: var(--accent);
  color: #1c0a05;
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--surface) 0%, #1a120c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.product-body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h2 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.product-body .sku {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.product-body .desc {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-soft);
}

.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #1c0a05;
}
.btn-primary:hover {
  background: #fb923c;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
}

.btn-block {
  width: 100%;
}

.checkout-page .woocommerce-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.checkout-page .woocommerce-notice.info {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--text);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-page h1.page-title {
  font-family: var(--font-head);
  font-size: 1.65rem;
  margin: 0 0 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.woocommerce-billing-fields h3,
#order_review_heading {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  margin-bottom: 0.85rem;
}
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
}

.form-row-first,
.form-row-last {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .form-row-first,
  .form-row-last {
    grid-template-columns: 1fr;
  }
}

#order_review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 5.5rem;
}

.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.shop_table th,
.shop_table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.shop_table .product-name {
  font-weight: 500;
}
.shop_table .product-total {
  text-align: right;
  white-space: nowrap;
}

.order-total th,
.order-total td {
  border-bottom: none;
  padding-top: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

#payment {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.payment-section-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.payment-method-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}

.payment-method-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.payment-card-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.card-brand-icon {
  display: block;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-brand-icon text {
  user-select: none;
}

#payment ul.payment_methods {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
}

#payment ul.payment_methods > li.wc_payment_method {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
}

#payment ul.payment_methods > li > .input-radio {
  margin: 0.7rem 0 0 0.1rem;
  flex-shrink: 0;
}

#payment ul.payment_methods > li > label {
  flex: 1 1 180px;
  min-width: 0;
  cursor: pointer;
  font-weight: 500;
}

#payment ul.payment_methods > li > .payment_box {
  flex: 1 1 100%;
  margin: 0.15rem 0 0 calc(1.1rem + 0.75rem);
  max-width: 100%;
}

#payment .stripe-like {
  margin-top: 0.5rem;
}

.payment_box {
  padding: 0.75rem;
  margin: 0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.stripe-like {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: #120e0b;
}
.stripe-like .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .stripe-like .row {
    grid-template-columns: 1fr;
  }
}
.stripe-like small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}

.place-order {
  margin-top: 1rem;
}

.woocommerce-error {
  background: rgba(252, 165, 165, 0.12);
  border: 1px solid rgba(252, 165, 165, 0.45);
  color: #fecaca;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.order-confirmation {
  max-width: 640px;
  margin: 0 auto;
}
.order-confirmation .woocommerce-order {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.order-confirmation h1 {
  font-family: var(--font-head);
  margin-top: 0;
}

.order-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.order-details li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-cart-msg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* Payment handoff page */
.payment-shell {
  max-width: 480px;
  margin: 0 auto;
}
.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.payment-card h1 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}
.payment-card .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.summary-total {
  font-weight: 700;
  margin: 0.75rem 0 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-toast {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1100;
  width: min(calc(100% - 2rem), 28rem);
  margin-top: 4.75rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(249, 115, 22, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -120%, 0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.cart-toast--visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.qty-stepper__btn {
  width: 2.25rem;
  height: 2.35rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-stepper__btn:hover {
  background: rgba(249, 115, 22, 0.12);
}

.qty-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper__btn:disabled:hover {
  background: transparent;
}

.qty-stepper__value {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 0.35rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.cart-drawer--open {
  pointer-events: auto;
  visibility: visible;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 4, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer--open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 400px);
  max-width: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer--open .cart-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer__close:hover {
  border: 1px solid var(--border);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 1rem;
}

.cart-drawer__empty {
  margin: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-drawer__line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-drawer__line-title {
  font-weight: 600;
  font-size: 0.92rem;
  grid-column: 1 / -1;
}

.cart-drawer__line-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-drawer__line .qty-stepper {
  justify-self: end;
}

.cart-drawer__foot {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.cart-drawer__foot .btn {
  text-align: center;
  text-decoration: none;
  display: block;
}

body.cart-drawer-open {
  overflow: hidden;
}
