:root{
  --c-border: rgba(0,0,0,.10);
  --c-border-2: rgba(0,0,0,.14);
  --c-muted: rgba(0,0,0,.65);
  --c-bg: #fff;
  --c-card: #fff;
  --c-ink: #111;
  --c-soft: rgba(0,0,0,.04);
  --c-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.cart2{ padding: 14px 0 92px; }
@media (min-width: 992px){ .cart2{ padding: 18px 0 40px; } }

.cart2 a{ color: inherit; }
.cart2 .muted{ color: var(--c-muted); }

@media (prefers-reduced-motion: no-preference){
  .cart2-grid > *{
    animation: cartFadeUp .25s ease both;
  }
  .cart2-grid > *:nth-child(2){ animation-delay: .04s; }
  @keyframes cartFadeUp{
    from{ opacity:0; transform: translateY(8px); }
    to{ opacity:1; transform: translateY(0); }
  }
}

.cart2-top{
  display:flex; flex-wrap:wrap;
  align-items:flex-start; justify-content:space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.cart2-back{
  text-decoration:none;
  font-weight: 800;
  font-size: 14px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
}
.cart2-title{
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
}
.cart2-sub{ margin: 4px 0 0; font-size: 13px; color: var(--c-muted); }

.cart2-grid{ display:grid; gap: 14px; }
@media (min-width: 992px){
  .cart2-grid{ grid-template-columns: 1.35fr .95fr; gap: 18px; align-items:start; }
  .cart2-right{ position: sticky; top: 16px; }
}

.cart2-card{
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
}
.cart2-pad{ padding: 14px; }

.cart2-left{ display:grid; gap: 10px; }

.cart2-item{
  display:grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px;
}
.cart2-media{
  width: 86px; height: 86px;
  border-radius: 14px;
  background: var(--c-soft);
  overflow:hidden;
  display:block;
}
.cart2-img{ width:100%; height:100%; object-fit: cover; display:block; }

.cart2-itemTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.cart2-name{
  text-decoration:none;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.cart2-removeBtn{
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid var(--c-border-2);
  background: #fff;
  font-weight: 900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cart2-removeBtn:active{ transform: scale(.96); }

.cart2-meta{
  margin-top: 8px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.cart2-pill{
  display:inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgba(0,0,0,.03);
  font-size: 12px;
  font-weight: 800;
}

.cart2-bottom{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items:end;
}

.cart2-label{
  font-size: 11px;
  font-weight: 900;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.cart2-qtyRow{
  display:flex;
  align-items:center;
  gap: 8px;
}
.cart2-qtyBox{
  min-width: 54px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--c-border-2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}

.cart2-iconBtn{
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--c-border-2);
  background: #fff;
  font-weight: 900;
  font-size: 18px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.cart2-iconBtn:active{ transform: scale(.96); }

.cart2-price{ text-align:right; }
.cart2-total{ font-weight: 1000; font-size: 15px; }
.cart2-unit{ margin-top: 4px; font-size: 11px; color: var(--c-muted); }

.cart2-summaryHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cart2-summaryTitle{
  margin:0;
  font-size: 16px;
  font-weight: 1000;
}
.cart2-count{
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--c-ink);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  font-size: 12px;
}
.cart2-rows{ display:grid; gap: 10px; }
.cart2-row{ display:flex; justify-content:space-between; gap: 10px; font-size: 14px; }
.cart2-divider{ height:1px; background: var(--c-border); margin: 2px 0; }
.cart2-rowTotal{ font-weight: 1000; }

.cart2-form{ margin-top: 12px; display:grid; gap: 10px; }
.cart2-field{ display:grid; gap: 6px; }
.cart2-fLabel{ font-size: 12px; font-weight: 900; color: var(--c-muted); }

.cart2-input, .cart2-select{
  width:100%;
  border:1px solid var(--c-border-2);
  border-radius: 12px;
  padding: 12px;
  background:#fff;
  font-size: 16px;
}
.cart2-input:focus, .cart2-select:focus{
  outline: none;
  border-color: rgba(0,0,0,.26);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

@media (max-width: 520px){
  .cart2-form{ gap: 8px; }
  .cart2-input, .cart2-select{ padding: 10px 11px; border-radius: 11px; }
}

.cart2-grid2{ display:grid; gap: 10px; }

.cart2-grid2.cart2-grid2--tight{
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 380px){
  .cart2-grid2.cart2-grid2--tight{ gap: 8px; }
}

.cart2-cta{
  margin-top: 6px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--c-ink);
  background: var(--c-ink);
  color:#fff;
  font-weight: 1000;
  cursor:pointer;
  width: 100%;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.cart2-cta:active{ transform: translateY(1px) scale(.99); }
.cart2-cta[disabled]{ opacity:.72; cursor:not-allowed; }

.cart2-empty{ padding: 22px 18px; text-align:center; }
.cart2-empty h2{
  margin: 0 0 8px;
  font-size: 22px;
}
.cart2-empty p{
  margin: 0;
  color: var(--c-muted);
  line-height: 1.5;
}
.cart2-emptyActions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.cart2-emptyActions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 1000;
}
.cart2-emptyPrimary{
  border: 1px solid var(--c-ink);
  background: var(--c-ink);
  color:#fff;
}
.cart2-emptySecondary{
  border: 1px solid var(--c-border-2);
  background:#fff;
  color:#111;
}

.cart2-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: #fff;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -12px 30px rgba(0,0,0,.10);
  padding: 10px 12px;
  transform: translateY(0);
  transition: transform .18s ease;
}
.cart2-barInner{
  max-width: 520px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.cart2-barLabel{ font-size: 12px; color: var(--c-muted); font-weight: 900; }
.cart2-barTotal{ font-size: 16px; font-weight: 1000; }
.cart2-barBtn{
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--c-ink);
  color:#fff;
  text-decoration:none;
  font-weight: 1000;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space: nowrap;
  transition: transform .14s ease;
}
.cart2-barBtn:active{ transform: scale(.99); }

@media (min-width: 992px){
  .cart2-bar{ display:none; }
  .cart2{ padding-bottom: 40px; }
}

@media (max-width: 380px){
  .cart2-item{ grid-template-columns: 64px 1fr; }
  .cart2-media{ width:64px; height:64px; border-radius: 12px; }
  .cart2-title{ font-size: 18px; }
  .cart2-name{ font-size: 13px; }
  .cart2-iconBtn{ width: 38px; height: 38px; }
  .cart2-qtyBox{ min-width: 46px; height: 38px; }
}

.cart2-formSectionTitle{
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 1000;
}

.cart2-float{ position: relative; }
.cart2-float .cart2-input{ padding-top: 18px; padding-bottom: 10px; }
@media (max-width: 520px){
  .cart2-float .cart2-input{ padding-top: 16px; padding-bottom: 9px; }
}
.cart2-float label{
  position:absolute;
  left: 12px;
  top: 11px;
  font-size: 12px;
  font-weight: 900;
  color: var(--c-muted);
  pointer-events:none;
  transform-origin: left top;
  transition: transform .14s ease, opacity .14s ease, top .14s ease;
  opacity: .85;
}
.cart2-float .cart2-input::placeholder{ color: transparent; }
.cart2-float .cart2-input:focus + label,
.cart2-float .cart2-input:not(:placeholder-shown) + label{
  transform: translateY(-8px) scale(.92);
  opacity: .95;
}

.cart2-details{
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
}
.cart2-details summary{
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  list-style: none;
}
.cart2-details summary::-webkit-details-marker{ display:none; }
.cart2-details summary:after{ content:"▾"; float:right; opacity:.6; }
.cart2-details[open] summary:after{ content:"▴"; }

.cart2-helpRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 800;
}

@media (prefers-reduced-motion: no-preference){
  .cart2-shake{ animation: cartShake .28s ease; }
  @keyframes cartShake{
    0%,100%{ transform: translateX(0); }
    25%{ transform: translateX(-4px); }
    50%{ transform: translateX(4px); }
    75%{ transform: translateX(-3px); }
  }
}