/*
  Terridors Cart – base saine
  Couleurs:
  - Vert: #004c32
  - Sable: #efdfc5
  - Menthe: #78b692
*/

:root{
  --td-green: #004c32;
  --td-sand: #efdfc5;
  --td-mint: #78b692;
  --td-ink: #17352a;
  --td-text: #26352f;
  --td-muted: #6a7a73;
  --td-bg: #f7f5f1;
  --td-card: #ffffff;
  --td-border: #e6e2d9;
  --td-shadow: 0 10px 25px rgba(0,0,0,0.08);
  --td-radius: 16px;
  --td-radius-sm: 30px;
}

/* Scope: ne casse pas le reste du thème */
.td-cart{color: var(--td-text);}
.td-cart__header{margin: 6px 0 18px;}
.td-cart__title{font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; color: var(--td-ink); margin: 0;}
.td-cart__subtitle{margin: 8px 0 0; color: var(--td-muted); font-size: 14px;}

.td-cart__layout{display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start;}
@media (min-width: 992px){
  .td-cart__layout{grid-template-columns: 1fr 360px;}
}

/* Banner */
.td-cartnotice{gap:20px;display:flex;background: var(--td-bg); border: 1px solid var(--td-border); border-radius: var(--td-radius); padding: 14px 14px; margin-bottom: 14px;}
.td-cartnotice__title{display:flex; gap:10px; align-items: center; font-weight: 900; color: var(--td-ink);}
.td-cartnotice__icon{width: 50px; height: 50px; border-radius: 10px; background: var(--td-mint); color: #0a2a1d; display:flex; align-items:center; justify-content:center; font-weight: 900;font-size: larger;}
.td-cartnotice__text{margin: 8px 0 0; color: var(--td-muted); line-height: 1.45;}

/* Sections */
.td-section{background: var(--td-card); border: 1px solid var(--td-border); border-radius: var(--td-radius); overflow: hidden;}
.td-section__head{padding: 14px 16px; border-bottom: 1px solid var(--td-border);}
.td-section__title{margin:0; font-weight: 900; color: var(--td-ink); display:flex; gap:10px; align-items:center;}
.td-section__badge{display:inline-flex; align-items:center; gap:6px; padding: 4px 10px; border-radius: 999px; background: rgba(120,182,146,0.25); color: var(--td-ink); font-size: 12px; font-weight: 800;}
.td-section__body{padding: 6px 0;}

/* Items */
.td-cartitem{display:flex; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--td-border);}
.td-cartitem:first-child{border-top: 0;}
.td-cartitem__media{flex: 0 0 84px;}
.td-cartitem__thumb{display:block; width: 84px; height: 50px; border-radius: 14px; border: 1px solid var(--td-border); background: #fff; overflow:hidden;}
.td-cartitem__thumb img{width: 100%; translate: 0 -20%; object-fit: contain;}

.td-cartitem__main{flex: 1 1 auto; min-width: 0; display:flex; flex-direction: column; gap: 8px;}
.td-cartitem__top{display:flex; justify-content: space-between; gap: 10px; align-items:flex-start;}
.td-cartitem__name{margin:0; font-size: 14px; font-weight: 900; color: var(--td-ink); line-height: 1.25;}
.td-cartitem__name a{color: inherit; text-decoration: none;}
.td-cartitem__name a:hover{text-decoration: underline;}
.td-cartitem__meta{margin-top: 4px; display:flex; flex-wrap: wrap; gap: 6px; align-items:center;}
.td-tag{display:inline-flex; align-items:center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid var(--td-border); background: #fff; color: var(--td-text);}
.td-tag--preorder{background: rgba(239,223,197,0.65); border-color: rgba(239,223,197,0.95);}
.td-tag--ok{background: rgba(120,182,146,0.22); border-color: rgba(120,182,146,0.35);}

.td-cartitem__aside{flex: 0 0 auto; text-align: right;}
.td-cartitem__price{font-size: 14px; font-weight: 900; color: var(--td-ink); white-space: nowrap;}
.td-cartitem__unit{color: var(--td-muted); font-size: 12px; margin-top: 2px; white-space: nowrap;}

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

/* Quantity input (reuse prestashop classes but style lightly) */
.td-qty{display:flex; align-items:center; gap:8px;}
.td-qty .bootstrap-touchspin input{height: 38px; border-radius: 12px; border: 1px solid var(--td-border); padding: 6px 10px;}
.td-qty .bootstrap-touchspin .btn{border-radius: 12px; border: 1px solid var(--td-border);}

/* Actions */
.td-cartitem__actions a,
.td-cartitem__actions button{border-radius: 30px !important;}
.td-cartitem__actions .remove-from-cart{color: var(--td-muted);}
.td-cartitem__actions .remove-from-cart:hover{color: #b00020;}

/* Summary */
.td-summary{background: var(--td-card); border: 1px solid var(--td-border); border-radius: var(--td-radius); box-shadow: var(--td-shadow); overflow:hidden; position: sticky; top: 16px;}
.td-summary__header{padding: 14px 16px; border-bottom: 1px solid var(--td-border);}
.td-summary__title{margin:0; font-weight: 900; color: var(--td-ink);}
.td-summary__body{padding: 12px 16px;}
.td-summary__row{display:flex; justify-content: space-between; gap:10px; padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,0.08);}
.td-summary__row:last-child{border-bottom: 0;}
.td-summary__label{color: var(--td-muted); font-size: 13px;}
.td-summary__value{font-weight: 900; color: var(--td-ink);}
.td-summary__total{margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--td-border); display:flex; justify-content: space-between; align-items: baseline;}
.td-summary__total .td-summary__label{color: var(--td-ink); font-weight: 900;}
.td-summary__total .td-summary__value{font-size: 18px;}
.td-summary__foot{padding: 12px 16px 16px; border-top: 1px solid var(--td-border);}

/* Buttons */
.td-cartactions{display:flex; gap: 10px; justify-content: space-between; margin-top: 12px;}
.td-btn{display:inline-flex; align-items:center; justify-content:center; gap: 8px; padding: 10px 12px; border-radius: 14px; font-weight: 900; text-decoration: none !important; border: 1px solid transparent; width: 100%;}
.td-btn--primary{background: var(--td-green); border-color: var(--td-green); color: #fff !important;}
.td-btn--primary:hover{filter: brightness(1.05);}
.td-btn--ghost{background: #fff; border-color: var(--td-border); color: var(--td-ink) !important;}
.td-btn--ghost:hover{border-color: rgba(0,0,0,0.18);}
.td-btn__icon{opacity: 0.9;}
.td-btn:hover{color:var(--td-mint)}

/* Hide any legacy 'remove preorders' button if present elsewhere */
.td-cart button.remove-preorders,
.td-cart .remove-preorders,
.td-cart [data-action="remove-preorders"],
.td-cart .js-remove-preorders{display:none !important;}

/* Small screens tweaks */
@media (max-width: 575.98px){
  .td-cartitem{padding: 12px 12px;}
  .td-cartitem__media{flex-basis: 76px;}
  .td-cartitem__thumb{width: 76px; height: 76px;}
  .td-cartitem__thumb img{translate: 0;}
  .td-summary{position: static;}
  .td-cartitem__actions{padding-top: 10px}
}

/* Cache un éventuel bouton "retirer les produits en précommande" si présent ailleurs */
.td-cart button.remove-preorders,
.td-cart .remove-preorders,
.td-cart [data-action="remove-preorders"],
.td-cart .js-remove-preorders{display:none !important;}

/* spinner minimal */
.td-atc-spinner{
  width:16px;
  height:16px;
  border:2px solid rgba(255,255,255,.4);
  border-top-color:#ffffff;
  border-radius:50%;
  animation:tdspin .7s linear infinite;
}
@keyframes tdspin{to{transform:rotate(360deg)}}

/* ===========================
   Terridors – Quantity input
   =========================== */

.btn-primary.disabled, .btn-primary:disabled{
  color:#db4c38;
  background-color: #f2dbd8;
  border-color: #db4c38
}

.terridors-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #78b692;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  height: 35px;
}

/* Buttons */
.terridors-qty-btn {
  width: 36px;
  height: 35px;
  border: none;
  background: #efdfc5;
  color: #004c32;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.terridors-qty-btn:hover {
  background: #78b692;
}

.terridors-qty-btn:active {
  background: #004c32;
  color: #ffffff;
}

/* Input */
.terridors-qty-input {
  width: 48px;
  height: 35px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #004c32;
  outline: none;
  appearance: textfield;
}

/* Remove arrows */
.terridors-qty-input::-webkit-inner-spin-button,
.terridors-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Disabled state */
.terridors-qty-btn:disabled,
.terridors-qty-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile */
@media (max-width: 768px) {
  .terridors-qty {
    height: 44px;
  }

  .terridors-qty-btn {
    width: 40px;
    height: 44px;
    font-size: 20px;
  }

  .terridors-qty-input {
    width: 52px;
    height: 44px;
    font-size: 16px;
  }
}



/* =========================
   Terridors Footer (clean)
   Colors: #004c32 / #efdfc5 / #78b692
   ========================= */
#footer {
  padding-top: 0!important;
}

:root{
  --td-green:#004c32;
  --td-beige:#efdfc5;
  --td-mint:#78b692;
  --td-ink:#123225;
  --td-muted:rgba(18,50,37,.72);
  --td-line:rgba(0,76,50,.14);
  --td-white:#ffffff;
  --td-radius:16px;
}

/* Footer shell */
.td-footer{
  /*background: var(--td-beige);*/
  color: var(--td-ink);
  border-top: 1px solid var(--td-line);
  a{
    color: black;
  }
}

.td-footer__wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 18px;
}

