.product-card {
    width: 260px;
    position: relative;
    background: white;
    border-radius: 20px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 50px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.product-discount{
     position: absolute;
    top: 15px;
    left: 15px;
    background: lightgreen;
    color: #000;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 60;
    letter-spacing: 0px;
    text-transform: uppercase;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #18181B, #27272A);
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-tilt-effect {
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    position: relative;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #71717A;
    margin-bottom: 8px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    color: #18181B;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.product-description p {
    font-size: 14px;
    color: #52525B;
    line-height: 1.5;
    margin-bottom: 15px;
}


.feature {
    font-size: 11px;
    background-color: #F4F4F5;
    color: #71717A;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-was {
    font-size: 14px;
    text-decoration: line-through;
    color: #A1A1AA;
    margin-bottom: 2px;
}

.price-now {
    font-size: 22px;
    font-weight: 700;
    color: #18181B;
}

.product-button {
    background: linear-gradient(45deg, #18181B, #27272A);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.product-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.product-button:hover {
    background: linear-gradient(45deg, #27272A, #3F3F46);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-button:hover::before {
    left: 100%;
}

.button-icon {
    transition: transform 0.3s ease;
}

.product-button:hover .button-icon {
    transform: rotate(-10deg) scale(1.1);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F4F4F5;
    padding-top: 3px;
}


.rating-count {
    margin-left: 8px;
    font-size: 12px;
    color: #71717A;
}

.product-stock {
    font-size: 12px;
    font-weight: 600;
    color: #22C55E;
}

@media (max-width: 400px) {
    .product-card {
        width: 90%;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product-price {
        margin-bottom: 5px;
    }
    
    .product-button {
        width: 100%;
        justify-content: center;
    }
}


        .filter {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 8px;
    }

    .price-inputs {
        display: flex;
        align-items: center;
    }

    .input-price {
        width: 80px;
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin: 0 5px;
    }

    .ecommerce-slider {
        margin: 10px 0;
        width: 100%;
    }

    #price-range {
        width: 100%;
        cursor: pointer;
    }

    .radio-group {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 10px 0;
    }

    .radio-group label {
        margin-right: 15px;
        font-size: 14px;
    }

    input[type="radio"]:checked {
        accent-color: green;
    }

    input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        background: grey;
        height: 1px;
        border-radius: 5px;
    }

    input[type="range"]::-webkit-ecommerce-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 10px;
        height: 10px;
        background: green;
/*        border-radius: 50%;*/
        cursor: pointer;
    }
 input[type="range"] .ecommerce-slider {
        -webkit-appearance: none;
        appearance: none;
        width: 15px;
        height: 15px;
        background: green;
        border-radius: 50%;
        cursor: pointer;
    }


 .price-range-btn {
        -webkit-appearance: none; /* Override default CSS styles */
        width: 100%; /* Full-width */
        height: 15px; /* Height of the slider */
        background: #ddd; /* Background color */
        border-radius: 5px; /* Rounded corners */
    }

    .price-range-btn::-webkit-slider-thumb {
        -webkit-appearance: none; /* Override default styles */
        appearance: none; /* Override default styles */
          width: 10px; /* Width of the thumb */
        height: 15px; /* Height of the thumb */
        background: green; /* Green color for the thumb */
       
        cursor: pointer; /* Pointer cursor on hover */
    }

    .price-range-btn::-moz-range-thumb {
        width: 10px; /* Width of the thumb */
        height: 15px; /* Height of the thumb */
        background: green; /* Green color for the thumb */
       
        cursor: pointer; /* Pointer cursor on hover */
    }

    input[type="range"]::-moz-range-thumb {
        width: 15px;
        height: 15px;
        background: #003333;
        border-radius: 50%;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .filter {
            flex-direction: column;
        }
    }


    .e-commerce-btn {
    font-size: 13px;
}
    .filter {
        display: flex;
        flex-direction: column;
    }
    .price-inputs, .radio-group {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    .price-inputs input {
        margin-right: 5px;
    }
    .radio-group label {
        margin-right: 15px;
    }  





.product-container {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center the products horizontally */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items vertically */
    max-width: 1200px; /* Optional: Set a maximum width */
    margin: 0 auto; /* Center the container */
}



.products {
     display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product {
    width: 200px; /* Set a fixed width for each product */
    margin: 10px; /* Add some spacing between products */
    text-align: center; /* Center the text within the product */

}

.product img {
    width: 100%; /* Make the image take the full width of the product */
    height: 200px; /* Set a fixed height to ensure square aspect ratio */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 4px;
}

@media (max-width: 768px) {
    .product {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .product {
        width: 100%;
    }
    
    .product-container {
        flex-direction: column; /* Change direction to column on small screens */
    }
}


 #categorySelect {
        border: none;
        outline: none;
    }
      #categorySelect:active {
        border: none;
        outline: none;
    }
    .filter{
        margin-top: 20px;
    }

     .product-item { margin-bottom: 10px; border: 1px solid #ccc; padding: 10px; }
        .pagination button { margin: 3px; background: green;border: none;color: #fff;}
        #product-card{
             margin: 30px;
             background: #ccffcc;
             border-radius: 10px;
        }

  .e-commerce-page {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px;
    border: 1px solid grey;
    flex-wrap: wrap; 
  }
 
  
    #categorySelect {
        border: none;
        outline: none;
    }
      #categorySelect:active {
        border: none;
        outline: none;
    }
    .filter{
        margin-top: 20px;
    }
        .product-item { margin-bottom: 10px; border: 1px solid #ccc; padding: 10px; }
        .pagination button { margin: 3px; background: green;border: none;color: #fff;}
        #product-card{
             margin: 30px;
             background: #ccffcc;
             border-radius: 10px;
        }
        .btn:hover{
background: no-repeat;
border: 1px solid #003300;
color: #003300;
transition: 0.5s;
    }
           .btnE:hover{
background: #003300;
transition: 0.5s;
    }
