/* ========================
   Root Variables
======================== */
:root {
  --primary: #da3732;
  --primary-light: rgba(218, 55, 50, 0.1);
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
               0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================
   Reset & Global Styles
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ========================
   Header & Navbar
======================== */
.header {
  background: linear-gradient(90deg, #f9f9f9, #ffffff);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.header.shrink {
  padding: 10px 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500;
  padding: 12px 18px;
  position: relative;
  transition: all 0.3s ease;
  background: transparent !important;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-link.manual-active {
  color: var(--primary) !important;
  font-weight: 600;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after,
.navbar-nav .nav-link.manual-active::after {
  width: 80%;
}

/* Dropdown */
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 5px;
}

.dropdown-item {
  padding: 10px 20px;
  color: #333 !important;
  background: transparent !important;
  border: none !important;
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--primary) !important;
  color: #fff !important;
}

.navbar-nav .dropdown-toggle.nav-link::after {
  display: none !important;
}

/* Desktop Hover */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block;
  }

  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item.dropdown:hover > .nav-link {
    color: var(--primary) !important;
  }

  .nav-item.dropdown:hover > .nav-link::after {
    width: 80%;
  }
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    z-index: 999;
    margin-top: 1rem;
    border-top: 1px solid #eee;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    box-shadow: none;
    border: none;
    background: #f8f9fa !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
  }

  .dropdown-item {
    padding-left: 2rem !important;
    border-bottom: 1px solid #e9ecef;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-toggle::after {
    float: right;
    margin-top: 0.5rem;
  }
}

/* Toggler */
.navbar-toggler {
  border: none;
  background: transparent !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(218, 55, 50, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================
   Footer
======================== */
.footer {
  background: #222;
  color: #fff;
  padding: 60px 0 20px 0;
  font-family: "Segoe UI", sans-serif;
}

.footer h5 {
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
}

.footer-brand {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.footer-brand span {
  color: var(--primary);
}

.footer-links li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-social a {
  display: inline-block;
  margin-right: 10px;
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s;
}

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

/* Mobile Footer Accordion + stacked columns */
@media (max-width: 767px) {
  /* Make all footer columns full width */
  .footer .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer .col-md-2,
  .footer .col-md-3,
  .footer .col-md-4,
  .footer .col-6,
  .footer .col-12 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Accordion titles */
  .footer h5 {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
  }

  .footer h5::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    color: var(--primary);
    font-size: 16px;
  }

  /* Hide links initially */
  .footer .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* Show links when active */
  .footer .footer-links.show {
    max-height: 500px;
  }

  /* Rotate arrow when active */
  .footer h5.active::after {
    transform: translateY(-50%) rotate(180deg);
  }
}


/* ========================
   Slider Cards
======================== */
.slider-container {
  max-width: 1000px;
  margin: 50px auto;
  overflow: hidden;
  position: relative;
  padding: 0 10px;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-in-out;
}

.card {
  flex: 0 0 calc(33.333% - 20px);
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 30px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.card-content {
  padding: 15px;
  text-align: center;
}

.card-content h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #333;
}

.card-content p {
  font-size: 14px;
  color: #666;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.2s;
}

.slider-button:hover {
  background: #b72e28;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@media (max-width: 768px) {
  .slider-track {
    gap: 15px;
  }

  .card {
    flex: 0 0 85%;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  }

  .card img {
    max-height: 180px;
    border-radius: 20px;
  }

  .card-content h3 {
    font-size: 16px;
  }

  .card-content p {
    font-size: 13px;
  }

  .slider-button {
    display: none;
  }
}

/* ========================
   Product Cards
======================== */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.product-content {
  padding: 1rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-model,
.product-description,
.product-price,
.product-rating {
  font-size: 0.8rem;
  color: var(--gray-600);
}

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

.btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex: 1;
  justify-content: center;
  min-height: 44px;
}

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

.btn-primary:hover {
  background: #c53030;
  transform: translateY(-1px);
}

/* ========================
   Responsive Grid
======================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 481px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1025px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ========================
   Stats & Misc
======================== */
.stats-bar {
  background: white;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-item p {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.8rem;
}

/* ========================
   Touch / Accessibility
======================== */
@media (hover: none) {
  .product-card:hover,
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

.btn:focus-visible,
.product-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


