/* —— Cart page —— */

.site-main:has(.vgt-cart) {
  width: 100%;
  max-width: none;
  margin: 0;
}

.vgt-cart {
  position: relative;
  z-index: 2;
  margin-top: -2.25rem;
  padding: 0 0 3.75rem;
  font-family: var(--vgt-font-sans, "Figtree", system-ui, sans-serif);
  color: #141210;
  background: #fff;
}

.vgt-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 20.5rem);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

/* List card */
.vgt-cart__list {
  border: 1px solid var(--vgt-border, #e5e0d6);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.vgt-cart__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--vgt-border, #e5e0d6);
  background: #fcfbf9;
}

.vgt-cart__check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #2a2622;
  cursor: pointer;
  user-select: none;
}

.vgt-cart__check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #b8923f;
  cursor: pointer;
}

.vgt-cart__remove-selected {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a8378;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0.25rem;
}

.vgt-cart__remove-selected:hover {
  color: var(--vgt-danger, #b42318);
}

.vgt-cart__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vgt-cart__item {
  display: grid;
  grid-template-columns: auto 5.5rem minmax(0, 1.4fr) minmax(5.5rem, 0.7fr) auto minmax(5.5rem, 0.65fr) auto;
  gap: 0.75rem 0.85rem;
  align-items: center;
  padding: 1.1rem;
  border-bottom: 1px solid var(--vgt-border, #e5e0d6);
}

.vgt-cart__item:last-child {
  border-bottom: 0;
}

.vgt-cart__thumb {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 12px;
  background: #0b0b0b;
  overflow: hidden;
  text-decoration: none;
}

.vgt-cart__thumb img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}

.vgt-cart__meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.vgt-cart__name {
  color: #141210;
  font-size: 0.98rem;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.3;
}

.vgt-cart__name:hover {
  color: #9a7b2f;
}

.vgt-cart__meta small {
  color: #8a8378;
  font-size: 0.8rem;
}

.vgt-cart__stock {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e8f8ef;
  color: #027a48;
  font-size: 0.72rem;
  font-weight: 750;
}

.vgt-cart__unit {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.vgt-cart__unit strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.vgt-cart__unit small {
  color: #8a8378;
  font-size: 0.76rem;
}

.vgt-cart__qty {
  display: inline-grid;
  grid-template-columns: 2rem 2.6rem 2rem;
  align-items: stretch;
  border: 1px solid var(--vgt-border, #e5e0d6);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.vgt-cart__qty button,
.vgt-cart__qty input {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: center;
  color: #141210;
}

.vgt-cart__qty button {
  cursor: pointer;
  color: #6b6560;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.45rem 0;
}

.vgt-cart__qty button:hover {
  background: #f7f4ef;
  color: #141210;
}

.vgt-cart__qty input {
  width: 100%;
  border-left: 1px solid var(--vgt-border, #e5e0d6);
  border-right: 1px solid var(--vgt-border, #e5e0d6);
  padding: 0.45rem 0.15rem;
  font-weight: 700;
  -moz-appearance: textfield;
}

.vgt-cart__qty input::-webkit-outer-spin-button,
.vgt-cart__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vgt-cart__line {
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.vgt-cart__trash {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b0a89c;
  cursor: pointer;
  padding: 0.35rem;
  display: grid;
  place-items: center;
}

.vgt-cart__trash:hover {
  color: var(--vgt-danger, #b42318);
}

.vgt-cart__empty {
  margin: 0;
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #6b6560;
}

.vgt-cart__empty a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Summary */
.vgt-cart__summary {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--vgt-border, #e5e0d6);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 18, 16, 0.04);
}

.vgt-cart__summary h2 {
  margin: 0 0 1rem;
  font-family: var(--vgt-font, "Playfair Display", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.vgt-cart__totals {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.vgt-cart__totals > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.vgt-cart__totals dt {
  margin: 0;
  color: #6b6560;
  font-size: 0.9rem;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.vgt-cart__totals dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  text-align: right;
}

.vgt-cart__totals dd.is-muted {
  color: #8a8378;
  font-weight: 550;
  font-size: 0.86rem;
}

.vgt-cart__totals .is-total {
  margin-top: 0.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--vgt-border, #e5e0d6);
  align-items: center;
}

.vgt-cart__totals .is-total dt {
  color: #141210;
  font-size: 1rem;
  font-weight: 800;
}

.vgt-cart__totals .is-total dd {
  font-size: 1.25rem;
  font-weight: 850;
  color: #141210;
}

.vgt-cart__info {
  display: inline-grid;
  place-items: center;
  color: #b0a89c;
}

.vgt-cart__checkout {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 3rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #d4b56a 0%, #9a7b2f 100%);
  color: #fff;
  font-weight: 750;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(154, 123, 47, 0.22);
}

.vgt-cart__checkout:hover {
  filter: brightness(1.03);
  color: #fff;
}

.vgt-cart__continue {
  display: block;
  margin: 0.85rem 0 1.1rem;
  text-align: center;
  color: #6b6560;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.vgt-cart__continue:hover {
  color: #9a7b2f;
}

.vgt-cart__secure {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: #f7f1e4;
  color: #5c4d2e;
}

.vgt-cart__secure > span {
  color: #9a7b2f;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.vgt-cart__secure strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #3f3420;
}

.vgt-cart__secure p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6b5c3c;
}

/* Trust */
.vgt-cart__trust {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.15rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--vgt-border, #e5e0d6);
  border-radius: 16px;
  background: #fcfbf9;
}

.vgt-cart__trust li {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  min-width: 0;
}

.vgt-cart__trust-icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3ebda;
  color: #9a7b2f;
}

.vgt-cart__trust strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.vgt-cart__trust small {
  display: block;
  margin-top: 0.2rem;
  color: #6b6560;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Suggestions */
.vgt-cart__suggest {
  margin-top: 2.5rem;
}

.vgt-cart__suggest-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.vgt-cart__suggest-head h2 {
  margin: 0;
  font-family: var(--vgt-font, "Playfair Display", Georgia, serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 650;
}

.vgt-cart__suggest-head a {
  color: #b8923f;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.vgt-cart__suggest-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.vgt-cart__card {
  position: relative;
  border: 1px solid var(--vgt-border, #e5e0d6);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  background: #fff;
}

.vgt-cart__wish {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: #b0a89c;
  cursor: pointer;
  padding: 0;
}

.vgt-cart__wish.is-on,
.vgt-cart__wish:hover {
  color: #c4a35a;
}

.vgt-cart__card-media {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #0b0b0b;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}

.vgt-cart__card-media img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.vgt-cart__card-name {
  color: #141210;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.3;
}

.vgt-cart__card small {
  color: #8a8378;
  font-size: 0.74rem;
}

.vgt-cart__card strong {
  font-size: 0.92rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.vgt-cart__card em {
  font-style: normal;
  color: #8a8378;
  font-size: 0.74rem;
}

.vgt-cart__card-btn {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #d4b56a 0%, #9a7b2f 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.vgt-cart__card-btn:hover {
  color: #fff;
  filter: brightness(1.03);
}

/* FAQ */
.vgt-cart__faq {
  margin-top: 2.75rem;
}

.vgt-cart__faq-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.vgt-cart__faq-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--vgt-font, "Playfair Display", Georgia, serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.vgt-cart__faq-head p {
  margin: 0;
  color: #8a8378;
  font-size: 0.92rem;
}

.vgt-cart__faq-head a {
  color: #b8923f;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.vgt-cart__faq-head a:hover {
  color: #8f6f28;
}

.vgt-cart__faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}

.vgt-cart__faq-item {
  border: 1px solid var(--vgt-border, #e5e0d6);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.vgt-cart__faq-q {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  text-align: left;
  color: #141210;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.vgt-cart__faq-icon {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  color: #c4a35a;
  transition: transform 0.3s ease;
}

.vgt-cart__faq-item.is-open .vgt-cart__faq-icon {
  transform: rotate(45deg);
}

.vgt-cart__faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vgt-cart__faq-item.is-open .vgt-cart__faq-a {
  grid-template-rows: 1fr;
}

.vgt-cart__faq-a-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vgt-cart__faq-item.is-open .vgt-cart__faq-a-inner {
  opacity: 1;
  transform: none;
}

.vgt-cart__faq-a p {
  margin: 0 1.05rem 1rem;
  padding-top: 0.85rem;
  color: #6b6560;
  font-size: 0.9rem;
  line-height: 1.55;
  border-top: 1px solid rgba(229, 224, 214, 0.9);
}

/* Responsive */
@media (max-width: 1100px) {
  .vgt-cart__suggest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vgt-cart__item {
    grid-template-columns: auto 4.75rem minmax(0, 1fr) auto;
    grid-template-areas:
      "check thumb meta trash"
      "check thumb unit unit"
      "check thumb qty line";
  }

  .vgt-cart__item > .vgt-cart__check { grid-area: check; align-self: start; }
  .vgt-cart__thumb { grid-area: thumb; width: 4.75rem; height: 4.75rem; }
  .vgt-cart__meta { grid-area: meta; }
  .vgt-cart__unit { grid-area: unit; }
  .vgt-cart__qty { grid-area: qty; justify-self: start; }
  .vgt-cart__line { grid-area: line; }
  .vgt-cart__trash { grid-area: trash; align-self: start; }
}

@media (max-width: 900px) {
  .vgt-cart {
    margin-top: -1.5rem;
  }

  .vgt-cart__layout {
    grid-template-columns: 1fr;
  }

  .vgt-cart__summary {
    position: static;
  }

  .vgt-cart__trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vgt-cart__faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vgt-cart {
    margin-top: -1rem;
  }

  .vgt-cart__list-head {
    flex-wrap: wrap;
  }

  .vgt-cart__item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "check meta trash"
      "thumb thumb thumb"
      "unit unit unit"
      "qty line line";
    gap: 0.65rem;
  }

  .vgt-cart__thumb {
    width: 100%;
    height: 10rem;
    justify-self: stretch;
  }

  .vgt-cart__suggest-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .vgt-cart__card {
    flex: 0 0 11.5rem;
    scroll-snap-align: start;
  }

  .vgt-cart__trust {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vgt-cart__faq-icon,
  .vgt-cart__faq-a,
  .vgt-cart__faq-a-inner {
    transition: none;
  }
}
