/**
 * NUCIFERA Cart — luxury mock layout.
 */

.ncart {
  background: #ffffff;
  color: #111111;
}

/* Cart notice link polish (layout shared via commerce-light.css) */
body.woocommerce-cart .woocommerce-message a,
body.woocommerce-cart .woocommerce-info a,
body.woocommerce-cart .woocommerce-error a,
body.woocommerce-cart .woocommerce-message .restore-item,
body.woocommerce-cart .woocommerce-message .button {
  color: #111111 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-left: 0.35rem;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  box-shadow: none !important;
  float: none !important;
}

.ncart__layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .ncart__layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    gap: 3rem;
  }
}

.ncart__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
  color: #111111;
  text-decoration: none;
  font-family: var(--nucifera-font-body, Manrope, sans-serif);
  font-size: 0.84rem;
  font-weight: 500;
}

.ncart__back:hover {
  opacity: 0.65;
}

.ncart__head {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.ncart__title {
  margin: 0;
  font-family: var(--nucifera-premium-display, "Playfair Display", Georgia, serif) !important;
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #111111;
}

.ncart__lede {
  margin: 0.65rem 0 0;
  max-width: 34rem;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #666666;
}

/* Main column — no card chrome */
.ncart .nucifera-cart__main,
.ncart__main,
.ncart .ncart__form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ncart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e8e8e8;
}

.ncart-item {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) 2rem;
  grid-template-areas: "media info remove";
  gap: 0.65rem 1.15rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e8e8e8;
  background: transparent;
}

.ncart-item__media {
  grid-area: media;
  width: 96px;
  height: 96px;
  border-radius: 0;
  overflow: hidden;
  background: #f5f5f5;
  border: 0;
}

.ncart-item__info {
  grid-area: info;
  min-width: 0;
  padding-right: 0.25rem;
}

.ncart-item__remove {
  grid-area: remove;
  justify-self: end;
  align-self: start;
}

.ncart-item__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.55rem;
  min-width: 0;
}

.ncart-item__qty {
  flex: 0 0 auto;
  margin: 0;
  justify-self: unset;
}

.ncart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ncart-item__brand {
  margin: 0 0 0.2rem;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
}

.ncart-item__name,
.ncart-item__name a {
  margin: 0;
  font-family: var(--nucifera-premium-display, "Playfair Display", Georgia, serif) !important;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111111 !important;
  text-decoration: none;
}

.ncart-item__meta {
  margin: 0.35rem 0 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.82rem;
  color: #888888;
}

.ncart-item__price {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
}

.ncart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.2rem -0.25rem 0 0;
  color: #111111;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 160ms ease, background 160ms ease;
  border-radius: 0;
}

.ncart-item__remove:hover {
  opacity: 1;
  background: #f5f5f5;
}

.ncart-item__qty .quantity,
.ncart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  min-height: 2.35rem;
}

.ncart .quantity .nucifera-qty__btn,
.ncart .quantity button,
.ncart .quantity .minus,
.ncart .quantity .plus {
  width: 2.1rem;
  height: 2.35rem;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.ncart .quantity .qty,
.ncart .quantity input.qty {
  width: 2.2rem;
  min-height: 2.35rem;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: center;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111111;
  padding: 0;
  -moz-appearance: textfield;
}

.ncart .quantity .qty::-webkit-outer-spin-button,
.ncart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ncart__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1.15rem;
}

.ncart__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #666666;
  text-decoration: none;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.86rem;
  font-weight: 500;
}

.ncart__clear:hover {
  color: #111111;
}

.ncart__coupon {
  margin: 0;
  border: 0;
  padding: 0;
  min-width: min(100%, 20rem);
}

.ncart__coupon.napp-accordion {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.ncart__coupon-trigger.napp-accordion__trigger {
  min-height: 2.5rem;
  gap: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #111111;
}

.ncart__coupon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ncart__coupon-icon {
  display: inline-flex;
  color: #111111;
  opacity: 0.7;
}

.ncart__coupon-plus {
  font-size: 1.1rem;
  line-height: 1;
  color: #888888;
  transition: transform 180ms ease;
}

.ncart__coupon-trigger[aria-expanded="true"] .ncart__coupon-plus {
  transform: rotate(45deg);
}

.ncart__coupon-panel.napp-accordion__panel {
  padding: 0.15rem 0 0.35rem;
}

.ncart__coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
}

.ncart__coupon-input.napp-input,
.ncart__coupon-input.input-text {
  min-height: 2.75rem !important;
  width: 100%;
  padding: 0.7rem 0.95rem !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.02em;
}

