/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Hero Section Heading - Reduced Size */
#billboard h1.section-title {
  font-size: 2rem;
}

@media (min-width: 768px) {
  #billboard h1.section-title {
    font-size: 2.25rem;
  }
}

/* Base Mobile Styles */
@media (max-width: 767.98px) {
  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Typography */
  h1 {
    font-size: 1.75rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
  h4 {
    font-size: 1.1rem !important;
  }
  h5 {
    font-size: 1rem !important;
  }

  /* Header/Navbar */
  .navbar {
    padding: 0.75rem 0.5rem !important;
  }

  .navbar-brand img,
  .navbar-logo {
    max-height: 50px !important;
  }
  
  /* Brand Name Styling - Mobile */
  .brand-name {
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
  }
  
  /* Brand name size on medium screens - reduced to fit in one line */
  .brand-name {
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
  }
  
  /* Even smaller on extra small screens */
  @media (max-width: 575.98px) {
    .brand-name {
      font-size: 0.75rem !important;
      letter-spacing: 0.5px !important;
    }
  }
  
  /* Very small screens - make it even smaller */
  @media (max-width: 400px) {
    .brand-name {
      font-size: 0.65rem !important;
      letter-spacing: 0.3px !important;
    }
  }
  
  .brand-name:hover {
    color: #d9d577 !important;
    text-shadow: 2px 2px 6px rgba(217, 213, 119, 0.5) !important;
  }
  
  /* Keep logo, brand name, and menu button in one row on small screens */
  .navbar .row {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    height: 100% !important;
    position: relative !important;
  }
  
  .navbar .col-auto:first-child {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    height: 100% !important;
  }
  
  .navbar .col-auto:last-child {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    height: 100% !important;
  }
  
  /* Ensure menu button aligns properly */
  .navbar .col-auto:last-child button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Center brand name on small screens - perfectly centered */
  .navbar .col-auto.flex-grow-1 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 0 !important;
    flex: 1 1 0% !important;
    overflow: hidden !important;
    height: 100% !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
  }
  
  /* Ensure brand name aligns with menu button height */
  .navbar .col-auto.flex-grow-1 .brand-name {
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }
  
  /* Ensure navbar items stay in one line */
  .navbar .container-fluid {
    overflow: hidden !important;
  }
  
  .navbar .row {
    width: 100% !important;
    margin: 0 !important;
  }

  .navbar .col-3 {
    flex: 0 0 auto;
    width: auto;
  }

  /* Offcanvas menu */
  .offcanvas {
    width: 85% !important;
  }

  /* Homepage Billboard */
  #billboard .container {
    padding: 1rem;
  }

  #billboard h1.section-title {
    font-size: 1.5rem !important;
    margin-top: 1rem !important;
  }

  #billboard .col-md-6 {
    padding: 0 10px;
  }

  #billboard p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Categories Section */
  .categories .col-md-4 {
    margin-bottom: 1.5rem;
  }

  .categories .cat-item .image-holder img {
    height: 250px !important;
  }

  /* Product Carousel */
  .product-carousel {
    padding: 2rem 0 !important;
  }

  .product-carousel .container {
    padding: 0 15px;
  }

  .product-carousel h4 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem;
  }

  .product-carousel .btn-link {
    font-size: 0.85rem;
  }
  
  /* Product Slider Cards */
  .product-swiper .swiper-slide {
    height: auto;
    display: flex;
  }
  
  .product-swiper .swiper-slide .product-slider-card {
    width: 100%;
  }
  
  .product-swiper .swiper-slide .product-slider-card .image-holder {
    aspect-ratio: 3/4;
    min-height: 200px;
  }
  
  .product-swiper .swiper-slide .product-slider-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Hide navigation arrows on mobile */
  .product-carousel .icon-arrow {
    display: none !important;
  }
  
  /* Adjust pagination on mobile */
  .product-swiper .swiper-pagination {
    position: relative;
    margin-top: 1rem;
  }

  /* Features Section */
  .features .col-md-3 {
    margin-bottom: 2rem;
    padding: 0 15px;
  }

  .features .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .features h4 {
    font-size: 1rem !important;
    margin: 1rem 0;
  }

  .features p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  /* Collection Section */
  .collection .col-md-6 {
    margin-bottom: 1rem;
  }

  .collection-content {
    padding: 2rem 1rem !important;
    margin: 0 !important;
  }

  .collection-content h3 {
    font-size: 1.25rem !important;
  }

  /* Collection Pages */
  .collection-header-image {
    max-height: 200px !important;
  }

  .collection-title {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  .collection-description {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }

  .collection-count {
    font-size: 0.85rem !important;
  }

  .collection-page-title {
    font-size: 1.5rem !important;
  }

  .collection-page-description {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }

  .collection-card-image {
    height: 200px !important;
  }

  .collection-card-title {
    font-size: 0.95rem !important;
  }

  .collection-card-description {
    font-size: 0.85rem !important;
    line-height: 1.4;
  }

  .collection-card-count {
    font-size: 0.8rem !important;
  }

  /* Product Cards */
  .product-item {
    margin-bottom: 1.5rem;
  }
  
  /* Horizontal layout on small screens - Updated for larger image */
  .product-item .image-holder {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    height: 220px !important;
    display: block !important;
  }
  
  .product-item .image-holder > a {
    width: 100% !important;
    height: 100% !important;
    display: block;
    position: relative;
  }

  .product-item .product-image {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
    border-radius: 6px;
  }
  
  .product-item .sale-ribbon-above,
  .product-item .sale-ribbon {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
  }
  
  .product-item .wishlist-form,
  .product-item .btn-wishlist {
    position: absolute;
    z-index: 10;
  }
  
  .product-item .product-content {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 0 0.5rem 0 !important;
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 220px !important;
  }
  
  .product-item .product-content h5 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.4 !important;
  }
  
  .product-item .product-description {
    margin-top: 0 !important;
  }
  
  /* Wishlist button on small screens */
  .product-item .btn-wishlist {
    width: 28px !important;
    height: 28px !important;
    top: 8px !important;
    right: 8px !important;
  }
  
  .product-item .btn-wishlist svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  /* Add to Cart Button on Mobile */
  .product-item .product-content a[data-after] {
    display: block;
    margin-top: 0.25rem;
    margin-bottom: 0;
  }
  
  .product-item .product-content a[data-after]::after {
    content: attr(data-after) !important;
    display: block !important;
    width: 100% !important;
    padding: 0.4rem 0.6rem !important;
    background-color: #d9d577 !important;
    color: #36251d !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    margin-top: 0.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transform: none !important;
    position: static !important;
    transition: background-color 0.3s ease !important;
    left: auto !important;
  }
  
  .product-item .product-content a[data-after]:hover::after {
    background-color: #c4c168 !important;
  }
  
  .product-item .product-content a[data-after] > * {
    transform: none !important;
  }
  
  /* Vertical layout on medium screens and up */
  @media (min-width: 768px) {
    .product-item .image-holder {
      display: block;
    }
    
    .product-item .image-holder > a {
      width: 100%;
    }
    
    .product-item .product-image {
      height: 250px;
      width: 100%;
    }
    
    .product-item .product-content {
      width: 100%;
      padding-left: 0;
      padding-top: 1rem;
    }
  }

  /* Product Name - Reduced Size */
  .product-item .product-content h5,
  .product-item .product-content h5.element-title,
  .product-item .product-content h5 a {
    font-size: 0.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
  }

  /* Product Prices in Sliders - Reduced Size */
  .product-item .product-content .product-price-wrapper {
    font-size: 0.7rem !important;
    margin-top: 0 !important;
  }

  .product-item .product-content .product-price-original {
    font-size: 0.65rem !important;
  }

  .product-item .product-content .product-price-sale {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
  }

  .product-item .product-content .product-price-regular {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
  }

  .product-item .product-content .discount-badge {
    font-size: 0.5rem !important;
    padding: 1px 2px !important;
    margin-left: 0.2rem !important;
  }

  /* Sale Ribbon Above - Small corner badge on mobile */
  .product-item .sale-ribbon-above {
    font-size: 0.5rem !important;
    padding: 3px 6px !important;
    top: 4px !important;
    left: 4px !important;
    right: auto !important;
    width: auto !important;
    max-width: 50px !important;
    min-width: 35px !important;
    letter-spacing: 0.15px !important;
    line-height: 1 !important;
    border-radius: 3px !important;
  }
  
  /* Sale Ribbon for Desktop (if shown on smaller screens) */
  .product-item .sale-ribbon {
    font-size: 0.65rem !important;
    padding: 6px 10px !important;
    top: 6px !important;
    left: 6px !important;
    min-width: 45px !important;
  }

  /* Footer */
  #footer {
    padding: 2rem 0 !important;
  }

  #footer .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  #footer .col-md-3,
  #footer .col-sm-6 {
    margin-bottom: 1.5rem;
    padding: 0 10px;
  }

  #footer .footer-intro {
    margin-bottom: 1rem !important;
  }

  #footer .footer-intro img {
    max-height: 60px !important;
  }

  #footer .footer-menu p {
    font-size: 0.75rem !important;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  #footer .widget-title {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }

  #footer .menu-list {
    font-size: 0.75rem !important;
  }

  #footer .menu-item {
    margin-bottom: 0.5rem;
  }

  #footer .menu-item a {
    font-size: 0.75rem !important;
  }

  #footer .social-links ul {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  #footer .social-links svg {
    width: 20px !important;
    height: 20px !important;
  }

  #footer .border-top {
    padding: 1rem 0 !important;
  }

  #footer .shipping,
  #footer .payment-option {
    margin-bottom: 1rem !important;
  }

  #footer .shipping span,
  #footer .payment-option span {
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
  }

  #footer .shipping img,
  #footer .payment-option img {
    max-height: 28px !important;
  }

  #footer .border-top p {
    font-size: 0.75rem !important;
  }

  #footer .footer-contact-text {
    font-size: 0.75rem !important;
    line-height: 1.5;
  }

  /* Product Index Page - Filters */
  .filter-sidebar {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 2rem;
    padding: 1rem !important;
  }

  /* Mobile Filter Button */
  .btn-outline-primary {
    border-color: #36251d;
    color: #36251d;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
  }

  .btn-outline-primary:hover {
    background-color: #36251d;
    color: #fff;
    border-color: #36251d;
  }
  
  .btn-outline-primary svg {
    width: 16px !important;
    height: 16px !important;
    margin-right: 6px !important;
  }
  
  .btn-outline-primary .badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    margin-left: 0.5rem !important;
  }

  /* Offcanvas Filter Sidebar */
  .offcanvas-start {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .offcanvas-body .filter-sidebar {
    padding: 0 !important;
    margin: 0 !important;
  }

  .offcanvas-body .filter-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
  }

  .offcanvas-body .filter-section:last-child {
    border-bottom: none;
  }

  .filter-header {
    padding: 0.5rem 0 !important;
  }

  .filter-header h6 {
    font-size: 0.85rem !important;
  }

  .filter-option {
    padding: 0.5rem !important;
    margin-bottom: 0.375rem !important;
  }

  .filter-option label {
    font-size: 0.875rem;
  }

  .price-range {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .price-range input {
    width: 100% !important;
  }

  .price-range span {
    text-align: center;
  }

  /* Product Show Page */
  .product-gallery {
    margin-bottom: 1.5rem;
  }

  .product-gallery .main-image img {
    max-height: 400px !important;
  }

  .product-gallery .thumbnail-images {
    gap: 0.5rem !important;
  }

  .product-gallery .thumbnail-images img {
    width: 60px !important;
    height: 60px !important;
  }

  .product-title {
    font-size: 1.15rem !important;
    line-height: 1.3;
  }

  /* Product Show Page - Price Sizes */
  .product-details .product-price-original {
    font-size: 0.9rem !important;
  }

  .product-details .product-price-sale {
    font-size: 1.1rem !important;
  }

  .product-details .product-price-regular {
    font-size: 1rem !important;
  }

  .product-details .product-save-badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* Related Products Slider */
  .related-products {
    padding: 2rem 0 !important;
  }

  .related-products h4 {
    font-size: 1.1rem !important;
  }

  .related-products .icon-arrow {
    display: none !important;
  }

  .product-details h1 {
    font-size: 1.5rem !important;
  }

  .product-details .fs-4 {
    font-size: 1.25rem !important;
  }

  .product-details .fs-2 {
    font-size: 1.5rem !important;
  }

  /* Tables */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
    white-space: nowrap;
  }

  /* Buttons */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  /* Forms */
  .form-control,
  .form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  /* Modals */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-content {
    border-radius: 0.5rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-footer .btn {
    width: 100%;
    margin: 0 !important;
  }

  /* Payment Modal */
  .payment-method-select {
    margin-bottom: 1rem;
  }

  #accountDetails {
    margin-bottom: 1rem;
  }

  #accountDetails .card-body {
    padding: 1rem !important;
  }

  #accountDetails code {
    font-size: 1rem !important;
    word-break: break-all;
  }

  /* Cart Offcanvas */
  .offcanvas-end {
    width: 100% !important;
  }

  /* Swiper Navigation */
  .icon-arrow {
    display: none !important;
  }

  .swiper-pagination {
    position: relative !important;
    margin-top: 1rem;
  }

  /* Pagination */
  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pagination .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Active Filter Badges */
  .active-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* Quantity Input */
  .input-group {
    width: 100% !important;
  }

  .quantity-input-product {
    width: 60px !important;
  }

  /* Order Pages */
  .order-card {
    margin-bottom: 1rem;
  }

  .order-card .card-body {
    padding: 1rem;
  }

  /* Search Popup */
  .search-popup {
    padding: 1rem;
  }

  .search-popup .form-control {
    font-size: 1rem;
    padding: 0.75rem;
  }

  /* WhatsApp Sticky */
  .whatsapp-sticky {
    width: 50px !important;
    height: 50px !important;
    bottom: 15px !important;
    right: 15px !important;
  }

  .whatsapp-icon {
    width: 24px !important;
    height: 24px !important;
  }

  /* Footer - Extra Small */
  #footer {
    padding: 1.5rem 0 !important;
  }

  #footer .footer-intro img {
    max-height: 50px !important;
  }

  #footer .footer-menu p {
    font-size: 0.7rem !important;
  }

  #footer .widget-title {
    font-size: 0.85rem !important;
  }

  #footer .menu-list,
  #footer .menu-item a {
    font-size: 0.7rem !important;
  }

  #footer .social-links svg {
    width: 18px !important;
    height: 18px !important;
  }

  #footer .shipping img,
  #footer .payment-option img {
    max-height: 25px !important;
  }

  #footer .border-top p {
    font-size: 0.7rem !important;
  }

  #footer .footer-contact-text {
    font-size: 0.7rem !important;
  }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  #billboard h1.section-title {
    font-size: 1.25rem !important;
  }

  .navbar-brand img,
  .navbar-logo {
    max-height: 40px !important;
  }

  .product-item .image-holder {
    flex: 0 0 140px !important;
    width: 140px !important;
    min-width: 140px !important;
    height: 200px !important;
  }
  
  .product-item .product-image {
    height: 100% !important;
    width: 100% !important;
  }
  
  .product-item .product-content {
    height: 200px !important;
    padding-bottom: 0.5rem !important;
  }
  
  .product-item .product-content h5 {
    font-size: 0.9rem !important;
    margin-bottom: 0.35rem !important;
  }

  /* Even smaller text for product cards on extra small screens */
  .product-item .product-content h5,
  .product-item .product-content h5.element-title,
  .product-item .product-content h5 a {
    font-size: 0.55rem !important;
    margin-top: 0.3rem !important;
    line-height: 1.1 !important;
  }

  .product-item .product-content .product-price-wrapper {
    font-size: 0.55rem !important;
    margin-top: 0.15rem !important;
  }

  .product-item .product-content .product-price-original {
    font-size: 0.5rem !important;
  }

  .product-item .product-content .product-price-sale {
    font-size: 0.6rem !important;
  }

  .product-item .product-content .product-price-regular {
    font-size: 0.55rem !important;
  }
  
  /* Add to Cart Button on Extra Small Screens */
  .product-item .product-content a[data-after] {
    margin-top: 0.2rem !important;
  }
  
  .product-item .product-content a[data-after]::after {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.5rem !important;
    margin-top: 0.2rem !important;
  }

  .product-item .product-content .discount-badge {
    font-size: 0.45rem !important;
    padding: 1px 2px !important;
    margin-left: 0.15rem !important;
  }

  .product-item .sale-ribbon-above {
    font-size: 0.45rem !important;
    padding: 2px 5px !important;
    top: 3px !important;
    left: 3px !important;
    right: auto !important;
    width: auto !important;
    max-width: 45px !important;
    min-width: 30px !important;
    letter-spacing: 0.1px !important;
    line-height: 1 !important;
    border-radius: 2px !important;
  }
  
  /* Sale Ribbon for Desktop (if shown on smaller screens) */
  .product-item .sale-ribbon {
    font-size: 0.6rem !important;
    padding: 5px 8px !important;
    top: 5px !important;
    left: 5px !important;
    min-width: 40px !important;
  }
  
  /* Filter Button - Extra Small Screens */
  .btn-outline-primary {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.75rem !important;
  }
  
  .btn-outline-primary svg {
    width: 14px !important;
    height: 14px !important;
    margin-right: 4px !important;
  }
  
  .btn-outline-primary .badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.3rem !important;
    margin-left: 0.4rem !important;
  }

  .collection-header-image {
    max-height: 180px !important;
  }

  .collection-title {
    font-size: 1.25rem !important;
  }

  .collection-description {
    font-size: 0.85rem !important;
  }

  .collection-count {
    font-size: 0.8rem !important;
  }

  .collection-page-title {
    font-size: 1.25rem !important;
  }

  .collection-page-description {
    font-size: 0.85rem !important;
  }

  .collection-card-image {
    height: 180px !important;
  }

  .collection-card-title {
    font-size: 0.85rem !important;
  }

  .collection-card-description {
    font-size: 0.8rem !important;
  }

  .filter-sidebar {
    padding: 0.75rem !important;
  }

  .product-gallery .main-image img {
    max-height: 300px !important;
  }

  .product-title {
    font-size: 1rem !important;
    line-height: 1.3;
  }

  .product-details .product-price-original {
    font-size: 0.85rem !important;
  }

  .product-details .product-price-sale {
    font-size: 1rem !important;
  }

  .product-details .product-price-regular {
    font-size: 0.95rem !important;
  }

  .product-details .product-save-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.4rem !important;
  }

  .related-products h4 {
    font-size: 1rem !important;
  }
  
  /* Product Slider Cards - Extra Small */
  .product-swiper .swiper-slide .product-slider-card .image-holder {
    aspect-ratio: 3/4;
    min-height: 150px;
  }
  
  .product-carousel h4 {
    font-size: 1.1rem !important;
  }
  
  .product-carousel .btn-link {
    font-size: 0.75rem !important;
  }

  .modal-dialog {
    margin: 0.25rem;
  }

  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .filter-sidebar {
    position: relative !important;
    top: 0 !important;
  }

  .product-gallery .main-image img {
    max-height: 500px !important;
  }

  .features .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Utility Classes for Mobile */
@media (max-width: 767.98px) {
  .mobile-hide {
    display: none !important;
  }

  .mobile-show {
    display: block !important;
  }

  .mobile-text-center {
    text-align: center !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-mb-2 {
    margin-bottom: 0.5rem !important;
  }

  .mobile-mb-3 {
    margin-bottom: 1rem !important;
  }

  .mobile-p-2 {
    padding: 0.5rem !important;
  }

  .mobile-p-3 {
    padding: 1rem !important;
  }
}

/* Fix for horizontal scroll */
@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row > * {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Touch-friendly targets */
@media (max-width: 767.98px) {
  a,
  button,
  .btn,
  input[type="submit"],
  input[type="button"],
  .form-control,
  .form-select {
    min-height: 44px;
  }

  .filter-option {
    min-height: 44px;
  }
}
