*{box-sizing:border-box}
body{font-family:Arial,sans-serif;margin:0;background:#fff9f3;color:#4a2a12}
header{position:sticky;top:0;z-index:10;background:#f57c00;color:#fff;padding:12px 18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;box-shadow:0 2px 10px rgba(245,124,0,.28)}
.brand{display:flex;flex-direction:column;line-height:1.1;margin-right:8px;align-items:flex-start}
.brand-top{display:flex;align-items:center;gap:8px;white-space:nowrap}
.brand-logo{width:58px;height:58px;object-fit:contain;display:block;border-radius:999px;border:1px solid #f3dfc7;background:#fff;padding:5px}
.brand b{font-size:20px;line-height:1.05;font-weight:700}
.brand small{font-size:12px;opacity:.95;margin-top:3px}
header a{color:#fff;text-decoration:none;padding:6px 8px;border-radius:8px}
header a:hover{background:rgba(255,255,255,.16)}
.msg-btn{background:#fff;color:#e65100!important;font-weight:700;border:1px solid rgba(255,255,255,.8)}
.msg-btn:hover{background:#fff3e8}
.msg-float{position:fixed;right:16px;bottom:16px;width:52px;height:52px;border-radius:999px;background:#0084ff;color:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:24px;box-shadow:0 8px 20px rgba(0,132,255,.35);z-index:999}
.container{max-width:1080px;margin:18px auto;padding:0 12px}
.hero{background:linear-gradient(135deg,#ef6c00,#ffb74d);color:#fff;border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(245,124,0,.22);margin-bottom:14px}
.hero h1{margin:0 0 8px;font-size:56px;line-height:1.02;letter-spacing:.4px;font-weight:900;white-space:nowrap}
.hero p{margin:0 0 14px;opacity:.95}
.shop-profile{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.shop-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.95);background:#fff}
.shop-name-row{display:flex;align-items:center;gap:8px}
.shop-name{font-size:32px;font-weight:700;line-height:1}
.shop-arrow{font-size:40px;line-height:1;opacity:.95}
.shop-meta{font-size:14px;opacity:.95;margin-top:4px}
.quick-links{display:flex;gap:10px;flex-wrap:wrap}
.quick-links .btn{background:#fff;color:#e65100;font-weight:700}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.card{background:#fff;border-radius:12px;padding:12px;box-shadow:0 2px 10px rgba(230,126,34,.10);border:1px solid #ffe3c7}
img{max-width:100%;border-radius:10px}
.btn{display:inline-block;background:#f57c00;color:#fff;padding:9px 12px;border-radius:8px;text-decoration:none;border:none;cursor:pointer}
.btn:hover{background:#ef6c00}
.muted{color:#8a5a34;font-size:13px}
.badge{display:inline-block;background:#fff1e0;color:#e65100;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0}
input,textarea,select{width:100%;padding:9px;margin:6px 0 10px;border:1px solid #ffd4a7;border-radius:8px;background:#fff}
table{width:100%;background:#fff;border-collapse:collapse;border:1px solid #ffe3c7}th,td{padding:8px;border:1px solid #ffeddc;text-align:left}
.footer{margin:24px 0 12px;color:#9a6941;font-size:13px;text-align:center}

/* Mobile-first improvements */
@media (max-width: 768px){
  header{padding:10px 12px;gap:8px;position:sticky}
  .brand{width:100%;margin-right:0}
  .brand-logo{width:64px;height:64px;border-radius:999px;object-fit:contain;padding:6px;background:#fff;border:1px solid #f3dfc7}
  .brand b{font-size:20px;line-height:1.05;font-weight:700;white-space:nowrap}
  .brand small{font-size:11px}
  .shop-avatar{width:46px;height:46px}
  .shop-name{font-size:24px}
  .shop-arrow{font-size:28px}
  .shop-meta{font-size:12px}
  header a{padding:6px 7px;font-size:13px}
  .msg-btn{width:100%;text-align:center}
  .msg-float{right:12px;bottom:12px;width:48px;height:48px;font-size:22px}

  .container{margin:12px auto;padding:0 10px}
  .hero{padding:16px;border-radius:12px}
  .hero h1{font-size:34px;line-height:1.08;font-weight:900;white-space:nowrap;letter-spacing:.2px}
  .hero p{font-size:14px}

  .section-title{flex-direction:column;align-items:flex-start;gap:6px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .card{padding:10px;border-radius:10px}
  .product-card h3{font-size:14px;line-height:1.25;margin:8px 0 6px}
  .product-card .btn{padding:8px 10px;font-size:13px}

  .btn{width:100%;text-align:center;padding:10px 12px}
  .quick-links .btn{width:auto}

  input,textarea,select{font-size:16px}

  table{display:block;overflow-x:auto;white-space:nowrap;font-size:12px}
  th,td{padding:6px}
}

.opt-row{display:flex;gap:8px;flex-wrap:wrap}
.scroll-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;white-space:nowrap}
.scroll-row::-webkit-scrollbar{height:6px}
.scroll-row::-webkit-scrollbar-thumb{background:#ffd4a7;border-radius:999px}
.opt-color{border:2px solid #eee;background:#fff;border-radius:8px;padding:2px;cursor:pointer;flex:0 0 auto;width:56px;height:56px;display:flex;align-items:center;justify-content:center}
.opt-color img{width:50px;height:50px;object-fit:cover;border-radius:6px;display:block}
.opt-color.active{border-color:#ef6c00;box-shadow:0 0 0 2px rgba(239,108,0,.15)}
.opt-color-text,.opt-size{min-width:96px;height:52px;padding:0 10px;border:2px solid #d6d6d6;border-radius:10px;background:#fff;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1;white-space:nowrap}
.opt-color-text.active,.opt-size.active{border-color:#ef6c00;color:#ef6c00}
.thumb-strip{display:flex;gap:8px;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.small-thumb{width:50px;height:50px;object-fit:cover;border-radius:8px;border:1px solid #ffd4a7;cursor:pointer;flex:0 0 auto}
/* image preview modal removed for cleaner color-pick flow */

@media (max-width: 420px){
  .hero h1{font-size:31px;font-weight:900;white-space:nowrap;letter-spacing:.15px}
  header a{font-size:12px}
  .opt-color{width:48px;height:48px;padding:1px;border-radius:7px}
  .opt-color img{width:42px;height:42px;border-radius:5px}
  .small-thumb{width:46px;height:46px}
  .opt-color-text,.opt-size{min-width:86px;height:46px;font-size:14px;padding:0 8px}
}
