/* =========================================
   RESET
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   GENERAL
========================================= */
body {
  font-family: Arial, sans-serif;
  background:  linear-gradient(135deg, #00AEEF, #00C8FF);
  color: #333;
  font-size: 16px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
  width: 100%;
  background: #001F66;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* LOGO */
.logo img {
  width: 90px;
  height: auto;
  border-radius: 50%;
}


/* AUTH BUTTONS */
.auth-buttons button {
  background: #F26A21;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.auth-buttons button:hover {
  background: #d85c1e;
  padding: 10px;
}

.auth-buttons a {
  color: white;
  text-decoration: none;
}

/* CART LINK */
.cart-link {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.cart-link:hover {
  color: #00C8FF;
}

.cart-count {
  background: #F26A21;
  color: white;
  padding: 3px 7px;
  border-radius: 12px;
  font-size: 12px;
}
marquee {
  color:  white;
  font-weight: 800;
  background-color:#001F66;

}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  background: linear-gradient(135deg, #00AEEF, #00C8FF);
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 900;
  color:black;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons button {
  background: #F26A21;
  color: white;
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  margin: 10px;
  cursor: pointer;
}
.hero-buttons button a{
  color: white;
  text-decoration: none;
}
.hero-buttons button:hover {
  background: #d85c1e;
}

/* =========================================
   CATEGORIES
========================================= */
.categories {
  padding: 30px 20px;
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background-color: #F7F7F7;
}

.category-card {
  background: white;
  border-radius: 12px;
  border-top: 5px solid #00AEEF;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: .2s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
}

.category-card h2 {
  font-size: 18px;
  color: #001F66;
}

.category-card p {
  font-size: 14px;
}

.buy-btn {
  background: #F26A21;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.category-card button:hover {
  background: #d85c1e;
}

/* =========================================
   BLOG
========================================= */
.blog-wrapper {
  padding: 40px 20px;
  background: #00AEEF;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.blog-card {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.blog-card h2 {
  font-size: 20px;
  color: #F26A21;
  font-weight: 900;
  text-align: center;
}
.blog-card i{
  color: #F26A21;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #001F66;
  color: white;
  text-align: center;
  padding: 20px;
  border-top: 3px solid #F26A21;
  font-size: 14px;
  margin-top: 20px;
  bottom:0 ;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES (OPTIMIZED)
========================================= */

/* ---------- 1440px LARGE LAPTOPS ---------- */
@media (max-width: 1440px) {
  body { font-size: 15px; }

  .logo img { width: 85px; }

  #naf li a, .auth-buttons button, .hero-buttons button {
    font-size: 14px;
  }
}

/* ---------- 1024px TABLETS / SMALL LAPTOPS ---------- */
@media (max-width: 1024px) {
  body { font-size: 14px; }

  .navbar {
    padding: 10px 12px;
  }

  .logo img { width: 75px; }

  #naf {
    gap: 18px;
    padding: 8px 12px;
  }

  #naf li a, 
  .auth-buttons button, 
  .hero-buttons button {
    font-size: 13px;
  }

  .hero h1 { font-size: 28px; }

  /* Ensure categories never fall below 2 columns */
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 768px ANDROID PHONES / IPAD MINI ---------- */
@media (max-width: 768px) {
  body { font-size: 12px; }

  .navbar {
    padding: 8px 10px;
    gap: 10px;
  }

  .logo img { width: 65px; }

  #naf {
    gap: 8px;
    padding: 3px 6px;
  }

  #naf li a {
    font-size: 10px;
  }

  /* Auth + Hero buttons equal */
  .auth-buttons button,
  .hero-buttons button {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero h1 { font-size: 22px; }

  /* Always at least 2 columns */
  .categories {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

/* ---------- 600px SMALL PHONES ---------- */
@media (max-width: 600px) {
  body { font-size: 11px; }

  .navbar {
    padding: 8px;
  }

  .logo img { width: 60px; }

  #naf li a { font-size: 6px; }

  .auth-buttons button,
  .hero-buttons button {
    font-size: 8px;
    padding: 3px 7px;
  }

  .hero h1 { font-size: 20px; }

  /* Minimum 2 columns enforced */
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 480px VERY SMALL PHONES ---------- */
@media (max-width: 480px) {
  body { font-size: 10px; }

  .navbar {
    padding: 6px;
  }

  .logo img { width: 55px; }

  #naf {
    gap: 10px;
    padding: 4px 8px;
  }

  #naf li a { font-size: 9px; }

  .auth-buttons button,
  .hero-buttons button {
    font-size: 9px;
    padding: 5px 9px;
  }

  .hero h1 { font-size: 18px; }

  /* Always 2 columns */
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 380px EXTRA SMALL / OLD PHONES ---------- */
@media (max-width: 380px) {
  body { font-size: 9px; }

  .navbar {
    padding: 5px;
  }

  .logo img { width: 50px; }

  #naf li a {
    font-size: 8px;
  }

  .auth-buttons button,
  .hero-buttons button {
    font-size: 8px;
    padding: 5px 8px;
  }

  .hero h1 { font-size: 16px; }

  /* Still enforce 2 columns */
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 320px SMALLEST SCREEN SUPPORT ---------- */
@media (max-width: 320px) {
  body { font-size: 8px; }

  .logo img { width: 45px; }

  #naf li a { font-size: 7px; }

  .auth-buttons button,
  .hero-buttons button {
    font-size: 7px;
    padding: 4px 7px;
  }

  /* Never drop below 2 columns */
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
  /* =========================================
   CATEGORY CARD SIZE VARIATION (MEDIA QUERIES)
========================================= */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
  .categories {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .category-card {
    padding: 12px;
  }

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

  /* varying sizes */
  .category-card:nth-child(3n) img {
    height: 180px;
  }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .categories {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 18px;
  }

  .category-card {
    padding: 10px;
  }

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

  /* variation pattern */
  .category-card:nth-child(2n) img {
    height: 160px;
  }
  .category-card:nth-child(4n) img {
    height: 145px;
  }
}

/* ---------- 600px ---------- */
@media (max-width: 600px) {
  .categories {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
    gap: 15px;
  }

  .category-card img {
    height: 120px;
  }

  .category-card:nth-child(3n) img {
    height: 150px;
  }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .categories {
    grid-template-columns: repeat(2, 1fr); /* never fall to 1 */
    gap: 12px;
  }

  .category-card img {
    height: 110px;
  }

  /* variation */
  .category-card:nth-child(odd) img {
    height: 130px;
  }
}

/* ---------- 380px ---------- */
@media (max-width: 380px) {
  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-card img {
    height: 100px;
  }

  .category-card:nth-child(3n) img {
    height: 120px;
  }
}

/* ---------- 320px ---------- */
@media (max-width: 320px) {
  .categories {
    grid-template-columns: repeat(2, 1fr); /* enforce min 2 */
    gap: 8px;
  }

  .category-card img {
    height: 90px;
  }

  .category-card:nth-child(2n) img {
    height: 110px;
  }
} 
  /* =========================================
   CATEGORY CARD TEXT & BUTTON VARIATION
========================================= */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
  .category-card h2 {
    font-size: 17px;
  }

  .category-card p {
    font-size: 13px;
  }

  .buy-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  /* variations */
  .category-card:nth-child(3n) h2 { font-size: 18px; }
  .category-card:nth-child(4n) p { font-size: 14px; }
  .category-card:nth-child(5n) button { padding: 9px 16px; }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  .category-card h2 {
    font-size: 15px;
  }

  .category-card p {
    font-size: 12px;
  }

  .buy-btn  {
    font-size: 11px;
    padding: 7px 12px;
  }

  /* variations */
  .category-card:nth-child(odd) h2 { font-size: 16px; }
  .category-card:nth-child(2n) p { font-size: 11px; }
  .category-card:nth-child(3n) button { font-size: 12px; }
}

/* ---------- 600px ---------- */
@media (max-width: 600px) {
  .category-card h2 {
    font-size: 14px;
  }

  .category-card p {
    font-size: 11px;
  }

  .buy-btn {
    font-size: 10px;
    padding: 6px 10px;
  }

  /* variation patterns */
  .category-card:nth-child(3n) h2 { font-size: 15px; }
  .category-card:nth-child(4n) p { font-size: 12px; }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .category-card h2 {
    font-size: 13px;
  }

  .category-card p {
    font-size: 10px;
  }

  .buy-btn {
    font-size: 9px;
    padding: 5px 9px;
  }

  /* variation */
  .category-card:nth-child(odd) h2 { font-size: 14px; }
  .category-card:nth-child(3n) p { font-size: 11px; }
}

/* ---------- 380px ---------- */
@media (max-width: 380px) {
  .category-card h2 {
    font-size: 12px;
  }

  .category-card p {
    font-size: 9px;
  }

  .buy-btn {
    font-size: 8px;
    padding: 5px 7px;
  }

  /* variation */
  .category-card:nth-child(2n) h2 { font-size: 13px; }
  .category-card:nth-child(3n) p { font-size: 10px; }
}

/* ---------- 320px ---------- */
@media (max-width: 320px) {
  .category-card h2 {
    font-size: 11px;
  }

  .category-card p {
    font-size: 8px;
  }

  .category-card button {
    font-size: 7px;
    padding: 4px 6px;
  }

  /* lighter variations */
  .category-card:nth-child(odd) h2 { font-size: 12px; }
  .category-card:nth-child(3n) p { font-size: 9px; }
}
} 



