/* Styles for Tompi Shop demo */
:root{
  --bg: #faf7f2;
  --card:#fff;
  --accent:#d19736;
  --accent-dark:#b27520;
  --text:#4a3b2f;
  --muted:#8b7968;
  --shadow: 0 6px 18px rgba(74,59,47,0.08);
  --radius:14px;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial; background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}

/* Header */
header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:linear-gradient(180deg,#fffaf2, #fff4da);border-bottom:1px solid rgba(224,210,184,0.8);position:sticky;top:0;z-index:40}
.brand{display:flex;align-items:center;gap:14px}
.brand img{height:64px;width:64px;border-radius:50%;object-fit:cover}
.brand h1{margin:0;font-size:20px;letter-spacing:0.6px}
.tagline{font-size:12px;color:var(--muted)}
nav{display:flex;gap:14px;align-items:center}
nav a{color:var(--text);text-decoration:none;font-weight:600}

/* Hamburger for mobile */
.hamburger{display:none;flex-direction:column;gap:4px;width:34px;cursor:pointer}
.hamburger span{height:3px;background:var(--text);border-radius:3px}

/* Hero */
.hero{padding:36px 20px;text-align:center}
.hero h2{font-size:28px;margin:0}
.muted{color:var(--muted)}
.center{text-align:center}

/* Controls */
.controls{display:flex;gap:12px;justify-content:center;padding:14px 20px;flex-wrap:wrap}
.controls select,.controls input{padding:10px;border-radius:10px;border:1px solid #e6dcc9}

/* Grid */
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:22px;padding:28px}
.card{background:var(--card);border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;gap:10px}
.card img{width:100%;height:180px;object-fit:cover;border-radius:10px}
.card h3{margin:6px 0 0;font-size:16px}
.card p{margin:0;color:var(--muted);font-size:14px}
.price{font-weight:700;margin-top:6px}
.actions{display:flex;gap:8px;margin-top:10px}
.btn{background:var(--accent);border:none;color:#fff;padding:8px 12px;border-radius:10px;cursor:pointer;font-weight:700}
.btn.secondary{background:#f5f0e7;color:var(--text);border:1px solid #e6dcc9}

/* Cart drawer */
.cart-btn{position:relative}
.cart-count{position:absolute;top:-6px;right:-8px;background:var(--accent-dark);color:#fff;border-radius:12px;padding:4px 7px;font-size:12px}
.drawer{position:fixed;right:20px;top:80px;width:340px;max-width:90%;background:var(--card);border-radius:12px;padding:14px;box-shadow:0 20px 50px rgba(10,10,10,0.12);display:none;z-index:80}
.drawer.open{display:block}
.drawer h4{margin:0 0 10px}
.line{height:1px;background:#efe6d6;margin:10px 0}
.cart-items{max-height:320px;overflow:auto}
.cart-item{display:flex;gap:10px;align-items:center;padding:8px 0}
.cart-item img{width:56px;height:56px;border-radius:8px;object-fit:cover}
.cart-item .meta{flex:1}

/* Custom order form */
.custom-form{max-width:720px;margin:30px auto;background:var(--card);padding:18px;border-radius:12px;box-shadow:var(--shadow)}
.field{display:flex;flex-direction:column;margin-bottom:12px}
label{font-weight:700;font-size:14px;margin-bottom:6px}
input[type='text'],input[type='email'],textarea,select{padding:10px;border-radius:10px;border:1px solid #e6dcc9}
textarea{min-height:120px}
.form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* Footer */
footer{padding:20px;text-align:center;background:linear-gradient(0deg,#fff4da,#fffaf2);margin-top:40px;border-top:1px solid rgba(224,210,184,0.6)}
.small{font-size:13px}

/* Responsive */
@media(max-width:900px){
  nav{display:none}
  .hamburger{display:flex}
  .brand img{height:56px;width:56px}
}
