*{
  margin: 0px;
  padding: 0px;
}
        :root {

            --primary-red: #E53935;

            --primary-red-light: #fef2f2;

            --border-color: #e5e7eb;

            --text-primary: #111827;

            --text-secondary: #6B7280;

            --background-color: #f9fafb;

            --component-background: #ffffff;

            --hover-background: #f3f4f6;
                 --text-main: #282c3f;
            --text-muted: #7e818c;
            --discount-green: #03a685;
            --pink: #ff3f6c;
            --bg-light: #f5f5f6;

            --font-family: Assistant, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
;

        }


    .container {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    max-width: 1450px;
    margin: auto;
    padding: 0 15px;
}
.jit_color_size_main{
  display: flex;
  box-sizing: border-box;
      gap:28px;

}

    select {

      padding: 5px;

      margin-bottom: 15px;

      width: 100%;

      box-shadow: 0px 0px 10px rgba(218, 218, 218, 0.929);

    }

    .jit_suba_by_add_cut_main{
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap:2%;
    }

    .jit_selected {
  border: 2px solid #00cc66 !important;

  box-shadow: 0 0 8px rgba(0, 200, 100, 0.4);
  transform: scale(1.02);

}



   /* click to view end */


    /* size_color */


     .jit_filter-box {

      width: 280px;

      border: 1px solid #ddd;

      font-family: Arial, sans-serif;

      padding: 15px;

      border-radius: 6px;

    }

    .jit_filter-header {

      display: flex;

      justify-content: space-between;

      align-items: center;

      font-weight: bold;

      margin-bottom: 15px;

    }
    .jit_filter-header span {

      color:#77c31b;

      font-size: 14px;

      cursor: pointer;

    }
    .jit_filter-section {

      margin-bottom: 20px;

      border-bottom: 2px solid #d4d3d3;

    }

    .jit_filter-section h4 {

     font-size: 16px;

     margin-bottom: 10px;

     font-weight: 600;

      color: #484747;

    }

    .jit_color_size_hading{

       font-size: 16px;

     font-weight: 600;

      color: #484747;

    }

    .jit_filter-section label {

      display: block;

      margin-bottom: 8px;

     font-size: 15px;

     font-weight: 500;

      cursor: pointer;

    }



    .jit_filter-section input[type="radio"],

    .jit_filter-section input[type="checkbox"] {

      margin-right: 8px;

      cursor: pointer;

      height: 18px;

      width: 18px;

    }

    .jit_search-box {

      margin: 15px 0;

      display: flex;

      align-items: center;

      border: 1px solid #ccc;

      border-radius: 22px;

      padding: 6px 10px;

    }

    .jit_search-box input {

      border: none;

      outline: none;

      width: 100%;

      font-size: 14px;

    }

    .jit_show-more {

      margin-top: 10px;

      color: #ff3b6f;

      cursor: pointer;

      font-size: 14px;

    }
    /* max-to min */

   .jit_color_size_hading{
  font-size:18px;
  margin-bottom:10px;
}


.range-container {
  background:#fff;
  max-width:350px;
  border-bottom: 2px solid #d4d3d3;
}


.slider {
  position: relative;
  height: 4px;
  background: #ddd;
  border-radius: 5px;
  margin-top:20px;
}

.slider .progress {
  position: absolute;
  height: 4px;
  background: #77c21b;
  border-radius: 5px;
  left: 0;
  right: 0;
}


.range-input {
  position: relative;
}

.range-input input {
  position: absolute;
  top: -7px;
  width: 100%;
  height: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
}


input[type="range"]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background:#49b8e5;
  pointer-events: auto;
  cursor: pointer;
  -webkit-appearance: none;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background:#49b8e5;
  pointer-events: auto;
  cursor: pointer;
}


