/* Cart page styles. */

.cart-page {
  padding-bottom: 64px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 540px);
  gap: 24px;
  align-items: start;
}

.cart-panel,
.cart-summary__box {
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.cart-panel {
  padding: 20px;
}

.cart-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.cart-panel__head h2,
.cart-summary__box h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.cart-clear,
.cart-item__remove,
.product-order__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(123, 240, 176, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.cart-clear:hover,
.cart-item__remove:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 240, 176, 0.4);
  background: rgba(123, 240, 176, 0.08);
}

.product-order__submit {
  min-height: 52px;
  border: 1px solid transparent;
  color: #04100c;
  background: linear-gradient(135deg, var(--brand2), #e8ff75);
  box-shadow: 0 16px 34px rgba(17, 182, 93, 0.2);
}

.product-order__submit:hover {
  transform: translateY(-2px);
}

.cart-status {
  min-height: 24px;
  margin-bottom: 12px;
  color: #9cf5c1;
}

.cart-status.is-error {
  color: #ffd58c;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  padding: 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-item__image {
  display: block;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
}

.cart-item__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.cart-item__content {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.cart-item__meta {
  display: grid;
  gap: 8px;
}

.cart-item__title {
  color: var(--text);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
}

.cart-item__price,
.cart-item__line-total,
.cart-summary__total {
  color: var(--accent);
  font-family: var(--display);
}

.cart-item__price {
  font-size: 1.02rem;
}

.cart-price-view {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--accent);
}

.cart-price-view__old {
  color: rgba(234, 236, 232, 0.62);
  font-family: var(--body);
  font-size: 0.86em;
  font-weight: 700;
  text-decoration: line-through;
}

.cart-price-view__current {
  color: #ffdc4c;
}

.cart-price-view--sale .cart-price-view__current {
  color: #ff4b4b;
}

.cart-price-view__badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 2px;
  background: rgba(123, 240, 176, 0.1);
  border: 1px solid rgba(123, 240, 176, 0.2);
  color: #9cf5c1;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cart-qty {
  display: inline-grid;
  grid-template-columns: 44px 74px 44px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  align-self: center;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-qty__step {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}

.cart-qty__input {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: center;
  font: inherit;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item__line-total {
  font-size: 1.2rem;
}

.cart-summary__box {
  position: sticky;
  top: 24px;
  padding: 28px;
}

.cart-summary__hint {
  margin: 16px 0 14px;
  padding: 14px 16px;
  border-radius: 7px;
  border: 1px solid rgba(123, 240, 176, 0.16);
  background: linear-gradient(135deg, rgba(17, 182, 93, 0.14), rgba(255, 213, 74, 0.08));
  color: var(--text);
  line-height: 1.6;
}

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

.cart-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-summary__row span {
  color: var(--muted);
}

.cart-summary__row strong {
  color: var(--text);
}

.cart-summary__row--discount strong {
  color: #9cf5c1;
}

.cart-summary__row--total {
  border: 1px solid rgba(123, 240, 176, 0.18);
  background: linear-gradient(135deg, rgba(17, 182, 93, 0.08), rgba(255, 213, 74, 0.04));
}

.cart-summary__total {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.cart-summary__copy,
.cart-empty p {
  color: var(--muted);
  line-height: 1.7;
}

.cart-summary__note {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 7px;
  border: 1px solid rgba(255, 213, 74, 0.18);
  background: rgba(255, 213, 74, 0.08);
  color: rgba(255, 233, 164, 0.96);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cart-auth {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 7px;
  border: 1px solid rgba(123, 240, 176, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(123, 240, 176, 0.055)),
    rgba(255, 255, 255, 0.03);
}

.cart-auth--alert {
  border-color: rgba(255, 213, 74, 0.24);
  background: rgba(255, 213, 74, 0.08);
  color: #ffeaa1;
}

.cart-auth__copy {
  display: grid;
  gap: 5px;
}

.cart-auth__copy strong,
.cart-auth__profile strong {
  color: var(--text);
}

.cart-auth__copy span,
.cart-auth__profile small {
  color: var(--muted);
  line-height: 1.45;
}

.cart-auth__google,
.cart-auth__link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(123, 240, 176, 0.22);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.045);
}

.cart-auth__google span,
.cart-auth__profile > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}

.cart-auth__google img {
  width: 18px;
  height: 18px;
  display: block;
}

.cart-auth__google.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cart-auth__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-auth__profile img,
.cart-auth__profile > span {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 50%;
}

.cart-auth__profile img {
  object-fit: cover;
}

.cart-auth__profile > span {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #06110d;
  font-weight: 900;
}

.cart-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(17, 182, 93, 0.08), rgba(255, 213, 74, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.cart-footer-nav__copy {
  display: grid;
  gap: 6px;
}

.cart-footer-nav__copy strong {
  color: var(--text);
  font-size: 1.02rem;
}

.cart-footer-nav__copy span {
  color: var(--muted);
  line-height: 1.6;
}

.cart-footer-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-footer-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-footer-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 240, 176, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.cart-footer-nav__link--primary {
  background: linear-gradient(135deg, var(--brand), #d8ff63);
  border-color: transparent;
  color: #07110d;
}

.cart-checkout {
  margin-top: 18px;
}

.product-order__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-order__field {
  position: relative;
  display: grid;
  gap: 8px;
}

.product-order__field--full {
  grid-column: 1 / -1;
}

.product-order__field span {
  color: #9ad0ba;
  font-size: 0.82rem;
}

.product-order__field input,
.product-order__field textarea,
.product-order__field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(8, 17, 16, 0.74);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}

.product-order__field input:focus,
.product-order__field textarea:focus,
.product-order__field select:focus {
  outline: none;
  border-color: rgba(123, 240, 176, 0.44);
  box-shadow: 0 0 0 4px rgba(123, 240, 176, 0.08);
}

.product-order__field input.is-invalid {
  border-color: rgba(255, 88, 88, 0.82);
  box-shadow: 0 0 0 4px rgba(255, 88, 88, 0.1);
}

.product-order__textarea {
  min-height: 118px;
  resize: vertical;
}

.product-order__shipping {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: 1fr;
  gap: 12px;
  scroll-margin-top: 92px;
}

.product-order__shipping .np-field {
  grid-column: 1 / -1;
}

.product-order__shipping--active {
  display: grid;
}

.np-field {
  z-index: 3;
}

.np-field:focus-within {
  z-index: 8;
}

.np-field input[data-np-city],
.np-field input[data-np-warehouse] {
  padding-right: 48px;
}

.np-field__clear {
  position: absolute;
  right: 12px;
  top: auto;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(17, 182, 93, 0.18), rgba(255, 213, 74, 0.12));
  color: #eef7f4;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(6, 12, 11, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 9;
}

.np-field__clear:hover,
.np-field__clear:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(17, 182, 93, 0.28), rgba(255, 213, 74, 0.18));
  box-shadow: 0 14px 30px rgba(6, 12, 11, 0.28);
}

