/* Brand header refinement */
.site-header{height:82px;padding-left:14px;border:1px solid rgba(108,63,145,.12);box-shadow:0 16px 42px rgba(79,43,106,.13)}
.brand-upgraded{min-width:260px;gap:12px}
.brand-upgraded img{width:54px;height:54px;object-fit:cover;border-radius:16px;box-shadow:0 8px 20px rgba(57,26,72,.22)}
.brand-upgraded>span{display:flex;flex-direction:column;justify-content:center}
.brand-upgraded b{font:800 17px/1 "Oxanium",sans-serif;letter-spacing:.6px;color:#24172f}
.brand-upgraded small{margin-top:7px;font:700 7px/1 "Oxanium",sans-serif;letter-spacing:2.5px;color:#9b5eb8}
.header-actions{display:flex;align-items:center;gap:8px}
.header-icon{width:44px;height:44px;border:1px solid #eadfeb;border-radius:13px;background:#fff;color:#6d3d8d;font-size:22px;cursor:pointer}
.quote-basket-button{height:44px;padding:0 12px 0 15px;display:flex;align-items:center;gap:10px;border:1px solid #e7d8ec;border-radius:13px;background:#fff;color:#4a3555;font-size:11px;font-weight:800;cursor:pointer}
.quote-basket-button b{min-width:22px;height:22px;display:grid;place-items:center;border-radius:8px;color:#fff;background:#7f43d5;font-size:10px}

/* Catalog controls */
.catalog-toolbar{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;align-items:center;gap:14px;margin:0 0 18px}
.catalog-search{height:50px;padding:0 16px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dfd1e5;border-radius:15px;box-shadow:0 8px 24px rgba(80,44,99,.05)}
.catalog-search span{color:#9258bd;font-size:23px}
.catalog-search input{width:100%;border:0;outline:0;background:transparent;color:#34273e;font:600 13px "DM Sans",sans-serif}
.catalog-search input::placeholder{color:#aa9caf}
.catalog-sort{height:50px;padding:0 12px;display:flex;align-items:center;gap:9px;border:1px solid #dfd1e5;border-radius:15px;background:#fff;color:#8d7d94;font-size:10px;font-weight:700}
.catalog-sort select{border:0;outline:0;background:transparent;color:#3e2d49;font-size:12px;font-weight:800;cursor:pointer}
.catalog-toolbar>strong{padding:0 6px;color:#7d6f84;font-size:11px;white-space:nowrap}
.products .filters{justify-content:flex-start;padding:4px 0 10px;margin-bottom:24px;scrollbar-width:thin}

/* Professional wholesale product grid */
.product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.product-card{display:flex;flex-direction:column;border-color:#e8deea;border-radius:20px;box-shadow:0 8px 22px rgba(78,43,96,.055)}
.product-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px rgba(78,43,96,.13)}
.catalog-product-image{position:relative;aspect-ratio:1/1;height:auto;padding:18px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#faf7fc,#f6effa)}
.catalog-product-image:after{content:"";position:absolute;inset:12px;border:1px solid rgba(133,78,166,.07);border-radius:14px;pointer-events:none}
.catalog-product-image img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 10px 13px rgba(72,40,87,.09));transition:transform .35s}
.product-card:hover .catalog-product-image img{transform:scale(1.025)}
.catalog-product-image.no-image{font:800 60px "Baloo 2";color:#9b6bc3}
.catalog-product-image.no-image:before{content:"APEX";font:800 15px "Oxanium"}
.catalog-product-image.no-image:after{content:"?";position:static;border:0;font-size:40px}
.product-meta{flex:1;display:flex;flex-direction:column;padding:16px}
.product-meta .catalog-categories{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9b5ec5;font-size:8px;font-weight:900;letter-spacing:.65px;text-transform:uppercase}
.product-meta .catalog-name{height:45px;margin:7px 0 10px;overflow:hidden;font-size:15px;line-height:1.18}
.product-meta .catalog-description{display:none}
.product-status{display:flex;align-items:center;gap:6px;margin-bottom:14px}
.product-status span{padding:5px 7px;border-radius:7px;background:#f3edf7;color:#765983;font-size:8px;font-weight:800}
.product-status .stock{color:#247c5b;background:#e5f8ef}
.product-footer{margin-top:auto;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}
.product-footer strong{font-size:11px;color:#6f3eb6}
.card-actions{display:flex;gap:5px}
.view-product,.quote-product{min-height:34px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;font-size:9px;font-weight:800;cursor:pointer}
.view-product{color:#695472;background:#f3eff5}
.quote-product{color:#fff;background:linear-gradient(135deg,#7b43dc,#d653cf)}
.view-product:hover{background:#e9dff0}.quote-product:hover{filter:brightness(.94)}
.heart{top:12px;right:12px;box-shadow:0 5px 14px rgba(52,25,69,.1)}
.badge{top:13px;left:13px}

/* Pagination */
.pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:38px}
.page-button{min-width:40px;height:40px;padding:0 12px;border:1px solid #dfd3e3;border-radius:11px;background:#fff;color:#6f6177;font-weight:800;cursor:pointer}
.page-button:hover,.page-button.active{border-color:#6f3fc4;color:#fff;background:#6f3fc4}.page-button:disabled{opacity:.4;cursor:not-allowed}
.catalog-empty,.catalog-error{grid-column:1/-1;padding:70px 20px;text-align:center;background:#fff;border:1px solid #eadfeb;border-radius:24px;color:#786b80}
.catalog-error{padding:30px;color:#9c3158;background:#fff0f5;border-color:#ffc7db}

/* Quote drawer */
.quote-drawer{position:fixed;z-index:100;top:0;right:0;width:min(430px,100%);height:100dvh;padding:26px;display:flex;flex-direction:column;background:#fffaf7;box-shadow:-24px 0 70px rgba(39,19,49,.2);transform:translateX(105%);transition:transform .3s ease}
.quote-drawer.open{transform:translateX(0)}
.drawer-overlay{position:fixed;z-index:90;inset:0;background:rgba(29,14,38,.42);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:.25s}.drawer-overlay.open{opacity:1;pointer-events:auto}
.drawer-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid #e8dce9}.drawer-header small{color:#9a5dc2;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:1.5px}.drawer-header h2{margin:3px 0 0;font:800 28px "Baloo 2"}.drawer-header button,.dialog-close{width:40px;height:40px;border:1px solid #e4d8e7;border-radius:12px;background:#fff;cursor:pointer}
.drawer-items{flex:1;padding:16px 0;overflow:auto}.drawer-empty{padding:50px 20px;text-align:center;color:#8a7d90}.drawer-item{padding:10px;display:grid;grid-template-columns:64px 1fr auto;gap:11px;align-items:center;border-bottom:1px solid #eadfeb}.drawer-item img{width:64px;height:64px;padding:4px;object-fit:contain;background:#fff;border-radius:12px}.drawer-item b{display:block;font-size:11px;line-height:1.35}.drawer-item small{color:#8e7d95;font-size:9px}.drawer-item button{border:0;background:transparent;color:#c34f71;cursor:pointer}.drawer-footer{padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e8dce9}.drawer-footer>button{border:0;background:transparent;color:#9d5369;font-size:11px;font-weight:800;cursor:pointer}

/* Product details dialog */
.product-dialog{width:min(920px,calc(100% - 28px));padding:0;border:0;border-radius:26px;background:#fffaf7;box-shadow:0 35px 100px rgba(35,15,43,.3)}.product-dialog::backdrop{background:rgba(29,14,38,.48);backdrop-filter:blur(4px)}
.dialog-close{position:absolute;z-index:2;right:18px;top:18px}.dialog-layout{display:grid;grid-template-columns:1fr 1fr}.dialog-image{min-height:520px;padding:38px;display:grid;place-items:center;background:linear-gradient(145deg,#f5edff,#fff0f7)}.dialog-image img{width:100%;height:100%;max-height:440px;object-fit:contain}.dialog-copy{padding:58px 44px 40px}.dialog-copy>small{color:#9759bd;font-size:9px;font-weight:900;letter-spacing:1px;text-transform:uppercase}.dialog-copy h2{margin:10px 0 15px;font:800 31px/1.08 "Baloo 2"}.dialog-copy p{color:#76687d;font-size:12px;line-height:1.75}.dialog-specs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:24px 0}.dialog-specs div{padding:12px;background:#f6f0f7;border-radius:11px}.dialog-specs small,.dialog-specs b{display:block}.dialog-specs small{color:#998b9e;font-size:8px;text-transform:uppercase}.dialog-specs b{margin-top:4px;font-size:11px}.dialog-copy .button{width:100%;border:0}

@media(max-width:1260px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.brand-upgraded{min-width:225px}.brand-upgraded b{font-size:15px}.header-icon{display:none}}
@media(max-width:1100px){.header-actions{margin-left:auto}.quote-basket-button span{display:none}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.site-header{height:70px}.brand-upgraded{min-width:auto}.brand-upgraded img{width:46px;height:46px}.brand-upgraded b{font-size:13px}.brand-upgraded small{font-size:6px;letter-spacing:1.5px}.quote-button{display:none}.catalog-toolbar{grid-template-columns:1fr}.catalog-toolbar>strong{text-align:center}.catalog-sort{justify-content:space-between}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-meta{padding:12px}.product-meta .catalog-name{height:42px;font-size:13px}.catalog-product-image{padding:10px}.product-footer{grid-template-columns:1fr}.card-actions>*{flex:1}.dialog-layout{grid-template-columns:1fr}.dialog-image{min-height:310px}.dialog-copy{padding:32px 24px}.dialog-copy h2{font-size:25px}}
@media(max-width:430px){.brand-upgraded small{display:none}.quote-basket-button{padding:0 9px}.product-grid{grid-template-columns:1fr}.catalog-product-image{padding:20px}.product-meta .catalog-name{height:auto}.card-actions>*{min-height:40px}}
