/* === vSpots Cart (scoped) ===================================== */
.vcart {
  color: var(--text);
  padding-bottom: var(--cta-height);
}

.vcart,
#vcart-var-modal .vcart-scope {
  --brand-primary: #e072e1;
  --brand-primary-600: #cf5ed0;
  --brand-primary-700: #b94cbc;
  --brand-dark: #1a1a1a;
  --text: #262626;
  --muted: #777;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --cta-height: 72px;
  --gap: 16px;
}

.vcart__header {
  margin: 18px 0 12px;
}

.vcart__title {
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--brand-dark);
  font-size: clamp(22px, 2.4vw, 36px);
}

/* Cards / rows */
.vcart__items {
  display: grid;
  gap: var(--gap);
}

.vcart-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  justify-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  text-align: left;
}

/*.vcart-row__variant {*/
/*  grid-template-columns: auto auto !important;*/
/*}*/

/*.vcart-row__variant .vcart-row__remove--inline-mobile {*/
/*  padding: 0;*/
/*}*/

/*.vcart-row__variant .vcart-price__now {*/
/*  display: flex;*/
/*  flex-direction: row-reverse;*/
/*  align-items: center;*/
/*  justify-content: space-between;*/
/*  padding: 0 5px;*/
/*}*/

/*.vcart-row__variant .vcart-row__thumb{*/
/*  height: 88% !important;*/
/*}*/

/* ── Variant-Layout: Bild | (Meta   |   Actions) ─────────────────────────── */
.vcart-row__variant{
  /* Ebene 1: Row = Bild links, Wrapper rechts */
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 16px !important;
}

/* Ebene 2: Wrapper teilt sich in Meta (1fr) und Actions (auto) */
.vcart-row__variant .vcart-meta__variant {
  display: grid;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  grid-template-columns: 1fr;
  row-gap: 8px;
}

/* Meta sauber ohne seitlichen Offset */
.vcart-row__variant .vcart-row__meta {
  margin-left: 0;
}

/* Preis normal laufen lassen (kein row-reverse) */
.vcart-row__variant .vcart-price__now {
  display: inline-block;
}

/* Actions-Cluster (Qty + Remove) auf einer Linie rechts */
.vcart-row__variant .vcart-row__remove--inline-mobile {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 0;
  margin-left: -4px;
  justify-content: space-between;
}



/* Kleine Korrekturen */
.vcart-row__variant .vcart-row__thumb { height: auto !important; }
.vcart-row__variant .vcart-row__qty   { justify-self: end; }
.vcart-row__variant .vcart-row__remove{ justify-self: end; }
.vcart-price__now del{ padding-right: 6px;}

/* Responsive: unter ~700px Actions unter Meta mittig */
@media (min-width: 700px) {
  .vcart--mode-fullscreen .vcart-row__variant{
    grid-template-columns: 1fr 7fr !important;
  }
  .vcart--mode-fullscreen .vcart-row__variant .vcart-meta__variant{
    grid-template-columns: 1fr auto;
  }
  .vcart--mode-fullscreen .vcart-row__variant .vcart-row__remove--inline-mobile {
    justify-content: end;
    padding: 0;
  }
}

@media (min-width: 1250px) {
  .vcart--mode-checkout .vcart-row__variant{
    grid-template-columns: 1fr 7fr !important;
  }
  .vcart--mode-checkout .vcart-row__variant .vcart-meta__variant{
    grid-template-columns: 1fr auto;
  }
  .vcart--mode-checkout .vcart-row__variant .vcart-row__remove--inline-mobile{
    justify-content: end;
    padding: 0;
  }
}


.vcart-row__image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f3f3;
}

.vcart-row__meta {
  margin-left: 4%;
  width: 100%;
}

.vcart-row__title {
  font-weight: 500;
  margin-bottom: 6px;
}

.vcart-row__price {
  color: black;
  font-weight: 700;
}

.vcart-row__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-xl);
  padding: 6px 8px;
  max-width: fit-content;
  background: #f9f9fb;
}

.vcart-btn--qty {
  background: #ffffff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 32px;
  box-shadow: var(--shadow) !important;
  cursor: pointer;
  /*box-shadow: none !important;*/
  /*border: 1px solid darkgrey !important;*/
}