.np-type-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: -2px 0 2px;
}

.np-type-filter__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 13px 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(123, 240, 176, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 17, 16, 0.66);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.np-type-filter__item:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 240, 176, 0.34);
}

.np-type-filter__item input {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  border-radius: 6px;
  border: 2px solid rgba(255, 213, 74, 0.72);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 2px rgba(7, 16, 15, 0.9);
  cursor: pointer;
}

.np-type-filter__item input:checked {
  border-color: transparent;
  background:
    linear-gradient(135deg, var(--brand2), #e8ff75);
  box-shadow:
    inset 0 0 0 5px rgba(7, 16, 15, 0.88),
    0 0 20px rgba(123, 240, 176, 0.2);
}

.np-type-filter__item:has(input:checked) {
  border-color: rgba(123, 240, 176, 0.34);
  background: linear-gradient(135deg, rgba(17, 182, 93, 0.12), rgba(255, 213, 74, 0.06));
}

.np-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 8px;
  border-radius: 7px;
  border: 1px solid rgba(123, 240, 176, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(7, 16, 15, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.np-suggest__item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.np-suggest__item:hover,
.np-suggest__item:focus-visible {
  outline: none;
  background: linear-gradient(135deg, rgba(17, 182, 93, 0.18), rgba(255, 213, 74, 0.08));
}

.np-suggest__item strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.np-suggest__item span,
.np-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.np-help {
  margin-top: -2px;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgba(123, 240, 176, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.np-help.is-error {
  color: #ffd58c;
  border-color: rgba(255, 213, 74, 0.26);
  background: rgba(255, 213, 74, 0.08);
}

.product-order__footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.product-order__status {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42ch;
}

.product-order__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.cart-empty {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cart-empty strong {
  font-size: 1.12rem;
}

.cart-fly-image {
  object-fit: contain;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  transition: transform 0.62s cubic-bezier(.22,.9,.28,1), opacity 0.62s ease, filter 0.62s ease;
}

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

  .cart-summary__box {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-cart .header {
    transition: transform 0.28s ease, opacity 0.22s ease;
    will-change: transform;
  }

  .page-cart .header.is-cart-hidden {
    transform: translateY(calc(-100% - 8px));
    opacity: 0;
    pointer-events: none;
  }

  .page-cart .hero {
    display: none;
  }

  .page-cart .section {
    padding-top: 14px;
  }

  .cart-panel,
  .cart-summary__box {
    padding: 18px;
    border-radius: 7px;
  }

  .cart-footer-nav,
  .cart-footer-nav__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-footer-nav__link {
    width: 100%;
  }

  .cart-panel__head,
  .cart-item__controls,
  .cart-summary__row,
  .product-order__footer {
    flex-direction: column;
    align-items: stretch;
  }

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

  .cart-qty {
    margin: 0 auto;
  }

  .cart-panel__head h2,
  .cart-summary__box h2 {
    font-size: 1.55rem;
  }

  .cart-summary__total {
    font-size: 2.2rem;
  }

  .cart-item__line-total {
    font-size: 1.08rem;
  }

  .cart-item__title {
    font-size: 0.98rem;
  }

  .product-order__shipping {
    grid-template-columns: 1fr;
  }

  .product-order__shipping .np-field {
    grid-column: 1 / -1;
  }

  .product-order__status {
    max-width: none;
  }
}
