
/* GENERAL CART SECTION */
.cart-section {
  width: 100%;
  /* padding: 24px 16px; */
  box-sizing: border-box;
}


.cart-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 420px);
  gap: 20px;
  align-items: start;
  margin-block: 32px;
}

/* LEFT PANEL */
.cart-items-panel {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 14px;
  box-sizing: border-box;
  background: #fff;
}

/* CART ITEM */
.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ececec;
}

.cart-panel-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pry-color, #003351);
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 20px;
  padding: 20px 0 18px;
  border-bottom: 1px solid #ececec;
  position: relative;
  align-items: start;
}

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

.cart-item-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cart-item-detail-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-item-table-scroll {
  max-width: 100%;
}

.cart-item-image-outside {
  display: flex;
  justify-content: center;
  padding-top: 54px;
}

.cart-item-image-outside-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d9e2ec;
  display: block;
}

.cart-item-line-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #10253f;
  background: #fff;
}

.cart-item-line-table th,
.cart-item-line-table td {
  border: 1px solid #10253f;
  padding: 10px 8px;
  vertical-align: top;
  text-align: center;
  font-size: 15px;
  color: #0b1f36;
}

.cart-item-line-table th {
  font-weight: 700;
  background: #f8fbff;
}

.cart-item-line-table th:nth-child(1),
.cart-item-line-table td:nth-child(1) {
  width: 6%;
}

.cart-item-line-table th:nth-child(2),
.cart-item-line-table td:nth-child(2) {
  width: 24%;
  text-align: left;
}

.cart-item-line-table td:nth-child(2) a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.cart-item-line-table td:nth-child(2) a:hover {
  text-decoration: underline;
}

.cart-line-props {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.cart-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8896a6;
  margin-bottom: 4px;
}

/* metrics row: unit price | qty | line total */
.cart-item-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  max-width: 620px;
}

.cart-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cart-metric--qty .quantity-control {
  align-self: stretch;
}

.cart-metric-value {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.cart-line-total {
  font-size: 1.125rem;
}

.cart-delete-form {
  position: static;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  z-index: 1;
}

.cart-delete-btn {
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  line-height: 0;
  opacity: 0.72;
}

.cart-delete-btn:hover,
.cart-delete-btn:focus-visible {
  opacity: 1;
  background: #f3f4f6;
}

.cart-delete-btn .icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* QUANTITY CONTROL */
.quantity-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d1d9e3;
}

.quantity-control .qty-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  padding: 0;
  min-width: 28px;
  min-height: 28px;
  border-radius: 6px;
}

.quantity-control .qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quantity-control .qty-btn:hover:not(:disabled),
.quantity-control .qty-btn:focus-visible {
  background: #eef2f6;
}

.quantity-control .qty-value {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  min-width: 28px;
  text-align: center;
}

/* ORDER SUMMARY */
.order-summary {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 22px 16px;
  box-sizing: border-box;
  background: #fff;
}

.order-summary h2 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ececec;
}

.summary-row,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-row span {
  font-size: 18px;
  color: #666;
}

.summary-row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.summary-qty {
  font-weight: 700;
  color: #111;
  margin-right: 4px;
}

.summary-specs-inline {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
}

.summary-row strong {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.summary-row .discount {
  color: #ff5b5b;
}

.summary-total {
  padding: 18px 0 20px;
}

.summary-total span {
  font-size: 22px;
  font-weight: 600;
  color: #111;
}

.summary-total strong {
  font-size: 28px;
  font-weight: 800;
  color: #111;
}

/* PROMO CODE FORM */
.promo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.promo-input-wrap {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  border-radius: 999px;
  padding: 0 14px;
  height: 52px;
}

.promo-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #111;
}

.promo-input-wrap input::placeholder {
  color: #999;
}

