/* KTCSTORE shared homepage search/header pattern for customer collection pages. */
.mobile-search-close{display:none}
@media (min-width:768px){
  html body header:has(#searchInput) .search-wrapper{position:relative;width:44px;min-width:44px;flex:0 0 44px;z-index:10;transition:width .2s ease,flex-basis .2s ease}
  html body header:has(#searchInput) .search-wrapper:focus-within{width:min(360px,34vw);min-width:0;flex-basis:min(360px,34vw)}
  html body header:has(#searchInput) .search{width:100%;padding:0 84px 0 16px!important;font-size:13px}
  html body header:has(#searchInput) .search-wrapper:not(:focus-within) .search{height:44px;padding:0!important;border-color:transparent;background:transparent;font-size:0;box-shadow:none}
  html body header:has(#searchInput) .search-wrapper:not(:focus-within) .search-clear,
  html body header:has(#searchInput) .search-wrapper:not(:focus-within) .search-suggestions{display:none}
  html body header:has(#searchInput) .search-submit{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:5;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--border,#e8ded5);border-radius:50%;background:#fff;color:#302824;font-size:0;cursor:pointer;transition:width .2s ease,border-radius .2s ease,background .2s ease}
  html body header:has(#searchInput) .search-submit svg{display:none}
  html body header:has(#searchInput) .search-submit::before{content:'⌕';font:28px/1 Arial,sans-serif;color:#302824}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-submit{right:5px;width:auto;min-width:66px;height:30px;padding:0 11px;border:0;border-radius:999px;background:#302824;color:#fff;font:700 11px/1 Arial,sans-serif}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-submit::before{content:none}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-submit[aria-label="Search products"]::after{content:'Search';font:700 11px/1 Arial,sans-serif}
  html body header:has(#searchInput) .search-submit:hover{background:#a77b54;color:#fff}
  html body header:has(#searchInput) .search-wrapper:not(:focus-within) .search-submit:hover::before{color:#fff}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-clear{right:78px}
}
@media(max-width:767px){
  html,body{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
  html body header:has(#searchInput){display:grid!important;grid-template-columns:minmax(0,1fr) 40px 40px 40px!important;grid-template-rows:auto auto auto auto!important;column-gap:8px!important;align-items:center!important;width:100%!important;max-width:100%!important;padding:8px 10px 9px!important;overflow:visible!important;box-sizing:border-box!important}
  html body header:has(#searchInput) .nav,html body header:has(#searchInput) .nav-right{display:contents!important}
  html body header:has(#searchInput) .logo{grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important;margin:0!important;font-size:clamp(17px,5vw,21px)!important;letter-spacing:1.3px!important;white-space:nowrap!important}
  html body header:has(#searchInput) .ktc-main-nav{grid-column:1/-1!important;grid-row:2!important;display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:4px 0 8px!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important}
  html body header:has(#searchInput) .ktc-main-nav::-webkit-scrollbar{display:none!important}
  html body header:has(#searchInput) .ktc-main-nav a{flex:0 0 auto!important;white-space:nowrap!important;min-height:36px!important;padding:0 12px!important}
  html body header:has(#searchInput) .search-wrapper{display:contents!important}
  html body header:has(#searchInput) .search-wrapper .search-submit{display:inline-flex!important;grid-column:2!important;grid-row:1!important;position:relative!important;right:auto!important;top:auto!important;transform:none!important;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;border:1px solid #eadfd7!important;border-radius:50%!important;background:#fff!important;color:transparent!important;font-size:0!important;box-shadow:0 4px 12px rgba(62,42,34,.07)!important}
  html body header:has(#searchInput) .search-wrapper .search-submit::before{content:'⌕'!important;font:27px/1 Arial,sans-serif!important;color:#302824!important}
  html body header:has(#searchInput) .search-wrapper .search-submit svg{display:none!important}
  html body header:has(#searchInput) .search-wrapper::before{content:none!important}
  html body header:has(#searchInput) .search-wrapper:not(:focus-within) .search{position:fixed!important;left:0!important;bottom:0!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
  html body header:has(#searchInput) .search-wrapper:not(:focus-within) .search-clear,html body header:has(#searchInput) .search-wrapper:not(:focus-within) .search-suggestions,html body header:has(#searchInput) .search-wrapper:not(:focus-within) .mobile-search-close{display:none!important}
  html body header:has(#searchInput) .search-wrapper:focus-within{display:grid!important;grid-column:1/-1!important;grid-row:4!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;grid-template-rows:44px auto!important;align-items:center!important;gap:7px!important;width:auto!important;min-width:0!important;margin:7px 0 12px!important;padding:0 3px!important;position:relative!important;z-index:1!important}
  html body header:has(#searchInput) .search-wrapper:focus-within .search{grid-column:1!important;grid-row:1!important;position:static!important;width:100%!important;min-width:0!important;height:44px!important;padding:0 12px!important;border:1px solid #eadfd7!important;border-radius:12px!important;background:#fff!important;color:#332a26!important;font:13px/1.2 Arial,sans-serif!important;white-space:nowrap!important;opacity:1!important;pointer-events:auto!important;box-shadow:0 5px 16px rgba(80,50,40,.08)!important}
  html body header:has(#searchInput) .search-wrapper:focus-within .search::placeholder{color:#8b7c74!important;opacity:1!important;white-space:nowrap!important}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-submit{grid-column:2!important;grid-row:1!important;position:static!important;transform:none!important;width:auto!important;min-width:62px!important;height:38px!important;padding:0 11px!important;border:0!important;border-radius:999px!important;background:#302824!important;color:#fff!important;font:700 11px/1 Arial,sans-serif!important;box-shadow:none!important}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-submit::before{content:none!important}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-submit[aria-label="Search products"]::after{content:'Search';font:700 11px/1 Arial,sans-serif}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-clear{grid-column:3!important;grid-row:1!important;position:static!important;right:auto!important;top:auto!important;transform:none!important;width:30px!important;height:36px!important;flex:none!important}
  html body header:has(#searchInput) .search-wrapper:focus-within .mobile-search-close{grid-column:4!important;grid-row:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:36px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#f7eee9!important;color:#59473f!important;font-size:22px!important;line-height:1!important}
  html body header:has(#searchInput) .search-wrapper:focus-within .search-suggestions{grid-column:1/-1!important;grid-row:2!important;position:static!important;top:auto!important;left:auto!important;right:auto!important;width:100%!important;max-height:min(38vh,260px)!important;margin:0!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  html body header:has(#searchInput) .wishlist-header-btn{grid-column:3!important;grid-row:1!important;width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important;margin:0!important;border:0!important;background:transparent!important;font-size:25px!important;box-shadow:none!important}
  html body header:has(#searchInput) .wishlist-count{top:-2px!important;right:-3px!important;z-index:2!important}
  html body header:has(#searchInput) .cart-btn{grid-column:4!important;grid-row:1!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;min-width:40px!important;height:40px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#302824!important;font-size:0!important;box-shadow:none!important}
  html body header:has(#searchInput) .cart-btn::before{content:'🛒';font-size:21px;line-height:1}
  html body header:has(#searchInput) .cart-count{position:absolute!important;top:-2px!important;right:-3px!important;min-width:18px!important;height:18px!important;margin:0!important;padding:0 4px!important;border:2px solid #fff!important;border-radius:20px!important;background:var(--gold)!important;color:#fff!important;font-size:9px!important;line-height:14px!important}
  html body header:has(#searchInput) #ktcAccountPincodeGroup,html body header:has(#searchInput) #customerLoginBtn{grid-column:1/-1!important;grid-row:3!important;justify-self:end!important;position:relative!important;width:max-content!important;max-width:calc(100% - 4px)!important;min-width:0!important;margin:6px 2px 3px!important}
  html body header:has(#searchInput) #ktcAccountPincodeGroup{display:flex!important;align-items:center!important;gap:7px!important;overflow:visible!important}
  html body header:has(#searchInput) #ktcAccountPincodeGroup #customerLoginBtn{grid-column:auto!important;grid-row:auto!important;max-width:100%!important;min-width:0!important;height:36px!important;margin:0!important;padding:0 12px!important;border:1px solid #d9b4a7!important;border-radius:999px!important;background:linear-gradient(135deg,#b77b65,#9b624f)!important;color:#fff!important;font-size:11px!important;font-weight:700!important;white-space:nowrap!important}
  html body header:has(#searchInput) > #customerLoginBtn{display:flex!important;align-items:center!important;justify-content:center!important;max-width:calc(100% - 4px)!important;min-width:0!important;height:36px!important;margin:6px 2px 3px auto!important;padding:0 12px!important;font-size:11px!important;white-space:nowrap!important}
  html body header:has(#searchInput) #ktcSavedPincodeControl{max-width:calc(100vw - 200px)!important}
}
@media(max-width:390px){
  html body header:has(#searchInput){grid-template-columns:minmax(0,1fr) 38px 38px 38px!important;column-gap:6px!important;padding-left:9px!important;padding-right:9px!important}
  html body header:has(#searchInput) .search-wrapper .search-submit{width:38px!important;min-width:38px!important;height:38px!important}
  html body header:has(#searchInput) .wishlist-header-btn,html body header:has(#searchInput) .cart-btn{width:38px!important;min-width:38px!important;height:38px!important}
  html body header:has(#searchInput) .ktc-main-nav a{padding-right:10px!important;padding-left:10px!important}
}
