/* General reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  padding: 10px;
}

/* Navigation */
nav {
  padding: 0 2%;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background: #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 30;
  border-radius: 7px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#flex {
  display: flex;
  align-items: center;
}

.logo{
  width: 25px;
  border-radius: 50%;
}

#left-view a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
}

#right-view {
  display: flex;
  align-items: center;
  gap: 3px;
  
}

#cart-link {
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  margin-left: 10px;
}
/* 🔍 Search bar styles */
.search-container {
  display: flex;
  justify-content: right;
  margin: 5px 0;
}

#searchInput {
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  outline: none;
}

#searchBtn {
  padding: 8px 10px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

#clearBtn{
  margin-left: 10px;
  padding: 8px 5px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

#searchBtn:hover {
  background: #e65c00;
}

#menu-list{
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 30%;
 
}

#menu-list a {
  
  margin: 5px;
  color: #f8b933;
  text-decoration: none;
  font-family: sans-serif;
  flex-shrink: 0;
}

#menu-list a:hover {
  background-color: whitesmoke;
  color: #f8b933;
  width: fit-content;
  border-radius: 7px;
}

/* Store Layout */
#store-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#left-layout {
  width: 20%;
  margin-right: 25px;
}

#left-store {
  position: fixed;
  z-index: 20;
  width: 25%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
}

#left-store-h {
  text-align: center;
  color: #009578;
  padding: 10px;
  font-size: 18px;
  margin-bottom: 0;
}

#store-menu-list {
  margin-bottom: 15px;
  
}


#store1 {
  margin: 5px;
  background-color: #f8b933;
  color: #2a2a2a;
  border: none;
  border-radius: 7px;
  height: 27px;
  width: 90%;
  cursor: pointer;
}

#link{
  width: 25%;
  position: fixed;
  top: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  height: fit-content;
  
}
#Quick-link{
   margin-top: 8px;
  margin-bottom: 15px;
}

#quick-head{
  color: #666;
  text-align: center;
  margin-bottom: 10px;
}

#quick-text{
  text-decoration: none;
  color: black;
  
  margin-bottom: 9px;
  text-align: center;
  font-size: 14px;
}

/* Banner Carousel Section */
#featured-carousel {
  padding: 20px 0;
  background: #fff;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  
}

#featured-carousel h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

/* Prevent overflow */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Carousel track fits container exactly */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

/* Cards auto-fit based on screen size */
.carousel-card {
  flex: 0 0 33.33%;   /* Exactly 3 per row on desktop */
  margin: 0 10px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
  opacity: 0.6;
  transform: scale(0.9);
  transition: opacity .4s, transform .4s;
}

.carousel-card.active {
  opacity: 1;
  transform: scale(1);
}


.carousel-card img {
  width: 100%;
  border-radius: 10px 10px 0 0;
  height: 120px;
  object-fit: cover;
}

.carousel-card h3 {
  margin: 8px 0 5px;
  font-size: 1rem;
  color: #222;
}

.carousel-card p {
  margin: 3px 0;
  font-size: 0.9rem;
  color: #555;
}

.price {
  font-weight: bold;
  color: #e67e22;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }
.carousel-btn:hover { background: rgba(0,0,0,0.8); }

/* Dots */
.carousel-dots {
  text-align: center;
  margin-top: 10px;
}
.carousel-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dots .dot.active { background: #e67e22; }

/* Responsive */
@media (max-width: 900px) {
  .carousel-card { min-width: 45%; }
}
@media (max-width: 600px) {
  .carousel-card { min-width: 80%; }
}
/* Middle Layout */
#middle-layout {
  width: 70%;
  position: sticky;
  border-radius: 12px;
  padding: 10px;
  min-height: 250px;
  gap: 20px;
  margin-left: 50px;
}

#middle-store-h {
  text-align: center;
  margin: 10px 0 20px;
  font-size: 18px;
  color: #009578;
}

#store-heads {

  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#store {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

