.cart-page {
  background-color: #ffffff;
  color: #222;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* =========== Home CTA Section START =========== */
.cart-page-layout {
  background-color: var(--light-green);
  padding: 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.cart-page-layout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.cart-page-layout .bottom-container {
  background-color: inherit;
  padding: 70px 0;
  border-radius: 10px;
  min-height: 400px;
  width: 100%;
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-page-layout .bottom-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://harvestepz.com/wp-content/uploads/2026/04/Frsco-Herbs-Background.png")
    no-repeat center center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.035;
}

.cart-page-layout .bottom-container .text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.cart-page-layout .bottom-container .cart-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1;
}

.cart-page-layout .bottom-container .cart-title .highlight {
  color: var(--primary-green);
}

.cart-page-layout .bottom-container .text-content h3 {
  font-size: 20px;
  color: #2c2c2c;
  margin: 0;
}

.cart-page-layout .bottom-container .text-content p {
  font-size: 16px;
  font-weight: 400;
  color: #2c2c2c;
  margin: 0;
}

.cart-page-layout .bottom-container .text-content a {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
}

.cart-page-layout .bottom-container .overlay-right-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  max-width: 30vw;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.cart-page-layout .bottom-container .overlay-right-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.cart-page-layout .bottom-container .overlay-left-bottom {
  position: absolute;
  bottom: -20%;
  left: -50px;
  width: auto;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: rotate(25deg);
}

.cart-page-layout .bottom-container .overlay-left-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.cart-page-layout .bottom-container .overlay-center-bottom {
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  max-width: 30vw;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.cart-page-layout .bottom-container .overlay-center-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.1;
}

@media (max-width: 480px) {
  .cart-page-layout .top-container {
    height: 350px;
    margin-bottom: 150px;
  }

  .cart-page-layout .top-container {
    padding: 10px;
  }

  .cart-page-layout .top-container .overlay-content {
    margin-top: 100px;
    width: 100%;
  }

  .cart-page-layout .bottom-container {
    padding: 50px 10px;
    padding-bottom: 120px;
  }

  .cart-page-layout .bottom-container .overlay-right-bottom {
    width: 300px;
    max-width: 50vw;
    bottom: -10%;
  }

  .cart-page-layout .bottom-container .overlay-left-bottom {
    width: 300px;
    max-width: 20vw;
  }

  .cart-page-layout .bottom-container .overlay-center-bottom {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 90vw;
    height: auto;
    object-fit: cover;
    z-index: 1;
  }

  .cart-page-layout .bottom-container .overlay-left-bottom {
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 500px;
    max-width: 50vw;
    height: auto;
    object-fit: cover;
    z-index: 1;
    transform: rotate(10deg);
  }
}

@media (max-width: 480px) {
  .cart-page-layout .top-container {
    height: 350px;
    margin-bottom: 150px;
  }

  .cart-page-layout .top-container {
    padding: 10px;
  }

  .cart-page-layout .top-container .overlay-content {
    margin-top: 100px;
    width: 100%;
  }

  .cart-page-layout .bottom-container {
    padding: 50px 10px;
    padding-bottom: 120px;
  }

  .cart-page-layout .bottom-container .overlay-right-bottom {
    width: 300px;
    max-width: 50vw;
    bottom: -10%;
  }

  .cart-page-layout .bottom-container .overlay-left-bottom {
    width: 300px;
    max-width: 20vw;
  }

  .cart-page-layout .bottom-container .overlay-center-bottom {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 90vw;
    height: auto;
    object-fit: cover;
    z-index: 1;
  }

  .cart-page-layout .bottom-container .overlay-left-bottom {
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 500px;
    max-width: 50vw;
    height: auto;
    object-fit: cover;
    z-index: 1;
    transform: rotate(10deg);
  }
}

.cart-breadcrumb {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.cart-layout {
  padding: 4rem 0 3rem 0;
  width: 100%;
}

.cart-layout-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 92%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.cart-list {
  background-color: #ffffff;
  border-radius: 0;
  overflow: hidden;
}

.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-of-type {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f3f3f3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.cart-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.cart-product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  font-family: "Josefin Sans", sans-serif !important;
}

.cart-product-meta {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
  font-family: "Josefin Sans", sans-serif !important;
}

.cart-unit-price {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
  font-family: "Josefin Sans", sans-serif !important;
}

.cart-item-remove {
  display: none;
}

.cart-stock {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  font-family: "Josefin Sans", sans-serif !important;
}

.cart-stock--in {
  color: #2d7a4f;
  font-weight: 500;
}

.cart-stock--out {
  color: #c53030;
  font-weight: 500;
}

.cart-price,
.cart-subtotal {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-btn-edit,
.cart-btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 3px !important;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  font-family: inherit;
  color: #555;
}

.cart-btn-edit:hover,
.cart-btn-delete:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

.cart-btn-delete:hover {
  color: #e06a5f;
  border-color: #e06a5f;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  border: 1px solid #c5c5c53b;
  overflow: hidden;
  max-width: fit-content;
  padding: 0.2rem 0.2rem;
  border-radius: 5px !important;
  background-color: #fbfbfb !important;
}

.cart-qty-mobile {
  display: none;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background-color: #f5f5f5;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px !important;
  transition: all 0.3s ease !important;
}

.cart-qty-btn-minus {
  border-right: 1px solid #e0e0e0;
  background-color: #ebebebd3 !important;
}

.cart-qty-btn-plus {
  background-color: #0f3d2e !important;
  color: #ffffff !important;
}

.cart-qty-btn-minus:hover {
  background-color: #c2c2c2 !important;
  color: #ffffff !important;
}

.cart-qty-btn-plus:hover {
  background-color: #d6d6d6 !important;
  color: #ffffff !important;
}

.cart-qty-input {
  width: 38px;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  padding: 0;
  border-radius: 50px;
  background-color: inherit !important;
}

.cart-qty-input:focus {
  outline: none;
}

/* Hide native number input spinners for cart quantity */
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-qty-input[type="number"] {
  -moz-appearance: textfield;
}

.cart-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid #f0f0f0;
}

.cart-actions-row--simple {
  justify-content: flex-start;
  padding-top: 2rem;
  padding-left: 0 !important;
}

.cart-clear {
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 500;
  color: #e6483a;
  cursor: pointer;
  border-bottom: 1px solid #e06a5f;
  max-width: fit-content;
}

.cart-clear:hover {
  color: var(--primary-green);
  border-bottom: 1px solid var(--primary-green);
}

.cart-summary {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 61, 46, 0.027);
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid #f0f0f0;
}

