/* =========================================================
   KTCSTORE — SHARED MOBILE UI
   FINAL MERGED V3 + V4 + V5 + V6
   ---------------------------------------------------------
   Mobile only.
   Desktop remains untouched.
   JS / API / Cart / Wishlist / Clerk logic untouched.
   ========================================================= */


/* =========================================================
   MOBILE ONLY
   ========================================================= */

   @media (max-width: 767px){

    /* =======================================================
       GLOBAL
       ======================================================= */
  
    html,
    body{
      width:100% !important;
      max-width:100% !important;
      min-width:0 !important;
      overflow-x:hidden !important;
    }
  
    html{
      -webkit-text-size-adjust:100%;
    }
  
    body{
      background:#fff !important;
      font-size:14px;
    }
  
    *,
    *::before,
    *::after{
      box-sizing:border-box;
    }
  
  
    /* =======================================================
       HEADER
       ======================================================= */
  
    header{
      width:100% !important;
      max-width:100% !important;
      min-width:0 !important;
  
      position:sticky !important;
      top:0 !important;
  
      z-index:2000 !important;
  
      overflow:visible !important;
  
      background:rgba(255,255,255,.97) !important;
  
      border-bottom:1px solid #eee3dc !important;
  
      box-shadow:
        0 3px 16px rgba(45,30,24,.05) !important;
  
      backdrop-filter:blur(14px);
      -webkit-backdrop-filter:blur(14px);
    }
  
  
    /* =======================================================
       HEADER GRID
  
       Row 1:
       LOGO | SEARCH | WISHLIST | CART
  
       Row 2:
       CATEGORY NAV
  
       Row 3:
       LOGIN
       ======================================================= */
  
    .nav{
      width:100% !important;
      max-width:100% !important;
      min-width:0 !important;
  
      margin:0 !important;
  
      padding:10px 12px 0 !important;
  
      display:grid !important;
  
      grid-template-columns:
        auto
        minmax(0,1fr)
        38px
        43px !important;
  
      grid-template-rows:
        42px
        auto
        auto !important;
  
      column-gap:6px !important;
      row-gap:6px !important;
  
      align-items:center !important;
    }
  
  
    /* =======================================================
       LOGO
       ======================================================= */
  
    .logo{
      grid-column:1 !important;
      grid-row:1 !important;
  
      width:max-content !important;
      max-width:100% !important;
      min-width:0 !important;
  
      margin:0 !important;
  
      font-size:20px !important;
  
      line-height:1 !important;
  
      letter-spacing:1.5px !important;
  
      white-space:nowrap !important;
  
      align-self:center !important;
    }
  
  
    /* =======================================================
       NAV RIGHT
  
       IMPORTANT:
       We use display:contents so the actual search,
       wishlist and cart buttons become direct grid items.
  
       This prevents the old nested-grid conflicts from V3/V4/V5.
       ======================================================= */
  
    .nav-right{
      display:contents !important;
    }
  
  
    /* =======================================================
       SEARCH
       ======================================================= */
  
    .search-wrapper{
      grid-column:2 !important;
      grid-row:1 !important;
  
      width:100% !important;
      min-width:0 !important;
  
      position:relative !important;
  
      align-self:center !important;
    }
  
  
    .search{
      display:block !important;
  
      width:100% !important;
      min-width:0 !important;
  
      height:40px !important;
  
      padding:
        0 34px 0 38px !important;
  
      border:1px solid #e4d8d0 !important;
  
      border-radius:999px !important;
  
      background:#fffaf7 !important;
  
      color:#2d2521 !important;
  
      font-family:inherit !important;
  
      font-size:12px !important;
  
      line-height:40px !important;
  
      outline:none !important;
  
      appearance:none !important;
  
      -webkit-appearance:none !important;
    }
  
  
    .search::placeholder{
      color:#9a8c84 !important;
      opacity:1 !important;
    }
  
  
    .search:focus{
      border-color:#b77b65 !important;
  
      background:#fff !important;
  
      box-shadow:
        0 0 0 3px rgba(183,123,101,.10) !important;
    }
  
  
    /* Search icon */
  
    .search-wrapper::before{
      content:'⌕' !important;
  
      position:absolute !important;
  
      left:12px !important;
      top:50% !important;
  
      width:18px !important;
      height:18px !important;
  
      transform:translateY(-50%) !important;
  
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      color:#5f5149 !important;
  
      font-size:22px !important;
  
      line-height:1 !important;
  
      pointer-events:none !important;
  
      z-index:3 !important;
    }
  
  
    /* Search clear button */
  
    .search-clear{
      position:absolute !important;
  
      right:8px !important;
      top:50% !important;
  
      width:25px !important;
      height:25px !important;
  
      transform:translateY(-50%) !important;
  
      display:none !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      border:0 !important;
  
      border-radius:50% !important;
  
      background:#eaded7 !important;
  
      color:#4b3d36 !important;
  
      font-size:16px !important;
  
      line-height:1 !important;
  
      padding:0 !important;
  
      z-index:5 !important;
  
      cursor:pointer !important;
    }
  
  
    .search-clear.show{
      display:flex !important;
    }
  
  
    /* SEARCH SUGGESTIONS
       IMPORTANT: V6 used display:none here.
       That was one of the reasons mobile search UX broke.
    */
  
    .search-suggestions{
      position:absolute !important;
  
      top:calc(100% + 7px) !important;
  
      left:0 !important;
      right:0 !important;
  
      width:100% !important;
  
      max-height:55vh !important;
  
      overflow-y:auto !important;
  
      display:none;
  
      background:#fff !important;
  
      border:1px solid #eadfd7 !important;
  
      border-radius:14px !important;
  
      box-shadow:
        0 15px 35px rgba(50,35,28,.12) !important;
  
      z-index:3000 !important;
    }
  
  
    .search-suggestions::-webkit-scrollbar{
      width:4px;
    }
  
  
    .search-suggestion{
      min-height:52px !important;
  
      padding:9px 11px !important;
  
      display:flex !important;
  
      align-items:center !important;
  
      gap:9px !important;
    }
  
  
    .search-suggestion:active{
      background:#faf2ed !important;
    }
  
  
    .search-no-result{
      padding:15px !important;
  
      font-size:12px !important;
  
      color:#806f66 !important;
  
      text-align:center !important;
    }
  
  
    /* =======================================================
       WISHLIST
       ======================================================= */
  
    .wishlist-header-btn{
      grid-column:3 !important;
      grid-row:1 !important;
  
      width:38px !important;
      height:40px !important;
  
      min-width:38px !important;
  
      margin:0 !important;
      padding:0 !important;
  
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      position:relative !important;
  
      border:1px solid #eadfd7 !important;
  
      border-radius:50% !important;
  
      background:#fffaf7 !important;
  
      color:#2c2521 !important;
  
      font-size:22px !important;
  
      line-height:1 !important;
  
      box-shadow:none !important;
    }
  
  
    .wishlist-count{
      position:absolute !important;
  
      top:-3px !important;
      right:-4px !important;
  
      min-width:16px !important;
      height:16px !important;
  
      padding:0 4px !important;
  
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      border-radius:999px !important;
  
      background:#a87557 !important;
  
      color:#fff !important;
  
      font-size:8px !important;
  
      line-height:1 !important;
    }
  
  
    /* =======================================================
       CART BUTTON
  
       DO NOT replace the real cart text with ♧.
       Existing 🛒 Cart content is preserved.
       ======================================================= */
  
    .cart-btn{
      grid-column:4 !important;
      grid-row:1 !important;
  
      width:43px !important;
      min-width:43px !important;
      height:40px !important;
  
      margin:0 !important;
      padding:0 !important;
  
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      position:relative !important;
  
      border:1px solid #eadfd7 !important;
  
      border-radius:50% !important;
  
      background:#fffaf7 !important;
  
      color:#2c2521 !important;
  
      font-size:20px !important;
  
      line-height:1 !important;
  
      white-space:nowrap !important;
    }
  
  
    /*
      Hide only the "Cart" text visually while keeping
      the existing button / onclick / DOM untouched.
    */
  
    .cart-btn{
      font-size:0 !important;
    }
  
  
    .cart-btn::before{
      content:'🛒' !important;
  
      display:block !important;
  
      font-size:19px !important;
  
      line-height:1 !important;
    }
  
  
    .cart-count{
      position:absolute !important;
  
      top:-4px !important;
      right:-4px !important;
  
      min-width:17px !important;
      height:17px !important;
  
      padding:0 4px !important;
  
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      border-radius:999px !important;
  
      background:#a87557 !important;
  
      color:#fff !important;
  
      font-size:8px !important;
  
      line-height:1 !important;
  
      z-index:4 !important;
    }
  
  
    /* =======================================================
       CATEGORY NAV
       ======================================================= */
  
    .ktc-main-nav{
      grid-column:1/-1 !important;
      grid-row:2 !important;
  
      width:calc(100% + 24px) !important;
  
      min-width:0 !important;
  
      margin-left:-12px !important;
  
      padding:
        3px 12px 8px !important;
  
      display:flex !important;
  
      align-items:center !important;
  
      gap:0 !important;
  
      overflow-x:auto !important;
      overflow-y:hidden !important;
  
      flex-wrap:nowrap !important;
  
      justify-content:flex-start !important;
  
      border:0 !important;
  
      scrollbar-width:none !important;
  
      -webkit-overflow-scrolling:touch !important;
    }
  
  
    .ktc-main-nav::-webkit-scrollbar{
      display:none !important;
    }
  
  
    .ktc-main-nav a{
      flex:0 0 auto !important;
  
      min-height:35px !important;
  
      padding:0 13px !important;
  
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      position:relative !important;
  
      border:0 !important;
  
      border-radius:0 !important;
  
      background:transparent !important;
  
      color:#302824 !important;
  
      font-family:
        Georgia,
        "Times New Roman",
        serif !important;
  
      font-size:11px !important;
  
      font-weight:600 !important;
  
      line-height:1 !important;
  
      white-space:nowrap !important;
  
      text-decoration:none !important;
    }
  
  
    .ktc-main-nav a:active{
      color:#a87557 !important;
    }
  
  
    .ktc-main-nav a:first-child::after{
      content:'' !important;
  
      position:absolute !important;
  
      left:10px !important;
      right:10px !important;
      bottom:0 !important;
  
      height:2px !important;
  
      background:#a87557 !important;
  
      border-radius:2px !important;
    }
  
  
    /* =======================================================
       LOGIN
       ======================================================= */
  
    #customerLoginBtn{
      grid-column:1/-1 !important;
      grid-row:3 !important;
  
      width:max-content !important;
  
      max-width:100% !important;
  
      min-width:0 !important;
  
      height:34px !important;
  
      margin:0 0 9px auto !important;
  
      padding:0 15px !important;
  
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      border:1px solid #b77b65 !important;
  
      border-radius:999px !important;
  
      background:
        linear-gradient(
          135deg,
          #b77b65,
          #9b624f
        ) !important;
  
      color:#fff !important;
  
      box-shadow:
        0 6px 16px rgba(155,98,79,.14) !important;
  
      font-size:10px !important;
  
      font-weight:700 !important;
  
      white-space:nowrap !important;
    }
  
  
    #customerLoginBtn:active{
      transform:scale(.97) !important;
    }
  
  
    /* =======================================================
       HERO
       ======================================================= */
  
    .hero,
    .ktc-hero-slider{
      width:100% !important;
      max-width:100% !important;
  
      min-width:0 !important;
  
      overflow:hidden !important;
    }
  
  
    .ktc-hero-slider,
    .ktc-hero-slides,
    .ktc-hero-slide{
      min-height:550px !important;
      height:550px !important;
    }
  
  
    .ktc-hero-copy{
      width:100% !important;
      max-width:100% !important;
  
      margin:0 !important;
  
      padding:
        40px 18px 105px !important;
  
      position:relative !important;
  
      z-index:8 !important;
    }
  
  
    .ktc-hero-copy h1{
      max-width:320px !important;
  
      margin:0 !important;
  
      font-size:
        clamp(42px,12.5vw,54px) !important;
  
      line-height:.95 !important;
  
      letter-spacing:-2.5px !important;
    }
  
  
    .ktc-hero-copy p{
      max-width:290px !important;
  
      margin:18px 0 0 !important;
  
      font-size:12px !important;
  
      line-height:1.6 !important;
    }
  
  
    .ktc-hero-copy .hero-actions{
      display:flex !important;
  
      flex-wrap:wrap !important;
  
      gap:8px !important;
  
      margin-top:21px !important;
    }
  
  
    .ktc-hero-copy .hero-btn{
      min-height:43px !important;
      height:43px !important;
  
      padding:0 14px !important;
  
      font-size:10px !important;
  
      white-space:nowrap !important;
    }
  
  
    .ktc-hero-visual{
      max-width:100% !important;
  
      pointer-events:none !important;
  
      opacity:.18 !important;
    }
  
  
    .hero-script{
      display:none !important;
    }
  
  
    .ktc-hero-arrow{
      width:34px !important;
      height:34px !important;
  
      bottom:16px !important;
  
      top:auto !important;
  
      transform:none !important;
  
      z-index:15 !important;
    }
  
  
    .ktc-hero-prev{
      left:12px !important;
    }
  
  
    .ktc-hero-next{
      right:12px !important;
    }
  
  
    .ktc-hero-dots{
      bottom:28px !important;
    }
  
  
    /* =======================================================
       GENERAL SECTIONS
       ======================================================= */
  
    .category-showcase,
    .new-arrivals,
    .best-sellers,
    .why-ktc,
    .beauty-trust,
    #productsSection{
      width:100% !important;
      max-width:100% !important;
      min-width:0 !important;
  
      box-sizing:border-box !important;
  
      padding:
        28px 14px 20px !important;
  
      margin-top:0 !important;
    }
  
  
    .category-showcase-head,
    .new-arrivals-head,
    .best-sellers-head,
    .why-ktc-head{
      width:100% !important;
  
      min-width:0 !important;
  
      margin-bottom:18px !important;
    }
  
  
    .category-showcase-head h2,
    .new-arrivals h2,
    .best-sellers h2,
    .why-ktc h2{
      font-size:31px !important;
  
      line-height:1.05 !important;
    }
  
  
    .category-showcase-head p,
    .new-arrivals-head p,
    .best-sellers-head p,
    .why-ktc-head p{
      font-size:11px !important;
  
      line-height:1.55 !important;
    }
  
  
    .section-eyebrow{
      font-size:9px !important;
  
      letter-spacing:2.5px !important;
    }
  
  
    /* =======================================================
       CATEGORY CARDS
       ======================================================= */
  
    .category-showcase-grid{
      width:100% !important;
  
      display:grid !important;
  
      grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;
  
      gap:10px !important;
    }
  
  
    .beauty-category{
      width:100% !important;
  
      min-width:0 !important;
  
      border-radius:15px !important;
  
      overflow:hidden !important;
    }
  
  
    .beauty-category-image{
      height:145px !important;
  
      padding:9px !important;
    }
  
  
    .beauty-category-content{
      padding:12px !important;
    }
  
  
    .beauty-category-content h3{
      font-size:16px !important;
  
      line-height:1.2 !important;
    }
  
  
    .beauty-category-content p{
      font-size:10px !important;
  
      line-height:1.5 !important;
    }
  
  
    /* =======================================================
       SECTION HEADERS
       ======================================================= */
  
    .new-arrivals-head,
    .best-sellers-head{
      display:grid !important;
  
      grid-template-columns:
        minmax(0,1fr)
        auto !important;
  
      align-items:end !important;
  
      gap:8px !important;
    }
  
  
    .new-arrivals-head > div,
    .best-sellers-head > div{
      min-width:0 !important;
    }
  
  
    .new-arrivals h2,
    .best-sellers h2{
      font-size:33px !important;
  
      margin:6px 0 !important;
    }
  
  
    .new-arrivals-btn,
    .best-sellers-btn{
      height:40px !important;
      min-height:40px !important;
  
      padding:0 12px !important;
  
      font-size:9px !important;
  
      border-radius:999px !important;
  
      white-space:nowrap !important;
    }
  
  
    /* =======================================================
       PRODUCT GRIDS
       ======================================================= */
  
    .new-arrivals-grid,
    .best-sellers-grid,
    .products{
      width:100% !important;
  
      min-width:0 !important;
  
      display:grid !important;
  
      grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;
  
      gap:9px !important;
  
      align-items:start !important;
  
      grid-auto-rows:max-content !important;
    }
  
  
    .product-card{
      width:100% !important;
  
      min-width:0 !important;
  
      height:auto !important;
  
      min-height:0 !important;
  
      max-height:none !important;
  
      align-self:start !important;
  
      display:block !important;
  
      overflow:hidden !important;
  
      border-radius:18px !important;
  
      border:1px solid #eadfd7 !important;
  
      background:#fff !important;
  
      box-shadow:
        0 7px 22px rgba(61,42,32,.06) !important;
    }
  
  
    .product-img{
      width:100% !important;
  
      height:170px !important;
  
      padding:9px !important;
  
      flex:none !important;
  
      overflow:hidden !important;
    }
  
  
    .product-img img{
      width:100% !important;
  
      max-width:100% !important;
  
      height:100% !important;
  
      object-fit:contain !important;
    }
  
  
    .product-info{
      width:100% !important;
  
      min-width:0 !important;
  
      height:auto !important;
  
      min-height:0 !important;
  
      max-height:none !important;
  
      padding:10px !important;
  
      flex:none !important;
    }
  
  
    .product-category{
      font-size:8px !important;
  
      letter-spacing:1.3px !important;
  
      margin-bottom:5px !important;
    }
  
  
    .product-name{
      width:100% !important;
  
      min-width:0 !important;
  
      height:auto !important;
  
      min-height:0 !important;
  
      margin:0 0 7px !important;
  
      font-size:12px !important;
  
      line-height:1.3 !important;
  
      overflow-wrap:anywhere !important;
  
      display:-webkit-box !important;
  
      -webkit-line-clamp:3 !important;
  
      line-clamp:3 !important;
  
      -webkit-box-orient:vertical !important;
  
      overflow:hidden !important;
    }
  
  
    .price{
      gap:4px !important;
  
      margin-top:5px !important;
  
      flex-wrap:wrap !important;
    }
  
  
    .selling-price{
      font-size:16px !important;
    }
  
  
    .mrp{
      font-size:9px !important;
    }
  
  
    .discount{
      font-size:9px !important;
  
      margin-top:3px !important;
    }
  
  
    .offer-strip{
      max-width:100% !important;
  
      padding:4px 5px !important;
  
      font-size:8px !important;
  
      overflow:hidden !important;
    }
  
  
    /* =======================================================
       PRODUCT ACTIONS
       ======================================================= */
  
    .product-actions{
      width:100% !important;
  
      min-width:0 !important;
  
      height:auto !important;
  
      margin-top:8px !important;
  
      display:grid !important;
  
      grid-template-columns:1fr !important;
  
      gap:6px !important;
    }
  
  
    .product-qty{
      width:100% !important;
  
      height:35px !important;
  
      min-height:35px !important;
  
      justify-content:space-between !important;
    }
  
  
    .product-qty button{
      width:32px !important;
  
      height:35px !important;
  
      flex:0 0 32px !important;
    }
  
  
    .product-qty span{
      min-width:0 !important;
  
      flex:1 !important;
  
      font-size:10px !important;
    }
  
  
    .add-btn{
      width:100% !important;
  
      min-width:0 !important;
  
      height:37px !important;
  
      min-height:37px !important;
  
      padding:0 6px !important;
  
      font-size:9px !important;
  
      border-radius:10px !important;
  
      white-space:nowrap !important;
    }
  
  
    .wishlist-btn{
      width:32px !important;
  
      height:32px !important;
  
      top:8px !important;
  
      right:8px !important;
  
      font-size:16px !important;
    }
  
  
    .badge{
      top:8px !important;
  
      left:8px !important;
  
      padding:5px 7px !important;
  
      font-size:8px !important;
    }
  
  
    .stock-badge{
      top:8px !important;
  
      right:8px !important;
  
      max-width:calc(100% - 16px) !important;
  
      padding:5px 6px !important;
  
      font-size:8px !important;
    }
  
  
    /* =======================================================
       PRODUCT CAROUSEL
       ======================================================= */
  
    .ktc-product-carousel{
      width:100% !important;
  
      max-width:100% !important;
  
      min-width:0 !important;
  
      height:auto !important;
  
      min-height:0 !important;
  
      margin:0 !important;
  
      padding:0 !important;
  
      position:relative !important;
  
      display:block !important;
    }
  
  
    .ktc-product-carousel-track{
      width:100% !important;
  
      min-width:0 !important;
  
      height:auto !important;
  
      min-height:0 !important;
  
      max-height:none !important;
  
      display:grid !important;
  
      grid-auto-flow:column !important;
  
      grid-auto-rows:max-content !important;
  
      grid-auto-columns:
        calc((100% - 10px)/2) !important;
  
      gap:10px !important;
  
      align-items:start !important;
  
      align-content:start !important;
  
      overflow-x:auto !important;
  
      overflow-y:hidden !important;
  
      padding:0 1px 4px !important;
  
      margin:0 !important;
  
      box-sizing:border-box !important;
  
      scrollbar-width:none !important;
  
      -webkit-overflow-scrolling:touch !important;
    }
  
  
    .ktc-product-carousel-track::-webkit-scrollbar{
      display:none !important;
    }
  
  
    .ktc-product-carousel-track .product-card{
      height:auto !important;
  
      min-height:0 !important;
  
      max-height:none !important;
  
      align-self:start !important;
    }
  
  
    .ktc-product-carousel-track .product-img{
      height:170px !important;
  
      padding:9px !important;
    }
  
  
    .ktc-product-carousel-track .product-info{
      padding:10px !important;
  
      height:auto !important;
  
      min-height:0 !important;
    }
  
  
    .ktc-product-carousel-track .product-name{
      min-height:0 !important;
  
      height:auto !important;
  
      font-size:12px !important;
  
      line-height:1.3 !important;
  
      -webkit-line-clamp:3 !important;
  
      line-clamp:3 !important;
    }
  
  
    .ktc-product-carousel-track .selling-price{
      font-size:16px !important;
    }
  
  
    .ktc-product-carousel-track .product-actions{
      display:grid !important;
  
      grid-template-columns:1fr !important;
  
      gap:6px !important;
  
      height:auto !important;
    }
  
  
    .ktc-product-carousel-track .product-qty{
      width:100% !important;
    }
  
  
    .ktc-product-carousel-track .add-btn{
      width:100% !important;
  
      height:37px !important;
  
      min-height:37px !important;
  
      font-size:9px !important;
    }
  
  
    /* Carousel arrows */
  
    .ktc-product-arrow{
      position:absolute !important;
  
      top:50% !important;
  
      transform:translateY(-50%) !important;
  
      z-index:20 !important;
  
      width:34px !important;
  
      height:34px !important;
  
      flex:none !important;
  
      border:1px solid #eaded6 !important;
  
      background:rgba(255,255,255,.96) !important;
  
      color:#2b2522 !important;
  
      box-shadow:
        0 7px 20px rgba(50,35,28,.10) !important;
  
      font-size:20px !important;
    }
  
  
    .ktc-product-prev{
      left:-5px !important;
    }
  
  
    .ktc-product-next{
      right:-5px !important;
    }
  
  
    /* =======================================================
       SECTION SPACING
       ======================================================= */
  
    .best-sellers + .new-arrivals{
      padding-top:20px !important;
  
      margin-top:0 !important;
    }
  
  
    .best-sellers + .new-arrivals
    .new-arrivals-head{
      margin-bottom:16px !important;
    }
  
  
    /* =======================================================
       PROMO
       ======================================================= */
  
    .promo-banner{
      width:auto !important;
  
      max-width:calc(100% - 28px) !important;
  
      margin:0 14px !important;
  
      min-height:280px !important;
  
      padding:30px 18px !important;
  
      border-radius:18px !important;
  
      overflow:hidden !important;
    }
  
  
    .promo-banner h2{
      max-width:75% !important;
  
      font-size:30px !important;
    }
  
  
    .promo-banner p{
      max-width:75% !important;
  
      font-size:11px !important;
    }
  
  
    .promo-banner-decoration{
      width:180px !important;
  
      height:180px !important;
  
      right:-55px !important;
  
      bottom:-55px !important;
    }
  
  
    /* =======================================================
       TRUST
       ======================================================= */
  
    .beauty-trust{
      grid-template-columns:1fr !important;
  
      gap:25px !important;
    }
  
  
    .beauty-trust-content h2{
      font-size:38px !important;
    }
  
  
    .beauty-trust-content p{
      font-size:12px !important;
  
      line-height:1.6 !important;
    }
  
  
    .beauty-trust-visual{
      min-height:270px !important;
    }
  
  
    /* =======================================================
       FOOTER
       ======================================================= */
  
    .ktc-footer{
      margin-top:30px !important;
  
      padding:
        40px 14px 20px !important;
    }
  
  
    .ktc-footer-main{
      grid-template-columns:
        1fr 1fr !important;
  
      gap:25px 15px !important;
    }
  
  
    .ktc-footer-brand{
      grid-column:1/-1 !important;
    }
  
  
    .ktc-footer-bottom{
      margin-top:28px !important;
  
      flex-direction:column !important;
  
      gap:8px !important;
    }
  
  
    .footer-newsletter{
      width:100% !important;
    }
  
  
    /* =======================================================
       CART / WISHLIST DRAWERS
       ======================================================= */
  
    .cart-panel,
    .wishlist-panel{
      width:100% !important;
  
      max-width:420px !important;
  
      max-height:100dvh !important;
    }
  
  
    .cart-header{
      padding:15px !important;
    }
  
  
    .cart-items{
      padding:11px 14px !important;
    }
  
  
    .cart-footer{
      padding:13px 14px 16px !important;
  
      padding-bottom:
        calc(16px + env(safe-area-inset-bottom)) !important;
    }
  
  
    .cart-item{
      gap:8px !important;
    }
  
  
    .cart-item-img{
      width:62px !important;
  
      height:70px !important;
    }
  
  
    .cart-item-name{
      font-size:12px !important;
    }
  
  
    .coupon-input-row input{
      font-size:12px !important;
    }
  
  
    .checkout-btn{
      min-height:46px !important;
    }
  
  
    /* =======================================================
       PRODUCT MODAL
       ======================================================= */
  
    .product-modal-overlay{
      padding:7px !important;
  
      align-items:flex-start !important;
    }
  
  
    .product-modal{
      width:100% !important;
  
      max-width:100% !important;
  
      max-height:
        calc(100dvh - 14px) !important;
  
      margin-top:7px !important;
  
      border-radius:18px !important;
  
      overflow-y:auto !important;
    }
  
  
    .product-modal-grid{
      grid-template-columns:1fr !important;
    }
  
  
    .product-modal-image{
      min-height:245px !important;
  
      height:245px !important;
  
      padding:20px !important;
    }
  
  
    .product-modal-image img{
      height:200px !important;
  
      max-width:100% !important;
  
      object-fit:contain !important;
    }
  
  
    .product-modal-info{
      padding:
        21px 15px 26px !important;
    }
  
  
    .product-modal-info h2{
      font-size:25px !important;
  
      line-height:1.15 !important;
    }
  
  
    .modal-product-description{
      font-size:12px !important;
  
      line-height:1.6 !important;
    }
  
  
    .modal-product-actions{
      gap:7px !important;
    }
  
  
    .modal-quantity{
      height:43px !important;
    }
  
  
    .modal-quantity button{
      width:38px !important;
  
      height:43px !important;
    }
  
  
    .modal-add-cart{
      min-height:43px !important;
  
      font-size:10px !important;
    }
  
  
    .modal-variations{
      padding:11px !important;
    }
  
  
    .variation-options{
      gap:5px !important;
    }
  
  
    .variation-option{
      min-height:33px !important;
  
      padding:6px 9px !important;
    }
  
  
    /* =======================================================
       ACCOUNT MENU
       ======================================================= */
  
    .ktc-account-menu{
      left:auto !important;
  
      right:8px !important;
  
      width:
        calc(100vw - 16px) !important;
  
      max-width:360px !important;
  
      max-height:
        calc(100dvh - 20px) !important;
  
      overflow-y:auto !important;
  
      z-index:5000 !important;
    }
  
  
    /* =======================================================
       ADDRESS / FORMS
       ======================================================= */
  
    .ktc-address-grid{
      grid-template-columns:1fr !important;
    }
  
  
    input,
    select,
    textarea,
    button{
      max-width:100%;
    }
  
  
    /* Prevent accidental horizontal overflow from long values */
  
    .product-name,
    .product-category,
    .price,
    .offer-strip,
    .cart-item-name,
    .ktc-account-menu{
      overflow-wrap:anywhere !important;
  
      word-break:break-word !important;
    }
  }
  
  
  /* =========================================================
     SMALL PHONES
     <= 390px
     ========================================================= */
  
  @media (max-width:390px){
  
    .nav{
      padding:
        8px 9px 0 !important;
  
      grid-template-columns:
        auto
        minmax(0,1fr)
        36px
        40px !important;
  
      column-gap:5px !important;
    }
  
  
    .logo{
      font-size:18px !important;
  
      letter-spacing:1.2px !important;
    }
  
  
    .search{
      height:38px !important;
  
      padding-left:34px !important;
  
      padding-right:30px !important;
  
      font-size:11px !important;
    }
  
  
    .search-wrapper::before{
      left:10px !important;
  
      font-size:20px !important;
    }
  
  
    .wishlist-header-btn{
      width:36px !important;
  
      min-width:36px !important;
  
      height:38px !important;
  
      font-size:20px !important;
    }
  
  
    .cart-btn{
      width:40px !important;
  
      min-width:40px !important;
  
      height:38px !important;
    }
  
  
    .cart-btn::before{
      font-size:18px !important;
    }
  
  
    .ktc-main-nav a{
      min-height:33px !important;
  
      padding:0 11px !important;
  
      font-size:10px !important;
    }
  
  
    #customerLoginBtn{
      height:33px !important;
  
      margin-bottom:8px !important;
  
      padding:0 13px !important;
  
      font-size:9px !important;
    }
  
  
    .ktc-hero-slider,
    .ktc-hero-slides,
    .ktc-hero-slide{
      min-height:530px !important;
  
      height:530px !important;
    }
  
  
    .ktc-hero-copy{
      padding:
        36px 15px 92px !important;
    }
  
  
    .ktc-hero-copy h1{
      font-size:41px !important;
  
      max-width:280px !important;
    }
  
  
    .ktc-hero-copy p{
      max-width:260px !important;
  
      font-size:11px !important;
    }
  
  
    .ktc-hero-copy .hero-btn{
      min-height:40px !important;
  
      height:40px !important;
  
      padding:0 11px !important;
  
      font-size:9px !important;
    }
  
  
    .category-showcase,
    .new-arrivals,
    .best-sellers,
    .why-ktc,
    .beauty-trust,
    #productsSection{
      padding-left:10px !important;
  
      padding-right:10px !important;
    }
  
  
    .category-showcase-grid{
      gap:7px !important;
    }
  
  
    .beauty-category-image{
      height:135px !important;
    }
  
  
    .new-arrivals-head,
    .best-sellers-head{
      grid-template-columns:
        minmax(0,1fr)
        auto !important;
  
      gap:6px !important;
    }
  
  
    .new-arrivals h2,
    .best-sellers h2{
      font-size:30px !important;
    }
  
  
    .new-arrivals-head p,
    .best-sellers-head p{
      font-size:10px !important;
    }
  
  
    .new-arrivals-btn,
    .best-sellers-btn{
      height:37px !important;
  
      min-height:37px !important;
  
      padding:0 9px !important;
  
      font-size:8px !important;
    }
  
  
    .new-arrivals-grid,
    .best-sellers-grid,
    .products{
      gap:7px !important;
    }
  
  
    .product-img{
      height:160px !important;
    }
  
  
    .product-info{
      padding:9px !important;
    }
  
  
    .product-name{
      font-size:11px !important;
  
      line-height:1.3 !important;
    }
  
  
    .selling-price{
      font-size:15px !important;
    }
  
  
    .product-qty{
      height:34px !important;
    }
  
  
    .product-qty button{
      width:29px !important;
  
      height:34px !important;
    }
  
  
    .add-btn{
      height:35px !important;
  
      min-height:35px !important;
  
      font-size:8px !important;
    }
  
  
    .ktc-product-carousel-track{
      grid-auto-columns:
        calc((100% - 8px)/2) !important;
  
      gap:8px !important;
    }
  
  
    .ktc-product-carousel-track .product-img{
      height:155px !important;
    }
  
  
    .ktc-product-carousel-track .product-info{
      padding:9px !important;
    }
  
  
    .ktc-product-carousel-track .product-name{
      font-size:11px !important;
    }
  
  
    .ktc-product-carousel-track .selling-price{
      font-size:15px !important;
    }
  
  
    .ktc-product-carousel-track .add-btn{
      height:35px !important;
  
      min-height:35px !important;
  
      font-size:8px !important;
    }
  
  
    .promo-banner{
      margin:0 10px !important;
  
      padding:
        27px 16px !important;
    }
  
  
    .promo-banner h2{
      font-size:28px !important;
    }
  
  
    .ktc-footer-main{
      grid-template-columns:1fr !important;
    }
  
  
    .ktc-footer-brand{
      grid-column:auto !important;
    }
  }
  
  
  /* =========================================================
     VERY SMALL PHONES
     <= 340px
     ========================================================= */
  
  @media (max-width:340px){
  
    .nav{
      grid-template-columns:
        auto
        minmax(0,1fr)
        34px
        38px !important;
  
      column-gap:4px !important;
    }
  
  
    .logo{
      font-size:16px !important;
    }
  
  
    .search{
      height:36px !important;
  
      padding-left:31px !important;
  
      padding-right:27px !important;
  
      font-size:10px !important;
    }
  
  
    .search-wrapper::before{
      left:8px !important;
  
      font-size:18px !important;
    }
  
  
    .wishlist-header-btn{
      width:34px !important;
  
      min-width:34px !important;
  
      height:36px !important;
    }
  
  
    .cart-btn{
      width:38px !important;
  
      min-width:38px !important;
  
      height:36px !important;
    }
  
  
    .cart-btn::before{
      font-size:17px !important;
    }
  
  
    .ktc-main-nav a{
      padding:0 9px !important;
  
      font-size:9px !important;
    }
  
  
    .new-arrivals h2,
    .best-sellers h2{
      font-size:27px !important;
    }
  
  
    .new-arrivals-btn,
    .best-sellers-btn{
      padding:0 7px !important;
  
      font-size:8px !important;
    }
  }
  /* =========================================================
   KTCSTORE MOBILE UI — HEADER + PRODUCT SPACE FIX
   ========================================================= */

