* {
  box-sizing: border-box;
}

:root {
  --basket-text: #111;
  --basket-muted: #707070;
  --basket-line: #e4e4e4;
  --basket-soft: #f7f7f5;
  --basket-success-bg: #eff7ec;
  --basket-success: #367338;
  --basket-danger: #c40000;
}

body {
  margin: 0;
  background: #fff;
  color: var(--basket-text);
}
button,
input,
textarea {
  font: inherit;
}
button {
  border-radius: 0;
}

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

.basket-page {
  min-height: 70vh;
  padding: 30px 0 42px;
}
.basket-container {
  width: min(1490px, 92%);
  margin: 0 auto;
}

.basket-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--basket-muted);
  font-size: 12px;
}
.basket-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.basket-title-area {
  margin-bottom: 20px;
}
.basket-title-area h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
}
.basket-title-area p {
  margin: 8px 0 0;
  color: #333;
  font-size: 13px;
}

.basket-status,
.basket-empty {
  padding: 70px 20px;
  border: 1px solid var(--basket-line);
  text-align: center;
}
.basket-empty h2 {
  margin: 0 0 10px;
}
.basket-empty a {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.basket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 382px;
  gap: 30px;
  align-items: start;
}
.basket-left {
  min-width: 0;
}
.basket-products-card,
.basket-summary-card {
  border: 1px solid var(--basket-line);
  background: #fff;
}

.basket-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 130px 130px 34px;
  align-items: center;
  min-height: 45px;
  padding: 0 18px;
  border-bottom: 1px solid var(--basket-line);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.basket-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 130px 130px 34px;
  align-items: center;
  gap: 10px;
  min-height: 118px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--basket-line);
}
.basket-item:last-child {
  border-bottom: 0;
}

.basket-product {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.basket-product img {
  width: 110px;
  height: 94px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid #eee;
  background: #fafafa;
}
.basket-product-info {
  min-width: 0;
}
.basket-product-info h3 {
  max-width: 420px;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
}
.basket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: #555;
  font-size: 11px;
}
.basket-meta span:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: #c4c4c4;
}
.basket-stock {
  display: block;
  margin-top: 7px;
  color: #158328;
  font-size: 11px;
  font-weight: 600;
}

.basket-quantity-wrap {
  text-align: center;
}
.basket-quantity {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  width: max-content;
  height: 34px;
  border: 1px solid #d8d8d8;
}
.basket-quantity button,
.basket-remove {
  border: 0;
  background: #fff;
  cursor: pointer;
}
.basket-quantity button:hover,
.basket-remove:hover {
  background: #f3f3f3;
}
.basket-quantity span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.basket-quantity-caption {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 10px;
}
.basket-unit-price,
.basket-item-total {
  font-size: 13px;
  font-weight: 600;
}
.basket-remove {
  width: 32px;
  height: 32px;
  color: #555;
  font-size: 18px;
}

.basket-after-products {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}
.basket-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #d8d8d8;
  color: #111;
  font-size: 12px;
  text-decoration: none;
}
.basket-delivery-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 11px;
}

.basket-tools {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 18px;
  margin-top: 18px;
}
.basket-tool-card {
  border: 1px solid var(--basket-line);
  padding: 16px;
  background: #fff;
}
.basket-tool-card h2 {
  margin: 0 0 12px;
  font-size: 13px;
}
.basket-tool-card h2 span {
  color: #666;
  font-weight: 400;
}
.basket-coupon-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
}
.basket-coupon-row input,
.basket-tool-card textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
}
.basket-coupon-row input {
  height: 40px;
  padding: 0 11px;
}
.basket-coupon-row button {
  border: 0;
  background: #000;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.55;
}
.basket-tool-card textarea {
  height: 72px;
  padding: 10px;
  resize: vertical;
}
.basket-tool-card small {
  display: block;
  margin-top: 7px;
  color: #777;
  font-size: 10px;
}
.basket-char-count {
  text-align: right;
  color: #777;
  font-size: 10px;
}

.basket-accordion-group {
  margin-top: 18px;
  border-top: 1px solid var(--basket-line);
}
.basket-accordion-group details {
  border-right: 1px solid var(--basket-line);
  border-bottom: 1px solid var(--basket-line);
  border-left: 1px solid var(--basket-line);
  background: #fff;
}
.basket-accordion-group summary {
  display: grid;
  grid-template-columns: 150px 1fr 20px;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}
