
/* ==========================================================
   DJantjeBV PREMIUM WINKELMAND — VISUELE UPDATE
   ========================================================== */

/* Navigatie-winkelmand */
.cart-link {
  position: relative;
  min-width: 156px;
  height: 48px;
  padding: 5px 13px 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  color: #111214;
  background: rgba(255,255,255,0.96);
  border: 1px solid #dde1e5;
  text-decoration: none;
  box-shadow:
    0 7px 20px rgba(17,18,20,0.06),
    inset 0 1px 0 rgba(255,255,255,0.95);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.cart-link:hover {
  transform: translateY(-2px);
  border-color: #bfc4ca;
  background: #fff;
  box-shadow:
    0 12px 26px rgba(17,18,20,0.10),
    inset 0 1px 0 rgba(255,255,255,1);
}

.cart-icon-shell {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111214;
  color: #fff;
  box-shadow: 0 7px 16px rgba(17,18,20,0.16);
}

.cart-icon-shell svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.cart-link-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.cart-link-copy strong {
  color: #111214;
  font-size: .77rem;
  font-weight: 820;
  letter-spacing: .015em;
}

.cart-link-copy small {
  color: #858a91;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-count {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #111214;
  border: 2px solid #111214;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1;
}

.cart-count.is-empty {
  display: none;
}

/* Toast */
.cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: min(410px, calc(100% - 32px));
  padding: 15px 18px 15px 50px;
  border-radius: 18px;
  background: #111214;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 22px 54px rgba(0,0,0,.25);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.45;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.cart-toast::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111214;
  font-size: .8rem;
  font-weight: 900;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Productkaart winkelmandknoppen */
.product-price {
  margin: -2px 0 14px;
  color: #111214;
  font-size: 1.26rem;
  font-weight: 900;
  letter-spacing: -.025em;
}

.product-price small {
  margin-left: 3px;
  color: #989da4;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 0;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.product-card-actions .product-open-btn {
  width: 100%;
  margin-top: 0 !important;
}

.cart-add-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #111214;
  background: #111214;
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 780;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17,18,20,.12);
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.cart-add-btn:hover {
  transform: translateY(-2px);
  background: #27292c;
  border-color: #27292c;
  box-shadow: 0 12px 24px rgba(17,18,20,.18);
}

.modal-cart-box {
  margin-top: 28px;
  padding: 18px;
  border-radius: 19px;
  background: #f5f6f7;
  border: 1px solid #e2e5e8;
}

.modal-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.modal-cart-price {
  font-size: 1.46rem;
  font-weight: 900;
  color: #111214;
  letter-spacing: -.025em;
}

/* Winkelmand pagina */
.cart-page {
  position: relative;
  z-index: 1;
  padding: 120px 0 88px;
}

.cart-page-head {
  max-width: 740px;
  margin: 0 auto 34px;
  text-align: center;
}

.cart-page-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f2f4;
  border: 1px solid #e2e5e8;
  color: #61666d;
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.cart-page-head-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111214;
}

.cart-page-head h1 {
  margin-bottom: 13px;
  color: #111214;
  font-size: clamp(2.9rem, 6vw, 5.3rem);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 920;
}

.cart-page-head p {
  max-width: 650px;
  margin: 0 auto;
  color: #6b7077;
  line-height: 1.75;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, .58fr);
  gap: 24px;
  align-items: start;
}

.cart-panel {
  padding: 12px;
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  border: 1px solid #e1e4e8;
  box-shadow:
    0 18px 50px rgba(17,18,20,.08),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.cart-panel-top {
  padding: 17px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-panel-title {
  color: #111214;
  font-size: 1.02rem;
  font-weight: 850;
}

.cart-panel-count {
  color: #8b9097;
  font-size: .78rem;
  font-weight: 700;
}

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

.cart-item {
  --accent: #dfe2e6;
  position: relative;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 138px;
  gap: 20px;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #e5e8eb;
  border-radius: 22px;
  background: #fff;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.cart-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
}

.cart-item:hover {
  transform: translateY(-2px);
  border-color: #d1d6db;
  box-shadow: 0 12px 28px rgba(17,18,20,.07);
}

.cart-item-image-wrap {
  position: relative;
  width: 138px;
  height: 138px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #fff 0%, #f5f6f7 57%, #eceff1 100%);
  border: 1px solid #e5e8eb;
}

.cart-item-image-wrap::after {
  content: "";
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  pointer-events: none;
}

.cart-item-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(17,18,20,.12));
}

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

.cart-item-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #696e75;
  background: #f4f5f6;
  border: 1px solid #e5e7ea;
  font-size: .63rem;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cart-item-name {
  margin-bottom: 6px;
  color: #111214;
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.02em;
}

.cart-item-unit {
  margin-bottom: 15px;
  color: #8b9097;
  font-size: .82rem;
  line-height: 1.4;
}

