/* =========================================================
   Cart Page
   File: css/cart.css
   ========================================================= */

.cart-page {
  background: #fffdf8;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-header-link {
  position: relative;
  height: 42px;
  border: 1px solid rgba(213, 173, 88, 0.52);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

.cart-header-link i {
  color: #d5ad58;
  font-size: 18px;
}

.cart-header-link em {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #d5ad58;
  color: #021d13;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.cart-header-link:hover,
.cart-header-link.active {
  background: #d5ad58;
  color: #021d13;
}

.cart-header-link:hover i,
.cart-header-link.active i {
  color: #021d13;
}

.cart-header-link:hover em,
.cart-header-link.active em {
  background: #021d13;
  color: #d5ad58;
}

/* =========================================================
   Hero
   ========================================================= */

.cart-hero-section {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #021d13;
}

.cart-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.cart-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 28%, rgba(213, 173, 88, 0.14), transparent 330px),
    linear-gradient(
      90deg,
      rgba(2, 29, 19, 0.18) 0%,
      rgba(2, 29, 19, 0.58) 45%,
      rgba(2, 29, 19, 0.94) 100%
    );
}

.cart-hero-content {
  position: relative;
  z-index: 2;
  min-height: 430px;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  padding: 54px 0;
}

.cart-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.cart-breadcrumb a {
  color: #ead28a;
  font-weight: 800;
}

.cart-breadcrumb strong {
  color: rgba(255, 255, 255, 0.92);
}

.cart-label,
.cart-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d5ad58;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cart-label::before,
.cart-section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: #d5ad58;
}

.cart-hero-content h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.45;
}

.cart-hero-content p {
  max-width: 850px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 2.05;
}

.cart-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  max-width: 850px;
}

.cart-hero-stats > div {
  border: 1px solid rgba(213, 173, 88, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 16px;
}

.cart-hero-stats i {
  color: #d5ad58;
  font-size: 25px;
  margin-bottom: 10px;
  display: inline-flex;
}

.cart-hero-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.cart-hero-stats strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.8;
}

/* =========================================================
   Main Layout
   ========================================================= */

.cart-main-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 173, 88, 0.08), transparent 430px),
    #fffdf8;
  padding: 58px 0 64px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 30px;
  align-items: start;
}

