:root {
  --primary-color: #F85606; /* Daraz Orange */
  --primary-hover: #d14805;
  --secondary-color: #ffffff;
  --bg-color: #f4f4f4;
  --text-color: #212121;
  --text-muted: #757575;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans Bengali', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
header {
  background: var(--secondary-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-nav {
  background: #f8f8f8;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.container {
  max-width: 1188px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main.container {
  display: block;
  width: 100%;
}

.main-nav {
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar {
  flex: 1;
  margin: 0 60px;
  display: flex;
  max-width: 600px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-bar button {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .top-nav { display: none; }
  .search-bar { order: 3; margin: 10px 0 0; width: 100%; flex: none; }
  .logo { font-size: 20px; }
  .nav-icons { gap: 15px; margin-left: auto; }
  .nav-item span { display: block; font-size: 10px; margin-top: 2px; }
  .nav-item i { font-size: 16px; }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
  min-width: 50px;
  text-align: center;
}

.nav-item:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
}

.categories-sidebar {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.category-item {
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.category-item:hover {
  background: #fff0ea;
  color: var(--primary-color);
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 400px;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; margin-top: 10px; }
  .categories-sidebar { display: none; }
  .slider { height: 200px; }
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Titles */
.section-title {
  margin: 30px 0 20px;
  font-size: 22px;
  color: #424242;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-all {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: bold;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 14px;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
}

.product-old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 5px;
}

.discount-badge {
  background: #fee;
  color: var(--primary-color);
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
}

/* Footer */
footer {
  background: #2e2e2e;
  color: #f4f4f4;
  padding: 50px 0;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: white;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #ccc;
  cursor: pointer;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

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

.footer-col li:hover {
  color: var(--primary-color);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.5s ease forwards;
}
