 @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
    @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
/* Basic Reset */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  height: 100vh;
}

.top-bar {
  padding: 10px 20px;
  background: #33b5e5;
  text-align: right;
  font-size: 0.9em;
}
.top-bar .cart i {
        margin-right: 5px;
    }

    .top-bar .cart-count {
        background-color: #ff5722;
        color: #fff;
        border-radius: 50%;
        padding: 2px 6px;
        font-size: 12px;
        position: absolute;
        top: -5px;
        right: -10px;
        font-weight: bold;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
        transform: scale(1);
    }

    .top-bar .cart:hover .cart-count {
        transform: scale(1.2);
    }

    /* main-header {
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
    }
.main-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 30px 50px;
        background-color: #d7f5f1de;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    } */

    .logo img {
        height: auto;
        width: 250px;
        max-width: 100%;
        margin-right: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
        margin-left: 20px;
    }


    .contact-cart {
        text-align: right;
    }
    .kh-text {
        font-size: 0.875rem;
        color: var(--secondary-color);
        margin-bottom: 5px;
    }
    .phone {
        font-size: 1rem;
        color: var(--primary-color);
        font-weight: 500;
    }
    .phone i {
        margin-right: 5px;
    }
    .cart {
  position: relative;
  font-size: 22px;
  margin-top: 1px;
  color: #0077b6;
    margin-right: 3%;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: blue;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 1px 6px;
}
.cart:hover .cart-count {
  background-color: red;
  transform: scale(1.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cart i {
  margin-right: 5px;
}
.cart:hover {
  color: #ff5722;
  transition: color 0.3s ease;
}
.cart:hover i {
  transform: rotate(360deg);
  transition: transform 0.3s ease;
}
*/
.search-box {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input[type="search"] {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 25px 0 0 25px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
}
.search-box input[type="search"]:focus {
  outline: none;
  border-color: #55b4da;
}
.search-box button {
  background-color: #55b4da;
  border: none;
  padding: 10px 20px;
  border-radius: 0 25px 25px 0;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.search-box button:hover {
  background-color: #349ecb;
}
/* Make it stack on small screens */
/* Responsive behavior */
@media (max-width: 600px) {
  .search-box {
    flex-direction: row;
    width: 100%;
  }

  .search-box input[type="search"] {
    font-size: 14px;
  }

  .search-box button {
    font-size: 16px;
    padding: 0 12px;
  }
}
/* Cart styles */
.cart {
  position: relative;
  font-size: 22px;
  margin-top: 1px;
  color: #0077b6;
  margin-right: 3%;
}   
.cart i {
  margin-right: 5px;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: blue;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 1px 6px;
}
.cart:hover .cart-count {
  background-color: red;
  transform: scale(1.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cart:hover {
  color: #ff5722;
  transition: color 0.3s ease;
}
.cart:hover i {
  transform: rotate(360deg);
  transition: transform 0.3s ease;
}

/* Top bar cart icon */
.top-bar {
    background: #33b5e5;
    padding: 10px 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.cart {
    position: relative;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.cart-count {
    background: red;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -10px;
    color: white;
}

/* Slide-out cart panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

/* Cart header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

.cart-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Cart content */
.cart-content {
    padding: 16px;
    font-family: 'Khmer OS Battambang', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    overflow-y: auto;
    flex-grow: 1;
}
/* Hover message */
.cart-hover-box {
  position: absolute;
  top: 36px;
  right: 0;
  background: #fff;
  color: #222;
  font-family: 'Khmer OS Battambang', Arial, sans-serif;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
  z-index: 100;
  display: none;
  font-size: 14px;
}

.cart-dropdown:hover .cart-hover-box {
  display: block;
}

/* Cart styles end */

.hero-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* minimum size for cards */
  gap: 12px; /* a bit more breathing room */
  padding: 18px 20px;
}

.category-card {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  padding: 15px; /* inner spacing for content */
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: block;
}

/* .category-name {
  font-weight: 600;
  color: #ff0303;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  padding: 8px;
  text-align: center;
} */


/* Remove list points from all menus */
.menu,
.menu > li,
.dropdown-menu li {
    list-style: none;
}
