/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* Color Variables */
:root {
  --bg-color: #ffffff;       /* Main background */
  --second-bg-color: #f5f5f5;/* Light gray section background */
  --dark-color: #101010;     /* Deep dark for contrast */
  --text-color: #1a1a1a;     /* Primary text */
  --main-blue: #1E90FF;      /* Dodger Blue */
  --main-red: #FF3131;       /* Vivid Red */
  --accent-blue: #0077B6;    /* Deep ocean blue */
  --accent-red: #E63946;     /* Warm red */
  --gradient-blue-black: linear-gradient(270deg, #1E90FF 0%, #000000 100%);
  --gradient-blue-red: linear-gradient(270deg, #1E90FF 0%, #FF3131 100%);
}

/* Base HTML */
html {
  font-size: 62.5%; /* 1rem = 10px */
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 1.6rem;
  padding-top: 8rem; /* prevent content hiding behind header */
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  height: 14%;
  top: 0;
  left: 0;
   padding: 2rem 5% 2rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(9px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}



/* Logo (image + text container) */
.logo2 a {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.logo2 img {
  height: 80px;
  margin-left: 30%;
  width: auto;
  display: block;
  object-fit: contain;
  
}

.logo {
margin-right: 9%;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-blue-red);
  -webkit-background-clip: text;
  color: transparent;
  transition: transform 0.3s ease-in-out;
   
   
}

.logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* Span Gradient Text */
span {
  background: var(--gradient-blue-red);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Navbar */
.navbar a {
  
  font-size: 1.9rem;
  color: var(--dark-color);
  margin-left: 2rem;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease-in-out;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
 
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--main-blue);
  transition: width 0.3s ease-in-out;
}

.navbar a:hover {
  color: var(--main-blue);
}

.navbar a:hover::after {
  width: 100%;
}

/* Gradient Button */
.gradient-btn {
  padding-right:5em;
  font-size: 1.8rem;
  padding: 1rem 2.4rem;
  border-radius: 3rem;
  background: var(--gradient-blue-red);
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: white;
  border: none;
  text-wrap: nowrap;
}  

.gradient-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.6);
}

.gradient-btn2 {
 
  margin-top: 15px;
  padding-right:5em;
  font-size: 1.9rem;
  padding: 1rem 2.4rem;
  border-radius: 3rem;
  background: var(--gradient-blue-black);
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: white;
  border: none;
  text-wrap: nowrap;
}  

.gradient-btn2:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.6);
}


.big-g {
  font-size: 1.9em; /* Adjust size as needed */
  font-weight: bold; /* Optional: Make it bold */
  color:var(--gradient-blue-black); /* Optional: Change color */
 
}
/* Sections */
section {
  padding: 8rem 10%;
}

section:nth-child(even) {
  background: var(--second-bg-color);
}

 section{
    min-height: 100vh;
    padding: 10rem 15%;
 }

 /* Home Section */
/* Home Section */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
  padding: 6rem 10%;
  min-height: 100vh;
  background: #fff; /* white background */
  color: #000;      /* black text */
}

/* Left content */
.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;        
}

.home-content h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #000; /* solid black */
  margin-bottom: 1.5rem;
}

.home-content h3 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000; /* dark gray for subtle contrast */
    


}

.home-content h3 span {
  background: var(--gradient-blue-red); /* Apply the blue-to-red gradient */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent; /* Required for the gradient to show through */
  font-weight: 700; /* Kept bold weight, increased slightly for emphasis */
  
}

.home-content p {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 550px;
  color: #555; /* medium gray for readability */
  margin-bottom: 2rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  background: #000; /* black circle */
  transition: all 0.3s ease-in-out;
}

.social-icons a:hover {
  background: var(--gradient-blue-black); /* lighter black/gray on hover */
  transform: scale(1.1);
}

/* Right image */
.home-img {
  flex: 1;
  max-width: 450px;
  width: 100%;
  border-radius: 1.5rem;
  object-fit: contain;
  filter: grayscale(100%); /* makes the image b&w */
}
  
.RB_flask {
    height: 20rem;
    width: 25rem;
    position: relative;
    animation: shake 1.3s ease-in-out;
    
}


@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-20px); }
    40% { transform: translateX(20px); }
    60% { transform: translateX(-20px); }
    80% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

