/**
 * WooCommerce Cart Page Styles — Shopify-inspired
 *
 * @package Shop001
 */

/* ============================
   Cart Page — Title Section
   ============================ */
.page-title-section--cart,
body.woocommerce-cart .page-title-section {
  padding: 13rem 0 1.5rem;
  background: var(--secondary-color);
  min-height: auto;
}
.page-title-section--cart .page-title,
body.woocommerce-cart .page-title-section .page-title {
  display: none;
}
.page-title-section--cart .breadcrumb,
body.woocommerce-cart .page-title-section .breadcrumb {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}
.page-title-section--cart .breadcrumb a,
.page-title-section--cart .breadcrumb .sep,
.page-title-section--cart .breadcrumb .current,
body.woocommerce-cart .page-title-section .breadcrumb a,
body.woocommerce-cart .page-title-section .breadcrumb .sep,
body.woocommerce-cart .page-title-section .breadcrumb .current {
  color: rgba(255, 255, 255, 0.7);
}
.page-title-section--cart .breadcrumb a:hover,
body.woocommerce-cart .page-title-section .breadcrumb a:hover {
  color: #fff;
}
.page-title-section--cart .breadcrumb .sep,
body.woocommerce-cart .page-title-section .breadcrumb .sep {
  margin: 0 0.8rem;
}

/* ============================
   WooCommerce notices
   ============================ */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  margin-bottom: 2rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  list-style: none;
}
body.woocommerce-cart .woocommerce-message {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}
body.woocommerce-cart .woocommerce-info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #1565c0;
}
body.woocommerce-cart .woocommerce-error {
  background: #fce4ec;
  border-left: 4px solid #f44336;
  color: #c62828;
}
body.woocommerce-cart .woocommerce-error li {
  list-style: none;
}

/* Hide WC's default "return to shop" button inside notices */
body.woocommerce-cart .woocommerce-info .button.wc-backward,
body.woocommerce-cart .return-to-shop {
  display: none;
}

/* Notices spacing in empty cart state */
.wc-cart-page .woocommerce-message:last-child,
.wc-cart-page .woocommerce-info:last-child {
  margin-bottom: 0;
}

/* ============================
   Cart Page Container
   ============================ */
.wc-cart-page {
  padding: 4rem 0 6rem;
}
.shop001-cart {
  padding: 0 0 2rem;
}

/* ============================
   Free Shipping Progress Bar
   ============================ */
.shop001-cart__freeship {
  background: #fffde7;
  border: 1px solid #fff9c4;
  border-radius: 0.8rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
.shop001-cart__freeship-bar {
  width: 100%;
  height: 0.6rem;
  background: #e0e0e0;
  border-radius: 0.3rem;
  overflow: hidden;
  margin-bottom: 0.8rem;
}
.shop001-cart__freeship-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #ff7043);
  border-radius: 0.3rem;
  transition: width 0.4s ease;
}
.shop001-cart__freeship-text {
  font-size: 1.4rem;
  color: #5d4037;
  margin: 0;
}
.shop001-cart__freeship-text i {
  margin-right: 0.6rem;
  color: var(--primary-color);
}

/* ============================
   Cart Header
   ============================ */
.shop001-cart__header {
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}
.shop001-cart__title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0;
}
.shop001-cart__count {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--base-color);
}

/* ============================
   Two-Column Layout
   ============================ */
.shop001-cart__layout {
  display: grid;
  grid-template-columns: 1fr 38rem;
  gap: 4rem;
  align-items: start;
}

/* ============================
   Cart Items Column
   ============================ */
.shop001-cart__col-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  padding: 0 0 1rem;
  border-bottom: 2px solid var(--secondary-color);
  margin-bottom: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shop001-cart__col-head-qty {
  width: 14rem;
  text-align: center;
}
.shop001-cart__col-head-total {
  width: 10rem;
  text-align: right;
}

/* ============================
   Cart Item Card
   ============================ */
.shop001-cart__item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.shop001-cart__item.removing {
  opacity: 0;
  transform: translateX(-2rem);
}

/* Image */
.shop001-cart__item-img {
  width: 10rem;
  height: 10rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--gray-color);
  flex-shrink: 0;
}
.shop001-cart__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info area */
.shop001-cart__item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.shop001-cart__item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.shop001-cart__item-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  line-height: 1.4;
}
.shop001-cart__item-name a {
  color: var(--secondary-color);
  transition: color 0.2s ease;
}
.shop001-cart__item-name a:hover {
  color: var(--primary-color);
}

