 @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

 * {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: Poppins;
   animation: slideFadeIn 1s ease forwards;
   opacity: 0;
 }

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

 .up {
   background-color: grey;
   height: 70px;
   display: flex;
 }

 #p {
   margin-left: 450px;
   padding-top: 30px;
   color: white;
 }

 .fa-brands {
   color: white;
   margin-left: 20px;
   font-size: 25px;
   padding-top: 25px;
 }

 .main-header {
   padding: 15px 40px;
   background-color: #ffffff;
   border-bottom: 1px solid #eee;
   /* position: sticky; */
   top: 0;
   z-index: 999;
 }

 .logo {
   display: flex;
   justify-content: space-between !important;
 }

 .logo h1 {
   font-size: 40px;
   font-weight: 400;
   color: #222;
 }

 .logo p {
   margin-left: 30px;
   font-size: 20px;
   font-weight: 500;
 }

 .navbar ul {
   display: flex;
   gap: 50px;
   padding-left: 240px;
   padding-top: 30px;
 }

 .navbar ul {
   list-style-type: none;
   text-decoration: none;
 }

 .navbar ul li a {
   text-decoration: none;
   color: #333;
   font-weight: 500;
   transition: 0.3s ease;
 }

 .navbar ul li a:hover {
   color: #c1004a;
 }

 .fas {
   color: black;
   font-size: 20px;
   padding: 20px 10px;
 }

 .nav-a:hover:after {
   content: '';
   width: 100%;
   height: 2px;
   background-color: rgb(82, 82, 82);
   position: absolute;
   bottom: 0;
   left: 0;
   border-radius: 2px;
   animation: slide 0.5s ease;
 }

 @keyframes slide {
   from {
     width: 0;
   }

   to {
     width: 100%;
   }
 }

 #ser {
   display: none;
   background-color: rgb(255, 255, 255);
   width: 100%;
   height: 100px;
   text-align: center;
   font-size: 32px;
   color: white;
 }

 .menu-toggle {
   display: none;
 }

 body {
   background-color: #f8f9fa;
 }

 #h1 {
   text-align: center;
   margin-bottom: 30px;
   margin-top: 30px;
   color: #333;
   font-weight: 700;
   font-size: clamp(15px, 2vw, 40px);
 }

 .products-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   margin-bottom: 40px;
 }

 .product-card {
   background-color: white;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
     box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
     filter 0.4s ease;
   cursor: pointer;
   position: relative;
   will-change: transform, box-shadow;
 }

 .product-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.6s ease, transform 0.6s ease;
   transform: translateX(-100%);
   border-radius: 12px;
   z-index: 2;
 }

 .product-card:hover {
   transform: translateY(-10px) scale(1.05);
   box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
   filter: brightness(1.05);
   z-index: 10;
 }

 .product-card:hover::before {
   opacity: 1;
   transform: translateX(100%);
 }

 .product-card.selected {
   outline: 3px solid #4CAF50;
 }

 .product-card.selected::after {
   content: '✓';
   position: absolute;
   top: 10px;
   right: 10px;
   background-color: #4CAF50;
   color: white;
   width: 25px;
   height: 25px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   z-index: 20;
 }

 .product-image {
   width: 100%;
   height: 600px;
   object-fit: cover;
 }

 .product-info {
   padding: 15px;
 }

 .product-title {
   font-size: 16px;
   font-weight: 600;
   margin-bottom: 5px;
   color: #333;
 }

 .product-price {
   font-size: 18px;
   font-weight: 700;
   color: #2c3e50;
   margin-bottom: 10px;
 }

 .product-color {
   display: inline-block;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   margin-right: 5px;
   border: 1px solid #ddd;
   vertical-align: middle;
 }

 .product-meta {
   display: flex;
   justify-content: space-between;
   font-size: 14px;
   color: #7f8c8d;
   margin-top: 10px;
 }

 .compare-btn {
   display: block;
   width: 100%;
   padding: 12px;
   background-color: #3498db;
   color: white;
   border: none;
   border-radius: 5px;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s;
   margin: 20px auto;
   max-width: 300px;
 }

 .compare-btn:hover {
   background-color: #2980b9;
 }

 .compare-btn:disabled {
   background-color: #bdc3c7;
   cursor: not-allowed;
 }

 .comparison-container {
   display: none;
   margin-top: 40px;
   background-color: white;
   border-radius: 10px;
   padding: 20px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 }

 .comparison-header {
   text-align: center;
   margin-bottom: 20px;
   color: #2c3e50;
 }

 .comparison-table {
   width: 100%;
   border-collapse: collapse;
 }

 .comparison-table th {
   text-align: left;
   padding: 12px;
   background-color: #f1f1f1;
   border-bottom: 2px solid #ddd;
 }

 .comparison-table td {
   padding: 12px;
   border-bottom: 1px solid #eee;
 }

 .comparison-table tr:nth-child(even) td {
   background-color: #f9f9f9;
 }

 .no-selection {
   text-align: center;
   color: #7f8c8d;
   margin: 30px 0;
 }

 @media (max-width: 768px) {
   .products-grid {
     grid-template-columns: repeat(2, 1fr);
   }
 }

 @media (max-width: 480px) {
   .products-grid {
     grid-template-columns: 1fr;
   }
 }

 /* footer section */
 .newsletter-box {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 50px;
   margin: 20px 20px;
   padding: 40px 10px;
 }

 .newsletter-box h2 {
   font-size: 20px;
   color: #777;
 }

 .newsletter-box p {
   font-size: 16px;
   color: #777;
   margin-bottom: 20px;
 }

 .newsletter-form {
   display: flex;
   justify-content: center;
   margin-bottom: 10px;
 }

 .newsletter-form input {
   font-size: 15px;
   border: 1px solid #000000;
   background-color: rgba(255, 255, 255, 0.596);
   border-radius: 6px;
   width: 300px;
   border-radius: 50px;
 }


 .newsletter-form button {
   background-color: black;
   color: white;
   border: none;
   padding: 15px 20px;
   font-size: 14px;
   border-radius: 6px;
   cursor: pointer;
   border-radius: 20px;
 }


 /* Footer Section */
 .blue-footer {
   background-color: #ffffff;
   color: rgba(128, 128, 128, 0.904);
   padding: 60px 20px 30px;
   width: 100%;
 }

 .footer-main {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   max-width: 1500px;
   margin: 20px auto 40px;
 }

 .footer-links {
   display: flex;
   gap: 200px;
   flex-wrap: wrap;
 }

 .footer-links div {
   min-width: 150px;
 }

 .footer-links h4 {
   font-size: 16px;
   margin-bottom: 12px;
   color: black;
 }

 .footer-links ul {
   list-style: none;
   padding: 0;
   margin: 0;
 }

 .footer-links ul li {
   margin-bottom: 10px;
 }

 .footer-links ul li a {
   color: rgba(128, 128, 128, 0.603);
   text-decoration: none;
   font-size: 14px;
 }

 .footer-links ul li a:hover {
   text-decoration: underline;
   color: rgb(0, 0, 0);
 }

 .social-icons {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 50px;
   margin-right: 20px;
 }

 .social-icons .fa-brands {

   font-size: 30px;
   color: white;
   border: 1px solid rgba(128, 128, 128, 0.575);
   padding: 10px 10px;
   border-radius: 50%;
   background-color: black;
 }

 .social-icons .fa-brands:hover {
   background-color: white;
   color: black;
 }

 .head-icon .fa-brands {
   color: white;
   margin-left: 20px;
   font-size: 25px;
   padding-top: 25px;
 }

 #f-icons {
   width: 100px;
   height: 100px;
 }

 .img-icons {
   width: 50px;
   height: 50px;
   margin-bottom: 50px;
 }

 /* Footer Bottom */
 .footer-bottom {
   text-align: center;
   border-top: 1px solid rgba(255, 255, 255, 0.2);
   padding-top: 20px;
 }

 .footer-bottom p {
   font-size: 15px;
 }

 .footer-bottom small {
   display: block;
   font-size: 13px;
   margin-bottom: 10px;
 }

 .footer-bottom .copyright {
   font-size: 13px;
   color: rgba(128, 128, 128, 0.603);
 }

 .footer-bottom .copyright a {
   color: rgba(128, 128, 128, 0.603);
   text-decoration: none;
 }

 .footer-bottom .copyright a:hover {
   text-decoration-line: underline;
   color: rgba(0, 255, 255, 0.158);
 }



 @media (max-width: 1200px) {
   #p {
     margin-left: auto;
     margin-right: auto;
     padding-top: 20px;
     text-align: center;
   }

   .navbar ul {
     /* padding-left: 100px;
    gap: 30px; */
   }

   .logo h1 {
     font-size: 30px;
   }

   .logo p {
     font-size: 16px;
   }
 }

 @media (max-width: 992px) {
   .navbar ul {
     padding-left: 0;
     flex-wrap: wrap;
     justify-content: center;
     gap: 20px;
   }

   .logo h1 {
     font-size: 28px;
     text-align: center;
   }

   .logo p {
     margin-left: 0;
     font-size: 14px;
     text-align: center;
   }

   .search-bar {
     text-align: center;
     margin-top: 10px;
   }

   .menu-toggle {
     display: block;
     font-size: 30px;
     cursor: pointer;
     text-align: right;
     margin-right: 20px;
   }

   .navbar ul {
     display: none;
     /* flex-direction: column;
    align-items: center; */
     width: 100%;
     background-color: #fff;
     position: relative;
     top: 100%;
     left: 0;
     padding: 15px 0;
     gap: 15px;
     z-index: 999;
     border-top: 1px solid #ccc;
   }

   .navbar ul.show {
     display: flex;
   }
 }

 @media (max-width: 768px) {
   .menu-toggle {
     display: block;
     font-size: 30px;
     cursor: pointer;
     text-align: right;
     margin-right: 20px;
   }

   .navbar ul {
     display: none;
     flex-direction: column;
     /* align-items: center; */
     width: 100%;
     background-color: #fff;
     position: relative;
     top: 100%;
     left: 0;
     padding: 15px 0;
     gap: 15px;
     z-index: 999;
     border-top: 1px solid #ccc;
   }

   .navbar ul.show {
     display: flex;
   }

   .up {
     display: flex;
     justify-content: space-between;
     height: auto;
     padding: 10px 0;
     text-align: center;
   }

   .fa-brands {
     padding-top: 10px;
     margin: 0 10px;
   }

   #p {
     margin: 10px 0 0 0;
     padding-top: 0;
   }

   #ser {
     font-size: 20px;
     height: 60px;
   }

   .footer-main {
     flex-direction: column;
     gap: 40px;
   }

   .footer-links {
     gap: 25px;
   }
 }

 @media (max-width: 480px) {
   .logo h1 {
     font-size: 18px;
     padding-left: 13px;
   }

   .navbar ul li a {
     font-size: 14px;
   }

   .logo p {
     font-size: 10px;
     padding-left: 13px;
   }

   .cat-img {
     width: 200px;
     height: 300px;
   }

   .button {
     width: 50%;
   }

   .up {
     display: flex;
     justify-content: space-between;
     height: auto;
     padding: 10px 0;
   }

   .main-header {
     padding: 10px 5px;
   }

   #p {
     margin: 10px 0 0 0;
     padding-top: 0;
     font-size: 12px;
   }

   .fa-brands {
     font-size: 18px;
   }

   .menu-toggle {
     display: block;
     font-size: 20px;
     cursor: pointer;
   }

   .fas {
     color: black;
     font-size: 14px;
     padding: 0;
   }

   .social-icons {
     gap: 0px;
     margin-right: 0px;
   }

   .social-icons .fa-brands {
     font-size: 15px;
   }

   .newsletter-box {
     display: block;
   }

   .newsletter-form {
     display: block;
     margin-bottom: 10px;
   }

   .newsletter-form input {
     font-size: 15px;
     border: 1px solid #000000;
     background-color: rgba(255, 255, 255, 0.596);
     width: 250px;
     border-radius: 50px;
     margin-bottom: 10px;
   }


   .newsletter-form button {
     background-color: black;
     color: white;
     border: none;
     padding: 5px 10px;
     font-size: 14px;
     border-radius: 6px;
     cursor: pointer;
     border-radius: 20px;
   }

 }



 @media (min-width: 900px) {
   .navbar ul {
     display: flex;
     gap: 30px;
     justify-content: center;
     padding-left: 100px;
     padding-top: 30px;
   }
   .logo p{
    margin-left: 50px;
  }
 }

 @media (min-width: 1400px) {
   .navbar ul {
     display: flex;
     gap: 50px;
     justify-content: center;
     padding-left: 220px;
     padding-top: 30px;
   }
 }