/* Custom Styles for BULKMART Exports */

:root {
  --primary-color: #4e7c37;
  --secondary-color: #ba8e48;
  --accent-color: #d2a679;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333333;
  --bg-color: #f5f5f5;
  --footer-color: #2c3e50;
  --border-color: #dee2e6;
  --hover-color: #3e6329;
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

/* Global Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
  background-color: #a47b3b;
  border-color: #a47b3b;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Header */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
  width: 100%;
}

.search-form {
  margin-left: auto;
}

.search-form .form-control {
  border-radius: 20px 0 0 20px;
  border-right: none;
}

.search-form .btn {
  border-radius: 0 20px 20px 0;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Sidebar Menu */
.sidebar-toggle {
  cursor: pointer;
  padding: 10px;
  margin-right: 15px;
  border: none;
  background: transparent;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: left var(--transition-speed) ease;
  z-index: 1050;
  overflow-y: auto;
}

.sidebar.show {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  background-color: var(--primary-color);
  color: #fff;
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  cursor: pointer;
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
}

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

.sidebar-submenu {
  padding-left: 20px;
  display: none;
}

.sidebar-menu .has-submenu.active .sidebar-submenu {
  display: block;
}

.sidebar-menu .has-submenu > a:after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  float: right;
  transition: transform var(--transition-speed) ease;
}

.sidebar-menu .has-submenu.active > a:after {
  transform: rotate(180deg);
}

.sidebar-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 15px 0;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    display: none;
  }
  
  .search-form {
    margin-left: 0;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.pexels.com/photos/1656663/pexels-photo-1656663.jpeg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Category Cards */
.category-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: 100%;
  background-color: #fff;
}

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

.category-img {
  height: 200px;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.category-body {
  padding: 1.5rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.category-text {
  color: #6c757d;
  margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  height: 100%;
  background-color: #fff;
}

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

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

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.product-body {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-text {
  color: #6c757d;
  margin-bottom: 1rem;
  height: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-features {
  margin-bottom: 1rem;
}

.feature-badge {
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Single Product */
.product-detail-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.product-detail-img img {
  width: 100%;
  height: auto;
}

.product-detail-info {
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.product-detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-detail-description {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Breadcrumb */
.custom-breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

.custom-breadcrumb .breadcrumb-item a {
  color: var(--primary-color);
}

.custom-breadcrumb .breadcrumb-item.active {
  color: var(--dark-color);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 25%;
}

/* Enquiry Modal */
.modal-title {
  color: var(--primary-color);
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--footer-color);
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.footer-heading {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-heading:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  left: 0;
  bottom: -10px;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer ul li a {
  color: #cbd3da;
  transition: color var(--transition-speed) ease;
}

footer ul li a:hover {
  color: #fff;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color var(--transition-speed) ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.copyright {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

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

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

/* Media Queries */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .product-img, .category-img {
    height: 150px;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .category-title, .product-title {
    font-size: 1.1rem;
  }
}