/* DigiStore — Cart page (card layout, auto-update, responsive) */
.ds-cart{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:clamp(24px,3vw,44px);align-items:start;position:relative}
.ds-cart__form{min-width:0}
.ds-cart__head{display:grid;grid-template-columns:1fr 110px 170px 110px;gap:16px;padding:14px 22px;font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r) var(--r) 0 0}
.ds-cart__head span:nth-child(2),.ds-cart__head span:nth-child(3),.ds-cart__head span:nth-child(4){text-align:center}
.ds-cart__items{border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r) var(--r);background:#fff;overflow:hidden}
.ds-cart__row{display:grid;grid-template-columns:34px 86px 1fr 110px 170px 110px;gap:16px;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line-2);position:relative;transition:background var(--t)}
.ds-cart__row:last-child{border-bottom:0}
.ds-cart__row:hover{background:#FCFCFF}
.ds-cart__row.is-busy{opacity:.55;pointer-events:none}
.ds-remove{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#C0565B;background:transparent;font-size:.85rem}
.ds-remove:hover{background:#FDECEC;color:#D92D20}
.ds-cart__media img{width:86px;height:66px;object-fit:cover;border-radius:12px;background:var(--surface-3)}
.ds-cart__name{font-weight:700;color:var(--text);font-size:.92rem;line-height:1.45}
.ds-cart__name:hover{color:var(--brand-600)}
.ds-cart__info dl.variation{font-size:.78rem;color:var(--text-3);margin-top:6px;display:grid;gap:2px}
.ds-cart__info dl.variation dt{float:left;clear:left;margin-right:6px;font-weight:600}
.ds-cart__price,.ds-cart__sub{font-weight:700;color:var(--text);font-size:.92rem;text-align:center}
.ds-cart__qty{display:flex;justify-content:center}
.ds-stepper{display:inline-flex;align-items:center;gap:2px;border:1.5px solid var(--line);border-radius:var(--r-full);padding:3px;background:#fff}
.ds-stepper__btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;color:var(--text-2)}
.ds-stepper__btn:hover{background:var(--brand-50);color:var(--brand-600)}
.ds-stepper input.qty{width:44px!important;text-align:center;border:0!important;min-height:38px!important;font-weight:800;font-size:.9rem;color:var(--text);background:transparent;padding:0}
.ds-stepper input.qty::-webkit-outer-spin-button,.ds-stepper input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ds-stepper input.qty{-moz-appearance:textfield;appearance:textfield}
.ds-cart__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.ds-coupon{display:flex;gap:10px;flex:1;min-width:260px}
.ds-coupon .input{text-transform:uppercase}
.ds-update-btn{margin-left:auto}
.ds-cart.is-updating .ds-cart__items{position:relative}
.ds-cart.is-updating .ds-cart__items::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.55);backdrop-filter:blur(1px)}
.ds-cart__side{position:sticky;top:96px;min-width:0}
.ds-totals-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:26px;background:#fff;box-shadow:var(--sh-3)}
.ds-totals-card h2{font-size:1.15rem;margin-bottom:18px}
.ds-totals-card table.shop_table{border:0;width:100%}
/* The totals card must NOT inherit the global 560px shop_table floor
   (responsive.css): it made the desktop card a 106px scroll sliver and,
   via the grid min-content chain, pushed the mobile page to 656px.
   Block-fill instead of WC's shrink-to-fit float; natural table width. */
.woocommerce .ds-totals-card .cart_totals{float:none;width:auto;max-width:100%;min-width:0}
.woocommerce .ds-totals-card table.shop_table thead,.woocommerce .ds-totals-card table.shop_table tbody{min-width:0}
.ds-totals-card table.shop_table th,.ds-totals-card table.shop_table td{border:0;padding:10px 0;font-size:.9rem;background:none}
.ds-totals-card .order-total th,.ds-totals-card .order-total td{font-size:1.2rem;font-weight:800;color:var(--text);border-top:2px solid var(--line);padding-top:16px}
.ds-totals-card .wc-proceed-to-checkout{margin-top:18px}
.ds-totals-card .wc-proceed-to-checkout .btn,.ds-totals-card .wc-proceed-to-checkout .checkout-button{width:100%;justify-content:center}
.ds-cart__trust{margin-top:16px;list-style:none}
.ds-cross{margin-top:clamp(40px,5vw,64px)}
.ds-cross h2{font-size:clamp(1.25rem,2.4vw,1.65rem);margin-bottom:22px}
.ds-cart-empty{max-width:560px;margin:0 auto;text-align:center;padding:clamp(40px,6vw,80px) 20px}
.ds-cart-empty__ico{width:84px;height:84px;border-radius:50%;background:var(--brand-50);color:var(--brand-600);display:inline-grid;place-items:center;font-size:2rem;margin-bottom:22px}
.ds-cart-empty h2{margin-bottom:10px}
.ds-cart-empty p{margin-bottom:26px}
.cart-page .sec-head{margin-bottom:32px}

/* Tablet */
@media (max-width:1020px){
  .ds-cart{grid-template-columns:minmax(0,1fr)}
  .ds-cart__side{position:static}
  .ds-cart__head{display:none}
  .ds-cart__items{border-top:1px solid var(--line);border-radius:var(--r)}
  .ds-cart__row{grid-template-columns:70px 1fr auto;grid-template-areas:"media info remove" "media qty sub";row-gap:12px}
  .ds-cart__remove{grid-area:remove;justify-self:end}
  .ds-cart__media{grid-area:media}
  .ds-cart__media img{width:70px;height:56px}
  .ds-cart__info{grid-area:info;min-width:0}
  .ds-cart__price{display:none}
  .ds-cart__qty{grid-area:qty;justify-content:start}
  .ds-cart__sub{grid-area:sub;justify-self:end;font-size:1.02rem}
  .ds-cart__sub::before{content:attr(data-label) ": ";font-size:.75rem;color:var(--text-3);font-weight:600}
  .ds-remove,.ds-stepper__btn{width:44px;height:44px}
}
/* Small phones */
@media (max-width:520px){
  .ds-cart__row{padding:16px}
  .ds-coupon{flex-direction:column}
  .ds-coupon .btn{width:100%}
  .ds-cart__actions .ds-update-btn{width:100%}
  .ds-totals-card{padding:20px}
}