@media (max-width:767px){

    /* =======================================================
       HEADER FIX
       Logo left + search/wishlist/cart right
       ======================================================= */
  
    .nav{
      display:grid !important;
  
      grid-template-columns:
        minmax(0,1fr)
        minmax(0,1.65fr) !important;
  
      grid-template-rows:
        auto
        auto
        auto !important;
  
      column-gap:8px !important;
      row-gap:6px !important;
  
      padding:10px 12px 0 !important;
    }
  
    .logo{
      grid-column:1 !important;
      grid-row:1 !important;
  
      min-width:0 !important;
      width:max-content !important;
      max-width:100% !important;
  
      overflow:hidden !important;
    }
  
    /* IMPORTANT:
       Restore nav-right as an actual grid container.
       Do NOT use display:contents here.
    */
  
    .nav-right{
      grid-column:2 !important;
      grid-row:1 !important;
  
      width:100% !important;
      min-width:0 !important;
  
      display:grid !important;
  
      grid-template-columns:
        minmax(70px,1fr)
        38px
        43px !important;
  
      gap:6px !important;
  
      align-items:center !important;
      justify-content:end !important;
    }
  
    .search-wrapper{
      grid-column:1 !important;
      grid-row:1 !important;
  
      width:100% !important;
      min-width:0 !important;
    }
  
    .search{
      width:100% !important;
      min-width:0 !important;
  
      height:40px !important;
  
      padding:
        0 32px 0 35px !important;
  
      font-size:11px !important;
  
      border-radius:999px !important;
  
      overflow:hidden !important;
    }
  
    .search-wrapper::before{
      left:10px !important;
      font-size:20px !important;
    }
  
    .search-clear{
      right:6px !important;
    }
  
    .wishlist-header-btn{
      grid-column:2 !important;
      grid-row:1 !important;
  
      width:38px !important;
      min-width:38px !important;
      height:40px !important;
  
      flex:none !important;
    }
  
    .cart-btn{
      grid-column:3 !important;
      grid-row:1 !important;
  
      width:43px !important;
      min-width:43px !important;
      height:40px !important;
  
      flex:none !important;
    }
  
  
    /* Category row */
  
    .ktc-main-nav{
      grid-column:1/-1 !important;
      grid-row:2 !important;
  
      width:calc(100% + 24px) !important;
  
      margin-left:-12px !important;
  
      min-width:0 !important;
  
      overflow-x:auto !important;
      overflow-y:hidden !important;
    }
  
  
    /* Login row */
  
    #customerLoginBtn{
      grid-column:1/-1 !important;
      grid-row:3 !important;
    }
  
  
    /* =======================================================
       REMOVE PRODUCT SECTION EMPTY SPACE
       ======================================================= */
  
    .new-arrivals,
    .best-sellers,
    #productsSection{
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
  
      overflow:visible !important;
    }
  
  
    .new-arrivals-grid,
    .best-sellers-grid,
    .products{
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
  
      align-items:start !important;
  
      grid-auto-rows:max-content !important;
    }
  
  
    .ktc-product-carousel{
      height:max-content !important;
      min-height:0 !important;
      max-height:none !important;
  
      display:block !important;
  
      overflow:visible !important;
    }
  
  
    .ktc-product-carousel-track{
      height:max-content !important;
      min-height:0 !important;
      max-height:none !important;
  
      display:grid !important;
  
      grid-auto-rows:max-content !important;
  
      align-items:start !important;
      align-content:start !important;
  
      overflow-x:auto !important;
      overflow-y:hidden !important;
    }
  
  
    .ktc-product-carousel-track .product-card{
      height:max-content !important;
      min-height:0 !important;
      max-height:none !important;
  
      align-self:start !important;
    }
  
  
    .ktc-product-carousel-track .product-img,
    .ktc-product-carousel-track .product-info,
    .ktc-product-carousel-track .product-actions{
      flex:none !important;
    }
  
  
    /* Make consecutive sections follow the actual cards */
  
    .new-arrivals + .best-sellers,
    .best-sellers + .new-arrivals{
      height:auto !important;
      min-height:0 !important;
    }
  }
  
  
  /* =========================================================
     SMALL PHONES
     ========================================================= */
  
  @media (max-width:390px){
  
    .nav{
      grid-template-columns:
        minmax(0,1fr)
        minmax(0,1.75fr) !important;
  
      column-gap:6px !important;
    }
  
    .nav-right{
      grid-template-columns:
        minmax(60px,1fr)
        36px
        40px !important;
  
      gap:5px !important;
    }
  
    .search{
      height:38px !important;
  
      padding-left:32px !important;
  
      font-size:10px !important;
    }
  
    .wishlist-header-btn{
      width:36px !important;
      min-width:36px !important;
      height:38px !important;
    }
  
    .cart-btn{
      width:40px !important;
      min-width:40px !important;
      height:38px !important;
    }
  }
  
  
  /* =========================================================
     VERY SMALL PHONES
     ========================================================= */
  
  @media (max-width:340px){
  
    .logo{
      font-size:16px !important;
    }
  
    .nav{
      grid-template-columns:
        minmax(0,1fr)
        minmax(0,1.9fr) !important;
  
      column-gap:5px !important;
    }
  
    .nav-right{
      grid-template-columns:
        minmax(50px,1fr)
        34px
        38px !important;
  
      gap:4px !important;
    }
  }
  /* =========================================================
   FINAL FIX — PRODUCT CARD / CAROUSEL EMPTY HEIGHT
   ========================================================= */