.price-label {
  margin-top: 35px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

/*============== color========== */

        .color-filter {

            width:100%;

            background-color: var(--component-background);

            border-radius: 12px;

        }

        /* --- Header Section --- */

        .filter-header {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-bottom: 8px;

            position: relative;

            height: 32px;

        }

        

        .filter-header-main {

            display: flex;

            align-items: center;

            gap: 8px;

            transition: opacity 0.2s ease-in-out;

        }



        .filter-title {

            margin: 0;

            font-size: 14px;

            font-weight: 600;

            letter-spacing: 0.8px;

            text-transform: uppercase;

        }



        .clear-btn {

            background: none;

            border: none;

            padding: 0;

            margin: 0;

            cursor: pointer;

            font-size: 16px;

            font-weight: 600;

            color: #484747;

            opacity: 0;

            transform: translateX(-5px);

            visibility: hidden;

            transition: all 0.2s ease;

        } 



      

        

        .clear-btn.visible {

            opacity: 1;

            transform: translateX(0);

            visibility: visible;

        }



        .clear-btn:hover {

            text-decoration: underline;

        }



        .header-icons button {

            background: none; border: none; padding: 4px; cursor: pointer;

            color: var(--text-secondary); transition: color 0.2s ease;

        }

        .header-icons button:hover { color: var(--text-primary); }



        .close-icon { display: none; }



        .color-search-input {

            position: absolute; left: 0; top: 50%;

            transform: translateY(-50%);

            width: calc(100% - 40px);

            padding: 8px 12px;

            border: 1px solid var(--border-color);

            border-radius:21px;

            font-size: 14px;

            font-family: 'Inter', sans-serif;

            opacity: 0; visibility: hidden;

            transition: all 0.2s ease;

        }



        .color-search-input:focus {

            outline: none; 

            border-color: #77c31b;

            box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);

        }



        /* --- Search Active State --- */

        .color-filter.search-active .filter-header-main,

        .color-filter.search-active .search-icon {

            opacity: 0; visibility: hidden;

        }

        .color-filter.search-active .close-icon { 

          display: block; 

        }

        .color-filter.search-active .color-search-input { 

          opacity: 1; 

          visibility: visible;

         }



        /* --- Color List & Items --- */

        .color-list { 

          list-style: none;

           padding: 0; 

           margin: 12px 0 0 0; 

          }



        .color-item {

            border-radius: 6px;

            transition: background-color 0.2s ease;

            opacity: 1;

            transform: translateY(0);

        }

        

        .color-item.is-hidden {

            display: none;

            opacity: 0;

            transform: translateY(-10px);

        }

        

        .color-item.is-revealed {

            display: flex;

            animation: fadeIn 0.4s ease forwards;

        }



        @keyframes fadeIn {

            to { opacity: 1; transform: translateY(0); }

        }

        

        .color-item.selected {

           background-color: var(--primary-red-light);

           }

        .color-item:not(.selected):hover 

        {

           background-color: var(--hover-background); 

        }



        .color-item label {

            display: flex; align-items: center; cursor: pointer;

            width: 100%; padding: 8px; font-size: 15px;

        }



        .color-item input[type="checkbox"] { 

          display: none; 

        }



        /* Custom Checkbox Box */

        .custom-checkbox {

            width: 18px; height: 18px;

            border: 1.5px solid #bdc3c7;

            border-radius: 5px;

            margin-right: 12px;

            flex-shrink: 0;

            display: flex;

            align-items: center;

            justify-content: center;

            transition: all 0.2s ease;

        }



        /* SVG Checkmark for Animation */

        .custom-checkbox svg {

            width: 14px;

            height: 14px;

            stroke: white;

            stroke-width: 2.5;

            stroke-dasharray: 20;

            stroke-dashoffset: 20;

            transition: stroke-dashoffset 0.2s ease-in-out;

        }



        /* Checked State Styling */

        .color-item input[type="checkbox"]:checked + label .custom-checkbox {

            background-color: var(--primary-red);

            border-color: var(--primary-red);

        }

        

        .color-item input[type="checkbox"]:checked + label .custom-checkbox svg {

            stroke-dashoffset: 0;
        }

        .color-swatch {

            width: 20px; height: 20px; border-radius: 50%;

            margin-right: 12px; border: 1px solid rgba(0,0,0,0.1);

        }

        .color-name { 

          flex-grow: 1; 

          font-weight: 500;

         }
        .color-count {
           color: var(--text-secondary); 
          font-size: 14px; 
        }



        /* --- "Show More" & "No Results" --- */

        .show-more-btn {
            background: none;
             border: none;
             color: var(--primary-red);
            font-weight: 600;
             cursor: pointer; 
            padding: 8px 0;
            margin-top: 12px;
             font-size: 14px;
             font-family: 'Inter', sans-serif;
        }

        .show-more-btn:hover {

           text-decoration: underline;

         }
        .no-results {
            display: none; padding: 20px; 
            text-align: center;
            color: var(--text-secondary);
             font-size: 14px;
        }
      .header-icons{
         display: flex;
      }


/* ===================================card ============================= */
.grid-container{
    display:grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap:20px;
    max-width:1150px;
    margin:0 auto;
    background-color: #fff;
    align-items:start;
    font-family: var(--font-family);
}

     .grid-container a{
          text-decoration: none;
              color: #555353;
     }
        .product-card {
            position: relative;
            background: #fff;
            transition: box-shadow 0.3s ease;
            cursor: pointer;
            contain: content;
        }

        .product-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

.product-card {
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: .3s ease;
     display: flex;          /* ⭐ add */
    flex-direction: column; /* ⭐ add */
    height: auto;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
}

/* Image */
.img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Icons */
.action-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    cursor: pointer;
}

/* Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    font-size: 14px;
    opacity: 0;
    transition: .3s;
}

.nav-arrow.left { left: 10px; }
.nav-arrow.right { right: 10px; }

.product-card:hover .nav-arrow {
    opacity: 1;
}

/* Badge */
.badge-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
}

.badge.ad {
    background: #f2f2f2;
    color: #555;
}

.badge.bestseller {
    background: #e0f2f1;
    color: #00796b;
}

/* Info */
.info {
    padding: 12px;
}

.brand {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.name {
    font-size: 13px;
    color: #555;
    margin: 4px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-box {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.current-price {
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 12px;
}

.discount {
    color: #008000;
    font-weight: 700;
    font-size: 12px;
}

/* Colors */
.swatches {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.more-color {
    font-size: 11px;
    color: #777;
}



/* ===================================card end ============================= */

/* ===== Mobile 3 Dot Button ===== */
.jit_mobile_filter_toggle{
  position: fixed;
      top:60px;
        right: 86%;
  z-index: 10000;
  width: 42px;
  height: 42px;
  background: #77c31b;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: none;
}
/* ===== Overlay ===== */
.jit_filter_overlay{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,.4);
  z-index:1099;
  display:none;
}
/* ===== Desktop ===== */
.jit_filter-box{
  width:20%;
}
/*============== color end========== */

/* ===================================card responsive ============================= */

/* ---------- MOBILE (MAIN TARGET) ---------- */
@media (max-width: 767px) {

    /* body {
        padding: 8px;
    } */

    /* ALWAYS 2 CARDS */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Image ratio – Flipkart/Myntra style */
    .img-wrapper {
        aspect-ratio: 1 / 1.3;
    }

    /* Icons size */
    .icon-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .nav-arrow {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    /* Text size control */
    .brand {
        font-size: 13px;
    }

    .name {
        font-size: 12px;
        line-height: 1.2;
    }

    .price-box {
        font-size: 13px;
        gap: 5px;
        flex-wrap: wrap;
    }

    .old-price {
        font-size: 11px;
    }

    .discount {
        font-size: 11px;
    }

    .extra-offer {
        font-size: 11px;
    }

    /* Color dots */
    .swatch {
        width: 11px;
        height: 11px;
    }
}

/* ---------- VERY SMALL MOBILE ---------- */
@media (max-width: 420px) {

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .img-wrapper {
        aspect-ratio: 1 / 1.35;
    }

    .brand {
        font-size: 12px;
    }

    .name {
        font-size: 11px;
    }
}
/* ===================================card responsive end ============================= */


/* Responsive */

@media (max-width: 768px) {

  .jit_share-box {

    /* width: 90%; */

    right: 5%;

  }

}

@media (max-width: 992px) {

  .jit_product-card {

    flex-direction: column;

    align-items: center;

    padding: 10px;

  }
  .jit_medel_sub_pice_of_main,

  .jit_right_sub_pice_of_main {

    max-width: 100%;

    flex: 1 1 100%;

  }
  .jit_thumbs,

  .jit_colors {

    justify-content: center;

  }

  .jit_thumbs img,

  .jit_colors img {

    width: 50px;

    height: auto;

  }

  .jit_pice_of_card_sub_main2{
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:15px;
  }
  .jit_sub_card_product{
    min-width:220px;
  }


  .jit_sub_card_product {

    width: 100%;
    max-width: 300px;

  }

}
@media (max-width: 576px) {

  .jit_right_sub_pice_of_main h2 {

    font-size: 18px;

  }
  select,

  .sub_pice_of_button {

    font-size: 14px;

  }
  .jit_user_info {

    font-size: 12px;

  }
  .jit_price_now {

    font-size: 14px;

  }

}

/* ===== Mobile Drawer ===== */
@media (max-width:768px){

  .jit_color_size_main{
    display:block;
  }

  .jit_filter-box{
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: #fff;
    z-index: 1100;
    overflow-y: auto;
    transition: .4s ease;
  }

  .jit_filter-box.active{
    left: 0;
    top: 82px;
   padding-bottom: 20%;

  }

  .jit_filter_overlay.active{
    display:block;
  }

  .jit_mobile_filter_toggle{
    display:flex;
     top: 60px;
    right: 86%;
   
  }
}
/* ================= MOBILE IMAGE FIX ================= */
@media (max-width: 768px) {
  /* Color small images hide */
  .jit_colors {
    /* display: none !important; */
         flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
  }

  /* Left + middle layout fix */
  .jit_left_side_manu_main {
    width: 100%;
    justify-content: center;
  }

  .jit_medel_sub_pice_of_main {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .jit_medel_sub_pice_of_main img {
    height: auto;
    max-height: 420px;
    object-fit: contain;
  }

  /* Product card full width */
  .jit_product-card {
    max-width: 100%;
    padding: 10px;
  }
}

