/* Global Responsive Overrides */
@media (max-width: 991px) {
  .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  .banner-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .banner-content p {
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 5px;
    color: #000 !important;
  }

  .slick-slider img.banner-img {
    height: 420px;
  }

  .slick-slider .slick-prev,
  .slick-slider .slick-next {
    top: 90%;
  }

  .slick-slider .slick-prev {
    left: 20%;
  }

  .slick-slider .slick-next {
    right: 20%;
  }

  .mugProduct_container {
    margin-top: 0;
  }

  .product-gallery-container {
    margin-top: 4px;
  }

  .mugProduct_container {
    margin-top: 0;
  }
}



@media (max-width: 768px) {
  body {
    font-size: 15px !important;
    /* Reduce from 18px */
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  p {
    font-size: 14px !important;
  }

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

  .common-padd {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Home Page Banner adjustments */


@media (max-width: 576px) {
  .home-banner {
    height: 400px;
    /* Reduced height for mobile */
  }

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

  .banner-content h5 {
    font-size: 0.9rem !important;
  }

  .extra-info {
    display: none;
    /* Hide extra info on very small screens */
  }

  .slick-slider img.banner-img {
    height: 397px;
  }

  /* Slick Slider Overrides */
  .slick-prev,
  .slick-next {
    display: none !important;
    /* Hide arrows on mobile */
  }

  .slick-dots {
    bottom: 10px;
  }
}

/* Product Grid & Cards */
@media (max-width: 576px) {
  .row.g-4 {
    --bs-gutter-y: 1rem;
    /* Reduce vertical gap */
  }

  .product-img-wrapper {
    height: 200px;
    /* Smaller image height */
  }

  .product-card h5 {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  /* Full width buttons on mobile */
  .btn-view-product,
  .btn-customize,
  .btn-theme {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }
}

/* Navbar */
@media (max-width: 991px) {
  .main-header .navbar-brand {
    max-width: 60px;
  }

  .offcanvas-body {
    padding: 20px;
  }

  .main-header .nav-item {
    margin-left: 0 !important;
    margin-bottom: 10px;
  }
}

/* Tables (Admin & Cart) */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
  }

  /* Make tables cleaner on mobile */
  .table th,
  .table td {
    white-space: nowrap;
    font-size: 13px;
    padding: 0.5rem;
  }
}


/* Auth Popup */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 10px;
  }
}

/* Product Page (Mug Product) */
@media (max-width: 991px) {
  .mugProduct_container {
    flex-direction: column;

  }

  .mugProduct_imageContainer,
  .mugProduct_details {
    min-width: 100%;
    padding: 0;
  }

  .mugProduct_details {
    padding-top: 20px;
  }

  /* 3D Preview Scaling for Mobile */
  .mugProduct_images {
    height: 350px;
    /* Reduced height */
  }

  .preview_container {
    transform: scale(0.6);
    /* Scale down further */
    top: -50px;
    left: -30px;
    /* Adjust centering */
    width: 100%;
  }

  .mugProduct_header {
    font-size: 20px;
  }

  .mugProduct_price {
    gap: 5px;
    flex-wrap: wrap;
  }

  .mugProduct_discountPrice {
    font-size: 20px;
  }

  /* Buttons stacking */
  .mugProduct_buttons {
    flex-direction: column;
  }

  .mugProduct_button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .preview_container {
    transform: scale(0.45);
    /* Even smaller for phones */
    top: -80px;
    left: -50px;
  }

  .mugProduct_images {
    height: 300px;
  }
}

/* Cart & Checkout Specifics */
@media (max-width: 768px) {

  /* Stack Order Summary on Checkout */
  .checkout-card,
  .order-summary {
    margin-bottom: 20px;
  }

  /* Make Cart Images smaller on mobile if needed */
  .cart-product img {
    width: 50px !important;
    height: 50px !important;
  }

  .qty-wrapper .qty-btn {
    padding: 2px 8px;
  }

  .qty-input {
    width: 40px !important;
  }
}