/* ===================================
   MACHINERY INDUSTRY WEBSITE
   Main Stylesheet - Red & White Theme
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-red: #D11919;
  --primary-red-dark: #A01414;
  --primary-red-light: #E63939;
  --white: #FFFFFF;
  --black: #111111;
  --grey-light: #F3F3F3;
  --grey-medium: #CCCCCC;
  --grey-dark: #666666;

  /* Typography */
  --font-heading: 'Roboto Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Borders */
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-red: 0 4px 12px rgba(209, 25, 25, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--grey-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* ===== NAVIGATION ===== */
.navbar {
  background-color: #e92222;
  padding: var(--spacing-sm) 0;
  transition: var(--transition-normal);
  border-bottom: 1px solid var(--grey-light);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: -0.01em;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #ffffff;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff;
  background-color: rgba(209, 25, 25, 0.05);
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background-color: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(209, 25, 25, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--grey-light);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(209, 25, 25, 0.85) 0%, rgba(17, 17, 17, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: var(--spacing-md);
  animation: fadeInUp 1s ease;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--spacing-xl) 0;
  background-color: #d9d5d5;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title h2 {
  color: var(--black);
  margin-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-red);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--grey-dark);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-red);
}

.product-card-image {
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: var(--transition-normal);
  background-color: var(--grey-light);
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.product-card-content {
  padding: var(--spacing-md);
  position: relative;
  transition: var(--transition-normal);
}

.product-card:hover .product-card-content {
  background-color: var(--white);
}

.product-card-title {
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-heading);
}

.product-card-specs {
  color: var(--grey-dark);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

.product-card-specs li {
  list-style: none;
  padding-left: 1.2rem;
  position: relative;
}

.product-card-specs li::before {
  content: '▸';
  color: var(--primary-red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--grey-light);
}

.product-card-link {
  color: var(--primary-red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.product-card-link:hover {
  gap: 0.75rem;
}

.product-card-link::after {
  content: '→';
  font-size: 1.2rem;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--grey-light);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
}

.feature-card:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  font-size: 2rem;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--black);
}

.feature-description {
  color: var(--grey-dark);
  font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background-color: var(--primary-red);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-red);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer h5 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-sm);
  padding-right: 212px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--white);
}

.social-icon:hover {
  background-color: var(--white);
  color: var(--primary-red);
  transform: translateY(-3px);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--black);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--grey-medium);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(209, 25, 25, 0.1);
}

.form-control.error {
  border-color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-red {
  color: var(--primary-red);
}

.bg-grey {
  background-color: var(--grey-light);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    background-attachment: scroll;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-lg: 2rem;
  }

  .section {
    padding: var(--spacing-xl) 0;
    background-color: #d9d5d5;
  }
}

/* ===== PRODUCT SLIDER ===== */
.product-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.product-slider-wrapper {
  flex: 1;
  overflow: hidden;
  padding: 0 var(--spacing-xs);
}

.product-slider {
  display: flex;
  gap: var(--spacing-md);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item {
  flex: 0 0 calc(25% - var(--spacing-md));
  min-width: 250px;
  transition: transform 0.3s ease;
}

.slider-item:hover {
  transform: translateY(-5px);
}

/* Navigation Buttons */
.slider-btn {
  background: linear-gradient(135deg, #e01a1a 0%, #f31111 100%);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(127, 186, 0, 0.3);
  transition: var(--transition-normal);
  z-index: 10;
  flex-shrink: 0;
}

.slider-btn:hover {
  background: linear-gradient(135deg, #f54040 0%, #f54040 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 112, 186, 0.4);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-btn span {
  line-height: 1;
  margin-top: -2px;
}

/* Slider Indicators */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--spacing-md);
}

.slider-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.slider-indicator.active {
  background-color: #333;
  transform: scale(1.2);
}

.slider-indicator:hover {
  background-color: #666;
}

/* Product Card Enhancements for Slider */
.slider-item .product-card {
  height: 100%;
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.slider-item .product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

.slider-item .product-card-image {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background-color: #f8f8f8;
  padding: var(--spacing-md);
}

/* Heart Icon for Wishlist */
.product-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 5;
}

.product-wishlist:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.product-wishlist svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #999;
  stroke-width: 2;
}

.product-wishlist.active svg {
  fill: #ff4444;
  stroke: #ff4444;
}

/* Star Rating */
.product-rating {
  display: flex;
  gap: 3px;
  margin: var(--spacing-xs) 0;
  justify-content: center;
}

.product-rating .star {
  color: #ffc107;
  font-size: 0.9rem;
}

.product-rating .star.empty {
  color: #ddd;
}

/* Price Display */
.product-price {
  /* display: flex; */
  gap: var(--spacing-xs);
  align-items: center;
  justify-content: center;
  margin: var(--spacing-sm) 0;
}