/* Variation data */
.shop001-cart__item-info .variation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  font-size: 1.3rem;
  color: var(--base-color);
  margin: 0 0 0.5rem;
}
.shop001-cart__item-info .variation dt {
  font-weight: 600;
  margin: 0;
}
.shop001-cart__item-info .variation dd {
  margin: 0;
}
.shop001-cart__item-info .variation dd p {
  margin: 0;
}

/* Unit price */
.shop001-cart__item-price {
  font-size: 1.4rem;
  color: var(--base-color);
  margin-bottom: 0.5rem;
}

/* Remove button */
.shop001-cart__item-remove {
  flex-shrink: 0;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #999;
  transition: var(--smooth-transition);
}
.shop001-cart__item-remove:hover {
  background: #fce4ec;
  color: #c62828;
}

/* Bottom row: qty + total */
.shop001-cart__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: auto;
}

/* Quantity control */
.shop001-cart__item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  overflow: hidden;
}
.shop001-qty-btn {
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: var(--smooth-transition);
}
.shop001-qty-btn:hover {
  background: var(--gray-color);
}
.shop001-qty-input {
  width: 4.5rem;
  height: 3.6rem;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--base-font);
  color: var(--secondary-color);
  -moz-appearance: textfield;
  appearance: textfield;
}
.shop001-qty-input::-webkit-inner-spin-button,
.shop001-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Line total */
.shop001-cart__item-total {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary-color);
  white-space: nowrap;
}

/* ============================
   Cart Actions (Update Button)
   ============================ */
.shop001-cart__actions {
  display: flex;
  justify-content: flex-end;
  padding: 2rem 0;
  gap: 1rem;
}
.shop001-cart__update-btn {
  padding: 1rem 2.4rem;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: var(--base-font);
  cursor: pointer;
  transition: var(--smooth-transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.shop001-cart__update-btn:hover:not(:disabled) {
  background: #1a2540;
}
.shop001-cart__update-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================
   Order Summary Sidebar
   ============================ */
.shop001-cart__summary {
  position: sticky;
  top: 12rem;
}
.shop001-cart__summary-inner {
  background: var(--gray-color);
  border-radius: 1.2rem;
  padding: 2.5rem;
}
.shop001-cart__summary-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

/* Summary rows */
.shop001-cart__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  padding: 0.8rem 0;
}
.shop001-cart__summary-row--discount {
  color: #2e7d32;
  font-size: 1.4rem;
}
.shop001-cart__summary-row--discount i {
  margin-right: 0.4rem;
}
.shop001-cart__summary-row--total {
  font-size: 1.8rem;
  font-weight: 800;
  padding: 1.2rem 0;
}

/* Divider */
.shop001-cart__summary-divider {
  height: 1px;
  background: #ddd;
  margin: 0.8rem 0;
}

/* Shipping note */
.shop001-cart__shipping-note {
  font-size: 1.3rem;
  color: var(--base-color);
  margin: 0.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.shop001-cart__shipping-note i {
  color: var(--primary-color);
}

/* Tax note */
.shop001-cart__tax-note {
  font-size: 1.3rem;
  color: #2e7d32;
  margin: 0.3rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.shop001-cart__tax-note i {
  color: #4caf50;
}

/* ============================
   Coupon Section
   ============================ */
.shop001-cart__coupon-section {
  margin: 1rem 0;
}
.shop001-cart__coupon-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0 0 0.6rem;
}
.shop001-cart__coupon-input-wrap {
  display: flex;
  gap: 0;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid #ddd;
}
.shop001-cart__coupon-input {
  flex: 1;
  padding: 1rem 1.2rem;
  border: none;
  font-size: 1.4rem;
  font-family: var(--base-font);
  color: var(--secondary-color);
  background: #fff;
  min-width: 0;
}
.shop001-cart__coupon-input:focus {
  outline: none;
}
.shop001-cart__coupon-apply {
  padding: 1rem 1.6rem;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: var(--base-font);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--smooth-transition);
}
.shop001-cart__coupon-apply:hover {
  background: #1a2540;
}

/* Applied coupon display (inside WC output) */
.shop001-cart__summary-row--discount .woocommerce-remove-coupon {
  color: #c62828;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

/* ============================
   Checkout Button
   ============================ */
.shop001-cart__checkout {
  margin-top: 1.5rem;
}
.shop001-cart__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.6rem 2rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.7rem;
  font-weight: 700;
  font-family: var(--base-font);
  text-align: center;
  cursor: pointer;
  transition: var(--smooth-transition);
  text-decoration: none;
}
.shop001-cart__checkout-btn:hover {
  background: var(--primary-aa);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 71, 0, 0.3);
}

