:root {
  --orange: #f7941d;
  --orange-dark: #e07f0a;
  --text: #1c1c1c;
  --muted: #767676;
  --bg: #ffffff;
  --border: #e4e4e4;
  --danger: #e0432b;
  --link: #1a73e8;
  --green: #2e8b45;
  --dark: #1c1c1c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

/* top black strip */
.topstrip { height: 6px; background: var(--dark); }

/* header */
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; gap: 40px; padding: 20px 30px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; font-size: 34px; font-weight: 900; letter-spacing: -0.5px; color: var(--dark); flex-shrink: 0; }
.logo-dot { background: var(--orange); border-radius: 50%; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; margin: 0 1px; }
.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a { font-weight: 600; font-size: 15px; color: var(--dark); }
.header-nav a.active { text-decoration: underline; }
.header-contact { margin-left: auto; text-align: right; }
.header-contact .phone { display: block; font-weight: 800; font-size: 18px; color: var(--dark); }
.header-contact .addr { color: var(--muted); font-size: 14px; }
.cart-icon { font-size: 26px; margin-left: 30px; position: relative; color: #555; }
.cart-badge { position: absolute; top: -6px; right: -10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; border-radius: 20px; padding: 1px 6px; }

/* dark catalog/search bar */
.catalog-bar { background: var(--dark); }
.catalog-bar-inner { display: flex; gap: 0; max-width: 1440px; margin: 0 auto; padding: 18px 30px; }
.btn-catalog { background: var(--orange); color: #fff; border: none; padding: 14px 22px; font-weight: 700; font-size: 15px; border-radius: 4px 0 0 4px; cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.search { display: flex; flex: 1; }
.search input { flex: 1; border: none; padding: 0 18px; font-size: 15px; outline: none; }
.search button { background: var(--orange); color: #fff; border: none; padding: 0 28px; font-weight: 700; font-size: 15px; border-radius: 0 4px 4px 0; cursor: pointer; }
.search button:hover { background: var(--orange-dark); }

/* breadcrumb bar */
.breadcrumb-bar { background: #f4f4f4; padding: 12px 30px; color: var(--muted); font-size: 13px; max-width: 1440px; margin: 0 auto; }

/* page title */
.page-title-wrap { max-width: 1440px; margin: 0 auto; padding: 30px 30px 0; }
.page-title { font-size: 34px; font-weight: 400; color: #2b2b2b; margin: 0; line-height: 1.3; max-width: 900px; }

/* disclaimer */
.disclaimer { max-width: 1440px; margin: 20px auto 0; padding: 0 30px; }
.disclaimer::before { content: ""; }
.disclaimer { background: none; }
.disclaimer { display: block; }
.disclaimer { color: #8a5a00; font-size: 13px; }
.disclaimer.error { color: #a12b1c; }

/* two-column layout */
.layout { max-width: 1440px; margin: 0 auto; padding: 20px 30px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.layout-main { min-width: 0; }

/* toolbar */
.toolbar { background: #f4f4f4; border-radius: 6px; padding: 18px 20px; display: flex; align-items: center; gap: 30px; margin-bottom: 20px; }
.toolbar-sort { display: flex; flex-direction: column; gap: 6px; }
.toolbar-label { font-size: 13px; color: var(--muted); }
.toolbar-sort select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 14px; }
.toolbar-check { display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* category pill grid */
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill-cat { border: 1px solid var(--border); border-radius: 6px; padding: 10px 16px; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--text); }
.pill-cat:hover { border-color: var(--orange); }
.pill-cat.active { border-color: var(--orange); background: #fff7ec; }
.pill-cat .count { background: #5a5a5a; color: #fff; border-radius: 50%; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; padding: 0 4px; }

/* sidebar */
.layout-side { border-left: 1px solid var(--border); padding-left: 30px; }
.side-title { font-size: 18px; margin-bottom: 16px; color: var(--text); }
.side-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; text-decoration: underline; font-size: 15px; color: var(--text); }
.side-link .arrow { text-decoration: none; border: 1px solid var(--border); border-radius: 4px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }

/* product grid */
.results-info { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.product-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.product-link { display: block; }
.product-thumb { aspect-ratio: 4/3; background: #fafafa; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #c9c9c9; font-size: 13px; margin-bottom: 12px; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.big { aspect-ratio: 1; max-width: 320px; font-size: 64px; }
.product-thumb.big img { object-fit: contain; background: #fff; }
.product-name { font-weight: 400; font-size: 15px; line-height: 1.4; text-decoration: underline; color: var(--text); }
.product-code { color: var(--muted); font-size: 12px; margin-top: 8px; }
.price-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 3px; color: #fff; }
.pill-retail { background: var(--orange); }
.pill-wholesale { background: #9c9c9c; }
.price { font-weight: 800; font-size: 20px; color: #1c1c1c; }
.price.big { font-size: 32px; }
.price-sub { font-size: 16px; color: #1c1c1c; font-weight: 700; }
.cart-btn-form { margin-left: auto; }
.btn-cart-icon { background: #fff; border: 1px solid var(--border); border-radius: 6px; width: 36px; height: 36px; font-size: 15px; cursor: pointer; }
.btn-cart-icon:hover { border-color: var(--orange); }
.btn-cart-icon:disabled { opacity: 0.35; cursor: not-allowed; }
.stock-line { font-size: 13px; color: var(--text); margin-top: 8px; }
.stock-link { color: var(--link); text-decoration: underline; }
.stock-out { color: var(--danger); }

/* detail page qty stepper still used */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin: 14px 0; }
.qty-stepper button { background: #f7f7f7; border: none; width: 36px; height: 36px; font-size: 16px; cursor: pointer; }
.qty-stepper input { width: 44px; height: 36px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 15px; }
.qty-of { color: var(--muted); font-size: 13px; margin-left: 10px; }
.btn-cart { background: var(--orange); color: #fff; border: none; padding: 10px; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 13px; }
.btn-cart:hover { background: var(--orange-dark); }
.btn-cart:disabled { background: #eee; color: #aaa; cursor: not-allowed; }
.btn-cart.big { padding: 16px; font-size: 16px; margin-top: 16px; border-radius: 8px; width: 100%; }

/* pagination */
.pagination { display: flex; gap: 6px; align-items: center; margin: 30px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 6px; font-size: 14px; color: var(--muted); }
.pagination a.active { background: var(--orange); color: #fff; font-weight: 700; }

/* product detail page (still uses narrow container) */
.container.narrow { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }
.breadcrumb { color: var(--link); font-size: 13px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--muted); margin: 0 4px; }
.product-detail h1 { font-size: 24px; margin: 10px 0 4px; font-weight: 700; }
.stock { font-size: 13px; color: var(--green); }
.stock.stock-out { color: var(--danger); }

/* cart / checkout (narrow container pages) */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.cart-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.cart-icon-img { font-size: 28px; color: #bbb; }
.cart-info { flex: 1; }
.cart-subtotal { font-weight: 800; }
.btn-remove { background: none; border: 1px solid var(--border); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; color: var(--danger); }
.cart-total { text-align: right; font-size: 18px; margin: 18px 0; }
.btn-checkout { display: block; text-align: center; background: var(--orange); color: #fff; padding: 14px; border-radius: 8px; font-weight: 800; border: none; cursor: pointer; font-size: 15px; width: 100%; }
.btn-checkout:hover { background: var(--orange-dark); }
.checkout-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.checkout-form label { font-weight: 600; font-size: 13px; margin-top: 8px; }
.checkout-form input, .checkout-form textarea { padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: inherit; }

/* footer */
.site-footer { background: #2b2b2b; color: #cfcfcf; margin-top: 40px; }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 30px; display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { }
.footer-label { color: #9a9a9a; font-size: 13px; margin-bottom: 6px; }
.footer-strong { color: #fff; font-weight: 700; font-size: 15px; }

/* floating naverh button */
.btn-top { position: fixed; right: 24px; bottom: 24px; background: var(--orange); color: #fff; padding: 12px 20px; border-radius: 6px; font-weight: 700; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.btn-top:hover { background: var(--orange-dark); }

/* admin (separate, unstyled to match reference — internal tool only) */
.admin-body { background: #fafafa; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.admin-login-card { max-width: 320px; margin: 15vh auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 30px; text-align: center; }
.admin-login-card input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; }
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 30px 16px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.status { padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; background: #eee; }
.status-new { background: #fff3cd; color: #7a5a00; }
.status-confirmed { background: #d4edda; color: #1e6b32; }
.status-done { background: #d0e5ff; color: #1a4c8a; }
.status-cancelled { background: #f8d7da; color: #a12b1c; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .layout-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 20px; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .header-contact { margin-left: 0; }
}
