/* --- Large Screens & Tablets (Max 1024px) --- */
@media (max-width: 1024px) {
    html body {
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    }

    * {
    max-width: 100%; 
    }
    .product-grid {
        display: block;
        text-align: center;
    }
    .product-card {
        display: inline-block;
        width: 45%; 
        margin: 15px;
        text-align: left;
        vertical-align: top;
    }
    
    .room-inspiration {
        display: block;
        padding: 50px 5%;
        text-align: center;
    }
    .inspiration-text {
        display: block;
        padding-right: 0;
        margin-bottom: 40px;
    }
    .inspiration-carousel {
        display: block;
        text-align: center;
    }
    .third-slide {
        display: none !important; 
    }
}















/* --- Tablets & Small Laptops (Max 991px) --- */
@media (max-width: 991px) {
    html body {
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    }

    * {
    max-width: 100%; 
    }
    .navbar {
        padding: 20px 5%;
    }
    .nav-links a {
        margin: 0 10px;
    }
    .hero {
        display: block;
        padding: 60px 5%;
        text-align: center;
    }
    .hero-content {
        display: inline-block;
        margin-top: 0;
        max-width: 80%; 
        text-align: left; 
    }
    .browse-range, .our-products, .footer {
        padding: 50px 5%;
    }
    .related-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .desc-tab-btn {
                font-size: 18px;
            }

    .place-order-btn { 
        width: 100%; 
    }
}











/* --- Mobile Landscape & Small Tablets (Max 768px) --- */
@media (max-width: 768px) {
    html body {
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    }

    * {
    max-width: 100%; 
    }
    .navbar {
        display: block;
        text-align: center;
        padding: 20px 10px;
        position: relative; 
    }
    .logo {
        display: block;
        margin-bottom: 15px;
    }
    .logo .logoname, .nav-icons {
        display: none;
    }
    .nav-links {
        display: none; 
    }
    .menu-bar {
        display: block; 
        position: absolute;
        top: 25px;
        right: 20px;
        cursor: pointer;
    }
    .hero-content {
        display: block;
        max-width: 100%;
        padding: 40px 25px;
    }
    .hero-content h1 {
        font-size: 32px; 
        margin-bottom: 15px;
    }
    .hero-content p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .cards-container {
        display: block;
        text-align: center;
    }
    .card {
        display: inline-block;
        width: 45%; 
        margin: 10px;
    }
    .product-card {
        display: block; 
        width: 100%;
        margin: 0 0 30px 0;
    }
    .room-inspiration::before {
        display: none !important;
    }
    .room-inspiration {
        display: block; 
        padding: 40px 10px;
        text-align: center;
        background-color: #FCF8F3; 
        width: 100%; 
        box-sizing: border-box; 
    }
    .inspiration-text {
        display: block;
        margin: 0 auto 30px auto; 
        padding: 0;
    }
    .inspiration-carousel {
        display: block; 
    }
    .slide .side-slide .third-slide {
        display: block !important; 
        width: 100%;
        margin-top: 0;
        margin-bottom: 25px; 
    }
    .slide img .side-slide img .third-slide img {
        width: 100%;
        height: auto;
        display: block;
    }
    .slide-content {
        left: 15px;
        right: 15px; 
        bottom: 15px;
        padding: 20px;
        width: auto;
        text-align: left; 
    }
    .slide-arrow {
        right: 0; 
    }
    .carousel-controls {
        display: block; 
        position: static; 
        margin-top: 20px;
        text-align: center; 
    }
    .dots {
        display: inline-block; 
        vertical-align: middle; 
        margin-right: 20px;
    }
    .dot {
        display: inline-block; 
        vertical-align: middle; 
        margin: 0 5px;
        position: relative; 
    }
    .dot.active .dot-inner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); 
    }
    .next-btn {
        display: inline-flex; 
        justify-content: center; 
        align-items: center; 
        position: static; 
        vertical-align: middle; 
    }
    .setup-text h2 {
        font-size: 32px;
    }
    .footer-content {
        display: block;
    }
    .footer-col {
        display: block;
        margin-bottom: 40px;
    }
    .footer-col h2 .footer-col h4 {
        margin-bottom: 20px;
    }
    .newsletter-col form {
        display: block;
    }
    .newsletter-col input {
        display: block;
        width: 100%; 
        margin-bottom: 15px;
    }
    .newsletter-col button {
        display: inline-block;
    }

  #home-explore-btn {
    display: block;          
    margin: 0 auto;          
    width: fit-content;      
  }

