/* Full cart page polish — matches Kulud mobile/desktop layout */

body.template-cart .main-content.template-cart {
  padding-bottom: 8rem;
}

body.template-cart .cart-section {
  align-items: start;
}

body.template-cart .cart-holder {
  background: #fff;
}

body.template-cart .cart-form-item--layout .cart-item__thumbnail {
  align-self: flex-start !important;
}

body.template-cart .cart-item__product-info {
  margin-bottom: 0.75rem !important;
}

body.template-cart .cart-item__title {
  font-weight: 600;
  color: var(--color-text-main, #111);
  text-decoration: none;
  display: block;
}

body.template-cart .cart-item__variant {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-opacity, #666);
}

body.template-cart .cart-item__price .price {
  font-weight: 700;
}

body.template-cart .cart-item__total {
  display: none !important;
}

@media (min-width: 768px) {
  body.template-cart .cart-item__total {
    display: block !important;
    text-align: end;
  }

  body.template-cart .cart-item__quantity-row.mobi {
    display: none !important;
  }

  body.template-cart .cart__quantity.desk {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  body.template-cart .cart-item__product-info {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
}

.mobi {
  display: none;
}
.desk {
  display: block;
}

@media (max-width: 768px) {
  .mobi {
    display: block;
  }
  .desk {
    display: none;
  }

  shipping-notice.cart-notice.desk {
    display: none !important;
  }

  .cart__subtotal-widget {
    position: static !important;
    top: auto !important;
  }

  .cart__subtotal-widget .flex-buttons.desk {
    display: none !important;
  }

  .mobi.mymb {
    position: fixed;
    left: 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.14);
    background: #fff;
    z-index: 998;
    padding: 16px;
    display: flex;
    width: 100%;
    bottom: 67px;
  }

  .mobi.mymb .right,
  .mobi.mymb .left {
    width: 50%;
    display: flex;
    align-items: center;
  }

  button#CheckOut {
    display: none;
  }

  button#CheckOutmb {
    color: #fff;
    border: 0;
    background: var(--color-text-header, #6a0b15);
    width: 100%;
    height: 42px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .cart-section .cart__total.desk {
    display: none;
  }

  .cart-section .mobi.mymb .cart__total {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .cart-section .mobi.mymb .cart__total strong {
    font-size: 16px;
    color: #000;
  }

  .template-cart .cart-form-item--layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    padding: var(--gutter-regular, 1rem) 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: unset !important;
    grid-template-areas: unset !important;
  }

  .template-cart .cart-form-item--layout .cart-item__thumbnail {
    width: 5.25rem !important;
    flex: 0 0 5.25rem !important;
    align-self: stretch !important;
    border-radius: 12px;
    overflow: hidden;
  }

  .template-cart .cart-form-item--layout .cart-form-item__price-title-variants {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .template-cart .cart-form-item--layout > .cart__quantity.desk {
    display: none !important;
  }

  .template-cart .cart-form-item--layout .cart-item__product-info {
    border: 1px solid #dbd5d5;
    border-radius: 20px;
    padding: 0.85rem 1rem;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
  }

  .template-cart .cart-item__quantity-row {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: nowrap;
    width: 100%;
  }

  .template-cart .cart-item__quantity-row cart-product-quantity.product-quantity {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-borders-forms-primary, #ccc);
    border-radius: 2rem;
    padding: 0.125rem 0.25rem;
    gap: 0;
    flex: 0 0 auto;
    background: #fff;
  }

  .template-cart .cart-item__quantity-row .qty,
  .template-cart .cart-item__quantity-row .qty-selector {
    width: 1.875rem !important;
    min-width: 1.875rem !important;
    height: 1.875rem !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    border: 0 !important;
    background: transparent !important;
    -moz-appearance: textfield;
  }

  .template-cart .cart-item__quantity-row .qty-button {
    flex: 0 0 auto;
    width: 1.875rem;
    height: 1.875rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
  }

  .template-cart .cart-item__quantity-row .remove {
    flex: 0 0 auto;
    margin: 0 !important;
    white-space: nowrap;
    font-size: 0.875rem;
    color: var(--color-accent-main, #6a0b15);
  }

  .template-cart .cart-holder,
  .template-cart .cart-form__items,
  .template-cart .cart-section,
  .template-cart .cart-section main {
    overflow-x: hidden;
    max-width: 100%;
  }

  .template-cart .cart-item__title {
    word-break: break-word;
    font-size: clamp(0.8rem, 3.5vw, 0.95rem);
    line-height: 1.3;
  }
}

body.template-cart .mmshippingnotice {
  margin-bottom: var(--gutter-regular, 1rem);
}

body.template-cart shipping-notice.cart-notice {
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: var(--gutter-regular, 1rem);
  display: block;
}

body.template-cart .alert--wide.alert--note {
  color: #fff !important;
  background: #d14545 !important;
  border-color: #d14545 !important;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1rem !important;
  line-height: 1.45;
  white-space: normal;
  border-radius: 10px;
  font-size: 0.875rem;
}

body.template-cart .alert--wide.alert--success {
  color: #fff !important;
  background: #52a352 !important;
  border-color: #52a352 !important;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1rem !important;
  border-radius: 10px;
  font-size: 0.875rem;
}

body.template-cart .cart__form.processing {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

body.template-cart .cart__subtotal-widget .cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-borders-main, #e8e8e8);
}

body.template-cart .cart__item-count {
  font-size: 0.8125rem;
  color: var(--color-text-opacity, #666);
  margin-top: 0.35rem;
}

body.template-cart .cart-empty-state {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

body.template-cart .cart-empty-state p {
  margin: 0 0 1.25rem;
  color: var(--color-text-opacity, #666);
}

body.template-cart .kholoud-cart-recs {
  margin-top: var(--gutter-large, 2rem);
  padding-bottom: 7rem;
}

body.template-cart .kholoud-cart-recs .css-slider-holder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  body.template-cart .kholoud-cart-recs .css-slider-holder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.template-cart .kholoud-cart-recs .product-item.card {
  max-width: none;
  width: 100%;
}

/* Cart drawer (sidebar) */
#site-cart-sidebar .cart-item__thumbnail {
  border-radius: 10px;
}

#site-cart-sidebar shipping-notice.cart-notice {
  padding: 0 !important;
  margin-bottom: 1rem;
  background: transparent !important;
}

#site-cart-sidebar .cart-item__actions .qty-button {
  cursor: pointer;
}