
/* Base */
* { box-sizing: border-box; }
body { margin:0; font-family:Poppins, system-ui, sans-serif; color:#222; background:#fff; }
a { color:#7e22ce; text-decoration:none; }
a:hover { text-decoration:underline; }
section { padding:60px 20px; }
.section-title { margin:0 0 20px; }

/* Header */
.site-header { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid #eee; background:#fff; position:sticky; top:0; z-index:10; }
.logo { font-weight:700; color:#7e22ce; }
.menu-toggle { display:none; padding:8px 10px; border:1px solid #ddd; border-radius:10px; background:#fff; }
.menu { display:flex; gap:16px; }
@media (max-width: 720px){
  .menu-toggle{ display:block; }
  .menu{ display:none; position:absolute; right:16px; top:56px; background:#fff; border:1px solid #eee; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.08); padding:12px; flex-direction:column; gap:10px; min-width:180px; }
  .menu.is-open{ display:flex; }
}

/* Hero */
.hero { background:#f8f3ff; }
.hero-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns: 1.2fr 0.8fr; gap:24px; align-items:center; padding:40px 20px; }
.hero h1 { font-size:42px; margin:0 0 10px; }
.hero-lead { margin:0 0 16px; color:#333; }
.craftrina-logo { max-width:100%; height:auto; }
.cta-group { display:flex; gap:12px; flex-wrap:wrap; }
.btn { display:inline-block; padding:12px 16px; border-radius:12px; border:0; }
.btn-primary { background:#7e22ce; color:#fff; }
.btn-secondary { background:#ede7fb; color:#6a1b9a; }

/* Tools */
.tools-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:20px; }
.wizard-card { background:#fff; border:1px solid #eee; border-radius:14px; padding:16px; box-shadow:0 4px 16px rgba(0,0,0,.05); }
.wizard-body textarea { width:100%; min-height:100px; }
.btn-cta { background:#7e22ce; color:#fff; border:0; border-radius:10px; padding:10px 12px; cursor:pointer; }
.btn-row { display:flex; gap:10px; margin-top:10px; }

/* Supplies */
.section-supplies .cards-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.supply-card { background:#fff; border:1px solid #eee; border-radius:14px; padding:16px; }

/* Teasers */
.home-teasers { max-width:1100px; margin:0 auto; display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:16px; }
.home-teasers article { border:1px solid #eee; border-radius:14px; padding:16px; background:#fff; }

/* Shop */
.ab-cats { background:#faf9fe; }
#ab-catgrid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:16px; }
.product-tile { display:block; background:#fff; border:1px solid #eee; border-radius:12px; padding:12px; text-align:center; }
.tile-inner { padding:20px 10px; }

/* Footer */
footer { padding:30px 20px; text-align:center; border-top:1px solid #eee; }

/* Floating Chat */
#craftrina-fab {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px;
  border-radius: 50%; border: none; background: #6a1b9a; color: #fff; font-size: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); cursor: pointer; z-index: 9998;
}
#craftrina-fab:hover { background:#8e24aa; }

#craftrina-chat[hidden] { display:none !important; }
#craftrina-chat {
  position: fixed; right: 20px; bottom: 84px; width: 360px; height: 480px;
  background:#fff; border-radius:16px; box-shadow:0 20px 50px rgba(0,0,0,.25);
  display:flex; flex-direction:column; overflow:hidden; z-index:9999;
}
.chat-head { background:#f6f1fc; padding:10px; display:flex; justify-content:space-between; align-items:center; }
.chat-body { flex:1; padding:10px; overflow-y:auto; }
.chat-input { display:flex; gap:8px; padding:10px; border-top:1px solid #eee; }
#craftrina-input { flex:1; padding:8px; }
#craftrina-send { padding:8px 12px; border:0; border-radius:6px; background:#7e22ce; color:#fff; cursor:pointer; }

/* Ensure sections are never hidden */
#hero, #tools, #supplies, .home-teasers, #ab-cats, footer {
  display:block !important; visibility:visible !important; opacity:1 !important;
}
