/* =========================================================
   CHAVORA CART PAGE
========================================================= */

.cart-page {
  min-height: 70vh;
}


/* =========================================================
   CART HERO
========================================================= */

.cart-hero {
  padding: 44px 20px 34px;
  text-align: center;
  background:
    linear-gradient(
      180deg,
      rgba(247, 243, 233, 0.95),
      rgba(238, 229, 213, 0.65)
    );
}

.cart-hero h1 {
  margin: 8px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 10vw, 68px);
  line-height: 0.95;
  color: #5a1f1f;
}

.cart-hero p:not(.section-kicker) {
  margin: 0 auto;
  max-width: 550px;
  color: #705f50;
  font-size: 15px;
  line-height: 1.7;
}


/* =========================================================
   CART SECTION
========================================================= */

.cart-section {
  padding: 30px 20px 48px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}


/* =========================================================
   CART ITEMS AREA
========================================================= */

.cart-items-area {
  min-width: 0;
}

.cart-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-top-row h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: #5a1f1f;
}

.clear-cart-btn {
  border: 0;
  background: transparent;
  color: #8b6255;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.clear-cart-btn:hover {
  color: #5a1f1f;
}


/* =========================================================
   CART ITEM
========================================================= */

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 16px;
  padding: 15px;
  border: 1px solid rgba(90, 31, 31, 0.12);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 8px 30px rgba(67, 43, 24, 0.05);
}

.cart-item-image {
  width: 95px;
  height: 105px;
  overflow: hidden;
  border-radius: 12px;
  background: #eee5d5;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cart-item-category {
  margin-bottom: 4px;
  color: #9a7543;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.cart-item-name {
  margin: 0;
  color: #5a1f1f;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  line-height: 1;
}

.cart-item-weight {
  margin: 6px 0 12px;
  color: #77675a;
  font-size: 13px;
}

.cart-item-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}

.cart-item-price strong {
  color: #5a1f1f;
  font-size: 18px;
}

.cart-item-price del {
  color: #a8998d;
  font-size: 12px;
}


/* =========================================================
   CART QUANTITY
========================================================= */

.cart-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(90, 31, 31, 0.2);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.cart-quantity button {
  width: 31px;
  height: 31px;
  border: 0;
  background: transparent;
  color: #5a1f1f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cart-quantity button:hover {
  background: #eee5d5;
}

