/* TWD Cart 2x2 – theme version (UTF-8) */
.twdc{
  --bg:#F3EFEA;
  --ink:#353132;
  --muted:#6E6053;
  --line:#E6E0D9;
  --blue:#A9C2E0;
  --accent:#DB362A;
  --chip-bg:#E9EDF3;
  --gap:48px;
  background:var(--bg);
  color:var(--ink);
  font-family:'Outfit',system-ui,sans-serif;
}
.twdc__container{
  max-width:1400px;
  margin:0 auto;
  padding:0 16px 40px;
}

/* Dividers */
.twdc__gridwrap{ position:relative; }
.twdc__gridwrap::before{
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  left:calc(65% - .5px);
  top:0;
  bottom:0;
  width:1px;
  background:var(--blue);
}
.twdc__gridwrap::after{ display:none !important; }

/* Grid */
.twdc__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:65% 35%;
}
.twdc__cell{
  background:transparent;
  border:0;
  padding:12px 12px 4px;
}

/* Horizontal line via actual borders on top row */
.twdc__items{
  padding-right:24px;
  border-bottom:1px solid var(--blue);
  padding-bottom:24px;
  margin-bottom:12px;
}
.twdc__summary{
  padding-left:40px;
  display:flex;
  flex-direction:column;
  border-bottom:1px solid var(--blue);
  padding-bottom:24px;
  margin-bottom:12px;
}

/* Bottom row */
.twdc__related{ padding-right:24px; }
.twdc__blank{ padding-left:40px; }

/* Titles */
.twdc__title{
  font-family:'Righteous',cursive;
  font-weight:400;
  font-size:22px;
  color:#353132;
  margin:0 0 12px;
}
.twdc__title--resume{ font-size:22px; margin-bottom:14px; }
.twdc__title--reco{ margin-bottom:16px; }

/* List */
.twdc__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.twdc__row{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  column-gap:18px;
  align-items:start;
}
.twdc__thumb{
  width:96px;
  height:96px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
}
.twdc__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.twdc__stack{
  display:grid;
  grid-template-rows:auto auto auto;
  row-gap:6px;
}