.RB_flask::after {
    position: absolute;
    content: '';
    top: 51.4%;
    left: 93.7%;
    transform: translate(-63.5%) rotate(16deg);
    width: 4.5rem;
    height: 5.5rem;
    background-color:   #f1f1f1; /* keep flask white */
    border: 0.2rem solid black;
    border-top: none;
    border-bottom: none;
}

/* Round bottom flask */
.chemical {
    margin-top: 50%;
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%) rotate(25deg);
    width: 14rem;
    height: 14rem;
    border: 0.2rem solid black;
    border-top: 0.2rem solid #f0f0f0; /* keep flask rim white */
    border-radius: 50%;
    outline: 0.2rem solid black;
    outline-offset: .5rem;
    overflow: hidden;
}

/* Liquid inside */
.chemical::after {
    position: absolute;
    content: '';
    top: 50%;
    left: 15%;
    transform: rotate(79deg);
    animation: wave 1.3s linear infinite;
    width: 100%;
    height: 130%;
    background: linear-gradient(90deg, #1E90FF, #FF3131); /* gradient liquid */
}

@keyframes wave {
    0%   { transform: rotate(75deg); }
    10%  { transform: rotate(69deg); }
    20%  { transform: rotate(62deg); }
    30%  { transform: rotate(69deg); }
    40%  { transform: rotate(75deg); }
    50%  { transform: rotate(80deg); }
    60%  { transform: rotate(85deg); }
    70%  { transform: rotate(90deg); }
    80%  { transform: rotate(85deg); }
    90%  { transform: rotate(80deg); }
    100% { transform: rotate(75deg); }
}

/* Bubbles */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bubble {
    width: 1rem;
    height: 1rem;
    background: linear-gradient(90deg, #1E90FF, #FF3131); /* gradient bubbles */
    border-radius: 50%;
    transform: translate(60px,65px);
    animation: chemical_bubbles 2s linear infinite;
}

@keyframes chemical_bubbles {
    0% {
        transform: translate(60px,65px) scale(.3);
        opacity: 0;
    }
    20% { opacity: 1; }
    60% {
        transform: translate(20px,45px);
        opacity: 1;
    }
    100% {
        transform: translate(-40px,-80px) scale(.4);
        opacity: 0;
    }
}

/* Bubble variations */
.bubble:nth-child(1) { animation-delay: 1.4s; }
.bubble:nth-child(2) { width: 2rem; height: 2rem; animation-delay: 3.4s; }
.bubble:nth-child(3) { width: 2.5rem; height: 2.5rem; animation-delay: .7s; }
.bubble:nth-child(4) { width: 1.4rem; height: 1.4rem; animation-delay: 5s; }
.bubble:nth-child(5) { animation-delay: 2.2s; }


/* Position the second flask*/




 .element {
        width: 100px;
        height: 100px;
        border: 1px solid #333;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        transition: transform 0.3s ease;
      }

      .element:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
      }

      .atomic-number {
        font-size: 0.4rem;
        font-weight: 700;
        color: #333;
      }

      .symbol {
        font-size: 3rem;
        font-weight: 900;
        background: linear-gradient(45deg, #1E90FF, #FF3131);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .name {
        font-size: 0.9rem;
        color: #555;
      }

      .mass {
        font-size: 0.8rem;
        color: #888;
      }


      .shop-category {
  padding: 6rem 10%;
  background-color: var(--second-bg-color);
  text-align: center;
}

.shop-category h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: var(--gradient-blue-black);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-cards {
  margin-top: 10%;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  
  min-height: 200px; /* ensures all cards have at least this height */
  
}

.category-card {
  position: relative;
  width: 250px;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
 
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card:hover {
  transform: translateY(-12px) rotate(var(--tilt, 0deg));
  box-shadow: 0 12px 35px rgba(30,144,255,0.25);
}

.card-image {
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-bottom: 2px solid rgba(30,144,255,0.3);
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.category-card:hover .card-image img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.card-image::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(30,144,255,0.3), rgba(255,49,49,0.3));
  pointer-events: none;
}

.category-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 1.2rem 0;
  background: var(--gradient-blue-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Optional: assign random tilts for a lively feel */
.category-card:nth-child(1) { --tilt: -4deg; }
.category-card:nth-child(2) { --tilt: 3deg; }
.category-card:nth-child(3) { --tilt: -2deg; }
.category-card:nth-child(4) { --tilt: 5deg; }


/* Section Wrapper */
.glassware-section {
  padding: 4rem 10%;
  background: #fff;
  text-align: center;
}

.section-title {
  
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: var(--gradient-blue-black);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Grid Layout */
.glassware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* Card */
.glassware-card {
  
  background: #fdfdfd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  
  min-height: 300px; /* ensures all cards have at least this height */
  justify-content: space-between; /* spreads content evenly */
}

.glassware-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.glassware-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
}

/* Name */
.glassware-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  background-color: var(--gradient-blue-black);
}

/* Price */
.price {
  font-weight: bold;
  font-size: 1.5rem;
  background: var(--gradient-blue-black);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
}

/* See More Button */
.see-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  background: var(--gradient-blue-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.see-more .arrow {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.see-more:hover .arrow {
  transform: translateX(6px);
}

/* Arrow Animation */
.arrow {
  color: white;
  display: inline-block;
  transition: transform 0.3s ease;
}

.see-more:hover .arrow {
  transform: translateX(6px);
}


::-webkit-scrollbar{
  width: 8px;

}

::-webkit-scrollbar-thumb{
  background: var(--gradient-blue-red);
}

::-webkit-scrollbar-track{
  background-color: #e6e6e6;
}



/* ===== Lab Installation & School Furniture Section ===== */
.lab-furniture-section {
  padding: 4rem 2rem;
  background: #f9f9f9;
  text-align: center;
}

.lab-furniture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: auto;
}

.lf-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lf-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.lf-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Title */
.lf-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  background: var(--gradient-blue-black);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Description */
.lf-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* See More Button */




/* ===== Footer Section ===== */
.footer {
  background: linear-gradient(135deg, #000000, #1E90FF); /* Black → Blue gradient */
  color: #f1f1f1;
  padding: 3rem 1.5rem 1rem;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  position: relative;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #1E90FF; /* blue underline */
  margin-top: 6px;
  border-radius: 2px;
}

.footer-col p,
.footer-col ul li {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #dcdcdc;
}

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

.footer-col ul li {
  margin: 0.4rem 0;
}

.footer-col ul li a {
  color: #dcdcdc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #1E90FF; /* Hover blue */
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-socials a {
  font-size: 1.8rem;
  margin-right: 0.6rem;
  color: #dcdcdc;
  transition: transform 0.3s, color 0.3s;
}

.footer-socials a:hover {
  color: #1E90FF;
  transform: scale(1.2);
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  color: #aaa;
}
/* Menu icon default hidden (desktop) */


  #menu-icon {
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: pulse 1.5s infinite;
    display: none;
    z-index: 1001;
  }

  /* Shake + expand/contract effect */
  @keyframes pulse {
    0%   { transform: scale(1) rotate(0deg); }
    25%  { transform: scale(1.2) rotate(5deg); }
    50%  { transform: scale(1) rotate(0deg); }
    75%  { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
  }

/* Show icon only on mobile */
@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 70px; /* same as header height */
    right: 20px;
    background: var(--gradient-blue-black);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    gap: 1rem;
     

  }

  .navbar.active {
    display: flex;
  }
}

/* ===== Product Sections ===== */
.product-section {
  padding: 4rem 6%;
  background: var(--second-bg-color);
}

.product-section:nth-child(even) {
  background: var(--bg-color);
}

.section-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

/* ===== Product Cards ===== */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.8rem;
  margin: 0.8rem 0;
  color: var(--dark-color);
}

.product-card .price {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--main-blue);
  margin-bottom: 0.5rem;
}

.product-card .desc {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1rem;
  min-height: 40px;
}

/* ===== Buttons ===== */
.product-card .gradient-btn {
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-blue-black);
  transition: background 0.3s ease, transform 0.2s ease;
}

