/* Cart — scoped styles for the Kyiv Zbroiarnia theme. */
.cart-page {
  padding: 0 0 120px;
  background: #f4f4f4;
  color: var(--main-color, #101010);
}

.cart-page__breadcrumb {
  margin: 22px 0 48px;
  padding: 0;
  background: transparent;
}

.cart-page__breadcrumb > li,
.cart-page__breadcrumb > li a {
  color: var(--main-color, #101010);
  font-size: 13px;
}

.cart-page__breadcrumb > li:not(:last-child) a {
  opacity: 0.55;
}

.cart-page .alert {
  position: relative;
  margin-bottom: 18px;
  padding: 16px 48px 16px 18px;
  background: #fff;
  border: 0;
  border-left: 4px solid var(--accent-color, #c93131);
  border-radius: 0;
  color: var(--main-color, #101010);
}

.cart-page .alert .close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.cart-page__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
}

.cart-page__eyebrow {
  display: block;
  margin-bottom: 11px;
  color: var(--accent-color, #c93131);
  font-family: var(--heading-font, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-page__header h1 {
  margin: 0 0 14px;
  color: var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
}

.cart-page__header p {
  max-width: 670px;
  margin: 0;
  color: var(--main-color, #101010);
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.6;
}

.cart-page__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 48px;
  padding: 0 20px;
  background: var(--main-color, #101010);
  color: #fff;
  font-family: var(--heading-font, sans-serif);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: clamp(28px, 3vw, 52px);
  align-items: start;
}

.cart-page__main {
  min-width: 0;
}

.cart-list {
  background: #fff;
  border: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
}

.cart-list__head,
.cart-item {
  display: grid;
  grid-template-columns: 140px minmax(210px, 1fr) 120px 170px 120px 42px;
  gap: 20px;
  align-items: center;
}

.cart-list__head {
  min-height: 52px;
  padding: 0 24px;
  background: var(--main-color, #101010);
  color: #fff;
}

.cart-list__head span {
  color: #fff;
  font-family: var(--heading-font, sans-serif);
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.cart-list__head span:first-child {
  grid-column: 1 / 3;
}

.cart-item {
  position: relative;
  padding: 24px;
  background: #fff;
  border-bottom: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  padding: 12px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.cart-item__image:hover img {
  transform: scale(1.04);
}

.cart-item__image-placeholder {
  color: var(--main-color, #101010);
  font-size: 30px;
  opacity: 0.32;
}

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

.cart-item__stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
}

.cart-item__stock--in {
  color: #169747;
}

.cart-item__stock--out {
  color: #8c8c8c;
}

.cart-item__stock i {
  color: inherit;
}

.cart-item__info h2 {
  margin: 0 0 10px;
  font-family: var(--heading-font, sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.cart-item__info h2 a {
  color: var(--main-color, #101010);
}

.cart-item__info h2 a:hover,
.cart-item__info h2 a:focus {
  color: var(--accent-color, #c93131);
  text-decoration: none;
}

.cart-item__model,
.cart-item__option,
.cart-item__reward,
.cart-item__recurring {
  display: block;
  margin-top: 5px;
  color: var(--main-color, #101010);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.54;
}

.cart-item__price strong,
.cart-item__total strong {
  color: var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: 14px;
  white-space: nowrap;
}

.cart-item__total strong {
  font-size: 16px;
}

.cart-item__quantity {
  min-width: 0;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 40px 54px 40px;
  width: 134px;
  height: 44px;
  border: 1px solid rgba(16, 16, 16, 0.16);
}

.cart-quantity__button {
  padding: 0;
  background: #f4f4f4;
  border: 0;
  color: var(--main-color, #101010);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-quantity__button:hover,
.cart-quantity__button:focus {
  background: var(--main-color, #101010);
  color: #fff;
  outline: none;
}

.cart-quantity input {
  width: 100%;
  height: 42px;
  padding: 0 4px;
  background: #fff;
  border: 0;
  border-right: 1px solid rgba(16, 16, 16, 0.12);
  border-left: 1px solid rgba(16, 16, 16, 0.12);
  color: var(--main-color, #101010);
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

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

.cart-quantity input:focus {
  outline: 1px solid var(--accent-color, #c93131);
  outline-offset: -1px;
}

.cart-item__update {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--accent-color, #c93131);
  font-size: 11px;
  font-weight: 600;
}

.cart-item__update i {
  color: inherit;
}

.cart-item__update:hover,
.cart-item__update:focus {
  color: var(--main-color, #101010);
  outline: none;
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(16, 16, 16, 0.12);
  color: var(--main-color, #101010);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cart-item__remove:hover,
.cart-item__remove:focus {
  background: var(--accent-color, #c93131);
  border-color: var(--accent-color, #c93131);
  color: #fff;
  outline: none;
}

.cart-item__remove:hover i,
.cart-item__remove:focus i {
  color: #fff;
}

.cart-item__voucher-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f4f4f4;
  font-weight: 700;
}

.cart-summary {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.cart-summary__inner {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
}

.cart-summary__caption {
  display: block;
  margin-bottom: 7px;
  color: var(--main-color, #101010);
  font-size: 12px;
  opacity: 0.5;
  text-transform: uppercase;
}

.cart-summary h2 {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
  color: var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: 28px;
  font-weight: 700;
}

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

.cart-summary__row,
.cart-summary__weight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--main-color, #101010);
  font-size: 14px;
}

.cart-summary__row strong,
.cart-summary__weight strong {
  font-family: var(--heading-font, sans-serif);
  font-size: 14px;
  white-space: nowrap;
}

.cart-summary__row--grand {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: 18px;
  font-weight: 700;
}

.cart-summary__row--grand strong {
  color: var(--accent-color, #c93131);
  font-size: 23px;
}

.cart-summary__weight {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
  font-size: 12px;
  opacity: 0.6;
}

.cart-summary__checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--accent-color, #c93131);
  border: 0;
  color: #fff;
  font-family: var(--heading-font, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-summary__checkout span,
.cart-summary__checkout i {
  position: relative;
  z-index: 1;
  color: #fff;
}

.cart-summary__checkout:hover,
.cart-summary__checkout:focus {
  color: #fff;
  text-decoration: none;
}

.cart-summary__continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 1px solid rgba(16, 16, 16, 0.16);
  color: var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-summary__continue:hover,
.cart-summary__continue:focus {
  background: var(--main-color, #101010);
  color: #fff;
  text-decoration: none;
}

.cart-summary__continue:hover i,
.cart-summary__continue:focus i {
  color: #fff;
}

.cart-summary__safe {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 15px;
  background: #f4f4f4;
  color: var(--main-color, #101010);
  font-size: 11px;
  line-height: 1.45;
}

.cart-summary__safe i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent-color, #c93131);
}

.cart-extras {
  margin-top: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
}

.cart-extras__head {
  margin-bottom: 22px;
}

.cart-extras__head h2 {
  margin: 0 0 10px;
  color: var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: 22px;
  font-weight: 700;
}

.cart-extras__head p {
  max-width: 760px;
  margin: 0;
  color: var(--main-color, #101010);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.58;
}

.cart-extras__accordion {
  margin: 0;
}

.cart-extras__accordion .panel {
  margin: 0 0 10px;
  border: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
  border-radius: 0;
  box-shadow: none;
}

.cart-extras__accordion .panel:last-child {
  margin-bottom: 0;
}

.cart-extras__accordion .panel-heading {
  padding: 0;
  background: #f7f7f7;
  border: 0;
  border-radius: 0;
}

.cart-extras__accordion .panel-title a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 18px;
  color: var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.cart-extras__accordion .panel-title a i {
  margin-left: auto;
  color: var(--accent-color, #c93131);
}

.cart-extras__accordion .panel-body {
  padding: 20px;
  border-top: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1)) !important;
}

.cart-extras__accordion .form-control {
  min-height: 48px;
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: 0;
  box-shadow: none;
}

.cart-extras__accordion .form-control:focus {
  border-color: var(--accent-color, #c93131);
  box-shadow: none;
}

.cart-extras__accordion .btn {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  color: #fff;
}

.cart-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 64px 24px;
  background: #fff;
  border: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
  text-align: center;
}

.cart-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  background: var(--accent-color, #c93131);
  color: #fff;
  font-size: 30px;
}

.cart-empty__icon i {
  color: #fff;
}

.cart-empty h1 {
  margin: 0 0 14px;
  color: var(--main-color, #101010);
  font-family: var(--heading-font, sans-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
}

.cart-empty p {
  max-width: 540px;
  margin: 0;
  color: var(--main-color, #101010);
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.58;
}

.cart-empty__button {
  min-height: 54px;
  margin-top: 28px;
  padding: 16px 28px;
  background: var(--accent-color, #c93131);
  border: 0;
  color: #fff;
  font-family: var(--heading-font, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 1399px) {
  .cart-list__head,
  .cart-item {
    grid-template-columns: 116px minmax(190px, 1fr) 105px 144px 105px 38px;
    gap: 14px;
  }

  .cart-item__image {
    width: 116px;
    height: 116px;
  }

  .cart-summary__inner {
    padding: 24px;
  }
}

@media (max-width: 1199px) {
  .cart-page__layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
  }

  .cart-list__head,
  .cart-item {
    grid-template-columns: 96px minmax(160px, 1fr) 92px 128px 94px 36px;
    gap: 12px;
  }

  .cart-list__head,
  .cart-item {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cart-item__image {
    width: 96px;
    height: 96px;
  }

  .cart-item__info h2 {
    font-size: 15px;
  }

  .cart-quantity {
    grid-template-columns: 36px 46px 36px;
    width: 118px;
  }
}

@media (max-width: 991px) {
  .cart-page {
    padding-bottom: 80px;
  }

  .cart-page__layout {
    display: block;
  }

  .cart-summary {
    position: static;
    margin-top: 24px;
  }

  .cart-list__head,
  .cart-item {
    grid-template-columns: 96px minmax(160px, 1fr) 92px 128px 94px 36px;
    gap: 12px;
  }

  .cart-item__image {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 767px) {
  .cart-page {
    padding-bottom: 64px;
  }

  .cart-page__breadcrumb {
    margin: 16px 0 32px;
  }

  .cart-page__header {
    align-items: flex-start;
    margin-bottom: 26px;
    padding-bottom: 22px;
  }

  .cart-page__header h1 {
    margin-bottom: 11px;
    font-size: 36px;
  }

  .cart-page__header p {
    font-size: 14px;
  }

  .cart-page__count {
    min-width: 58px;
    height: 42px;
    padding: 0 14px;
  }

  .cart-list__head {
    display: none;
  }

  .cart-item {
    grid-template-columns: 94px minmax(0, 1fr) 40px;
    gap: 14px;
    align-items: start;
    padding: 18px;
  }

  .cart-item__image {
    grid-column: 1;
    grid-row: 1;
    width: 94px;
    height: 94px;
  }

  .cart-item__info {
    grid-column: 2;
    grid-row: 1;
  }

  .cart-item__remove {
    grid-column: 3;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }

  .cart-item__price,
  .cart-item__quantity,
  .cart-item__total {
    grid-column: 1 / 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--boder-color, rgba(16, 16, 16, 0.1));
  }

  .cart-item__price::before,
  .cart-item__quantity::before,
  .cart-item__total::before {
    content: attr(data-label);
    color: var(--main-color, #101010);
    font-size: 11px;
    font-weight: 600;
    opacity: 0.55;
  }

  .cart-item__quantity {
    flex-wrap: wrap;
  }

  .cart-item__update {
    flex: 0 0 100%;
    justify-content: flex-end;
    margin-top: 0;
  }

  .cart-item__total strong {
    color: var(--accent-color, #c93131);
    font-size: 18px;
  }

  .cart-summary__inner,
  .cart-extras {
    padding: 22px 18px;
  }

  .cart-extras__head h2 {
    font-size: 19px;
  }

  .cart-empty {
    min-height: 430px;
  }
}

@media (max-width: 479px) {
  .cart-page__header p {
    display: none;
  }

  .cart-item {
    grid-template-columns: 80px minmax(0, 1fr) 36px;
    padding: 15px;
  }

  .cart-item__image {
    width: 80px;
    height: 80px;
    padding: 8px;
  }

  .cart-item__remove {
    width: 36px;
    height: 36px;
  }

  .cart-item__stock {
    font-size: 10px;
  }

  .cart-item__info h2 {
    font-size: 14px;
  }

  .cart-summary__row--grand strong {
    font-size: 20px;
  }
}