/* Hide WC default checkout button (we have our own) */
.shop001-cart__checkout .wc-proceed-to-checkout > .checkout-button.alt {
  display: none;
}

/* Third-party payment buttons (PayPal etc.) */
.shop001-cart__checkout .wc-proceed-to-checkout {
  margin-top: 1rem;
}

/* Continue Shopping */
.shop001-cart__continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1.2rem 2rem;
  margin-top: 1rem;
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--smooth-transition);
}
.shop001-cart__continue:hover {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  color: #fff;
}

/* ============================
   Trust Badges
   ============================ */
.shop001-cart__trust {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.shop001-cart__trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  color: var(--base-color);
}
.shop001-cart__trust-item i {
  color: #4caf50;
  font-size: 1.4rem;
  width: 1.8rem;
  text-align: center;
}

/* Payment icons */
.shop001-cart__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}
.shop001-cart__payments i {
  font-size: 2.8rem;
  color: #999;
  transition: color 0.2s ease;
}
.shop001-cart__payments i:hover {
  color: var(--secondary-color);
}

/* ============================
   Empty Cart
   ============================ */
.shop001-cart-empty {
  text-align: center;
  padding: 6rem 2rem;
}
.shop001-cart-empty__icon {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-color);
  border-radius: 50%;
}
.shop001-cart-empty__icon i {
  font-size: 4rem;
  color: #bdbdbd;
}
.shop001-cart-empty__title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0 0 1rem;
}
.shop001-cart-empty__text {
  font-size: 1.6rem;
  color: var(--base-color);
  margin: 0 0 3rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.shop001-cart-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.6rem 3.5rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--base-font);
  text-decoration: none;
  transition: var(--smooth-transition);
}
.shop001-cart-empty__btn:hover {
  background: var(--primary-aa);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 71, 0, 0.3);
}

/* ============================
   Responsive Breakpoints
   ============================ */

/* Tablet */
@media (max-width: 75em) {
  .shop001-cart__layout {
    grid-template-columns: 1fr 34rem;
    gap: 3rem;
  }
}

/* Tablet/Portrait */
@media (max-width: 61.95em) {
  .page-title-section--cart,
  body.woocommerce-cart .page-title-section {
    padding: 11rem 0 1.2rem;
  }
  .shop001-cart__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .shop001-cart__summary {
    position: static;
  }
  .shop001-cart__col-head {
    display: none;
  }
  .shop001-cart__title {
    font-size: 2.4rem;
  }
}

/* Mobile */
@media (max-width: 35.95em) {
  .page-title-section--cart,
  body.woocommerce-cart .page-title-section {
    padding: 9.5rem 0 1rem;
  }
  .shop001-cart__item {
    grid-template-columns: 8rem 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .shop001-cart__item-img {
    width: 8rem;
    height: 8rem;
  }
  .shop001-cart__item-name {
    font-size: 1.4rem;
  }
  .shop001-cart__item-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .shop001-cart__title {
    font-size: 2.2rem;
  }
  .shop001-cart__count {
    font-size: 1.5rem;
  }
  .shop001-cart__summary-inner {
    padding: 2rem;
  }
  .shop001-cart__checkout-btn {
    font-size: 1.6rem;
    padding: 1.4rem 2rem;
  }
  .shop001-cart-empty__title {
    font-size: 2.4rem;
  }
  .shop001-cart-empty__icon {
    width: 8rem;
    height: 8rem;
  }
  .shop001-cart-empty__icon i {
    font-size: 3.2rem;
  }
}

/* Small Mobile */
@media (max-width: 25em) {
  .shop001-cart__item {
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
  }
  .shop001-cart__item-img {
    width: 7rem;
    height: 7rem;
  }
  .shop001-cart__item-name {
    font-size: 1.3rem;
  }
  .shop001-cart-empty__title {
    font-size: 2.1rem;
  }
}
