/* Blockart category page v2 (Views/ProductCatalogue/Index.cshtml; script assets/js/ba-catalog-v2.js)
   best-seller strip, filter panel on the left, sort bar, applied filters, video-call tile, full-screen filter sheet on phones */

/* ---------- best sellers of the category (small thumbnails) ---------- */
.ct-band {position:relative; background:var(--BGColor); padding:22px 0 24px; overflow:hidden;}
.ct-band::before {content:''; position:absolute; inset:0; background:url(../../assets/images/shap_store_bg1.png) repeat; opacity:.4; pointer-events:none;}
.ct-band .container {position:relative;}
.ct-head {display:flex; align-items:flex-end; justify-content:space-between; gap:16px;}
.ct-hindi {font-size:18px !important; text-align:left; margin:0;}
.ct-title {display:flex; align-items:center; gap:10px; margin:2px 0 0; font-size:26px; font-weight:500; color:var(--PColor); text-transform:none;}
.ct-title img {width:28px; height:auto;}
.ct-arrows {display:flex; gap:8px;}
.ct-arrows button {width:42px; height:42px; border-radius:50%; border:1.5px solid var(--PColor); background:#fff; color:var(--PColor); cursor:pointer;}
.ct-arrows button:last-child {background:var(--PColor); color:#fff;}
.ct-strip {display:flex; gap:16px; margin-top:16px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding:4px 2px 6px;}
.ct-strip::-webkit-scrollbar {display:none;}
.ct-th {position:relative; flex:0 0 150px; height:170px; border-radius:75px 75px 12px 12px; overflow:hidden; background:#f6d7ce; border:3px solid #fff; box-shadow:0 6px 14px rgb(81 58 71 / 14%); scroll-snap-align:start; transition:transform .2s;}
.ct-th:hover {transform:translateY(-3px);}
.ct-th img {width:100%; height:100%; object-fit:cover; object-position:top;}
.ct-scrollbar {height:5px; border-radius:4px; background:#f3d3c8; margin-top:14px; overflow:hidden;}
.ct-scrollbar i {display:block; height:100%; width:30%; border-radius:4px; background:var(--PColor);}

/* ---------- layout ---------- */
.ct-wrap {padding:26px 0 40px;}
.ct-layout {display:grid; grid-template-columns:290px minmax(0,1fr); gap:30px; align-items:start;}
.ct-main {min-width:0;}

/* ---------- filter panel ---------- */
.ct-side {position:sticky; top:130px; max-height:calc(100vh - 150px); overflow:auto; background:#fff; border-radius:20px 20px 16px 16px; box-shadow:0 10px 30px rgb(81 58 71 / 10%); border:1px solid #f1ddd6; scrollbar-width:thin;}
.ct-form {display:flex; flex-direction:column; min-height:100%;}
.ct-side-head {position:sticky; top:0; z-index:2; background:var(--PColor); color:#fff; padding:16px 18px 18px; display:flex; justify-content:space-between; align-items:center; gap:10px;}
.ct-side-head::after {content:''; position:absolute; left:0; right:0; bottom:-1px; height:10px; background:url(../../assets/images/header-border.svg) repeat-x; background-size:auto 100%; filter:brightness(0) invert(1); opacity:.9;}
.ct-side-head b {font-size:19px; font-weight:500; display:flex; align-items:center; gap:8px;}
.ct-badge {font-size:12.5px; background:#ff71a8; border-radius:10px; padding:1px 8px;}
.ct-clear-top {font-size:13.5px; color:#ffd1e3 !important; text-decoration:underline;}
.ct-side-x {display:none; width:40px; height:40px; border:0; background:none; color:#fff; font-size:28px; line-height:1; cursor:pointer;}
.ct-group {padding:14px 18px; border-bottom:1.5px dashed #f0d6cc;}
.ct-group h3 {display:flex; justify-content:space-between; align-items:center; margin:0 0 10px; font-size:15px; font-weight:500; color:var(--PColor); text-transform:uppercase; letter-spacing:.5px;}
.ct-group h3 label {margin:0; font-weight:500; text-transform:none; letter-spacing:0; font-size:14.5px;}
.ct-group h3 small {font-size:12px; color:#c2185b; text-transform:none; letter-spacing:0;}
.ct-g-sort {display:none;}
.ct-q {display:flex; border:1px solid #e6cfc7; border-radius:10px; overflow:hidden;}
.ct-q input {flex:1; min-width:0; border:0; padding:9px 10px; font-size:14px; outline:0;}
.ct-q button {width:40px; border:0; background:var(--PColor); color:#fff;}
.ct-pills {display:flex; flex-wrap:wrap; gap:7px;}
.ct-pills label, .ct-checks label, .ct-colors label {position:relative; margin:0; cursor:pointer;}
.ct-pills input, .ct-colors input {position:absolute; opacity:0; width:1px; height:1px;}
.ct-pills span {display:inline-block; font-size:13px; padding:5px 11px; border-radius:20px; border:1px solid #e6cfc7; color:var(--PColor); background:#fffaf8;}
.ct-pills em {display:none;}
.ct-pills input:checked + span {background:var(--PColor); border-color:var(--PColor); color:#fff;}
.ct-pills input:focus-visible + span, .ct-colors input:focus-visible + .ct-sw {outline:2px solid #c2185b; outline-offset:2px;}
.ct-range {display:flex; align-items:center; gap:6px; margin-top:10px; font-size:13px; color:#6b5d64;}
.ct-range input {width:0; flex:1; border:1px solid #e6cfc7; border-radius:8px; padding:7px 8px; font-size:13.5px;}
.ct-go {border:0; border-radius:8px; background:var(--PColor); color:#fff; padding:7px 11px; font-size:13px;}
.ct-checks {display:flex; flex-direction:column; gap:8px;}
.ct-checks label {display:flex; align-items:center; gap:10px; font-size:14.5px; color:#3d2f36; font-weight:400;}
.ct-checks input {width:18px; height:18px; accent-color:#ff71a8;}
.ct-checks em, .ct-colors em {font-style:normal; margin-left:auto; font-size:12.5px; color:#8b7480;}
.ct-colors {display:grid; grid-template-columns:repeat(4,1fr); gap:10px 6px;}
.ct-colors label {display:flex; flex-direction:column; align-items:center; gap:3px; font-size:11.5px; color:#6b5d64; text-align:center;}
.ct-colors .ct-sw {width:32px; height:32px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px #e6cfc7; display:block;}
.ct-colors input:checked + .ct-sw {box-shadow:0 0 0 2.5px #ff71a8;}
.ct-colors label.on span {color:#c2185b; font-weight:500;}
.ct-colors em {margin:0;}
.ct-side-foot {display:none;}

/* ---------- sort bar, applied filters ---------- */
.ct-tools {display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px;}
.ct-count {margin:0; font-size:16px; color:var(--PColor);}
.ct-count b {font-weight:600;}
.ct-sort {display:flex; align-items:center; gap:8px; font-size:14.5px; color:var(--PColor);}
.ct-sort label {margin:0;}
.ct-sort select {border:1px solid #e6cfc7; border-radius:10px; padding:8px 12px; font-size:14.5px; color:var(--PColor); background:#fff;}
.ct-applied {display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:14px 0 0; padding:0; list-style:none;}
.ct-applied a {display:inline-flex; align-items:center; gap:8px; font-size:13.5px; padding:6px 8px 6px 12px; border-radius:20px; background:var(--BGColor); color:var(--PColor) !important;}
.ct-applied a i {font-style:normal; width:18px; height:18px; border-radius:50%; background:var(--PColor); color:#fff; font-size:12px; display:inline-flex; align-items:center; justify-content:center;}
.ct-applied .ct-applied-clear a {background:none; color:#c2185b !important; text-decoration:underline; padding-left:4px;}
.ct-grid {margin-top:10px;}
.ct-grid > div {margin-top:20px;}

/* video-call tile inside the grid */
.ct-tile {position:relative; display:flex; flex-direction:column; justify-content:center; gap:12px; height:100%; min-height:320px; padding:26px 22px; border-radius:14px; background:var(--PColor); color:#fce7e1 !important; overflow:hidden;}
.ct-tile::after {content:''; position:absolute; right:-70px; bottom:-70px; width:240px; height:240px; background:url(../../assets/images/shap_roun_bg.png) no-repeat center/contain; opacity:.3;}
.ct-tile > * {position:relative; z-index:1;}
.ct-tile-ic {width:60px; height:60px; border-radius:50%; background:#ff71a8; color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px;}
.ct-tile b {font-size:21px; font-weight:500; color:#fff; line-height:1.3;}
.ct-tile-d {font-size:14.5px; line-height:1.5;}
.ct-tile-btn {align-self:flex-start; padding:10px 18px; border-radius:30px; background:#ff71a8; color:#fff; font-size:13.5px; font-weight:500; text-transform:uppercase; letter-spacing:.5px;}

.ct-mbar {display:none;}

/* ---------- phones and tablets ---------- */
@media (max-width: 991px) {
  .ct-layout {grid-template-columns:1fr;}
  .ct-side {display:none;}
  .ct-sort {display:none;}
  .ct-wrap {padding-top:16px;}
  .ct-title {font-size:20px;}
  .ct-hindi {font-size:15px !important;}
  .ct-arrows {display:none;}
  .ct-th {flex-basis:104px; height:124px; border-radius:52px 52px 10px 10px;}
  .ct-strip {gap:10px;}
  .ct-tile {min-height:260px; padding:18px 14px;}
  .ct-tile b {font-size:16px;}
  .ct-tile-d {font-size:12.5px;}

  /* bottom bar: sits above the site's bottom bar (assets/css/ba-header-v2.css) */
  .ct-mbar {display:flex; position:fixed; left:0; right:0; bottom:58px; z-index:1029; background:#fff; border-top:1px solid #eedad2; box-shadow:0 -6px 16px rgb(0 0 0 / 8%);}
  .ct-mbar button {flex:1; height:50px; border:0; background:#fff; color:var(--PColor); font-size:15px; display:flex; align-items:center; justify-content:center; gap:8px; font-family:inherit;}
  .ct-mbar .ct-mbar-f {background:var(--PColor); color:#fff;}
  .ct-mbar em {font-style:normal; background:#ff71a8; border-radius:10px; padding:0 7px; font-size:12px;}
  body.ba-has-mbar .ct-wrap {padding-bottom:70px;}

  /* the sheet */
  html.ct-open, html.ct-open body {overflow:hidden;}
  html.ct-open .ct-side {display:block; position:fixed; inset:0; top:0; max-height:none; z-index:3000; border-radius:0; border:0;}
  html.ct-open .ct-form {height:100%;}
  html.ct-open .ct-side-x {display:block;}
  html.ct-open .ct-clear-top {display:none;}
  html.ct-open .ct-side-body {flex:1; min-height:0; display:grid; grid-template-columns:130px 1fr; grid-template-rows:minmax(0,1fr);}
  .ct-tabs {background:#fbf0ec; overflow-y:auto; display:flex; flex-direction:column;}
  .ct-tabs button {text-align:left; padding:15px 12px; font-size:14px; color:var(--PColor); border:0; border-left:4px solid transparent; background:none; display:flex; justify-content:space-between; align-items:center; gap:6px; font-family:inherit;}
  .ct-tabs button.on {background:#fff; border-left-color:#ff71a8; font-weight:500;}
  .ct-tabs button em {font-style:normal; font-size:11px; background:#ff71a8; color:#fff; border-radius:10px; padding:1px 6px;}
  html.ct-open .ct-group {display:none; border:0; overflow-y:auto; grid-column:2;}
  html.ct-open .ct-group.is-active {display:block;}
  html.ct-open .ct-g-sort.is-active {display:block;}
  html.ct-open .ct-side-foot {display:flex; gap:10px; padding:12px 14px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid #f0dcd4; background:#fff;}
  .ct-btn-o, .ct-btn {flex:1; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:500;}
  .ct-btn-o {border:1.5px solid var(--PColor); color:var(--PColor) !important; background:#fff;}
  .ct-btn {border:0; background:linear-gradient(90deg,#b0175b,#6a2d4f); color:#fff;}
  .ct-colors {grid-template-columns:repeat(3,1fr);}
}

@media (min-width: 992px) {
  .ct-tabs {display:none;}
}

/* ---------- v2.1 ---------- */
/* filter panel shows in full (no inner scroll box) */
.ct-side {position:relative; top:auto; max-height:none; overflow:visible;}

/* product cards: rounded photo, wishlist heart, offer tag, price row */
.ct-grid > [class*="col-"] {margin-bottom:28px;}
.ct-card {position:relative; height:100%;}
.ct-card-im {position:relative; display:block; aspect-ratio:3/4; border-radius:16px; overflow:hidden; background:#f6efec; box-shadow:0 6px 18px rgb(81 58 71 / 8%);}
.ct-card-im img {width:100%; height:100%; object-fit:cover; object-position:top; transition:transform .5s ease;}
.ct-card:hover .ct-card-im img {transform:scale(1.04);}
.ct-card-tag {position:absolute !important; top:12px; left:12px; right:56px; display:block; margin:0 !important; padding:0 !important; background:none !important; text-align:left;}
.ct-card-tag > *, .ct-card-tag {font-size:11px !important; line-height:1.2 !important;}
.ct-card-tag > * {display:inline-block !important; position:static !important; max-width:100%; margin:0 !important; padding:5px 9px !important; border-radius:5px !important; background:var(--PColor) !important; color:#fff !important; font-weight:600 !important; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transform:none !important;}
.ct-card-view {position:absolute; left:12px; right:12px; bottom:12px; height:42px; border-radius:30px; background:rgb(255 255 255 / 94%); color:var(--PColor); font-size:13px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; display:flex; align-items:center; justify-content:center; opacity:0; transform:translateY(8px); transition:opacity .25s, transform .25s;}
.ct-card:hover .ct-card-view {opacity:1; transform:none;}
.ct-card-heart {position:absolute; top:10px; right:10px; z-index:2; width:38px; height:38px; border-radius:50%; border:0; background:#fff; color:#c2185b; display:flex; align-items:center; justify-content:center; font-size:16px; box-shadow:0 3px 10px rgb(81 58 71 / 15%); cursor:pointer;}
.ct-card-heart.is-on i, .ct-card-heart[aria-pressed="true"] i {font-weight:900;}
.ct-card .ct-card-txt {padding:12px 2px 0; text-align:left;}
.ct-card .ct-card-txt h3 {margin:0; font-size:15.5px; font-weight:400; line-height:1.4;}
.ct-card .ct-card-txt h3 a {display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:15.5px; text-align:left; color:#3d2f36;}
.ct-card .ct-card-txt h3 a:hover {color:#c2185b;}
.ct-card .ct-card-txt p {margin:6px 0 0; text-align:left; font-size:19px; font-weight:600; color:#c2185b;}
.ct-card .ba-card-rating {display:inline-block; margin-top:4px;}
.ct-card-meta {display:flex; flex-wrap:wrap; gap:6px; margin-top:8px;}
.ct-card-meta span {font-size:11.5px; color:#6b5d64; background:#f7eeeb; border-radius:4px; padding:2px 7px;}
@media (max-width: 991px) {
  .ct-grid > [class*="col-"] {margin-bottom:20px;}
  .ct-card-im {border-radius:12px;}
  .ct-card-tag {top:8px; left:8px; right:48px;}
  .ct-card-tag > * {font-size:9.5px !important; padding:4px 6px !important;}
  .ct-card-heart {width:32px; height:32px; top:7px; right:7px; font-size:14px;}
  .ct-card-view {display:none;}
  .ct-card .ct-card-txt h3 a {font-size:14px;}
  .ct-card .ct-card-txt p {font-size:16px;}
  .ct-card-meta {display:none;}
}

/* ---------- v2.2 ---------- */
/* the old filter-bar class (ba-search.css) centred the sheet's rows; keep every row full width */
.ct-form.ba-filter-form {flex-wrap:nowrap; align-items:stretch;}
.ct-form > * {width:100%;}

/* parent category pages: one themed block per sub-category */
.ct-sub {position:relative; padding:46px 0 40px;}
.ct-sub-alt {background:var(--BGColor);}
.ct-sub-alt::before {content:''; position:absolute; inset:0; background:url(../../assets/images/shap_store_bg1.png) repeat; opacity:.35; pointer-events:none;}
.ct-sub .container {position:relative;}
.ct-sub-head {display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px; padding-bottom:14px; border-bottom:1.5px dashed #efc4b6;}
.ct-sub-ttl h2 {display:flex; align-items:center; gap:10px; margin:0; font-size:28px; font-weight:500; text-transform:none;}
.ct-sub-ttl h2 img {width:28px; height:auto;}
.ct-sub-ttl h2 a {color:var(--PColor);}
.ct-sub-ttl h2 a:hover {color:#c2185b;}
.ct-sub-ttl p {margin:6px 0 0 38px; font-size:15px; color:#6b5d64; max-width:760px;}
.ct-sub-all {flex:none; display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 20px; border-radius:30px; background:var(--PColor); color:#fff !important; font-size:14px; font-weight:500; white-space:nowrap; transition:background .2s;}
.ct-sub-all:hover {background:#c2185b;}
.ct-sub-more {display:flex; justify-content:center; margin-top:14px;}
.ct-sub-more .main_BTN {max-width:none; white-space:nowrap;}

/* shop by category: chips with a round photo */
.ct-shopcat {padding:44px 0 50px !important; margin-top:40px;}
.ct-shopcat-list {list-style:none; margin:26px 0 0; padding:0; display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:14px;}
.ct-shopcat-list a {display:flex; align-items:center; gap:12px; height:76px; padding:0 16px 0 10px; border-radius:50px; background:#fff; border:1.5px solid #f1d6cc; color:var(--PColor) !important; font-size:15px; font-weight:500; box-shadow:0 4px 12px rgb(81 58 71 / 6%); transition:background .2s, border-color .2s, transform .2s;}
.ct-shopcat-list img {flex:none; width:54px; height:54px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 2px #fff, 0 0 0 3.5px #ff71a8;}
.ct-shopcat-list span {flex:1; min-width:0; line-height:1.25;}
.ct-shopcat-list i {flex:none; font-size:12px; color:#c2185b; opacity:0; transform:translateX(-4px); transition:opacity .2s, transform .2s;}
.ct-shopcat-list a:hover {background:var(--PColor); border-color:var(--PColor); color:#fff !important; transform:translateY(-2px);}
.ct-shopcat-list a:hover i {opacity:1; transform:none; color:#ffd1e3;}

@media (max-width: 1199px) {.ct-shopcat-list {grid-template-columns:repeat(4, minmax(0,1fr));}}
@media (max-width: 991px) {
  .ct-sub {padding:30px 0 26px;}
  .ct-sub-ttl h2 {font-size:21px;}
  .ct-sub-ttl h2 img {width:22px;}
  .ct-sub-ttl p {margin-left:0; font-size:13.5px;}
  .ct-sub-all {height:36px; padding:0 14px; font-size:13px;}
  .ct-shopcat-list {grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px;}
  .ct-shopcat-list a {height:62px; gap:9px; padding:0 10px 0 6px; font-size:13.5px;}
  .ct-shopcat-list img {width:46px; height:46px;}
  .ct-shopcat-list i {display:none;}

  /* sheet footer: two clear buttons side by side */
  html.ct-open .ct-side-foot {gap:12px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow:0 -8px 20px rgb(81 58 71 / 10%); border-top:0;}
  html.ct-open .ct-side-foot .ct-btn-o, html.ct-open .ct-side-foot .ct-btn {height:50px; border-radius:30px; font-size:15px; white-space:nowrap; gap:8px; font-family:inherit;}
  html.ct-open .ct-side-foot .ct-btn-o {flex:0 0 38%; border-color:#e3c3b8; background:#fff;}
  html.ct-open .ct-side-foot .ct-btn {flex:1; background:var(--PColor); box-shadow:0 6px 14px rgb(81 58 71 / 25%);}
  html.ct-open .ct-side-foot .ct-btn-o::before {content:'\21BA'; font-size:17px; line-height:1;}
  html.ct-open .ct-side-foot .ct-btn::after {content:'\2192'; font-size:17px; line-height:1;}
}

/* ---------- v2.3 ---------- */
/* no white gap above "Shop by category": a toran line marks the change instead */
.ct-shopcat {position:relative; margin-top:0 !important; padding-top:56px !important;}
.ct-shopcat::before {content:''; position:absolute; top:0; left:0; right:0; height:20px; background:url(../../assets/images/header-border.svg) repeat-x; background-size:contain;}
.ct-sub + .ct-shopcat, .ct-sub-alt + .ct-shopcat {border-top:0;}
.ct-wrap {padding-bottom:30px;}

/* pager: arch shaped page numbers on a dashed line, like the rest of the theme */
.ct-pager {display:flex; flex-direction:column; align-items:center; gap:10px; margin:34px 0 10px;}
.ct-pager-info {margin:0; font-size:13.5px; letter-spacing:.06em; text-transform:uppercase; color:#8b7480;}
.ct-pager-info b {color:#c2185b; font-weight:600;}
.ct-pager .CPG {position:relative; display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-end; gap:10px; margin:0; padding:0 18px 12px; list-style:none;}
.ct-pager .CPG::after {content:''; position:absolute; left:0; right:0; bottom:0; height:2px; background:repeating-linear-gradient(90deg, #e7b9aa 0 8px, transparent 8px 14px);}
.ct-pager .CPG li {position:relative; margin:0;}
.ct-pager .CPG li a {display:flex; align-items:center; justify-content:center; gap:6px; width:46px; height:54px; margin:0; padding:6px 0 0; line-height:1; border-radius:23px 23px 8px 8px; border:1.5px solid #e9c6ba; background:#fff; color:var(--PColor); font-size:16px; font-weight:500; box-shadow:0 4px 10px rgb(81 58 71 / 7%); transition:transform .2s, background .2s, border-color .2s, color .2s;}
.ct-pager .CPG li a:hover {background:var(--BGColor); border-color:#ff71a8; color:#c2185b; transform:translateY(-3px);}
.ct-pager .CPG li.active a {height:62px; background:var(--PColor); border-color:var(--PColor); color:#fff; font-size:18px; cursor:default; transform:none; box-shadow:0 8px 18px rgb(81 58 71 / 28%);}
.ct-pager .CPG li.active a::before {content:''; position:absolute; top:-7px; left:50%; width:12px; height:12px; margin-left:-6px; background:#ff71a8; transform:rotate(45deg); border-radius:2px; box-shadow:0 0 0 3px #fff;}
.ct-pager .CPG li.active::after {content:''; position:absolute; left:50%; bottom:-15px; width:8px; height:8px; margin-left:-4px; border-radius:50%; background:#c2185b; z-index:1;}
.ct-pager .CPG li.ct-pg-nav a {width:auto; height:46px; padding:0 18px; border-radius:30px; background:var(--PColor); border-color:var(--PColor); color:#fff; font-size:14px; letter-spacing:.06em; text-transform:uppercase; align-self:center;}
.ct-pager .CPG li.ct-pg-nav a:hover {background:#c2185b; border-color:#c2185b; color:#fff;}
.ct-pager .CPG li.ct-pg-nav a i {font-size:11px;}
@media (max-width: 991px) {
  .ct-pager .CPG {gap:7px; padding:0 6px 10px;}
  .ct-pager .CPG li a {width:38px; height:46px; font-size:14.5px;}
  .ct-pager .CPG li.active a {height:52px; font-size:16px;}
  .ct-pager .CPG li.ct-pg-nav a {height:40px; padding:0 13px;}
  .ct-pager .CPG li.ct-pg-nav span {display:none;}
}
