:root {
    --p:        #6D28D9;
    --p-dark:   #4C1D95;
    --p-soft:   #F5F3FF;
    --p-border: #EDE9FE;
    --p-glow:   rgba(109,40,217,.15);
    --gold:     #F59E0B;
    --gold-d:   #D97706;
    --gold-s:   rgba(245,158,11,.2);
    --bg:       #F8F8F8;
    --surface:  #FFFFFF;
    --text:     #0F172A;
    --text2:    #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:   'Plus Jakarta Sans', sans-serif;
    --font-b:   'Hind Siliguri', sans-serif;
}

/* ── Base ── */
.cat-pg * { box-sizing: border-box; }
.cat-pg {
    font-family: var(--font-b);
    background: var(--bg);
    padding: 22px 0 60px;
}
.cat-wrap {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ── Breadcrumb ── */
.cat-bread {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-h);
    font-size: 13px;
    margin-bottom: 18px;
}
.cat-bread a { color: var(--muted); transition: color var(--t); text-decoration: none; }
.cat-bread a:hover { color: var(--p); }
.cat-bread .sep { color: var(--muted); }
.cat-bread .cur { color: var(--p); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   SUBCATEGORY STRIP — 100px circle images
══════════════════════════════════════════════════════════════ */
.sub-strip { margin-bottom: 20px; }
.sub-strip .owl-stage         { display: flex; }
.sub-strip .owl-item          { display: flex; height: auto !important; }
.sub-strip .owl-item > .item  { width: 100%; }
.sub-strip .owl-stage-outer   { padding: 6px 2px 10px; overflow: hidden; }
.sub-strip .owl-nav            { display: none !important; }
.sub-strip .owl-dots           { display: none !important; }

.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);
}
.sub-item:hover {
    border-color: var(--p);
    box-shadow: var(--sh-md);
    transform: translateY(-4px);
    color: var(--p);
}

/* ✦ 100px circle */
.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 .25s ease, border-color .25s ease, background .25s ease;
}
.sub-item:hover .sub-item-img {
    background: linear-gradient(135deg,#EDE9FE,#C4B5F4);
    border-color: var(--p);
    transform: scale(1.06);
}
.sub-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0;
}
.sub-item h4 {
    font-family: var(--font-h);
    font-size: 12.5px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* ── Toolbar ── */
.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);
}
.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;
}
.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);
}
.cat-sort-wrap { display: flex; align-items: center; gap: 10px; }
.cat-sort-label {
    font-family: var(--font-h);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}
.cat-sort {
    height: 42px;
    min-width: 200px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0 14px;
    font-family: var(--font-b);
    font-size: 13.5px;
    color: var(--text);
    background: #fff 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") no-repeat right 12px center;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color var(--t);
}
.cat-sort:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow); }

/* ── Layout ── */
.cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: start;
}

/* ── Sidebar ── */
.cat-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sidebar-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-sm);
}
.sidebar-head {
    background: var(--grad-p);
    color: #fff;
    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;
}
.sidebar-head .arr { margin-left: auto; font-size: 12px; transition: transform var(--t); }
.sidebar-head.open .arr { transform: rotate(180deg); }
.sidebar-body { padding: 16px 18px; }

.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links li:last-child { margin-bottom: 0; }
.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);
}
.sidebar-links a::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--p-border);
    flex-shrink: 0;
    transition: background var(--t);
}
.sidebar-links a:hover { background: var(--p-soft); color: var(--p); }
.sidebar-links a:hover::before { background: var(--p); }

/* ── Price filter ── */
.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;
}
.price-inputs .price-lbl { font-family: var(--font-h); font-size: 13px; font-weight: 700; color: var(--muted); }
.price-inputs .price-val { font-family: var(--font-h); font-size: 16px; font-weight: 900; color: var(--p); }
.price-inputs input { border: none; background: transparent; color: var(--p); font-weight: 900; font-size: 16px; width: 70px; outline: none; font-family: var(--font-h); }
.price-sep { color: var(--muted); font-weight: 700; }
#price-range { margin: 6px 2px 2px; background: var(--border); height: 5px; border-radius: 999px; border: none; }
#price-range .ui-slider-range { background: var(--grad-p); border-radius: 999px; }
#price-range .ui-slider-handle { width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--gold); top: -7px; cursor: pointer; box-shadow: 0 4px 10px var(--gold-s); }

