
/*----Search start---*/

.search-toggle {
      /* position: fixed;
      top: 20px;
      right: 20px; */
      margin-right: 10px;
      width: 35px;
      height: 35px;
         background: #34a988;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(0,0,0,0.18);
      z-index: 1000;
      transition: transform 0.2s, background 0.2s;
    }
    .search-toggle:hover { 
        /* transform: scale(1.08);  */
        background: #2085b5; 
    }

    .search-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.65);
      display: none;
      justify-content: center;
      align-items: flex-start;
      padding-top: 70px;
      z-index: 99999;
      backdrop-filter: blur(5px);
    }

    .search-popup {
      background: white;
      width: 92%;
      max-width: 640px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 25px 70px rgba(0,0,0,0.28);
      transform: translateY(-40px);
      opacity: 0;
      transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    }
    .search-popup.show {
      transform: translateY(0);
      opacity: 1;
    }

    .search-header {
      background:#5fcac7;
      color: white;
      padding: 16px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .search-header h2 { font-size: 1.38rem; margin: 0; }
    .close-btn {
      background: none;
      border: none;
      color: white;
      font-size: 2rem;
      cursor: pointer;
      line-height: 1;
      padding: 4px 10px;
      border-radius: 50%;
    }
    .close-btn:hover { background: rgba(255,255,255,0.18); }

    .search-controls {
      padding: 16px 20px;
      border-bottom: 1px solid #eee;
    }

    .search-input-wrapper {
      position: relative;
    }
    .search-input {
      width: 100%;
      padding: 14px 16px 14px 48px;
      border: 2px solid #d1d5db;
      border-radius: 12px;
      font-size: 1.05rem;
      transition: all 0.2s;
    }
    .search-input:focus {
      outline: none;
      border-color: #5fcac7;
      box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
    }
    .search-icon-inside {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #6b7280;
      font-size: 1.25rem;
    }

    .alphabet-filter {
      display: none;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }
    .alphabet-filter.visible {
      display: flex;
    }

    .alpha-btn {
      padding: 8px 13px;
      background: #f3f4f6;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.18s;
    }
    .alpha-btn:hover,
    .alpha-btn.active {
      background: #5fcac7;
      color: white;
    }

    .search-results {
      max-height: 58vh;
      overflow-y: auto;
      padding: 12px 20px 24px;
    }

    .product-item {
      padding: 14px 16px;
      border-bottom: 1px solid #f0f0f0;
      cursor: pointer;
      transition: background 0.15s;
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .product-item:hover { background: #f5f3ff; }
    .product-item:last-child { border-bottom: none; }

    .placeholder-message,
    .no-results {
      text-align: center;
      padding: 60px 20px;
      color: #6b7280;
      font-style: italic;
      font-size: 1.1rem;
    }

    @media (max-width: 500px) {
      .search-popup { width: 96%; }
      .search-header h2 { font-size: 1.25rem; }
    }


/*----Search end---*/

    /*-----Add to cart start---*/

    /* Cart Icon with Badge */
    .cart-wrapper {
      /* position: fixed;
      top: 20px;
      right: 180px; */
      z-index: 1000;
      cursor: pointer;
    }

    .cart-icon {
      position: relative;
      font-size: 2rem;
      color: #4c4c4b;
      transition: transform 0.2s;
    }

    .cart-icon:hover { transform: scale(1.15); }

    .cart-badge {
      position: absolute;
      top:0px;
      right: 120px;
      background: #ef4444;
      color: white;
      font-size: 0.75rem;
      font-weight: bold;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid white;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Overlay */
    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 998;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .overlay.active { opacity: 1; pointer-events: auto; }

    /* Sidebar */
    .cart-sidebar {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      max-width: 380px;
      height: 100%;
      background: white;
      box-shadow: -4px 0 20px rgba(0,0,0,0.15);
      transform: translateX(100%);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 99999;
      display: flex;
      flex-direction: column;
    }

    .cart-sidebar.open { transform: translateX(0); }

    .cart-header {
      padding: 10px 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8f9fa;
    }

    .cart-header h2 { font-size:20px; font-weight: 500; }

    .close-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 5px 5px;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
      transition: all 0.2s;
    }

    .close-btn:hover { background: #e5e7eb; color: #111827; }

    .cart-body {
      flex: 1;
      padding: 20px;
      overflow-y: auto;
    }

    .cart-item {
      display: flex;
      gap: 16px;
      padding: 16px 0;
      border-bottom: 1px solid var(--border);
      position: relative;
    }

    .cart-item:last-child { border-bottom: none; }

    .cart-item img {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    .item-details { flex: 1; }

    .item-name {
      font-weight: 600;
      margin-bottom: 6px;
    }

    .item-price {
      color:#515151;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .item-quantity {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .qty-btn {
      width: 32px;
      height: 32px;
      border: 1px solid #dedede;
    background: #38af8d;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #fff;
    }

    .remove-btn {
      background: none;
      border: none;
      color: #ef4444;
      font-size: 1.3rem;
      cursor: pointer;
      padding: 4px;
      margin-left: auto;
      opacity: 0.7;
      transition: all 0.2s;
    }

    .remove-btn:hover {
      opacity: 1;
      transform: scale(1.15);
    }

    .cart-footer {
      padding: 20px 24px;
      border-top: 1px solid var(--border);
      background: #f8f9fa;
    }

    .subtotal {
      display: flex;
      justify-content: space-between;
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .checkout-btn,
    .view-cart-btn {
      display: block;
      width: 100%;
      padding: 14px;
      margin-bottom: 12px;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
    }

    .checkout-btn {
      background: linear-gradient(90deg, #619f3b, #35ab8a);
      color: white;
    }

    .checkout-btn:hover { background: linear-gradient(90deg, #0169b0, #2085b7); }

    .view-cart-btn {
      background: #e5e7eb;
      color: #374151;
    }

    .view-cart-btn:hover { background: #d1d5db; }

    .empty-cart {
      text-align: center;
      padding: 60px 20px;
      color: #6b7280;
    }

    @media (max-width: 480px) {
      .cart-sidebar { max-width: 100%; }
      .cart-icon { font-size: 1.6rem; }

      .cart-badge {
    right: 105px;
      }

    }

  @media (max-width: 600px) {
      .bc-tabs-header {
    display: flex;
    min-width: auto;
    padding: 0 12px; 
    flex-wrap: wrap;
  }

}

    /*--add to cart end---*/