@font-face {
  font-family: "NotoZnamennyMusicalNotation";
  src: url("./NotoZnamennyMusicalNotation-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #ff9800;
  --accent-strong: #ef6c00;
  --muted: #6b6b6b;
  --success: #4caf50;
  --danger: #e53935;
  --shadow: 0 10px 30px rgba(15,15,15,0.06);
}

/* Base */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: #222;
}

/* HEADER (kept exactly same look) */
header {
  background: #333;
  color: #fff;
  padding: 1em;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header a { color: white; text-decoration: none; font-weight: bold; }
header a:hover { text-decoration: underline; }
header select {
  padding: 0.45em 0.9em;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  font-size: 0.95rem;
  color: #333;
  margin: 0 0.5em;
}
header select:focus { border-color: #2d8f2d; }

/* Page container and grid */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding: 0; }
}

/* Products */
.section-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:0.75rem;
}
.section-header h2 { margin:0; }
.products {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

/* product card */
.product {
  display:flex;
  flex-direction:column;
  background: linear-gradient(180deg,#fff,#fbfbfb);
  border-radius: 12px;
  overflow:hidden;
  box-shadow: 0 6px 20px rgba(10,10,10,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 280px;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(10,10,10,0.08); }
.thumb { position:relative; height:150px; overflow:hidden; background:#eee; display:flex; align-items:center; justify-content:center; }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.price-badge {
  position:absolute; right:10px; bottom:10px;
  background:rgba(0,0,0,0.75); color:#fff;
  padding:.35rem .6rem; border-radius:8px; font-weight:700; font-size:.95rem;
}
.product-body { padding: .9rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.prod-name { margin:0; font-size:1.02rem; line-height:1.15; }
.prod-desc { margin:0; color:var(--muted); font-size:.92rem; flex:1; }

/* actions */
.actions { display:flex; gap:.5rem; margin-top:.45rem; }
.btn-add, .btn-info {
  flex:1; border:none; padding:.55rem .6rem; border-radius:8px; cursor:pointer; font-weight:700;
}
.btn-add { background:var(--accent); color:#fff; box-shadow: 0 8px 20px rgba(255,152,0,0.12); }
.btn-add:hover { background:var(--accent-strong); transform: translateY(-2px); }
.btn-info { background:transparent; border:1px solid rgba(0,0,0,0.06); color:#333; }

/* Cart / aside */
.cart {
  background: linear-gradient(180deg,#fff,#fcfcfc);
  padding:1rem; border-radius:12px;
  box-shadow: 0 6px 18px rgba(10,10,10,0.04);
  position:sticky; top:18px; align-self:start;
}
.cart h2 { margin: 0 0 .5rem 0; }
.cart-list { list-style:none; padding:0; margin:0; max-height:420px; overflow:auto; margin-bottom:.75rem; }
.cart-item { display:flex; justify-content:space-between; align-items:center; padding:.5rem 0; border-bottom:1px dashed rgba(0,0,0,0.04); }
.cart-left { max-width:65%; }
.cart-title { font-weight:700; font-size:.95rem; margin-bottom:3px; }
.cart-meta { color:var(--muted); font-size:.9rem; }
.cart-qty { display:flex; align-items:center; gap:.5rem; }
.qty-btn { background:#f0f0f0; border:none; padding:.25rem .6rem; border-radius:6px; cursor:pointer; font-size:1rem; }
.qty { min-width:24px; text-align:center; font-weight:700; }

/* Cart footer and checkout buttons with logos */
.cart-footer { display:flex; flex-direction:column; gap:.6rem; margin-top:.5rem; }
.total { font-weight:800; font-size:1.05rem; }
.checkout-actions { display:flex; gap:.5rem; }

.checkout-btn {
  display: none; /* toggled by JS when cart has items */
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transition: transform .12s ease, box-shadow .12s ease;
}
.checkout-btn.stripe { background: linear-gradient(90deg,#5560e5,#4a50d9); }
.checkout-btn.paypal { background: linear-gradient(90deg,#003087,#002f80); }

.checkout-btn:hover { transform: translateY(-3px); }

/* link button */
.link-btn { background:transparent; border:none; color:var(--muted); text-decoration:underline; cursor:pointer; padding:.25rem; align-self:flex-start; }

/* small utilities */
.small-muted { color:var(--muted); font-size:.9rem; margin-right:.5rem; }
.empty { color:var(--muted); padding:1rem; text-align:center; }

/* keep helpful defaults for images */
img { max-width:100%; height:auto; display:block; }