/* TEJSHREE GOODS SUPPLIERS - MASTER STYLESHEET */

:root {
  --primary-green: #1e5b3a;
  --primary-hover: #14442d;
  --accent-yellow: #ffcc00;
  --bg-light: #f8f9fa;
  --card-bg: #ffffff;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}

/* NAVBAR STYLES */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  max-height: 40px;
  border-radius: 4px;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: -0.5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-btn, .pos-btn {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f0f0f0;
  transition: background 0.2s;
}

.admin-btn:hover, .pos-btn:hover {
  background: var(--border-color);
}

.cart-btn {
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-search-row {
  width: 100%;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: #f1f3f4;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-bar input:focus {
  border-color: var(--primary-green);
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.mobile-toggle-btn {
  display: none;
  background: var(--accent-yellow);
  color: #000000;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* LAYOUT & SIDEBAR */
.page-layout {
  max-width: 1240px;
  margin: 20px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

.sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-list li {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s;
}

.category-list li:hover, .category-list li.active {
  background: #e8f5e9;
  color: var(--primary-green);
  font-weight: 700;
}

.mobile-only {
  display: none;
}

/* PROMO BANNER */
.promo-banner-container {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.promo-slide {
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 30px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.promo-content h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
  color: var(--accent-yellow);
}

/* PRODUCT GRID & CARDS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  background-color: #f0f0f0;
}

.product-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
  line-height: 1.3;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.price-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.variant-select {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.add-cart-btn {
  width: 100%;
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.add-cart-btn:hover {
  background-color: var(--primary-hover);
}

/* FOOTER */
.footer {
  background-color: #111111;
  color: #ffffff;
  padding: 30px 16px 15px 16px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 280px;
}

.contact-col h3 { margin-bottom: 12px; font-size: 1.1rem; }
.contact-col p { margin: 6px 0; font-size: 0.85rem; color: #cccccc; }
.contact-col a { color: var(--accent-yellow); text-decoration: none; }

.map-col iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 6px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 10px;
  font-size: 0.8rem;
  color: #aaaaaa;
}

.footer-bottom a { color: var(--accent-yellow); text-decoration: none; }

/* OVERLAY & CART MODAL */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.cart-modal.hidden { display: none; }

.cart-content {
  background: #ffffff;
  width: 380px;
  max-width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -4px 0 15px rgba(0,0,0,0.2);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.cart-header h2 {
  font-size: 1.2rem;
  color: var(--primary-green);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
  padding-right: 5px;
}

.checkout-form {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form h3 {
  font-size: 0.95rem;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.checkout-form input, 
.checkout-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
}

.checkout-form input:focus, 
.checkout-form textarea:focus {
  border-color: var(--primary-green);
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.cart-footer h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-green);
}

.checkout-btn {
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.checkout-btn:hover {
  background-color: #1ebc57;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .mobile-toggle-btn { display: inline-flex; }

  .page-layout {
    grid-template-columns: 1fr;
    padding: 0 10px;
    margin: 10px auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 999;
    border-radius: 0;
    transition: left 0.3s ease-in-out;
    padding: 16px;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
  }

  .sidebar.mobile-active { left: 0; }
  .mobile-only { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 10px; }

  .close-sidebar-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 10px; }
  .product-card img { height: 110px; }
  .brand-title { font-size: 1.1rem; }
}
/* CATEGORY BLOCK SECTIONS BELOW PROMOTIONAL BANNER */
.category-block-section {
  margin-bottom: 28px;
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary-green);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.category-block-header h2 {
  font-size: 1.25rem;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-block-header .count-badge {
  background: #e8f5e9;
  color: var(--primary-green);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
}
/* ENLARGE IMAGE MODAL (LIGHTBOX) STYLES */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.image-modal.hidden {
  display: none !important;
}

.image-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalZoom 0.25s ease-out;
}

@keyframes modalZoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.image-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #c62828;
  color: #ffffff;
  border: 2px solid #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.image-modal-close:hover {
  transform: scale(1.15);
}

.image-modal-content img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 8px;
}

.enlarged-title {
  margin-top: 15px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green, #1e5b3a);
  text-align: center;
}

/* HOVER FEEDBACK FOR PRODUCT IMAGES */
.product-card img {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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