/* ============================================================
   AVS CART-PAGINA (avs/default) — jouw ontwerp
   Toegevoegd aan de avs skin. Gebruikt bestaande --vars uit styles.css
   ============================================================ */

/* Layout */
.cartpage__title{font-size:clamp(24px,4vw,32px);font-weight:700;margin:6px 0 20px}
.cartpage{display:grid;grid-template-columns:1fr;gap:22px;align-items:start;padding-bottom:20px}
@media (min-width:960px){ .cartpage{grid-template-columns:1fr 360px;gap:30px} }
.cartpage__main{min-width:0}
.cartpage__items{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 20px}
.cartpage__actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:16px}
.cartpage__cont{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--navy)}
.cartpage__cont svg{width:18px;height:18px}
.cartpage__cont:hover{color:var(--blue)}
.cartpage__form-btns{display:flex;gap:10px;flex-wrap:wrap}
.cartpage__update,.cartpage__empty{font-size:13px;font-weight:600;padding:9px 16px;border-radius:9px;border:1.5px solid var(--line2);background:#fff;color:var(--slate);cursor:pointer;transition:.15s}
.cartpage__update:hover{border-color:var(--navy);color:var(--navy)}
.cartpage__empty:hover{border-color:var(--red);color:var(--red)}

/* Cart line (item) */
.cline{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}
.cline:last-child{border-bottom:0}
.cline__img{width:82px;height:82px;border-radius:11px;flex-shrink:0;background:#f6f9fc;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);overflow:hidden}
.cline__main{flex:1;min-width:0}
.cline__top{display:flex;justify-content:space-between;gap:8px}
.cline__brand{font-size:11px;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.04em}
.cline__name{font-size:14px;font-weight:600;color:var(--ink);line-height:1.3;margin-top:2px}
.cline__name a{color:inherit}
.cline__name a:hover{color:var(--navy)}
.cline__del{background:0;border:0;color:var(--faint);width:30px;height:30px;flex-shrink:0;border-radius:7px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s}
.cline__del svg{width:17px;height:17px}
.cline__del:hover{background:#fdeaea;color:var(--red)}
.cline__art{font-size:11px;color:var(--faint);font-family:var(--mono);margin:6px 0 10px}
.cline__opts{font-size:12px;color:var(--slate);margin:4px 0 8px}
.cline__opts dt{font-weight:600;display:inline}
.cline__opts dd{display:inline;margin:0 8px 0 3px}
.cline__msg{font-size:12px;color:var(--amber);margin:4px 0}
.cline__msg--error{color:var(--red)}
.cline__bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.cline__price{font-size:16px;font-weight:700;color:var(--navy);display:flex;flex-direction:column;align-items:flex-end;line-height:1.15}
.cline__price s{font-size:12px;color:var(--faint);font-weight:500}

/* Stepper (qty) */
.stepper{display:flex;align-items:center;border:1.5px solid var(--line2);border-radius:9px;overflow:hidden}
.stepper button{width:34px;height:34px;border:0;background:#fff;color:var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s;padding:0}
.stepper button svg{width:15px;height:15px}
.stepper button:hover{background:#f4f8ff}
.stepper__input{width:44px;height:34px;text-align:center;border:0;border-left:1.5px solid var(--line2);border-right:1.5px solid var(--line2);font-weight:700;font-size:14px;color:var(--ink);background:#fff;-moz-appearance:textfield}
.stepper__input::-webkit-outer-spin-button,.stepper__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* Summary (rechterkolom) */
@media (min-width:960px){ .cartpage__side{position:sticky;top:16px} }
.summary{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}
.summary__h{font-size:17px;font-weight:700;margin-bottom:16px}
/* Magento totals-tabel in summary-stijl gieten */
.summary__totals table{width:100%;border-collapse:collapse;font-size:14px}
.summary__totals tr{color:var(--slate)}
.summary__totals td{padding:5px 0}
.summary__totals td.a-right,.summary__totals td:last-child{text-align:right;font-weight:600;color:var(--ink)}
.summary__totals tr.grand_total{border-top:1px solid var(--line)}
.summary__totals tr.grand_total td{padding-top:12px;font-size:16px}
.summary__totals tr.grand_total .price{font-size:22px;font-weight:700;color:var(--navy)}
.summary__totals .price{white-space:nowrap}
/* Naar de kassa */
.summary__checkout{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:16px;padding:15px 20px;background:var(--navy);color:#fff;border-radius:11px;font-size:15px;font-weight:700;transition:.15s}
.summary__checkout:hover{background:#00337a;color:#fff}
.summary__checkout svg{width:19px;height:19px}
/* Coupon-blok (incl spaarpunten) */
.summary__coupon{margin-top:14px}
/* Betaalmethoden */
.summary__pay{margin:16px 0 4px;padding-top:14px;border-top:1px solid var(--line)}
.summary__pay>span{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:9px}
.summary__pay-methods{display:flex;flex-wrap:wrap;gap:6px}
.summary__pay-methods em{font-style:normal;background:#f1f5fb;color:var(--navy);border:1px solid var(--line);border-radius:6px;padding:4px 9px;font-size:11.5px;font-weight:700}
/* USP's */
.summary__usps{list-style:none;padding:14px 0 0;margin:14px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.summary__usps li{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--slate);font-weight:500}
.summary__usps svg{flex-shrink:0;color:var(--green)}

/* Cross-sell */
.cross{padding:26px 0 44px}
.cross__h{font-size:clamp(20px,3vw,24px);font-weight:700;margin-bottom:16px}

/* Mobiel */
@media (max-width:600px){
  .cline__img{width:66px;height:66px}
  .cartpage__items{padding:2px 14px}
}

/* ---- Cart-pagina wrapper-breedte (oude Magento-structuur -> volle breedte) ---- */
body.checkout-cart-index .wrapper,
body.checkout-cart-index .page,
body.checkout-cart-index .main-container,
body.checkout-cart-index .main,
body.checkout-cart-index .col-main,
body.checkout-cart-index .col1-layout .col-main{
  width:auto;
  max-width:none;
  float:none;
  display:block;
}
/* .cartpage in avs .wrap-breedte centreren */
body.checkout-cart-index .main{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 16px;
}

/* ---- Grid definitief: items links (kol 1), summary rechts (kol 2) ---- */
@media (min-width:960px){
  .cartpage{display:grid !important;grid-template-columns:minmax(0,1fr) 360px !important;gap:30px !important}
  .cartpage__main{grid-column:1 !important;order:0 !important;min-width:0}
  .cartpage__side{grid-column:2 !important;order:1 !important}
}
/* rewardpoints "Earning Rules"-balk boven de cart verbergen (hoort in PDP/account, niet cart) */
body.checkout-cart-index .main > .rewardpointsrule-info,
body.checkout-cart-index .earning-rules,
body.checkout-cart-index #earning_rules_block{display:none}

/* ==== CART FINISH (Earning Rules-balk, totals .csum-stijl, coupon) ==== */
body.checkout-cart-index .rewardpointsrule-cart-info,
body.checkout-cart-index .rewardpoints-cart-info,
body.checkout-cart-index .earning-rules,
body.checkout-cart-index .rewardpointsrule-info,
body.checkout-cart-index #rewardpoints_earning_rules { display:none !important; }

.summary__totals .data-table,
.summary__totals table { width:100%; border-collapse:collapse; }
.summary__totals tbody tr,
.summary__totals tfoot tr { display:flex; align-items:center; justify-content:space-between; font-size:14px; color:var(--slate); padding:5px 0; }
.summary__totals th,
.summary__totals td { padding:0; border:0; text-align:left; }
.summary__totals td.a-right,
.summary__totals .price { text-align:right; font-weight:600; color:var(--ink); white-space:nowrap; }
.summary__totals tr.grand_total { border-top:1px solid var(--line); margin-top:8px; padding-top:12px; font-size:15px; }
.summary__totals tr.grand_total strong,
.summary__totals tr.grand_total .price { font-weight:700; }
.summary__totals tr.grand_total .price { font-size:22px; color:var(--navy); }

.summary__coupon { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.summary__coupon .discount h2,
.summary__coupon .discount h3,
.summary__coupon label { font-size:13px; font-weight:700; color:var(--ink); margin:0 0 8px; display:block; font-family:var(--sans); }
.summary__coupon input.input-text, .summary__coupon #coupon_code, .summary__coupon input[type="text"] { width:100%; height:44px; padding:0 13px; border:1.5px solid var(--line2); border-radius:9px; font-size:14px; font-family:var(--sans); box-sizing:border-box; margin-bottom:8px; background:#fff; }
.summary__coupon input.input-text:focus, .summary__coupon #coupon_code:focus, .summary__coupon input[type="text"]:focus { outline:none; border-color:var(--navy); }
.summary__coupon button { padding:10px 18px; background:#f1f5fb; color:var(--navy); border:1px solid var(--line2); border-radius:9px; font-size:13px; font-weight:700; cursor:pointer; transition:.15s; }
.summary__coupon button:hover { background:var(--navy); color:#fff; border-color:var(--navy); }

/* ==== SPAARPUNTEN-KAARTJE op cart — v3 (in- en uitgeklapt netjes) ==== */
body.checkout-cart-index .rule-info{
  display:flex;align-items:flex-start;gap:13px;
  background:linear-gradient(135deg,#f4f8ff,#eef4fd);
  border:1px solid #dbe6f7;border-radius:12px;
  padding:14px 16px;margin:0 0 20px;box-shadow:none;overflow:visible;
}
body.checkout-cart-index .rule-info::before{
  content:"";flex-shrink:0;width:38px;height:38px;border-radius:10px;margin-top:1px;
  background:var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E") center/20px no-repeat;
}
body.checkout-cart-index .rule-title{display:none}
body.checkout-cart-index .shopping-cart-info{padding:0;flex:1;min-width:0}
body.checkout-cart-index .shopping-cart-info::before{
  content:"Je spaart punten met deze bestelling";
  display:block;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:var(--blue);margin-bottom:5px;
}
body.checkout-cart-index .rule-description,
body.checkout-cart-index .rule-description ul,
body.checkout-cart-index .rule-used{list-style:none;margin:0;padding:0;display:block}
body.checkout-cart-index .rule-description li{display:block;margin:0}
body.checkout-cart-index .rule-description img{display:none}
body.checkout-cart-index .rule-link-title{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
body.checkout-cart-index .rule-name{color:var(--navy);font-weight:700;font-size:14px;white-space:normal}
body.checkout-cart-index .rule-link-title:hover .rule-name{color:var(--blue)}
body.checkout-cart-index [id^="cart-rule-"]{margin-top:6px !important;font-size:12.5px;color:var(--slate);line-height:1.5}
body.checkout-cart-index [id^="cart-rule-"] p{margin:0}
body.checkout-cart-index [id^="cart-rule-"] a{color:var(--navy);font-weight:600;text-decoration:underline}
body.checkout-cart-index [id^="cart-rule-"] a:hover{color:var(--blue)}

/* groen status-vinkje in spaarpunten-kaartje verbergen (cadeau-icoon volstaat) */
body.checkout-cart-index .rule-info .rule-status,
body.checkout-cart-index .rule-info .icon-status,
body.checkout-cart-index .rule-info .rule-used > .icon,
body.checkout-cart-index .rule-info span[class*="status"],
body.checkout-cart-index .rule-info span[style*="images"],
body.checkout-cart-index .rule-info i[class*="check"],
body.checkout-cart-index .rule-link-title > span:not(.rule-name){display:none !important}

/* groen vinkje = background-image op .rule-used / .rule-name -> weg (cadeau-icoon volstaat) */
body.checkout-cart-index .rule-info .rule-used{background-image:none !important;padding-left:0 !important}
body.checkout-cart-index .rule-info .rule-name{background-image:none !important;padding-left:0 !important}
/* losse img (images_1.png) binnen rule-info verbergen */
body.checkout-cart-index .rule-info img{display:none !important}

/* Stepper auto-submit: feedback tijdens bijwerken */
.cartpage__form.is-updating .cline { opacity: .55; transition: opacity .2s ease; }
.cartpage__form.is-updating .stepper__input { pointer-events: none; }
.stepper__minus:disabled, .stepper__plus:disabled { opacity: .4; cursor: default; }

/* Crosssell: "Ook interessant voor jou" */
.xsell { grid-column: 1 / -1; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.xsell__title { font: 600 18px/1.3 var(--sans); color: var(--ink); margin: 0 0 16px; }
.xsell__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.xsell__card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.xsell__img { display: block; text-align: center; margin-bottom: 10px; }
.xsell__img img { max-width: 100%; height: auto; }
.xsell__name { font: 500 14px/1.35 var(--sans); color: var(--ink); text-decoration: none; margin-bottom: 8px; min-height: 38px; }
.xsell__name:hover { color: var(--navy); text-decoration: underline; }
.xsell__price { font: 600 15px/1 var(--sans); color: var(--ink); margin-bottom: 12px; }
.xsell__price .old-price { font-weight: 400; color: var(--slate); text-decoration: line-through; margin-right: 6px; }
.xsell__add { margin-top: auto; font: 600 13px/1 var(--sans); color: #fff; background: var(--navy); border: 0; border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.xsell__add:hover { filter: brightness(1.15); }
.xsell__add:disabled { opacity: .5; cursor: default; }
@media (max-width: 960px) {
    .xsell__grid { grid-template-columns: repeat(2, 1fr); }
}

/* AVS mobiel compact */
.cartpage__form-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cartpage__form-btns button { flex: 1 1 auto; white-space: nowrap; }

@media (max-width: 960px) {
    /* compactere productregels */
    .cline { padding: 12px 10px; gap: 10px; }
    .cline__img, .cline img { max-width: 64px; height: auto; }
    .cline__bottom { margin-top: 8px; }
    .cline .stepper { transform: scale(.92); transform-origin: left center; }
}

/* Lege winkelwagen */
.cartempty { grid-column: 1 / -1; text-align: center; padding: 64px 20px 80px; }
.cartempty svg { width: 56px; height: 56px; color: var(--slate); margin-bottom: 18px; }
.cartempty__title { font: 700 24px/1.2 var(--sans); color: var(--ink); margin: 0 0 8px; }
.cartempty__txt { font: 400 15px/1.5 var(--sans); color: var(--slate); margin: 0 0 24px; }
.cartempty__btn { display: inline-flex; align-items: center; padding: 14px 28px; background: var(--navy); color: #fff; border-radius: 11px; font: 700 15px/1 var(--sans); text-decoration: none; transition: .15s; }
.cartempty__btn:hover { filter: brightness(1.15); }

/* AVS alert styling (meldingen renderen als .alert .alert-danger/-success/-warning) */
body.checkout-cart-index .alert { grid-column: 1 / -1; padding: 13px 16px; border-radius: 10px; font: 500 14px/1.4 var(--sans); margin: 0 0 4px; }
body.checkout-cart-index .alert-danger { background: #fdf0f0; color: #a02020; border: 1px solid #f0c8c8; }
body.checkout-cart-index .alert-success { background: #eef8f0; color: #1a7a3a; border: 1px solid #c4e6cd; }
body.checkout-cart-index .alert-warning,
body.checkout-cart-index .alert-info { background: #fdf7ec; color: #9a6b12; border: 1px solid #f0dcb4; }