#store-img {
  margin: 10px;
  width: 17%;
  margin-left: 10px;
}

.header-txts {
  text-align: center;
  flex: 1;
  margin: 25px;
  font-size: 30px;
  color: #fff;

}

.p-text{
  font-size: 18px;
  margin-top: 17px;
  color: #fff;
  margin-bottom: 7px;
}

.middle-bnt{
  width: 90px;
  height: 35px;
  background-color: #fff;
  color:#f8b933 ;
  border: none;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}
/* Product Grid */
#addtocart{
  background-color: #f8b933;
  border: white;
  height: 25px;
  width: 100px;
  color: white;
  border-radius: 7px;
  cursor: pointer;

}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px 20px;
  flex: 3;
}

.product-card {
  background-color: #fff;
  padding: 3px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
  
}

.product-card h3 {
  margin-top: 5px;
  font-size: 1.2rem;

}

.description {
  color: #666;
  font-size: 0.9rem;
  margin: 5px 0;
}

.price {
  font-weight: bold;
  color: #009578;
  font-size: 1.1rem;
}

/* Cart Sidebar */
#cart-details {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 60px;
    
}
  #cart-details h2 {
      margin-bottom: 10px;
    }
    
   #cart-items {
      list-style: none;
      padding-left: 0;
      margin-bottom: 10px;
    }
/* ----------------------------
   MEDIA QUERIES FOR RESPONSIVENESS
---------------------------- */

/* -----------------------------------------
   ✅ RESPONSIVE DESIGN – UPDATED & FIXED
------------------------------------------ */




/* ✳️ Base font setup */
body {
  font-size: 16px; /* Desktop base font size */
  line-height: 1.6;
  color: #222; /* Default dark grey for readability */
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ----------------------------
   HEADINGS – DEFAULT STYLING
-----------------------------*/
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

h1 {
  font-size: 2rem;         /* ~32px */
  color: #111;             /* Deep black for clarity */
}

h2 {
  font-size: 1.6rem;       /* ~25.6px */
  color: #1a1a1a;
}

h3 {
  font-size: 1.3rem;       /* ~21px */
  color: #333;
}

/* ----------------------------
   PARAGRAPH & GENERAL TEXT
-----------------------------*/
p, .p-text {
  font-size: 1rem;         /* ~16px */
  color: #333;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ----------------------------
   SPECIAL STYLES FOR DARK SECTIONS
   (like nav, header images, dark cards)
-----------------------------*/
nav h1, nav h2, nav h3,
nav p, nav a,
#store-head h3, #store-head p,
.header-txts h3, .header-txts p {
  color: #fff !important; /* Bright white for contrast */
  text-shadow: 0 1px 3px rgba(0,0,0,0.4); /* smooth readability */
}

#menu-list a {
  color: #f8b933;
  font-weight: 600;
}

#menu-list a:hover {
  background-color: #f8b933;
  color: #fff;
}

/* ----------------------------
   ACCENT COLORS
-----------------------------*/
h1, h2, h3 {
  transition: color 0.3s ease;
}

h1:hover, h2:hover, h3:hover {
  color: #f8b933; /* Golden accent hover */
}

/* ----------------------------
   HEADER TEXT BLOCKS
-----------------------------*/
.header-txts h3,
.header-txt {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.header-txts p,
.p-text {
  font-size: 1.1rem;
  color: #f8f8f8;
}
/* ✅ Laptop screens (1025px and up) – No changes */
@media (min-width: 1025px) 
{
 
  @media (min-width: 1025px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    p, .p-text { font-size: 1.1rem; }
  
    .header-txts h3 { font-size: 2rem; }
    .header-txts p { font-size: 1.1rem; }
  } /* Intentionally left empty to keep desktop layout unchanged */
}



/* ✅ Tablets & small laptops (768px – 1024px) */
@media (max-width: 1024px) {

  #store-layout {
    flex-direction: column;
    align-items: center;
  }

  #left-layout,
  #middle-layout {
    width: 100%;
    margin: 0;
  }

  #left-store {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    padding: 12px 2%;
    flex-wrap: wrap;
  }

  #menu-list {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  #searchInput {
    width: 170px;
  }

  @media (max-width: 1024px) and (min-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }
    p, .p-text { font-size: 1rem; }
  
    .header-txts h3 { font-size: 1.7rem; }
    .header-txts p { font-size: 1rem; }
  }

}


