:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#222;
  --muted:#666;
  --accent:#0077cc;
  --radius:10px;
  --gap:18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
}

.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:20px;
}

.header{
  background:#fff;
  border-bottom:1px solid #eee;
  position:sticky;
  top:0;
  z-index:10;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px;
}

.brand{
  font-weight:700;
  color:var(--text);
  text-decoration:none;
  font-size:20px;
}

/* Categories nav */
.category-nav{
  list-style:none;
  display:flex;
  gap:10px;
  margin:0;
  padding:0;
}
.category-nav li a{
  display:inline-block;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  color:var(--muted);
  font-size:13px;
  border:1px solid transparent;
}
.category-nav li a:hover,
.category-nav li a:focus{
  color:var(--text);
  border-color:#e6e6e6;
  background:#fafafa;
}

/* Category section */
.category-section{
  margin:28px 0;
}
.category-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.category-header h2{
  margin:0;
  font-size:20px;
}

/* Product grid */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:var(--gap);
}

/* Card */
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:0 6px 18px rgba(25,30,40,0.05);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:260px;
  transition:transform .12s ease;
}
.card:hover{ transform: translateY(-6px); }

.card .thumb{
  width:100%;
  height:140px;
  border-radius:8px;
  object-fit:cover;
  background:linear-gradient(135deg,#eee,#ddd);
}

/* Info */
.card .title{
  font-size:15px;
  font-weight:600;
  margin:0;
}
.card .desc{
  font-size:13px;
  color:var(--muted);
  margin:0;
  flex:1;
}

/* Price row */
.card .price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.card .price{
  font-weight:700;
  font-size:16px;
}

/* Footer small print */
.footer{
  margin-top:40px;
  padding:20px 0;
  color:var(--muted);
  font-size:13px;
  text-align:center;
  background:transparent;
}

/* Accessibility and small screens */
@media (max-width:520px){
  .header-inner{padding:12px}
  .container{padding:12px}
  .product-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));}
}

/* HIDE any residual buy/add/cart UI (defensive) */
.buy-actions,
.button-buy,
.btn.buy,
.btn.add,
.add-button,
.add-to-cart,
.cart-btn,
.cart-count,
#cart-modal,
.cart,
.cart-ui { display: none !important; visibility: hidden !important; pointer-events: none !important; }