@media (max-width:767px){

    .best-sellers,
    .featured-products-section,
    .new-arrivals{
      height:auto !important;
      min-height:unset !important;
      max-height:none !important;
    }
  
    .ktc-product-carousel{
      display:grid !important;
      grid-template-columns:1fr !important;
  
      width:100% !important;
  
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
  
      align-items:start !important;
      align-content:start !important;
  
      overflow:visible !important;
    }
  
    .ktc-product-carousel-track{
      display:grid !important;
  
      width:100% !important;
  
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
  
      grid-template-columns:none !important;
  
      grid-template-rows:max-content !important;
  
      grid-auto-flow:column !important;
      grid-auto-rows:max-content !important;
  
      align-items:start !important;
      align-content:start !important;
  
      overflow-x:auto !important;
      overflow-y:hidden !important;
  
      padding-top:0 !important;
      padding-bottom:4px !important;
  
      margin:0 !important;
    }
  
    .ktc-product-carousel-track > .product-card{
      display:block !important;
  
      width:100% !important;
  
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
  
      align-self:start !important;
  
      margin:0 !important;
    }
  
    .ktc-product-carousel-track > .product-card .product-img{
      height:165px !important;
      min-height:165px !important;
      max-height:165px !important;
    }
  
    .ktc-product-carousel-track > .product-card .product-info{
      height:auto !important;
      min-height:0 !important;
      max-height:none !important;
    }
  
    .ktc-product-carousel-track > .product-card .product-actions{
      height:auto !important;
      min-height:0 !important;
    }
  
    /* Arrows stay over the carousel */
    .ktc-product-carousel .ktc-product-arrow{
      position:absolute !important;
  
      top:50% !important;
  
      transform:translateY(-50%) !important;
  
      z-index:50 !important;
    }
  
    .ktc-product-carousel .ktc-product-prev{
      left:-5px !important;
    }
  
    .ktc-product-carousel .ktc-product-next{
      right:-5px !important;
    }
  
    /* Kill accidental spacing after carousel */
    .best-sellers .ktc-product-carousel,
    .featured-products-section .ktc-product-carousel,
    .new-arrivals .ktc-product-carousel{
      margin-bottom:0 !important;
    }
  
    .best-sellers{
      padding-bottom:12px !important;
    }
  
    .featured-products-section{
      padding-bottom:12px !important;
    }
  
    .new-arrivals{
      padding-top:22px !important;
    }
  }
  
  
  @media (max-width:390px){
  
    .ktc-product-carousel-track > .product-card .product-img{
      height:150px !important;
      min-height:150px !important;
      max-height:150px !important;
    }
  
    .best-sellers{
      padding-bottom:10px !important;
    }
  
    .featured-products-section{
      padding-bottom:10px !important;
    }
  
    .new-arrivals{
      padding-top:18px !important;
    }
  }
  /* =========================================================
   MOBILE SEARCH — FINAL FIX
   ========================================================= */