/* Top band */
.td-footer__top{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.td-footer__brand{
  background: var(--td-beige);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  padding: 16px 16px 14px;
}

.td-footer__logoLink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.td-footer__logo{
  height: 34px;
  width: auto;
  display: block;
}

.td-footer__logoText{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--td-green);
  font-size: 20px;
}

.td-footer__baseline{
  margin: 10px 0 6px;
  font-weight: 800;
  color: var(--td-green);
  font-size: 18px;
}

.td-footer__desc{
  margin: 0;
  color: var(--td-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Cards */
.td-card{
  border-radius: var(--td-radius);
  padding: 14px 14px 12px;
}

.td-card--soft{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--td-line);
}

.td-card--outline{
  background: rgba(255,255,255,.55);
  border: 1px solid var(--td-line);
}

.td-card__title{
  font-weight: 900;
  color: var(--td-green);
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

.td-card__content{
  font-size: 13px;
  color: var(--td-ink);
}

/* Key/Value */
.td-kv{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 6px 0;
}

.td-kv__k{
  color: var(--td-muted);
  font-weight: 800;
  font-size: 12px;
}

.td-kv__v{
  font-weight: 700;
  font-size: 13px;
}

.td-note{
  margin-top: 8px;
  font-size: 12px;
  color: var(--td-muted);
}

/* Grid */
.td-footer__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Accordion (native details/summary) */
.td-acc{
  background: rgba(255,255,255,.55);
  border: 1px solid var(--td-line);
  border-radius: var(--td-radius);
  overflow: hidden;
}

.td-acc__sum{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.35);
}

.td-acc__sum::-webkit-details-marker{ display:none; }

.td-acc__title{
  font-weight: 900;
  color: var(--td-green);
  font-size: 18px;
}

.td-acc__chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0,76,50,.75);
  border-bottom: 2px solid rgba(0,76,50,.75);
  transform: rotate(45deg);
  transition: transform .15s ease;
  margin-left: 10px;
  flex: 0 0 auto;
}

