.cart-page {
  padding: 60px 0;
  background-color: #f9f9f9;
}
@media (max-width: 991px) {
  .cart-page {
    padding: 40px 0;
  }
}
@media (max-width: 575px) {
  .cart-page {
    padding: 30px 0;
  }
}
.cart-page__heading .page-title {
  color: #FFCB03;
  margin-bottom: 8px;
}
.cart-page__subtitle {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 0;
}
@media (max-width: 575px) {
  .cart-page__subtitle {
    font-size: 16px;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
@media (max-width: 575px) {
  .cart-item {
    gap: 12px;
    padding: 16px;
  }
}
.cart-item__remove {
  flex-shrink: 0;
  align-self: stretch;
}
.cart-item__remove .remove-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 100%;
  border-radius: 4px;
  background-color: #f8f9fa;
  color: #dc3545;
  transition: all 0.2s ease;
}
.cart-item__remove .remove-item svg {
  stroke-width: 4px;
}
.cart-item__remove .remove-item:hover {
  background-color: #dc3545;
  color: #fff;
}
@media (max-width: 575px) {
  .cart-item__remove .remove-item {
    width: 28px;
  }
  .cart-item__remove .remove-item svg {
    width: 16px;
    height: 16px;
  }
}
.cart-item__content {
  flex: 1;
  min-width: 0;
}
.cart-item__content__top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .cart-item__content__top {
    flex-wrap: wrap;
  }
}
@media (max-width: 575px) {
  .cart-item__content__top {
    gap: 12px;
  }
}
.cart-item__content__top__thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .cart-item__content__top__thumbnail {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 575px) {
  .cart-item__content__top__thumbnail {
    width: 60px;
    height: 60px;
  }
}
.cart-item__content__top__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item__content__top__thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}
.cart-item__content__top__info {
  flex: 1;
  min-width: 0;
}
.cart-item__content__top__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  color: #000609;
}
@media (max-width: 575px) {
  .cart-item__content__top__name {
    font-size: 16px;
  }
}
.cart-item__content__top__name a {
  color: #000609;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cart-item__content__top__name a:hover {
  color: #FFCB03;
}
.cart-item__content__top__meta {
  font-size: 14px;
  color: #6c757d;
  margin-top: 4px;
}
.cart-item__content__top__meta dl {
  margin: 0;
}
.cart-item__content__top__meta dt, .cart-item__content__top__meta dd {
  display: inline;
  margin: 0;
}
.cart-item__content__top__meta dt {
  font-weight: 600;
}
.cart-item__content__top__meta p {
  margin: 0;
}
.cart-item__content__top__price {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-item__content__top__price-current {
  font-size: 18px;
  font-weight: 600;
  color: #FFCB03;
}
@media (max-width: 575px) {
  .cart-item__content__top__price-current {
    font-size: 16px;
  }
}
.cart-item__content__top__price-regular {
  font-size: 13px;
  font-weight: 400;
  color: #6c757d;
  text-decoration: line-through;
}
.cart-item__content__top__qty-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
@media (max-width: 991px) {
  .cart-item__content__top__qty-block {
    width: 100%;
  }
}
.cart-item__content__top__quantity {
  color: #212121;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cart-item__content__top__quantity .quantity-wrapper {
  display: inline-flex;
}
.cart-item__content__top__quantity .qty,
.cart-item__content__top__quantity .quantity-btn {
  background: transparent;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid #D9D9D9;
  border-bottom: 1px solid #D9D9D9;
  border-left: none;
  border-right: none;
  display: inline-block;
  min-width: 0;
}
.cart-item__content__top__quantity .qty:focus,
.cart-item__content__top__quantity .quantity-btn:focus {
  outline: none;
}
.cart-item__content__top__quantity .qty {
  width: 67px;
  height: 32px;
  text-align: center;
  appearance: textfield;
}
.cart-item__content__top__quantity .qty::-webkit-outer-spin-button, .cart-item__content__top__quantity .qty::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}
.cart-item__content__top__quantity .quantity-btn {
  padding: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border: 1px solid #D9D9D9;
  transition: all 0.2s;
}
.cart-item__content__top__quantity .quantity-btn:hover {
  color: #FFFFFF;
  background: #FFCB03;
  border-color: #FFCB03;
}
.cart-item__content__top__quantity .quantity-btn:disabled {
  color: #ccc;
  background: #f8f9fa;
  cursor: not-allowed;
  border-color: #e9ecef;
}
.cart-item__content__top__quantity .quantity-btn:disabled:before, .cart-item__content__top__quantity .quantity-btn:disabled:after {
  background: #ccc;
}
.cart-item__content__bottom__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f8f9fa;
}
.cart-item__content__bottom__subtotal-label {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
}
.cart-item__content__bottom__subtotal-value {
  font-size: 18px;
  font-weight: 700;
  color: #FFCB03;
}
@media (max-width: 575px) {
  .cart-item__content__bottom__subtotal-value {
    font-size: 16px;
  }
}
.cart-item .backorder-notification {
  font-size: 13px;
  color: #ffc107;
  margin-top: 4px;
  margin-bottom: 0;
}