.cart-quantity-label {
  display: block;
  margin-bottom: 7px;
  color: #747980;
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qty-control {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9dde1;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.qty-control button {
  width: 39px;
  height: 39px;
  border: 0;
  background: transparent;
  color: #111214;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .15s ease;
}

.qty-control button:hover {
  background: #f0f2f4;
}

.qty-control span {
  min-width: 38px;
  text-align: center;
  color: #111214;
  font-size: .88rem;
  font-weight: 900;
}

.cart-item-side {
  min-width: 0;
  text-align: right;
}

.cart-item-side-label {
  margin-bottom: 5px;
  color: #959aa1;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cart-item-total {
  margin-bottom: 15px;
  color: #111214;
  font-size: 1.28rem;
  font-weight: 920;
  letter-spacing: -.025em;
}

.cart-remove {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #8c5757;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: 740;
}

.cart-remove:hover {
  color: #6f3232;
  text-decoration: underline;
}

.cart-actions-bottom {
  margin: 12px 4px 4px;
  padding: 15px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #eceef0;
}

.continue-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  color: #111214;
  border: 1px solid #d8dce0;
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.clear-cart-btn {
  border: 0;
  background: transparent;
  color: #8c5757;
  font: inherit;
  font-size: .75rem;
  font-weight: 730;
  cursor: pointer;
}

/* Donkere checkout samenvatting in de stijl van de site */
.cart-summary {
  position: sticky;
  top: 96px;
  padding: 26px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.10), transparent 27%),
    linear-gradient(145deg, #17191c 0%, #0b0c0e 100%);
  border: 1px solid #111214;
  box-shadow: 0 22px 52px rgba(17,18,20,.17);
}

.cart-summary::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -128px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 28px rgba(255,255,255,.023),
    0 0 0 56px rgba(255,255,255,.013);
  pointer-events: none;
}

.summary-title {
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.48rem;
  font-weight: 880;
  letter-spacing: -.025em;
}

.summary-subtitle {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  line-height: 1.55;
}

.summary-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: rgba(255,255,255,.62);
  font-size: .91rem;
}

.summary-row strong {
  color: #fff;
  font-weight: 800;
}

.summary-total {
  margin-top: 9px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 860;
}

.summary-total strong {
  font-size: 1.32rem;
  font-weight: 920;
}

.shipping-progress {
  position: relative;
  z-index: 2;
  margin: 22px 0 10px;
  padding: 15px;
  border-radius: 17px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.10);
}

.shipping-progress p {
  margin-bottom: 10px;
  color: rgba(255,255,255,.70);
  font-size: .79rem;
  line-height: 1.5;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
  transition: width .25s ease;
}

.checkout-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #111214;
  font: inherit;
  font-size: .81rem;
  font-weight: 830;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 11px 24px rgba(0,0,0,.16);
}

.checkout-btn:hover:not(:disabled) {
  background: #f2f3f4;
}

.checkout-btn:disabled {
  opacity: .43;
  cursor: not-allowed;
}

.checkout-trust {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.checkout-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.58);
  font-size: .73rem;
}

.checkout-trust-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .7rem;
}

.checkout-note {
  position: relative;
  z-index: 2;
  margin-top: 15px;
  color: rgba(255,255,255,.38);
  font-size: .69rem;
  line-height: 1.55;
}

.cart-empty {
  padding: 68px 26px;
  text-align: center;
  border: 1px dashed #cfd4da;
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 10%, #fff 0%, #f9fafb 52%, #f3f4f6 100%);
}

.cart-empty-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111214;
  color: #fff;
  box-shadow: 0 13px 26px rgba(17,18,20,.15);
}

.cart-empty-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
}

.cart-empty h2 {
  margin-bottom: 9px;
  color: #111214;
  font-size: 1.65rem;
  font-weight: 880;
}

.cart-empty p {
  max-width: 500px;
  margin: 0 auto 22px;
  color: #6d7279;
  line-height: 1.7;
}

.cart-empty a {
  min-height: 49px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #111214;
  color: #fff;
  border: 1px solid #111214;
  font-size: .79rem;
  font-weight: 790;
  letter-spacing: .04em;
  text-transform: uppercase;
}

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

  .cart-summary {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .cart-link {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 4px;
  }

  .cart-icon-shell {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .cart-link-copy {
    display: none;
  }

  .product-card-actions {
    grid-template-columns: 1fr;
  }

  .cart-page {
    padding-top: 92px;
  }

  .cart-page-head {
    margin-bottom: 24px;
  }

  .cart-panel {
    padding: 9px;
    border-radius: 24px;
  }

  .cart-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 15px;
    padding: 13px;
  }

  .cart-item-image-wrap {
    width: 112px;
    height: 112px;
  }

  .cart-item-side {
    grid-column: 1 / -1;
    padding: 11px 4px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid #eceef0;
  }

  .cart-item-side-label {
    display: none;
  }

  .cart-item-total {
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .cart-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .cart-item-image-wrap {
    width: 92px;
    height: 92px;
    border-radius: 15px;
  }

  .cart-item-name {
    font-size: 1.06rem;
  }

  .cart-actions-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .continue-btn {
    width: 100%;
  }

  .clear-cart-btn {
    padding: 10px;
  }

  .cart-summary {
    padding: 22px 18px;
    border-radius: 23px;
  }
}


/* Centrale voorraadstatus */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 17px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f5f4;
  border: 1px solid #dfe5e1;
  color: #4e5d54;
  font-size: .72rem;
  font-weight: 780;
}
.stock-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4f8b62;
}
.stock-status.low {
  background: #fff7e8;
  border-color: #eedab1;
  color: #876424;
}
.stock-status.low::before { background: #c99025; }
.stock-status.out {
  background: #f7eeee;
  border-color: #ead2d2;
  color: #8b4d4d;
}
.stock-status.out::before { background: #a74d4d; }
.cart-add-btn:disabled,
.product-open-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.admin-link {
  color: inherit;
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s ease;
}
.admin-link:hover { opacity: 1; }
