/* ===== Mamia Store CSS — Teal + Yellow Brand Theme ===== */
:root{
  --primary:#00A98F;
  --primary-dark:#008f78;
  --primary-darker:#007a66;
  --primary-light:#e0f7f3;
  --accent:#FFE500;
  --accent-dark:#e6ce00;
  --secondary:#0f172a;
  --success:#22c55e;
  --warning:#f59e0b;
  --danger:#ef4444;
  --bg:#f4faf8;
  --card:#fff;
  --muted:#64748b;
  --line:#d1ede8;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--secondary)}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

/* ===== TOP ANNOUNCEMENT BAR ===== */
.topbar{background:var(--primary-darker);color:white;text-align:center;padding:8px 16px;font-size:13px;font-weight:500}

/* ===== MAIN NAV ===== */
.nav{
  display:flex;align-items:center;gap:16px;
  padding:0 5%;height:90px;
  background:var(--primary);
  position:sticky;top:0;z-index:100;
  box-shadow:0 3px 16px rgba(0,0,0,.18);
}

/* ===== LOGO ===== */
.brand{display:flex;align-items:center;gap:0;flex-shrink:0;text-decoration:none;height:100%}
.brand-logo{height:80px;width:auto;max-width:240px;object-fit:contain;display:block;padding:4px 0}
.brand-fallback{display:flex;align-items:center;gap:10px}
.brand-mark{
  background:var(--accent);color:var(--primary-darker);
  width:46px;height:46px;border-radius:12px;
  display:grid;place-items:center;font-weight:900;font-size:22px;flex-shrink:0;
}
.brand-name{color:white;font-weight:900;font-size:20px}

/* ===== SEARCH ===== */
.search{flex:1;display:flex;max-width:480px}
.search input{
  flex:1;border:none;border-radius:12px 0 0 12px;
  padding:11px 16px;font:inherit;font-size:14px;outline:none;
}
.search button{
  border:0;background:var(--accent);color:var(--primary-darker);
  border-radius:0 12px 12px 0;padding:0 18px;
  font-weight:800;cursor:pointer;white-space:nowrap;font-size:14px;
}
.search button:hover{background:var(--accent-dark)}

/* ===== NAV LINKS ===== */
.nav-links{display:flex;gap:10px;align-items:center;flex-shrink:0}
.nav-links a{color:white;font-weight:700;font-size:14px;padding:7px 11px;border-radius:10px;transition:.2s}
.nav-links a:hover{background:rgba(255,255,255,.18)}
.cart-pill{
  background:var(--accent)!important;color:var(--primary-darker)!important;
  padding:8px 16px!important;border-radius:999px!important;font-weight:900!important;
}
.cart-pill:hover{background:var(--accent-dark)!important;transform:scale(1.04)}

/* ===== HAMBURGER ===== */
.mobile-menu-btn{
  display:none;flex-direction:column;gap:5px;
  background:none;border:none;cursor:pointer;padding:6px;border-radius:8px;
}
.mobile-menu-btn span{display:block;width:22px;height:2.5px;background:white;border-radius:2px;transition:.3s}
.mobile-menu-btn.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.mobile-menu-btn.active span:nth-child(2){opacity:0}
.mobile-menu-btn.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* ===== CATEGORY STRIP ===== */
.category-strip{
  display:flex;gap:8px;overflow-x:auto;
  padding:9px 5%;
  background:var(--primary-dark);
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.category-strip::-webkit-scrollbar{display:none}
.category-strip a{
  color:rgba(255,255,255,.92);font-size:13px;font-weight:600;
  white-space:nowrap;padding:5px 12px;border-radius:999px;transition:.2s;
}
.category-strip a:hover{background:var(--accent);color:var(--primary-darker)}

/* ===== MAIN ===== */
main{min-height:60vh}

/* ===== HERO (old style pages) ===== */
.hero{margin:24px auto;max-width:1180px;background:linear-gradient(135deg,#e0f7f3,#fff);border:1px solid #b2e8df;border-radius:28px;display:grid;grid-template-columns:1.2fr .8fr;gap:24px;padding:48px;box-shadow:0 16px 50px rgba(0,169,143,.08)}
.eyebrow{color:var(--primary);font-weight:800}
.hero h1{font-size:44px;line-height:1.07;margin:10px 0}
.hero p{font-size:17px;color:var(--muted);max-width:600px}
.hero-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}
.hero-card{background:white;border-radius:24px;padding:32px;box-shadow:0 16px 44px rgba(15,23,42,.1);display:grid;place-items:center;text-align:center}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:#e2e8f0;color:#0f172a;border-radius:12px;padding:12px 18px;font-weight:800;cursor:pointer;font-size:14px;transition:.2s;text-decoration:none}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--primary);color:white;box-shadow:0 8px 20px rgba(0,169,143,.28)}
.btn.primary:hover{background:var(--primary-dark)}
.btn.accent{background:var(--accent);color:var(--primary-darker);font-weight:900}
.btn.accent:hover{background:var(--accent-dark)}
.btn.ghost{background:white;color:var(--primary);border:2px solid var(--primary)}
.btn.whatsapp{background:#25d366;color:white}
.btn.small{padding:9px 13px;font-size:13px}
.btn.full,.full{width:100%}
.btn:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none}

/* ===== SECTIONS ===== */
.section{max-width:1180px;margin:30px auto;padding:0 16px}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap;gap:10px}
.section-head h1,.section-head h2{margin:0}
.section-head a{color:var(--primary);font-weight:700}

/* ===== PRODUCT GRID ===== */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product-card{background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;transition:.22s;box-shadow:0 4px 16px rgba(0,169,143,.06)}
.product-card:hover{transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,169,143,.14)}
.product-img{height:210px;background:#f0faf8;display:grid;place-items:center;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-body{padding:14px}
.product-title{font-weight:800;display:block;margin-bottom:8px;font-size:14px;color:#0f172a;line-height:1.4}
.price-row{display:flex;gap:8px;align-items:center;margin-bottom:12px}
.price-row b,.big-price{color:var(--primary);font-weight:900}
.price-row del{color:#94a3b8;font-size:13px}

/* ===== SHOP LAYOUT ===== */
.promo-grid{max-width:1180px;margin:18px auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:0 16px}
.promo{background:white;border-radius:20px;overflow:hidden;border:1px solid var(--line)}
.promo img{height:150px;width:100%;object-fit:cover}
.promo div{padding:14px}
.split-info{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:white;border:1px solid var(--line);padding:28px;border-radius:24px}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.benefits div{background:#e0f7f3;border-radius:16px;padding:18px;border:1px solid #b2e8df}
.benefits b{display:block;font-size:20px;color:var(--primary)}
.card{background:white;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(0,169,143,.05)}

/* ===== SHOP FILTER LAYOUT ===== */
.shop-layout{max-width:1220px;margin:24px auto;display:grid;grid-template-columns:260px 1fr;gap:18px;padding:0 16px}
.filters form,.stack{display:grid;gap:10px}
.filters input,.filters select,input,select,textarea{border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;width:100%}
input:focus,select:focus,textarea:focus{outline:2px solid var(--primary);border-color:var(--primary)}
label{font-weight:700;font-size:14px}

/* ===== EMPTY ===== */
.empty{background:white;border:2px dashed #b2e8df;border-radius:18px;padding:24px;text-align:center;color:var(--muted)}

/* ===== PRODUCT DETAIL ===== */
.product-detail{max-width:1180px;margin:28px auto;display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:0 16px}
.main-image{background:white;border:1px solid var(--line);border-radius:22px;overflow:hidden;min-height:440px;display:grid;place-items:center}
.main-image img{width:100%;height:440px;object-fit:cover}
.thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.thumbs img{width:80px;height:80px;border-radius:12px;object-fit:cover;cursor:pointer;border:2px solid transparent}
.thumbs img:hover,.thumbs img.active{border-color:var(--primary)}
.badge{background:#e0f7f3;color:var(--primary-darker);border-radius:999px;padding:7px 12px;font-weight:700;font-size:13px}
.product-info h1{font-size:36px;line-height:1.1}
.big-price{font-size:30px;margin:14px 0;color:var(--primary);font-weight:900}
.stock{font-weight:800;margin-bottom:14px}
.stock.in{color:var(--success)}
.stock.out{color:var(--danger)}
.buy-box{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.description{margin-top:20px;line-height:1.8;color:#334155}

/* ===== CART ===== */
.cart-list{display:grid;gap:10px}
.cart-item{display:grid;grid-template-columns:80px 1fr 90px 110px;gap:14px;align-items:center;background:white;border:1px solid var(--line);border-radius:16px;padding:12px}
.cart-item img{width:80px;height:80px;object-fit:cover;border-radius:12px}
.cart-summary{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}

/* ===== CHECKOUT ===== */
.checkout-layout{max-width:1180px;margin:28px auto;display:grid;grid-template-columns:1.3fr .7fr;gap:18px;padding:0 16px}
.checkout-form{display:grid;gap:10px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.summary-row{display:flex;justify-content:space-between;margin:10px 0}
.summary-row.total{font-size:20px;font-weight:900}
.coupon-form{display:flex;gap:8px;margin-top:14px}

/* ===== AUTH ===== */
.auth-card{max-width:440px;margin:36px auto}
.center{text-align:center}
.success-icon{width:72px;height:72px;border-radius:50%;background:#e0f7f3;color:var(--primary-darker);display:grid;place-items:center;font-size:38px;margin:0 auto 16px}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;background:white}
th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left}
th{font-size:12px;text-transform:uppercase;color:var(--muted);background:#f4faf8}

/* ===== ALERTS ===== */
.alert{max-width:1180px;margin:12px auto;padding:12px 16px;border-radius:12px}
.alert.success{background:#e0f7f3;color:#005a4a;border:1px solid #b2e8df}
.alert.error{background:#fee2e2;color:#991b1b}

/* ===== FOOTER ===== */
.store-footer{margin-top:50px;background:#0a2922;color:white;display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px;padding:44px 5%}
.store-footer a{display:block;color:#a7d9d1;margin:6px 0;font-size:14px}
.store-footer a:hover{color:var(--accent)}
.store-footer h3,.store-footer h4{color:white}
.store-footer p{color:#7bbfb6;font-size:14px}

/* ===== FLOATING WHATSAPP (mobile) ===== */
.whatsapp-float{
  display:none;position:fixed;bottom:20px;right:16px;z-index:999;
  background:#25d366;color:white;border-radius:999px;
  padding:13px 20px;font-weight:800;font-size:15px;
  box-shadow:0 8px 24px rgba(37,211,102,.4);
  align-items:center;gap:8px;
}

/* ===== TABLET ===== */
@media(max-width:900px){
  .nav{flex-wrap:wrap;height:auto;padding:12px 4%;gap:10px}
  .search{order:3;max-width:none;width:100%}
  .hero,.product-detail,.checkout-layout,.split-info,.shop-layout{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .promo-grid,.store-footer{grid-template-columns:1fr}
  .hero{padding:28px;margin:12px}
  .hero h1{font-size:32px}
  .cart-item{grid-template-columns:70px 1fr}
  .cart-item input,.cart-item b{grid-column:2}
  .nav-links{font-size:13px;gap:8px}
}

/* ===== MOBILE ===== */
@media(max-width:640px){
  .mobile-menu-btn{display:flex}
  .nav{flex-wrap:nowrap;height:60px;padding:0 4%;gap:10px}
  .search{display:none}
  .nav-links{
    display:none;flex-direction:column;align-items:stretch;gap:0;
    position:fixed;top:60px;left:0;right:0;
    background:var(--primary-dark);
    padding:8px 16px 18px;z-index:200;
    box-shadow:0 8px 24px rgba(0,0,0,.25);
    max-height:calc(100vh - 60px);overflow-y:auto;
  }
  .nav-links.open{display:flex}
  .nav-links a{
    color:white;padding:13px 10px;border-bottom:1px solid rgba(255,255,255,.1);
    font-size:16px;border-radius:0;
  }
  .nav-links a:last-child{border-bottom:none}
  .cart-pill{
    background:var(--accent)!important;color:var(--primary-darker)!important;
    border-radius:10px!important;margin-top:8px;text-align:center;
  }
  .brand-logo{height:52px;padding:2px 0}
  .brand-name{font-size:15px}
  .category-strip{padding:7px 12px}

  /* Mobile floating WhatsApp */
  .whatsapp-float{display:flex}

  /* Product grid 2-col on mobile */
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .product-img{height:160px}
  .product-body{padding:10px}
  .product-title{font-size:12px}
  .price-row b{font-size:14px}
  .btn.small{padding:8px 10px;font-size:12px}

  .hero-actions,.cart-summary{flex-direction:column;align-items:stretch}
  .grid2{grid-template-columns:1fr}
  .section{padding:0 10px}
  .section-head{flex-direction:column;align-items:flex-start}
  .promo-grid{grid-template-columns:1fr;padding:0 10px}
  .benefits{grid-template-columns:1fr 1fr}
  .shop-layout{grid-template-columns:1fr;padding:0 10px}
  .cart-item{grid-template-columns:60px 1fr;font-size:13px}
  .cart-item img{width:60px;height:60px}
  .checkout-layout{grid-template-columns:1fr;padding:0 10px}
  .store-footer{grid-template-columns:1fr;padding:28px 5%}
  .auth-card{margin:16px 10px}
  .table-wrap{font-size:13px}
}

/* ===== VERY SMALL ===== */
@media(max-width:380px){
  .product-grid{grid-template-columns:1fr}
  .brand-name{display:none}
}

/* ===== FOOTER BAR ===== */
.site-footer-bar{background:#020617;color:#475569;display:flex;justify-content:space-between;align-items:center;padding:14px 5%;font-size:13px;flex-wrap:wrap;gap:10px}
.site-footer-bar a{color:#94a3b8}
.site-footer-bar a:hover{color:white}
.visitor-counter{display:flex;align-items:center;gap:6px;color:#94a3b8}
.visitor-counter b{color:#1aaa8e;font-size:15px}
@media(max-width:640px){.site-footer-bar{justify-content:center;text-align:center;gap:8px;padding:14px 4%}}
