@import url("https://fonts.googleapis.com/css?family=Roboto:300");
 
/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg:#f6f7fb; --card:#ffffff; --muted:#6b7280; --accent:#0ea5a4; --accent-2:#059669;
  --danger:#ef4444; --shadow: 0 6px 18px rgba(13,18,25,0.06);
  --maxwidth:1200px;
}

/* Layout */
body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg); color:#0f172a; line-height:1.35;
  padding:28px;
}
.page{ max-width:var(--maxwidth); margin:0 auto; }

/* Header */
.hero{ margin-bottom:18px; }
.hero h1{ font-size:24px; margin-bottom:6px; }
.hero p{ color:var(--muted); }

/* Content layout: grid with products and sidebar */
.content{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:20px;
  align-items:start;
}

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

/* Card */
.card{
  background:var(--card);
  border-radius:12px;
  padding:12px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.card img{
  width:100%; height:140px; object-fit:cover; border-radius:8px;
}
.card .meta{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.card .title{ font-size:14px; font-weight:600; color:#0f172a; }
.card .price{ font-weight:700; color:var(--accent-2); }

/* Toggle button */
.toggle-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.06);
  background:transparent;
  cursor:pointer;
  transition:all .18s ease;
  user-select:none;
}
.toggle-btn.added{
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  color:white;
  transform:translateY(-2px);
  box-shadow: 0 6px 18px rgba(5,150,105,0.12);
}
.toggle-btn .tick{ font-size:13px; opacity:0; transform:translateX(-4px); transition:.18s; }
.toggle-btn.added .tick{ opacity:1; transform:translateX(0); }

/* Sidebar styles */
.bundle-sidebar{
  position:sticky; top:24px;
}
.sidebar-card{
  background:var(--card);
  padding:16px;
  border-radius:12px;
  box-shadow:var(--shadow);
}
.sidebar-card h2{ margin-bottom:12px; font-size:16px; }

/* Progress */
.progress-wrap{ margin-bottom:12px; }
.progress-label{ font-size:13px; color:var(--muted); margin-bottom:8px; }
.progress-bar{
  height:10px; background:#eef2f7; border-radius:999px; overflow:hidden;
}
.progress-fill{
  height:100%; width:0%; background:linear-gradient(90deg,var(--accent),var(--accent-2));
  transition:width .3s ease;
}

/* Selected list */
.selected-list{ list-style:none; margin:12px 0; max-height:220px; overflow:auto; display:flex; flex-direction:column; gap:8px; padding-right:6px; }
.selected-list li{ display:flex; align-items:center; gap:10px; padding:8px; border-radius:8px; background:rgba(14,165,164,0.03); }
.selected-list li img{ width:48px; height:48px; object-fit:cover; border-radius:6px; }
.selected-list .name{ font-size:13px; flex:1; }
.selected-list .remove{ background:transparent; border:none; font-size:14px; color:var(--danger); cursor:pointer; }

/* Summary */
.summary{ border-top:1px dashed #e6eef0; padding-top:12px; margin-top:8px; }
.row{ display:flex; justify-content:space-between; margin-bottom:10px; color:var(--muted); font-size:14px; }
.total-row{ font-size:16px; color:#0f172a; }
.discount-row{ color:#059669; }

/* CTA */
.cta{
  width:100%; margin-top:8px; padding:12px; border-radius:10px; border:0; cursor:pointer;
  background:#94a3b8; color:white; font-weight:700; transition:transform .12s;
}
.cta:active{ transform:translateY(1px); }
.cta:disabled{ opacity:0.7; cursor:not-allowed; }

/* Empty list text */
.selected-list .empty{ color:var(--muted); padding:14px; text-align:center; background:transparent; }

/* Responsive */
@media (max-width:900px){
  .content{ grid-template-columns: 1fr; }
  .bundle-sidebar{ position:relative; }
  .sidebar-card{ margin-top:12px; }
}
