* {
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #242424;
  font-family: 'Montserrat', sans-serif;
}

/* ===== HEADER & NAVIGATION ===== */

.header-container {
  background-color: #0e0e0d;
  padding: 12px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 15px;
}

.logo img {
  height: 70px;
  width: auto;
}

/* Search Bar in Header */
.search-wrapper {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px !important;
  background-color: #1a1a1a !important;
  color: #eae5e3 !important;
  border: 1px solid #9fa3a8 !important;
  border-radius: 20px !important;
  font-size: 0.9rem;
  outline: none !important;
}

.search-input::placeholder {
  color: #6c757d;
}

.search-input:focus {
  border-color: #e97d18 !important;
  box-shadow: 0 0 5px rgba(233, 125, 24, 0.3) !important;
}

.search-icon {
  position: absolute;
  right: 15px;
  color: #9fa3a8;
  pointer-events: none;
}

/* Button Header */
#btnCart {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0e0e0d;
  border: 2px solid #ffffff;
  outline: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#btnCart:hover {
  background-color: #e97d18;
  border-color: #e97d18;
}

.carritoIcon {
  font-variation-settings: 'FILL' 1;
  font-size: 24px;
  color: #ffffff;
  display: inline-block;
  transform-origin: center bottom;
  animation: carritoRebote 1.5s ease-in-out infinite;
}

@keyframes carritoRebote {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-25deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.spanCount {
  font-weight: 900;
  margin-left: 8px;
  color: #e97d18;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background-color: #0e0e0d;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.menu-toggle:hover {
  background-color: #e97d18;
  border-color: #e97d18;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 3;
  }

  .search-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    order: 4;
    margin-top: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  .header-wrapper {
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    flex: 0 0 auto;
    order: 1;
  }

  #btnCart {
    order: 2;
  }
}

/* ===== MOBILE MENU ===== */

.mobile-menu {
  display: none;
  background-color: #1a1a1a;
  padding: 15px;
  border-bottom: 1px solid #333;
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
}

.categories-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0e0e0d;
  color: #eae5e3;
  border: 1px solid #9fa3a8;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.categories-toggle:hover {
  background-color: #e97d18;
  border-color: #e97d18;
  color: #fff;
}

.categories-menu-mobile {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 10px;
  transition: max-height 0.3s ease;
}

.categories-menu-mobile.d-none {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
}

.category-item {
  display: block;
  width: 100%;
  text-align: left;
  background-color: #0e0e0d;
  color: #eae5e3;
  border: 1px solid #333;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-item:hover,
.category-item.active {
  background-color: #e97d18;
  color: #fff;
  border-color: #e97d18;
}

/* ===== DESKTOP CATEGORIES DROPDOWN ===== */

.categories-dropdown-desktop {
  display: block;
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  padding: 10px 0;
}

@media (max-width: 768px) {
  .categories-dropdown-desktop {
    display: none;
  }
}

.dropdown-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  color: #eae5e3;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 150px;
}

.dropdown-toggle-btn:hover {
  color: #e97d18;
}

.dropdown-toggle-btn i {
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.dropdown-toggle-btn.active i {
  transform: rotate(180deg);
}

.categories-menu-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 15px;
  margin-top: 5px;
  transition: max-height 0.3s ease;
}

.categories-menu-desktop.d-none {
  display: none;
}

.desktop-category-btn {
  display: inline-block;
  background-color: #0e0e0d;
  color: #eae5e3;
  border: 1px solid #9fa3a8;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.desktop-category-btn:hover,
.desktop-category-btn.active {
  background-color: #e97d18;
  color: #fff;
  border-color: #e97d18;
}

/* ===== PRODUCTS ===== */

.product-card {
  transition: transform 0.2s;
  height: 100%;
  border: none;
  border-radius: 0;
  background-color: #1a1a1a;
  color: #eae5e3;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(233, 125, 24, 0.3);
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 15px;
}

.product-card .card-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #eae5e3;
}

.product-card .card-text {
  font-size: 0.9rem;
  color: #9fa3a8;
  margin-bottom: 10px;
  flex-grow: 1;
}

.product-stock {
  font-size: 0.85rem;
  color: #e97d18;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-stock.low {
  color: #dc3545;
}

