body {
      background: url('../bg-cooking.jpg') no-repeat center center fixed;
      background-size: cover;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      padding-top: 115px;
    }

    /* Highlight favorite heart icons */
    .favorite-btn.favorited i {
      color: #e63946 !important;
    }
    
    /* Expanded categories panel toggle animation */
    .expanded-categories-grid {
      display: none;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 15px;
      margin-top: 15px;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
    }

    .expanded-categories-grid.show {
      display: grid !important;
      opacity: 1;
    }

    /* Top Header & Navigation Layout */
    .top-header {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .cat-box-container {
      background-color: #ffffff;
      border: 2px solid #fce4ec;
      border-radius: 20px;
      padding: 7px 7px 5px 7px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
    }

    .cat-grid-row {
      display: flex;
      gap: 10px;
      margin-bottom: 8px;
    }

    .category-box-card {
      width: 135px !important;
      height: 75px !important;
      background: #ffffff;
      border: 1.5px solid #f3e5f5;
      border-radius: 14px;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      cursor: pointer;
      text-decoration: none;
      box-sizing: border-box;
      padding: 6px;
      transition: all 0.2s ease-in-out;
    }

    .more-toggle-card {
      width: 135px !important;
      height: 75px !important;
      background: #ffffff;
      border: 1.5px dashed #ad1457;
      border-radius: 14px;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-sizing: border-box;
      padding: 6px;
      transition: background 0.2s;
    }

    .cat-icon {
      font-size: 18px;
      margin-bottom: 3px;
      color: #ad1457;
    }

    .cat-label {
      font-size: 12px;
      font-weight: 500;
      color: #333333;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 120px;
      font-family: 'Poppins', sans-serif;
    }

    @media screen and (max-width: 1024px) {
      body {
        padding-top: 100px;
        overflow-x: hidden;
      }

      .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
      }

      .top-header {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 15px !important;
        align-items: stretch;
        box-sizing: border-box;
      }

      .search-bar-container, .time-filter-container, .top-fav-btn {
        width: 100% !important;
        height: 60px !important;
        margin: 0 !important;
        box-sizing: border-box;
      }

      .search-bar-container input, .time-filter-container input {
        width: 100%;
        height: 60px !important;
        box-sizing: border-box;
        font-size: clamp(13px, 1.5vw, 16px);
      }

      .cat-box-container {
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
      }

      .cat-grid-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin: 0 !important;
      }

      .category-box-card, .more-toggle-card {
        width: 100% !important;
        height: 70px !important;
      }

      .expanded-categories-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 8px;
      }

      .top-fav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .recipe-section {
        width: 100%;
        padding: 0;
        margin-top: 25px;
        box-sizing: border-box;
      }

      .recipe-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
      }

      .recipe-card {
        width: 100%;
        box-sizing: border-box;
      }

      .image-container {
        width: 100%;
        height: 220px;
        position: relative;
      }

      .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .card-body {
        width: 100%;
        box-sizing: border-box;
      }
    }

    @media screen and (max-width: 768px) {
      body {
        padding-top: 85px;
      }

      .main-content {
        padding: 0 12px;
      }

      .top-header {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0 !important;
      }

      .search-bar-container, .time-filter-container, .top-fav-btn {
        height: 55px !important;
      }

      .search-bar-container input, .time-filter-container input {
        height: 55px !important;
        font-size: clamp(13px, 3.5vw, 15px);
      }

      .cat-grid-row, .expanded-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .category-box-card, .more-toggle-card {
        height: 68px !important;
      }

      .recipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .category-flex-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-bottom: 15px;
      }

      .image-container {
        height: 180px;
      }
    }

    @media screen and (max-width: 480px) {
      body {
        padding-top: 75px;
      }
      .top-header{
        margin: 10px;
      }

      .cat-grid-row, .expanded-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
      }

      .category-box-card, .more-toggle-card {
        height: 62px !important;
      }

      .recipe-grid {
        grid-template-columns: 1fr;
      }
    }
    


/* ================================
   RECIPE ACTION ICONS
   Chef 🧑‍🍳 + Favourite ❤️
   ================================ */

.recipe-action-icons {
    position: absolute;
    top: 12px;
    right: 12px;

    display: flex;
    align-items: center;
    gap: 7px;

    z-index: 10;
}

/* Chef 🧑‍🍳 and Favourite ❤️ buttons */
.recipe-action-icons button {
    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);

    transition: all 0.3s ease;
}

/* Favourite heart */
.recipe-action-icons .favorite-btn {
    position: static;
    margin: 0;
}

.recipe-action-icons .favorite-btn i {
    font-size: 18px;
    color: #d35252;
}

/* Chef emoji */
.recipe-action-icons .chef-btn {
    position: static;
    margin: 0;

    font-size: 20px;
    line-height: 1;
}

/* Hover effect */
.recipe-action-icons button:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 15px rgba(211, 82, 82, 0.25);
}
    