@media (max-width:767px){

    .search-wrapper{
      position:relative !important;
      z-index:4000 !important;
    }
  
    .search{
      cursor:text !important;
      color:#2d2521 !important;
      font-size:11px !important;
    }
  
    .search:focus{
      color:#2d2521 !important;
    }
  
    /* JS opens suggestions with inline display:block.
       This overrides old V6 display:none !important. */
  
    .search-suggestions[style*="display: block"]{
      display:block !important;
  
      position:absolute !important;
  
      top:calc(100% + 7px) !important;
      left:0 !important;
      right:0 !important;
  
      width:100% !important;
  
      max-height:55vh !important;
  
      overflow-y:auto !important;
  
      background:#fff !important;
  
      border:1px solid #eadfd7 !important;
  
      border-radius:14px !important;
  
      box-shadow:
        0 15px 35px rgba(50,35,28,.14) !important;
  
      z-index:99999 !important;
    }
  
  
    .search-suggestion-item{
      width:100% !important;
  
      min-height:58px !important;
  
      display:flex !important;
  
      align-items:center !important;
  
      gap:9px !important;
  
      padding:8px 10px !important;
  
      border:0 !important;
  
      border-bottom:1px solid #f1e9e4 !important;
  
      background:#fff !important;
  
      color:#2d2521 !important;
  
      text-align:left !important;
  
      cursor:pointer !important;
    }
  
  
    .search-suggestion-item:last-child{
      border-bottom:0 !important;
    }
  
  
    .search-suggestion-item:active{
      background:#faf2ed !important;
    }
  
  
    .search-suggestion-item img{
      width:42px !important;
      height:42px !important;
  
      flex:0 0 42px !important;
  
      object-fit:contain !important;
  
      border-radius:8px !important;
  
      background:#f8f1ec !important;
    }
  
  
    .search-suggestion-info{
      min-width:0 !important;
  
      flex:1 !important;
  
      display:flex !important;
  
      flex-direction:column !important;
  
      gap:3px !important;
    }
  
  
    .search-suggestion-info strong{
      display:block !important;
  
      max-width:100% !important;
  
      overflow:hidden !important;
  
      text-overflow:ellipsis !important;
  
      white-space:nowrap !important;
  
      font-size:11px !important;
  
      line-height:1.3 !important;
  
      color:#2d2521 !important;
    }
  
  
    .search-suggestion-info small{
      font-size:9px !important;
  
      color:#927f74 !important;
  
      white-space:nowrap !important;
    }
  
  
    .search-suggestion-price{
      flex:0 0 auto !important;
  
      font-size:10px !important;
  
      font-weight:700 !important;
  
      color:#a87557 !important;
  
      white-space:nowrap !important;
    }
  
  
    .search-no-result{
      display:block !important;
  
      padding:16px 12px !important;
  
      font-size:11px !important;
  
      color:#806f66 !important;
  
      text-align:center !important;
    }
  
  
    /* Clear button */
  
    .search-clear.show{
      display:flex !important;
  
      align-items:center !important;
      justify-content:center !important;
  
      position:absolute !important;
  
      right:7px !important;
      top:50% !important;
  
      transform:translateY(-50%) !important;
  
      width:24px !important;
      height:24px !important;
  
      z-index:10 !important;
    }
  }
  
  
  @media (max-width:390px){
  
    .search-suggestion-item{
      min-height:54px !important;
  
      padding:7px 8px !important;
    }
  
    .search-suggestion-item img{
      width:38px !important;
      height:38px !important;
  
      flex-basis:38px !important;
    }
  
    .search-suggestion-info strong{
      font-size:10px !important;
    }
  
    .search-suggestion-price{
      font-size:9px !important;
    }
  }
  /* =====================================================
   KTC LOCAL DELIVERY PINCODE POPUP
===================================================== */

