/* ==========================================================================
   Privaed — cart (loaded on is_cart()). Extracted from "Privaed Cart.html"
   (.cart … .xsell), plus the .pcard cross-sell card rules (reused from the
   archive but category.css isn't loaded here), a .crumb block, and WC notices.
   ========================================================================== */

.cart{padding:14px 0 40px}

/* breadcrumb */
.crumb{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);margin-bottom:20px;flex-wrap:wrap}
.crumb a{transition:color .15s}.crumb a:hover{color:var(--amber-deep)}
.crumb svg{width:13px;height:13px;opacity:.45}
.crumb .cur{color:var(--ink-2);font-weight:600}

/* WC notices */
.woocommerce-message,.woocommerce-error,.woocommerce-info{list-style:none;background:#fff;border-radius:var(--r-md);padding:14px 18px;margin:0 0 18px;box-shadow:0 8px 24px -18px rgba(64,46,16,.3);font-size:14.5px;color:var(--ink-2);border-left:4px solid var(--amber)}
.woocommerce-error{border-left-color:#b4402e;color:#7a2a1e}
.woocommerce-message{border-left-color:#2f7d4f}
.woocommerce-error li,.woocommerce-message li,.woocommerce-info li{list-style:none}

.cart-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:32px}
.cart-head h1{font-size:clamp(32px,4vw,50px);font-weight:800;line-height:1.05}
.cart-head .cnt{color:var(--body);font-size:16px;margin-top:10px}
.cart-head .keepshop{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:15px;color:var(--amber-deep)}
.cart-head .keepshop svg{width:17px;height:17px}

.cart-grid{display:grid;grid-template-columns:1fr 380px;gap:30px;align-items:start}

/* free shipping progress */
.shipbar{background:#fff;border-radius:var(--r-md);padding:18px 22px;box-shadow:0 10px 28px -20px rgba(64,46,16,.28);margin-bottom:18px}
.shipbar .st{display:flex;align-items:center;gap:10px;font-size:14.5px;color:var(--ink-2);font-weight:600;margin-bottom:12px}
.shipbar .st svg{width:19px;height:19px;color:var(--amber-deep);flex:none}
.shipbar .st b{color:var(--amber-deep)}
.track{height:8px;border-radius:999px;background:var(--cream-2);overflow:hidden}
.track .tf{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--amber),#EBB867);transition:width .4s ease}

/* item rows */
.citems{display:flex;flex-direction:column;gap:14px}
.citem{display:grid;grid-template-columns:104px 1fr auto;gap:20px;background:#fff;border-radius:var(--r-md);padding:16px;box-shadow:0 12px 32px -22px rgba(64,46,16,.3);align-items:center;transition:opacity .25s ease,transform .25s ease}
.citem.removing{opacity:0;transform:translateX(12px)}
.citem .cimg{position:relative;width:104px;height:104px;border-radius:12px;overflow:hidden;background:linear-gradient(160deg,#EDE3D2,#E2D4BC);flex:none}
.citem .cimg img{width:100%;height:100%;object-fit:cover}
.citem .cbody{min-width:0}
.citem .cvar{font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:600}
.citem h3{font-size:16px;font-weight:700;line-height:1.3;color:var(--ink);margin-top:5px}
.citem h3 a{color:inherit}.citem h3 a:hover{color:var(--amber-deep)}
.citem .csku{font-size:12.5px;color:var(--muted);margin-top:7px}
.citem .cunit{font-size:13.5px;color:var(--body);margin-top:9px}
.citem .cunit b{color:var(--ink);font-weight:700}
.citem .cright{display:flex;flex-direction:column;align-items:flex-end;gap:14px;justify-self:end}
.citem .ltotal{font-family:"Epilogue",system-ui,sans-serif;font-weight:800;font-size:19px;color:var(--ink);white-space:nowrap}
.cqty{display:flex;align-items:center;background:var(--cream);border-radius:999px;padding:0 5px;height:42px}
.cqty button{width:34px;height:34px;border:none;background:none;cursor:pointer;font-size:18px;color:var(--ink-2);border-radius:50%;transition:.15s;line-height:1}
.cqty button:hover{background:#fff}
.cqty input{width:36px;text-align:center;border:none;background:none;font-family:"Epilogue",system-ui,sans-serif;font-weight:700;font-size:15px;color:var(--ink);outline:none;-moz-appearance:textfield;appearance:textfield}
.cqty input::-webkit-outer-spin-button,.cqty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cremove{display:inline-flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;font-family:"DM Sans",system-ui,sans-serif;font-size:12.5px;font-weight:600;color:var(--muted);transition:.15s}
.cremove:hover{color:#b4402e}
.cremove svg{width:13px;height:13px}
.cart-form-busy{opacity:.6;pointer-events:none}

/* summary */
.summary{position:sticky;top:98px;background:#fff;border-radius:var(--r-card);padding:28px;box-shadow:0 22px 54px -30px rgba(64,46,16,.42)}
.summary h2{font-family:"Epilogue",system-ui,sans-serif;font-size:20px;font-weight:800;color:var(--ink);margin-bottom:22px}
.coupon{display:flex;gap:8px;margin-bottom:22px;align-items:stretch}
/* .summary scope + button.button to outrank WooCommerce's legacy .button styles
   (still loaded on the cart page). */
.summary .coupon input,
.summary .coupon input.input-text{flex:1;min-width:0;width:auto;background:var(--cream);border:none;border-radius:11px;margin:0;padding:13px 15px;font-family:"DM Sans",system-ui,sans-serif;font-size:14px;line-height:1.2;color:var(--ink);outline:none;box-shadow:inset 0 0 0 1.5px transparent;transition:.15s}
.summary .coupon input::placeholder{color:#aa9d86}
.summary .coupon input:focus{background:#fff;box-shadow:inset 0 0 0 2px var(--amber)}
.summary .coupon button,
.summary .coupon button.button{flex:none;background:var(--ink);color:var(--cream);border:none;border-radius:11px;margin:0;padding:0 20px;min-height:0;font-family:"DM Sans",system-ui,sans-serif;font-weight:700;font-size:14px;line-height:1;letter-spacing:normal;text-transform:none;text-shadow:none;white-space:nowrap;cursor:pointer;transition:.15s}
.summary .coupon button:hover,
.summary .coupon button.button:hover{background:#000;color:var(--cream)}
.srows{display:flex;flex-direction:column;gap:13px;padding-bottom:18px}
.srow{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:14.5px;color:var(--body)}
.srow .sv{font-weight:700;color:var(--ink);white-space:nowrap}
.srow.free .sv{color:#2f7d4f}
.srow .muted{font-size:12px;color:var(--muted);font-weight:500}
.sdiv{height:1px;background:var(--cream-2);margin:4px 0 18px}
.stotal{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px;gap:14px}
.stotal .l{font-family:"Epilogue",system-ui,sans-serif;font-weight:800;font-size:18px;color:var(--ink)}
.stotal .v{font-family:"Epilogue",system-ui,sans-serif;font-weight:800;font-size:30px;color:var(--ink);white-space:nowrap}
.svat{font-size:12.5px;color:var(--muted);margin-bottom:22px}
.summary .btn-amber{width:100%;justify-content:center;height:54px;font-size:16px}
.strust{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:16px;font-size:12.5px;color:var(--muted)}
.strust svg{width:15px;height:15px;color:var(--amber-deep)}
.spay{display:flex;align-items:center;justify-content:center;margin-top:14px}
.spay img{max-width:100%;height:auto}

/* empty cart */
.cart-empty-wrap{min-height:46vh}
.cart-empty-card{background:#fff;border-radius:var(--r-card);padding:64px 32px;text-align:center;box-shadow:0 22px 54px -34px rgba(64,46,16,.4);max-width:560px;margin:10px auto 0}
.cart-empty-card .ce-icon{width:72px;height:72px;border-radius:50%;background:var(--amber-soft);color:var(--amber-deep);display:grid;place-items:center;margin:0 auto 22px}
.cart-empty-card .ce-icon svg{width:34px;height:34px}
.cart-empty-card h1{font-size:28px;font-weight:800;margin-bottom:10px}
.cart-empty-card p{color:var(--body);margin-bottom:24px}
.cart-empty-card .btn-amber{justify-content:center}

/* cross-sell row — reuses content-product.php (.pcard) */
.xsell{margin-top:54px}
.xsell .xh{font-family:"Epilogue",system-ui,sans-serif;font-size:24px;font-weight:800;color:var(--ink);margin-bottom:6px}
.xsell .xs{color:var(--body);font-size:15.5px;margin-bottom:24px}
.xrow{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.pcard{background:#fff;border-radius:var(--r-md);padding:14px;box-shadow:0 12px 32px -20px rgba(64,46,16,.3);transition:.2s;display:flex;flex-direction:column}
.pcard:hover{transform:translateY(-4px);box-shadow:0 24px 46px -24px rgba(64,46,16,.42)}
.pimg{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:1/1;background:linear-gradient(160deg,#F3E7D2,#EADCC1);display:block}
.pimg img{width:100%;height:100%;object-fit:cover}
.pbadge{position:absolute;top:12px;left:12px;background:var(--ink);color:var(--cream);font-size:11px;font-weight:700;padding:5px 12px;border-radius:999px;z-index:2}
.pbadge.uus{background:var(--amber);color:#231a06}
.pbody{display:flex;flex-direction:column}
.pcat{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-top:14px}
.pcard h3{font-size:15.5px;font-weight:700;line-height:1.28;margin-top:6px;min-height:38px;color:var(--ink)}
.pcard h3 a{color:inherit}.pcard h3 a:hover{color:var(--amber-deep)}
.pcolors{display:flex;gap:6px;margin-top:13px}
.pcolors span{width:16px;height:16px;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.prow{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:16px;gap:10px}
.pprice{font-family:"Epilogue",system-ui,sans-serif;font-size:21px;font-weight:800;color:var(--ink)}
.pprice del{color:var(--muted);font-weight:600;font-size:15px;margin-right:6px}
.pprice ins{text-decoration:none}
.addbtn{width:44px;height:44px;border-radius:50%;background:var(--amber);border:none;cursor:pointer;display:grid;place-items:center;color:#231a06;flex:none;box-shadow:0 8px 18px -8px rgba(221,154,51,.7);transition:.18s}
.addbtn:hover{transform:translateY(-2px) scale(1.05);background:#E6A53C}
.addbtn.loading{opacity:.6;pointer-events:none}.addbtn.added{background:#2c7a3f;color:#fff}
.addbtn svg{width:19px;height:19px}

@media(max-width:980px){
  .cart-grid{grid-template-columns:1fr}
  .summary{position:static}
  .xrow{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .citem{grid-template-columns:80px 1fr}
  .citem .cimg{width:80px;height:80px}
  .citem .cright{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}
  .ltotal{white-space:normal;text-align:right;font-size:17px}
  .ltotal small{display:block;font-size:11px;font-weight:500;margin-top:2px}
  .xrow{grid-template-columns:repeat(2,1fr);gap:12px}
}
