:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #fbfcff;
  --line: #dce3ef;
  --line-soft: #edf1f7;
  --text: #17233e;
  --muted: #7e8ca8;
  --navy: #121a2f;
  --navy-soft: #1a233c;
  --gold: #f2aa33;
  --gold-deep: #d78a14;
  --green: #56c58b;
  --orange: #f1a52f;
  --shadow: 0 12px 30px rgba(31, 46, 83, 0.08);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1540px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8f9fd 0%, #f2f5fb 100%);
  color: var(--text);
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

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

.hidden {
  display: none !important;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

body.cart-bar-visible .page-shell {
  padding-bottom: 108px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-header__actions,
.cart-total,
.cart-modal__head {
  display: flex;
}

.site-header__inner,
.cart-total,
.cart-modal__head {
  align-items: center;
  justify-content: space-between;
}

.site-header__inner {
  min-height: 72px;
  padding: 0 22px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__text strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.brand__text small {
  display: block;
  margin-top: 4px;
  color: #9cabc4;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.site-header__actions {
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.action-chip,
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
}

.action-chip {
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: #7b8aa5;
  font-weight: 800;
}

.action-chip span {
  line-height: 1;
}

.action-chip__icon,
.mobile-drawer__icon {
  width: 24px;
  height: 24px;
  display: block;
}

.action-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1;
}

.action-chip--cart {
  min-width: 72px;
  padding: 0 14px;
  justify-content: center;
}

.icon-chip {
  width: 52px;
  border: 1px solid var(--line-soft);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.header-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(23, 35, 62, 0.16);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(92vw, 420px);
  height: 100dvh;
  padding: 26px 28px 32px;
  background: var(--bg);
  box-shadow: -16px 0 36px rgba(23, 35, 62, 0.16);
  transform: translateX(100%);
  transition: transform 240ms ease;
  display: flex;
  flex-direction: column;
}

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

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.mobile-drawer__brand {
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 800;
}

.mobile-drawer__close {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 4rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.mobile-drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 35, 62, 0.12);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.mobile-drawer__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mobile-drawer__item span {
  display: inline-flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.mobile-drawer__item small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-drawer__item strong {
  color: #3a465f;
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
}

.page-cart-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -10px 30px rgba(23, 35, 62, 0.08);
}

.page-cart-bar__total span {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.page-cart-bar__total strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.page-cart-bar__cta {
  min-width: 164px;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0aa35, #f4b53f);
  color: #10182d;
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.58);
  backdrop-filter: blur(5px);
}

.cart-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88dvh, 920px);
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, #111a2f 0%, #10182d 100%);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.cart-modal__head h3 {
  margin: 8px 0 0;
  font-size: 2rem;
}

.cart-modal__head button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.cart-items {
  overflow: visible;
  display: grid;
  gap: 14px;
  padding: 18px 4px 18px 0;
}

.cart-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.cart-item-top,
.cart-item-actions,
.qty-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.cart-item-top {
  align-items: flex-start;
}

.cart-item p,
.cart-item small,
.empty-state p {
  color: #91a0bd;
}

.cart-item__remove {
  width: 38px;
  min-height: 38px;
  margin-top: 2px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.cart-footer {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 6px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-total span {
  color: #94a2bd;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-total strong {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
  color: #ffffff;
}

.cart-payment {
  display: grid;
  gap: 12px;
}

.cart-payment__label {
  color: #94a2bd;
  font-size: 0.95rem;
  font-weight: 800;
}

.cart-payment__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cart-payment__option {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #d8e0f0;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.cart-payment__option.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.transfer-details {
  display: grid;
  gap: 12px;
}

.transfer-details__item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.transfer-details__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.transfer-details__summary::-webkit-details-marker {
  display: none;
}

.transfer-details__summary span {
  color: #e6edf8;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.transfer-details__summary strong {
  flex-shrink: 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}

.transfer-details__item[open] .transfer-details__summary strong {
  content: "-";
}

.transfer-details__item[open] .transfer-details__summary strong::before {
  content: "-";
}

.transfer-details__item[open] .transfer-details__summary strong {
  font-size: 2.2rem;
  color: #dfe8f7;
}

.transfer-details__item[open] .transfer-details__summary strong {
  text-indent: -9999px;
  position: relative;
}

.transfer-details__item[open] .transfer-details__summary strong::before {
  position: absolute;
  inset: 0;
  text-indent: 0;
  display: grid;
  place-items: center;
}

.transfer-details__content {
  padding: 0 20px 18px;
}

.transfer-details__content p {
  margin: 0;
  color: #9fb0cc;
  line-height: 1.6;
}

.transfer-details__cta {
  margin-top: 14px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.transfer-details__cta--order {
  background: linear-gradient(135deg, #f0aa35, #f4b53f);
  color: #10182d;
}

.cart-actions {
  display: grid;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 8px;
  padding: 18px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(242, 170, 51, 0.22);
}

@media (max-width: 900px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-header__actions {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 16px, 1540px);
  }

  .site-header {
    padding: 10px 0;
  }

  .site-header__inner {
    padding: 16px;
  }

  .brand__text strong {
    font-size: 1.35rem;
  }

  .brand__text small {
    font-size: 0.82rem;
  }

  .mobile-drawer {
    width: 100vw;
    padding: 20px 20px 28px;
  }

  .page-cart-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 -10px 30px rgba(23, 35, 62, 0.08);
  }

  .page-cart-bar__total span {
    display: block;
    color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

  .page-cart-bar__total strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
  }

  .page-cart-bar__cta {
    min-width: 164px;
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0aa35, #f4b53f);
    color: #10182d;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
  }

  .cart-modal {
    padding: 12px;
  }

  .cart-modal__panel {
    width: 100%;
    max-height: 92dvh;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .cart-payment__options {
    grid-template-columns: 1fr;
  }

  .mobile-drawer__close {
    font-size: 3.4rem;
  }

  .mobile-drawer__item {
    min-height: 96px;
  }

  .mobile-drawer__item span {
    font-size: 1.1rem;
  }
}
