/* Cart page (refs/cart.png). Shared pieces come from base.css. */
.page-cart { background: #fff; }
/* refs/cart.png is drawn 1199px wide with a slightly smaller header, wider side margins and its own hero type: scoped to this page */
@media (min-width: 901px) {
  .page-cart { --gutter: clamp(16px, 3.085vw, 2.5rem); --inset: clamp(0px, 2.92vw, 2.5rem); --header-h: 3.5rem; }
  .page-cart .site-header-inner { padding-inline: calc(var(--gutter) + var(--inset) + 1.35rem); padding-top: .36rem; }
  .page-cart .announce { font-size: .64rem; letter-spacing: -.025em; word-spacing: .1em; }
  .page-cart .announce ul { min-height: 1.71rem; }
  .page-cart .site-header .logo { font-size: 2.23rem; }
  .page-cart .site-header .logo .ic { width: 3.35rem; height: 3.35rem; }
  .page-cart .cart-page { padding-right: calc(var(--gutter) - .2rem); }
  .page-cart .nav { gap: 0; }
  .page-cart .nav-link { font-size: .79rem; }
  /* newsletter band and footer as drawn on this page */
  .page-cart .newsletter:not(.newsletter-loop) .newsletter-inner { min-height: 5.33rem; padding-block: 0; gap: 2.75rem; padding-right: 16.7%; }
  .page-cart .newsletter-paw { width: 4.6rem; height: 4.6rem; margin-left: .15rem; }
  .page-cart .newsletter-mark { right: 2.1rem; width: 4.6rem; height: 4.6rem; }
  .page-cart .newsletter-title { font-size: 1.3rem; letter-spacing: -.03em; word-spacing: .08em; }
  .page-cart .newsletter-text { font-size: .95rem; letter-spacing: -.03em; word-spacing: .1em; margin-top: 1px; }
  .page-cart .newsletter-form { flex: 0 1 30rem; }
  .page-cart .newsletter-fields .input, .page-cart .newsletter-fields .btn { height: 2.63rem; }
  .page-cart .site-footer > .container { padding-inline: calc(var(--gutter) + .4rem) calc(var(--gutter) + .3rem); }
  .page-cart .footer-main { grid-template-columns: 30% 17.5% 19% minmax(0, 1fr); padding-block: .85rem 1rem; }
  .page-cart .footer-brand { padding: 1rem 0 0 .25rem; }
  .page-cart .footer-brand .logo { font-size: 2.55rem; }
  .page-cart .footer-brand .logo .ic { width: 4.4rem; height: 4.4rem; margin-block: -.65rem; }
  .page-cart .footer-tagline { margin-top: -1.1rem; margin-left: 4.6rem; letter-spacing: -.02em; }
  .page-cart .footer-col h3 { margin-bottom: .47rem; letter-spacing: -.02em; }
  .page-cart .footer-col li { line-height: 1.297rem; }
  .page-cart .footer-col a { line-height: 1.297rem; letter-spacing: -.02em; vertical-align: top; }
  .page-cart .footer-pay { margin: 1.15rem .1rem 0 0; gap: 1.05rem; }
  .page-cart .footer-pay svg { height: 1.88rem; } .page-cart .footer-pay .pay-visa { height: 1.82rem; } .page-cart .footer-pay .pay-mc { height: 1.75rem; }
  .page-cart .footer-bottom { padding-block: .8rem 2.57rem; }
  .page-cart .footer-mark { right: 3.5%; bottom: .35rem; }
  .page-cart .hero-cart .hero-title { font-size: 5.13rem; word-spacing: .17em; }
  .page-cart .hero-cart .hero-copy { padding-top: .92rem; }
  .page-cart .hero-cart .hero-sub { letter-spacing: -.037em; margin-top: .4375rem; }
}
.hero-img-cart-hero .hero-deco path { stroke-width: 2.2; }
.hero-cart .hero-copy > .swoosh { display: none; }
.hero-cart .hero-copy::after { content: ""; display: block; width: 15.35rem; height: 1.85rem; margin: .5rem 0 0 .2rem; background: no-repeat left top / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 28' preserveAspectRatio='none'%3E%3Cpath fill='%23FD8204' d='M2 24.500C40 9 85 0 126 0c39 0 74 6 106 15 1.500.5 1 2-.5 1.700C200 12 165 8.500 126 8.500 85 9 45 16 6 27c-3 1-5.500-1.300-4-2.500z'/%3E%3C/svg%3E"); }
.cart-page { padding-top: 1.375rem; padding-bottom: 1.625rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18.125rem, 27.2%); gap: 2.1rem; align-items: stretch; }

/* ---- lines ---- */
.cart-box { background: #fff; border: 1px solid #DFE6F2; border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; }
.cart-table { table-layout: fixed; }
.cart-table thead th { padding: .5rem .875rem; font-size: 1rem; font-weight: 700; line-height: 1.33; letter-spacing: -.03em; }
.cart-table thead th:first-child { border-radius: .3125rem 0 0 0; } .cart-table thead th:last-child { border-radius: 0 .3125rem 0 0; }
.cart-table td { padding: .5rem .875rem; border-bottom: 1px solid var(--line-soft); }
.cart-table .cart-col-price { width: 14%; text-align: center; padding-right: 1.2rem; }
.cart-table .cart-col-qty { width: 20%; text-align: center; padding-left: 1.1rem; }
.cart-table .cart-col-total { width: 11%; text-align: right; padding-left: 0; padding-right: .25rem; }
.cart-table thead .cart-col-total { padding-right: 0; }
.cart-table .cart-col-remove { width: 3rem; padding-left: .7rem; padding-right: .1rem; text-align: center; }
.cart-product { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.cart-thumb { flex: none; width: 8.5rem; height: 5.25rem; border-radius: var(--r); background: #F5F8FE; display: block; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; }
.cart-product-text { min-width: 0; }
.cart-name { display: block; font-size: 1rem; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; word-spacing: .1em; margin-top: .1rem; color: var(--navy); }
.cart-name:hover { color: var(--blue); text-decoration: none; }
.cart-variant { font-size: .93rem; font-weight: 500; color: #23407A; line-height: 1.35; letter-spacing: -.035em; word-spacing: .1em; margin-top: 1px; }
.cart-dot { font-size: .6em; vertical-align: .22em; }
.cart-stock { font-size: .84rem; font-weight: 600; letter-spacing: -.03em; word-spacing: .12em; color: #2A6E14; margin-top: .4rem; gap: .5rem; }
.cart-stock-mark { flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: #4A8532; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.cart-stock-mark .ic { width: .625rem; height: .625rem; stroke-width: 3.6; }
.cart-money { font-feature-settings: "pnum"; font-size: 1.2rem; font-weight: 800; letter-spacing: -.035em; color: var(--navy); white-space: nowrap; }
.cart-qty { height: 2.2rem; border-width: 1.5px; border-color: #CFDAEA; border-radius: .34rem; vertical-align: middle; }
.cart-qty button { width: 2.2rem; }
.cart-qty button[disabled] { color: var(--navy); }
.cart-qty .ic { width: 1.25rem; height: 1.25rem; stroke-width: 2.5; }
.cart-qty input { width: 3rem; font-size: 1.1rem; border-color: #CFDAEA; }
.cart-remove { display: inline-flex; align-items: center; justify-content: center; width: 2.125rem; height: 2.125rem; border-radius: 50%; color: var(--navy); }
.cart-remove:hover { background: var(--red-soft); color: var(--red); }
.cart-remove .ic, .cart-clear .ic { display: none; }
.cart-remove::before, .cart-clear::before { content: ""; flex: none; width: 1.32rem; height: 1.32rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.500 6h17M9 6V3.500h6V6M5.500 6.500l.9 13.700a1.600 1.600 0 0 0 1.600 1.500h8a1.600 1.600 0 0 0 1.600-1.500l.9-13.700'/%3E%3Cpath stroke-width='1.700' d='M9.200 10v8M12 10v8M14.800 10v8'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.500 6h17M9 6V3.500h6V6M5.500 6.500l.9 13.700a1.600 1.600 0 0 0 1.600 1.500h8a1.600 1.600 0 0 0 1.600-1.500l.9-13.700'/%3E%3Cpath stroke-width='1.700' d='M9.200 10v8M12 10v8M14.800 10v8'/%3E%3C/svg%3E") no-repeat center / contain; }
.cart-line.is-busy { opacity: .6; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem 0 .9rem; height: 3.1rem; margin-top: auto; }
.cart-continue { display: inline-flex; align-items: center; gap: .5625rem; font-weight: 800; font-size: .94rem; letter-spacing: -.035em; word-spacing: .1em; color: var(--navy); }
.cart-continue span { text-decoration: underline; text-underline-offset: .1875rem; }
.cart-continue .ic { width: 1.125rem; height: 1.125rem; }
.cart-continue:hover { color: var(--blue); text-decoration: none; }
.cart-clear { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; letter-spacing: -.035em; word-spacing: .12em; font-weight: 600; color: var(--navy); padding: .25rem 2px; }
.cart-clear::before { width: 1.2rem; height: 1.2rem; }
.cart-clear:hover { color: var(--red); }

/* ---- order summary ---- */
.cart-summary { background: #F4F8FE; border: 1px solid #E4EBF6; border-radius: var(--r); padding: .8rem 1.0625rem .875rem 1.125rem; }
.cart-summary h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.03em; word-spacing: .08em; margin-bottom: .9rem; }
.sum-rows { margin: 0; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.106rem; font-size: 1.02rem; letter-spacing: -.035em; word-spacing: .1em; }
.sum-row dt { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 500; }
.sum-row dd { font-feature-settings: "pnum"; font-size: 1.1rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.sum-row dd.is-free { color: #2A7A14; }
.sum-q { width: .99rem; height: .99rem; border-radius: 50%; background: var(--navy); color: #fff; font-size: .7188rem; font-weight: 800; line-height: 1rem; text-align: center; }
.sum-discount dd { color: var(--green); }
.sum-code { font-size: .7812rem; font-weight: 700; letter-spacing: .02em; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px .4375rem; color: var(--navy); }
.sum-code-remove { display: inline-flex; align-items: center; justify-content: center; width: 1.375rem; height: 1.375rem; border-radius: 50%; color: var(--muted); }
.sum-code-remove:hover { background: var(--red-soft); color: var(--red); }
.sum-code-remove .ic { width: .875rem; height: .875rem; }
.sum-discount form { display: inline-flex; }
.sum-hint { font-size: .8125rem; color: var(--muted); margin: -3px 0 .1875rem; }
.sum-hint b { color: var(--navy); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; border-top: 1.5px solid #CFD9E9; margin-top: .75rem; padding-top: .7rem; color: var(--navy); font-weight: 800; font-size: 1.56rem; letter-spacing: -.03em; line-height: 1.2; }
.sum-total strong { font-feature-settings: "pnum"; font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; }
.cart-checkout { margin-top: 1.1rem; gap: .7rem; min-height: 2.96rem; font-size: 1.02rem; font-weight: 800; letter-spacing: -.03em; word-spacing: .1em; border-radius: .34rem; }
.cart-checkout .ic { width: 1.25rem; height: 1.25rem; stroke-width: 2.3; }
.sum-or { display: flex; align-items: center; gap: .92rem; margin: .46rem 0 .52rem; font-size: .9rem; color: var(--text); line-height: 1.4; }
.sum-or::before, .sum-or::after { content: ""; flex: 1; height: 1px; background: #C9D5E8; }
.cart-paypal { min-height: 2.96rem; gap: .5rem; border-radius: .34rem; background: linear-gradient(180deg, #184582 0%, #07326B 45%, #022555 100%); }
.cart-paypal:hover { background: linear-gradient(180deg, #1D4F93 0%, #0A3B7C 45%, #052D66 100%); }
.cart-paypal-mark { width: 1.3125rem; height: 1.5625rem; }
.cart-paypal-word { font-size: 1.3125rem; font-weight: 800; font-style: italic; letter-spacing: -.02em; }
.sum-secure { display: flex; align-items: center; justify-content: center; gap: .4375rem; font-size: .73rem; font-weight: 600; letter-spacing: -.03em; word-spacing: .12em; color: var(--navy); margin-top: .95rem; }
.sum-secure .ic { width: 1.05rem; height: 1.05rem; }

/* ---- suggestions / empty ---- */
.cart-suggest { margin-top: 1.375rem; }
.cart-suggest .section-heading { margin-bottom: .25rem; }
.cart-suggest .section-heading h2 { font-size: clamp(1.3125rem, 2vw, 1.6rem); letter-spacing: -.03em; word-spacing: .08em; position: relative; top: -.22rem; }
.cart-suggest .product-grid { gap: .9rem; }
.cart-suggest .product-card.is-compact { background: #F1F5FD; border: 1px solid #E6ECF7; padding-bottom: .66rem; }
.cart-suggest .product-card.is-compact .badge { display: none; }
.cart-suggest .is-compact .product-card-media { height: 7.45rem; margin-top: .2rem; }
.cart-suggest .is-compact .product-card-media img { padding: .25rem 3% 0; }
.cart-suggest .is-compact .product-card-name { margin-top: .375rem; font-weight: 700; letter-spacing: -.03em; word-spacing: .1em; font-size: clamp(12.5px, .93rem, 15px); }
.cart-suggest .product-card.is-compact .rating { margin-top: .0625rem; gap: .4rem; }
.cart-suggest .product-card.is-compact .stars { gap: .08rem; }
.cart-suggest .product-card.is-compact .stars .ic { width: 1.03rem; height: 1.03rem; }
.cart-suggest .is-compact .product-card-price { font-feature-settings: "pnum"; letter-spacing: -.03em; font-size: clamp(15.5px, 1.12rem, 18px); margin: .34rem 0 .5rem; }
.cart-suggest .product-card.is-compact .btn { width: min(100%, 10.95rem); min-height: 1.78rem; font-size: clamp(12.5px, .98rem, 16px); letter-spacing: -.03em; word-spacing: .1em; }
.cart-empty { padding-block: 2.125rem 1.625rem; }

@media (min-width: 641px) { .cart-table td { height: 6.78rem; } }
@media (min-width: 641px) and (max-width: 900px) { .cart-suggest .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem; } .cart-suggest .product-card.is-compact { padding-inline: .375rem; } }
.cart-sticky { display: none; }
@media (max-width: 1100px) {
  .cart-layout { gap: 1.25rem; grid-template-columns: minmax(0, 1fr) minmax(16.875rem, 29%); }
  .cart-thumb { width: 6rem; height: 4.25rem; }
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
}
/* phones: every line becomes a stacked card */
@media (max-width: 640px) {
  .cart-page { padding-top: 1rem; }
  .cart-box { border: 0; background: none; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cart-table tr.cart-line { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .625rem .75rem; padding: .75rem; margin-bottom: .625rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
  .cart-table td { display: block; padding: 0; border: 0; width: auto !important; text-align: left !important; }
  .cart-table td.cart-col-product { grid-column: 1 / -1; padding-right: 2.25rem; }
  .cart-table td.cart-col-price { display: flex; flex-direction: column; }
  .cart-table td.cart-col-total { display: flex; flex-direction: column; align-items: flex-end; }
  .cart-table td.cart-col-qty { justify-self: center; }
  .cart-table td.cart-col-price::before, .cart-table td.cart-col-total::before { content: attr(data-label); font-size: .75rem; font-weight: 600; color: var(--muted); }
  .cart-table td.cart-col-remove { position: absolute; top: .5rem; right: .375rem; }
  .cart-thumb { width: 5.25rem; height: 4rem; }
  .cart-money { font-size: 1rem; }
  .cart-foot { padding: .25rem 2px 0; height: auto; flex-wrap: wrap; gap: .25rem 1rem; }
  .cart-continue, .cart-clear { min-height: 2.75rem; }
  .cart-qty { height: 2.75rem; } .cart-qty button { width: 2.75rem; } .cart-qty input { font-size: 1.0625rem; }
  .cart-remove { width: 2.75rem; height: 2.75rem; }
  .cart-table td.cart-col-remove { top: .125rem; right: .125rem; padding: 0; }
  .cart-table td.cart-col-qty { padding: 0; }
  .cart-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -.25rem 1rem rgba(11, 36, 71, .1); transition: transform .2s; }
  .cart-sticky.is-hidden { transform: translateY(110%); }
  .cart-sticky .btn { min-height: 3rem; font-size: 1.0625rem; font-weight: 800; }
  .page-cart .toast-area { bottom: 5rem; }
  .cart-suggest .product-card.is-compact .btn { min-height: 2.75rem; width: 100%; }
  .page-cart .site-footer { padding-bottom: 4.5rem; }
  .cart-summary h2 { font-size: 1.375rem; }
}