.cart-totals__coupon-form {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f8f9fa;
}

.cart-totals__coupon-input {
  display: flex;
  gap: 8px;
}
.cart-totals__coupon-input .input-text {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.cart-totals__coupon-input .input-text:focus {
  outline: none;
  border-color: #FFCB03;
}
.cart-totals__coupon-input .btn-apply-coupon {
  height: 40px;
  padding: 0 16px;
  background-color: #6c757d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cart-totals__coupon-input .btn-apply-coupon:hover {
  background-color: #5a6268;
}
.cart-totals__coupon-input .btn-apply-coupon:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-totals-wrapper {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
@media (max-width: 991px) {
  .cart-totals-wrapper {
    position: relative;
    top: 0;
  }
}

.cart-totals__title {
  font-size: 24px;
  font-weight: 600;
  color: #000609;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f8f9fa;
}
@media (max-width: 575px) {
  .cart-totals__title {
    font-size: 20px;
  }
}
.cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
}
.cart-totals__row:last-child {
  border-bottom: none;
}
.cart-totals__label {
  font-size: 15px;
  color: #495057;
  font-weight: 500;
}
.cart-totals__value {
  font-size: 16px;
  font-weight: 600;
  color: #000609;
  text-align: right;
}
.cart-totals__subtotal .cart-totals__label, .cart-totals__shipping .cart-totals__label, .cart-totals__coupon .cart-totals__label, .cart-totals__fee .cart-totals__label, .cart-totals__tax .cart-totals__label {
  font-size: 15px;
}
.cart-totals__subtotal .cart-totals__value, .cart-totals__shipping .cart-totals__value, .cart-totals__coupon .cart-totals__value, .cart-totals__fee .cart-totals__value, .cart-totals__tax .cart-totals__value {
  font-size: 16px;
}
.cart-totals__coupon .cart-totals__label {
  color: #1fb556;
}
.cart-totals__coupon .cart-totals__value {
  color: #1fb556;
}
.cart-totals__coupons-section {
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
}
.cart-totals__coupons-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}
.cart-totals__coupons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-totals__coupon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f0faf4;
  border-radius: 6px;
  border: 1px solid #d4edda;
}
.cart-totals__coupon-code {
  font-size: 13px;
  font-weight: 600;
  color: #1fb556;
  text-transform: uppercase;
}
.cart-totals__coupon-discount {
  font-size: 13px;
  font-weight: 600;
  color: #1fb556;
  margin-left: auto;
}
.cart-totals__coupon-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #dc3545;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.cart-totals__coupon-remove:hover {
  background: #dc3545;
  color: #fff;
}
.cart-totals__total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #dee2e6;
}
.cart-totals__total .cart-totals__label {
  font-size: 18px;
  font-weight: 700;
  color: #000609;
}
.cart-totals__total .cart-totals__value {
  font-size: 24px;
  font-weight: 700;
  color: #FFCB03;
}
@media (max-width: 575px) {
  .cart-totals__total .cart-totals__value {
    font-size: 20px;
  }
}

.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 24px;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button {
  margin-bottom: 0;
  display: block;
  width: 100%;
  background-color: #000609;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button:hover {
  background-color: #FFCB03;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.cart-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
@media (max-width: 575px) {
  .cart-empty-state {
    padding: 60px 20px;
  }
}
.cart-empty-state__icon {
  margin-bottom: 24px;
}
.cart-empty-state__icon svg {
  color: #dee2e6;
}
.cart-empty-state__title {
  font-size: 28px;
  font-weight: 600;
  color: #000609;
  margin-bottom: 12px;
}
@media (max-width: 575px) {
  .cart-empty-state__title {
    font-size: 24px;
  }
}
.cart-empty-state__message {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 32px;
}
@media (max-width: 575px) {
  .cart-empty-state__message {
    font-size: 15px;
  }
}
.cart-empty-state__actions .btn-custom {
  margin: auto;
}

.shipping-calculator-form {
  margin-top: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}
.shipping-calculator-form .form-row {
  margin-bottom: 12px;
}
.shipping-calculator-form .form-row:last-child {
  margin-bottom: 0;
}
.shipping-calculator-form .form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #495057;
}
.shipping-calculator-form .form-row input,
.shipping-calculator-form .form-row select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
}
.shipping-calculator-form .form-row input:focus,
.shipping-calculator-form .form-row select:focus {
  outline: none;
  border-color: #FFCB03;
}
.shipping-calculator-form button {
  width: 100%;
  height: 40px;
  background-color: #FFCB03;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.shipping-calculator-form button:hover {
  background-color: #d9ac00;
}
