/* ============ Base ============ */
:root {
  --bg: #ffffff;
  --surface: #f5f6f7;
  --border: #e2e5e8;
  --text: #14171c;
  --muted: #6b7280;
  --primary: #14171c;        /* Sunlure ink black */
  --primary-dark: #000000;
  --accent: #e8590c;         /* lure orange - sale / highlights only */
  --water: #0f4c5c;          /* deep water teal - section tint */
  --danger: #c92a2a;
  --ok: #2b8a3e;
  --warn-bg: #fff4e6;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
  --font-head: 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3, .brand, .stat-num { font-family: var(--font-head); }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 800; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; }
a { color: var(--water); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.9rem; margin: .6em 0 .4em; }
h2 { font-size: 1.35rem; margin: 1.2em 0 .5em; }
h3 { font-size: 1.05rem; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.container.narrow-xs { max-width: 420px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mt { margin-top: 1.6rem; }
.site-main { min-height: 55vh; padding-bottom: 48px; }

/* ============ Buttons / forms ============ */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; font-size: .95rem;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: #4a4f57; cursor: not-allowed; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.92); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--muted); }
.btn-light { background: #fff; color: #111; }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; font-size: .9rem; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

label { display: block; margin-bottom: 12px; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=number], input[type=tel], input[type=file], select, textarea {
  width: 100%; padding: 9px 12px; margin-top: 4px;
  border: 1px solid var(--border); border-radius: 8px; font-size: .95rem;
  font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #bcd0f7; border-color: var(--primary); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: auto; margin: 0; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: .93rem; }
.alert-ok { background: #dcfce7; color: #14532d; }
.alert-err { background: #fee2e2; color: #7f1d1d; }
.alert-warn { background: var(--warn-bg); color: #713f12; }

/* ============ Header ============ */
.announcement {
  background: var(--text); color: #fff; text-align: center;
  font-size: .82rem; padding: 7px 12px;
}
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 900; font-size: 1.25rem; color: var(--text); white-space: nowrap; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 36px; width: auto; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; gap: 18px; flex: 1; }
.main-nav a { color: var(--text); font-size: .95rem; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.search-form input[type=search] { width: 180px; margin: 0; padding: 7px 12px; }
.lang-select {
  margin: 0; padding: 6px 8px; font: inherit; font-size: .82rem; font-weight: 700;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text);
  cursor: pointer;
}
.icon-link { font-size: 1.15rem; position: relative; text-decoration: none; }
.cart-badge {
  position: absolute; top: -7px; right: -10px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .68rem; padding: 1px 5px; min-width: 17px; text-align: center;
}

/* ============ Breadcrumbs ============ */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 14px 0 4px; }
.breadcrumbs span { margin: 0 6px; }

/* ============ Hero / sections ============ */
.hero { background: linear-gradient(160deg, #14171c 0%, #1d2b36 55%, #0f4c5c 130%); color: #fff; }
.hero-full {
  background-size: cover; background-position: center 62%;
  position: relative; isolation: isolate;
}
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,14,18,.62) 0%, rgba(10,14,18,.38) 45%, rgba(10,14,18,.66) 100%);
}
.hero-full .hero-inner {
  min-height: 560px; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; gap: 0; padding: 110px 20px;
}
.hero-inner { display: flex; align-items: center; gap: 36px; padding: 64px 20px; }
.hero-text h1 { font-size: 2.6rem; margin: 0 0 12px; color: #fff; }
.hero-full .hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.06; text-shadow: 0 2px 18px rgba(0,0,0,.45);
  max-width: 16ch;
}
.hero-text p { font-size: 1.12rem; color: #c9d4da; margin: 0 0 22px; max-width: 46ch; }
.hero-full .hero-text p { color: #e6edf0; text-shadow: 0 1px 8px rgba(0,0,0,.5); font-weight: 500; }
.hero .btn-light { background: #fff; color: #14171c; font-weight: 700; }
.hero-full .btn-light { text-transform: uppercase; letter-spacing: .06em; padding: 14px 34px; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.section { padding: 36px 0 8px; }
.section-title { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .05em; font-size: 1.45rem; }
.narrow .section-title { margin-top: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.feature {
  display: flex; align-items: center; gap: 10px;
  background: #f0f5f6; border: 1px solid #dbe6e8; border-radius: var(--radius);
  padding: 14px 16px; font-size: .93rem; font-weight: 500;
}
.feature-icon { font-size: 1.4rem; }

.promo { color: #fff; padding: 40px 0; margin-top: 28px; }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.promo h2 { margin: 0 0 6px; }
.promo p { margin: 0; opacity: .85; }

.richtext { line-height: 1.7; }
.richtext img { border-radius: var(--radius); }
.brand-statement {
  text-align: center; padding: 72px 20px 56px;
}
.brand-statement h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); text-transform: uppercase;
  letter-spacing: .05em; line-height: 1.1; margin: 0 0 14px; max-width: 22ch; margin-inline: auto;
}
.brand-statement p { color: var(--muted); max-width: 58ch; margin: 0 auto 22px; font-size: 1.05rem; }

.faq-item { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 10px 0 0; color: #374151; }

.subscribe-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.subscribe-form { display: flex; gap: 10px; max-width: 440px; margin: 14px auto 0; }
.subscribe-form input { margin: 0; }

/* ============ Category grid ============ */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: block; box-shadow: var(--shadow); color: #fff;
}
.category-card img {
  width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover;
  transition: transform .35s ease;
}
.category-card:hover { text-decoration: none; color: #fff; }
.category-card:hover img { transform: scale(1.045); }
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,18,0) 40%, rgba(10,14,18,.72) 100%);
}
.category-name {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

/* ============ Product cards / grids ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 18px 0; }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card > a { color: var(--text); display: block; }
.product-card > a:hover { text-decoration: none; }
.product-thumb { aspect-ratio: 1/1; background: var(--surface); position: relative; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .thumb-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.product-card:hover .thumb-alt { opacity: 1; }
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #fff; color: #14171c; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; padding: 4px 9px; border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.product-badge.badge-sale { left: auto; right: 10px; background: var(--accent); color: #fff; }
.product-badge.badge-hot { background: #14171c; color: #fff; }

/* ============ Nays-style collection tiles / brand story ============ */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tile img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,18,0) 45%, rgba(10,14,18,.7) 100%);
}
.tile-label {
  position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff;
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.tile-label small { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .12em; opacity: .85; margin-bottom: 2px; }
.story-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-split > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.story-text { background: #14171c; color: #fff; padding: 44px 38px; display: flex; flex-direction: column; justify-content: center; }
.story-text h2 { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; font-size: 1.6rem; }
.story-text p { color: #c9d4da; margin: 0 0 10px; font-size: .98rem; }
.story-text .btn { align-self: flex-start; margin-top: 12px; }
@media (max-width: 760px) {
  .tile-grid { grid-template-columns: 1fr; }
  .story-split { grid-template-columns: 1fr; }
}
.product-name { font-size: .92rem; margin: 12px 12px 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.product-price { padding: 0 12px 12px; margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price { font-weight: 700; color: var(--text); }
.compare { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-pending { background: var(--warn-bg); color: #713f12; }
.badge-paid, .badge-shipped, .badge-completed, .badge-active { background: #dcfce7; color: #14532d; }
.badge-review { background: #fef9c3; color: #713f12; }
.badge-cancelled { background: #f3f4f6; color: #4b5563; }
/* chat-lead interests + CRM statuses */
.badge-buy, .badge-wholesale { background: #ffedd5; color: #9a3412; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-other { background: #f3f4f6; color: #4b5563; }
.badge-new { background: #fee2e2; color: #991b1b; }
.badge-contacted { background: #fef9c3; color: #713f12; }
.badge-quoted { background: #e0e7ff; color: #3730a3; }
.badge-customer { background: #dcfce7; color: #14532d; }
.badge-closed { background: #f3f4f6; color: #4b5563; }

/* ============ Filter / pagination ============ */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; }
.filter-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: .86rem; color: var(--text); background: #fff; }
.chip:hover { text-decoration: none; border-color: var(--muted); }
.chip-active { background: var(--text); color: #fff; border-color: var(--text); }
.sort-form label { margin: 0; font-size: .88rem; }
.sort-form select { width: auto; margin: 0 0 0 6px; padding: 6px 10px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 26px 0; }
.pagination a { border: 1px solid var(--border); border-radius: 8px; padding: 6px 13px; color: var(--text); }
.pagination a:hover { text-decoration: none; border-color: var(--muted); }
.pagination .page-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ Product detail ============ */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; margin: 20px 0; }
.main-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 1/1; object-fit: cover; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumb-active { border-color: var(--primary); }
.product-price-lg .price { font-size: 1.6rem; }
.add-to-cart { margin: 20px 0; }
.variant-group, .qty-group { margin-bottom: 14px; max-width: 280px; }
.variant-group:has(.size-btns) { max-width: none; }
.size-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--bg, #fff); color: inherit; font-size: .88rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; line-height: 1.3; }
.size-btn:hover { border-color: var(--muted); }
.size-btn.active { border-color: var(--primary, #0a7d4f); box-shadow: 0 0 0 1px var(--primary, #0a7d4f); font-weight: 600; }
.size-key { display: block; font-weight: 600; }
.size-spec { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; font-weight: 400; white-space: nowrap; }
.qty-group input { width: 90px; }
.feedback { margin-top: 10px; font-size: .92rem; }
.feedback-ok { color: var(--ok); }
.feedback-err { color: var(--danger); }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 10px 0; margin: 18px 0; }
.product-desc { margin-top: 18px; color: #374151; }
.product-desc h3 { margin: 22px 0 8px; font-size: 1.02rem; }
.product-desc ul { padding-left: 20px; margin: 10px 0; }
.product-desc li { margin: 5px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .92rem; }
.spec-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { width: 40%; color: var(--muted); }

/* Structured specifications block (metric + imperial) */
.spec-block { margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.spec-block h2 { margin: 0 0 10px; font-size: 1.02rem; }
.spec-block .spec-table { margin: 0; }
.spec-block .spec-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 12px; border-bottom: 2px solid var(--border); }
.spec-block .spec-table td { white-space: nowrap; }
.spec-block .spec-table td:first-child { width: auto; color: inherit; font-weight: 600; }
.spec-block .spec-extra td { white-space: normal; border-bottom: none; padding-top: 10px; font-size: .84rem; }

/* ============ Cart / checkout ============ */
.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: #fff; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 10px; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-prod { display: flex; align-items: center; gap: 12px; }
.cart-prod img { border-radius: 8px; object-fit: cover; }
.cart-prod a { color: var(--text); font-weight: 600; }
.cart-qty { width: 70px; margin: 0; }
.cart-summary { max-width: 380px; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: .95rem; }
.row-total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.05rem; }

.checkout-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 30px; align-items: start; margin: 18px 0; }
.checkout-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.paypal-buttons { margin-top: 16px; min-height: 46px; }
.order-snapshot { max-width: 420px; margin: 18px auto; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.success-icon { font-size: 52px; }

/* ============ Auth / account ============ */
.auth-form { max-width: 420px; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* ============ Footer ============ */
.site-footer { border-top: 3px solid var(--primary); background: #14171c; color: #c9d4da; padding: 36px 0 20px; margin-top: 40px; font-size: .92rem; }
.site-footer strong { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner nav a { color: #c9d4da; }
.copyright { margin-top: 18px; font-size: .8rem; color: #8a949c; }

/* ============ Admin ============ */
.admin-wrap { display: flex; min-height: 100vh; background: var(--surface); }
.admin-sidebar { width: 220px; background: #111827; color: #e5e7eb; display: flex; flex-direction: column; padding: 18px 0; position: sticky; top: 0; height: 100vh; }
.admin-brand { font-weight: 700; padding: 0 18px 16px; border-bottom: 1px solid #1f2937; font-size: .95rem; }
.admin-sidebar nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; }
.admin-sidebar nav a { color: #cbd5e1; padding: 10px 18px; font-size: .92rem; }
.admin-sidebar nav a:hover { background: #1f2937; text-decoration: none; color: #fff; }
.admin-sidebar nav a.active { background: #1d4ed8; color: #fff; }
.admin-side-bottom { padding: 12px 18px; border-top: 1px solid #1f2937; display: flex; flex-direction: column; gap: 8px; }
.admin-side-bottom a { color: #cbd5e1; font-size: .88rem; }
.admin-main { flex: 1; padding: 28px 32px; max-width: 1100px; }
.admin-main h1 { margin-top: 0; }
.admin-head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-num { font-size: 1.5rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .82rem; }
.stat-warn { border-color: #f59e0b; }
.admin-form { max-width: 100%; }
.admin-two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.admin-login-card { width: 360px; }
.row-actions { display: flex; gap: 10px; align-items: center; }
.row-actions form { display: inline; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form select { width: auto; margin: 0; }
.block-card { margin-bottom: 14px; }
.block-card summary { cursor: pointer; font-size: 1rem; }
.block-card > form, .block-actions { margin-top: 14px; }
.faq-edit { border-left: 3px solid var(--border); padding-left: 12px; margin-bottom: 8px; }

/* ============ Search page ============ */
.search-page-form { display: flex; gap: 10px; max-width: 520px; margin: 12px 0 20px; }
.search-page-form input { margin: 0; }

/* ============ Shipping promo note ============ */
.ship-note {
  margin: 10px 0 14px; padding: 10px 12px; border-radius: 8px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: 0.9rem; line-height: 1.45;
}
.ship-note-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; font-weight: 600; }
.ship-bar { margin-top: 8px; height: 6px; border-radius: 99px; background: #fee2c5; overflow: hidden; }
.ship-bar-fill { height: 100%; border-radius: 99px; background: #ea580c; transition: width 0.35s ease; }
.ship-note-ok .ship-bar { background: #d1fae5; }

/* ============ Blog ============ */
.blog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 8px; }
.blog-head p { max-width: 640px; margin: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 18px 0 26px; }
.blog-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.blog-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
a.blog-card { color: inherit; }
a.blog-card:hover { text-decoration: none; }
.blog-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-body h2 { font-size: 1.08rem; margin: 0; line-height: 1.35; }
.blog-body h3 { font-size: 0.98rem; margin: 0; line-height: 1.35; }
.blog-body p { margin: 0; font-size: 0.92rem; }
.blog-meta { font-size: 0.82rem; }
.blog-more { font-weight: 600; font-size: 0.9rem; margin-top: auto; }

.article-wrap { padding: 8px 20px 40px; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 14px 0 20px; }
.blog-lang-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.blog-lang-bar .chip { font-size: 13px; }
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: #fff7e0; border: 1px solid #f0d28a; color: #6b4c00;
  border-radius: var(--radius); padding: 12px 16px; margin: 14px 0 4px; font-size: 14px;
}
.draft-preview-bar .btn { padding: 6px 14px; font-size: 13px; }
.article-content { font-size: 1.02rem; line-height: 1.75; }
.article-content h2 { margin-top: 1.6em; }
.article-content h3 { margin-top: 1.3em; }
.article-content ul, .article-content ol { padding-left: 22px; }
.article-content li { margin: 6px 0; }
.article-content img { border-radius: 8px; margin: 14px 0; }
.article-content blockquote {
  margin: 16px 0; padding: 10px 16px; border-left: 4px solid var(--water);
  background: var(--surface); border-radius: 0 8px 8px 0;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.94rem; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.article-content th { background: var(--surface); }
.article-tags { margin: 22px 0 0; }
.article-product { margin-top: 24px; }
.article-product-inner { display: flex; gap: 18px; align-items: center; }
.article-product-inner img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.article-product h3 { margin: 2px 0 6px; }
.article-share { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }

.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 26px; }
.comment { border-top: 1px solid var(--border); padding: 14px 0; }
.comment-head { display: flex; gap: 8px; align-items: baseline; }
.comment-body { margin: 4px 0 0; white-space: pre-wrap; }
.comment.reply { margin: 10px 0 0 20px; padding: 10px 14px; background: var(--surface); border-radius: 8px; border-top: none; }
.comment-media { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.comment-media img, .comment-media video { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.comment-media iframe { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.comment-form h3 { margin-top: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.admin-stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }
.admin-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 16px; min-width: 110px;
}
.admin-stat span { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; }
.admin-stat { font-size: 0.82rem; color: var(--muted); }
.comment-mod-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 8px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .product-detail, .checkout-grid, .account-grid, .admin-two-col { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; padding: 36px 20px; }
  .hero-text h1 { font-size: 1.8rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .search-form input[type=search] { width: 110px; }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .admin-side-bottom { border: none; flex-direction: row; }
  .admin-main { padding: 20px; }
  .cart-summary { margin-left: 0; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .blog-head { flex-direction: column; }
}
@media (max-width: 640px) {
  .blog-grid, .blog-grid.compact { grid-template-columns: 1fr; }
  .article-product-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- 自定义文件选择（统一英文按钮，替代浏览器原生本地化按钮） ---- */
.file-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.file-field .file-pick { white-space: nowrap; padding: 8px 14px; font-size: .9rem; }
/* 视觉隐藏但保留可访问性（键盘/读屏仍可用） */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.file-input:focus-visible + .file-pick { outline: 2px solid var(--primary); }
.file-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 结账页：收货国 → 语言/货币切换提示 ---- */
.country-lang-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px;
  padding: 8px 10px; border-radius: 8px; background: var(--bg-soft, #f3f4f6);
  border: 1px solid var(--border, #e5e7eb); font-size: .9rem; }
.country-lang-hint[hidden] { display: none; }
.btn-link { background: none; border: none; padding: 0; color: var(--primary, #0e7490);
  font-weight: 600; text-decoration: underline; cursor: pointer; font-size: .9rem; }
.country-lang-hint .muted { cursor: pointer; user-select: none; padding: 0 4px; }

/* Hero artwork is now a real <img> layer instead of a CSS background, so it can
   be preloaded and served as WebP. It sits behind the gradient scrim (::before). */
.hero-full .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%; z-index: -2; pointer-events: none;
}
.hero-full > .hero-inner { position: relative; z-index: 1; }
/* Safety net: never let an image overflow its column */
.hero-full img, .richtext img, .article-content img { max-width: 100%; height: auto; }

/* ============ About page ============ */
/* Lede sits above the fold: one sentence carrying the whole brand claim. */
.about-lede {
  font-family: var(--font-body);
  font-size: 1.22rem;
  line-height: 1.62;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 2rem;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--water);
}
/* Fact strip: the four numbers a wholesale buyer screens for first. */
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 2.5rem;
}
.about-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
}
.about-fact-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--water);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.about-fact-plus { font-size: 0.8em; vertical-align: 0.05em; }
.about-fact-unit { font-size: 0.62em; margin-left: 1px; letter-spacing: 0; }
.about-fact-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--muted);
}
/* Body: cap line length for readability, give each section breathing room. */
.richtext p { max-width: 68ch; }
.richtext h2 {
  font-size: 1.16rem;
  margin: 2.4rem 0 .85rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--border);
  max-width: 68ch;
}
.richtext ul { max-width: 68ch; padding-left: 1.15rem; }
.richtext li { margin-bottom: .45rem; }
/* Partner terms: a checklist reads faster than four claims buried in prose. */
.about-points {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}
.about-points li { position: relative; padding-left: 22px; margin: 0; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  background: var(--water);
  border-radius: 2px;
}
/* Closing claim gets its own surface so it lands as the takeaway. */
.about-tagline {
  margin: 2.6rem 0 0;
  padding: 22px 26px;
  background: var(--water);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  line-height: 1.42;
  max-width: 68ch;
}
.about-tagline span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: 0;
  opacity: .82;
}
@media (max-width: 640px) {
  .about-lede { font-size: 1.08rem; padding-left: 14px; }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-points { grid-template-columns: 1fr; }
  .about-tagline { font-size: 1.05rem; padding: 18px 20px; }
}