.vcart-qty {
  width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
}

/* Totals block */
.vcart__totals {
  margin-top: 8px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.vcart-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--muted);
}

.vcart-total--grand {
  font-weight: 500;
  color: var(--brand-dark);
}

.vcart-total--grand strong {
  color: var(--brand-dark);
}

.vcart-total--savings strong {
  color: var(--brand-primary);
}

/* Coupon */
.vcart__coupon {
  margin-top: 8px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.vcart__coupon-row {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}

#vcart-coupon {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #e7e7ea;
  padding: 12px 14px;
}

.vcart-btn.vcart-btn--apply {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.vcart__coupon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vcart-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--brand-primary);
  border: 0 solid #e7e7ea;
  font-weight: 400;
  margin: 5px 0;
  width: 100%;
}

.vcart-chip__x {
  background: #e9e9ec;
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vcart-chip__x:hover {
  background: #e1e1e6;
}

/* Upsells */
.vcart__upsells {
  margin-top: 15px;
}

.vcart__upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.vcart-upsell-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 10px;
}

.vcart-upsell-card__img {
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: #f3f3f3;
  margin-bottom: 8px;
}

.vcart-upsell-card__title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--brand-dark) !important;
  height: 4.5rem;
  text-align: center;
  margin-top: 5px;
}

.vcart-upsell-card__subtitle {
  font-size: medium;
  font-weight: 300;
  color: var(--brand-dark) !important;
  text-align: center;
}

.vcart-upsell-card__price {
  font-weight: 800;
  color: var(--brand-primary);
  text-align: center;
}

/* Trust */
.vcart__trust {
  margin-top: 10px;
  opacity: .9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* === Sticky CTA =============================================== */
.vcart__cta-sticky {
  position: sticky;
  bottom: 0;
  z-index: 50;
  padding: 10px 0 calc(env(safe-area-inset-bottom, 0) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 20%, #fff 60%);
  backdrop-filter: blur(6px);
}

.vcart__cta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.vcart__cta-spacer {
  height: var(--cta-height);
  display: none;
}

.vcart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .15px;
  line-height: 1;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
}

.vcart-btn--checkout {
  background: var(--brand-primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 10px 18px rgba(224, 114, 225, .25);
}

.vcart-btn--checkout:hover {
  background: var(--brand-primary-600);
}

.vcart-btn--checkout:active {
  background: var(--brand-primary-700);
  transform: translateY(1px);
}

.vcart--mode-fullscreen .vcart-btn--checkout {
  width: auto;
}

.vcart-btn--secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 2px solid #eee;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 900px) {
  .vcart-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /*.vcart-row__remove{ display:none; }*/
  .vcart {
    --cta-height: 88px;
  }

  .vcart__cta {
    gap: 8px;
  }

  .vcart-btn {
    padding: 16px 18px;
  }

  .vcart-row__meta {
    margin-left: 0%;
  }

  .vcart-row__image {
    width: 900px;
    height: 150px;
  }

  .vcart__upsell-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .vcart-btn {
    transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
  }
}

@media (max-width: 760px) {
  .vcart--mode-checkout .vcart-qty {
    max-width: 45px;
  }

  .wc-block-checkout__sidebar {
    margin-bottom: 14px !important;
  }
}

@media (max-width: 640px) {
  .vcart-row__variant .vcart-price__now {
    max-width: unset;
  }
}

a.restore-item {
  color: black;
}

/*.vcart--mode-mini .vcart-row{ grid-template-columns: 1fr !important; text-align: center !important;}*/
/*!*.vcart--mode-mini .vcart-row__remove{ display:none!important; }*!*/
/*.vcart--mode-mini .vcart{ --cta-height: 88px!important; }*/
/*.vcart--mode-mini .vcart__cta{ gap: 8px!important; }*/
/*.vcart--mode-mini .vcart-btn{ padding: 16px 18px!important; }*/
/*.vcart--mode-mini .vcart-row__meta { margin-left: 0%!important;}*/

/* Section title */
.vcart__section-title {
  font-weight: 800;
  margin: 8px 0 10px;
  color: var(--brand-dark);
}

/* Already had grid base; ensure 3 cols desktop, 1 col mobile */
.vcart__upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.vcart-upsell-card__img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Mini cart variant: compact list items */
.vcart--mode-mini .vcart__upsell-list, .vcart--mode-checkout .vcart__upsell-list {
  display: grid;
  gap: 10px;
}

.vcart-upsell-mini {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vcart-upsell-mini__thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f3f3;
}

.vcart-upsell-mini__placeholder, .vcart-upsell-mini__placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f3f3f3;
}

