body {
  font-family: "Open Sans", sans-serif;
  background-color: #f7f9f8;
  color: #213029;
}

/* =======================
   CART SECTION
======================= */
.cart-section {
  padding: 3.5rem 1rem;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.75rem;
  text-align: center;
  color: #1b5e20;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
}

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

/* =======================
   CART ITEMS
======================= */
.cart-items-container {
  background: #fff;
  border: 1px solid #e8efeb;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(24, 39, 31, 0.06);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

#cart-items-list {
  flex-grow: 1;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  padding: 2rem;
  text-align: center;
  color: #6b7f73;
  background: linear-gradient(180deg, #fbfefc 0%, #f3faf5 100%);
  border: 1px dashed #cfe3d4;
  border-radius: 16px;
}

.cart-empty-state .empty-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  color: #1b5e20;
  background: #e7f4eb;
}

.cart-empty-state h3 {
  margin: 0 0 0.35rem;
  color: #203128;
  font-size: 1.05rem;
}

.cart-empty-state p {
  margin: 0 0 1rem;
}

/* =======================
   CART TABLE ALIGNMENT
======================= */
.cart-header,
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 120px 140px 50px;
  align-items: center;
  column-gap: 1rem;
}

.cart-header {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a7d73;
  border-bottom: 1px solid #e6ece8;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
}

.header-product {
  text-align: left;
}

.header-quantity {
  text-align: center;
}

.header-total {
  text-align: right;
  padding-right: 0.25rem;
}

/* =======================
   CART ITEM
======================= */
.cart-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eef3f0;
}

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

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.cart-item-image {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #edf2ee;
  flex-shrink: 0;
}

.cart-item-details {
  min-width: 0;
}

.cart-item-details .item-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #203128;
}

.item-price {
  color: #356e46;
  font-weight: 600;
}

/* =======================
   QUANTITY
======================= */
.cart-item-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quantity-btn {
  background: #f1f7f3;
  border: 1px solid #dcebe1;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  color: #2a5f3a;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #1b5e20;
  color: #fff;
  border-color: #1b5e20;
}

.quantity-value {
  min-width: 1.2rem;
  text-align: center;
  font-weight: 600;
}

/* =======================
   TOTAL & REMOVE
======================= */
.cart-item-total {
  text-align: right;
  font-weight: 700;
  color: #223028;
  white-space: nowrap;
  padding-right: 0.25rem;
}

.cart-item-remove {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1.5px solid #eef3f0;
  background: #fff;
  color: #6a7d73;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item-remove svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.cart-item-remove:hover {
  color: #ef4444;
  border-color: #fee2e2;
  background: #fef2f2;
  transform: scale(1.05);
}

.cart-item-remove:focus-visible {
  outline: 3px solid rgba(46, 125, 50, 0.22);
  outline-offset: 2px;
}

/* =======================
   CONTINUE SHOPPING
======================= */
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.continue-shopping,
.clear-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1b5e20;
  font-weight: 600;
  text-decoration: none;
}

.clear-cart-btn {
  border: 0;
  background: transparent;
  color: #c62828;
  cursor: pointer;
  font: inherit;
}

.clear-cart-btn svg,
.continue-shopping svg {
  width: 18px;
  height: 18px;
}

/* =======================
   CART SUMMARY
======================= */
.cart-summary {
  background: #fff;
  border: 1px solid #e8efeb;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(24, 39, 31, 0.06);
  padding: 1.6rem 1.4rem;
  height: fit-content;
  position: sticky;
  top: 1.5rem;
}

.cart-summary h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 1.3rem;
  color: #1b5e20;
}

.shipping-form {
  border-top: 1px solid #e6ece8;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.shipping-form h4 {
  font-size: 0.95rem;
  color: #5f7468;
  margin-bottom: 0.8rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #6a7d73;
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #eef3f0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fdfdfd;
  color: #213029;
  outline: none;
}

.form-control:focus {
  border-color: #1b5e20;
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.05);
}

.form-control:disabled {
  background: #f1f7f3;
  cursor: not-allowed;
}



.shipping-dropdown {
  position: relative;
}

.shipping-dropdown-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #d3e7d8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(27, 94, 32, 0.06);
  cursor: pointer;
  transition: all 0.18s ease;
}

.shipping-dropdown-trigger:hover {
  border-color: #9bc8a3;
  background: #fbfefc;
}

.shipping-dropdown-trigger:focus-visible {
  outline: 3px solid rgba(46, 125, 50, 0.2);
  outline-offset: 2px;
}

.shipping-selected-main,
.shipping-option-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.shipping-selected-content,
.shipping-option {
  text-align: left;
}

.shipping-selected-content small,
.shipping-option small {
  color: #688076;
  font-size: 0.8rem;
}

.shipping-dropdown-arrow {
  width: 18px;
  height: 18px;
  color: #2e7d32;
  transition: transform 0.18s ease;
}

.shipping-dropdown-arrow.is-open {
  transform: rotate(180deg);
}

.shipping-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #d8e8dc;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(24, 39, 31, 0.12);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shipping-option {
  width: 100%;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.shipping-option:hover {
  background: #f3faf5;
  border-color: #c8e0ce;
}

.shipping-option.is-selected {
  background: #ecf7ef;
  border-color: #8fbe99;
}

.shipping-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shipping-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: #2e7d32;
}

.shipping-dropdown-enter,
.shipping-dropdown-leave {
  transition: all 0.18s ease;
}

.shipping-dropdown-enter-start,
.shipping-dropdown-leave-end {
  opacity: 0;
  transform: scale(0.97) translateY(-4px);
}

.shipping-dropdown-enter-end,
.shipping-dropdown-leave-start {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.coupon-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.coupon-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: clamp(10rem, 65vw, 100%);
  padding: 0.65rem 1rem;
  border: 1.5px solid #eef3f0;
  border-radius: 999px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
  background: #fdfdfd;
}

.coupon-form input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.05);
}

.coupon-form .btn {
  flex: 0 0 auto;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.summary-item,
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.summary-item span:first-child {
  color: #5f7468;
}

.summary-note {
  margin: -0.35rem 0 0.75rem;
  color: #6a7d73;
  font-size: 0.82rem;
}

.shipping-cost-row {
  padding-top: 0.75rem;
  border-top: 1px solid #eef3f0;
}

.summary-total {
  margin-top: 1.4rem;
  padding-top: 0.95rem;
  border-top: 1px solid #e6ece8;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1b5e20;
}

/* =======================
   BUTTONS
======================= */
.cart-summary .btn-block {
  width: 100%;
  margin-top: 1.25rem;
}

/* =======================
   MOBILE
======================= */
@media (max-width: 600px) {
  .cart-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "product product remove"
      "empty quantity total";
    column-gap: 0.75rem;
    row-gap: 1rem;
    padding: 1.25rem 0;
  }

  .cart-item-product {
    grid-area: product;
  }

  .cart-item-quantity {
    grid-area: quantity;
    justify-content: flex-start;
  }

  .cart-item-total {
    grid-area: total;
    text-align: right;
    align-self: center;
    padding-right: 0;
  }

  .cart-item-remove {
    grid-area: remove;
    align-self: flex-start;
  }


  .coupon-form {
    flex-wrap: nowrap;
  }

  .cart-summary {
    margin-top: 1rem;
    position: static;
  }
}
