:root {
  --accent: #ff6a00;
  --accent-hover: #e85f00;
  --accent-soft: #fff1e8;
  --dark: #111827;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #fff;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 18px 40px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #fff, var(--bg) 48%, #fff);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   CART PAGE LAYOUT
========================= */
.cart-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 20px 140px;
}

/* =========================
   HERO SECTION
========================= */
.cart-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cart-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.cart-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.cart-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.cart-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cart-back:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  border-color: #d1d5db;
}

/* =========================
   FLASH MESSAGES
========================= */
.flash {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.flash.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.flash.info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* =========================
   CART LAYOUT
========================= */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  align-items: start;
}

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

/* =========================
   CART CARD
========================= */
.cart-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  align-items: start;
  transition: var(--transition);
}

.cart-card:hover {
  box-shadow: var(--shadow);
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.cart-thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cart-thumb:hover {
  border-color: var(--accent);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.cart-thumb:hover img {
  transform: scale(1.04);
}

.cart-main {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

/* =========================
   CART HEAD & TITLE
========================= */
.cart-head-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.cart-title {
  text-decoration: none;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  transition: color .2s ease;
}

.cart-title:hover {
  color: var(--accent);
}

.cart-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* =========================
   BADGES
========================= */
.stock,
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.stock.ok {
  background: #ecfdf5;
  color: #047857;
}

.stock.out {
  background: #fef2f2;
  color: #b91c1c;
}

.promo-badge {
  background: var(--accent-soft);
  color: var(--accent);
}

/* =========================
   REMOVE BUTTON
========================= */
.remove-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #b91c1c;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: scale(1.08);
}

.remove-btn:active {
  transform: scale(.95);
}

/* =========================
   PRICING
========================= */
.cart-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.old-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 14px;
}

.new-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
}

.line-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

/* =========================
   QUANTITY CONTROLS
========================= */
.qty-form {
  display: flex;
}

.qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--accent);
  transform: scale(1.06);
}

.qty-btn:active {
  transform: scale(.94);
}

.qty-input {
  width: 64px;
  height: 40px;
  text-align: center;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  transition: var(--transition);
}

.qty-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
}

/* =========================
   SUMMARY CARD
========================= */
.summary-card {
  position: fixed;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.sticky-card {
  position: sticky;
  top: 100px;
  align-self: start;
}

.summary-top,
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-top {
  align-items: flex-end;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.summary-top h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.summary-top span,
.summary-row span {
  color: var(--muted);
}

.summary-row {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.summary-row.total {
  padding-top: 18px;
  border-bottom: none;
  font-size: 1.15rem;
}

.summary-row.total strong {
  font-size: 1.7rem;
  color: var(--accent);
}
.cart-options{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:8px;
}

.cart-options span{
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.cart-options strong{
  color:#111827;
}
/* =========================
   PROMO BOX
========================= */
.promo-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff7ed;
  border: 1px solid #ffedd5;
}

.promo-box label {
  display: block;
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 14px;
}

.promo-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.promo-inline input {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: var(--transition);
  background: #fff;
}

.promo-inline input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
}

.promo-inline button,
.checkout-btn {
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.promo-inline button {
  padding: 0 6px;
  white-space: nowrap;
}

.promo-inline button:hover,
.checkout-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 106, 0, .25);
}

.promo-inline button:active,
.checkout-btn:active {
  transform: translateY(0);
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  margin-top: 18px;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(255, 106, 0, .2);
  width:min(100%, 300px);
  margin-left:auto;
  margin-right:auto;
}

.checkout-btn small {
  display: block;
  opacity: .9;
  font-weight: 600;
  margin-top: 6px;
  font-size: 13px;
}

.promo-box p {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.promo-box p.ok {
  color: #047857;
}

.promo-box p.ko {
  color: #b91c1c;
}

/* =========================
   EMPTY STATE
========================= */
.empty-state {
  max-width: 760px;
  margin: 80px auto 0;
  padding: 50px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.empty-state:hover {
  box-shadow: var(--shadow-lg);
}

.empty-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-xl);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 38px;
  margin: 0 auto 22px;
  transition: var(--transition);
}

.empty-state:hover .empty-icon {
  transform: scale(1.05) rotate(-4deg);
}

.empty-state h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.empty-state p {
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 44ch;
  line-height: 1.6;
}

/* =========================
   CONFIRM MODAL
========================= */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.confirm-box {
  max-width: 420px;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-box h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 14px;
}

.btn:hover {
  background: var(--bg);
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.btn.danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.btn.danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 8px 20px rgba(239, 68, 68, .25);
}
/* =========================
   CHECKOUT POPUP COMPLETE
========================= */

.checkout-popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.72);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:999999;
  padding:20px;
  overflow:hidden;
  animation:fadePopup .22s ease;
}