.td-acc[open] .td-acc__chev{
  transform: rotate(225deg);
}

/* Lists */
.td-list{
  margin: 0;
  padding: 10px 14px 12px;
  list-style: none;
}

.td-list__item{
  padding: 8px 0;
  border-top: 1px dashed rgba(0,76,50,.12);
}

.td-list__item:first-child{
  border-top: 0;
}

.td-link{
  color: var(--td-ink);
  text-decoration: none;
  font-weight: 800;
}

.td-link:hover{
  color: var(--td-green);
  text-decoration: underline;
}

.td-link--muted{
  color: var(--td-muted);
  font-weight: 800;
}

/* Stores */
.td-stores{
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Bottom bar */
.td-footer__bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,76,50,.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.td-footer__legal{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.td-dot{
  color: rgba(0,76,50,.35);
}

.td-footer__copy{
  color: var(--td-muted);
  font-weight: 800;
  font-size: 12px;
}

/* Desktop layout */
@media (min-width: 992px){
  .td-footer__wrap{
    padding: 34px 20px 20px;
  }

  .td-footer__top{
    grid-template-columns: 1fr .8fr .8fr;
    align-items: stretch;
    gap: 16px;
  }

  .td-footer__grid{
    gap: 14px;
    align-items: start;
  }

  .td-stores{
    grid-template-columns: 1fr 1fr 1fr;
  }

  .td-footer__bottom{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* =========================
   Terridors Menu Desktop
   ========================= */

#tdrsSideNav .tdrs-l1:hover,
  #tdrsSideNav .tdrs-l1:focus{
    background: rgba(18, 76, 46, 0.08);
  }
  #tdrsFlyout a:hover,
  #tdrsFlyout a:focus{
    background: rgba(18, 76, 46, 0.08);
    outline: none;
  }


/* =========================
   Terridors Menu Desktop ADMIN
   ========================= */

  .link-levelone{
    background-color: #b00020;
  }