* {
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
      Helvetica, Arial, sans-serif;
  }
  #main-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 98%;
    margin: 5px auto;
    
  }
  .video-text-container {
  display: flex;
  width: 100%;
   background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
/* Both sides take equal width */
.video-section,
.text-section {
  width: 50%;
}
/* Video styling */
.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text styling */
.text-section {
  padding: 20px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
  #main-container > div {
    width: 100%;
    margin: auto;
  }
  #home-pic {
    width: 100%;
    max-height: max-content;
    margin-top: 10px;
  }
  #home-pic:hover {
    cursor: pointer;
    transform: scale(1.04);
  }
  #main-container img {
    cursor: pointer;
  }
  .image {
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #ccc;
  }
  #products_grid1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 10px;
  }
  #products_grid2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    gap: 10px;
  }
  #products_grid1 > div > img,
  #products_grid2 > div > img {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  #products_grid1 > div > img:hover,
  #products_grid2 > div > img:hover {
    transform: scale(1.05);
    overflow: hidden;
  }
  /* crauser styling */
  #crauser_1,
  #crauser_2 {
    width: 100%;
    position: relative;
    margin: auto;
    /* vertical-align: middle; */
  }
  #crauser_1 > img,
  #crauser_2 > img {
    width: 100%;
    margin: auto;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  /* Next & previous buttons */
  .prev,
  .next,
  .prev1,
  .next1 {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px 15px;
    margin-top: -22px;
    color: teal;
    font-size: 18px;
    background-color: transparent;
  }
  .prev,
  .prev1 {
    left: 0;
    border-radius: 3px 0 0 3px;
  }
  .next,
  .next1 {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  #crauser_1 > button:hover,
  #crauser_2 > button:hover {
    background-color: rgba(40, 24, 10, 0.8);
  }
  
  #end-container {
    background-color: #fafbfc;
    margin: 20px auto;
    padding: 2% 5%;
  }
  #table {
    width: 50%;
    text-align: left;
    font-size: 18px;
  }
  #end-container > div:nth-child(2) {
    width: 100%;
    margin: auto;
    line-height: 25px;
    margin-top: 20px;
  }
  #end-container > div:nth-child(2) > h4 {
    margin: 10px auto;
  }
  
  
        /* ----------------------- PRODUCT SECTION ----------------------- */
        .product-grid {
          width: 100%;
          padding: 30px 60px;          /* space from edges */
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* BIGGER cards */
          gap: 30px;
         }

        .product {
                  background: white;
                 border-radius: 14px;
                 padding: 18px;
                 box-shadow: 0 6px 18px rgba(0,0,0,0.12);
                 overflow: hidden;
                  }
        
        .product img {
                      width: 100%;
                      height: 320px;               /* BIGGER image */
                      object-fit: cover;
                      border-radius: 12px;
                      transition: transform 0.35s ease;
                      }
        .product:hover img {
                        transform: scale(1.08);
                      }

        .price {
                font-size: 18px;
                color: #4f46e5;
                font-weight: 700;
                }
        .product h3 {
            font-size: 18px;
            margin-top: 12px;
        }
        .btn { background:#4f46e5; color:white; padding:7px 15px; border-radius:6px; border:none; margin-top:10px; cursor:pointer; }


  .size {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
    margin-bottom: 5px;
}



.hero1 {
  height: 100vh;
  background: url('asset/hand_tufted/home.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  text-align: center;
  color: white;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.hero-text button {
  padding: 14px 40px;
  background: white;
  border: none;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
}




.categories1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 80vh;
}

.category1 {
  position: relative;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

/* Bottom-centered overlay */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* move to bottom */
  align-items: center;         /* center horizontally */
  padding-bottom: 40px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0)
  );
  color: white;
  transition: background 0.4s ease;
}

.overlay h2 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.overlay button {
  padding: 12px 34px;
  background: white;
  border: none;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
}

@media (max-width: 768px) {

  /* HERO */
  .hero1 {
    height: 90vh; /* better for mobile address bar */
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 32px;
    letter-spacing: 2px;
    line-height: 1.2;
  }

  .hero-text button {
    padding: 12px 28px;
    font-size: 12px;
  }

  /* CATEGORIES GRID */
  .categories1 {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .category1 {
    height: 50vh;
  }

  .overlay {
    padding-bottom: 25px;
  }

  .overlay h2 {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .overlay button {
    padding: 10px 26px;
    font-size: 11px;
  }
}


  
  
  
  @media (max-width: 768px) {
  .video-text-container {
    flex-direction: column;
  }

  .video-section,
  .text-section {
    width: 100%;
  }
    .product-grid {
    padding: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .product img {
    height: 240px;
  }

  .section-title {
    font-size: 22px;
    padding: 15px 20px;
  }
}