.cart-quantity span {
  min-width: 28px;
  text-align: center;
  color: #4d3b31;
  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   REMOVE
========================================================= */

.remove-item-btn {
  align-self: flex-end;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a36e62;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.remove-item-btn:hover {
  color: #5a1f1f;
}


/* =========================================================
   SUMMARY
========================================================= */

.cart-summary {
  height: fit-content;
  padding: 21px;
  border: 1px solid rgba(90, 31, 31, 0.14);
  border-radius: 18px;
  background: #f8f1e5;
  box-shadow: 0 12px 35px rgba(67, 43, 24, 0.06);
}

.summary-heading {
  margin-bottom: 18px;
}

.summary-heading h2 {
  margin: 4px 0 0;
  color: #5a1f1f;
  font-family: "Cormorant Garamond", serif;
  font-size: 31px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 14px 0;
  color: #6d5c50;
  font-size: 14px;
}

.summary-row strong {
  color: #49362c;
}

.savings-row strong {
  color: #47723f;
}

.summary-divider {
  height: 1px;
  margin: 20px 0;
  background: rgba(90, 31, 31, 0.15);
}

.total-row {
  margin-bottom: 20px;
}

.total-row span {
  color: #5a1f1f;
  font-size: 16px;
  font-weight: 700;
}

.total-row strong {
  color: #5a1f1f;
  font-size: 24px;
}


/* =========================================================
   SHIPPING NOTE
========================================================= */

.shipping-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0;
  padding: 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.shipping-note span {
  color: #47723f;
  font-weight: 800;
}

.shipping-note p {
  margin: 0;
  color: #6f6258;
  font-size: 12px;
  line-height: 1.55;
}


/* =========================================================
   CHECKOUT
========================================================= */

.checkout-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.continue-shopping {
  display: block;
  margin-top: 17px;
  color: #72584a;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.continue-shopping:hover {
  color: #5a1f1f;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {
  padding: 60px 20px;
  border: 1px dashed rgba(90, 31, 31, 0.25);
  border-radius: 18px;
  text-align: center;
  background: #fffdf8;
}

.empty-cart-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eee5d5;
  color: #9a7543;
  font-size: 28px;
}

.empty-cart h2 {
  margin: 0 0 8px;
  color: #5a1f1f;
  font-family: "Cormorant Garamond", serif;
  font-size: 31px;
}

.empty-cart p {
  max-width: 400px;
  margin: 0 auto 22px;
  color: #77675a;
  font-size: 14px;
  line-height: 1.6;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 700px) {

  .cart-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .cart-item {
    grid-template-columns: 120px 1fr;
    padding: 18px;
  }

  .cart-item-image {
    width: 120px;
    height: 125px;
  }

}


@media (min-width: 960px) {

  .cart-hero {
    padding-top: 60px;
    padding-bottom: 42px;
  }

  .cart-section {
    padding-top: 38px;
    padding-bottom: 60px;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: 28px;
  }

  .cart-summary {
    position: sticky;
    top: 100px;
  }

}


@media (max-width: 480px) {

  .cart-top-row h2 {
    font-size: 28px;
  }

  .clear-cart-btn {
    font-size: 11px;
  }

  .cart-item {
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .cart-item-image {
    width: 78px;
    height: 92px;
  }

  .cart-item-name {
    font-size: 22px;
  }

  .cart-item-bottom {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .cart-quantity {
    align-self: flex-start;
  }

  .remove-item-btn {
    margin-top: 3px;
  }

  .cart-summary {
    padding: 21px 18px;
  }

}

/* =========================================================
   CHAVORA CART — PREMIUM COMPACT FOOTER
========================================================= */

.chavora-footer,
.chavora-footer * {
  box-sizing: border-box;
}

.chavora-footer {
  padding: 30px 20px 0;
  color: #d6c4b2;
  background: linear-gradient(135deg, #493029 0%, #3b2923 48%, #30201c 100%);
  border-top: 1px solid rgba(214, 181, 116, 0.22);
}

.chavora-footer .footer-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.35fr 1.1fr 0.8fr 0.9fr 1.4fr;
  gap: 22px;
  align-items: start;
}

.chavora-footer .footer-brand,
.chavora-footer .footer-founders,
.chavora-footer .footer-column {
  min-width: 0;
}

.chavora-footer .footer-logo {
  display: inline-block;
  color: #e6c77f;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
  text-decoration: none;
}

.chavora-footer .footer-tagline {
  margin-top: 5px;
  color: #c09a65;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.chavora-footer .footer-brand p {
  max-width: 190px;
  margin: 10px 0 0;
  color: #c7b3a1;
  font-size: 11px;
  line-height: 1.55;
}

.chavora-footer .footer-founders {
  display: grid;
  gap: 11px;
}

.chavora-footer .footer-founder h3,
.chavora-footer .footer-column h3 {
  margin: 0 0 7px;
  color: #d6b574;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.15px;
  line-height: 1.4;
  text-transform: uppercase;
}

.chavora-footer .footer-founder p {
  margin: 0;
  color: #f0dfcd;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.chavora-footer .footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chavora-footer .footer-column a {
  margin: 0 0 7px;
  color: #d6c4b2;
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.chavora-footer .footer-column a:hover {
  color: #f0d28a;
}

.chavora-footer .footer-connect a {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chavora-footer .footer-connect a span {
  color: #b9a18d;
  font-size: 9px;
}

.chavora-footer .footer-contact > a:first-of-type {
  color: #f0d28a;
  font-weight: 700;
}

.chavora-footer .footer-contact .call-time,
.chavora-footer .footer-contact .footer-address {
  margin: 0 0 8px;
  color: #c2ad9a;
  font-size: 10px;
  line-height: 1.5;
}

.chavora-footer .footer-bottom {
  width: 100%;
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 13px 0 15px;
  border-top: 1px solid rgba(214, 181, 116, 0.17);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #b19a87;
  font-size: 9px;
  line-height: 1.5;
}

.chavora-footer .footer-bottom span:last-child {
  color: #d6b574;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

@media (max-width: 1050px) {
  .chavora-footer .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 22px;
  }

  .chavora-footer .footer-brand {
    grid-column: span 2;
  }

  .chavora-footer .footer-policies {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .chavora-footer {
    padding: 25px 16px 0;
  }

  .chavora-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .chavora-footer .footer-brand,
  .chavora-footer .footer-policies,
  .chavora-footer .footer-founders {
    grid-column: 1 / -1;
  }

  .chavora-footer .footer-founders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(214, 181, 116, 0.14);
  }

  .chavora-footer .footer-policies {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .chavora-footer .footer-policies h3 {
    grid-column: 1 / -1;
  }

  .chavora-footer .footer-column h3 {
    margin-bottom: 8px;
  }

  .chavora-footer .footer-column a {
    font-size: 10.5px;
    margin-bottom: 7px;
  }

  .chavora-footer .footer-bottom {
    margin-top: 20px;
    padding: 12px 0 14px;
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
}