* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }

  header {
    width: 100%;
  }

body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffff;
    font-weight: 400;
    color: #333;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;;
}

a {
    text-decoration: none;
    color: #ccc;
}

.main-contain {
    max-width: 100%;
    padding: 20px;
}

/* Top Header */

.top-header {
    background: rgb(53, 52, 52);
}

.top-header .main-contain {
    display: flex;
    justify-content: space-between;
}

.left-list ,.right-list {
    display: flex;
    gap: 30px;
}

.main-contain .nav-link:hover {
    color: tomato;
}

/* Foot Header */
.foot-header .main-contain {
    display: flex;
    justify-content: space-between;
}

.foot-header {
    text-align: left;
    background-color: black;
}

.foot-header .logo{
    font-size: 3rem;
}

.foot-header .logo:hover{
    color: tomato;
    transition: 0.5s;
}

.logo {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}

/* SEARCH */
.search-box {
    display: flex;
    width: 40%;
    max-width: 500px;
    border-radius: 8px;
    background: #fff;
  border: 1px solid transparent;
  overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    border-radius: 0
}

.search-box button {
    padding: 10px 20px;
    border: none;
    background: #ff4d4d;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.search-box button:hover {
    background: #e63939;
}

/* ICONS */
.header-icons {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.icon-item {
    position: relative;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    
}

.icon-item:hover {
    color: #ff4d4d;
    transform: scale(1.2);
    transition: 0.3s;
  }

.icon-item .count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff4d4d;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}
.header-icons .desc {
    font-size: small;
    margin-left: -20px;
    color: #cfd2dc;
}

.header-icons .desc:hover{
    color: tomato;
    transition: 0.5s;
}

.search-bar{
    border-radius: 8px;
    margin-right: 10px;
}

.btn {
    border-radius: 8px;
}
/* Product */

.container-title {
    margin-top: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.product-container {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}


.product-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e53935;
    margin-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  
  .product-image {
    transition: transform 0.3s ease;
    object-fit: cover;
    margin-bottom: 20px;
  }
  
  .product-card:hover .product-image {
    transform: scale(1.05);
  }

.buy-btn {
    text-align: center;
    padding: 12px;
    background: #ff5722;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: #e64a19;
}

.product-container .product-image {
    border-radius: 8px;
    margin-bottom: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fotter */

.footer {
    background: linear-gradient(135deg, #0f1117, #1a1d25);
    color: #cfd2dc;
    padding: 50px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 1px;
}

.footer p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer ul li a {
    color: #cfd2dc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: #ff4d4d;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-item span {
    color: #ff4d4d;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

@media (max-width: 768px) {

    /* HEADER */
    .top-header .main-contain,
    .foot-header .main-contain {
      flex-direction: column;
      gap: 15px;
      align-items: center;
      text-align: center;
    }
  
    .left-list,
    .right-list {
      flex-direction: column;
      gap: 10px;
    }
  
    /* LOGO */
    .foot-header .logo {
      font-size: 2rem;
    }

  
    /* SEARCH */
    .search-box {
      width: 100%;
      max-width: 100%;
    }
  
    .search-box input {
      font-size: 16px;
    }
  
    /* ICONS */
    .header-icons {
      gap: 20px;
      flex-wrap: wrap;
    }
  
    .header-icons .desc {
      margin-left: 0;
      text-align: center;
    }
  
    /* PRODUCT GRID */
    .product-container {
      grid-template-columns: 1fr;
      padding: 0 10px;
    }
  
    .product-card {
      padding: 15px;
    }
  
    /* FIX IMAGE VỠ */
    .product-container .product-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
  
    /* FOOTER */
    .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .contact-item {
      justify-content: center;
    }
  }