.checkout-popup-box{
  position:relative;
  width:min(100%,640px);
  height:min(92vh,920px);
  height:min(92svh,920px);
  border-radius:32px;
  overflow:hidden;
  background:#fff;
  box-shadow:
    0 35px 90px rgba(0,0,0,.35),
    0 8px 30px rgba(15,23,42,.12);
  animation:popupUp .26s cubic-bezier(.22,.9,.32,1);
  isolation:isolate;
}

.checkout-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:3;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:#fff;
  color:#111827;
  box-shadow:0 12px 28px rgba(15,23,42,.18);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.checkout-close:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(15,23,42,.24);
}

.checkout-close:active{
  transform:scale(.96);
}

.checkout-popup-box::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,.35);
  pointer-events:none;
}
.checkout-frame{
  width:100%;
  height:100%;
  min-height:0;
  border:none;
  display:block;
  background:#fff;
  border-radius:inherit;
  overflow:hidden;
}


/* =========================
   SCROLLBAR
========================= */

.checkout-popup-box::-webkit-scrollbar,
.checkout-frame::-webkit-scrollbar{
  width:8px;
}

.checkout-popup-box::-webkit-scrollbar-thumb,
.checkout-frame::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:999px;
}

.checkout-popup-box::-webkit-scrollbar-track,
.checkout-frame::-webkit-scrollbar-track{
  background:transparent;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadePopup{
  from{
    opacity:0;
  }
  to{
    opacity:1;
  }
}

@keyframes popupUp{
  from{
    opacity:0;
    transform:
      translateY(22px)
      scale(.96);
  }
  to{
    opacity:1;
    transform:
      translateY(0)
      scale(1);
  }
}

/* =========================
   TABLET
========================= */

@media(max-width:900px){

  .checkout-popup-overlay{
    padding:16px;
  }

  .checkout-popup-box{
    width:min(100%,680px);
    height:92vh;
    height:92svh;
  }

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .checkout-popup-overlay{
    padding:0;
    align-items:flex-end;
  }

  .checkout-popup-box{
    width:100%;
    max-width:100%;
    height:96vh;
    height:96svh;
    border-radius:24px 24px 0 0;
    animation:popupMobile .25s ease;
  }

  .checkout-close{
    top:12px;
    right:12px;
    width:40px;
    height:40px;
    font-size:16px;
  }

}

@keyframes popupMobile{
  from{
    opacity:0;
    transform:translateY(100%);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
@media(max-width:640px){

  .checkout-popup-box{
    width:100%;
    height:calc(100vh - 18px);
    height:calc(100svh - 18px);
    margin-top:0;
    border-radius:24px 24px 0 0;
  }

}

/* =========================
   SMALL PHONES
========================= */

@media(max-width:420px){

  .checkout-popup-box{
    height:100vh;
    height:100svh;
    border-radius:24px 24px 0 0;
  }

  .checkout-close{
    width:38px;
    height:38px;
    font-size:15px;
  }

}

/* =========================
   SAFETY FIXES
========================= */

body.popup-open{
  overflow:hidden;
  touch-action:none;
}

.checkout-popup-overlay *,
.checkout-popup-box *{
  box-sizing:border-box;
}

@supports (height:100dvh){
  .checkout-popup-box{
    height:min(92dvh,920px);
  }

  @media(max-width:900px){
    .checkout-popup-box{
      height:92dvh;
    }
  }

  @media(max-width:768px){
    .checkout-popup-box{
      height:96dvh;
    }
  }

  @media(max-width:640px){
    .checkout-popup-box{
      height:calc(100dvh - 18px);
    }
  }

  @media(max-width:420px){
    .checkout-popup-box{
      height:100dvh;
    }
  }
}

/* =========================
   TABLET ADJUSTMENTS
========================= */
@media (max-width: 1000px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }
}

/* =========================
   MOBILE CART
========================= */
@media (max-width: 768px) {
  .cart-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 16px 150px;
  }

  .cart-hero {
    display: none;
  }

  .cart-layout {
    display: block;
  }

  .cart-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .cart-card {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    align-items: start;
  }

  .cart-card:active {
    transform: scale(.995);
  }

  .cart-thumb {
    width: 86px;
    height: 86px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
  }

  .cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
  }

  .cart-main {
    display: block;
    min-width: 0;
  }

  .remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff5f6;
    border: 1px solid #f4d8dd;
    font-size: 14px;
  }

  .cart-head-row {
    display: block;
    margin-bottom: 8px;
    padding-right: 44px;
  }

  .cart-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
  }

  .cart-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
  }

  .stock,
  .promo-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .cart-pricing {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
  }

  .price-stack {
    gap: 2px;
  }

  .old-price {
    font-size: 12px;
  }

  .new-price {
    font-size: 15px;
    font-weight: 900;
    color: var(--accent);
  }

  .line-total {
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
  }

  .qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
  }

  .qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }

  .qty-input {
    width: 48px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
  }

  .cart-summary {
    margin-top: 18px;
  }

  .summary-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .summary-top h3 {
    font-size: 1.3rem;
  }

  .summary-row {
    padding: 12px 0;
  }

  .summary-row.total strong {
    font-size: 1.5rem;
  }

  .promo-box {
    border-radius: var(--radius);
    padding: 16px;
  }

  .promo-inline {
    grid-template-columns: 1fr auto;
  }

  .promo-inline input {
    height: 46px;
    border-radius: var(--radius);
  }

  .promo-inline button {
    height: 46px;
    border-radius: var(--radius);
    padding: 0 18px;
  }

  .checkout-btn {
    min-height: 56px;
    border-radius: var(--radius-lg);
    font-size: 16px;
  }
}

