/* Product Page Modern Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f97316;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--light-gray);
}

/* Product Container */
.product-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Product Image */
.product-image {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.product-image img:hover {
    transform: scale(1.05);
}

/* Product Details */
.product-details {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.quantity-control button {
    background: var(--white);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-control button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-control input {
    width: 3rem;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
}

.add-to-cart {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.add-to-cart:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* Product Features */
.product-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .add-to-cart {
        width: 100%;
    }
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body{
    padding:0;
    margin:0;
    position:relative;
}
#nav{
/* border:solid red; */
background-color: #ffff;
width:100%;
display:flex;
justify-content: space-between;
align-items: center;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
 /* position:fixed; */
 position:sticky;

 top:0;
 z-index: 100000;

}
#nav>a>img{
height:80px;
/* width:200px; */
}
#nav>form{
/* border :1px solid blue; */
height:50px;
width:60%;
display:flex;
align-items: center;

}
#nav>form>div{
border-top-left-radius:10px ;
border-bottom-left-radius:10px ;

padding-left: 10px;
height:40px;
background-color: #E9F6F7;
display:flex;
align-items: center;

}
#nav>form>input{
border-top-right-radius:10px ;
border-bottom-right-radius:10px ;

padding-left: 10px;
border:none;
background-color: #E9F6F7;
width:80%;
height:40px;
color:gray;
font-size: 18px;
}
#nav>form>button{
border:none;
color:white;
background-color: rgb(243, 82, 24);
border-radius: 10px;
font-size: 18px;
width:15%;
height:40px;
}
#nav>div{
/* border:2px solid; */
width:25%;
height:50px;
display:flex;
justify-content: space-around;
align-items:center;
}
#nav>div>a{
font-size: 25px;
color:darkcyan;
}

#product-container{
     /* border:1px solid red;  */
     margin:auto;
    width:100%;
display:grid;
grid-template-columns: 23% 23% 23% 23% ;
gap:20px;
}

#product-container>div{
    
    padding:10px 10px 10px 10px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    /* border:solid red; */
}
#product-container>div>img{
  height:200px;
} 
/* #product-container>div:hover{
    text-align: center;
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
    /* border:solid blue; */
/* }  */
/* #product-container>div>img:hover{
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    /* border:solid blue; */
/* }  */
#product-container>div>button{
    border:none;
    background-color: orangered;
    color:white;
    padding:10px 10px 10px 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    /* border:solid blue; */
}
/* #product-container>div>button:hover{
    border:4px solid blue;
    background-color: orangered;
    color:white;
    padding:10px 10px 10px 10px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    /* border:solid blue; */
/* }  */
#sorting{
height:20px;
background-color: #ffff;
}

      /* Medium Screen */
      @media only screen and (min-width: 501px) and (max-width: 768px) {
#nav>form>button{
       font-size: 13px;
       padding-right: 10px;
       width:25%;

}
#nav>form>input{
          font-size:12px;
          width:70%;
      }
      #nav>div>a{
        font-size: 20px;
    }
    #nav>form{
        width:60%;
    }
    #product-container{
        /* border:1px solid red;  */
        margin:auto;
       width:100%;
   display:grid;
   grid-template-columns: 33% 33% 33%  ;
   gap:10px;
   }





    }
   
      /* Small Screen */
      @media only screen and (min-width: 320px) and (max-width: 500px) {
        #nav{
            display:flex;
            /* flex-direction: column; */
        }
    #nav>form{
        width:50%;
    }
        #nav>form>button{
            font-size: 11px;
            width:25%;
            /* padding-right: 10px; */
     }
     #nav>form>input{
        font-size:10px;
        width:60%;
    }
    #nav>div>a{
        font-size: 15px;
    }
    #product-container{
        /* border:1px solid red;  */
        margin:auto;
       width:100%;
   display:grid;
   grid-template-columns: 48% 48%   ;
   gap:10px;
   }
    }