﻿:root {
  --bg: #f7f3ee;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #67605a;
  --accent: #c7512f;
  --accent-2: #3d332b;
  --line: #e8dfd6;
  --cart-extra: 120px;
}

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

body {
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, #f8dfcf 0%, transparent 30%),
    radial-gradient(circle at 92% 10%, #f3d1bf 0%, transparent 28%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  width: min(1280px, 95%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(130deg, #2f2824 0%, #4d3f35 45%, #725745 100%);
  color: #fff6ef;
  padding: 1rem 0 1.1rem;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-left {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff6ef;
  font-size: clamp(2rem, 2.7vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-wordmark em {
  color: #e6a04e;
  font-style: normal;
}

.menu-location {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  text-decoration: none;
  color: #fff6ef;
  min-width: 0;
}

.menu-location svg {
  width: 26px;
  height: 26px;
  fill: #fff6ef;
  flex: 0 0 auto;
}

.menu-location-text {
  display: grid;
  line-height: 1.02;
}

.menu-location-text small {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ead9cc;
}

.menu-location-text strong {
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34ch;
}

.menu-right {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.menu-top .search-top-wrap {
  width: clamp(300px, 34vw, 560px);
}

.menu-top .search-top-wrap input {
  width: 100%;
  font-size: 0.8rem;
}

.profile-top {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #fff6ef;
  text-decoration: none;
  font-size: clamp(0.92rem, 1.1vw, 1.14rem);
  font-weight: 800;
  min-width: 0;
}

.profile-top span {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-top .profile-top-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.profile-top-photo {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid #ffffff66;
  background: #2f2824;
}

.profile-top.logged .profile-top-icon {
  display: none;
}

.profile-top.logged .profile-top-photo {
  display: block;
}

.notify-top {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff6ef;
  text-decoration: none;
}

.notify-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.menu-top .cart-link {
  color: #fff6ef;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.45rem);
  font-weight: 800;
  gap: 0.35rem;
}

.menu-top .cart-icon {
  width: 20px;
  height: 20px;
}

.menu-top #cart-count {
  min-width: 22px;
  height: 22px;
  font-size: 0.74rem;
}

.hero-menu {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 2rem);
  flex-wrap: wrap;
}

.hero-menu a {
  text-decoration: none;
  color: #fff6ef;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 800;
  line-height: 1;
}

.hero-menu a.em {
  font-style: italic;
  font-weight: 900;
}

.hero-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ship-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 14px;
  background: #ffe3d2;
  color: #2f2824;
  text-decoration: none;
  border: 1px solid #ffffff40;
  box-shadow: 0 10px 24px #00000014;
  min-width: 210px;
}

.ship-pick:hover {
  background: #ffd7b8;
}

.ship-ic {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ship-ic svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ship-lines {
  display: grid;
  line-height: 1.05;
}

.ship-lines .ship-top {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.9;
}

.ship-dest {
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.logo span {
  color: #ffb080;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.full-bar {
  width: 100%;
  justify-content: flex-end;
}

.search-top-wrap input {
  width: 420px;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  background: #fff9f5;
  color: #2f2824;
}

.hero-content {
  margin-top: 3.2rem;
  max-width: 620px;
}

.tag {
  display: inline-block;
  border: 1px solid #ffffff60;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 0.9rem;
}

.hero p {
  color: #f6dfd2;
  max-width: 540px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  padding: 0.68rem 1.05rem;
}

.hero-utilities {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid #ffffff70;
  background: #fff3e8;
  color: #2f2824;
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.pill:hover {
  background: #ffd7b8;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #2f2824;
  background: #ffe3d2;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-weight: 700;
}

.cart-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-page {
  margin: 1rem auto 2rem;
  padding-bottom: var(--cart-extra);
}

.cart-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
  align-items: start;
}

.cart-titlebar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px #2f211814;
  padding: 1rem 1.2rem;
}

.cart-titlebar h1 {
  font-size: 1.5rem;
}

.cart-title-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #2f2824;
}

.cart-title-logo span {
  color: var(--accent);
}

.cart-products,
.cart-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px #2f211814;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.cart-products {
  min-height: 420px;
  align-content: start;
}

.ship-value.free {
  color: #2aa56a;
  font-weight: 900;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.summary-title {
  font-size: 1rem;
  font-weight: 900;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
}

.summary-list {
  padding: 0.65rem 0.95rem 0.35rem;
  display: grid;
  gap: 0.45rem;
}

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.25rem 0;
}

.sum-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.money {
  font-weight: 900;
}

.money.now {
  font-size: 1.08rem;
}

.ship-value {
  font-weight: 900;
  font-size: 1.05rem;
}

.money sup {
  font-size: 0.7em;
  vertical-align: super;
}

.money.before {
  color: #8b7f77;
  text-decoration: line-through;
}

.money.now {
  color: #2f2824;
}

.money.total {
  font-size: 1.45rem;
}

.sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem 0.85rem;
}

.sum-total-label {
  font-size: 1rem;
  font-weight: 900;
}

.sum-link-static {
  color: #1a66d6;
  font-weight: 900;
}

.pay-selected-inline {
  margin: -0.35rem 0 0.85rem;
  padding: 0 0.95rem;
  text-align: right;
  font-weight: 900;
  color: #2aa56a;
}

.cart-actions {
  display: grid;
  gap: 0.6rem;
}

.cart-actions .btn.primary {
  width: 100%;
  margin-top: 0;
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #00000080;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px #00000025;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.modal-card h2 {
  font-size: 1.1rem;
  font-weight: 900;
}

.modal-form {
  display: grid;
  gap: 0.6rem;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.pay-option:hover {
  background: #fff7f2;
}

.modal-actions {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.2rem;
}

.back {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

#cart-items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.9rem;
}

#cart-items .empty {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  background: #fff;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  position: relative;
  display: grid;
  grid-template-rows: 140px 1fr;
  min-height: 240px;
}

.cart-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.cart-item-body {
  padding: 0.75rem;
  display: grid;
  gap: 0.3rem;
}

.cart-item-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff7f2;
  color: #2f2824;
  font-weight: 900;
  cursor: pointer;
}

.qty-btn:hover {
  background: #ffe3d2;
}

.qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  color: #2f2824;
}

.cart-item-price {
  font-weight: 800;
}

.cart-item-qty {
  color: var(--muted);
  font-size: 0.86rem;
}

.remove {
  border: 1px solid #eac8bb;
  background: #fff5f0;
  color: #983c23;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}

.total {
  font-size: 1.2rem;
  font-weight: 800;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.secondary {
  background: #fff5ef;
  color: #8c3c26;
  border: 1px solid #eac8bb;
}

.feedback {
  min-height: 1rem;
  color: #18663f;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
}

.footer-links a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 0.7rem 0 1.7rem;
}

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

  .cart-titlebar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .menu-right {
    width: 100%;
    margin-left: 0;
  }

  .menu-top .search-top-wrap {
    width: 100%;
    flex: 1 1 100%;
  }

  .menu-top .search-top-wrap input {
    width: 100%;
  }

  .menu-location-text strong {
    max-width: 24ch;
  }
}
