/* ---------------------
   Base Styles & Typography
---------------------- */
body {
  font-family: montserrat;
  background: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  color: #222;
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: #222;
}

.small {
  font-size: 0.5em;
  font-weight: 400;
}

.bold {
  font-weight: bold;
}

.shipping-green {
  color: #23B20B;
  font-weight: bold;
}

/* ---------------------
   Layout Containers
---------------------- */
.container-main {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.main-content {
  display: flex;
  max-width: 1300px;
  margin: 32px auto;
  gap: 40px;
  align-items: flex-start;
}

/* ---------------------
   Cart & Checkout
---------------------- */
.cart-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  gap: 0;
}

.cart, .checkout, .checkout-right {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 24px;
}

.cart {
  flex: 1 1 0;
  min-width: 0;
}

.checkout {
  width: 500px;
  flex: 0 0 340px;
}

/* ---------------------
   Cart Item
---------------------- */
.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.cart-item-img {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 150px;
  margin-right: 16px;
}

.cart-item-img img {
  width: 100px;
  height: auto;
  display: block;
}

.item-info-wrapper {
  position: relative;
  padding-right: 0;
}

.item-details {
  padding-right: 320px;
}

.item-price {
  position: absolute;
  right: 0;
  top: 0;
  color: #222;
  font-weight: bold;
  font-size: 1em;
}

.item-title {
  font-weight: bold;
}

.item-price.old {
  text-decoration: line-through;
  color: #aaa;
  font-weight: normal;
  margin-right: 8px;
  display: inline-block;
}

/* ---------------------
   Summary & Payments
---------------------- */
.summary {
  margin-bottom: 18px;
}

.summary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.verzendkosten-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.summary .total {
  font-weight: bold;
  font-size: 1.1em;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.discount-btn {
  width: 100%;
  color: #000;
  font-size: 0.95em;
  font-weight: 400;
  margin-bottom: 30px;
  cursor: pointer;
  text-decoration: underline;
  border: none;
  background: none;
}

/* ---------------------
   Shipping / Info Blocks
---------------------- */
.shipping-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  color: #222;
  padding: 9px;
  margin: 20px 0 28px 0;
  font-size: 1em;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.shipping-promise-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.checkout-info-block {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8em;
}

.info-row img {
  width: 25px;
  mix-blend-mode: darken;
}

.info-row-icon {
  width: 36px;
  height: 36px;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-row-text {
  flex: 1;
  font-size: 1em;
  color: #222;
}

.info-row-help {
  width: 22px;
  height: 22px;
  margin-left: 12px;
  opacity: 0.6;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------------------
   Toggle Switch
---------------------- */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 1em;
  user-select: none;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch .slider {
  width: 55px;
  height: 35px;
  background: #ccc;
  border-radius: 22px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-switch .slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px #0002;
}

.toggle-switch input[type="checkbox"]:checked + .slider {
  background: #78a59a;
}

.toggle-switch input[type="checkbox"]:checked + .slider::before {
  transform: translateX(18px);
}

/* ---------------------
   Stars / Rating
---------------------- */
.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ddd;
  font-size: 16px;
}

.star.filled,
.star.half {
  color: #FFB800;
}

.star.half::after {
  content: '★';
  position: absolute;
  left: 0;
  color: #ddd;
  width: 50%;
  overflow: hidden;
}

.shop-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-rating .stars {
  display: flex;
  gap: 2px;
}

.shop-rating .star {
  font-size: 20px;
}

.shop-rating span {
  color: #222;
  font-size: 0.95em;
  font-weight: 400;
}
/* ---------------------
   Upsell Block
---------------------- */
.upsell-block {
  background: #f7f7f7;
  padding: 24px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
}

.upsell-image {
  width: 30px;
  height: auto;
  border-radius: 8px;
  background: #f5f5f5;
  padding: 8px;
  display: block;
}

.upsell-info {
  flex: 1;
}

.upsell-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

.upsell-desc {
  font-size: 14px;
  color: #222;
  margin-bottom: 18px;
}

.upsell-price {
  color: #bbb;
  margin-left: 6px;
}

/* ---------------------
   Delete Item & Actions
---------------------- */
.delete-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  color: #222;
  font-family: inherit;
  text-decoration: underline;
  font-size: 0.8em;
  padding: 0 8px;
  transition: color 0.2s;
}

.delete-item span {
  font-size: 1em;
  font-weight: 400;
}

.delete-item svg {
  display: block;
}

.item-actions {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.item-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: inherit;
  font-size: 0.9em;
  color: #555;
  transition: color 0.2s;
}

.item-action-btn span {
  text-decoration: underline;
}

.item-action-btn:hover {
  color: #000;
}

.item-action-btn svg {
  stroke: currentColor;
}

.item-action-btn.favorite-item span {
  white-space: nowrap;
}

.product-card {
  border: none !important;
}