.ncart__coupon-apply.napp-btn {
  min-height: 2.75rem;
  min-width: 5.75rem;
  padding: 0 1.15rem;
  border-radius: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ncart__update {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Promo banner */
.ncart-promo {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: #f7f7f7;
  border-radius: 12px;
}

.ncart-promo__art {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0eeea;
  border: 1px solid #e8e8e8;
  flex: 0 0 88px;
}

.ncart-promo__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ncart-promo__kicker {
  margin: 0 0 0.25rem;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888888;
}

.ncart-promo__title {
  margin: 0;
  font-family: var(--nucifera-premium-display, "Playfair Display", Georgia, serif) !important;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #111111;
}

.ncart-promo__text {
  margin: 0.3rem 0 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.86rem;
  color: #666666;
  line-height: 1.4;
}

.ncart-promo__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: #111111;
  text-decoration: none;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.86rem;
  font-weight: 600;
}

.ncart-promo__link:hover {
  opacity: 0.65;
}

/* Summary sidebar */
.ncart-summary,
.ncart .nucifera-cart-totals {
  background: #f7f7f7 !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.65rem 1.5rem !important;
  position: sticky;
  top: calc(var(--nucifera-header-h, 4.5rem) + 1rem);
}

.ncart-summary__title {
  margin: 0 0 1.15rem;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111111;
}

.ncart-summary__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  table-layout: fixed;
}

.ncart-summary__table th,
.ncart-summary__table td {
  padding: 0.6rem 0;
  border: 0;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.9rem;
  color: #111111;
  vertical-align: baseline;
  line-height: 1.35;
}

.ncart-summary__table th {
  width: 42%;
  font-weight: 500;
  color: #666666;
  text-align: left;
  padding-right: 0.75rem;
}

.ncart-summary__table td {
  width: 58%;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ncart-summary__table .order-total th,
.ncart-summary__table .order-total td {
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
}

.ncart-summary__table .order-total th {
  font-weight: 700;
  color: #111111;
  letter-spacing: 0.02em;
}

.ncart-summary__vat {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #888888;
}

/* Hide verbose WC shipping radios UI noise where possible */
.ncart-summary__table .woocommerce-shipping-destination,
.ncart-summary__table .shipping-calculator-button,
.ncart-summary #shipping_method {
  font-size: 0.82rem;
  font-weight: 500;
}

.ncart-summary #shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.ncart-summary__actions {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
}

.ncart-summary__actions .ncart-btn,
.ncart-summary__actions .checkout-button,
.ncart .wc-proceed-to-checkout .ncart-btn,
.ncart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .ncart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .ncart .nucifera-cart-totals .checkout-button,
body.woocommerce-cart .ncart-summary .ncart-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 3rem !important;
  height: auto !important;
  padding: 0.85rem 1.25rem !important;
  border-radius: 8px !important;
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ncart-btn--primary,
.ncart .checkout-button.ncart-btn--primary,
body.woocommerce-cart .ncart .checkout-button.ncart-btn--primary {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
}

.ncart-btn--primary:hover,
body.woocommerce-cart .ncart .checkout-button.ncart-btn--primary:hover {
  background: #2a2a2a !important;
  color: #ffffff !important;
}

.ncart-btn--ghost,
body.woocommerce-cart .ncart .ncart-btn--ghost {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #111111 !important;
  border-radius: 8px !important;
  min-height: 3rem !important;
  padding: 0.85rem 1.25rem !important;
}

.ncart-btn--ghost:hover,
body.woocommerce-cart .ncart .ncart-btn--ghost:hover {
  background: #fafafa !important;
}

.ncart-trust {
  list-style: none;
  margin: 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid #e0e0e0;
  display: grid;
  gap: 0.95rem;
}

.ncart-trust li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.ncart-trust__icon {
  display: inline-flex;
  color: #111111;
  margin-top: 0.1rem;
}

.ncart-trust__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ncart-trust__text strong {
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.86rem;
  font-weight: 650;
  color: #111111;
}

.ncart-trust__text small {
  font-family: var(--nucifera-font-body, Manrope, sans-serif) !important;
  font-size: 0.75rem;
  color: #888888;
  line-height: 1.35;
}

/* Cross-sells under cart — keep calm */
.ncart .cross-sells {
  margin-top: 2rem;
}

@media (max-width: 959px) {
  .ncart-summary,
  .ncart .nucifera-cart-totals {
    position: static;
  }

  .ncart-promo {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ncart-promo__link {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .ncart-item {
    grid-template-columns: 80px minmax(0, 1fr) 2rem !important;
    grid-template-areas: "media info remove" !important;
    gap: 0.55rem 0.95rem;
  }

  .ncart-item__bar {
    gap: 0.55rem 0.75rem;
  }

  .ncart-item__media {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 80px !important;
  }

  .ncart-item__info {
    min-width: 0;
  }

  .ncart__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ncart__coupon {
    width: 100%;
    min-width: 0;
  }

  .ncart__coupon-trigger.napp-accordion__trigger {
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .ncart__title {
    font-size: 1.85rem;
  }
}