.cart-content {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.cart-toolbar,
.cart-item,
.cart-empty-state,
.cart-note-card,
.cart-summary-card,
.cart-help-card,
.cart-suggested-card {
  border: 1px solid #e9dfc9;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
}

.cart-toolbar {
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.cart-toolbar h2,
.cart-summary-head h2,
.cart-note-card h2,
.cart-help-card h2 {
  margin: 0;
  color: #063522;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.45;
}

.cart-toolbar button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff1f0;
  color: #9d2a24;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  transition: 0.25s ease;
}

.cart-toolbar button:hover {
  background: #9d2a24;
  color: #ffffff;
}

/* =========================================================
   Cart Items
   ========================================================= */

.cart-items-list {
  display: grid;
  gap: 16px;
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr 135px 140px 135px 42px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  transition: 0.25s ease;
}

.cart-item:hover {
  border-color: rgba(213, 173, 88, 0.75);
  box-shadow: 0 18px 42px rgba(4, 53, 35, 0.10);
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateX(-20px);
}

.cart-item-image {
  height: 132px;
  border: 1px solid #eee4cf;
  border-radius: 15px;
  background: #fffdf8;
  display: grid;
  place-items: center;
  padding: 10px;
}

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

.cart-item-info > span {
  height: 30px;
  border-radius: 999px;
  background: #fff7e4;
  color: #9c762e;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cart-item-info h3 {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.55;
}

.cart-item-info h3 a {
  color: #063522;
}

.cart-item-info ul {
  margin: 0 0 9px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.cart-item-info li {
  color: #6d756f;
  font-size: 12px;
  line-height: 1.8;
}

.cart-item-stock {
  color: #07452e;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-item-stock i {
  color: #9c762e;
}

.cart-item-price span,
.cart-item-quantity > span,
.cart-item-total span {
  display: block;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cart-item-price strong,
.cart-item-total strong {
  color: #063522;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.7;
}

.cart-qty-control {
  width: 124px;
  height: 42px;
  border: 1px solid #e0d5be;
  border-radius: 999px;
  background: #fffdf8;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  overflow: hidden;
}

.cart-qty-control button {
  width: 36px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #063522;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.cart-qty-control button:hover {
  background: #fff7e4;
  color: #9c762e;
}

.cart-qty-control input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #063522;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.cart-remove-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff1f0;
  color: #9d2a24;
  display: grid;
  place-items: center;
  transition: 0.25s ease;
}

.cart-remove-btn:hover {
  background: #9d2a24;
  color: #ffffff;
}

/* =========================================================
   Empty / Note
   ========================================================= */

.cart-empty-state {
  display: none;
  text-align: center;
  padding: 54px 24px;
}

.cart-empty-state.show {
  display: block;
}

.cart-empty-state i {
  color: #9c762e;
  font-size: 58px;
}

.cart-empty-state h2 {
  margin: 14px 0 8px;
  color: #063522;
  font-size: 28px;
  font-weight: 900;
}

.cart-empty-state p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.cart-empty-state a {
  height: 46px;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 900;
}

.cart-note-card {
  padding: 24px;
}

.cart-note-card > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.cart-note-card > div > i {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: 0 0 auto;
}

.cart-note-card p {
  margin: 4px 0 0;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.cart-note-card textarea {
  width: 100%;
  border: 1px solid #e0d5be;
  border-radius: 14px;
  background: #fffdf8;
  color: #273027;
  outline: 0;
  resize: vertical;
  padding: 14px;
  font-size: 14px;
  line-height: 2;
  transition: 0.22s ease;
}

.cart-note-card textarea:focus {
  border-color: #d5ad58;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(213, 173, 88, 0.12);
}

/* =========================================================
   Summary
   ========================================================= */

.cart-summary-sidebar {
  position: sticky;
  top: 145px;
  display: grid;
  gap: 18px;
}

.cart-summary-card {
  padding: 24px;
}

.cart-summary-head {
  margin-bottom: 18px;
}

.cart-summary-lines {
  border-top: 1px solid #eee4cf;
  border-bottom: 1px solid #eee4cf;
  padding: 12px 0;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-summary-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-summary-lines span,
.cart-total-box span {
  color: #626a63;
  font-size: 13px;
  font-weight: 800;
}

.cart-summary-lines strong {
  color: #063522;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.8;
}

.cart-coupon-form,
.cart-shipping-select {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.cart-coupon-form label,
.cart-shipping-select label {
  color: #063522;
  font-size: 14px;
  font-weight: 900;
}

.cart-coupon-form > div {
  height: 48px;
  border: 1px solid #e0d5be;
  border-radius: 999px;
  background: #fffdf8;
  display: grid;
  grid-template-columns: 1fr 92px;
  overflow: hidden;
  transition: 0.22s ease;
}

.cart-coupon-form > div:focus-within {
  border-color: #d5ad58;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(213, 173, 88, 0.12);
}

.cart-coupon-form input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 15px;
  color: #273027;
  font-size: 13px;
  text-transform: uppercase;
}

.cart-coupon-form button {
  border: 0;
  background: #07452e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.cart-coupon-form button:hover {
  background: #d5ad58;
  color: #021d13;
}

.cart-coupon-form small {
  min-height: 20px;
  color: #626a63;
  font-size: 12px;
  font-weight: 800;
}

.cart-coupon-form small.success {
  color: #07452e;
}

.cart-coupon-form small.error {
  color: #9d2a24;
}

.cart-shipping-select select {
  width: 100%;
  height: 48px;
  border: 1px solid #e0d5be;
  border-radius: 999px;
  background: #fffdf8;
  color: #063522;
  outline: 0;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.cart-total-box {
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 30%, rgba(213, 173, 88, 0.16), transparent 230px),
    linear-gradient(135deg, #021d13, #07452e);
  padding: 20px;
  margin: 18px 0;
}

.cart-total-box span {
  color: rgba(255, 255, 255, 0.78);
}

.cart-total-box strong {
  display: block;
  margin-top: 6px;
  color: #d5ad58;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.7;
}

.cart-summary-actions {
  display: grid;
  gap: 10px;
}

.checkout-btn,
.continue-shopping-btn {
  min-height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.checkout-btn {
  background: #07452e;
  color: #ffffff;
}

.continue-shopping-btn {
  background: #fff7e4;
  color: #063522;
}

.checkout-btn:hover,
.continue-shopping-btn:hover {
  background: #d5ad58;
  color: #021d13;
  transform: translateY(-2px);
}

.checkout-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.cart-summary-note {
  border-top: 1px solid #eee4cf;
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  gap: 10px;
}

.cart-summary-note i {
  color: #9c762e;
  font-size: 22px;
  flex: 0 0 auto;
}

.cart-summary-note p {
  margin: 0;
  color: #626a63;
  font-size: 13px;
  line-height: 2;
}

.cart-help-card {
  padding: 24px;
  text-align: center;
}

.cart-help-card > i {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 31px;
}

.cart-help-card p {
  margin: 8px 0 16px;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.cart-help-card a {
  height: 42px;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
}

/* =========================================================
   Suggested Products
   ========================================================= */

.cart-suggested-section {
  background: #fffdf8;
  padding: 0 0 70px;
}

.cart-suggested-head {
  text-align: center;
  margin-bottom: 28px;
}

.cart-suggested-head .cart-label {
  justify-content: center;
}

.cart-suggested-head .cart-label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: #d5ad58;
}

.cart-suggested-head h2 {
  margin: 0;
  color: #063522;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.5;
}

.cart-suggested-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cart-suggested-card {
  overflow: hidden;
  transition: 0.25s ease;
}

.cart-suggested-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(4, 53, 35, 0.12);
}

.cart-suggested-image {
  height: 250px;
  background: #fffdf8;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cart-suggested-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-suggested-info {
  border-top: 1px solid #eee4cf;
  padding: 22px;
}

.cart-suggested-info > span {
  color: #9c762e;
  font-size: 13px;
  font-weight: 900;
}

.cart-suggested-info h3 {
  margin: 6px 0 8px;
  color: #063522;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.6;
}

.cart-suggested-info p {
  margin: 0 0 16px;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.cart-suggested-info > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-suggested-info strong {
  color: #063522;
  font-size: 15px;
  font-weight: 900;
}

.suggested-add-btn {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 900;
}

.suggested-add-btn:hover {
  background: #d5ad58;
  color: #021d13;
}

.cart-toast {
  display: none;
  max-width: 620px;
  margin: 22px auto 0;
  border: 1px solid rgba(7, 69, 46, 0.16);
  border-radius: 14px;
  background: rgba(7, 69, 46, 0.07);
  color: #063522;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  line-height: 2;
  font-weight: 800;
}

.cart-toast.show {
  display: block;
}

.cart-bottom-cta {
  background: #fffdf8;
  padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199px) {
  .cart-header-actions {
    display: none;
  }

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

  .cart-summary-sidebar {
    position: static;
  }

  .cart-item {
    grid-template-columns: 120px 1fr 120px 132px 120px 42px;
    gap: 14px;
  }

  .cart-suggested-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .cart-item {
    grid-template-columns: 110px 1fr 42px;
    align-items: start;
  }

  .cart-item-price,
  .cart-item-quantity,
  .cart-item-total {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
  }

  .cart-remove-btn {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 767px) {
  .cart-hero-section,
  .cart-hero-content {
    min-height: 520px;
  }

  .cart-hero-content {
    text-align: center;
    padding: 44px 0;
  }

  .cart-breadcrumb {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cart-label,
  .cart-section-label {
    justify-content: center;
  }

  .cart-label::after,
  .cart-section-label::after {
    content: "";
    width: 34px;
    height: 1px;
    background: #d5ad58;
  }

  .cart-hero-content h1 {
    font-size: 31px;
  }

  .cart-hero-content p {
    font-size: 14px;
  }

  .cart-hero-stats {
    grid-template-columns: 1fr;
  }

  .cart-main-section {
    padding: 38px 0 48px;
  }

  .cart-toolbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cart-toolbar button {
    justify-content: center;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px;
  }

  .cart-item-image {
    width: 100%;
    height: 230px;
  }

  .cart-item-price,
  .cart-item-quantity,
  .cart-item-total {
    grid-column: auto;
    display: block;
  }

  .cart-qty-control {
    margin: 0 auto;
  }

  .cart-remove-btn {
    position: absolute;
    left: 14px;
    top: 14px;
  }

  .cart-note-card > div,
  .cart-summary-note {
    flex-direction: column;
    text-align: center;
  }

  .cart-note-card > div > i {
    margin: 0 auto;
  }

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

  .cart-suggested-head h2 {
    font-size: 26px;
  }

  .cart-suggested-info > div {
    flex-direction: column;
    align-items: stretch;
  }

  .suggested-add-btn {
    width: 100%;
  }
}