/* ===========================================================================
   No1 Princess — Cart page ("View cart")
   Layered on home.css (tokens + .np-container + footer + reveal). Brand look:
   items list + sticky order summary, in cream/dark with display type.
   =========================================================================== */

.np-cartpage-page { background: var(--c-cream); color: var(--c-dark); }

.np-cartpage {
  padding-top: clamp(112px, 13vh, 172px);
  padding-bottom: clamp(48px, 7vw, 100px);
  min-height: 60vh;
}

/* ---- Head --------------------------------------------------------------- */
.np-cartpage__head { margin-bottom: clamp(24px, 3.5vw, 46px); }
.np-cartpage__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-dark);
  opacity: 0.65; text-decoration: none; transition: opacity 0.2s ease;
}
.np-cartpage__back svg { width: 17px; height: 17px; }
.np-cartpage__back:hover { opacity: 1; }
.np-cartpage__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase; margin: 10px 0 0;
}
.np-cartpage__count { font-family: var(--font-body); font-size: 15px; color: #7d786f; margin: 8px 0 0; }

/* ---- Grid --------------------------------------------------------------- */
.np-cartpage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 380px);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* ---- Items -------------------------------------------------------------- */
.np-cartpage__items-head,
.np-cartpage__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 110px;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}
.np-cartpage__items-head {
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(29, 29, 27, 0.12);
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9a938660;
  color: #a29a8c;
}
.np-cartpage__items-head span:nth-child(2) { text-align: center; }
.np-cartpage__items-head span:nth-child(3) { text-align: right; }

.np-cartpage__item {
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid rgba(29, 29, 27, 0.1);
}
.np-cartpage__product { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); min-width: 0; }
.np-cartpage__thumb {
  flex: none; display: block; width: clamp(64px, 6vw, 88px); aspect-ratio: 1;
  border-radius: 14px; overflow: hidden; background: var(--c-beige);
}
.np-cartpage__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-cartpage__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.np-cartpage__name {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.08; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--c-dark); text-decoration: none;
}
.np-cartpage__name:hover { opacity: 0.7; }
.np-cartpage__unit { font-family: var(--font-body); font-size: 13px; color: #837d73; }
.np-cartpage__remove {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.04em;
  color: #9a9184; text-decoration: none; transition: color 0.2s ease; width: fit-content;
}
.np-cartpage__remove svg { width: 13px; height: 13px; }
.np-cartpage__remove:hover { color: #b23b3b; }

/* qty stepper */
.np-cartpage__qty {
  justify-self: center;
  display: inline-flex; align-items: center; height: 46px;
  border: 1.5px solid rgba(29, 29, 27, 0.22); border-radius: 999px; overflow: hidden;
}
.np-cartpage__qbtn {
  width: 40px; height: 100%; border: 0; background: transparent;
  font-size: 19px; line-height: 1; color: var(--c-dark); cursor: pointer;
}
.np-cartpage__qbtn:hover { background: rgba(29, 29, 27, 0.06); }
.np-cartpage__qinput {
  width: 38px; text-align: center; border: 0; background: transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--c-dark);
  -moz-appearance: textfield;
}
.np-cartpage__qinput::-webkit-outer-spin-button,
.np-cartpage__qinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.np-cartpage__qinput:focus { outline: none; }

.np-cartpage__line {
  justify-self: end; text-align: right;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 1.7vw, 26px);
  color: var(--c-dark); white-space: nowrap;
}

/* items foot: coupon + update */
.np-cartpage__items-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: clamp(18px, 2.4vw, 28px);
}
.np-cartpage__coupon { display: inline-flex; gap: 8px; }
.np-cartpage__coupon-input {
  height: 48px; padding: 0 18px; min-width: 170px; border-radius: 999px;
  border: 1.5px solid rgba(29, 29, 27, 0.22); background: #fff;
  font-family: var(--font-body); font-size: 14px; color: var(--c-dark);
}
.np-cartpage__coupon-input:focus { outline: none; border-color: var(--c-dark); }
.np-cartpage__coupon-btn {
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--c-dark);
  background: transparent; color: var(--c-dark); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.np-cartpage__coupon-btn:hover { background: var(--c-dark); color: var(--c-cream); }
.np-cartpage__update {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
  color: #8a857c; text-decoration: underline; text-underline-offset: 3px;
}
.np-cartpage__update:hover { color: var(--c-dark); }

/* ---- Summary ------------------------------------------------------------ */
.np-cartpage__summary {
  position: sticky; top: clamp(96px, 12vh, 130px);
  background: #fff; border-radius: clamp(18px, 2vw, 26px);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: 0 24px 60px rgba(29, 29, 27, 0.1);
}
.np-cartpage__summary-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 28px);
  text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 18px;
}
.np-cartpage__coupons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.np-cartpage__coupon-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px;
  border-radius: 999px; background: #e7efe2; font-family: var(--font-body);
  font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: #3a5a3a;
}
.np-cartpage__coupon-chip a { color: inherit; text-decoration: none; font-size: 17px; line-height: 1; opacity: 0.6; }
.np-cartpage__coupon-chip a:hover { opacity: 1; }

