/* Shop / product archive — v0.4.6 large-catalog layout. */
.ttw-shop{background:linear-gradient(180deg,#fff 0,#f8fafc 230px,#fff 230px)}
.ttw-archive-head--shop{max-width:none!important;margin:0 0 18px!important;padding:22px 24px!important;border-radius:20px;background:linear-gradient(135deg,#fff7e9 0,#f3fbf4 56%,#fff 100%);box-shadow:0 10px 30px rgba(15,23,42,.045)}
.ttw-archive-head--shop::after{left:24px!important;bottom:0!important;width:64px!important}.ttw-archive-head--shop .ttw-archive-intro{max-width:820px;margin-top:.55rem;color:#5e6e82;font-size:.96rem;line-height:1.65}.ttw-archive-head--shop .ttw-topic-chips{margin-top:16px!important}
.ttw-shop-mobile-tools,.ttw-shop-sidebar__mobile-head,.ttw-shop-filter-backdrop{display:none}
.ttw-shop-layout{display:grid;grid-template-columns:252px minmax(0,1fr);gap:22px;align-items:start}.ttw-shop-sidebar{position:sticky;top:92px;width:100%;max-width:252px}.ttw-shop-sidebar .ttw-sidebar__box{margin-bottom:12px!important}.ttw-shop-results{min-width:0}.ttw-shop-results .woocommerce-notices-wrapper{margin-bottom:12px}
.ttw-shop-resultbar{display:flex;align-items:center;gap:12px;min-height:52px;margin:0 0 15px;padding:8px 10px 8px 14px;border:1px solid #e0e6ed;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.03)}.ttw-shop-resultbar::before{content:"Danh sách sản phẩm";color:#243247;font-size:.84rem;font-weight:650}.ttw-shop-resultbar .woocommerce-result-count{margin:0 auto 0 0!important;color:#788596;font-size:.78rem}.ttw-shop-resultbar .woocommerce-ordering{margin:0!important}.ttw-shop-resultbar .woocommerce-ordering select{min-width:190px;min-height:40px;margin:0;padding:0 34px 0 12px;border:1px solid #d6dee7;border-radius:10px;background:#fff;color:#344256;font-size:.8rem;font-weight:580}
.ttw-shop-results ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;margin:0!important;padding:0!important}.ttw-shop-results ul.products::before,.ttw-shop-results ul.products::after{display:none!important}.ttw-shop-results ul.products>li.product{float:none!important;width:auto!important;min-width:0;margin:0!important;list-style:none!important}.ttw-shop-results ul.products>li.product>.ttw-card{width:100%;height:100%;min-width:0}.ttw-shop .ttw-product-card{display:flex;flex-direction:column}.ttw-shop .ttw-card__media{aspect-ratio:1/1;background:#f8fafc}.ttw-shop .ttw-card__media img{object-fit:contain;background:#fff}.ttw-shop .ttw-card__body{display:flex;flex:1;min-height:0!important;flex-direction:column;padding:17px!important}.ttw-shop .ttw-card__title{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}.ttw-card__sku{margin-top:5px;color:#8793a2;font-size:.7rem;line-height:1.35}.ttw-shop .ttw-card__price{margin:.6rem 0 .42rem!important;font-size:1.15rem}.ttw-shop .ttw-card__status{padding:7px 9px;border-radius:9px;background:#f1f8f3;color:#42634b;font-size:.75rem;line-height:1.35}.ttw-shop .ttw-card__cta{min-height:44px;margin-top:auto!important;border-radius:11px;font-weight:620!important}
.ttw-shop .woocommerce-pagination{margin-top:24px;text-align:center}.ttw-shop .woocommerce-pagination ul{display:inline-flex;gap:7px;margin:0!important;border:0!important}.ttw-shop .woocommerce-pagination ul li{border:0!important}.ttw-shop .woocommerce-pagination .page-numbers{border-radius:10px!important}
.ttw-shop-results--single ul.products{grid-template-columns:1fr!important}.ttw-shop-results--pair ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(min-width:761px){.ttw-shop-results--single .ttw-product-card{display:grid;grid-template-columns:minmax(280px,38%) minmax(0,1fr);align-items:stretch}.ttw-shop-results--single .ttw-product-card .ttw-card__media{min-height:330px;aspect-ratio:auto;border-right:1px solid #e5ebf1}.ttw-shop-results--single .ttw-product-card .ttw-card__body{justify-content:center;padding:26px!important}.ttw-shop-results--single .ttw-product-card .ttw-card__title{font-size:1.28rem!important;max-width:620px}.ttw-shop-results--single .ttw-product-card .ttw-card__cta{width:auto;min-width:220px;align-self:flex-start;padding-inline:20px}}
@media(max-width:1060px){.ttw-shop-layout{grid-template-columns:230px minmax(0,1fr);gap:18px}.ttw-shop-sidebar{max-width:230px}.ttw-shop-results:not(.ttw-shop-results--single) ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){.ttw-shop-mobile-tools{display:flex;justify-content:flex-end;margin:0 0 12px}.ttw-shop-filter-toggle{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid #ccd6e1;border-radius:11px;background:#fff;color:#253247;font-weight:620;box-shadow:0 8px 20px rgba(15,23,42,.05)}.ttw-shop-filter-toggle::before{content:"☰";font-size:.9rem}.ttw-shop-layout{display:block}.ttw-shop-sidebar{position:fixed!important;inset:0 auto 0 0;z-index:1002;display:block!important;width:min(88vw,360px);max-width:none;overflow:auto;padding:14px;background:#f6f8fb;box-shadow:0 0 56px rgba(15,23,42,.22);transform:translateX(-105%);transition:transform .22s ease}.ttw-shop-sidebar>*{margin-bottom:12px!important}.ttw-shop-sidebar__mobile-head{display:flex!important;align-items:center;justify-content:space-between;padding:4px 2px 8px!important;border:0!important;background:transparent!important;box-shadow:none!important}.ttw-shop-filter-close{width:44px;height:44px;border:0;border-radius:50%;background:#fff;font-size:1.6rem;cursor:pointer}.ttw-shop-filter-backdrop{position:fixed;inset:0;z-index:1001;background:rgba(2,6,23,.52)}body.ttw-shop-filter-open{overflow:hidden}body.ttw-shop-filter-open .ttw-shop-sidebar{transform:none}body.ttw-shop-filter-open .ttw-shop-filter-backdrop{display:block}.ttw-shop-sidebar[aria-hidden="true"]{visibility:hidden}.ttw-shop-sidebar[aria-hidden="false"]{visibility:visible}.ttw-shop-results ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.ttw-archive-head--shop{padding:18px 16px!important;border-radius:17px}.ttw-archive-head--shop::after{left:16px!important}.ttw-shop-filter-toggle{width:100%}.ttw-shop-resultbar{align-items:stretch;flex-direction:column;gap:7px;padding:11px}.ttw-shop-resultbar .woocommerce-result-count{margin:0!important}.ttw-shop-resultbar .woocommerce-ordering,.ttw-shop-resultbar .woocommerce-ordering select{width:100%;min-width:0}.ttw-shop-results ul.products{grid-template-columns:1fr!important;gap:14px!important}.ttw-shop-results--single .ttw-product-card .ttw-card__media{aspect-ratio:16/10!important}.ttw-shop .ttw-card__title{min-height:0}}
@media(prefers-reduced-motion:reduce){.ttw-shop-sidebar{transition:none!important}}

/* v0.4.7 — logged-in QA: keep desktop catalog rail below admin + site headers. */
body.admin-bar .ttw-shop-sidebar{top:calc(92px + var(--wp-admin--admin-bar--height,32px))}
@media(max-width:900px){body.admin-bar .ttw-shop-sidebar{top:0}}
