/* Blockart header v2 (loaded after ba-nav.css). Same markup and scripts as before (ba-nav.js),
   new look: icon top bar, offer strip with icons, search pill on the left, round icon buttons,
   bag with count, "Trending" link, arch promo card in the mega menu, compact sticky header,
   mobile bottom bar and drawer greeting. Breakpoint 1024px like ba-nav.css. */

/* ---------- top bar ---------- */
.top_bar.ba-top2 {padding:0; font-size:14px;}
.ba-top2 .ba-top-in {display:flex; justify-content:space-between; align-items:center; min-height:42px; gap:20px;}
.ba-top2 .ba-top-l, .ba-top2 .ba-top-r {display:flex; align-items:center; gap:20px; margin:0; padding:0; list-style:none;}
.ba-top2 .ba-top-l span, .ba-top2 .ba-top-r a {display:inline-flex; align-items:center; gap:7px; color:#f6e3ea !important; font-size:14px; white-space:nowrap;}
.ba-top2 .ba-top-l i, .ba-top2 .ba-top-r i {color:#ffd1e3;}
.ba-top2 .ba-top-sep {width:1px; height:16px; background:rgb(255 255 255 / 25%);}
.ba-top2 .ba-top-fam {background:rgb(255 255 255 / 10%); border:1px solid rgb(255 255 255 / 25%); border-radius:20px; padding:3px 12px 3px 5px;}
.ba-top2 .ba-top-fam b {width:20px; height:20px; border-radius:50%; background:#e0a84f; color:#513A47; font-size:11px; display:inline-flex; align-items:center; justify-content:center;}
.ba-top2 .currency_dropdown {border:1px solid rgb(255 255 255 / 35%); border-radius:6px; background:transparent; color:#fff; padding:2px 6px; font-size:13.5px;}
.ba-top2 .currency_dropdown option {color:#222;}

/* ---------- offer strip ---------- */
.topofferbar.ba-offer2 {padding:0;}
.ba-offer2 .m-scroll {align-items:center; min-height:40px;}
.ba-offer2 .m-scroll span {display:inline-flex; align-items:center; gap:8px; padding-right:0; font-size:15px;}
.ba-offer2 .m-scroll span + span::before {content:''; width:14px; height:14px; margin:0 36px; background:url(../../assets/images/section_title_shaprater01.svg) no-repeat center/cover; filter:brightness(0) invert(1); opacity:.75; border-radius:50%;}
.ba-offer2 .m-scroll i {font-size:14px; opacity:.95;}
.ba-offer2 .ba-code {border:1.5px dashed rgb(255 255 255 / 85%); border-radius:6px; padding:0 8px; font-weight:600; letter-spacing:1px;}

/* ---------- logo bar (desktop) ---------- */
@media (min-width: 1025px) {
  .ba-h2 .header_logobar {position:relative; padding:16px 0 14px;}
  .ba-h2 .header_logobar::before {content:''; position:absolute; inset:0; background:url(../../assets/images/shap_store_bg1.png) repeat; opacity:.25; pointer-events:none;}
  .ba-h2 .ba-hbar {grid-template-columns:1fr auto 1fr;}
  .ba-h2 .ba-hmail {visibility:hidden;}
  .ba-h2 .ba-hlogo img {height:78px; width:auto;}
  /* search: always open, as a pill in the left column (positioned against .ba-hbar) */
  .ba-h2 .bag_signin_list, .ba-h2 .ba-hactions, .ba-h2 .ba-hsearch {position:static !important;}
  .ba-h2 #head_search {display:none !important;}
  .ba-h2 .contentt, .ba-h2 .contentt[hidden] {display:flex !important; position:absolute; left:0; right:auto; top:50%; transform:translateY(-50%); width:min(400px, 32vw); margin:0; padding:0 5px 0 16px; height:48px; align-items:center; gap:6px; background:#fff; border:1.5px solid #efc9bc; border-radius:30px; box-shadow:0 4px 12px rgb(81 58 71 / 6%);}
  .ba-h2 .contentt .ba-search-field::before {content:'\f002'; font-family:"Font Awesome 5 Free"; font-weight:900; position:absolute; left:0; top:50%; transform:translateY(-50%); color:#8b7480; font-size:15px;}
  .ba-h2 .contentt .form-control {height:44px; border:0 !important; box-shadow:none !important; padding:0 8px 0 24px; font-size:15px; background:transparent;}
  .ba-h2 .search_icn {width:38px !important; height:38px !important; line-height:38px !important; border-radius:50% !important;}
  .ba-h2 .ba-search-close {display:none !important;}
  .ba-h2 .contentt .bf-suggest {top:calc(100% + 8px);}
  /* round icon buttons, bag pill */
  .ba-h2 .bag_signin_list {gap:16px;}
  .ba-h2 .bag_signin_list > li > a, .ba-h2 .bag_signin_list > li > button {font-size:15px;}
  .ba-h2 .ba-haccount > a i, .ba-h2 .ba-haccount > button i, .ba-h2 .ba-hwish > a i {display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:#fff; box-shadow:0 3px 10px rgb(81 58 71 / 10%); font-size:17px;}
  .ba-h2 .ba-hwish .num_total_BX {top:-2px; right:-4px;}
  .ba-h2 .ba-hbag > a {background:var(--PColor) !important; color:#fff !important; border-radius:30px; padding:5px 18px 5px 5px !important;}
  .ba-h2 .ba-hbag > a:hover {background:#c2185b !important;}
  .ba-h2 .ba-hbag > a > i {display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; background:#fff; color:var(--PColor);}
  .ba-h2 .ba-hbag .num_total_BX {top:-4px; right:auto; left:28px; border:2px solid var(--BGColor);}
  /* menu row */
  .ba-h2 .ba-nav .ba-nav-list {border-top:1.5px dashed #efc4b6;}
  .ba-h2 .ba-nav-link {padding:16px 15px 18px;}
  .ba-h2 .ba-nav-link::after {bottom:10px; height:3px; border-radius:3px; background:#c2185b;}
  .ba-h2 .ba-nav-trend > .ba-nav-link {color:#c2185b; font-weight:500;}
  .ba-h2 .ba-nav-tag {position:absolute; top:2px; right:-8px; font-size:10px; font-weight:600; letter-spacing:.8px; line-height:1; background:#ff71a8; color:#fff; border-radius:4px; padding:3px 6px;}
  /* mega menu */
  .ba-h2 .ba-mega {border-top:4px solid #c2185b; border-radius:0 0 24px 24px;}
  .ba-h2 .ba-mega-h {color:#c2185b; border-bottom:1.5px dashed #efc4b6;}
  .ba-h2 .ba-mega-promo {position:relative; background:var(--PColor); color:#fff; border-radius:150px 150px 16px 16px; padding:44px 22px 22px; text-align:center; overflow:hidden;}
  .ba-h2 .ba-mega-promo::before {content:''; position:absolute; left:50%; top:-40px; width:220px; height:220px; margin-left:-110px; background:url(../../assets/images/shap_roun_bg.png) no-repeat center/contain; opacity:.3;}
  .ba-h2 .ba-mega-promo > * {position:relative;}
  .ba-h2 .ba-mega-promo-t {color:#fff;}
  .ba-h2 .ba-mega-promo-d {color:#fce7e1;}
  .ba-h2 .ba-mega-promo-btn {background:#ff71a8; border-radius:30px;}
  .ba-h2 .ba-mega-promo-link {color:#ffd1e3;}

  /* compact header after scrolling (class set by ba-nav.js) */
  html.ba-scrolled .ba-h2 .header_logobar {padding:6px 0;}
  html.ba-scrolled .ba-h2 .ba-hlogo img {height:46px;}
  html.ba-scrolled .ba-h2 .contentt {height:42px;}
  html.ba-scrolled .ba-h2 .ba-nav-link {padding-top:10px; padding-bottom:12px;}
  html.ba-scrolled .ba-h2 .ba-nav-link::after {bottom:6px;}
  html.ba-scrolled .ba-h2 {box-shadow:0 8px 20px rgb(81 58 71 / 15%);}
  .ba-h2 .header_logobar, .ba-h2 .ba-hlogo img, .ba-h2 .ba-nav-link {transition:padding .2s, height .2s;}
}

/* fixed header after scrolling (all screens); ba-nav.js keeps a spacer of the same height so the page does not jump */
html.ba-scrolled .ba-h2 {position:fixed; top:0; left:0; right:0; z-index:1040; background:var(--BGColor); animation:baHdrIn .25s ease;}
@keyframes baHdrIn {from {transform:translateY(-100%);} to {transform:none;}}
@media (prefers-reduced-motion: reduce) {html.ba-scrolled .ba-h2 {animation:none;}}

/* ---------- mobile ---------- */
@media (max-width: 1024px) {
  html.ba-scrolled .ba-h2 {box-shadow:0 6px 16px rgb(81 58 71 / 15%);}
  .ba-h2 .ba-nav-trend .ba-nav-link {color:#c2185b;}
  .ba-h2 .ba-nav-tag {margin-left:8px; font-size:10px; font-weight:600; background:#ff71a8; color:#fff; border-radius:4px; padding:2px 6px; vertical-align:middle;}
  /* greeting at the top of the drawer */
  .ba-drawer-hi {position:relative; display:block !important; background:var(--PColor); color:#fff; padding:6px 18px 16px; overflow:hidden;}
  .ba-drawer-hi::after {content:''; position:absolute; right:-60px; top:-70px; width:180px; height:180px; background:url(../../assets/images/shap_roun_bg.png) center/contain no-repeat; opacity:.3;}
  .ba-drawer-hi b {position:relative; display:block; font-size:18px; font-weight:500;}
  .ba-drawer-hi small {position:relative; display:block; font-size:12.5px; color:#ffd1e3; margin-top:2px;}
  .ba-drawer-hi .ba-drawer-btns {position:relative; display:flex; gap:8px; margin-top:12px;}
  .ba-drawer-hi .ba-drawer-btns a {flex:1; height:38px; border-radius:20px; display:flex; align-items:center; justify-content:center; font-size:13.5px; font-weight:500; color:#fff !important;}
  .ba-drawer-hi .ba-drawer-btns a.p {background:#ff71a8;}
  .ba-drawer-hi .ba-drawer-btns a.o {border:1.5px solid #fce7e1;}
  /* bottom bar */
  .ba-mbar {position:fixed; left:0; right:0; bottom:0; z-index:1030; display:flex; background:#fff; border-top:1px solid #eedad2; box-shadow:0 -6px 16px rgb(0 0 0 / 8%); padding-bottom:env(safe-area-inset-bottom);}
  .ba-mbar a, .ba-mbar button {flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:56px; font-size:11.5px; color:var(--PColor) !important; background:none; border:0; padding:0; position:relative; font-family:inherit;}
  .ba-mbar i {font-size:18px;}
  .ba-mbar .on {color:#c2185b !important;}
  .ba-mbar em {position:absolute; top:5px; left:calc(50% + 6px); min-width:18px; height:18px; border-radius:9px; background:#ff71a8; color:#fff; font-style:normal; font-size:10.5px; font-weight:600; display:flex; align-items:center; justify-content:center; padding:0 4px;}
  body.ba-has-mbar {padding-bottom:58px;}
  body.ba-has-mbar .add_cart_bootomF {bottom:58px;}
}
@media (min-width: 1025px) {
  .ba-mbar, .ba-drawer-hi {display:none !important;}
}

/* ---------- v2.1: header details matched to the approved design ---------- */
.ba-dico {display:none;}
.ba-mth {flex:none; width:30px; height:30px; border-radius:50%; object-fit:cover; background:#f6e4dd; box-shadow:0 0 0 2px #fff, 0 0 0 3px #f0d3c8;}
.ba-mnew {flex:none; margin-left:auto; font-size:9.5px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; line-height:1; color:#fff; background:#ff71a8; border-radius:4px; padding:3px 5px;}
.ba-hpop {display:none;}
.ba-mega-foot {display:none;}
.ba-mega-promo-img {display:none;}

@media (min-width: 1025px) {
  /* logo a shade darker, same pink as the offer strip */
  .ba-h2 .ba-hlogo img {height:80px;}

  /* search pill: small grey icon inside on the left, dark round button on the right, popular searches below */
  .ba-h2 .contentt .ba-search-field {position:relative; flex:1; min-width:0;}
  .ba-h2 .contentt .ba-search-field::before {content:''; font-family:inherit; width:18px; height:18px; left:2px; color:transparent; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7480' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center/contain; pointer-events:none;}
  .ba-h2 .contentt .form-control {padding:0 8px 0 30px; color:var(--PColor); font-size:15px;}
  .ba-h2 .contentt .form-control::placeholder {color:#8b7480; opacity:1;}
  .ba-h2 .search_icn {flex:none; font-size:15px; background:var(--PColor) !important;}
  .ba-h2 .ba-hpop {display:flex; flex-wrap:wrap; gap:4px 10px; position:absolute; left:16px; top:calc(50% + 30px); margin:0; font-size:12.5px; color:#8b7480; line-height:1.2;}
  .ba-h2 .ba-hpop a {color:#c2185b !important;}
  .ba-h2 .ba-hpop a:hover {text-decoration:underline;}
  html.ba-scrolled .ba-h2 .ba-hpop {display:none;}

  /* account: two-line label like "Hello, sign in / My Account" */
  .ba-h2 .ba-haccount > a, .ba-h2 .ba-haccount > button {display:inline-flex; align-items:center; gap:10px; text-transform:none !important; background:none; border:0;}
  .ba-h2 .ba-haccount .ba-hlabel {display:flex; flex-direction:column; align-items:flex-start; font-size:15px; font-weight:500; color:var(--PColor); line-height:1.15;}
  .ba-h2 .ba-haccount .ba-hlabel small {font-size:12px; font-weight:400; color:#8b7480; max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .ba-h2 .ba-hbag > a {text-transform:none !important; font-weight:500; gap:10px; display:inline-flex; align-items:center;}

  /* menu row: caret right after the label, store and trending icons */
  .ba-h2 .ba-nav-row > .ba-nav-link {padding-right:3px;}
  .ba-h2 .ba-nav-row > .ba-nav-link::after {right:3px;}
  .ba-h2 .ba-nav-toggle {width:16px; height:30px; margin:0 12px 0 0; display:inline-flex; align-items:center; justify-content:center; color:inherit;}
  .ba-h2 .ba-nav-toggle::before {content:''; font-family:inherit; width:13px; height:13px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center/contain; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center/contain;}
  .ba-h2 .ba-nav-item:hover .ba-nav-toggle, .ba-h2 .ba-nav-item.is-open .ba-nav-toggle {color:#c2185b;}
  .ba-h2 .ba-dico {display:inline-block; vertical-align:-3px; margin-right:7px;}
  .ba-h2 .ba-store-ic {width:26px; height:26px; margin-top:-4px; vertical-align:middle; border-radius:5px; object-fit:cover; box-shadow:0 0 0 1px #efc9bc;}
  .ba-h2 .jaipur_store_css::before, .ba-h2 .jaipur_store_css::after {content:none !important; display:none !important;}
  .ba-h2 .ba-nav-trend > .ba-nav-link {font-weight:600;}
  .ba-h2 .ba-nav-trend .ba-nav-tag {top:4px; right:2px;}

  /* mega menu: round thumbnails, NEW tags, arch promo with a photo, chips row */
  .ba-h2 .ba-mega {border-top-width:3px; border-radius:0 0 26px 26px; max-width:1360px; margin:0 auto; left:0; right:0;}
  .ba-h2 .ba-mega-grid {padding:28px 30px 18px; gap:26px;}
  .ba-h2 .ba-mega-h {font-size:13px; letter-spacing:.09em; padding-bottom:10px; margin-bottom:10px;}
  .ba-h2 #megaWoman .ba-mega-col li a {display:flex; align-items:center; gap:11px; padding:5px 0; font-size:14.5px;}
  .ba-h2 #megaWoman .ba-mega-col li a:hover {text-decoration:none;}
  .ba-h2 #megaWoman .ba-mega-col li a:hover .ba-mth {box-shadow:0 0 0 2px #fff, 0 0 0 3px #ff71a8;}
  .ba-h2 .ba-mega-all {color:#c2185b !important; margin-top:6px; font-weight:600;}
  .ba-h2 .ba-mega-promo {padding:16px 16px 20px; border-radius:140px 140px 18px 18px; align-self:start; display:flex; flex-direction:column; align-items:center;}
  .ba-h2 .ba-mega-promo::before {top:-60px;}
  .ba-h2 .ba-mega-promo-img {display:block; width:100%; aspect-ratio:3/3.3; border-radius:130px 130px 12px 12px; overflow:hidden; border:3px solid #fce7e1; background:#6a4e5d;}
  .ba-h2 .ba-mega-promo-img img {width:100%; height:100%; object-fit:cover; object-position:top; display:block;}
  .ba-h2 .ba-mega-promo-k {margin:14px 0 2px; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:#ffd1e3;}
  .ba-h2 .ba-mega-promo-t {margin:0 0 12px; font-size:17px;}
  .ba-h2 .ba-mega-promo-btn {padding:8px 18px; font-size:12.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;}
  .ba-h2 .ba-mega-foot {display:flex; flex-wrap:wrap; gap:10px; max-width:1314px; margin:0 auto; padding:16px 30px 24px; border-top:1.5px dashed #efc4b6;}
  .ba-h2 .ba-mega-foot > * {display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:20px; background:#fdeee8; color:var(--PColor) !important; font-size:13px;}
  .ba-h2 .ba-mega-foot i {color:#c2185b; font-size:13px;}
  .ba-h2 .ba-mega-foot a:hover {background:#fbdcd2;}
}

@media (max-width: 1024px) {
  .ba-h2 #megaWoman .ba-mega-col li a {display:flex; align-items:center; gap:12px; padding:8px 18px 8px 28px;}
  .ba-h2 .ba-mth {width:28px; height:28px;}
}

/* bag pill: keep the label white on hover (site links turn pink on hover) */
.ba-h2 .ba-hbag > a:hover, .ba-h2 .ba-hbag > a:hover .ba-hlabel, .ba-h2 .ba-hbag > a:focus .ba-hlabel {color:#fff !important;}
.ba-h2 .ba-hbag > a:hover > i {color:#c2185b;}
