/* Cart — CRP-inspired clean layout (CLB black/gold) */

.clb-cart-page .clb-cart-main,
.clb-cart-page .woocommerce-page-content {
  width: 100%;
}

.clb-cart-page .woocommerce-notices-wrapper {
  max-width: 80rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.clb-cart-page .wc-empty-cart-message,
.clb-cart-page .cart-empty.woocommerce-info {
  display: none !important;
}

.clb-cart-page .page-hero,
.clb-cart-page .contact-hero {
  padding: 2rem 1rem 2.35rem;
}

.clb-cart-section {
  padding: 2.5rem 1.25rem 4rem;
  background: #F6F6F6;
}

.clb-cart-shell {
  width: min(100%, 80rem);
  margin: 0 auto;
}

.clb-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .clb-cart-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 360px);
    gap: 2rem;
  }
}

.clb-cart-section-title {
  margin: 0 0 1rem;
  color: #0A0A0A;
  font-size: 1.05rem;
  font-weight: 700;
}

.clb-cart-table-head {
  display: none;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 7rem;
  gap: 1rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(10, 10, 10, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .clb-cart-table-head {
    display: grid;
  }

  .clb-cart-table-head span:last-child {
    text-align: right;
  }
}

.clb-cart-items {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.clb-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

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

@media (min-width: 768px) {
  .clb-cart-item {
    grid-template-columns: minmax(0, 1fr) 7rem;
    align-items: start;
    padding: 1.35rem 1.35rem;
  }
}

.clb-cart-item__product {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .clb-cart-item__product {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
}

.clb-cart-item__media {
  width: 5.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #EDE8DF;
}

@media (min-width: 768px) {
  .clb-cart-item__media {
    width: 6.5rem;
  }
}

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

.clb-cart-item__title {
  margin: 0 0 0.35rem;
  color: #0A0A0A;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.clb-cart-item__title a {
  color: inherit;
  text-decoration: none;
}

.clb-cart-item__title a:hover {
  color: #C48400;
}

.clb-cart-item__price {
  margin: 0 0 0.85rem;
  color: #0A0A0A;
  font-size: 0.92rem;
  font-weight: 600;
}

.clb-cart-item__price del {
  margin-right: 0.35rem;
  color: rgba(10, 10, 10, 0.45);
  font-weight: 500;
}

.clb-cart-item__price ins {
  text-decoration: none;
  color: #0A0A0A;
  font-weight: 700;
}

.clb-cart-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.clb-cart-page .quantity {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.clb-cart-page .quantity .qty {
  width: 4.25rem;
  min-height: 2.4rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #0A0A0A;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.clb-cart-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  color: #0A0A0A;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.clb-cart-item__remove svg {
  width: 1rem;
  height: 1rem;
}

.clb-cart-item__remove:hover {
  border-color: #C48400;
  background: #FFF8E8;
  color: #C48400;
}

.clb-cart-item__total {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .clb-cart-item__total {
    justify-items: end;
    text-align: right;
  }
}

.clb-cart-item__line {
  color: #0A0A0A;
  font-size: 1.05rem;
  font-weight: 800;
}

.clb-cart-item__save {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(240, 165, 0, 0.16);
  color: #C48400;
  font-size: 0.72rem;
  font-weight: 700;
}

.clb-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1rem;
}

.clb-cart-continue {
  color: #0A0A0A;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.clb-cart-continue:hover {
  color: #C48400;
}

.clb-cart-update {
  min-height: 2.5rem;
  padding: 0.55rem 1rem !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #0A0A0A !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.clb-cart-update:hover {
  border-color: #F0A500 !important;
  background: #FFF8E8 !important;
}

/* Sidebar summary */
.clb-cart-page .cart-collaterals,
.clb-cart-sidebar-col {
  min-width: 0;
  width: 100%;
}

.clb-cart-page .cart_totals,
.clb-cart-page .clb-cart-summary {
  position: sticky;
  top: 6.5rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(26, 22, 18, 0.06);
}

.clb-cart-page .cart_totals .shop_table {
  display: none;
}

.clb-cart-summary__title {
  margin: 0 0 1rem;
  color: #0A0A0A;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clb-cart-summary__coupons {
  margin: 0 0 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.clb-cart-summary__coupons > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  color: #0A0A0A;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.clb-cart-summary__coupons > summary::-webkit-details-marker {
  display: none;
}

.clb-cart-summary__coupons > summary::after {
  content: "▾";
  color: rgba(10, 10, 10, 0.45);
  font-size: 0.85rem;
}

.clb-cart-summary__coupons[open] > summary::after {
  content: "▴";
}

.clb-cart-summary__coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0 0 1rem;
}

.clb-cart-summary__coupon-input {
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #0A0A0A;
  font-size: 0.85rem;
}

.clb-cart-summary__coupon-input:focus {
  outline: none;
  border-color: #F0A500;
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.18);
}

.clb-cart-summary__coupon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #0A0A0A !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  cursor: pointer;
}

.clb-cart-summary__coupon-btn:hover {
  background: #C48400 !important;
}

.clb-cart-summary__rows {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.clb-cart-summary__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(10, 10, 10, 0.75);
  font-size: 0.9rem;
  line-height: 1.4;
}

.clb-cart-summary__label {
  flex: 1 1 auto;
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.clb-cart-summary__value {
  flex: 0 0 auto;
  color: #0A0A0A;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.clb-cart-summary__shipping,
.clb-cart-summary__shipping table,
.clb-cart-summary__shipping tbody,
.clb-cart-summary__shipping tr,
.clb-cart-summary__shipping th,
.clb-cart-summary__shipping td {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.clb-cart-summary__shipping tr {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.clb-cart-summary__shipping th {
  text-align: left;
  font-weight: 500;
}

.clb-cart-summary__shipping td {
  text-align: right;
  font-weight: 700;
}

.clb-cart-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.clb-cart-summary__total-label {
  color: #0A0A0A;
  font-size: 1.05rem;
  font-weight: 700;
}

.clb-cart-summary__total-value {
  color: #0A0A0A;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}

.clb-cart-page .wc-proceed-to-checkout .checkout-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  background: #F0A500 !important;
  color: #0A0A0A !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.clb-cart-page .wc-proceed-to-checkout .checkout-button:hover {
  background: #FFB82E !important;
  transform: translateY(-1px);
}

/* Shows only when payment gateways are available */
.clb-cart-payment-methods:not(.is-empty):not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.clb-cart-payment-methods__item {
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #F6F6F6;
  color: rgba(10, 10, 10, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Empty cart */
.clb-cart-empty__card {
  border-radius: 8px;
}

.clb-cart-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: #000;
  color: #C48400;
}

@media (max-width: 1023px) {
  .clb-cart-page .cart_totals,
  .clb-cart-page .clb-cart-summary {
    position: static;
  }
}

@media (max-width: 480px) {
  .clb-cart-summary__coupon-row {
    grid-template-columns: 1fr;
  }

  .clb-cart-summary__coupon-btn {
    width: 100%;
  }

  .clb-cart-item__product {
    grid-template-columns: 4.75rem minmax(0, 1fr);
  }

  .clb-cart-item__media {
    width: 4.75rem;
  }
}
