:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --tile: #f5f5f7;
  --border: #e3e3e6;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --danger: #e0334b;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --maxw: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Promo bar ---------- */
.promo {
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 13px;
  text-align: center;
  padding: 11px 22px;
  border-bottom: 1px solid var(--border);
}

.promo b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
}

.header__row {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.logo__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.logo b {
  color: var(--accent);
  font-weight: 600;
}

.logo__name {
  white-space: nowrap;
}

.search {
  flex: 1;
  position: relative;
  max-width: 520px;
}

.search input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  color: var(--text);
  padding: 0 18px 0 44px;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
}

.search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--bg-soft);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-count.show {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.nav__row::-webkit-scrollbar {
  display: none;
}

.chip {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s;
}

.chip:hover {
  background: #ebebed;
}

.chip.active {
  background: var(--text);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  padding: 28px 0 12px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.hero__card {
  position: relative;
  border-radius: 24px;
  padding: 44px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__main {
  background: #f5f5f7;
  justify-content: flex-start;
}

.hero__side {
  background: linear-gradient(180deg, #f0f4ff 0%, #e7edfa 100%);
  justify-content: flex-start;
}

.hero__tag {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero__card h2 {
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero__side h2 {
  font-size: 28px;
}

.hero__price {
  color: var(--muted);
  font-size: 17px;
}

.hero__price b {
  color: var(--text);
  font-weight: 600;
}

.hero__links {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.hero__links a {
  color: var(--accent);
  font-size: 17px;
}

.hero__links a:hover {
  text-decoration: underline;
}

.hero__img {
  margin-top: auto;
  max-height: 210px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero__img--sm {
  max-height: 150px;
}

.btn-accent {
  margin-top: 18px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

/* ---------- Section ---------- */
.section {
  padding: 40px 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section__head h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__head span {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Features strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 4px 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 16px 18px;
}

.feature__ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
}

.feature__ic svg {
  width: 22px;
  height: 22px;
}

.feature b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__top {
  position: relative;
}

.card__badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.badge-new {
  background: #e8f0ff;
  color: var(--accent);
}

.badge-hit {
  background: #fff0e6;
  color: #c2410c;
}

.wish {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.18s, transform 0.15s, background 0.18s;
}

.wish:hover {
  background: var(--bg-soft);
  transform: scale(1.08);
}

.wish.active {
  color: var(--danger);
}

.wish.active svg {
  fill: var(--danger);
}

.card__img {
  height: 200px;
  border-radius: 12px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 10px;
}

.card__img svg {
  width: 84px;
  height: 84px;
  color: var(--border-strong);
}

.card__brand {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  flex: 1;
}

.card__color {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.card__rating .stars {
  color: #f5a623;
}

.card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.card__price b {
  font-size: 19px;
  font-weight: 600;
}

.card__old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.card__split {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.card__buy {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s;
}

.card__buy:hover {
  background: var(--accent-hover);
}

.card__buy.in-cart {
  background: var(--bg-soft);
  color: var(--text);
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}

.link-all {
  color: var(--accent);
  font-size: 15px;
  font-weight: 400;
}

.link-all:hover {
  text-decoration: underline;
}

/* ---------- Product modal ---------- */
.pmodal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 900px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 22px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pmodal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.pmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.pmodal__close:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.pmodal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: calc(100vh - 48px);
}

.pmodal__media {
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 420px;
}

.pmodal__media img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pmodal__media svg {
  width: 140px;
  height: 140px;
  color: var(--border-strong);
}

.pmodal__info {
  padding: 40px 36px;
  overflow-y: auto;
}

.pmodal__brand {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pmodal__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pmodal__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.pmodal__rating .stars {
  color: #f5a623;
}

.pmodal__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.pmodal__price b {
  font-size: 28px;
  font-weight: 600;
}

.pmodal__old {
  font-size: 17px;
  color: var(--muted);
  text-decoration: line-through;
}

.pmodal__split {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.pmodal__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #424245;
  margin-bottom: 22px;
}

.specs {
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.specs__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.specs__row span {
  color: var(--muted);
}

.specs__row b {
  font-weight: 500;
  text-align: right;
}

.pmodal__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pmodal__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 6px;
}

.pmodal__qty button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.pmodal__qty button:hover {
  background: #ebebed;
}

.pmodal__qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
}

.pmodal__add {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  transition: background 0.18s;
}

.pmodal__add:hover {
  background: var(--accent-hover);
}

/* ---------- Checkout modal ---------- */
.comodal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 22px;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comodal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.comodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}

.comodal__head h3 {
  font-size: 20px;
  font-weight: 600;
}

.comodal__scroll {
  overflow-y: auto;
  padding: 22px 26px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.field input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(224, 51, 75, 0.12);
}

.field .err {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}

.field.show-err .err {
  display: block;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.opts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}

.opt:hover {
  border-color: var(--muted);
}

.opt input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.opt.checked {
  border-color: var(--accent);
  background: #f4f9ff;
}

.opt .opt__meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.co-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 12px;
}

.co-summary {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 8px;
}

.co-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 5px 0;
  color: #424245;
}

.co-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border-strong);
  margin-top: 8px;
  padding-top: 12px;
}

.co-summary__total b {
  font-size: 22px;
  font-weight: 600;
}

.comodal__foot {
  padding: 18px 26px;
  border-top: 1px solid var(--border);
}

.comodal__submit {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 17px;
  transition: background 0.18s;
}

.comodal__submit:hover {
  background: var(--accent-hover);
}

.co-success {
  text-align: center;
  padding: 48px 26px;
}

.co-success__ic {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #1a9e54;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-success__ic svg {
  width: 38px;
  height: 38px;
}

.co-success h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.co-success p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.co-success b {
  color: var(--text);
}

.co-success__req {
  font-size: 12px !important;
  color: var(--muted);
  opacity: 0.8;
}

.co-success__ic--wait {
  background: #fff4e5;
  color: #b25c00;
}

.co-success__ic--fail {
  background: #fdeaed;
  color: var(--danger);
}

/* ---------- Оплата: способы, графики, статусы ---------- */
.opt--off {
  opacity: 0.5;
  cursor: not-allowed;
}

.opt--off:hover {
  border-color: var(--border-strong);
}

.pay-details {
  margin: -6px 0 4px;
}

.pay-plan {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 6px 16px;
  margin-bottom: 10px;
}

.pay-plan__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 9px 0;
  color: #424245;
  border-bottom: 1px solid var(--border);
}

.pay-plan__row:last-child {
  border-bottom: none;
}

.pay-plan__row--now {
  color: var(--text);
  font-weight: 500;
}

.pay-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.pay-note--offline {
  margin-top: 10px;
  text-align: center;
}

.terms {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.term {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 11px 8px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.term span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.term:hover {
  border-color: var(--muted);
}

.term--on {
  border-color: var(--accent);
  background: #f4f9ff;
}

.term--on span {
  color: var(--accent);
}

.co-error {
  display: none;
  margin-top: 14px;
  border-radius: 12px;
  background: #fdeaed;
  color: #a51c30;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
}

.co-error.show {
  display: block;
}

.comodal__submit.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.comodal__ghost {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 16px;
  transition: background 0.18s;
}

.comodal__ghost:hover {
  background: #ebebef;
}

.pmodal__doly {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.info-page {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}
.info-page p {
  margin: 0 0 14px;
}
.info-page ul,
.info-page ol {
  margin: 0 0 14px;
  padding-left: 20px;
}
.info-page li {
  margin-bottom: 6px;
}
.info-page a {
  color: var(--accent);
}
.info-page .info-muted {
  color: var(--muted);
  font-size: 13px;
}

.footer__bottom a {
  color: inherit;
  text-decoration: none;
}
.footer__bottom a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 50;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: #fff;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
}

.drawer.open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.drawer__head h3 {
  font-size: 20px;
  font-weight: 600;
}

.drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item__img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 6px;
}

.cart-item__img svg {
  width: 34px;
  height: 34px;
  color: var(--border-strong);
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 600;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty button:hover {
  background: #ebebed;
}

.qty span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.cart-item__remove {
  color: var(--muted);
  align-self: flex-start;
  font-size: 22px;
  line-height: 1;
  transition: color 0.15s;
}

.cart-item__remove:hover {
  color: var(--danger);
}

.drawer__foot {
  padding: 22px 24px;
  border-top: 1px solid var(--border);
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.drawer__total span {
  color: var(--muted);
}

.drawer__total b {
  font-size: 24px;
  font-weight: 600;
}

.checkout {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 17px;
  transition: background 0.2s;
}

.checkout:hover {
  background: var(--accent-hover);
}

.checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding: 44px 0 32px;
  background: var(--bg-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__about {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 12px;
}

.footer__req {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer__bottom {
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 500;
  z-index: 80;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__card h2 {
    font-size: 30px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .search {
    display: none;
  }
  .pmodal__body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .pmodal__media {
    min-height: 280px;
    padding: 28px;
  }
  .pmodal__info {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .drawer {
    width: 100%;
  }
}