.product-card .gradient-btn:hover {
  background: var(--gradient-blue-red);
  transform: scale(1.05);
}

/* ========== RESPONSIVENESS ========== */

/* Tablet Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  html {
    font-size: 58%; /* scale down base font slightly */
  }

  .header {
    padding: 1.5rem 4%;
  }

  .home {
    flex-direction: column;
    gap: 4rem;
    padding: 6rem 6%;
    text-align: center;
  }

  .home-content {
    align-items: center;
    text-align: center;
  }

  .home-img {
    max-width: 380px;
  }

  .glassware-grid,
  .lab-furniture-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 65%; /* smaller root font */
  }

  .header {
    padding: 1.2rem 6%;
  }

  .logo2 img {
    height: 60px;
    margin-left: 10%;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 70px;
    right: 5%;
    background: var(--gradient-blue-black);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
    width: 75%; /* dropdown takes most of screen width */
  }

  .navbar a {
    font-size: 1.6rem;
    margin: 0.6rem 0;
  }

  .home h1 {
    font-size: 3.6rem;
  }

  .home h3 {
    font-size: 2.2rem;
  }

  .home p {
    font-size: 1.4rem;
  }

  .glassware-card img,
  .lf-card img {
    height: 180px; /* smaller cards */
  }

  .shop-category h2,
  .section-title {
    font-size: 3rem;
  }
}