/* title + price inline */
.twdc__top{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.twdc__name{
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:16px;
  line-height:1.15;
  color:#353132;
  margin:0;
}
.twdc__name a{
  color:inherit;
  text-decoration:none;
}
.twdc__price{
  font-size:14px;
  color:#353132;
  white-space:nowrap;
  margin-top:1px;
}

/* attributes */
.twdc__attrs{
  font-size:14px;
  font-weight:500;
  color:#353132;
  opacity:.8;
  margin:0;
}
.twdc__attrs p{ margin:0; }

/* qty chip + trash */
.twdc__bot{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.twdc__qtyinput{ display:none !important; }
.twdc__chip{
  display:grid;
  grid-template-columns:46px 1fr 46px;
  align-items:center;
  height:44px;
  width:180px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--chip-bg);
}
.twdc__minus,
.twdc__plus{
  all:unset;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:18px;
  color:#6E6053;
}
.twdc__qval{
  font-size:15px;
  color:#353132;
  text-align:center;
}
.twdc__trash{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid #353132;
  border-radius:50%;
  background:transparent;
  transition:background .15s ease, border-color .15s ease;
}
.twdc__trash:hover{
  background:#fff;
  border-color:var(--line);
  color:#6E6053;
}

/* Summary */
.twdc__mini{
  list-style:none;
  margin:0 0 8px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.twdc__minirow{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:8px;
}
.twdc__mininame{
  font-family:'Outfit',sans-serif;
  font-weight:500;
  font-size:14px;
  color:#353132;
}
.twdc__minimeta{
  margin-top:6px;
  font-family:'Outfit',sans-serif;
  font-weight:500;
  font-size:14px;
  color:#353132;
  opacity:.5;
}
.twdc__miniprice{
  font-family:'Outfit',sans-serif;
  font-weight:400;
  font-size:14px;
  color:#353132;
}

.twdc__pair{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:8px 0 0;
  font-family:'Outfit',sans-serif;
  font-size:14px;
  color:#353132;
}
.twdc__pair span:first-child{
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.twdc__innerline{
  height:1px;
  background:#A9C2E0;
  margin:16px 0 18px;
}

.twdc__total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 0 14px;
}
.twdc__total span:first-child{
  font-weight:600;
  font-size:14px;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#353132;
}
.twdc__totalamt{
  color:#DB362A;
  font-weight:700;
}

/* CTA */
.twdc__btn{
  display:inline-block;
  border-radius:22px;
  height:40px;
  line-height:40px;
  padding:0 22px;
  font-size:14px;
  text-decoration:none;
}
.twdc__btn--cta{
  background:#A9C2E0;
  color:#DB362A;
  border:0;
  font-weight:600;
  margin-left:auto;
}

/* Related */
.twdc__reco{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.twdc__recoCard{ display:block; }
.twdc__recoImg{
  width:100%;
  aspect-ratio:4/3;
  border-radius:6px;
  overflow:hidden;
  background:#f3f3f3;
}
.twdc__recoImg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Coupon Section */
.twdc__coupon{
  margin:14px 0 18px;
  padding:14px;
  border:1px solid #e7e2da;
  border-radius:18px;
  background:#F9F6F3;
}
.twdc__couponlabel{
  display:block;
  font-weight:600;
  margin:0 0 8px;
  font-family:'Outfit',sans-serif;
  color:#353132;
}
.twdc__couponrow{
  display:flex;
  gap:8px;
  align-items:center;
}
.twdc__couponrow input[type="text"]{
  flex:1;
  min-height:42px;
  border-radius:22px;
  border:1px solid #A9C2E0;
  padding:10px 14px;
  background:#fff;
  font-family:'Outfit',sans-serif;
}
.twdc__couponrow button{
  min-height:42px;
  border-radius:999px;
  background:#284527;
  color:#fff;
  border:0;
  padding:0 18px;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease;
}
.twdc__couponrow button:hover{
  background:#234225;
}

/* Discounts + applied coupons */
.twdc__pair--discount span:first-child{ color:#353132; }
.twdc__applied{
  margin:8px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.twdc__couponchip{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#E9EDF3;
  border:1px solid #A9C2E0;
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  color:#353132;
}

/* --- Juletræsfod add-on styling in cart summary --- */
.twdc__addon{
  margin:10px 0 16px;
  padding:14px 16px 12px;
  border-radius:18px;
  border:1px solid #e7e2da;
  background:#F9F6F3;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.twdc__addon-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.twdc__addon-label{
  font-family:'Outfit',sans-serif;
  font-weight:600;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#D85640;
}

.twd-addon__price{
  font-family:'Outfit',sans-serif;
  font-weight:600;
  font-size:14px;
  color:#353132;
}

/* Toggle (Ja / Nej) */
.twd-addon__toggle{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:4px;
  flex-wrap:wrap;
}

.twd-addon-toggle-btn{
  min-width:46px;
  height:32px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid #A9C2E0;
  background:#FFFFFF;
  font-family:'Outfit',sans-serif;
  font-size:13px;
  font-weight:500;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#466232;
  cursor:pointer;
  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease,
    transform .1s ease;
}

.twd-addon-toggle-btn:hover{
  background:#E9EDF3;
  transform:translateY(-1px);
}

.twd-addon-toggle-btn.is-active{
  background:#D85640;
  border-color:#D85640;
  color:#FDF5F3;
  display:flex;
  align-items:center;
}

.twd-addon-input{
  display:none;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet & small desktop */
@media (max-width:1060px){
  .twdc__container{
    padding:0 14px 32px;
  }

  .twdc__grid{
    grid-template-columns:1fr;
    column-gap:0;
    row-gap:16px;
  }

  .twdc__gridwrap::before{
    display:none;
  }

  .twdc__items,
  .twdc__related,
  .twdc__summary{
    padding:0;
    border-bottom:0;
    margin-bottom:16px;
  }

  .twdc__summary{
    padding-top:4px;
  }

  .twdc__blank{
    display:none;
  }

  .twdc__reco{
    grid-template-columns:repeat(2,1fr);
    margin-top:4px;
  }

  .twdc__row{
    grid-template-columns:72px minmax(0,1fr);
  }

  .twdc__thumb{
    width:72px;
    height:72px;
  }

  .twdc__chip{
    height:40px;
    width:100%;
    min-width:180px;
    border-radius:20px;
    grid-template-columns:40px 1fr 40px;
  }

  .twdc__title{
    font-size:20px;
  }
}

/* General mobile tweaks */
@media (max-width:768px){
  .twdc__container{
    padding:0 12px 28px;
  }

  .twdc__title,
  .twdc__title--resume,
  .twdc__title--reco{
    text-align:left;
    font-size:18px;
  }

  .twdc__pair,
  .twdc__total{
    font-size:13px;
  }

  .twdc__minirow{
    grid-template-columns:minmax(0,1fr) auto;
  }

  .twdc__coupon{
    padding:12px;
    margin-top:10px;
  }

  .twdc__couponrow{
    flex-wrap:wrap;
  }

  .twdc__couponrow input[type="text"]{
    flex:1 1 100%;
  }

  .twdc__couponrow button{
    flex:0 0 auto;
  }

  .twdc__btn--cta{
    width:100%;
    text-align:center;
    margin-left:0;
    margin-top:8px;
  }
}

/* Small mobile */
@media (max-width:560px){
  .twdc__reco{
    grid-template-columns:1fr;
  }

  .twdc__row{
    grid-template-columns:64px minmax(0,1fr);
    column-gap:12px;
  }

  .twdc__thumb{
    width:64px;
    height:64px;
  }

  .twdc__name{
    font-size:14px;
  }

  .twdc__price{
    font-size:13px;
  }

  .twdc__attrs{
    font-size:13px;
  }

  .twdc__addon{
    padding:12px 12px 10px;
  }

  .twdc__addon-top{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }

  .twd-addon__toggle{
    width:100%;
    justify-content:flex-start;
  }

  .twd-addon-toggle-btn{
    padding:0 12px;
    min-width:0;
  }

  .twdc__bot{
    gap:8px;
  }
}

/* Extra-small screens */
@media (max-width:400px){
  .twdc__container{
    padding:0 10px 24px;
  }

  .twdc__title{
    font-size:17px;
  }

  .twdc__chip{
    min-width:0;
  }

  .twdc__couponrow button{
    width:100%;
    text-align:center;
  }
}