.ktc-pincode-overlay{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(20,12,15,.48);
    backdrop-filter:blur(8px);
}

.ktc-pincode-overlay.active{
    display:flex;
}

.ktc-pincode-card{
    width:min(430px,100%);
    position:relative;
    padding:32px 26px 28px;
    border-radius:26px;
    background:#fff;
    text-align:center;
    box-shadow:0 25px 80px rgba(0,0,0,.25);
    animation:ktcPincodePop .35s ease;
}

@keyframes ktcPincodePop{
    from{
        opacity:0;
        transform:scale(.88) translateY(15px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

.ktc-pincode-close{
    position:absolute;
    top:12px;
    right:14px;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#f7f2f3;
    font-size:24px;
    cursor:pointer;
}

.ktc-pincode-icon{
    font-size:42px;
    margin-bottom:10px;
}

.ktc-pincode-title{
    font-size:24px;
    font-weight:800;
    color:#171717;
}

.ktc-pincode-subtitle{
    margin:8px auto 20px;
    max-width:330px;
    font-size:13px;
    line-height:1.5;
    color:#777;
}

.ktc-pincode-input-wrap{
    display:flex;
    gap:8px;
}

.ktc-pincode-input-wrap input{
    flex:1;
    min-width:0;
    height:48px;
    padding:0 14px;
    border:1px solid #ddd;
    border-radius:12px;
    outline:none;
    font-size:15px;
}

.ktc-pincode-input-wrap input:focus{
    border-color:#c98b9d;
    box-shadow:0 0 0 3px rgba(201,139,157,.12);
}

.ktc-pincode-input-wrap button{
    height:48px;
    padding:0 20px;
    border:0;
    border-radius:12px;
    background:#171717;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

.ktc-pincode-result{
    min-height:20px;
    margin-top:16px;
    font-size:13px;
}

.ktc-pincode-success{
    padding:14px;
    border-radius:15px;
    background:#fff6f8;
    color:#8f4058;
    line-height:1.6;
}

.ktc-pincode-error{
    color:#c0392b;
}

@media(max-width:480px){

    .ktc-pincode-card{
        padding:28px 18px 22px;
        border-radius:22px;
    }

    .ktc-pincode-title{
        font-size:21px;
    }

    .ktc-pincode-input-wrap{
        flex-direction:column;
    }

    .ktc-pincode-input-wrap button{
        width:100%;
    }
}
/* =========================================================
   KTCSTORE PINCODE POPUP — PREMIUM BOUNCE + CONFETTI
========================================================= */

body.ktc-pincode-open{
    overflow:hidden !important;
}

.ktc-pincode-overlay{
    opacity:0;
}

.ktc-pincode-overlay.active{
    opacity:1;
    animation:ktcOverlayFade .35s ease forwards;
}

.ktc-pincode-overlay.active .ktc-pincode-card{
    animation:
        ktcPopupBounce .75s cubic-bezier(.18,.89,.32,1.28) both;
}


/* ---------- BACKDROP ---------- */

@keyframes ktcOverlayFade{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}


/* ---------- BOUNCING CARD ---------- */

@keyframes ktcPopupBounce{

    0%{
        opacity:0;
        transform:
            translateY(80px)
            scale(.72)
            rotate(-3deg);
    }

    45%{
        opacity:1;
        transform:
            translateY(-18px)
            scale(1.04)
            rotate(1deg);
    }

    65%{
        transform:
            translateY(8px)
            scale(.98)
            rotate(-.5deg);
    }

    82%{
        transform:
            translateY(-4px)
            scale(1.01);
    }

    100%{
        opacity:1;
        transform:
            translateY(0)
            scale(1)
            rotate(0);
    }
}


/* ---------- SUCCESS BOUNCE ---------- */

.ktc-pincode-success-bounce{
    animation:
        ktcSuccessBounce .65s cubic-bezier(.18,.89,.32,1.28) !important;
}

@keyframes ktcSuccessBounce{

    0%{
        transform:scale(1);
    }

    35%{
        transform:scale(1.07) rotate(-1deg);
    }

    65%{
        transform:scale(.97) rotate(1deg);
    }

    100%{
        transform:scale(1);
    }
}


/* ---------- SUCCESS BADGE ---------- */

.ktc-success-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 13px;
    margin-bottom:12px;
    border-radius:999px;
    background:linear-gradient(
        135deg,
        #fff0f4,
        #fce2e9
    );
    color:#9b5268;
    font-size:10px;
    font-weight:900;
    letter-spacing:1px;
}


/* ---------- SUCCESS TITLE ---------- */

.ktc-success-title{
    font-size:20px;
    font-weight:900;
    color:#24191d;
    line-height:1.3;
    margin-bottom:12px;
}


/* ---------- 30 MINUTE DELIVERY ---------- */

.ktc-delivery-highlight{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin:10px 0;
    padding:14px;
    border-radius:16px;
    background:linear-gradient(
        135deg,
        #fff4f7,
        #fbe8ed
    );
    color:#8f4058;
    font-size:16px;
    font-weight:800;
}

.ktc-delivery-highlight strong{
    font-size:19px;
}


/* ---------- FREE DELIVERY ---------- */

.ktc-free-delivery{
    padding:12px;
    margin-top:8px;
    border-radius:14px;
    background:#faf6f1;
    color:#604d43;
    font-size:13px;
    line-height:1.5;
}

.ktc-free-delivery strong{
    color:#a05c70;
    font-size:15px;
}


/* ---------- LOCATION ---------- */

.ktc-pincode-location{
    margin-top:13px;
    color:#777;
    font-size:12px;
}


/* ---------- NORMAL DELIVERY ---------- */

.ktc-delivery-normal{
    padding:12px;
    border-radius:14px;
    background:#faf7f5;
    color:#6d625d;
    font-size:13px;
    line-height:1.5;
}


/* ---------- INPUT SHAKE ---------- */

.ktc-pincode-shake{
    animation:ktcInputShake .4s ease;
}

@keyframes ktcInputShake{

    0%,100%{
        transform:translateX(0);
    }

    25%{
        transform:translateX(-7px);
    }

    50%{
        transform:translateX(7px);
    }

    75%{
        transform:translateX(-4px);
    }
}


/* ---------- CONFETTI ---------- */

.ktc-confetti-container{
    position:fixed;
    inset:0;
    z-index:1000001;
    pointer-events:none;
    overflow:hidden;
}

.ktc-confetti-piece{
    position:absolute;
    top:-30px;
    font-size:
        calc(10px + 10px * var(--random, .5));
    color:#c77c91;
    animation:
        ktcConfettiFall
        2s cubic-bezier(.2,.7,.3,1) forwards;
    will-change:
        transform,
        opacity;
}

.ktc-confetti-piece:nth-child(3n){
    color:#d7aa78;
}

.ktc-confetti-piece:nth-child(4n){
    color:#9b6575;
}

.ktc-confetti-piece:nth-child(5n){
    color:#e5b9c4;
}

@keyframes ktcConfettiFall{

    0%{
        opacity:0;
        transform:
            translate3d(0,-20px,0)
            rotate(0deg);
    }

    10%{
        opacity:1;
    }

    100%{
        opacity:0;
        transform:
            translate3d(
                var(--ktc-x),
                105vh,
                0
            )
            rotate(var(--ktc-rotate));
    }
}


/* ---------- MOBILE ---------- */

@media(max-width:480px){

    .ktc-pincode-overlay{
        padding:14px;
    }

    .ktc-pincode-card{
        width:100%;
        max-width:390px;
        padding:30px 18px 24px;
        border-radius:26px;
    }

    .ktc-pincode-title{
        font-size:21px;
    }

    .ktc-pincode-subtitle{
        font-size:12px;
    }

    .ktc-success-title{
        font-size:19px;
    }

    .ktc-delivery-highlight{
        font-size:15px;
    }
}


/* ---------- REDUCED MOTION ---------- */

@media(prefers-reduced-motion:reduce){

    .ktc-pincode-overlay.active,
    .ktc-pincode-overlay.active .ktc-pincode-card,
    .ktc-pincode-success-bounce,
    .ktc-pincode-shake{
        animation:none !important;
    }

    .ktc-confetti-container{
        display:none !important;
    }
}
/* =========================================================
   KTCSTORE — PREMIUM DELIVERY ANNOUNCEMENT
========================================================= */

.ktc-delivery-strip{
    width:100%;
    overflow:hidden;
    position:relative;
    z-index:9998;
    background:linear-gradient(
        90deg,
        #fff3f6,
        #fff9f5,
        #fff3f6
    );
    border-bottom:1px solid #f0dfe3;
    color:#8d4d61;
    white-space:nowrap;
    height:36px;
    display:flex;
    align-items:center;
}

.ktc-delivery-track{
    display:flex;
    align-items:center;
    gap:22px;
    width:max-content;
    padding-left:100%;
    animation:ktcDeliveryMarquee 22s linear infinite;
}

.ktc-delivery-track span{
    font-size:11px;
    font-weight:800;
    letter-spacing:.55px;
}

.ktc-delivery-track span:nth-child(2n){
    color:#c89169;
    font-size:13px;
}

@keyframes ktcDeliveryMarquee{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}


/* Mobile */
@media(max-width:767px){

    .ktc-delivery-strip{
        height:32px;
    }

    .ktc-delivery-track{
        gap:16px;
        animation-duration:18s;
    }

    .ktc-delivery-track span{
        font-size:9px;
        letter-spacing:.4px;
    }

    .ktc-delivery-track span:nth-child(2n){
        font-size:11px;
    }
}


/* Respect reduced motion */
@media(prefers-reduced-motion:reduce){

    .ktc-delivery-track{
        animation:none;
        padding-left:10px;
    }
}
/* =====================================================
   KTC DELIVERY STRIP
   Hidden until customer checks delivery pincode
===================================================== */

.ktc-delivery-strip{
    display:none !important;
}

.ktc-delivery-strip.active{
    display:flex !important;
}