/* --- GLOBAL STYLES --- */
:root {
  --primary: #1a1a1a;
  --accent: #c29d59; 
  --bg: #fcfcfc;
  --card-bg: #ffffff;
  --text-muted: #6b7280;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg); color: var(--primary); }

/* --- NAVIGATION LAYOUT --- */
.nav-container {
  width: min(1200px, 94%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  order: 2;
}

.brand {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hamburger {
  order: 3;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

/* --- PRODUCT CARD STYLING --- */
.grid {
  width: min(1200px, 94%);
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: white;
  border-radius: 25px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: 0.3s;
}

/* --- DETAILS PAGE IMAGE SLIDER (FINAL NO-CROP FIX) --- */
.img-slider {
  width: 100%;
  /* Yahan se aspect-ratio aur fixed height bilkul nikaal di hai */
  height: auto !important; 
  min-height: 250px;
  overflow-x: auto;
  display: flex;
  scroll-snap-type: x mandatory;
  border-radius: 15px;
  scrollbar-width: none;
  background-color: #f9f9f9; 
  align-items: center; /* Image center mein rahay gi */
}

.img-slider::-webkit-scrollbar { display: none; }

.img-slider img {
  width: 100%;
  height: auto !important; /* Image ko kheencha nahi jayega */
  max-height: 70vh; /* Screen ke mutabiq adjust hogi */
  flex-shrink: 0;
  object-fit: contain !important; /* FIXED: Poori photo dikhayega */
  scroll-snap-align: start;
  cursor: zoom-in;
  background-color: #f9f9f9;
}

/* Index page ki images ke liye fix */
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1; 
  object-fit: contain !important;
  background: #f9f9f9;
  border-radius: 20px;
  margin-bottom: 15px;
}

.swipe-hint {
  text-align: center;
  font-size: 10px;
  color: var(--accent);
  margin: 10px 0;
  letter-spacing: 2px;
}

/* --- WHATSAPP BUTTON --- */
.btn-whatsapp {
  display: block;
  text-align: center;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 15px;
}

/* --- LIGHTBOX (ZOOM) --- */
#lightbox { 
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); 
  z-index: 9999; justify-content: center; align-items: center; 
}
#lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; object-fit: contain; }

/* --- SEARCH BUTTON STYLING --- */
.search-trigger {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 244, 246, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    text-decoration: none;
    font-size: 20px;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.search-trigger:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) rotate(5deg);
}

.sidebar-search-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #f8f9fa;
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Mobile Friendly Adjustments */
@media (max-width: 480px) {
    .search-trigger {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}