* {
  box-sizing: border-box;
}

body { 
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; 
    color: #495857;
    margin: 0;
    padding: 0;
}

.navbar-main {
    background-color: #f6f1f3;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgb(160, 160, 160);
    height: 65px;
    padding: 0 15px;
}

.navbar-main .nav-link {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    color: #212529;
    padding: 15px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.navbar-main .nav-link:hover {
    border-bottom-color: hsl(273, 77%, 88%);
    color: hsl(273, 77%, 88%);
}

.product-card img{ 
    height: 450px;
    object-fit: cover; 
}

.shop-badge { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
}

footer a{ 
    text-decoration: none; 
}

.detail {
    min-height: 400px;
}

.detail-big {
    width: 100%;
    height: 850px;
    padding: 10px;
}

.detail-small {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.detail-big img {
    width: 100%;
    height: 100%;
}

.detail-small:hover {
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.35);
    transform: scale(0.95);
}

.detail-text {
    width: 100%;
    height: 500px;
    padding: 30px;
    font-family: 'Roboto', sans-serif;
    gap: 10px;
}

.detail-text p {
    gap: 10px;
}

.detail-mua {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: right;
}

.mua {
    background-color: hsl(278, 75%, 74%);
}

.container-mota {
    width: 100%;
    height: 100%;
    text-align: left;
    margin-top: 30px;
}

.text-center {
    margin-top: 30px;
}

.img-fluid {
    width: 80%;
    height: 95%;
}

.card-img-top {
    width: auto;
    height: 550px;
}

.navbar {
    background-color: #f6f1f3;
}

.main-news img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.news-title {
    color: #2b7a58;
}

.side-news img {
    width: 450px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.news-card:hover, .side-news:hover {
    transform: translateY(-3px);
    transition: 0.3s;
}

.cart-item img {
    width: 100px;
    border-radius: 5px;
}

.card-login {
    backdrop-filter: blur(6px);
    background-color: rgba(255,255,255,0.85);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.brand-logo {
    max-height: 60px;
}

.or-separator {
    display:flex; 
    align-items:center; 
    gap:.8rem; 
    color:#6c757d;
}

.or-separator::before, .or-separator::after {
    content:''; 
    flex:1; 
    height:1px; 
    background: #dee2e6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    padding: 10px 15px;
}

.search-input-group .btn-secondary-custom {
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
}

.button {
    text-align: center;
    margin: 5px 0 5px 0;
    padding: 10px;
}

button {
    min-height: 50px;
    width: 100px;
}

.navbar-main {
    background-color: rgb(160, 160, 160);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgb(160, 160, 160);
    height: 65px;
}

.navbar-main .nav-link {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    color: #212529;
    padding: 15px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.navbar-collapse {
    transition: all ease;
}

.navbar-collapse.show {
    position: static;
    background-color: rgb(160, 160, 160);
    display: block;
}

.post-card img {
    border-radius: 10px;
}

.category-list li {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dotted #ccc; 
}

.category-list li:last-child {
    border-bottom: none;
}

.search-box input {
    border-radius: 8px 0 0 8px;
}

.search-box button {
    border-radius: 0 8px 8px 0;
    background-color: #f44336;
    color: white;
}

.sidebar-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.post-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.pagination .page-item.active .page-link {
    background-color: rgb(138, 138, 138);
    border-color: rgb(138, 138, 138);
    color: #fff;
}

@media (max-width: 1200px) {
  .container {
      width: 95%;
  }

  .product-card img {
      height: 300px; 
  }

  .detail-big {
      height: auto;
  }

  .detail-small {
      flex-direction: column;
      height: auto;
  }

  .card-img-top {
      height: 400px;
  }

  .navbar-main {
      padding: 0 10px;
  }

  .navbar-main .nav-link {
      padding: 10px 15px;
  }

  .navbar-collapse.show {
      background-color: rgb(160, 160, 160);
  }

@media (max-width: 768px) {
  .navbar-main {
      height: 55px;
  }

  .navbar-main .nav-link {
      font-size: 12px;
      padding: 10px 15px;
  }

  .product-card img {
      height: 250px;
  }

  .detail-big {
      height: auto;
  }

  .detail-text {
      padding: 20px;
  }

  .detail-small {
      flex-direction: column;
  }

  .container-mota {
      margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .navbar-main .nav-link {
      font-size: 12px;
      padding: 8px 10px;
  }

  .product-card img {
      height: 200px;
  }

  .hinh1 img, .hinh2 img, .hinh3 img {
      width: 100%;
      height: auto;
  }

  .detail-text {
      padding: 10px;
  }

  .container {
      width: 100%;
      padding: 0 10px;
  }

  .sidebar-card {
      padding: 15px;
  }
}

.small-img {
    cursor: pointer;
    transition: transform 0.2s;
}

.small-img:hover{
    transform: scale(1.05);
}}