/* =========================
   EXTRA SMALL PHONES
========================= */
@media (max-width: 420px) {
  .cart-page {
    padding: 12px 12px 150px;
  }

  .cart-card {
    grid-template-columns: 76px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cart-thumb {
    width: 76px;
    height: 76px;
  }

  .cart-title {
    font-size: 14px;
  }

  .new-price,
  .line-total {
    font-size: 15px;
  }

  .qty-input {
    width: 44px;
  }

  .summary-row.total strong {
    font-size: 1.35rem;
  }

  .promo-inline {
    grid-template-columns: 1fr;
  }
}

/* Cart responsive polish — colors untouched */
.cart-page, .cart-layout, .cart-items, .cart-summary{min-width:0}
.cart-layout{
  align-items:start;
}
.cart-item{
  min-width:0;
}
.cart-item img{
  flex:0 0 auto;
}
.cart-item-title, .cart-item-meta{
  overflow-wrap:anywhere;
}
.quantity-control, .qty-control{
  flex-wrap:nowrap;
}
@media (max-width: 900px){
  .cart-layout{
    grid-template-columns:1fr !important;
  }
  .cart-summary{
    position:static !important;
  }
}
@media (max-width: 560px){
  .cart-page{padding-inline:12px}
  .cart-item{
    grid-template-columns:88px 1fr !important;
    gap:12px;
  }
  .cart-item-actions{
    grid-column:1 / -1;
    justify-content:space-between;
  }
}

/* Cart motion + desktop/mobile finish - colors preserved */
@keyframes cartReveal{
  from{opacity:0; transform:translateY(16px)}
  to{opacity:1; transform:translateY(0)}
}

.cart-card,
.summary-card,
.empty-state,
.flash{
  animation:cartReveal .38s cubic-bezier(.22,1,.36,1) both;
}

.cart-card:nth-child(2){animation-delay:.04s}
.cart-card:nth-child(3){animation-delay:.08s}
.cart-card:nth-child(n+4){animation-delay:.12s}

.cart-summary .summary-card{
  width:100%;
  position:sticky;
  top:92px;
}

.cart-thumb img,
.qty-btn,
.remove-btn,
.checkout-btn,
.promo-inline button,
.cart-back{
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    border-color .22s ease,
    color .22s ease;
}

.cart-card:hover .cart-thumb img{
  transform:scale(1.045);
}

.qty-btn:active,
.remove-btn:active,
.checkout-btn:active,
.promo-inline button:active{
  transform:scale(.96);
}

.cart-title{
  overflow-wrap:anywhere;
}

.cart-options{
  max-width:100%;
}

.cart-options span{
  max-width:100%;
  overflow-wrap:anywhere;
}

@media (max-width:1000px){
  .cart-summary .summary-card{
    position:static;
  }
}

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

  .cart-title{
    white-space:normal;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }

  .cart-pricing{
    align-items:center;
  }

  .qty-form{
    justify-content:flex-end;
  }

  .summary-card{
    margin-top:16px;
  }
}

@media (max-width:420px){
  .cart-card{
    grid-template-columns:78px minmax(0, 1fr);
  }

  .cart-subline{
    padding-right:0;
  }

  .cart-pricing{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
  }

  .qty-form{
    justify-content:flex-start;
  }

  .promo-inline button{
    width:100%;
  }
}

@media (prefers-reduced-motion: reduce){
  .cart-card,
  .summary-card,
  .empty-state,
  .flash{
    animation:none !important;
  }
}
