/* True Heritage v2 cart page (0.4.0). Components from the approved Cart.dc.html / th-pages.css,
   prefixed th2- like the AI pages, on the Home v2 tokens (th-system.css, th-home.css, th-ai.css). */

.th2-cart-h1{margin:22px 0 0;font-size:clamp(44px,5.4vw,72px);line-height:.96;font-weight:700;letter-spacing:-.035em;text-shadow:0 0 70px rgba(250,251,255,.2)}

/* buttons and links from the design */
.th2-ghost{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border:1px solid #FAFBFF;background:transparent;color:#FAFBFF;font-family:'Space Grotesk',sans-serif;font-weight:500;font-size:16px;cursor:pointer;transition:background .25s}
.th2-ghost.sm{min-height:44px;padding:0 18px;font-size:15px}
.th2-ghost:hover{background:rgba(250,251,255,.12)}
.th2-linkbtn{border:0;background:none;padding:8px 0;color:#C3C7D9;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.th2-linkbtn:hover{color:#FAFBFF}
.th2-linkbtn.sm{padding:0;font-size:13px}
.th2-cart-page a:focus-visible,.th2-cart-page button:focus-visible,.th2-cart-page input:focus-visible{outline:3px solid #00E4CD;outline-offset:3px}

/* WooCommerce notices (cart updated, removed + Undo, coupon messages, stock problems) */
.th2-notices{display:grid;gap:12px;margin-bottom:24px;max-width:760px}
.th2-notice{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:14px 18px;border:1px solid rgba(250,251,255,.16);border-left:3px solid #00E4CD;background:rgba(16,18,27,.72);font-size:16px;line-height:1.45}
.th2-notice.is-error{border-left-color:#FF5A5A;background:rgba(255,90,90,.06);color:#FFD0D0}
.th2-notice.is-notice{border-left-color:#6C9BFF}
.th2-notice a{color:#FAFBFF;text-decoration:underline;text-underline-offset:4px}
.th2-notice a.button,.th2-notice a.wc-forward{order:2;margin-left:auto;text-decoration:none;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid #FAFBFF;font-size:15px}
.th2-notice ul{margin:0;padding:0 0 0 18px}

/* layout */
.th2-cart-cols{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start}
.th2-cart-lines{flex:1 1 640px;min-width:0;display:grid;gap:16px}
.th2-cart-aside{flex:0 1 420px;min-width:min(100%,300px);position:sticky;top:24px}
.admin-bar .th2-cart-aside{top:calc(24px + var(--wp-admin--admin-bar--height,32px))}
.th2-cart-sum{background:rgba(10,11,18,0.92);padding:28px}

/* a cart line */
.th2-cart-line{display:grid;grid-template-columns:110px 1fr;gap:20px;padding:16px}
.th2-cart-img{display:flex;align-items:center;justify-content:center;aspect-ratio:4/5;overflow:hidden;background:radial-gradient(circle at 30% 30%,var(--glow,rgba(250,251,255,.18)),#0B0C12 72%)}
.th2-cart-img .th2-fit-contain{background:#F4F5FA}
.th2-cart-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.th2-cart-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.th2-cart-name{margin:4px 0 0;font-size:20px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.th2-cart-name a:hover{color:#00E4CD}
.th2-cart-meta{margin-top:6px;font-size:14px;color:#C3C7D9}
.th2-cart-meta dl{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;margin:0}
.th2-cart-meta dd,.th2-cart-meta dd p{margin:0}
.th2-cart-price{text-align:right;margin-left:auto}
.th2-cart-total{font-size:22px;font-weight:700}
.th2-cart-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;flex-wrap:wrap}
.th2-cart-update{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.th2-cart.th2-js .th2-cart-update button{display:none}

/* quantity stepper */
.th2-qty{display:inline-flex;align-items:center;border:1px solid rgba(250,251,255,.28);border-radius:22px;overflow:hidden}
.th2-qty button{width:44px;height:44px;border:0;background:transparent;color:#FAFBFF;font-size:20px;cursor:pointer}
.th2-qty button:hover{background:rgba(250,251,255,.1)}
.th2-qty input{width:64px;height:44px;border:0;background:transparent;color:#FAFBFF;text-align:center;font-family:'IBM Plex Mono',monospace;font-size:15px;-moz-appearance:textfield;appearance:textfield}
.th2-qty input::-webkit-outer-spin-button,.th2-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.th2-cart.th2-js .th2-qty input{width:40px;padding:0}

/* order summary */
.th2-rowline{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;font-size:16px}
.th2-rowline+.th2-rowline{border-top:1px solid rgba(250,251,255,.1)}
.th2-rowval{text-align:right}
.th2-cart-grand{margin-top:12px;border-top:1px solid rgba(250,251,255,.2)!important}
.th2-total{font-size:28px;font-weight:700}
.th2-total small{display:block;font-size:13px;font-weight:400;color:#A3A8BD}
.th2-cart-ship{width:100%;border-collapse:collapse;font-size:15px}
.th2-cart-ship th,.th2-cart-ship td{padding:12px 0;text-align:left;vertical-align:top;border-top:1px solid rgba(250,251,255,.1);font-weight:400}
.th2-cart-ship ul{list-style:none;margin:0;padding:0}
.th2-cart-extras{margin-top:14px}

/* empty cart */
.th2-cart-empty{padding:56px 32px;text-align:center;border:1px dashed rgba(250,251,255,.4)}
.th2-cart-suggest{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:24px;margin-top:16px}
.th2-cart-scard{display:flex;flex-direction:column;gap:12px;padding:16px;background:rgba(16,18,27,.72)}

/* busy while WooCommerce saves and the page reloads (the design's loading skeleton) */
.th2-cart.is-busy .th2-cart-lines,.th2-cart.is-busy .th2-cart-sum{pointer-events:none}
.th2-cart.is-busy .th2-cart-line,.th2-cart.is-busy .th2-cart-sum{position:relative}
.th2-cart.is-busy .th2-cart-line::after,.th2-cart.is-busy .th2-cart-sum::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,rgba(8,9,13,.35) 25%,rgba(250,251,255,.1) 50%,rgba(8,9,13,.35) 75%);background-size:200% 100%;animation:th2skel 1.4s linear infinite}
@keyframes th2skel{from{background-position:200% 0}to{background-position:-200% 0}}

@media (max-width:600px){
.th2-cart-line{grid-template-columns:84px 1fr;gap:14px;padding:14px}
.th2-cart-name{font-size:18px}
.th2-cart-total{font-size:20px}
.th2-cart-sum{padding:22px 18px}
.th2-cart-aside{position:static}
.th2-cart-empty{padding:40px 20px}
}
@media (prefers-reduced-motion: reduce){
.th2-cart.is-busy .th2-cart-line::after,.th2-cart.is-busy .th2-cart-sum::after{animation:none}
.th2-ghost{transition:none}
}
html[dir=rtl] .th2-cart-price,html[dir=rtl] .th2-rowval{text-align:left;margin-left:0;margin-right:auto}
