@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

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

:root {
  --page-bg: #efebe6;
  --surface: #ffffff;
  --surface-soft: #faf7f3;
  --ink: #16130f;
  --muted: #7b746e;
  --line: rgba(22, 19, 15, 0.09);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
  --accent: #7a5a3a;
  --accent-soft: #e9dccf;
  --success: #1e8f67;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(180deg, #f4f0eb 0%, #ece7e1 100%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.products-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 60px;
  list-style: none;
}

.main-logo-navbar {
  height: 58px;
  display: block;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links > a,
.cart-items > a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}

.nav-links > a:hover,
.cart-items > a:hover {
  color: var(--accent);
}

.logo-item a {
  display: inline-flex;
  align-items: center;
}

.cart-items {
  display: flex;
  align-items: center;
}

.cart-items a[aria-current="page"] {
  position: relative;
  font-weight: 700;
}

.cart-items a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.cart-shell {
  padding: 0;
}

.cart-frame {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  background: var(--surface);
  border-radius: 0;
  box-shadow: none;
  border: 0;
  overflow: hidden;
}

.frame-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
}

.brand-chip {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.frame-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.frame-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

.frame-nav a.active {
  color: var(--ink);
}

.frame-nav a.active::after {
  content: "•";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -18px;
  color: var(--ink);
  font-size: 1.2rem;
}

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

.cart-icon-btn {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d84b3d;
  color: #fff;
  font-size: 0.62rem;
  line-height: 16px;
  text-align: center;
}

.profile-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e9e3da;
}

.profile-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 30px 24px 8px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.step span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d5d0c8;
  background: #fff;
  font-size: 0.66rem;
}

.step.active span {
  background: #111;
  color: #fff;
  border-color: #111;
}

.step strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.step-line {
  width: 112px;
  height: 1px;
  background: #ddd6ce;
  margin-top: -14px;
}

.step-line.active {
  background: #a7a098;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.78fr);
  gap: 34px;
  padding: 14px 32px 30px;
}

.cart-list-panel {
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.select-all input,
.item-check input {
  width: 14px;
  height: 14px;
  accent-color: #111;
}

.panel-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.panel-links a {
  text-decoration: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 22px 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 16px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.cart-item + .cart-item {
  margin-top: 10px;
}

.item-image {
  width: 132px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #efeadf, #f8f5ef);
}

.item-content {
  min-width: 0;
}

.item-toprow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.item-toprow h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.item-toprow p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #8f877f;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.item-bottomrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-bottomrow strong {
  font-size: 1.1rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.qty-control button {
  width: 26px;
  height: 26px;
  border: 1px solid #e2ddd6;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.summary-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.summary-block h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.coupon-form,
.gift-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.coupon-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.coupon-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #dfd8cf;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.coupon-form input::placeholder {
  color: #9a928d;
}

.coupon-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(122, 90, 58, 0.12);
}

.coupon-form button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #111, #2d251f);
  color: #fff;
  padding: 13px 18px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
  white-space: nowrap;
}

.coupon-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.gift-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #f0e7f3 0%, #efe8ff 100%);
}

.gift-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.gift-card p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.gift-card a {
  color: #5c3db6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.gift-bow {
  opacity: 0.8;
  padding-right: 50px;
  padding-top: 10px;
}

.price-card {
  padding: 14px 16px 12px;
}

.item-count {
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.price-row,
.price-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
}

.price-row.muted {
  color: var(--success);
}

.price-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.place-order-btn {
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
}

.place-order-btn span {
  margin-left: 8px;
}

@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .navbar ul {
    padding: 14px 20px;
  }

  .nav-links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-logo-navbar {
    height: 50px;
  }

  .cart-shell {
    padding: 0;
  }

  .frame-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .frame-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .stepper {
    flex-wrap: wrap;
    gap: 10px;
  }

  .step-line {
    width: 62px;
  }

  .cart-layout {
    padding: 14px 16px 24px;
  }

  .cart-item {
    grid-template-columns: 18px 96px minmax(0, 1fr);
  }

  .item-image {
    width: 96px;
    height: 76px;
  }
}

@media (max-width: 640px) {
  .navbar ul {
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .panel-header,
  .item-toprow,
  .item-bottomrow,
  .gift-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-links {
    flex-wrap: wrap;
  }

  .cart-item {
    grid-template-columns: 18px 1fr;
  }

  .item-image {
    grid-column: 2;
    width: 100%;
    height: 220px;
  }

  .item-content {
    grid-column: 2;
  }

  .step-line {
    display: none;
  }

  .step {
    width: 30%;
  }
}