/* ── Checkbox filter ── */
.chk-item { margin-bottom: 8px; }
.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;
}
.chk-label:hover { background: var(--p-soft); border-color: var(--border); }
.chk-label input { width: 16px; height: 16px; accent-color: var(--p); cursor: pointer; flex-shrink: 0; }
.chk-name { font-family: var(--font-b); font-size: 14px; font-weight: 600; color: var(--text2); margin: 0; }

/* ── Product Grid ── */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ── Product Card ── */
.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;
}

.p-card:hover {
    border-color: var(--p);
    box-shadow: var(--sh-lg);
    transform: translateY(-5px);
}

.disc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    background: linear-gradient(135deg,#EF4444,#DC2626);
    color: #fff;
    font-family: var(--font-h);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 12px rgba(239,68,68,.3);
}

.p-img {
    background: linear-gradient(180deg,#FAFCFF 0%,#fff 100%);
    padding: 30px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    height: 220px;
}

.p-img a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transition: transform .4s ease;
    display: block;
}

.p-card:hover .p-img img {
    transform: scale(1.04);
}

.p-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);
    transform: skewX(-15deg);
    opacity: 0;
    pointer-events: none;
}
.p-card:hover .p-img::after { opacity: 1; animation: cat-shine .55s ease forwards; }
@keyframes cat-shine { to { left: 140%; } }

.p-body {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.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;
}
.p-name a { color: var(--text2); text-decoration: none; transition: color var(--t); }
.p-name a:hover { color: var(--p); }

.p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.p-price-new { font-family: var(--font-h); font-size: 18px; font-weight: 900; color: var(--p-dark); }
.p-price-old { font-size: 12px; color: #94A3B8; font-weight: 500; text-decoration: line-through; }

.p-actions {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid #F5F3FF;
    align-items: center;
}
.p-actions form { margin: 0; }

.btn-cart {
    width: 44px; height: 42px;
    background: var(--grad-p);
    color: #fff;
    border: 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;
}
.btn-cart:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

.btn-order {
    width: 100%; height: 42px;
    background: var(--grad-g);
    color: #fff;
    border: 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;
}
.btn-order:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }

/* ── Empty state ── */
.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);
}
.cat-empty i { font-size: 48px; color: var(--p-border); display: block; margin-bottom: 14px; }
.cat-empty p { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--muted); margin: 0; }

/* ── Pagination ── */
.cat-paginate { margin-top: 28px; display: flex; justify-content: center; }
.cat-paginate .pagination { gap: 6px; }
.cat-paginate .page-link {
    border-radius: var(--r-md) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text2) !important;
    font-family: var(--font-h);
    font-weight: 700;
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--t);
}
.cat-paginate .page-link:hover { border-color: var(--p) !important; color: var(--p) !important; background: var(--p-soft) !important; }
.cat-paginate .page-item.active .page-link { background: var(--grad-p) !important; border-color: transparent !important; color: #fff !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* 1200px — 3 column grid */
@media (max-width: 1199px) {
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 991px — sidebar stacks, 3 col grid */
@media (max-width: 991px) {
    .cat-layout    { grid-template-columns: 1fr; }
    .cat-sidebar   { position: static; flex-direction: row; flex-wrap: wrap; }
    .sidebar-card  { flex: 1; min-width: 220px; }
    .prod-grid     { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .p-img         { height: 180px; }
    .sub-item-img  { width: 80px; height: 80px; }
}

/* 767px — mobile */
@media (max-width: 767px) {
    .cat-pg        { padding: 14px 0 40px; }
    .cat-wrap      { padding: 0 12px; }
    .cat-toolbar   { padding: 12px 14px; }
    .cat-sort      { min-width: 160px; font-size: 13px; }
    .prod-grid     { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .p-img         { height: 155px; padding: 10px; }
    .p-name        { font-size: 12.5px; min-height: auto; }
    .p-price-new   { font-size: 15px; }
    .p-actions     { padding: 8px 8px 10px; gap: 6px; }
    .btn-cart      { width: 38px; height: 38px; font-size: 14px; }
    .btn-order     { height: 38px; font-size: 13px; }
    .cat-sidebar   { flex-direction: column; }
    .sidebar-card  { min-width: unset; }
    .sub-item-img  { width: 70px; height: 70px; }
    .sub-item      { min-height: 140px; padding: 12px 8px 10px; }
}

/* 480px */
@media (max-width: 480px) {
    .prod-grid     { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .p-img         { height: 140px; }
    .cat-toolbar   { flex-direction: column; align-items: flex-start; }
    .sub-item-img  { width: 60px; height: 60px; }
}