:root {
  --lilac: #CBA6D9; --orchid: #E58FC9; --bubblegum: #FF82BE;
  --flamingo: #FF5AA6; --magenta: #F5279A; --wine: #7C1D3C;
  --plum: #2E1822; --cream: #FBF3EF; --mauve: #957F8A; --gold: #D9A86A;
  --grad: linear-gradient(168deg,#CBA6D9,#E58FC9,#FF5AA6,#F5279A);
  --ff-display: 'Pridi', serif; --ff-body: 'Mulish', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--ff-body); background: var(--cream); color: var(--plum); }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.page-header { padding: 92px 0 28px; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(251,243,239,.95)); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.back-link, .basket-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: white; color: var(--wine); font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.06); cursor: pointer; }
.basket-pill { background: var(--grad); color: white; border: none; }
.basket-pill:hover { transform: translateY(-1px); }
.page-heading { text-align: center; margin-bottom: 28px; }
.page-heading h1 { font-family: var(--ff-display); font-size: 32px; color: var(--wine); margin-bottom: 10px; }
.page-heading p { color: var(--mauve); max-width: 680px; margin: 0 auto; line-height: 1.7; }
.products-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 48px; }
.product-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(245,39,154,.08); border: 1px solid rgba(203,166,217,.18); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(245,39,154,.14); }
.product-image { width: 100%; height: 230px; object-fit: cover; display: block; }
.product-info { padding: 16px; }
.product-title { font-family: var(--ff-display); font-size: 20px; color: var(--wine); margin-bottom: 6px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.product-price { font-weight: 800; color: var(--magenta); }
.product-tag { color: var(--mauve); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; z-index: 200; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(46,24,34,.6); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; background: white; border-radius: 24px; width: min(720px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.modal-carousel { position: relative; }
.modal-image { width: 100%; max-height: 360px; object-fit: cover; display: block; border-top-left-radius: 24px; border-top-right-radius: 24px; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.95); color: var(--wine); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; }
.modal-prev { left: 16px; }
.modal-next { right: 16px; }
.modal-counter { margin-top: 10px; text-align: center; color: var(--mauve); font-size: 14px; }
.modal-body { padding: 20px; }
.modal-body h3 { font-family: var(--ff-display); font-size: 24px; color: var(--wine); margin-bottom: 10px; }
.modal-body p { color: var(--mauve); line-height: 1.7; margin-bottom: 14px; }
.modal-price { font-size: 20px; font-weight: 800; color: var(--magenta); margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { border: none; border-radius: 999px; padding: 12px 18px; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--grad); color: white; }
.btn-secondary { background: rgba(203,166,217,.15); color: var(--wine); }
.basket-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; z-index: 300; }
.basket-modal.open { display: flex; }
.basket-backdrop { position: absolute; inset: 0; background: rgba(46,24,34,.64); backdrop-filter: blur(4px); }
.basket-panel { position: relative; z-index: 1; width: min(520px, 100%); max-height: 80vh; overflow: auto; border-radius: 24px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.basket-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.basket-header h2 { font-size: 22px; color: var(--wine); margin: 0; }
.basket-close { border: none; background: rgba(245,39,154,.08); color: var(--wine); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 24px; line-height: 1; }
.basket-content { padding: 0 24px 20px; }
.basket-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.basket-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(203,166,217,.2); }
.basket-thumb { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: rgba(244,234,255,.8); }
.basket-item-info { flex: 1; }
.basket-item-title { font-weight: 700; color: var(--plum); }
.basket-item-price { font-size: 13px; color: var(--mauve); }
.basket-empty { color: var(--mauve); padding: 20px 0; text-align: center; }
.basket-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 24px; border-top: 1px solid rgba(203,166,217,.18); }
.basket-total { font-weight: 700; color: var(--wine); }
.basket-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--wine); color: white; padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.16); display: none; z-index: 250; }
.toast.show { display: block; }
@media (min-width: 700px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .page-heading h1 { font-size: 40px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
