/* Responsive Styles */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-banner {
    height: 350px;
  }

  .hero-text-container {
    margin-left: 0;
    text-align: center;
    padding: 1rem;
  }

  .hero-text-container h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .offer-card {
    height: 200px;
  }

  .offer-content h3 {
    font-size: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .newsletter-content {
    padding: 1.5rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-banner {
    height: 400px;
  }

  .hero-text-container h1 {
    font-size: 2.5rem;
  }

  .offer-card {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .product-image-container,
  .category-image-container {
    height: 180px;
  }

  .carousel-control-prev {
    left: -10px;
  }

  .carousel-control-next {
    right: -10px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-text-container {
    margin-left: 10%;
  }
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
  .mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-menu-wrapper.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1051;
    overflow-y: auto;
    transition: all 0.3s ease;
    padding: 20px;
  }

  .mobile-menu.active {
    left: 0;
  }

  .mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }

  .mobile-menu-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
  }

  .mobile-menu-nav {
    margin-bottom: 20px;
  }

  .mobile-menu-nav .nav-item {
    margin-bottom: 10px;
  }

  .mobile-menu-nav .nav-link {
    font-size: 16px;
    color: #333;
    padding: 8px 0;
    display: block;
  }

  .mobile-menu-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  /* Cart icon for mobile */
  .mobile-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  /* Hide desktop elements on mobile */
  .desktop-only {
    display: none !important;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .mobile-only {
    display: none !important;
  }

  /* Simple icons without borders */
  .icon-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .icon-btn:hover {
    color: var(--color-primary-dark);
  }
}
