/* WholesaleKB cabinet shop v3 - charcoal / glass, card-based product grid */
.cs-wrap { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); padding: 20px max(24px, calc(50vw - 720px)) 120px; box-sizing: border-box; color: #fff; }
.cs-wrap [hidden] { display: none !important; }

@keyframes csIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cs-anim { opacity: 0; animation: csIn .6s ease forwards; animation-delay: calc(var(--i, 0) * .08s); }
@media (prefers-reduced-motion: reduce) { .cs-anim { animation: none; opacity: 1; } }

.cs-title { text-align: center; font-size: 2.5rem; font-weight: 300; letter-spacing: 1px; margin: 10px 0 14px; background: linear-gradient(45deg, #ffffff, #e0e0e0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cs-title--left { text-align: left; margin: 0 0 6px; font-size: 2.4rem; }
.cs-subtitle { text-align: center; font-size: 1.1rem; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0 0 40px; }
.cs-lead { color: rgba(255,255,255,.7); font-size: 1.05rem; margin: 0 0 20px; }
.cs-count { font-weight: 400; color: rgba(255,255,255,.6); font-size: .8em; margin-left: 8px; }

.cs-crumbs { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-bottom: 26px; color: rgba(255,255,255,.5); }
.cs-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.cs-crumbs a:hover, .cs-crumbs strong { color: #fff; }
.cs-cart-link { margin-left: auto; padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.06); transition: background .2s; }
.cs-cart-link:hover { background: rgba(255,255,255,.14); }
.cs-cart-link span { display: inline-block; min-width: 22px; text-align: center; margin-left: 6px; background: #fff; color: #1a1a1a; border-radius: 999px; font-weight: 700; font-size: .8rem; padding: 1px 6px; }

.cs-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 40px; margin-top: 10px; }
.cs-type { display: block; color: #fff; text-decoration: none; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.cs-type:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,.3); border-color: rgba(255,255,255,.3); color: #fff; }
.cs-type-img { height: 300px; background: rgba(255,255,255,.02) center/contain no-repeat; transition: transform .5s ease; }
.cs-type:hover .cs-type-img { transform: scale(1.03); }
.cs-type-body { padding: 30px; text-align: center; }
.cs-type-body h2 { font-size: 1.8rem; font-weight: 600; margin: 0 0 12px; }
.cs-type-body p { color: rgba(255,255,255,.8); line-height: 1.6; margin: 0; }

.cs-coll { margin: 0 0 56px; }
.cs-coll > h2 { font-size: 1.7rem; font-weight: 600; text-align: center; color: rgba(255,255,255,.92); margin: 0 0 26px; }
.cs-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 26px; justify-items: center; }
.cs-style { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; text-decoration: none; width: 100%; max-width: 240px; transition: transform .35s ease; }
.cs-style-img { display: block; width: 100%; aspect-ratio: 4 / 5; }
.cs-style-img img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); transition: transform .35s ease, filter .35s ease; }
.cs-style:hover { transform: translateY(-6px); color: #fff; }
.cs-style:hover .cs-style-img img { transform: scale(1.04); filter: drop-shadow(0 28px 38px rgba(0,0,0,.55)); }
.cs-style-name { font-size: 1.15rem; font-weight: 600; text-align: center; letter-spacing: .3px; }
.cs-style-tag { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: -8px; }

.cs-style-head { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: stretch; margin-bottom: 36px; padding: 30px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.cs-style-hero-wrap { position: relative; min-height: 260px; }
.cs-style-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); }
.cs-spec h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 12px; color: rgba(255,255,255,.9); }
.cs-spec ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 8px 30px; }
.cs-spec li { position: relative; padding-left: 18px; color: rgba(255,255,255,.75); line-height: 1.55; font-size: .95rem; }
.cs-spec li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.cs-spec li strong { color: #fff; font-weight: 600; }

.cs-toolbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 25px; margin: 0 0 10px; border-radius: 15px; background: rgba(38,38,38,.92); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.cs-search { flex: 1 1 300px; min-width: 260px; }
.cs-search input { width: 100%; font: inherit; font-size: 1rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 25px; padding: 12px 20px; outline: none; transition: background .3s, border-color .3s; }
.cs-search input::placeholder { color: rgba(255,255,255,.5); }
.cs-search input:focus { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.45); }
.cs-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.cs-tab { font: inherit; font-size: .9rem; font-weight: 500; color: #fff; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2); border-radius: 20px; padding: 8px 16px; cursor: pointer; transition: background .3s, transform .3s; }
.cs-tab:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.cs-tab.is-active { background: linear-gradient(45deg, #ffffff, #e0e0e0); color: #333; border-color: #fff; }
.cs-results { text-align: center; color: rgba(255,255,255,.7); margin: 6px 0 26px; font-size: 1.05rem; }

.cs-group { margin-bottom: 60px; }
.cs-group-title { display: flex; align-items: baseline; font-size: 2rem; font-weight: 600; margin: 0 0 30px; padding: 20px 0; border-bottom: 2px solid rgba(255,255,255,.2); }
.cs-group-title .cs-count { margin-left: auto; font-size: 1.1rem; }
.cs-sub { margin-bottom: 40px; }
.cs-sub-title { display: flex; align-items: center; justify-content: space-between; font-size: 1.35rem; font-weight: 500; margin: 0 0 20px; padding: 15px 20px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.cs-sub-title .cs-count { font-size: 1rem; }

.cs-sub { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: stretch; padding: 22px; margin-bottom: 26px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s; }
.cs-sub:hover { border-color: rgba(255,255,255,.22); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.cs-sub-img { display: flex; }
.cs-sub-img a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 180px; border-radius: 14px; overflow: hidden; background: #fff; padding: 10px; box-sizing: border-box; }
.cs-sub-img img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; display: block; transition: transform .35s ease; }
.cs-sub-img a:hover img { transform: scale(1.04); }
.cs-sub-title { display: flex; align-items: baseline; font-size: 1.25rem; font-weight: 600; margin: 2px 0 14px; padding: 0; background: none; border: 0; color: #fff; }
.cs-sub-title .cs-count { font-size: .9rem; }
.cs-sub-body { min-width: 0; }
.cs-table-wrap { overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.cs-table th { text-align: left; font-weight: 500; color: rgba(255,255,255,.55); padding: 0 10px 10px; border-bottom: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.cs-table td { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.cs-table tr:last-child td { border-bottom: 0; }
.cs-table tbody tr { transition: background .15s; }
.cs-table tbody tr:hover { background: rgba(255,255,255,.04); }
.cs-card-sku { display: inline-block; background: rgba(0,0,0,.55); color: #fff; text-decoration: none; padding: 5px 11px; border-radius: 10px; font-size: .85rem; font-weight: 700; letter-spacing: .3px; border: 1px solid rgba(255,255,255,.2); white-space: nowrap; transition: background .2s; }
.cs-card-sku:hover { background: rgba(255,255,255,.18); color: #fff; }
.cs-dims { min-width: 26ch; }
.cs-dims strong { display: block; font-weight: 600; white-space: nowrap; font-size: 1rem; }
.cs-desc { color: rgba(255,255,255,.62); font-size: .86rem; white-space: normal; overflow: visible; max-width: 54ch; margin-top: 3px; letter-spacing: .1px; line-height: 1.35; }
.cs-price { font-size: 1.15rem; font-weight: 700; color: #fff; white-space: nowrap; }
.cs-na { color: rgba(255,255,255,.3); }
.cs-hinge select { font: inherit; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 6px 8px; }
.cs-hinge select option { color: #1a1a1a; }
.cs-asm label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; }
.cs-asm input { width: 16px; height: 16px; accent-color: #fff; }
.cs-asm em { font-style: normal; color: rgba(255,255,255,.6); font-size: .88em; }
.cs-qty { display: inline-flex; align-items: center; gap: 6px; }
.cs-qty-btn { width: 28px; height: 28px; border-radius: 50%; font: inherit; font-size: 1.05rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.cs-qty-btn:hover { background: rgba(255,255,255,.22); }
.cs-qty input { width: 44px; text-align: center; font: inherit; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 5px; outline: none; -moz-appearance: textfield; }
.cs-qty input::-webkit-outer-spin-button, .cs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cs-add-btn { font: inherit; font-size: .88rem; font-weight: 600; color: #333; background: linear-gradient(45deg, #ffffff, #e0e0e0); border: 0; border-radius: 20px; padding: 9px 18px; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap; }
.cs-add-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,.2); }
.cs-add-btn.is-done { background: linear-gradient(45deg, #4CAF50, #45a049); color: #fff; }
.cs-add-btn:disabled { cursor: default; transform: none; }

.cs-btn { font: inherit; display: inline-block; text-decoration: none; text-align: center; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 9px 16px; cursor: pointer; transition: background .2s; }
.cs-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.cs-btn-primary { background: linear-gradient(45deg, #ffffff, #e0e0e0); color: #1a1a1a; border-color: #fff; font-weight: 600; }
.cs-btn-primary:hover { background: #fff; color: #1a1a1a; }

.cs-cart { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 320px; max-width: calc(100vw - 32px); border-radius: 18px; background: rgba(30,30,30,.96); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 20px 50px rgba(0,0,0,.5); backdrop-filter: blur(14px); overflow: hidden; }
.cs-cart-toggle { width: 100%; display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; color: #fff; background: none; border: 0; padding: 14px 18px; cursor: pointer; text-align: left; }
.cs-cart-toggle span { color: rgba(255,255,255,.55); font-weight: 400; font-size: .9rem; }
.cs-cart-toggle strong { margin-left: auto; }
.cs-cart-toggle::after { content: ''; width: 8px; height: 8px; border-right: 2px solid rgba(255,255,255,.6); border-bottom: 2px solid rgba(255,255,255,.6); transform: rotate(45deg); margin: 0 4px 4px 8px; transition: transform .25s; }
.cs-cart.is-open .cs-cart-toggle::after { transform: rotate(-135deg); margin-bottom: -2px; }
.cs-cart-panel { display: none; padding: 0 18px 18px; }
.cs-cart.is-open .cs-cart-panel { display: block; }
.cs-cart-items { list-style: none; margin: 0 0 12px; padding: 0; max-height: 34vh; overflow: auto; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.1); }
.cs-cart-items li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); animation: csIn .3s ease; }
.cs-cart-items li span { color: rgba(255,255,255,.55); }
.cs-cart-items li small { display: block; color: rgba(255,255,255,.45); }
.cs-cart-items li > div:last-child { text-align: right; white-space: nowrap; }
.cs-cart-empty { color: rgba(255,255,255,.5); border-bottom: 0 !important; }
.cs-rm { font: inherit; margin-left: 8px; color: rgba(255,255,255,.5); background: none; border: 0; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cs-rm:hover { color: #fff; }
.cs-cart-foot { display: grid; gap: 8px; }
.cs-cart-sub { display: flex; justify-content: space-between; padding: 6px 0; }

.cs-empty { text-align: center; padding: 60px 20px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.cs-empty p { color: rgba(255,255,255,.7); max-width: 60ch; margin: 10px auto 22px; }
.cs-noresults { padding: 40px; text-align: center; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.cs-noresults code { background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 5px; }
.cs-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #fff; color: #1a1a1a; padding: 12px 20px; border-radius: 10px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .2s ease, transform .2s ease; z-index: 50; }
.cs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cs-toast.is-bad { background: #d9534f; color: #fff; }

@media (max-width: 900px) {
    .cs-style-head { grid-template-columns: 1fr; text-align: center; padding: 22px; }
    .cs-title--left { text-align: center; }
    .cs-spec ul { text-align: left; grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .cs-title { font-size: 2rem; }
    .cs-type-grid { grid-template-columns: 1fr; }
    .cs-style-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
    .cs-toolbar { position: static; padding: 16px; }
    .cs-sub { grid-template-columns: 1fr; }
    .cs-sub-img { max-width: 170px; }
    .cs-table { min-width: 0; }
    .cs-table thead { display: none; }
    .cs-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .cs-table td { display: block; padding: 0; border: 0; }
    .cs-model, .cs-dims, .cs-add { grid-column: 1 / -1; }
    .cs-dims strong { white-space: normal; }
    .cs-desc { white-space: normal; }
    .cs-sub-img a { min-height: 0; }
    .cs-add-btn { width: 100%; }
    .cs-group-title { font-size: 1.5rem; }
    .cs-cart { right: 12px; left: 12px; width: auto; bottom: 12px; }
}
/* image lightbox */
.cs-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.cs-lightbox.is-on { opacity: 1; }
.cs-lightbox[hidden] { display: none !important; }
.cs-lightbox-box { position: relative; background: #fff; border-radius: 20px; padding: 28px 28px 20px; max-width: min(92vw, 860px); max-height: 90vh; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translateY(14px) scale(.97); transition: transform .25s ease; display: flex; flex-direction: column; align-items: center; }
.cs-lightbox.is-on .cs-lightbox-box { transform: none; }
.cs-lightbox-box img { max-width: 100%; max-height: calc(90vh - 120px); object-fit: contain; display: block; }
.cs-lightbox-cap { margin-top: 14px; color: #333; font-weight: 600; font-size: 1.05rem; text-align: center; }
.cs-lightbox-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #1a1a1a; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: transform .2s; }
.cs-lightbox-close:hover { transform: rotate(90deg); }
.cs-sub-img a { cursor: zoom-in; }
/* single product page */
.cs-product { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 40px; align-items: start; padding: 30px; margin-bottom: 30px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.cs-product-img .cs-sub-img a { min-height: 320px; }
.cs-product-info .cs-card-sku { font-size: 1rem; padding: 7px 14px; margin-bottom: 14px; }
.cs-product-info .cs-title { margin: 10px 0 8px; }
.cs-product-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 22px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.cs-product-meta dt { color: rgba(255,255,255,.5); }
.cs-product-meta dd { margin: 0; color: #fff; }
.cs-price--big { font-size: 2rem; margin-bottom: 14px; }
.cs-product-buy .cs-card-opts { font-size: 1rem; margin-bottom: 18px; }
.cs-product-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-product-actions .cs-qty-btn { width: 36px; height: 36px; }
.cs-product-actions .cs-qty input { width: 56px; padding: 8px; font-size: 1rem; }
.cs-add-btn--big { font-size: 1rem; padding: 13px 30px; border-radius: 25px; }
.cs-product-note { margin: 16px 0 0; color: rgba(255,255,255,.55); font-size: .88rem; }
@media (max-width: 900px) { .cs-product { grid-template-columns: 1fr; padding: 22px; } .cs-product-img .cs-sub-img a { min-height: 0; } }
/* themed form controls */
.cs-hinge select, .cs-card-opts select { -webkit-appearance: none; appearance: none; font: inherit; font-size: .9rem; color: #fff; background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 7px 32px 7px 14px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.cs-hinge select:hover, .cs-card-opts select:hover { background-color: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.cs-hinge select:focus, .cs-card-opts select:focus { outline: none; border-color: #fff; }
.cs-asm input[type=checkbox], .cs-card-opts input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); cursor: pointer; position: relative; transition: background .2s, border-color .2s; flex: 0 0 auto; }
.cs-asm input[type=checkbox]:hover, .cs-card-opts input[type=checkbox]:hover { border-color: rgba(255,255,255,.6); }
.cs-asm input[type=checkbox]:checked, .cs-card-opts input[type=checkbox]:checked { background: linear-gradient(45deg, #ffffff, #e0e0e0); border-color: #fff; }
.cs-asm input[type=checkbox]:checked::after, .cs-card-opts input[type=checkbox]:checked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #1a1a1a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cs-asm input[type=checkbox]:focus-visible, .cs-card-opts input[type=checkbox]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-product-buy .cs-card-opts { gap: 12px 26px; margin: 0 0 22px; }
.cs-product-buy .cs-card-opts label { gap: 10px; }
.cs-product-info .cs-lead { font-size: 1.05rem; color: rgba(255,255,255,.7); margin: 0 0 26px; }
/* Left / Right hinge toggle */
.cs-hinge-ctl { display: inline-flex; }
.cs-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: rgba(255,255,255,.08); padding: 3px; gap: 2px; }
.cs-seg button { font: inherit; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.75); background: none; border: 0; border-radius: 16px; padding: 5px 13px; cursor: pointer; transition: background .2s, color .2s; }
.cs-seg button:hover { color: #fff; background: rgba(255,255,255,.12); }
.cs-seg button.is-on { background: linear-gradient(45deg, #ffffff, #e0e0e0); color: #1a1a1a; font-weight: 600; }
.cs-seg button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.cs-product-info .cs-card-opts { flex-direction: column; align-items: flex-start; gap: 14px; }
.cs-product-info .cs-hinge-when-asm { display: none; }
.cs-product-info.is-asm .cs-hinge-when-asm { display: inline-flex; animation: csIn .25s ease; }
.cs-product-info .cs-asm { font-size: 1.05rem; }
.cs-card-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; color: rgba(255,255,255,.85); }
.cs-card-opts label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.cs-card-opts em { font-style: normal; color: rgba(255,255,255,.55); }
.cs-product-info .cs-card-opts { flex-direction: column; align-items: flex-start; gap: 14px; margin: 0 0 22px; }
/* theme nav tidy */
.navigation .nav-btn, .navigation .nav-btn:hover { text-decoration: none; }
.cs-crumbs { padding-right: 520px; }
@media (max-width: 1100px) { .cs-crumbs { padding-right: 0; margin-top: 56px; } }
/* toolbar: centered */
.cs-toolbar { flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 22px 25px; }
.cs-tabs { justify-content: center; }
.cs-search { flex: 0 0 auto; width: 100%; max-width: 560px; min-width: 0; margin: 0 auto; }
.cs-search input { text-align: center; }
.cs-search input:focus { text-align: left; }
/* toolbar: no box */
.cs-toolbar { background: transparent; border: 0; backdrop-filter: none; border-radius: 0; padding: 14px 0 6px; }
.cs-toolbar { position: sticky; top: 0; background: linear-gradient(180deg, rgba(26,26,26,.96) 0%, rgba(26,26,26,.9) 80%, rgba(26,26,26,0) 100%); padding-bottom: 22px; }
.cs-search input { background: rgba(255,255,255,.08); }
/* style header: centered title */
.cs-style-head .cs-title--left { text-align: center; }
.cs-style-head .cs-lead { text-align: center; }
.cs-style-head .cs-spec h2 { text-align: center; margin-top: 4px; }
/* specs: compact columns */
.cs-spec ul { display: block; columns: 3; column-gap: 30px; }
.cs-spec li { break-inside: avoid; margin: 0 0 8px; }
@media (max-width: 1100px) { .cs-spec ul { columns: 2; } }
@media (max-width: 720px) { .cs-spec ul { columns: 1; } }
/* rows: hinge only when assembled */
.cs-table .cs-hinge .cs-hinge-ctl { display: none; }
.cs-table .cs-row.is-asm .cs-hinge .cs-hinge-ctl, .cs-table .cs-row--noasm .cs-hinge .cs-hinge-ctl { display: inline-flex; animation: csIn .25s ease; }
.cs-table .cs-row.is-asm .cs-hinge .cs-hinge-dash, .cs-table .cs-row--noasm .cs-hinge .cs-hinge-dash { display: none; }
/* cart page */
.cs-cartpage { max-width: 1240px; width: auto; margin: 0 auto; padding: 20px 24px 120px; }
.cs-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cs-cart-line { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px; margin-bottom: 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); transition: border-color .3s, opacity .3s; }
.cs-cart-line:hover { border-color: rgba(255,255,255,.22); }
.cs-cart-line-img { display: block; border-radius: 12px; background: #fff; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.cs-cart-line-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cs-cart-line-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cs-cart-line-style { color: rgba(255,255,255,.6); font-size: .9rem; }
.cs-cart-line-info h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; }
.cs-cart-line-info p { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0 0 12px; }
.cs-cart-line-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; }
.cs-cart-line-opts span { color: rgba(255,255,255,.5); margin-right: 5px; }
.cs-cart-line-opts strong { color: #fff; font-weight: 600; }
.cs-cart-line-opts .woocommerce-Price-currencySymbol { color: #fff; }
.cs-cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 150px; }
.cs-cart-line-total { font-size: 1.35rem; font-weight: 700; }
.cs-cart-line-remove { font: inherit; font-size: .85rem; color: rgba(255,255,255,.55); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cs-cart-line-remove:hover { color: #fff; }
.cs-cart-continue { margin: 6px 0 0; }
.cs-cart-summary { position: sticky; top: 24px; padding: 24px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.cs-cart-summary h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 16px; }
.cs-cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.cs-cart-summary dt { color: rgba(255,255,255,.65); }
.cs-cart-summary dd { margin: 0; text-align: right; font-weight: 600; }
.cs-cart-summary .cs-muted { color: rgba(255,255,255,.45); font-weight: 400; font-size: .9rem; }
.cs-cart-summary .cs-cart-grand { font-size: 1.3rem; color: #fff; font-weight: 700; padding-top: 6px; }
.cs-btn-block { display: block; width: 100%; padding: 14px; font-size: 1.05rem; border-radius: 25px; box-sizing: border-box; }
.cs-coupon { display: flex; gap: 8px; margin-top: 16px; }
.cs-coupon input { flex: 1 1 auto; min-width: 0; font: inherit; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 9px 12px; outline: none; }
.cs-coupon input:focus { border-color: rgba(255,255,255,.5); }
.cs-cartpage .cs-product-note { margin-top: 14px; }
@media (max-width: 900px) { .cs-cart-layout { grid-template-columns: 1fr; } .cs-cart-summary { position: static; } .cs-cart-line { grid-template-columns: 90px 1fr; } .cs-cart-line-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
/* cart tools */
.cs-cart-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.cs-cart-tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cs-cart-restyle { display: inline-flex; align-items: center; gap: 8px; }
.cs-cart-selectall { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: rgba(255,255,255,.8); }
.cs-cartpage input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); cursor: pointer; position: relative; transition: background .2s, border-color .2s; flex: 0 0 auto; }
.cs-cartpage input[type=checkbox]:hover { border-color: rgba(255,255,255,.6); }
.cs-cartpage input[type=checkbox]:checked { background: linear-gradient(45deg, #ffffff, #e0e0e0); border-color: #fff; }
.cs-cartpage input[type=checkbox]:checked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #1a1a1a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cs-select { -webkit-appearance: none; appearance: none; font: inherit; font-size: .9rem; color: #fff; background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 8px 32px 8px 14px; cursor: pointer; max-width: 320px; }
.cs-select option, .cs-select optgroup { color: #fff; background: #2a2a2a; }
.cs-select:focus { outline: none; border-color: #fff; }
.cs-btn-danger { border-color: rgba(217,83,79,.6); color: #ffb3b0; }
.cs-btn-danger:hover { background: rgba(217,83,79,.25); color: #fff; }
.cs-cart-line { grid-template-columns: 24px 130px minmax(0, 1fr) auto; }
.cs-cart-line-check { display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .cs-cart-line { grid-template-columns: 24px 90px 1fr; } .cs-cart-tools { justify-content: center; } }
/* cart tools v2 */
.cs-cart-tools { justify-content: center; padding: 14px 16px; }
.cs-cart-tools .cs-btn, .cs-cart-tools .cs-select { font-size: .92rem; font-weight: 500; letter-spacing: .2px; padding: 9px 18px; border-radius: 20px; line-height: 1.2; }
.cs-cart-tools .cs-select { padding-right: 34px; }
.cs-cart-tools-right { justify-content: center; gap: 12px; }
.cs-cart-selectall { margin: 4px 0 12px 22px; font-size: .92rem; font-weight: 500; }
/* swap style card */
.cs-cart-tools--swap { flex-direction: column; align-items: center; gap: 8px; padding: 18px 20px 14px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.cs-cart-restyle { gap: 12px; flex-wrap: wrap; justify-content: center; }
.cs-cart-restyle-label { font-size: 1.05rem; font-weight: 600; letter-spacing: .2px; }
.cs-cart-restyle-hint { margin: 0; color: rgba(255,255,255,.55); font-size: .85rem; text-align: center; }
.cs-cart-tools .cs-select { min-width: 220px; }
.cs-cart-notice { width: 100%; box-sizing: border-box; margin: 6px 0 2px; padding: 12px 16px; border-radius: 12px; background: rgba(217,83,79,.18); border: 1px solid rgba(217,83,79,.55); color: #ffd6d4; font-size: .92rem; text-align: center; animation: csIn .3s ease; }