/* Shared header rhythm and native-cart layouts, isolated to /test. */
@media(min-width:900px){
  .tc-header-inner{grid-template-columns:104px minmax(0,1fr) 48px 48px;grid-template-areas:"logo search menu cart";gap:8px;padding:18px 32px}
  .tc-header .searchbar{gap:8px}
  .tc-page .tc-header-inner #cart-toggle{grid-area:cart;position:relative;inset:auto;display:grid;place-items:center;min-width:48px;width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:var(--r-btn-lg);box-shadow:none}
  .tc-header-inner #cart-toggle svg{width:20px;height:20px;stroke-width:1.75}
  .tc-header-inner #cart-count{position:absolute;top:3px;right:3px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border-radius:8px;background:var(--white);color:var(--green-dark);font-size:10px;line-height:1;font-weight:600}
  .tc-header-inner #cart-toggle[data-has-items=false] #cart-count{display:none}
  .tc-header-inner .tc-mobile-menu:not([hidden]){right:92px}
}
.tc-page #cart-panel[hidden],.tc-cart-summary [hidden],.tc-cart-notice[hidden],.tc-cart-mobile-bar[hidden],.tc-cart-find[hidden],.tc-cart-find [hidden],.tc-page .cart-item[hidden]{display:none!important}
.tc-page #cart-panel{width:560px;max-width:100vw;padding:0;gap:0;box-shadow:-8px 0 36px #0000000c;background:var(--bg)}
.tc-page .cart-backdrop{background:#14141440}
.tc-page .cart-panel-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title close" "caption clear";align-items:center;gap:3px 16px;padding:22px 24px 18px;background:var(--bg)}
.tc-page .cart-panel-header h2{grid-area:title;margin:0;text-align:left;font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.5px}
.tc-cart-caption{grid-area:caption;color:var(--gray);font-size:12px;line-height:1.5}
.tc-page #cart-close{grid-area:close;position:relative;justify-self:end;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:var(--r-control);appearance:none;-webkit-appearance:none;color:var(--gray);background:var(--photobg);font-size:0;line-height:0;transform:none}
.tc-page #cart-close svg{display:none}
.tc-page #cart-close::before,.tc-page #cart-close::after{content:'';position:absolute;left:50%;top:50%;width:19px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}
.tc-page #cart-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.tc-page #cart-close:hover{color:var(--ink)}
.tc-page #cart-panel.tc-cart-pointer-focus #cart-close:focus-visible{outline:none}
.tc-page .cart-close-glyph-mobile{display:none}.tc-page .cart-close-glyph-desktop{display:block;line-height:1}
.tc-page #cart-clear{grid-area:clear;justify-self:end;min-height:44px;margin:0;padding:4px 0;color:var(--gray);font-size:12px;text-decoration:none}
.tc-page #cart-clear:hover{color:var(--ink)}
.tc-page .cart-scroll{padding:0 24px 24px;min-height:80px}
.tc-page .cart-items{padding:0;display:grid;gap:12px}
.tc-page .cart-item{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) 134px;gap:16px;padding:16px;align-items:start;border:0;border-radius:var(--r-card);background:var(--white)}
.tc-page .cart-item+.cart-item{border-top:0}
.tc-page .cart-item:first-child{padding-top:16px}
.tc-page .cart-item-thumb{display:block;width:72px;height:72px;flex:none;align-self:start;border-radius:var(--r-control);overflow:hidden;background:var(--photobg)}
.tc-page .cart-item-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.tc-page .cart-item-name{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:14px;line-height:1.5}
.tc-page .cart-item-link{color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.tc-page .cart-item-link:hover{color:var(--green-dark)}
.tc-page .cart-item-name .article{font-size:11px;line-height:1.5;color:var(--gray)}
.cart-item-unit{font-size:12px;line-height:1.5;color:var(--gray)}
.tc-page .cart-item-group-note{font-size:11px;line-height:1.5;color:var(--gray)}
.tc-page .cart-item-right{display:flex;flex-direction:column;align-items:flex-end;gap:16px;min-width:0}
.cart-item-total{text-align:right;font-size:18px;line-height:1.3;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.tc-page .cart-item .remove-btn{display:grid;place-items:center;align-self:flex-start;width:44px;height:44px;min-height:44px;margin:0;padding:14px;border:0;background:transparent;color:var(--gray);border-radius:var(--r-control)}
.tc-page .cart-item .remove-btn svg{display:block;width:16px;height:16px;stroke-width:1.75}
.tc-cart-item-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-height:32px}
.tc-page .tc-cart-item-meta .remove-btn{flex:none;margin:0}
.tc-page .cart-item .remove-btn:hover{color:var(--ink);background:var(--photobg)}
.tc-page .cart-item .qty-stepper{display:flex;justify-content:space-between;width:134px;height:44px;gap:0;background:var(--photobg);border-radius:var(--r-control)}
.tc-page .cart-item .qty-btn{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:12px;border:0;background:transparent;border-radius:var(--r-control)}
.tc-page .cart-item .qty-btn svg{width:16px;height:16px}
.tc-page .cart-item .qty-btn:hover:not(:disabled){color:var(--ink);background:transparent}
.tc-page .cart-item .qty-input{width:46px;height:36px;font-size:16px}
.tc-cart-summary{flex:none;margin:0;padding:20px 24px;background:var(--white);border-radius:var(--r-card) var(--r-card) 0 0;box-shadow:0 -6px 24px #00000003}
.tc-cart-summary-title{display:none}
.tc-cart-quantity{margin:0 0 8px;color:var(--gray);font-size:12px}
.tc-page .cart-total{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:0;margin:0 0 18px;font-size:15px;line-height:1.3;font-weight:500}
.tc-page .cart-total strong{font-size:28px;letter-spacing:-.5px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.tc-cart-manager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:12px;color:var(--gray)}
.tc-cart-manager-field{position:relative;display:block;flex:0 0 144px;max-width:70%}
.tc-cart-manager select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-width:0;max-width:none;height:44px;margin:0;padding:10px 40px 10px 14px;border:0;border-radius:var(--r-control);background:var(--photobg);font:inherit;font-size:13px;line-height:24px;color:var(--ink);cursor:pointer}
.tc-cart-manager-field>svg{position:absolute;right:14px;top:50%;transform:translateY(-50%);display:block;width:16px;height:16px;stroke-width:1.75;color:var(--gray);pointer-events:none}
.tc-page .cart-actions{display:flex;flex-direction:row;gap:10px;margin:0;padding:0;align-items:stretch}
.tc-page #whatsapp-buttons{order:0;display:block;flex:1;min-width:0}
.tc-page #whatsapp-buttons button{display:flex;justify-content:center;align-items:center;min-height:48px;width:100%;padding:12px 18px;border-radius:var(--r-btn-lg);font-size:14px;line-height:1.5}
.tc-page #copy-order{order:1;display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px;border:0;border-radius:var(--r-btn-lg);background:var(--photobg);color:var(--ink);font-size:13px;font-weight:500}
.tc-page #copy-order.tc-cart-copy-icon{flex:0 0 48px;width:48px}
.tc-page #copy-order svg{display:block;width:18px;height:18px;stroke-width:1.75}
.tc-page #copy-order:hover{background:var(--border)}
.tc-page .tc-cart-copy-only #copy-order{flex:1;background:var(--green);color:var(--on-accent);min-height:48px;font-size:14px}
.tc-cart-send-note{margin:8px 0 0;font-size:11px;line-height:1.5;text-align:center;color:var(--gray)}
.tc-cart-full-link{display:flex;justify-content:center;align-items:center;box-sizing:border-box;gap:8px;width:100%;height:48px;min-height:48px;margin:12px 0 0;padding:0 16px;border-radius:var(--r-control);background:var(--photobg);color:var(--ink);text-decoration:none;font-size:14px;line-height:20px;font-weight:500}
.tc-cart-full-label{display:block;line-height:20px}
.tc-cart-full-link svg{display:block;flex:none;width:18px;height:18px}
.tc-cart-full-link:hover{background:var(--border);color:var(--ink);text-decoration:none}
.tc-page #cart-panel :is(a,button,select,input):focus-visible{outline:2px solid var(--focus-ink);outline-offset:2px}
.tc-page #cart-panel .qty-input:focus-visible{outline-offset:-2px}
.tc-page #cart-refresh-status{margin:0 24px 12px;padding:10px 12px;border:0;border-radius:var(--r-control);font-size:12px;text-align:left;justify-content:flex-start}
.tc-cart-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 24px 12px;padding:10px 14px;border-radius:var(--r-control);background:var(--photobg);font-size:13px;line-height:1.5}
.tc-cart-undo{flex:none;min-height:32px;padding:4px 6px;border:0;background:transparent;color:var(--green-dark);font:inherit;font-weight:600;cursor:pointer}
.tc-cart-empty .tc-cart-summary{display:none}
.tc-cart-incomplete .tc-cart-summary{display:none}
.tc-cart-loading-state{padding:24px 16px;border-radius:var(--r-card);background:var(--white);color:var(--gray);font-size:14px;line-height:1.6}
.tc-cart-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;padding:32px 0;text-align:center}
.tc-cart-empty-icon{display:grid;place-items:center;width:72px;height:72px;margin-bottom:20px;border-radius:var(--r-card);background:var(--photobg);color:var(--gray)}
.tc-cart-empty-icon svg{width:32px;height:32px}
.tc-cart-empty-state h2{margin:0 0 10px;font-size:22px;line-height:1.3;font-weight:600;letter-spacing:-.5px}
.tc-cart-empty-state p{max-width:300px;margin:0 0 24px;color:var(--gray);font-size:13px;line-height:1.6}
.tc-page #cart-together,.tc-page #cart-nudge{margin:24px 0 0;padding:0;border:0;background:transparent}
.tc-page .cart-nudge-title{margin:0 0 12px;font-size:16px;line-height:1.4;font-weight:600;color:var(--ink)}
.tc-page .cart-nudge-list{display:grid;gap:10px}
.tc-page .cart-nudge-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:12px;border:0;border-radius:var(--r-card);padding:12px;background:var(--white)}
.tc-cart-suggestion-photo{display:block;width:64px;height:64px;border-radius:var(--r-control);overflow:hidden;background:var(--photobg)}
.tc-cart-suggestion-photo img{display:block;width:100%;height:100%;object-fit:contain}
.tc-page .cart-nudge-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.tc-page .cart-nudge-name{font-size:13px;line-height:1.45;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.tc-page .cart-nudge-name:hover{color:var(--green-dark)}
.tc-cart-suggestion-price{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.tc-page .cart-nudge-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.5;color:var(--gray)}
.tc-page .cart-nudge-add{align-self:center;min-width:44px;min-height:44px;padding:10px 12px;border:0;border-radius:var(--r-control);background:var(--green-bg);color:var(--green-dark);font-size:12px;font-weight:600}
.tc-page .cart-nudge-add:hover{background:var(--green-border)}
.seo-cart-page .seo-catalog{max-width:1248px}
.seo-cart-page #cart-panel{position:static;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) 328px;align-items:start;gap:24px;width:100%;max-width:none;height:auto;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none;background:transparent;z-index:auto}
.seo-cart-page .cart-panel-header{grid-column:1/-1;padding:0;background:transparent;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title clear" "caption clear"}
.seo-cart-page .cart-panel-header h1{grid-area:title;margin:0;font-size:32px;line-height:1.25;letter-spacing:-.6px;font-weight:600}
.seo-cart-page #cart-close{display:none}
.seo-cart-page .cart-scroll{grid-column:1;padding:0;overflow:visible;max-height:none}
.seo-cart-page .tc-cart-summary{grid-column:2;position:sticky;top:calc(var(--header-h) + 24px);padding:24px;border-radius:var(--r-card)}
.seo-cart-page .tc-cart-summary-title{display:block;margin:0 0 16px;font-size:20px;line-height:1.3;font-weight:600}
.seo-cart-page .cart-item{grid-template-columns:88px minmax(0,1fr) 134px;gap:20px;padding:20px}
.seo-cart-page .cart-item-thumb{width:88px;height:88px}
.seo-cart-page .cart-item .qty-stepper{justify-self:end}
.seo-cart-page #cart-refresh-status,.seo-cart-page .tc-cart-notice{grid-column:1/-1;margin:0}
.seo-cart-page .tc-cart-empty .cart-scroll{grid-column:1/-1}
.seo-cart-page .tc-cart-empty-state{min-height:380px}
.tc-cart-find{margin:0 0 24px}.tc-cart-find input{width:100%;height:46px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--r-control);background:var(--photobg);color:var(--ink);font:inherit;font-size:16px}.tc-cart-find-status{margin:8px 0 0;color:var(--gray);font-size:12px;line-height:1.5}
.tc-cart-mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:35;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));background:var(--white);box-shadow:0 -6px 24px #00000008}
.tc-cart-mobile-bar>div{display:flex;flex-direction:column;gap:2px}.tc-cart-mobile-bar>div>span{font-size:11px;color:var(--gray)}.tc-cart-mobile-bar strong{font-size:20px;font-variant-numeric:tabular-nums;white-space:nowrap}.tc-cart-mobile-bar button{min-width:150px}
@media(max-width:1100px) and (min-width:900px){.seo-cart-page #cart-panel{grid-template-columns:minmax(0,1fr) 300px;gap:24px}.seo-cart-page .tc-cart-summary{padding:20px}.seo-cart-page .cart-item{grid-template-columns:80px minmax(0,1fr);gap:12px 16px}.seo-cart-page .cart-item-thumb{width:80px;height:80px;grid-row:1/3}.seo-cart-page .cart-item-right{grid-column:2;grid-template-columns:1fr 134px 32px;gap:8px}.seo-cart-page .cart-item-total{grid-column:1;grid-row:1;text-align:left}.seo-cart-page .cart-item .qty-stepper{grid-column:2;grid-row:1}.seo-cart-page .remove-btn{grid-column:3;grid-row:1}}
@media(max-width:899px){.seo-cart-page #cart-panel{grid-template-columns:minmax(0,1fr);gap:20px}.seo-cart-page .tc-cart-summary{grid-column:1;position:static;scroll-margin-top:calc(var(--header-h) + 20px)}.seo-cart-page #cart-toggle{display:none!important}.seo-cart-page .cart-panel-header h1{font-size:28px}.seo-cart-page .cart-item{grid-template-columns:88px minmax(0,1fr) 178px;gap:16px}.seo-cart-page .cart-item-thumb{width:88px;height:88px}.seo-cart-page .fab-stack{bottom:20px}.seo-cart-page.tc-cart-mobile-visible .fab-stack{bottom:calc(var(--tc-cart-bar-height,64px) + 16px)}.tc-page #cart-panel{padding-bottom:env(safe-area-inset-bottom,0px)}}
@media(max-width:620px){.tc-page #cart-panel{width:100%;max-height:100dvh}.tc-page .cart-panel-header{padding:16px 20px 10px}.tc-page .cart-panel-header h2{font-size:22px}.tc-page .cart-scroll{padding:0 20px 20px}.tc-page .cart-item,.seo-cart-page .cart-item{grid-template-columns:72px minmax(0,1fr);gap:10px 14px;padding:0 0 24px}.tc-page .cart-item-thumb,.seo-cart-page .cart-item-thumb{width:72px;height:72px;grid-row:1/3}.tc-page .cart-item-name{font-size:13px}.tc-page .cart-item-right{grid-column:2;grid-template-columns:minmax(0,1fr) 44px;gap:10px 12px}.tc-page .cart-item-total,.seo-cart-page .cart-item-total{grid-column:1/-1;text-align:left;font-size:18px}.tc-page .cart-item-right .remove-btn{width:44px;height:44px}.tc-page .cart-item .qty-stepper{justify-self:start;grid-column:1;grid-row:2}.tc-page .tc-cart-summary{padding:18px 20px}.tc-page .cart-total{margin-bottom:12px}.tc-page .cart-total strong{font-size:26px}.tc-cart-full-link{margin-top:6px;min-height:32px}.tc-cart-send-note{margin-top:4px}.tc-cart-manager{margin-bottom:10px}.tc-page #copy-order{min-height:32px}.tc-page #cart-refresh-status,.tc-cart-notice{margin:0 20px 10px}.seo-cart-page #cart-panel{max-height:none;padding:0}.seo-cart-page .cart-panel-header{padding:0}.seo-cart-page .cart-scroll{padding:0}.seo-cart-page .tc-cart-summary{padding:20px}.seo-cart-page #cart-clear{font-size:11px}.seo-cart-page #cart-refresh-status,.seo-cart-page .tc-cart-notice{margin:0}.tc-cart-empty-state{min-height:260px;padding:24px 0}.tc-cart-empty-state h2{font-size:20px}.tc-cart-mobile-bar{gap:12px}.tc-cart-mobile-bar button{min-width:130px}}
@media(max-height:620px){.tc-page:not(.seo-cart-page) #cart-panel{overflow-y:auto}.tc-page:not(.seo-cart-page) .cart-scroll{flex:none;overflow:visible;min-height:0}.tc-page:not(.seo-cart-page) .cart-panel-header{position:sticky;top:0;z-index:2}}
@media(max-width:1100px) and (min-width:900px){.seo-cart-page .cart-item{padding:18px}.seo-cart-page .cart-item-right{flex-direction:row;justify-content:space-between}.seo-cart-page .cart-item-total{font-size:18px}.seo-cart-page .cart-item .qty-stepper{flex:none}}
@media(max-width:899px) and (min-width:621px){.seo-cart-page .cart-item{grid-template-columns:80px minmax(0,1fr) 134px;padding:18px}}
@media(max-width:620px){.tc-page .cart-item,.seo-cart-page .cart-item{padding:14px}.tc-page .cart-item:first-child{padding-top:14px}.tc-page .cart-item-name{padding-right:22px}.tc-page .cart-item .remove-btn{position:absolute;top:8px;right:6px;margin:0}.tc-page .cart-item-right{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.tc-page .cart-item .qty-stepper{flex:none}.tc-page #copy-order{min-height:48px}.tc-page .cart-nudge-item{grid-template-columns:56px minmax(0,1fr);gap:10px}.tc-cart-suggestion-photo{width:56px;height:56px;grid-row:1/3}.tc-page .cart-nudge-add{grid-column:2;justify-self:start;padding:8px 14px}.tc-page .cart-nudge-info{gap:4px}}
.tc-page .tc-header :is(.tc-mobile-menu-toggle,.tc-search-scan)>svg,.tc-page #cart-toggle>svg{display:block;width:20px;height:20px;flex:none;stroke-width:1.75}
.tc-page .cart-item .qty-btn svg{stroke-width:1.75}
@media(max-width:620px){.tc-page .cart-item .remove-btn{top:2px;right:2px}.tc-page .cart-item-name{padding-right:30px}.tc-cart-full-link{min-height:44px}}
@media(forced-colors:active){.tc-cart-manager-field>svg{display:none}.tc-cart-manager select{appearance:auto;-webkit-appearance:auto}}

/* The quick cart is the only cart entry on phones and tablets. */
@media(max-width:899px){.tc-cart-full-link{display:none}}

/* Keep more cart items visible above the order summary. */
.tc-page:not(.seo-cart-page) .tc-cart-summary{padding:14px 24px}
.tc-page:not(.seo-cart-page) .tc-cart-quantity{display:none}
.tc-page .cart-item .qty-btn:active:not(:disabled){color:var(--ink);background:var(--border)}
@media(max-width:899px){.tc-page:not(.seo-cart-page) .tc-cart-summary{padding:12px 20px}.tc-page:not(.seo-cart-page) .cart-total{margin-bottom:8px}.tc-page:not(.seo-cart-page) .tc-cart-manager{margin-bottom:8px}.tc-page:not(.seo-cart-page) .tc-cart-send-note{display:none}}