.product-price .original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.product-price .current-price {
  color: #7FBA00;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Add to Cart Button */
.slider-item .product-card-footer {
  padding: var(--spacing-sm);
  border-top: none;
}

.slider-item .add-to-cart-btn {
  width: 100%;
  padding: 10px 20px;
  background-color: transparent;
  color: #7FBA00;
  border: 2px solid #7FBA00;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-item .add-to-cart-btn:hover {
  background-color: #7FBA00;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 186, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .slider-item {
    flex: 0 0 calc(33.333% - var(--spacing-md));
  }
}

@media (max-width: 992px) {
  .slider-item {
    flex: 0 0 calc(50% - var(--spacing-md));
  }

  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .product-slider-container {
    gap: var(--spacing-xs);
  }

  .slider-item {
    flex: 0 0 calc(50% - var(--spacing-sm));
    min-width: 200px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    border-radius: 6px;
  }

  .slider-item .product-card-image {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .slider-item {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .product-slider-container {
    gap: 5px;
  }
}

/*Header Section */

.company-title h5 {
  font-size: 20px;
  white-space: nowrap;
}

@media (min-width: 350px) and (max-width: 768px) {
  .navbar-brand {
    flex-direction: column;
    align-items: flex-start;
    width: 276px;
    font-size: 89px;
  }
}

.company-title h5 {
  font-size: 16px;
  margin-top: 5px;
}

/*Top Header Section */
/* Top Header */
.top-header {
  background-color: #03595a;
  color: #ffffff;
  font-size: 14px;
  padding: 25px 0;
}

.top-header-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Items */
.top-header-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

/* Last item ke baad line nahi chahiye */
.top-header-item:last-child {
  border-right: none;
}

.top-header-item a {
  color: #ffffff;
  text-decoration: none;
}

/* Button */
.quote-btn {
  background: #e92222;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s ease;
}

.quote-btn:hover {
  background: #e92222;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .top-header-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/*Video Section Css */

.video-box {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 3rem;
  text-align: center;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  color: #ffffff;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.video-box h5,
.video-box p {
  position: relative;
  z-index: 2;
}

/* Dark Overlay */
.video-box .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Play Icon */
.play-icon {
  position: relative;
  z-index: 2;
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #fff;
  transition: 0.3s ease;
}

.video-box:hover .play-icon {
  transform: scale(1.1);
}

/* Popup */
.video-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.video-popup-content {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.video-popup video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 10px;
  background: #000;
}

/* Close Button */
.close-video {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .video-box {
    min-height: 220px;
    padding: 2rem;
  }
}

/*Header Nav Bar Section  */

/* Navbar menu divider line */
.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  /* line ki height */
  width: 2px;
  /* line ki thickness */
  background-color: #ffffff;
}

/* Last menu item ke baad line remove */
.navbar-nav .nav-item:last-child::after {
  display: none;
}

/* Menu spacing */
.navbar-nav .nav-link {
  padding: 10px 18px;
  color: #fff !important;
  font-weight: 500;
}

/* 🔥 Mobile & Tablet me line hide */
@media (max-width: 991px) {
  .navbar-nav .nav-item::after {
    display: none;
  }
}

/* ===== DROPDOWN MENU STYLES ===== */

/* Dropdown Container */
.navbar-nav .nav-item.dropdown {
  position: relative;
}

/* Hamburger Icon Styling */
.hamburger-icon {
  display: inline-block;
  font-size: 18px;
  margin-right: 6px;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.nav-item.dropdown:hover .hamburger-icon {
  transform: rotate(90deg);
}

/* Dropdown Toggle Arrow */
.dropdown-toggle::after {
  display: none !important;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 320px;
  max-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 0;
  border: none;
  padding-top: 8px;
  /* Visual space without breaking hover */
}

/* Hover pe dropdown show */
.nav-item.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  margin-top: 0;
  display: block !important;
}

/* Scrollable dropdown */
.products-dropdown {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

/* Custom Scrollbar */
.products-dropdown::-webkit-scrollbar {
  width: 6px;
}

.products-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.products-dropdown::-webkit-scrollbar-thumb {
  background: #e92222;
  border-radius: 10px;
}

.products-dropdown::-webkit-scrollbar-thumb:hover {
  background: #c91d1d;
}

/* Dropdown Items */
.dropdown-item {
  padding: 12px 20px;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  white-space: normal;
  line-height: 1.4;
}

.dropdown-item:hover {
  background-color: #fff5f5;
  color: #e92222;
  border-left-color: #e92222;
  padding-left: 24px;
}

.dropdown-item:active {
  background-color: #ffe5e5;
  color: #e92222;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.1);
    min-width: 100%;
    border-radius: 0;
  }

  .nav-item.dropdown:hover .dropdown-menu,
  .dropdown-menu.show {
    max-height: 300px;
  }

  .dropdown-item {
    color: #ffffff;
    border-left: 3px solid transparent;
  }

  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left-color: #ffffff;
  }

  .dropdown-toggle::after {
    float: right;
    margin-top: 4px;
  }
}