.cart-summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.cart-summary-list {
  margin: 0 0 1.5rem;
  padding: 0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.cart-summary-row-discount dd {
  color: #e06a5f;
}

.cart-summary-row-total {
  border-top: 1px solid #f0f0f0;
  margin-top: 0.4rem;
  padding-top: 0.7rem;
  font-weight: 700;
}

.cart-summary-row dt {
  color: #666;
}

.cart-summary-row dd {
  margin: 0;
  color: #333;
}

.cart-summary-checkout {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--primary-green);
  cursor: pointer;
}

.cart-summary-checkout:hover {
  background-color: #009f5d;
}

.cart-benefits {
  padding: 4rem 0 6rem 0;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-benefits-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 92%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.cart-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background-color: #226e55;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-benefit-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.cart-benefit-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.cart-benefit-text p {
  font-size: 1rem;
  color: #666;
  margin: 0;
  font-family: "Poppins", sans-serif !important;
}

/* ==========================Recommended products carousel ==============================*/
.cart-recommended {
  padding: 4rem 0;
  background-color: #fcfcfc;
  position: relative;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cart-recommended::before {
  content: "";
  background: url("https://harvestepz.com/wp-content/uploads/2026/04/Frsco-Herbs-Background.png")
    no-repeat;
  background-size: cover;
  background-position: top;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  opacity: 0.02;
  z-index: 5;
}

.cart-recommended-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 92%;
  position: relative;
  z-index: 10;
}

.cart-recommended-header {
  text-align: left;
  margin-bottom: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cart-recommended-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.cart-recommended-title .highlight {
  color: var(--primary-green);
}

.cart-recommended-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.cart-recommended-carousel {
  position: relative;
  overflow: hidden;
}

.cart-recommended-track {
  padding: 0.25rem 0.1rem 0.5rem;
  display: flex;
  align-items: stretch !important;
  height: auto !important;
}

.cart-recommended-track .swiper-slide {
  height: auto !important;
}

.product-card-add {
  width: 100%;
  max-width: fit-content;
  padding: 0.85rem 1rem 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background-color: var(--primary-green);
  color: #fff;
  margin: 0.6rem 0 0.3rem;
}

.product-card-add:hover {
  background-color: #0f3d2e;
}

.cart-recommended-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

.cart-recommended-btn {
  width: 45px;
  height: 45px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
}

.cart-recommended-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

@media (max-width: 960px) {
  .cart-layout-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cart-layout {
    padding: 2rem 0;
  }

  .cart-layout-inner {
    width: 95%;
    margin: 0 auto;
  }
  .cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cart-item {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    height: auto;
    gap: 1rem;
    padding: 0.5rem 0.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .cart-item-image {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .cart-item-body {
    flex: 1;
    min-width: 0;
    text-align: left;
    gap: 0.2rem;
    padding-top: 0.25rem;
  }

  .cart-item-body .cart-product-name {
    font-size: 1rem;
  }

  .cart-item-body .cart-stock {
    display: none;
  }

  .cart-qty-desktop {
    display: none !important;
  }

  .cart-qty-mobile {
    display: inline-flex !important;
    margin-top: auto;
  }

  .cart-item-right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 100%;
    height: auto;
  }

  .cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
  }

  .cart-item-remove:hover {
    color: #e06a5f;
  }

  .cart-item-right .cart-price,
  .cart-item-actions {
    display: none;
  }

  .cart-price,
  .cart-qty,
  .cart-subtotal {
    font-size: 0.85rem;
  }

  .cart-actions-row {
    flex-direction: column;
    align-items: center;
  }

  .cart-benefits {
    padding: 1rem 0 3rem 0;
  }

  .cart-benefits-inner {
    grid-template-columns: 1fr;
  }

  .cart-recommended-title {
    font-size: 2rem;
    text-align: center;
  }

  .cart-recommended-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .cart-recommended-btn {
    width: 35px;
  }

  .product-image {
    height: auto;
  }

  .product-card {
    padding: 0.5rem;
  }

  .product-name {
    font-size: 1.1rem;
    text-align: center;
    width: 90%;
  }

  .product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-card__link {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding-bottom: 0rem;
  }

  .cart-recommended {
    padding: 2rem 0;
  }

  .cart-recommended-nav {
    margin-top: 2rem;
  }

  .cart-recommended-btn {
    width: 34px;
    height: 34px;
  }
}