/* Small Mobile Screens (max-width: 480px) all android */
@media (max-width: 480px) {
  html {
    font-size: 60%; /* slightly smaller root font */
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 5%;
  }

  .logo {
    font-size: 2.2rem;
  }

  .gradient-btn,
  .gradient-btn2 {
    font-size: 1.4rem;
    padding: 0.8rem 1.8rem;
  }

  .home {
    padding: 5rem 5%;
    gap: 3rem;
  }

  .home h1 {
    font-size: 3rem;
  }

  .home-img {
    max-width: 280px;
  }

  .category-card {
    width: 100%; /* cards full width on small screens */
  }

  .glassware-grid {
    grid-template-columns: repeat(2, 1fr); /* single column */
  }

  .lab-furniture-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr; /* stack footer cols */
    text-align: center;
  }

  .footer-col h3::after {
    margin: 6px auto 0;
  }
}

/* ===== Tablets (max-width: 768px) ===== */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 1.5rem;
  }

  .product-card img {
    height: 150px;
  }

  .product-card h3 {
    font-size: 1.6rem;
  }

  .product-card .price {
    font-size: 1.4rem;
  }

  .product-card .desc {
    font-size: 1.2rem;
  }

  .product-card .gradient-btn {
    font-size: 1.3rem;
    padding: 0.6rem 1.4rem;
  }
}

/* ===== Small Mobiles (max-width: 480px) ===== */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* stack cards in one column */
  }

  .product-card img {
    height: 130px;
  }

  .product-card h3 {
    font-size: 1.4rem;
  }

  .product-card .price {
    font-size: 1.2rem;
  }

  .product-card .desc {
    font-size: 1.1rem;
  }

  .product-card .gradient-btn {
    width: 100%; /* full-width button */
    padding: 0.8rem;
  }
}

.navbar.active {
  display: flex; /* shows the dropdown when active */
}
/* Push content below header */
#home {
  padding-top: 70px; /* matches header height */
}


/* Hide navbar by default (mobile) */
@media (max-width: 768px) {
  .navbar {
    display: none;
    position: absolute;
    top: 100%; /* directly below header */
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0 0 12px 12px;
    /* --- Pick ONE background style --- */

    /* OPTION 1: Solid White Card Look */
    /* background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); */

    /* OPTION 2: Subtle Black Transparency */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px); 
     /* Background */
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);

    /* Borders on all sides */
    border: 2px solid #fff;
    border-radius: 12px;

    /* Space from edges */
    margin: 0.5rem 1rem; 
    
  }

  /* When active, show as simple vertical list */
  .navbar.active {
    display: flex;
    gap: 1rem;
  }

  .navbar.active a {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0;
    animation: slideIn 0.3s ease forwards;

    /* Default text color works for white background */
    /* Switch to white text if using black transparent bg */
    color: #fff;
  }

  .navbar.active a:nth-child(1) { animation-delay: 0.1s; }
  .navbar.active a:nth-child(2) { animation-delay: 0.2s; }
  .navbar.active a:nth-child(3) { animation-delay: 0.3s; }
  .navbar.active a:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Action row inside each card */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Buy button stays styled */
.card-actions .gradient-btn {
  flex: unset;          /* remove stretch */
  font-size: 1.5rem;    /* smaller text */
  padding: 0.4rem 0.8rem;  /* smaller padding */
  border-radius: 6px;   /* slightly rounded */
}


/* Share & Like buttons */
.icon-btn {
  background: #f4f4f4;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-btn i {
  color: #333;
  transition: color 0.3s ease;
}

/* Hover effects */
.icon-btn:hover {
  background: #0077ff;
}

.icon-btn:hover i {
  color: #fff;
}

/* Like button active state (toggle red) */
.like-btn.active i {
  color: red;
}



