/* NepalsBest - Main Stylesheet */

/* Reset and Base Styles */
:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --accent-color: #f1c40f;
  --light-color: #f1faee;
  --dark-color: #1d3557;
  --text-color: #333333;
  --footer-color: #f8f9fa;
  --header-height: 70px;
  --transition: all 0.3s ease;
  --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  --border-radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.btn:hover {
  background-color: #c1272d;
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #3a6a8a;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo img {
  height: 100px;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--dark-color);
  font-weight: 500;
}

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

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

/* Main Content */
main {
  flex: 1;
  margin-top: var(--header-height);
  padding: 40px 0;
}

.page-title {
  margin-bottom: 30px;
  color: var(--dark-color);
  text-align: center;
}

.page-title h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-title p {
  font-size: 1.1rem;
  color: #666;
}

/* Footer Styles */
footer {
  background-color: var(--footer-color);
  padding: 50px 0 20px;
  margin-top: auto;
}

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

.footer-section h3 {
  color: var(--dark-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
}

.accept-all {
  background-color: var(--primary-color);
  color: white;
}

.accept-necessary {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.cookie-settings {
  background-color: transparent;
  text-decoration: underline;
  color: white;
  border: none;
  cursor: pointer;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 30px 0;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  display: block;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  color: var(--secondary-color);
}

.pagination a:hover,
.pagination a.active {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.blog-content p {
  color: #666;
  margin-bottom: 15px;
}

.blog-meta {
  font-size: 0.9rem;
  color: #999;
}

/* Single Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 30px;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.blog-post-meta {
  color: #666;
  margin-bottom: 20px;
}

.blog-post-image {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.blog-post-content {
  line-height: 1.8;
}

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content h2 {
  margin: 40px 0 20px;
}

.blog-post-content img {
  margin: 20px 0;
  border-radius: var(--border-radius);
}

/* Shop Styles */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.product-image {
  height: 200px;
  overflow: hidden;
}

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

.product-content {
  padding: 20px;
}

.product-content h3 {
  margin-bottom: 10px;
}

.product-content p {
  color: #666;
  margin-bottom: 15px;
}

.product-price {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Shopping Cart */
.cart-container {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 30px;
  display: none;
}

.cart-container.active {
  display: block;
}

.cart-title {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 500;
}

.cart-item-price {
  color: var(--primary-color);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 20px;
}

.cart-buttons {
  display: flex;
  gap: 10px;
}

/* Glossary Styles */
.glossary-search {
  margin-bottom: 30px;
}

.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: #f9f9f9;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.glossary-item {
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: white;
}

.glossary-term {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.glossary-definition {
  color: #666;
}

/* Directory Styles */
.directory-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.category-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-image {
  height: 150px;
  overflow: hidden;
}

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

.category-content {
  padding: 20px;
  text-align: center;
}

.category-content h3 {
  margin-bottom: 10px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.listing-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.listing-image {
  height: 200px;
  overflow: hidden;
}

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

.listing-content {
  padding: 20px;
}

.listing-content h3 {
  margin-bottom: 10px;
}

.listing-content p {
  color: #666;
  margin-bottom: 15px;
}

.listing-meta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 0.9rem;
}

/* Single Listing */
.listing-detail {
  max-width: 800px;
  margin: 0 auto;
}

.listing-header {
  margin-bottom: 30px;
}

.listing-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.listing-gallery {
  margin-bottom: 30px;
}

.listing-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.listing-description {
  line-height: 1.8;
}

.listing-sidebar {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: var(--border-radius);
}

.listing-details {
  list-style: none;
}

.listing-details li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

/* Homepage Styles */
.hero {
  height: 80vh;
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.features {
  padding: 80px 0;
}

.features-title {
  text-align: center;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

.cta {
  background-color: var(--light-color);
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  margin-bottom: 20px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Policy Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.policy-content h2 {
  margin: 40px 0 20px;
}

.policy-content p {
  margin-bottom: 20px;
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 10px;
}

/* Sitemap */
.sitemap-section {
  margin-bottom: 40px;
}

.sitemap-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  list-style: none;
}

.sitemap-list li {
  margin-bottom: 10px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.hidden {
  display: none;
}
