﻿/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Basic Styles */
body {
    background-color: #f5f5f5;
}

#page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
    position: inherit;
}

/* Header Styles */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: #33def3;
}

.logo img {
    height: 60px;
    margin-left: 10px;
}

.search-container {
    flex: 0 1 500px;
    display: flex;
    gap: 10px;
}

#search {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #33def3;
    border-radius: 25px;
    font-size: 16px;
}

.search-btn {
    background: white;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #333;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}
#cart-details {
    display: none;
    position: absolute; /* Quan trọng để đè lên */
    left: -500px; /* Gắn về bên trái icon */
    top: 100%; /* Đặt ngay dưới icon */
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 600px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 999;
    border-radius: 8px;
    padding: 10px;
  }
  
.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 12px;
}
#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
  }
#cart-items li{
    border-bottom:1px solid #333 ;
    padding-bottom: 5px;
}
#checkout {
    background-color: #33def3;
    float: right;
    width: 80px;
    height: 20px;
    text-decoration: none;
    font-size: 15px;
    text-align: center;
}
#checkout::after{
    content: "";
    text-decoration: none;
    color: #e91e63;
}
.auth-links {
    display: flex;
    gap: 5px;

}

.auth-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    margin-right: 5px;
}

.auth-links a:hover {
    color: black;
    text-decoration: underline;
}

/* Main Menu */
.main-menu {
    background: #f8f9fa;
    padding: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    list-style: none;
}
  
.main-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #33def3;
    transition: width 0.3s;
  }
  
.main-menu a:hover::after {
    width: 100%;
  }
  
  /* Submenu styles */
  .has-submenu{
    position: relative;
    padding-top: 5px;
  }
.submenu {
    display: none;
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: #f8f9fa;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 160px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
.submenu li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
  }
  
.submenu li a:hover {
    background-color: #33def3;
    color: white;
  }
.has-submenu:hover .submenu {
    display: block;
  }
/* Product Grid */
.section-title {
    width: 70%;
    height: 100%;
    background-color: #fa8807;
    color: white;
    padding: 25px;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    border-top-right-radius:50px ;
    border-bottom-right-radius:50px ;
}
.section-title:hover{
    animation:alternate 0.5ms;
    width: 100%;
    border-radius: 0;
}
.head-title{
    width: 100%;
    height: 70px;
    background-color: #ffffff;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.product-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    max-width: 200px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 15px;
}
.price {
    color: #e91e63;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.add-to-cart {
    background: #33def3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 998;
}

.add-to-cart:hover {
    background: #1fbcd4;
}

 /* Footer */
.footer {
    background: #1fbcd4;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    color: #33def3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #444;
}
.noibat {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

.scrolling-content {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}
.scrolling-content:hover{
    animation-play-state: paused;
}

.sanpham {
  display: flex;
}

.sanpham span {
  display: inline-block;
  padding: 0 40px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
#services {
    display: flex;
    justify-content: space-around;
    padding: 20px 5px;
    background-color: #eee;
}
.new-products {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.new-products h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;

}
.featured-products {
    margin-top: 20px;
    background: #fff;
    padding: 30px 0;
    overflow: hidden;
}

.featured-products h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.featured-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 10px;
}

.scrolling-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-horizontal 60s linear infinite;
}

.scrolling-wrapper:hover {
    animation-play-state: paused;
}

.featured-scroll::-webkit-scrollbar {
    display: none;
}

@keyframes scroll-horizontal
{
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.featured-products .product-item {
    min-width: 220px;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.featured-products .product-item:hover {
    transform: translateY(-5px);
}
#fast-contact{
    position: fixed;
    bottom: 50px;
    right: 50px;
}
#fast-contact li{
    display: flex;
    height: 50px;
    width: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    background-color:#f38633;
    border: 1px #33def3;
    border-radius: 20%;
}
.banner img{
    width: 100%;
    object-fit: contain;
}
