  /* ================= ROOT ================= */
  :root {
    --primary-color: #8B5a2b;
    --secondary-color: #D2B48C;
    --bg-color: #ecebea;
    --text-dark: #33211e;
    --text-light: #F5F5F5;
    --accent-color: #3f2d24;
    --radius: 16px;
    --navbar-height: 30px;
  }

  /* ================= BASE ================= */
  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
  }

  /* Homepage Section Wood Aesthetic Override (Avoid bright whites) */
  section.bg-white {
    background-color: #edeae6 !important;
  }

  #categories {
    background-color: #fffefd !important; /* Warm wood caramel tone */
  }

  h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
  }

  /* ================= NAVBAR ================= */
  .navbar {
    background: rgba(212, 206, 200, 0.749) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(94, 89, 89, 0.5);
    transition: all 0.3s ease;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.6rem;
  }

  .nav-link {
    color: var(--text-dark) !important;
  }

  .nav-link:hover {
    color: var(--primary-color) !important;
  }

  /* ================= BUTTONS ================= */
  .btn-primary-wooden {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.25);
    transition: all 0.3s ease;
  }

  .btn-primary-wooden:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4);
    color: #fff;
  }

  .btn-outline-wooden {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .btn-outline-wooden:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.25);
    transform: translateY(-2px);
  }

  /* ================= PRODUCT CARD ================= */
  .card-wooden {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .card-wooden:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  }

  .card-img-wrapper {
    height: 240px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
  }

  .card-wooden:hover img {
    transform: scale(1.05);
  }

  /* BODY */
  .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    padding: 15px;
  }

  /* TEXT */
  .card-title {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .card-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 8px 0;
    min-height: 40px; /* FIX ALIGNMENT */
  }

  /* PRICE + BUTTON */
  .card-bottom {
    margin-top: auto;
  }

  .card-price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
  }

  /* ================= PRODUCT MODAL ================= */
  .product-main-img {
    width: 100%;
    max-width: 380px;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
  }

  .thumbnail-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .thumbnail-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
  }

  .thumbnail-img.active,
  .thumbnail-img:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }

  /* ================= CATEGORY ================= */
  .category-card {
    text-align: center;
    cursor: pointer;
  }

  .category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
  }

  .category-card:hover img {
    transform: scale(1.05);
  }

  .category-card h5 {
    margin-top: 10px;
    font-weight: 600;
  }

  /* ================= CART ================= */
  .cart-badge {
    position: absolute;
    top: 0;
    right: -5px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 12px;
  }

  .nav-cart-wrapper {
    position: relative;
    cursor: pointer;
  }

  /* ================= FLOATING CART ================= */
  .floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    z-index: 1050;
  }

  .floating-cart.show {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .floating-cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .floating-cart-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex-grow: 1;
  }

  .floating-cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
  }
  .cart-item:last-child {
    border-bottom: none;
  }
  .cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
  }
  .cart-item-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
  }
  /* ================= HERO SECTION ================= */
  .hero-section {
    position: relative;
    background: 
      radial-gradient(circle at center, rgba(62, 39, 35, 0.35) 0%, rgba(46, 28, 12, 0.75) 100%),
      url('media/Carousel_image/carousel_result.webp');
    background-size: cover;
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Fluid height to completely prevent vertical scrollbar on initial load */
    min-height: calc(100vh - var(--navbar-height, 72px));
    width: 100%;
    
    /* Perfect centering with Flexbox */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Responsive padding to balance heights gracefully */
    padding: clamp(2rem, 5vh, 6rem) 5%;
    overflow: hidden;
    box-sizing: border-box;
    
    /* Hardware-accelerated smooth transitions */
    transition: min-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                padding 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  /* ================= HERO BUTTON POSITION ================= */

  .hero-section {
    position: relative;
  }

  .hero-section .container {
    position: relative;
    height: 100%;
  }

  /* Mobile */
  @media (max-width: 768px) {
    .hero-section .fade-in {
      bottom: 20px;
    }

    .hero-section .btn {
      padding: 10px 20px;
      font-size: 0.9rem;
    }
  }

  .hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    
  }

  /* Hide empty headings to prevent layout shifts/unequal gaps */
  .hero-section h1:empty,
  .hero-section .lead:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 0 16px; /* Bounding padding to prevent touching edges */
    /* Fluid scaling without distortion using viewport width and bounding clamps */
    max-width: clamp(230px, 42vw + 4rem, 600px);
    max-height: 55vh; /* Expanded height threshold to prevent aspect ratio clipping */
    /* Physical depth styling to blend logo naturally with wooden wall */
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
    transition: max-width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  /* CTA Button Container for proper layering and transitions */
  .hero-section .fade-in {
  position: absolute;

  /* exact center horizontally */
  left: 170;
  transform: translateX(-50%);

  /* move button upward */
  bottom: 100px;

  z-index: 5;

  display: flex;
  justify-content: center;

  width: auto;
  margin: 0 !important;
}
.hero-section .container {
  position: relative;
  min-height: 80vh;
}
  .hero-section .btn {
    margin: 0 !important; /* Managed by container gap now */
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  /* ================= HERO RESPONSIVE BREAKPOINTS ================= */

  /* Large Desktop (1440px and up) */
  @media (min-width: 1440px) {
    .hero-section {
      min-height: calc(100vh - var(--navbar-height, 72px));
      padding: 80px 5%;
    }
    .hero-logo {
      max-width: 700px;
      max-height: 60vh;
    }
    
  }

  /* Laptop / Desktop (1024px) */
  @media (max-width: 1024px) {
    .hero-section {
      min-height: calc(100vh - var(--navbar-height, 72px));
      padding: 70px 4%;
    }
    .hero-logo {
      max-width: 520px;
      max-height: 55vh;
    }
    .hero-section .container {
      
    }
  }

  /* Tablet (768px) */
  @media (max-width: 768px) {
    .hero-section {
      min-height: calc(100vh - var(--navbar-height, 58px));
      padding: 50px 4%;
    }
    .hero-logo {
      max-width: 400px;
      max-height: 50vh;
    }
    .hero-section .btn {
      padding: 12px 28px;
      font-size: 0.95rem;
    }
    .hero-section .container {
      
    }
  }

  /* Mobile (480px) */
  /* Mobile (480px) */
  @media (max-width: 480px) {

    .hero-section {
      min-height: calc(100vh - var(--navbar-height, 58px));

      padding: 20px 4%;
      background-position: top center;
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      background-attachment: scroll;

      align-items: center;
      justify-content: center;
    }

    .hero-logo {
      max-width: clamp(240px, 92vw, 340px);
      max-height: 40vh;
      padding: 0;
    }

    .hero-section .btn {
      padding: 10px 22px;
      font-size: 0.9rem;
    }

  }
  /* Small Mobile Devices (320px) */
  @media (max-width: 320px) {
    .hero-section {
      min-height: calc(100vh - var(--navbar-height, 58px));
      padding: 30px 4%;
    }
    .hero-logo {
      max-width: 90vw;
      max-height: 42vh;
      padding: 0 8px;
    }
    .hero-section .btn {
      padding: 8px 20px;
      font-size: 0.85rem;
    }
    .hero-section .container {
      gap: 1rem;
    }
  }
  /* ================= FOOTER ================= */
  footer {
    background: var(--text-dark);
    color: var(--secondary-color);
  }

  footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  footer a:hover {
    color: #fff;
    text-decoration: none;
  }

  /* ================= RESPONSIVE MEDIA QUERIES ================= */

  /* Tablet & Smaller Laptops */
  @media (max-width: 992px) {
    .card-img-wrapper {
      height: 200px;
    }
    
    .category-card img {
      height: 180px;
    }
  }

  /* Mobile Devices */
  @media (max-width: 768px) {
    :root {
      --navbar-height: 58px;
    }
    .navbar {
      padding-top: 8px;
      padding-bottom: 8px;
    }

    .navbar-brand {
      font-size: 1.4rem;
    }
    
    .card-img-wrapper {
      height: 180px;
    }
    
    .category-card img {
      height: 160px;
    }

    .floating-cart {
      width: 300px;
      bottom: 15px;
      right: 15px;
    }
  }

  /* Small Mobile Devices */
  @media (max-width: 576px) {
    .card-img-wrapper {
      height: 200px; /* slightly larger for single column */
    }

    /* Make floating cart act as a bottom sheet on small screens */
    .floating-cart {
      width: 100%;
      bottom: 0;
      right: 0;
      border-radius: var(--radius) var(--radius) 0 0;
      max-width: 100vw;
    }
  }
  .discover-btn{  
      background: linear-gradient(135deg, #84654e, #c09c81);
      color: #f0eeea;
      border: none;
      padding: 12px;
      border-radius: 12px;
      font-weight: 600;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .discover-btn:hover{
      background: linear-gradient(135deg, #9a7b60, #5C3A21);
      color: white;
      transform: translateY(-2px);
  }
  /* .cart-header{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
  }

  .cart-header h4{
      margin: 0;
      color: #5C3A21;
      font-weight: 700;
  } */

  .cart-x-btn{
      background: #ff3b30;
      color: white;
      border: none;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      font-size: 22px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .cart-x-btn:hover{
      background: #d62828;
      transform: scale(1.1);
  }