#cards-home-index {
    display: flex;              
    justify-content: center;  
    align-items: center;       
    flex-direction: column;   
    margin: 0 auto;             
    width: fit-content;        
  }
  /* Contact Section Container */
  #contact-section-main {
    padding: 40px 20px;
  }

  #contact-container {
    padding: 0;
  }

  /* Title and Description */
  #contact-heading {
    font-size: 28px;
    line-height: 36px;
  }

  #contact-description {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  /* Layout: Stack Columns */
  #contact-layout {
    flex-direction: column;
    align-items: center;
  }

  /* Info Column */
  #contact-info-column {
    width: 100%;
    text-align: center;
    align-items: center;
    gap: 30px;
  }

  .contact-info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info-item img {
    margin-bottom: 10px;
  }

  /* Form Column */
  #contact-form-column {
    width: 100%;
    margin-top: 40px;
  }

  #contact-form {
    width: 100%;
    padding: 0 10px;
  }

  .contact-input,
  .contact-textarea {
    width: 100%;
    font-size: 0.95rem;
  }

  /* Submit Button */
  #contact-submit-btn {
    display: flex;
    justify-content: center;
  }

  #contact-submit-btn .submit-btn {
    width: fit-content;
    padding: 10px 30px;
    margin: 0 auto;
  }


/* Contact Info Items */
  .contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px; 
  }

  .contact-info-item img {
    display: block;
    margin: 0 auto 8px auto; 
    width: 28px; 
    height: auto;
  }

  .info-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .info-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Submit Button */
#contact-submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #contact-submit-btn .submit-btn {
    margin: 0 auto;
    transform: translateX(10px); 
    width: fit-content;
    padding: 10px 35px;
    border-radius: 6px;
  }

 @media (max-width: 768px) {

  /* Product Section Container */
  #product-main-section {
    padding: 50px 10px;
  }

  #product-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Gallery */
  #product-gallery {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #product-thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .thumb-img {
    width: 65px;
    height: auto;
    border-radius: 6px;
  }

  #product-main-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-product-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }

  /* Product Info */
  #product-info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 25px;
    padding: 0 15px;
  }

  /* Title and Price */
  .product-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
  }

  /* Stars and Review */
  #product-review-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
  }

  .stars img {
    width: 18px;
    height: 18px;
  }

  .review-count {
    font-size: 0.9rem;
    color: #777;
  }

  /* Description */
  #product-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0 auto 20px auto;
    max-width: 90%;
  }

  /* Size and Color Options */
  #product-size-box,
  #product-color-box {
    text-align: center;
    margin-bottom: 20px;
  }

  .option-label {
    font-weight: 600;
    margin-bottom: 8px;
  }

  .size-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 4px;
  }

  .color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
  }

  /* Quantity and Buttons */
  #product-action-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
  }

  #product-qty-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .qty-input {
    width: 50px;
    text-align: center;
  }

  /* Buttons */
  #btn-add-cart,
  #btn-compare {
    display: block;
    width: 100%;
    max-width: 380px;
    padding: 14px 0;
    font-size: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 0 auto;
  }

  #btn-add-cart {
    background-color: #B88E2F;
    color: #fff;
    border: none;
  }

  #btn-compare {
    background-color: transparent;
    border: 2px solid #B88E2F;
    color: #B88E2F;
  }

  #btn-add-cart:hover,
  #btn-compare:hover {
    opacity: 0.9;
  }

/* Cart Totals Box */
 #cards-home-indexy {
    width: 100%;             
    padding: 0;             
    display: flex;
    justify-content: center;  
  }

.cart-totals-box {
    width: 95%;               
    max-width: 500px;        
    margin: 0 auto;          
    padding: 25px 20px;    
    border-radius: 10px;     
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
  }

.checkout-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    text-align: center;
  }


  /* Meta Block Mobile Alignment Fix */
#product-meta-container {
    margin: 0 auto;
    width: fit-content;
    text-align: left;
}
.meta-value-custom {
    text-align: left !important;
}
        
}












/* --- Mobile Phones (Max 480px) --- */
@media (max-width: 480px) {
    html body {
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    }

    * {
    max-width: 100%; 
    }
    .hero-content {
        padding: 30px 20px;
    }
    .hero-content h1 {
        font-size: 26px;
    }
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .card {
        display: block;
        width: 100%; 
        margin: 0 0 20px 0;
    }
    .setup-text p {
        font-size: 16px;
    }
    .setup-text h2 {
        font-size: 26px;
    }

    .sidebar-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .sidebar-widget {
        width: 100%;
        max-width: 320px; /* Keeps the lists tight and centered */
        margin: 0 auto;
    }
    .related-grid { grid-template-columns: 1fr; }
            .qty-actions { flex-wrap: wrap; gap: 12px !important; }
            .btn-add-cart, .btn-compare { width: 100%; justify-content: center; }
}


        @media (max-width: 500px) {
            .shopping-cart-static {
                width: 100%;
                padding: 20px;
            }
        }
