:root{
  --accent:#0b6fd6;
  --accent-2:#0a84ff;
  --muted:#6b7280;
  --bg:#f3f7fb;
  --card:#ffffff;
  --glass: rgba(255,255,255,0.7);
  --shadow: 0 8px 24px rgba(11,15,30,0.08);
}

*{box-sizing:border-box}
body{
  margin:0; font-family:Inter,system-ui,Arial,sans-serif;
  background: linear-gradient(180deg,#f8fbff 0%, var(--bg) 100%);
  color:#111;
}

header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 28px;background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#fff;position:sticky;top:0;z-index:40;box-shadow:0 6px 18px rgba(11,15,30,0.08)
}
.logo{font-weight:800;font-size:20px;letter-spacing:0.4px}
.search{
  flex:1;max-width:540px;margin:0 18px;display:flex;gap:8px;align-items:center;
}
.search input{
  width:100%;padding:10px 14px;border-radius:10px;border:0;outline:none;
  box-shadow:0 6px 18px rgba(11,15,30,0.06);
}
.header-actions{display:flex;gap:10px;align-items:center}
.header-actions a, .header-actions button{color:#fff;text-decoration:none;border:0;background:transparent;cursor:pointer;font-weight:600}

.container{max-width:1200px;margin:22px auto;padding:0 18px}

.hero{
  display:flex;align-items:center;gap:18px;margin-bottom:16px;
}
.hero .tag{background:var(--glass);padding:8px 12px;border-radius:12px;color:var(--accent);font-weight:700;border:1px solid rgba(10,80,150,0.06)}
.hero h1{margin:0;font-size:28px}
.hero p{margin:0;color:var(--muted)}

.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}

.card{
  background:var(--card);border-radius:14px;padding:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;height:100%;
  transition:transform .18s ease,box-shadow .18s ease;
}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(11,15,30,0.12)}
.card img{width:100%;height:150px;object-fit:cover;border-radius:10px}
.card .title{font-weight:700;margin-top:8px;font-size:15px}
.card .desc{color:var(--muted);font-size:13px;margin-top:6px;flex:1}
.card .meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.price{font-weight:800;color:var(--accent)}
.btn{background:var(--accent);color:#fff;border:0;padding:8px 12px;border-radius:10px;cursor:pointer;font-weight:700}
.btn-ghost{background:transparent;border:1px solid #e6eef5;padding:8px;border-radius:10px;cursor:pointer;color:var(--muted)}

.badge{display:inline-block;background:#fff;padding:6px 8px;border-radius:999px;font-size:12px;color:var(--accent);border:1px solid rgba(10,80,150,0.08)}

.cart-icon{position:relative}
.cart-count{position:absolute;right:-6px;top:-8px;background:#ff3b30;color:#fff;padding:4px 7px;border-radius:999px;font-size:12px;box-shadow:0 6px 18px rgba(11,15,30,0.12)}

.cart-list{background:var(--card);padding:14px;border-radius:12px;box-shadow:var(--shadow)}
.cart-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #f1f5f9}
.cart-row:last-child{border-bottom:0}
.cart-row img{width:80px;height:60px;object-fit:cover;border-radius:8px}
.qty-controls{display:flex;align-items:center;gap:8px}
.remove{background:transparent;border:0;color:#d03f3f;cursor:pointer;font-weight:700}

@media (max-width:880px){
  .hero{flex-direction:column;align-items:flex-start}
  .search{max-width:100%}
  .card img{height:140px}
}

footer {
    background-color: #232f3e; 
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 14px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 380px; /* added height for bigger block */
}

.card img {
  width: 100%;
  height: 250px; /* taller image box */
  object-fit: contain; /* ensures full image is visible */
  border-radius: 10px;
  background-color: white; /* prevents gaps looking odd */
}