.product-image {
  height: 200px;
  object-fit: cover;
  background-color: #2a2a2a;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e97d18;
}

.product-card .btn-primary {
  background-color: #2a2a2a;
  border-color: #e97d18;
  color: #e97d18;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card .btn-primary:hover {
  background-color: #e97d18;
  color: #fff;
  border-color: #e97d18;
}

.product-card .btn-primary:disabled {
  background-color: #555;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .col-12.col-md-6.col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 600px) {
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .product-card .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* ===== CART & MODAL ===== */

.modal-content {
  background-color: #0e0e0d !important;
  color: #ffffff !important;
  border: none;
}

.cart-item {
  padding: 10px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e97d18;
  background: #0e0e0d;
  color: #e97d18;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.quantity-control button:hover {
  background: #e97d18;
  color: #fff;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

#btnCheckout {
  background-color: #060606;
  border: 1px solid #ffffff;
  outline: none;
}

.cerrarModal {
  background-color: #060606;
  border: 1px solid #ffffff;
  outline: none;
  padding: 13px !important;
}

.font-icon {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* ===== ADVERTISEMENT BANNER ===== */

.advertisement-banner {
  background: linear-gradient(90deg, #0000ff, #000000);
  color: #fbf4f4;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: bold;
  font-size: 0.9rem;
}

.scrolling-text {
  display: flex;
  align-items: center;
  animation: scrollText 15s linear infinite;
}

@media (min-width: 1109px) {
  .scrolling-text {
    animation: scrollTextLarge 20s linear infinite;
  }
}

@media (max-width: 1108px) {
  .scrolling-text {
    animation: scrollTextSmall 15s linear infinite;
  }
}

@keyframes scrollTextLarge {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes scrollTextSmall {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-400%); }
}

.first-p {
  margin-right: 50px;
}

.advertisement-banner i {
  margin-right: 8px;
  color: #fbf4f4;
}

/* ===== FOOTER ===== */

footer {
  background-color: #0e0e0d;
  color: #eae5e3;
  padding: 40px 0 20px;
  margin-top: 60px;
  border-top: 1px solid #333;
}

footer .footer-section {
  margin-bottom: 30px;
}

footer .footer-section h6 {
  color: #e97d18;
  margin-bottom: 15px;
  font-weight: 600;
}

footer .footer-section p {
  font-size: 0.9rem;
  color: #9fa3a8;
  margin: 8px 0;
}

footer .footer-section a {
  color: #e97d18;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-section a:hover {
  color: #d46610;
  text-decoration: underline;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin: 8px 0;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #e97d18;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 2rem;
}

.social-links a:hover {
  background-color: transparent;
  color: #d46610;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-credit {
  text-align: center;
  font-size: 0.9rem;
  color: #9fa3a8;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.xenon-link {
  color: #ff0000;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 800;
}

.xenon-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  footer .row {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  footer .footer-section ul li {
    display: block;
    margin: 10px 0;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  footer .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 60px 40px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
  }

  footer .col-12.col-md-3 {
    flex: none;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .col-12.col-md-3:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  footer .col-12.col-md-3:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  footer .col-12.col-md-3:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  footer .col-12.col-md-3:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  footer .footer-section {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  footer .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer .col-12.col-md-3 {
    flex: none;
    max-width: none;
    text-align: center;
  }
}

/* ===== COOKIE BANNER ===== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #0e0e0d;
  border-top: 3px solid #e97d18;
  border-radius: 8px;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(233, 125, 24, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-height: 120px;
}

.cookie-banner.d-none {
  display: none;
}

.cookie-text {
  flex: 1;
  color: #9fa3a8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-text a {
  color: #e97d18;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cookie-text a:hover {
  color: #d46610;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn.accept {
  background-color: #e97d18;
  color: #fff;
}

.cookie-btn.accept:hover {
  background-color: #d46610;
}

.cookie-btn.reject {
  background-color: #2a2a2a;
  color: #eae5e3;
  border: 1px solid #9fa3a8;
}

.cookie-btn.reject:hover {
  background-color: #3a3a3a;
  border-color: #e97d18;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    bottom: 15px;
    left: 12px;
    right: 12px;
    max-height: none;
    border-radius: 6px;
  }

  .cookie-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}