.apply-btn {
  border: none;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 0 24px;
  min-width: 110px;
  height: 52px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.checkout-btn {
  width: 100%;
  border: none;
  background: var(--pry-color);
  color: #fff;
  border-radius: 999px;
  /* height: 58px; */
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.checkout-btn.sec {
  background: white;
  border: 1px solid var(--pry-color);
  color: var(--pry-color);
}

.checkout-btn span {
  font-size: 18px;
  line-height: 1;
}

/* Mobile: stack each cell as label + value (no horizontal scroll) */
@media (max-width: 767px) {
  .cart-item-image-outside {
    padding-top: 6px;
    align-self: start;
  }

  .cart-item-table-scroll {
    overflow-x: visible;
    margin-bottom: 8px;
    box-shadow: none;
  }

  .cart-item-line-table.cart-line-table--responsive {
    border: none;
    width: 100%;
    table-layout: auto;
    display: block;
    background: transparent;
  }

  .cart-item-line-table.cart-line-table--responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cart-item-line-table.cart-line-table--responsive tbody {
    display: block;
    width: 100%;
  }

  .cart-item-line-table.cart-line-table--responsive tbody tr {
    display: block;
    width: 100%;
    border: 1px solid #10253f;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
  }

  .cart-item-line-table.cart-line-table--responsive td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    border: none;
    border-bottom: 1px solid #c5d4e0;
    padding: 11px 12px;
    font-size: 14px;
    vertical-align: top;
  }

  .cart-item-line-table.cart-line-table--responsive td:last-child {
    border-bottom: none;
  }

  .cart-item-line-table.cart-line-table--responsive td::before {
    content: attr(data-label);
    font-weight: 700;
    text-align: left;
    color: var(--pry-color, #003351);
    flex: 0 1 46%;
    font-size: 13px;
    line-height: 1.35;
  }

  /* Product name + options: label on top, full width */
  .cart-item-line-table.cart-line-table--responsive td:nth-child(2) {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cart-item-line-table.cart-line-table--responsive td:nth-child(2)::before {
    flex: none;
    max-width: 100%;
    margin-bottom: 4px;
  }

  .cart-item-line-table.cart-line-table--responsive td:nth-child(2) a {
    display: inline-block;
  }

  .cart-item-line-table.cart-line-table--responsive td:nth-child(2) .cart-line-props {
    margin-top: 8px;
  }
}

/* RESPONSIVE TABLET */
@media (max-width: 991px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
  }
  .order-summary {
    max-width: 100%;
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 640px) {
  .cart-section {
    padding: 16px 12px;
  }
  .cart-items-panel,
  .order-summary {
    padding: 14px;
    border-radius: 16px;
  }
  .cart-item {
    padding: 16px 40px 16px 0;
    gap: 14px;
  }
  .cart-item-metrics {
    max-width: none;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .cart-item-image {
    width: 78px;
    min-width: 78px;
    height: 78px;
  }
  .cart-item-title {
    font-size: 15px;
  }
  .cart-item-specs {
    font-size: 12px;
  }
  .cart-metric-value {
    font-size: 0.95rem;
  }
  .cart-line-total {
    font-size: 1.05rem;
  }
  .order-summary h2 {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .summary-row span,
  .summary-row strong {
    font-size: 15px;
  }
  .summary-total span {
    font-size: 18px;
  }
  .summary-total strong {
    font-size: 24px;
  }
  .promo-form {
    flex-direction: column;
  }
  .apply-btn,
  .promo-input-wrap {
    width: 100%;
  }
}

/* EXTRA SMALL SCREENS */
@media (max-width: 420px) {
  .cart-item-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cart-metric--qty .quantity-control {
    justify-content: center;
    width: fit-content;
  }
  .cart-item-image {
    width: 100%;
    max-width: 120px;
    height: 120px;
  }
  .quantity-control {
    gap: 14px;
    padding: 8px 12px;
  }
  .checkout-btn {
    height: 54px;
    font-size: 15px;
  }
}/* Payment & Delivery radio groups */
.order-radio-group {
    margin-bottom: 16px;
}

.order-radio-group label.group-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #003151;
    margin-bottom: 8px;
}

.order-radio-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-radio-group ul li {
    flex: 1;
    min-width: 110px;
}

.order-radio-group ul li label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #d0d8e0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    background: #fff;
}

.order-radio-group ul li label:hover {
    border-color: #003151;
    background: #f0f4f8;
}

.order-radio-group ul li input[type="radio"] {
    accent-color: #003151;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.order-radio-group ul li input[type="radio"]:checked + span,
.order-radio-group ul li label:has(input:checked) {
    border-color: #003151;
    background: #e8f0f8;
    font-weight: 600;
}