/* ✅ Large phones & portrait tablets (480px – 768px) */
@media (max-width: 768px) {

  nav {
    flex-direction: column;
    align-items: center;
  }

  #menu-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #store {
    flex-direction: column;
    text-align: center;
  }

  #left-store-h{
    font-size: 18px;
    margin-bottom: 0;
  }

  #store-menu-list a {
    font-size: 30px;
  }

  #store-img {
    width: 60%;
    margin: auto;
  }

  .header-txt{
    font-size: 20px;
  }

  .p-text{
    font-size: 40px;
  }


  #searchInput {
    width: 160px;
  }

  #left-store, #link {
    width: 100%;
    position: relative;
  }

  @media (max-width: 767px) and (min-width: 480px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    p, .p-text { font-size: 0.95rem; }
  
    .header-txts h3 { font-size: 1.5rem; }
    .header-txts p { font-size: 0.9rem; }
  }
}



/* ✅ Small phones (≤480px) */
@media (max-width: 480px) {

  nav {
    padding: 8px;
  }

  #menu-list a {
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  #store-img {
    width: 95%;
  }

  .header-txts {
    font-size: 22px;
  }

  .p-text {
    font-size: 14px;
  }

  #searchInput {
    width: 140px;
  }

  #store1,
  .middle-bnt {
    width: 95%;
  }

  @media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    p, .p-text { font-size: 0.9rem; }
  
    .header-txts h3 { font-size: 1.3rem; }
    .header-txts p { font-size: 0.85rem; }
  }
}

/* -------------------------------
   🖥️ LAPTOPS & LARGE SCREENS
   ------------------------------- */
   @media screen and (min-width: 1024px) {
    #featured-carousel {
      max-width: 1100px;
      padding: 30px 0;
    }
  
    .carousel-card {
      min-width: 30%;
      margin: 0 10px;
    }
  
    .carousel-card img {
      height: 180px;
    }
  
    .carousel-card h3 {
      font-size: 1.1rem;
    }
  
    .carousel-card p {
      font-size: 1rem;
    }
  
    .carousel-btn {
      font-size: 1.8rem;
      padding: 10px 14px;
    }
  }
  
  /* -------------------------------
     📱 TABLETS & LARGE PHONES
     ------------------------------- */
  @media screen and (min-width: 768px) and (max-width: 1023px) {
    #featured-carousel {
      width: 95%;
      padding: 25px 0;
    }
  
    .carousel-card {
      min-width: 45%;
      margin: 0 8px;
    }
  
    .carousel-card img {
      height: 150px;
    }
  
    .carousel-card h3 {
      font-size: 1rem;
    }
  
    .carousel-card p {
      font-size: 0.9rem;
    }
  
    .carousel-btn {
      font-size: 1.4rem;
      padding: 8px 10px;
    }
  }
  
  /* -------------------------------
     📲 SMALL PHONES
     ------------------------------- */
  @media screen and (max-width: 767px) {
    #featured-carousel {
      width: 100%;
      padding: 20px 0;
    }
  
    .carousel-container {
      width: 95%;
    }
  
    .carousel-card {
      min-width: 80%;
      margin: 0 5px;
      padding: 8px;
    }
  
    .carousel-card img {
      height: 120px;
    }
  
    .carousel-card h3 {
      font-size: 0.95rem;
    }
  
    .carousel-card p {
      font-size: 0.85rem;
    }
  
    .carousel-btn {
      font-size: 1.2rem;
      padding: 6px 8px;
    }
  
    .carousel-dots .dot {
      width: 8px;
      height: 8px;
    }
  }

  
  