/* Category styles are scoped to content; master owns header/footer. */
.cat-pg { --p: var(--theme, #6D28D9); --p-dark: var(--theme-dark, #4C1D95); --p-soft: var(--theme-soft, #F5F3FF); --p-border: var(--theme-border, #EDE9FE); --p-glow: rgba(109,40,217,.15); --gold: var(--button-order-color, #F59E0B); --gold-d: var(--button-order-hover, #D97706); --gold-s: rgba(245,158,11,.2); --bg: #F8F8F8; --surface: #FFFFFF; --text: var(--text-color, #0F172A); --text2: var(--text-color, #1E293B); --muted: #64748B; --border: #EDE9FE; --grad-p: linear-gradient(135deg,#6D28D9 0%,#4C1D95 100%); --grad-g: linear-gradient(135deg,#F59E0B 0%,#D97706 100%); --r-xl: 20px; --r-lg: 14px; --r-md: 10px; --r-pill: 999px; --sh-sm: 0 2px 12px rgba(109,40,217,.08); --sh-md: 0 8px 28px rgba(109,40,217,.12); --sh-lg: 0 16px 48px rgba(109,40,217,.16); --t: .22s cubic-bezier(.4,0,.2,1); --font-h: 'Hind Siliguri', 'Bengali Fallback', Arial, sans-serif; --font-b: var(--font-body, 'Hind Siliguri'), 'Bengali Fallback', Arial, sans-serif; }
.cat-pg * { box-sizing: border-box; }
.cat-pg { font-family: var(--font-b); background: var(--bg); padding: 22px 0px 60px; }
:where(.cat-pg) .cat-wrap { max-width: 1560px; margin: 0px auto; padding: 0px 18px; }
:where(.cat-pg) .cat-bread { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-family: var(--font-h); font-size: 13px; margin-bottom: 18px; }
:where(.cat-pg) .cat-bread a { color: var(--muted); transition: color var(--t); text-decoration: none; }
:where(.cat-pg) .cat-bread a:hover { color: var(--p); }
:where(.cat-pg) .cat-bread .sep { color: var(--muted); }
:where(.cat-pg) .cat-bread .cur { color: var(--p); font-weight: 700; }
:where(.cat-pg) .sub-strip { margin-bottom: 20px; }
:where(.cat-pg) .sub-strip .owl-stage { display: flex; }
:where(.cat-pg) .sub-strip .owl-item { display: flex; height: auto !important; }
:where(.cat-pg) .sub-strip .owl-item > .item { width: 100%; }
:where(.cat-pg) .sub-strip .owl-stage-outer { padding: 6px 2px 10px; overflow: hidden; }
:where(.cat-pg) .sub-strip .owl-nav { display: none !important; }
:where(.cat-pg) .sub-strip .owl-dots { display: none !important; }
:where(.cat-pg) .sub-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 10px 14px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-lg); text-decoration: none; color: var(--text2); transition: var(--t); min-height: 160px; box-shadow: var(--sh-sm); }
:where(.cat-pg) .sub-item:hover { border-color: var(--p); box-shadow: var(--sh-md); transform: translateY(-4px); color: var(--p); }
:where(.cat-pg) .sub-item-img { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; background: var(--p-soft); border: 2.5px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; flex-shrink: 0; transition: transform 0.25s, border-color 0.25s, background 0.25s; }
:where(.cat-pg) .sub-item:hover .sub-item-img { background: linear-gradient(135deg, rgb(237, 233, 254), rgb(196, 181, 244)); border-color: var(--p); transform: scale(1.06); }
:where(.cat-pg) .sub-item-img img { display: block; border-radius: 0px; width: 100% !important; height: 100% !important; object-fit: cover !important; }
:where(.cat-pg) .sub-item h4 { font-family: var(--font-h); font-size: 12.5px; font-weight: 700; margin: 0px; line-height: 1.4; }
:where(.cat-pg) .cat-toolbar { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 14px 20px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; box-shadow: var(--sh-sm); }
:where(.cat-pg) .cat-result-count { font-family: var(--font-h); font-size: 13.5px; font-weight: 700; color: var(--text2); display: flex; align-items: center; gap: 8px; }
:where(.cat-pg) .cat-result-count span { background: var(--p-soft); color: var(--p); font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: var(--r-pill); }
:where(.cat-pg) .cat-sort-wrap { display: flex; align-items: center; gap: 10px; }
:where(.cat-pg) .cat-sort-label { font-family: var(--font-h); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
:where(.cat-pg) .cat-sort { height: 42px; min-width: 200px; border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 0px 14px; font-family: var(--font-b); font-size: 13.5px; color: var(--text); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236D28D9' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 12px center no-repeat rgb(255, 255, 255); appearance: none; outline: none; cursor: pointer; transition: border-color var(--t); }
:where(.cat-pg) .cat-sort:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow); }
:where(.cat-pg) .cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
:where(.cat-pg) .cat-sidebar { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
:where(.cat-pg) .sidebar-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); }
:where(.cat-pg) .sidebar-head { background: var(--grad-p); color: rgb(255, 255, 255); font-family: var(--font-h); font-size: 14px; font-weight: 800; padding: 13px 18px; display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
:where(.cat-pg) .sidebar-head .arr { margin-left: auto; font-size: 12px; transition: transform var(--t); }
:where(.cat-pg) .sidebar-head.open .arr { transform: rotate(180deg); }
:where(.cat-pg) .sidebar-body { padding: 16px 18px; }
:where(.cat-pg) .sidebar-links { list-style: none; margin: 0px; padding: 0px; }
:where(.cat-pg) .sidebar-links li { margin-bottom: 8px; }
:where(.cat-pg) .sidebar-links li:last-child { margin-bottom: 0px; }
:where(.cat-pg) .sidebar-links a { display: flex; align-items: center; gap: 8px; font-family: var(--font-b); font-size: 14px; font-weight: 600; color: var(--text2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-md); transition: var(--t); }
:where(.cat-pg) .sidebar-links a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p-border); flex-shrink: 0; transition: background var(--t); }
:where(.cat-pg) .sidebar-links a:hover { background: var(--p-soft); color: var(--p); }
:where(.cat-pg) .sidebar-links a:hover::before { background: var(--p); }
:where(.cat-pg) .price-inputs { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; background: var(--p-soft); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 10px 14px; }
:where(.cat-pg) .price-inputs .price-lbl { font-family: var(--font-h); font-size: 13px; font-weight: 700; color: var(--muted); }
:where(.cat-pg) .price-inputs .price-val { font-family: var(--font-h); font-size: 16px; font-weight: 900; color: var(--p); }
:where(.cat-pg) .price-inputs input { border-width: medium; border-style: none; border-color: currentcolor; border-image: none; background: transparent; color: var(--p); font-weight: 900; font-size: 16px; width: 70px; outline: none; font-family: var(--font-h); }
:where(.cat-pg) .price-sep { color: var(--muted); font-weight: 700; }
:where(.cat-pg) #price-range { margin: 6px 2px 2px; background: var(--border); height: 5px; border-radius: 999px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; }
:where(.cat-pg) #price-range .ui-slider-range { background: var(--grad-p); border-radius: 999px; }
:where(.cat-pg) #price-range .ui-slider-handle { width: 18px; height: 18px; border-radius: 50%; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; background: var(--gold); top: -7px; cursor: pointer; box-shadow: 0 4px 10px var(--gold-s); }
:where(.cat-pg) .chk-item { margin-bottom: 8px; }
:where(.cat-pg) .chk-label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 10px; border-radius: var(--r-md); transition: background var(--t); border: 1.5px solid transparent; }
:where(.cat-pg) .chk-label:hover { background: var(--p-soft); border-color: var(--border); }
:where(.cat-pg) .chk-label input { width: 16px; height: 16px; accent-color: var(--p); cursor: pointer; flex-shrink: 0; }
:where(.cat-pg) .chk-name { font-family: var(--font-b); font-size: 14px; font-weight: 600; color: var(--text2); margin: 0px; }
:where(.cat-pg) .prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
:where(.cat-pg) .p-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: var(--t); box-shadow: var(--sh-sm); position: relative; }
:where(.cat-pg) .p-card:hover { border-color: var(--p); box-shadow: var(--sh-lg); transform: translateY(-5px); }
:where(.cat-pg) .disc-badge { position: absolute; top: 8px; left: 8px; z-index: 20; background: linear-gradient(135deg, rgb(239, 68, 68), rgb(220, 38, 38)); color: rgb(255, 255, 255); font-family: var(--font-h); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-pill); box-shadow: rgba(239, 68, 68, 0.3) 0px 4px 12px; }
:where(.cat-pg) .p-img { background: linear-gradient(rgb(250, 252, 255) 0%, rgb(255, 255, 255) 100%); padding: 30px 14px 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; height: 220px; }
:where(.cat-pg) .p-img a { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
:where(.cat-pg) .p-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center center; transition: transform 0.4s; display: block; }
:where(.cat-pg) .p-card:hover .p-img img { transform: scale(1.04); }
:where(.cat-pg) .p-img::after { content: ""; position: absolute; top: 0px; left: -80%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); transform: skewX(-15deg); opacity: 0; pointer-events: none; }
:where(.cat-pg) .p-card:hover .p-img::after { opacity: 1; animation: 0.55s ease 0s 1 normal forwards running cat-shine; }
@keyframes cat-shine { 
  100% { left: 140%; }
}
:where(.cat-pg) .p-body { padding: 12px 14px 8px; flex: 1 1 0%; display: flex; flex-direction: column; }
:where(.cat-pg) .p-name { font-family: var(--font-h); font-size: 13.5px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.cat-pg) .p-name a { color: var(--text2); text-decoration: none; transition: color var(--t); }
:where(.cat-pg) .p-name a:hover { color: var(--p); }
:where(.cat-pg) .p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; }
:where(.cat-pg) .p-price-new { font-family: var(--font-h); font-size: 18px; font-weight: 900; color: var(--p-dark); }
:where(.cat-pg) .p-price-old { font-size: 12px; color: rgb(148, 163, 184); font-weight: 500; text-decoration: line-through; }
:where(.cat-pg) .p-actions { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgb(245, 243, 255); align-items: center; }
:where(.cat-pg) .p-actions form { margin: 0px; }
:where(.cat-pg) .btn-cart { width: 44px; height: 42px; background: var(--grad-p); color: rgb(255, 255, 255); border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: var(--t); box-shadow: 0 4px 12px var(--p-glow); text-decoration: none; }
:where(.cat-pg) .btn-cart:hover { filter: brightness(1.1); transform: translateY(-1px); color: rgb(255, 255, 255); }
:where(.cat-pg) .btn-order { width: 100%; height: 42px; background: var(--grad-g); color: rgb(255, 255, 255); border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: var(--r-md); font-family: var(--font-b); font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--t); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px var(--gold-s); text-decoration: none; }
:where(.cat-pg) .btn-order:hover { filter: brightness(1.08); transform: translateY(-1px); color: rgb(255, 255, 255); }
:where(.cat-pg) .cat-empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-sm); }
:where(.cat-pg) .cat-empty i { font-size: 48px; color: var(--p-border); display: block; margin-bottom: 14px; }
:where(.cat-pg) .cat-empty p { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--muted); margin: 0px; }
:where(.cat-pg) .cat-paginate { margin-top: 28px; display: flex; justify-content: center; }
:where(.cat-pg) .cat-paginate .pagination { gap: 6px; }
:where(.cat-pg) .cat-paginate .page-link { font-family: var(--font-h); font-weight: 700; min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: var(--t); border-radius: var(--r-md) !important; border: 1.5px solid var(--border) !important; color: var(--text2) !important; }
:where(.cat-pg) .cat-paginate .page-link:hover { border-color: var(--p) !important; color: var(--p) !important; background: var(--p-soft) !important; }
:where(.cat-pg) .cat-paginate .page-item.active .page-link { background: var(--grad-p) !important; border-color: transparent !important; color: rgb(255, 255, 255) !important; }
@media (max-width: 1199px) {
:where(.cat-pg) .prod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
:where(.cat-pg) .cat-layout { grid-template-columns: 1fr; }
:where(.cat-pg) .cat-sidebar { position: static; flex-flow: wrap; }
:where(.cat-pg) .sidebar-card { flex: 1 1 0%; min-width: 220px; }
:where(.cat-pg) .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
:where(.cat-pg) .p-img { height: 180px; }
:where(.cat-pg) .sub-item-img { width: 80px; height: 80px; }
}
@media (max-width: 767px) {
.cat-pg { padding: 14px 0px 40px; }
:where(.cat-pg) .cat-wrap { padding: 0px 12px; }
:where(.cat-pg) .cat-toolbar { padding: 12px 14px; }
:where(.cat-pg) .cat-sort { min-width: 160px; font-size: 13px; }
:where(.cat-pg) .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
:where(.cat-pg) .p-img { height: 155px; padding: 10px; }
:where(.cat-pg) .p-name { font-size: 12.5px; min-height: auto; }
:where(.cat-pg) .p-price-new { font-size: 15px; }
:where(.cat-pg) .p-actions { padding: 8px 8px 10px; gap: 6px; }
:where(.cat-pg) .btn-cart { width: 38px; height: 38px; font-size: 14px; }
:where(.cat-pg) .btn-order { height: 38px; font-size: 13px; }
:where(.cat-pg) .cat-sidebar { flex-direction: column; }
:where(.cat-pg) .sidebar-card { min-width: unset; }
:where(.cat-pg) .sub-item-img { width: 70px; height: 70px; }
:where(.cat-pg) .sub-item { min-height: 140px; padding: 12px 8px 10px; }
}
@media (max-width: 480px) {
:where(.cat-pg) .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
:where(.cat-pg) .p-img { height: 140px; }
:where(.cat-pg) .cat-toolbar { flex-direction: column; align-items: flex-start; }
:where(.cat-pg) .sub-item-img { width: 60px; height: 60px; }
}
