/*
Theme Name: Lonely Stonie WP
Theme URI: http://localhost:8890
Author: Lonely Stonie Dev
Description: Theme classic tối giản cho các trang WooCommerce còn chạy trên WP (checkout, order-received, cart, my-account) của site headless Lonely Stonie.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ls-wp
*/

:root {
  --ls-ink: #1a1a1a;
  --ls-muted: #767676;
  --ls-line: #e5e5e5;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ls-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ls-ink); }

img { max-width: 100%; height: auto; }

.ls-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header: nền đen + logo trắng, khớp header storefront Nuxt ───────────── */
.ls-header {
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ls-header .ls-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ls-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.ls-brand img { height: 28px; width: auto; }

.ls-brand span {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ls-back {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}

.ls-back:hover,
.ls-brand:hover { opacity: 0.6; }

/* ── Nội dung ────────────────────────────────────────────────────────────── */
.ls-main { padding: 40px 0 64px; }

.ls-main h1,
.ls-main h2 { font-weight: 600; letter-spacing: -0.01em; }

.ls-main h1 { font-size: 28px; margin: 0 0 24px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.ls-footer {
  border-top: 1px solid var(--ls-line);
  padding: 24px 0;
  color: var(--ls-muted);
  font-size: 12px;
  text-align: center;
}

/* ── Nút chính: đen chữ trắng (Woo classic + block) ──────────────────────── */
/* ponytail: chỉ nhắm nút hành động chính, không quét `button` chung — block
   checkout dùng <button> cho cả toggle/edit, tô đen hết là vỡ giao diện. */
.ls-main .button,
.ls-main input[type="submit"],
#place_order,
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 2px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  cursor: pointer;
}

.ls-main .button:hover,
#place_order:hover,
.wc-block-components-checkout-place-order-button:hover { opacity: 0.85; }

/* ── Form Woo classic ────────────────────────────────────────────────────── */
.ls-main input[type="text"],
.ls-main input[type="email"],
.ls-main input[type="tel"],
.ls-main input[type="password"],
.ls-main textarea,
.ls-main select {
  border: 1px solid var(--ls-line);
  border-radius: 2px;
  padding: 10px 12px;
  font: inherit;
  width: 100%;
}

.ls-main table { border-collapse: collapse; width: 100%; }

.ls-main th,
.ls-main td { border-bottom: 1px solid var(--ls-line); padding: 10px 8px; text-align: left; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-left: 3px solid #000;
  background: #f7f7f7;
  padding: 12px 16px;
  margin: 0 0 20px;
  list-style: none;
}

.ls-back-to-store { margin-top: 24px; font-weight: 500; }

@media (max-width: 640px) {
  /* Woo float 4 ô "Order number / Date / Total / Payment" thành 1 hàng → chồng
     lên nhau ở màn hẹp. */
  .woocommerce-order-overview { padding: 0; }

  .woocommerce-order-overview li {
    float: none !important;
    width: auto !important;
    border: 0 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
  }

  .ls-header .ls-wrap { height: 56px; }
  .ls-brand span { display: none; }
  .ls-main { padding: 24px 0 48px; }
  .ls-main h1 { font-size: 22px; }
}