.basket-accordion-group summary::-webkit-details-marker {
  display: none;
}
.basket-accordion-title {
  font-size: 12px;
  font-weight: 600;
}
.basket-accordion-group summary > span:nth-child(2) {
  color: #666;
  font-size: 10px;
}
.basket-accordion-icon {
  font-size: 16px;
  text-align: center;
  transition: transform 0.2s;
}
.basket-accordion-group details[open] .basket-accordion-icon {
  transform: rotate(180deg);
}
.basket-accordion-content {
  padding: 0 14px 14px;
  color: #555;
  font-size: 11px;
  line-height: 1.65;
}

.basket-summary-card {
  position: sticky;
  top: 18px;
  padding: 24px;
}
.basket-summary-card h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 600;
}
.basket-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  font-size: 12px;
}
.basket-summary-row strong {
  max-width: 190px;
  text-align: right;
}
.basket-discount {
  color: var(--basket-danger);
}

.basket-free-shipping {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 12px;
  background: var(--basket-success-bg);
  color: var(--basket-success);
  font-size: 11px;
  line-height: 1.45;
}

.shipping-picker h3 {
  margin: 0 0 4px;
  font-size: 12px;
}
.shipping-picker > p {
  margin: 0 0 10px;
  color: #555;
  font-size: 10px;
}
.shipping-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #222;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.shipping-panel {
  border: 1px solid #d8d8d8;
  border-top: 0;
  background: #fff;
}
.shipping-search-wrap {
  position: relative;
  display: block;
  padding: 9px;
}
.shipping-search-wrap input {
  width: 100%;
  height: 37px;
  padding: 0 34px 0 10px;
  border: 1px solid #ddd;
  background: #fff;
}
.shipping-search-wrap > span:last-child {
  position: absolute;
  right: 20px;
  top: 18px;
  color: #666;
}
.shipping-list {
  max-height: 255px;
  overflow-y: auto;
  padding: 0 8px 8px;
  scrollbar-width: thin;
}
.shipping-option {
  display: grid;
  grid-template-columns: 20px 82px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 4px;
  border-bottom: 1px solid #ededed;
  cursor: pointer;
}
.shipping-option:last-child {
  border-bottom: 0;
}
.shipping-option input {
  margin: 0;
}
.shipping-option-logo {
  width: 78px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
}
.shipping-option-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shipping-option-meta strong {
  font-size: 11px;
}
.shipping-option-meta span {
  color: #666;
  font-size: 10px;
}
.shipping-option-price {
  font-size: 11px;
  font-weight: 600;
}
.shipping-empty-state {
  padding: 18px 10px;
  color: #777;
  font-size: 11px;
  text-align: center;
}

.basket-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dcdcdc;
  font-size: 18px;
  font-weight: 600;
}
.basket-checkout-button {
  width: 100%;
  height: 49px;
  margin-top: 20px;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.basket-checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.basket-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
  color: #555;
  font-size: 9px;
  text-align: center;
}
.basket-ssl-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 19px -24px -24px;
  padding: 16px;
  border-top: 1px solid var(--basket-line);
  font-size: 10px;
}

.basket-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(1490px, 92%);
  margin: 0 auto;
  padding: 22px 0;
}
.basket-benefits > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.basket-benefits strong {
  font-size: 12px;
}
.basket-benefits span {
  color: #666;
  font-size: 10px;
}

@media (max-width: 1120px) {
  .basket-grid {
    grid-template-columns: 1fr;
  }
  .basket-summary-card {
    position: static;
  }
}
@media (max-width: 820px) {
  .basket-table-head {
    display: none;
  }
  .basket-item {
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding: 14px;
  }
  .basket-product {
    grid-column: 1/-1;
  }
  .basket-quantity-wrap {
    grid-column: 1;
  }
  .basket-unit-price {
    display: none;
  }
  .basket-item-total {
    grid-column: 2;
    text-align: right;
  }
  .basket-remove {
    position: absolute;
    right: 5.5%;
    margin-top: -92px;
  }
  .basket-tools {
    grid-template-columns: 1fr;
  }
  .basket-benefits {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .basket-container {
    width: 94%;
  }
  .basket-title-area h1 {
    font-size: 31px;
  }
  .basket-product img {
    width: 88px;
    height: 88px;
  }
  .basket-product-info h3 {
    font-size: 13px;
  }
  .basket-after-products {
    align-items: flex-start;
    flex-direction: column;
  }
  .basket-accordion-group summary {
    grid-template-columns: 1fr 20px;
  }
  .basket-accordion-group summary > span:nth-child(2) {
    grid-column: 1;
  }
  .basket-accordion-icon {
    grid-column: 2;
    grid-row: 1/3;
  }
  .basket-benefits {
    grid-template-columns: 1fr;
  }
}