.vcart-upsell-mini__title {
  font-weight: 700;
  color: var(--brand-dark);
  display: inline-block;
}

.vcart-upsell-mini__price {
  font-weight: 700;
}

.vcart-upsell-mini__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border-color: transparent;
  background: var(--brand-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.vcart-row__image {
  width: 1000px;
}


#vcart-var-modal .vcart-var-form label {
  display: block;
  font-weight: 700;
  margin: 8px 0 4px;
  color: var(--brand-dark);
}

#vcart-var-modal .vcart-var-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e7e7ea;
}

#vcart-var-modal .vcart-var-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

#vcart-var-modal .vcart-btn.vcart-btn--checkout {
  background: var(--brand-primary);
  color: #fff;
}

#vcart-var-modal .vcart-btn.vcart-btn--checkout:hover {
  background: var(--brand-primary-600);
}

#vcart-var-modal .vcart-btn.vcart-btn--checkout:active {
  background: var(--brand-primary-700);
  transform: translateY(1px);
}

#vcart-var-modal .vcart-btn.vcart-btn--secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 2px solid #eee;
  box-shadow: none;
}

#vcart-var-modal .vcart-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

#vcart-var-modal {
  z-index: 10000000000000;
}

/* === Cart Timer ================================================== */
.vcart__timer {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin: 8px 0 15px 0;
}

.vcart-timer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.vcart-timer__label {
  font-weight: 700;
  color: var(--brand-dark);
}

.vcart-timer__time {
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: .3px;
  min-width: 60px;
  text-align: right;
}

.vcart-timer__bar {
  position: relative;
  height: 10px;
  background: #f1f1f4;
  border-radius: 999px;
  overflow: hidden;
}

.vcart-timer__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(270deg, var(--brand-primary), #ff5a5f);
  transition: width .2s linear;
}

.vcart-timer__restart {
  margin-top: 10px;
  width: 100%;
}

.vcart-row__remove--inline-mobile {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.vcart-price__now del {
  font-weight: 500;
}

.vcart-price__now ins {
  text-decoration: none !important;
  color: var(--brand-primary) !important;
}

.vcart__trust_payment {
  padding-bottom: 8px;
}

.vcart-spinner {
  width: 1em;
  height: 1em;
  border: .15em solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -0.125em;
  animation: vcart-spin .8s linear infinite;
  margin-right: .5em;
  color: var(--brand-primary);
}

.is-loading {
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes vcart-spin {
  to {
    transform: rotate(360deg);
  }
}

.vcart--mode-checkout .vcart-row, .vcart--mode-mini .vcart-row {
  grid-template-columns: auto 1fr 70px auto;
  text-align: left;
  gap: 8px;
  padding: 6px 10px 6px 8px;
}

.vcart--mode-checkout .vcart-row__thumb, .vcart--mode-mini .vcart-row__thumb {
  width: 65px;
}

.vcart--mode-checkout .vcart-row__image, .vcart--mode-mini .vcart-row__image {
  width: 65px;
  height: 100%;
}

/*.vcart--mode-checkout .vcart-row__qty, .vcart--mode-mini .vcart-row__qty {flex-direction: column-reverse !important;}*/
.vcart--mode-checkout .vcart-qty, .vcart--mode-mini .vcart-qty {
  max-width: 45px;
}

.vcart-qty::-webkit-outer-spin-button,
.vcart-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.vcart-qty[type=number] {
  -moz-appearance: textfield;
}

.off-canvas-close{
  background-color: white !important;
  padding: 5px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08) !important;
  border-radius: 7px !important;
  color: black !important;
}