.np-cartpage__totals { display: flex; flex-direction: column; gap: 12px; }
.np-cartpage__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-body); font-size: 15px; color: #4a453d;
}
.np-cartpage__row span:last-child { font-weight: 600; color: var(--c-dark); }
.np-cartpage__row--discount span:last-child { color: #3a7a45; }
.np-cartpage__row--grand {
  margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(29, 29, 27, 0.12);
}
.np-cartpage__row--grand span { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); color: var(--c-dark); }
.np-cartpage__vatnote { font-family: var(--font-body); font-size: 12px; color: #948d81; margin: 10px 0 0; line-height: 1.5; }

.np-cartpage__checkout {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 58px; margin-top: 22px; border-radius: 999px;
  background: var(--c-dark); color: var(--c-cream); text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.np-cartpage__checkout svg { width: 20px; height: 20px; transition: transform 0.25s ease; }
.np-cartpage__checkout:hover { transform: translateY(-2px); background: #000; }
.np-cartpage__checkout:hover svg { transform: translateX(4px); }
.np-cartpage__continue {
  display: block; text-align: center; margin-top: 14px;
  font-family: var(--font-body); font-size: 14px; color: #7d786f; text-decoration: none;
}
.np-cartpage__continue:hover { color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; }
.np-cartpage__trust {
  list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(29, 29, 27, 0.1);
  display: flex; flex-direction: column; gap: 8px;
}
.np-cartpage__trust li {
  font-family: var(--font-body); font-size: 13px; color: #6a655c; padding-left: 24px; position: relative;
}
.np-cartpage__trust li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 9px;
  border-left: 2px solid #3a7a45; border-bottom: 2px solid #3a7a45; transform: rotate(-45deg);
}

/* ---- Empty state -------------------------------------------------------- */
.np-cartpage__empty { text-align: center; padding: clamp(30px, 7vw, 90px) 0; max-width: 520px; margin-inline: auto; }
.np-cartpage__empty-emoji { font-size: clamp(56px, 9vw, 88px); line-height: 1; display: inline-block; }
.np-cartpage__empty-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 52px);
  text-transform: uppercase; letter-spacing: -0.01em; margin: clamp(14px, 2vw, 24px) 0 10px;
}
.np-cartpage__empty-text { font-family: var(--font-body); font-size: clamp(15px, 1.3vw, 18px); color: #6a655c; line-height: 1.6; margin: 0 0 clamp(20px, 3vw, 30px); }
.np-cartpage__cta {
  display: inline-flex; align-items: center; height: 56px; padding: 0 34px; border-radius: 999px;
  background: var(--c-dark); color: var(--c-cream); text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.np-cartpage__cta:hover { transform: translateY(-2px); background: #000; }

/* ---- You might also like ------------------------------------------------ */
.np-cartpage__more { margin-top: clamp(46px, 7vw, 96px); }
.np-cartpage__more-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 44px);
  text-transform: uppercase; letter-spacing: -0.01em; text-align: center; margin: 0 0 clamp(22px, 3vw, 36px);
}
.np-cartpage__more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
.np-cartpage__more-media { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--c-beige); margin-bottom: 12px; }
.np-cartpage__more-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.np-cartpage__more-card:hover .np-cartpage__more-media img { transform: scale(1.06); }
.np-cartpage__more-name { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(15px, 1.3vw, 20px); text-transform: uppercase; line-height: 1.1; color: var(--c-dark); text-decoration: none; }
.np-cartpage__more-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; }
.np-cartpage__more-price { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: #6a655c; }
.np-cartpage__more-add {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-dark); color: var(--c-cream); text-decoration: none; transition: transform 0.2s ease, background-color 0.2s ease;
}
.np-cartpage__more-add svg { width: 18px; height: 18px; }
.np-cartpage__more-add:hover { transform: scale(1.08); background: #000; }

/* ---- Loading overlay (during a cart update submit) ---------------------- */
.np-cartpage__loading {
  position: fixed; inset: 0; z-index: 9998; background: rgba(246, 244, 241, 0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: grid; place-items: center;
}
.np-cartpage__loading[hidden] { display: none; }
.np-cartpage__spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(29, 29, 27, 0.18); border-top-color: var(--c-dark);
  animation: np-cartspin 0.7s linear infinite;
}
@keyframes np-cartspin { to { transform: rotate(360deg); } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .np-cartpage__grid { grid-template-columns: 1fr; }
  .np-cartpage__summary { position: static; }
  .np-cartpage__more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .np-cartpage__items-head { display: none; }
  .np-cartpage__item {
    grid-template-columns: clamp(64px, 20vw, 88px) 1fr;
    grid-template-areas: "product product" "qty line";
    row-gap: 14px;
  }
  .np-cartpage__product { grid-area: product; }
  .np-cartpage__qty { grid-area: qty; justify-self: start; }
  .np-cartpage__line { grid-area: line; align-self: center; }
  .np-cartpage__items-foot { flex-direction: column; align-items: stretch; }
  .np-cartpage__coupon { width: 100%; }
  .np-cartpage__coupon-input { flex: 1; min-width: 0; }
}
