/* Core Page Layout & Dark Theme Setup */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #050b14;
  color: #ffffff;
  overflow-x: hidden;
}

/* Top Announcement Banner */
.description {
  background-color: #090977;
  color: #ffffff;
  font-size: clamp(0.68rem, 2.2vw, 0.8rem);
  font-weight: 600;
  padding: 8px 12px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-pill {
  background: rgba(46, 224, 223, 0.2);
  border: 1px solid #2ee0df;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 6px;
  color: #2ee0df;
}

/* Main Navbar - Responsive Layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px clamp(12px, 3vw, 24px);
  background-color: #060e1b;
  border-bottom: 1px solid #0f223d;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Glowing Pill Brand Header */
.brand-name {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 1.5px solid #2ee0df;
  border-radius: 25px;
  background: rgba(46, 224, 223, 0.1);
  box-shadow: 0 0 12px rgba(46, 224, 223, 0.4), inset 0 0 6px rgba(46, 224, 223, 0.2);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 18px);
  align-items: center;
  flex-shrink: 1;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: clamp(0.75rem, 1.8vw, 0.88rem);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a.active, 
.nav-links a:hover {
  color: #2ee0df;
}

.nav-links a.active {
  padding: 4px 10px;
  border: 1px solid #2ee0df;
  border-radius: 15px;
  background: rgba(46, 224, 223, 0.15);
}

/* Container for nav buttons and search box */
.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  user-select: none;
}

.icon-btn:hover {
  opacity: 0.8;
}

/* Dropdown Search Box */
.search-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 280px;
  padding: 8px;
  background: #091527;
  border: 1px solid #2ee0df;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 8px;
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

#search-toggle:checked ~ .search-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown .search-input {
  flex: 1;
  background: #050b14;
  border: 1px solid #142c4c;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
  font-size: 0.85rem;
}

.search-dropdown .search-input:focus {
  border-color: #2ee0df;
}

.search-dropdown .search-input::placeholder {
  color: #64748b;
}

.search-dropdown .search-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.search-dropdown .search-btn:hover {
  opacity: 0.9;
}

/* Main Shop Header */
.shop-header {
  text-align: center;
  padding: 30px 16px 15px 16px;
}

.shop-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: 0 0 10px 0;
  color: #ffffff;
}

.shop-header p {
  color: #94a3b8;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  margin: 0 0 20px 0;
}

/* Filter Buttons - Horizontal Scroll bar on Mobile */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding: 0 16px;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid #1e3a5f;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.filter-btn.active, 
.filter-btn:hover {
  background-color: #2ee0df;
  color: #050b14;
  border-color: #2ee0df;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(46, 224, 223, 0.4);
}

/* Product Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 20px auto;
  padding: 0 16px;
}

.product-card {
  background: #091527;
  border: 1px solid #142c4c;
  border-radius: 10px;
  overflow: hidden;
  padding: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #2ee0df;
  box-shadow: 0 0 15px rgba(46, 224, 223, 0.3);
}

/* Product Image & Thumbnail Components */
.product-image-container {
  position: relative;
  width: 100%;
  background: #050b14;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #050b14;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease-in-out;
}

.product-thumbnails {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 4px;
}

.product-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
  background: #142c4c;
  border-radius: 2px;
}

.thumb-img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #142c4c;
  background: #050b14;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  flex-shrink: 0;
}

.thumb-img:hover {
  opacity: 1;
  border-color: #ffaa00;
}

.thumb-img.active {
  border-color: #2ee0df;
  opacity: 1;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1rem;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.product-price {
  font-size: 0.95rem;
  font-weight: bold;
  color: #2ee0df;
  margin: 0 0 14px 0;
}

/* WhatsApp Order Button Styling */
.whatsapp-order-btn {
  display: block;
  text-align: center;
  background-color: transparent;
  color: #2ee0df;
  border: 1px solid #1e3a5f;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.2s ease;
}

.whatsapp-order-btn:hover {
  background-color: #2ee0df;
  color: #050b14;
  border-color: #2ee0df;
  font-weight: bold;
}

/* Image Lightbox Preview Modal Styles */
.image-modal { 
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.85); 
  align-items: center; 
  justify-content: center; 
}
.image-modal-content { 
  position: relative; 
  background: #091527; 
  border: 1px solid #2ee0df;
  padding: 20px; 
  border-radius: 12px; 
  max-width: 650px; 
  width: 90%; 
  text-align: center; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
}
.image-modal-close { 
  position: absolute; 
  top: 12px; 
  right: 18px; 
  font-size: 30px; 
  font-weight: bold; 
  cursor: pointer; 
  color: #2ee0df; 
  line-height: 1; 
}
/* Footer Section */
.site-footer {
  background-color: #040810;
  border-top: 1px solid #0f223d;
  padding: 40px 16px 20px 16px;
  margin-top: 50px;
}

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

.footer-col h3, 
.footer-col h4 {
  color: #ffffff;
  margin-top: 0;
}

.footer-col p, 
.footer-col ul {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.6;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #2ee0df;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #0f223d;
  margin-top: 30px;
  padding-top: 20px;
  color: #64748b;
  font-size: 0.8rem;
}

/* ==========================================
   Mobile & Tablet Media Queries
   ========================================== */

@media (max-width: 640px) {
  .nav-links {
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .category-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .search-dropdown {
    position: fixed;
    top: 85px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

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

  .product-img {
    height: 180px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}