:root {
  --primary: #e8873a;
  --primary-dark: #d0702a;
  --bg: #f7f5f2;
  --white: #fff;
  --text: #3a322e;
  --text-light: #8a7e75;
  --border: #e0d8cf;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 8px;
  --nav-bg: #4a3728;
  --success: #5a8f4a;
  --danger: #c0392b;
  --star: #e8873a;
  --red: #d03020;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Noto Sans JP', 'Microsoft YaHei', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height:1.6; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

.header-custom { background: var(--nav-bg); color: #fff; }
.header-top { display:flex; justify-content:space-between; align-items:center; padding:6px 24px; font-size:12px; border-bottom:1px solid rgba(255,255,255,0.1); }
.header-top a { color:rgba(255,255,255,0.7); margin-left:16px; font-size:12px; }
.header-top a:hover { color:#fff; }
.lang-switch { display:inline-flex; gap:2px; background:rgba(255,255,255,0.1); border-radius:4px; padding:2px; }
.lang-btn { padding:2px 8px; font-size:11px; color:rgba(255,255,255,0.6); border-radius:3px; text-decoration:none; margin:0; transition:all 0.2s; }
.lang-btn:hover { color:#fff; background:rgba(255,255,255,0.15); }
.lang-btn.active { color:#fff; background:var(--primary); font-weight:600; }
.header-main { display:flex; align-items:center; padding:10px 24px; gap:20px; }
.logo-custom { font-size:22px; font-weight:700; color:var(--primary); white-space:nowrap; }
.logo-custom small { color:#ccc; font-size:11px; margin-left:6px; font-weight:400; }
.search-box { flex:1; display:flex; max-width:480px; }
.search-box input { flex:1; padding:9px 14px; border:none; border-radius:var(--radius) 0 0 var(--radius); font-size:13px; outline:none; }
.search-box button { padding:9px 18px; background:var(--primary); border:none; color:#fff; border-radius:0 var(--radius) var(--radius) 0; cursor:pointer; font-size:13px; white-space:nowrap; }
.search-box button:hover { background:var(--primary-dark); }
.header-actions { display:flex; gap:12px; align-items:center; }
.cart-btn { background:transparent; border:none; color:#fff; cursor:pointer; font-size:13px; padding:6px 10px; border-radius:var(--radius); position:relative; }
.cart-btn:hover { background:rgba(255,255,255,0.1); }
.cart-count { position:absolute; top:-2px; right:-2px; background:var(--primary); color:#fff; font-size:10px; padding:1px 5px; border-radius:8px; min-width:16px; text-align:center; }

.nav-custom { background:var(--white); border-bottom:1px solid var(--border); }
.nav-inner { display:flex; padding:0 24px; max-width:1200px; margin:0 auto; }
.nav-categories { padding:11px 18px; background:var(--primary); color:#fff; font-weight:600; cursor:pointer; position:relative; white-space:nowrap; flex-shrink:0; font-size:13px; }
.nav-categories:hover .dropdown { display:block; }
.dropdown { display:none; position:absolute; top:100%; left:0; background:var(--white); color:var(--text); min-width:180px; box-shadow:0 4px 16px rgba(0,0,0,0.12); z-index:100; border-radius:0 0 var(--radius) var(--radius); }
.dropdown li { padding:10px 18px; border-bottom:1px solid var(--border); cursor:pointer; font-size:12px; display:flex; justify-content:space-between; }
.dropdown li:hover { background:#f7f5f2; color:var(--primary); }
.nav-links { display:flex; align-items:center; gap:2px; }
.nav-links a { padding:11px 14px; white-space:nowrap; font-size:13px; color:var(--text); }
.nav-links a:hover, .nav-links a.active { color:var(--primary); font-weight:600; }

.main-custom { max-width:1240px; margin:20px auto; padding:0 20px; }
.sidebar { width:200px; flex-shrink:0; }
.content { flex:1; min-width:0; display:flex; gap:20px; }

.sidebar-box { background:var(--white); border-radius:var(--radius); padding:14px; margin-bottom:14px; box-shadow:var(--shadow); }
.sidebar-box h3 { font-size:14px; margin-bottom:10px; padding-bottom:6px; border-bottom:2px solid var(--primary); }
.sidebar-box li { padding:5px 0; font-size:12px; cursor:pointer; color:var(--text-light); }
.sidebar-box li:hover, .sidebar-box li.active { color:var(--primary); }
.price-range { display:flex; gap:6px; margin-top:6px; }
.price-range input { width:70px; padding:5px; border:1px solid var(--border); border-radius:4px; font-size:11px; }
.price-range button { padding:5px 10px; background:var(--primary); color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:11px; }

.content-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; flex-wrap:wrap; gap:8px; }
.content-header h2 { font-size:18px; }
.content-header h2::before { content:''; display:inline-block; width:3px; height:16px; background:var(--primary); border-radius:2px; margin-right:8px; vertical-align:middle; }
.sort-bar { display:flex; gap:4px; background:var(--white); border-radius:var(--radius); padding:2px; }
.sort-btn { padding:6px 12px; border:none; border-radius:6px; cursor:pointer; font-size:12px; background:transparent; color:var(--text-light); }
.sort-btn.active { background:var(--primary); color:#fff; }

.product-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px; }
.product-card { background:var(--white); border-radius:6px; overflow:hidden; box-shadow:var(--shadow); transition:transform 0.15s; cursor:pointer; }
.product-card:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,0.1); }
.product-img { height:90px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:28px; position:relative; background:#d0dde7; }
.product-tag { position:absolute; top:4px; left:4px; background:var(--primary); color:#fff; padding:1px 5px; border-radius:2px; font-size:9px; }
.product-body { padding:6px 8px; }
.product-title { font-size:11px; font-weight:600; margin-bottom:2px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.3; }
.product-meta { font-size:10px; color:var(--text-light); margin-bottom:4px; }
.product-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:4px; }
.product-price { color:var(--red); font-size:13px; font-weight:700; }
.product-original { font-size:10px; color:#bbb; text-decoration:line-through; margin-left:3px; }
.add-cart-btn { padding:3px 8px; background:var(--primary); color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:10px; white-space:nowrap; }
.add-cart-btn:hover { background:var(--primary-dark); }
.buy-now-btn { padding:3px 6px; background:var(--red); color:#fff; border:none; border-radius:4px; cursor:pointer; font-size:10px; white-space:nowrap; }
.buy-now-btn:hover { background:#b02020; }

.banner-area { display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; margin-bottom:14px; }
.banner-card { height:80px; border-radius:var(--radius); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; cursor:pointer; transition:transform 0.2s,box-shadow 0.2s; text-shadow:0 1px 2px rgba(0,0,0,0.3); position:relative; overflow:hidden; }
.banner-card:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,0.15); }
.banner-tag { position:absolute; top:6px; right:8px; background:rgba(255,255,255,0.3); color:#fff; padding:1px 6px; border-radius:3px; font-size:9px; font-weight:400; }
.banner-b1 { background:linear-gradient(135deg, #e74c3c, #ff6b6b); }
.banner-b2 { background:linear-gradient(135deg, #2ecc71, #27ae60); }
.banner-b3 { background:linear-gradient(135deg, #3498db, #2980b9); }
.banner-b4 { background:linear-gradient(135deg, #f39c12, #e67e22); }
.banner-b5 { background:linear-gradient(135deg, #9b59b6, #8e44ad); }

.btn-load-more { padding:8px 24px; background:var(--white); border:1px solid var(--border); border-radius:var(--radius); cursor:pointer; font-size:13px; color:var(--text-light); }
.btn-load-more:hover { border-color:var(--primary); color:var(--primary); background:#fdf2e8; }
.pagination-custom { display:flex; justify-content:center; gap:4px; margin:24px 0 8px; flex-wrap:wrap; }
.page-btn { padding:6px 12px; border:1px solid var(--border); background:var(--white); border-radius:4px; cursor:pointer; font-size:12px; min-width:32px; text-align:center; }
.page-btn:hover { border-color:var(--primary); color:var(--primary); }
.page-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.page-btn:disabled { opacity:0.4; cursor:default; }
.page-info { text-align:center; font-size:12px; color:var(--text-light); margin-bottom:16px; }

.breadcrumb-custom { font-size:12px; color:var(--text-light); margin-bottom:14px; }
.breadcrumb-custom a { color:var(--primary); }
.breadcrumb-custom span { margin:0 6px; }
.detail-panel { background:var(--white); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.detail-top { display:flex; gap:28px; }
.detail-img-wrap { width:380px; height:320px; border-radius:var(--radius); display:flex; align-items:center; justify-content:center; color:#fff; font-size:80px; flex-shrink:0; position:relative; background:#d0dde7; }
.detail-info { flex:1; min-width:0; }
.detail-info h1 { font-size:20px; margin-bottom:8px; line-height:1.3; }
.detail-rating { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--star); margin-bottom:8px; }
.detail-rating .stars { color:var(--star); }
.detail-price-block { margin:14px 0; }
.detail-price-block .current { font-size:26px; color:var(--red); font-weight:700; }
.detail-price-block .original { font-size:15px; color:#bbb; text-decoration:line-through; margin-left:10px; }
.detail-brief { color:var(--text-light); font-size:13px; margin-bottom:12px; line-height:1.6; }
.detail-actions { display:flex; gap:10px; margin-top:16px; }
.qty-input { width:50px; padding:8px; border:1px solid var(--border); border-radius:var(--radius); text-align:center; font-size:14px; }
.buy-now { padding:10px 32px; background:var(--primary); color:#fff; border:none; border-radius:var(--radius); font-size:15px; cursor:pointer; font-weight:600; }
.buy-now:hover { background:var(--primary-dark); }
.detail-sections { margin-top:28px; }
.detail-sections h3 { font-size:15px; margin-bottom:10px; padding-bottom:6px; border-bottom:2px solid var(--primary); }
.spec-table { width:100%; border-collapse:collapse; margin-bottom:16px; }
.spec-table td { padding:8px 12px; border-bottom:1px solid var(--border); font-size:12px; }
.spec-table td:first-child { color:var(--text-light); width:140px; }
.product-description { font-size:13px; line-height:1.8; color:var(--text); }

.cart-sidebar { position:fixed; right:-400px; top:0; width:380px; height:100vh; background:var(--white); box-shadow:-4px 0 20px rgba(0,0,0,0.15); z-index:300; transition:right 0.3s; display:flex; flex-direction:column; }
.cart-sidebar.open { right:0; }
.cart-header { padding:14px 18px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.cart-close { background:none; border:none; font-size:20px; cursor:pointer; }
.cart-items { flex:1; overflow-y:auto; padding:14px 18px; }
.cart-item { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.cart-item-img { width:50px; height:50px; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; flex-shrink:0; background:#d0dde7; }
.cart-item-info { flex:1; font-size:12px; }
.cart-item-title { font-weight:500; }
.cart-item-price { color:var(--red); font-weight:600; }
.cart-footer { padding:14px 18px; border-top:1px solid var(--border); }
.cart-total { display:flex; justify-content:space-between; font-size:16px; font-weight:700; margin-bottom:10px; }
.checkout-btn { width:100%; padding:12px; background:var(--primary); color:#fff; border:none; border-radius:var(--radius); font-size:15px; cursor:pointer; font-weight:600; }

.checkout-modal { background:var(--white); border-radius:12px; width:500px; max-width:95vw; max-height:90vh; overflow-y:auto; padding:28px; }
.checkout-modal h2 { text-align:center; margin-bottom:16px; font-size:18px; }
.checkout-order { background:var(--bg); border-radius:var(--radius); padding:14px; margin-bottom:16px; }
.checkout-order .item-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-size:13px; border-bottom:1px solid var(--border); }
.checkout-order .item-row:last-child { border-bottom:none; }
.checkout-total-row { display:flex; justify-content:space-between; font-size:18px; font-weight:700; padding:10px 0; margin-top:10px; border-top:1px solid var(--primary); }
.payment-methods { margin:14px 0; }
.payment-methods h3 { font-size:14px; margin-bottom:10px; }
.payment-option { display:flex; align-items:center; gap:10px; padding:10px 14px; border:2px solid var(--border); border-radius:var(--radius); margin-bottom:8px; cursor:pointer; font-size:14px; transition:border-color 0.2s; }
.payment-option:hover, .payment-option.selected { border-color:var(--primary); background:#fdf2e8; }
.payment-option input[type="radio"] { accent-color:var(--primary); }
.pay-btn { width:100%; padding:14px; background:var(--red); color:#fff; border:none; border-radius:var(--radius); font-size:16px; cursor:pointer; font-weight:700; }
.pay-btn:hover { background:#b02020; }

.jz-overlay { display:none !important; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:200; justify-content:center; align-items:center; }
.jz-overlay.show { display:flex !important; }
.jz-modal { background:var(--white); border-radius:12px; width:380px; max-width:90vw; padding:28px; position:relative; }
.jz-modal h2 { text-align:center; margin-bottom:20px; font-size:18px; }
.form-group { margin-bottom:14px; }
.form-group label { display:block; margin-bottom:4px; font-size:13px; font-weight:500; }
.form-group input { width:100%; padding:10px; border:1px solid var(--border); border-radius:var(--radius); font-size:13px; }
.form-group input:focus { outline:none; border-color:var(--primary); }
.btn { width:100%; padding:11px; border:none; border-radius:var(--radius); font-size:14px; cursor:pointer; font-weight:600; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); }
.btn-outline { background:transparent; border:1px solid var(--border); color:var(--text); margin-top:8px; }
.jz-modal-footer { text-align:center; margin-top:12px; font-size:12px; color:var(--text-light); }
.jz-modal-footer a { color:var(--primary); cursor:pointer; }

.toast { position:fixed; top:16px; left:50%; transform:translateX(-50%); background:var(--nav-bg); color:#fff; padding:10px 22px; border-radius:var(--radius); z-index:400; font-size:13px; display:none; animation:fadein 0.3s; }
@keyframes fadein { from{opacity:0;transform:translateX(-50%) translateY(-8px);} to{opacity:1;transform:translateX(-50%) translateY(0);} }

.footer-custom { background:var(--nav-bg); color:rgba(255,255,255,0.7); padding:28px 20px; margin-top:40px; }
.footer-inner { max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-col h4 { color:#fff; margin-bottom:10px; font-size:14px; }
.footer-col li { font-size:12px; margin:4px 0; }
.footer-col li a { color:rgba(255,255,255,0.7); }
.footer-col li a:hover { color:var(--primary); }
.footer-bottom { text-align:center; padding-top:20px; border-top:1px solid rgba(255,255,255,0.1); margin-top:20px; font-size:11px; }

/* Category Cards */
.category-card { background:var(--white); border-radius:var(--radius); padding:18px 14px; box-shadow:var(--shadow); cursor:pointer; text-align:center; transition:transform 0.15s, box-shadow 0.15s; }
.category-card:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,0.1); }
.category-icon { font-size:32px; margin-bottom:8px; }

@media (max-width:768px) {
  .sidebar { display:none; }
  .content { flex-direction:column; }
  .product-grid { grid-template-columns:repeat(2, 1fr); gap:8px; }
  .detail-top { flex-direction:column; }
  .detail-img-wrap { width:100%; height:200px; }
  .header-main { flex-wrap:wrap; }
  .header-actions { margin-left:auto; }
  .banner-area { grid-template-columns:repeat(2, 1fr); }
}

@media (max-width:480px) {
  .header-top { flex-direction:column; gap:6px; text-align:center; }
  .header-top div { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
  .header-top a { margin-left:0; }
  .search-box { width:100%; max-width:100%; }
  .banner-area { grid-template-columns:1fr; }
}