* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "SolaimanLipi", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header {
  background: #2c3e50;
  color: #fff;
  padding: 0; /* container handles spacing */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
}

/* Fixed-height header for consistent alignment */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo a {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

/* Logo image sizing */
/* Logo container */
.logo {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: block;
}

.logo-text {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.logo-img {
  width: 220px; /* PNG fallback sizing if forced */
  max-width: 80%;
  height: auto;
  display: none; /* hidden by default, SVG preferred */
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 12px;
}

/* Make nav links larger and easier to tap */
nav ul li a {
  color: #fff;
  text-decoration: none;
  transition:
    color 0.18s,
    background 0.18s;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  display: inline-block;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #e67e22;
  background: transparent;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
}

/* Hamburger -> X when expanded via aria-expanded attribute */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.hero-banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-banner p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  background: #e67e22;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #d35400;
}

/* Categories Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.category-card {
  background: #f8f9fa;
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-card a {
  text-decoration: none;
  color: #333;
}

.category-card h3 {
  font-size: 24px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.price {
  color: #e67e22;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.btn-view,
.btn-cart {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-view {
  background: #3498db;
  color: #fff;
}

.btn-cart {
  background: #2ecc71;
  color: #fff;
}

.btn-view:hover {
  background: #2980b9;
}

.btn-cart:hover {
  background: #27ae60;
}

/* Why Choose Us */
.why-choose-us {
  background: #f8f9fa;
  padding: 60px 0;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature {
  padding: 20px;
}

.feature h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* WhatsApp Button */
.btn-whatsapp {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background: #128c7e;
}

/* Cart Page */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
}

.cart-table th,
.cart-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.cart-table th {
  background: #f8f9fa;
  font-weight: bold;
}

.cart-table input[type="number"] {
  width: 60px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.btn-remove {
  color: #e74c3c;
  text-decoration: none;
}

.btn-checkout {
  display: inline-block;
  background: #e67e22;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* Admin Panel */
.admin-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.admin-menu {
  margin: 30px 0;
}

.admin-menu a {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 5px;
  text-decoration: none;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.admin-table th {
  background: #34495e;
  color: #fff;
}

.btn-edit,
.btn-delete {
  padding: 5px 10px;
  border-radius: 3px;
  text-decoration: none;
  color: #fff;
}

.btn-edit {
  background: #f39c12;
}

.btn-delete {
  background: #e74c3c;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #e67e22;
}

.social-links a {
  color: #fff;
  margin-right: 15px;
  text-decoration: none;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
    position: relative;
  }

  /* Show hamburger */
  .nav-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 18px;
  }

  /* Hide nav by default on mobile */
  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    list-style: none;
    background: transparent;
  }

  /* When toggled open */
  nav.open ul {
    display: flex;
  }

  /* Show nav as dropdown panel when open */
  nav.open {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff; /* professional white panel */
    padding: 12px 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    z-index: 60;
  }

  nav ul li {
    margin: 8px 0;
  }

  /* Make category / menu items larger and more readable on mobile */
  nav ul li a {
    font-size: 25px;
    padding: 12px 14px;
    line-height: 1.0;
  }

  /* Dropdown items (categories) slightly indented but same readable size */
  .dropdown-menu li a {
    font-size: 18px;
    padding: 10px 18px;
    color: #2c3e50;
  }

  /* Make mobile nav links dark for contrast on white background */
  nav ul li a {
    color: #2c3e50;
  }

  /* subtle hover on mobile links */
  nav ul li a:hover {
    background: rgba(44, 62, 80, 0.06);
    color: #2c3e50;
  }

  .hero-banner h1 {
    font-size: 32px;
  }

  /* Slightly smaller logo on narrow screens */
  .logo-img {
    width: 160px;
    max-width: 60%;
    height: auto;
  }

  /* SVG logo styling (preferred) */
  .logo.use-png .logo-icon {
    display: none;
  }
  .logo.use-png .logo-img {
    display: block;
  }

  /* mobile logo adjustments */
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  .logo-text {
    font-size: 18px;
  }
  .logo.use-png .logo-img {
    width: 160px;
  }

  .category-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }
}
