/* Info Bar Styles */
.info-bar {
    padding-top: 5px;
    background-color: #AA2233;
    /* Màu đỏ */
    color: #fff;
    /* Màu chữ trắng */
    font-size: 0.9rem;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 40px;
    /* Chiều cao thanh thông tin */
    display: flex;
    align-items: center;
    font-family: "Newsreader", serif;
}

@media (max-width: 768px) {
    .info-bar {
        height: 30px;
        font-size: 3px;

    }

    .info-bar-content img {
        height: 15px;
    }
}

.info-bar-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    /* Hiệu ứng chạy lướt */
    display: flex;
    align-items: center;
}



/* Keyframes for scrolling effect */
@keyframes scroll {
    0% {
        transform: translateX(80%);
        /* Bắt đầu từ bên phải */
    }

    90% {
        transform: translateX(-100%);
        /* Kết thúc khi nội dung chạy hết */
    }

    100% {
        transform: translateX(-100%);
        /* Dừng lại ở cuối */
    }
}






/* Sản phẩm và bộ lọc */
/* Sidebar */
.filter-sidebar {
    padding: 20px;

}

.filter-title {
    font-size: 1.5rem;
    color: #AA2233;
    margin-bottom: 20px;
    font-style: italic;
    font-family: 'Newsreader', serif;
    font-size: 3.2rem;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-subtitle {
    font-size: 1.25rem;
    color: #AA2233;
    border-top: 1px solid #AA2233;
    border-bottom: 1px solid #AA2233;
    font-family: 'Newsreader', serif;
    text-align: center;

    padding-bottom: 5px;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #AA2233;
}

.filter-checkbox {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #AA2233;
    /* Màu checkbox */


}

.filter-checkbox:checked {
    background-color: #AA2233;
}

@media (max-width: 768px) {
    .filter-title {
        font-size: 1.3rem;
        width: 100%;
    }

    .product-filter-section {
        padding-top: 20px !important;
    }

    .filter-sidebar {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;

    }

    .filter-group {
        width: 50%;
        padding: 0 2px;
    }

    .filter-group span {
        font-size: 0.7rem !important;
    }
}



/* Product */
.product-img-product img {
    transition: transform 0.4s ease;
}

.product-img-product:hover img {
    transform: scale(1.05) rotate(-1.5deg);
}


.product-img-product {
    width: 100%;
    height: 313px !important;
}

.product-img-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name-product {
    font-family: 'Newsreader', serif;
    font-size: 24px;
    color: #AA2233;
    font-weight: 500;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.text-muted,
.product-price-product div {
    font-size: 15px !important;
    color: #C79451 !important;
    font-weight: 500;
}

.product-price-product div {
    font-size: 20px !important;
}

.product-card-product button{
    font-size: 16px !important;
}
.product-card-product{
    border-bottom: 2px solid #AA2233;
}
/* ----------------- RESPONSIVE ------------------ */
@media (max-width: 768px) {
    .product-img-product {
        height: 200px !important;
    }

    .product-name-product {
        font-size: 20px;
    }

    .text-muted,
    .product-price-product div {
        font-size: 14px !important;
    }

    .product-price-product div {
        font-size: 18px !important;
    }
}

@media (max-width: 576px) {
    .product-img-product {
        height: 180px !important;
    }

    .product-name-product {
        font-size: 18px;
    }

    .text-muted,
    .product-price-product div {
        font-size: 13px !important;
    }

    .product-price-product div {
        font-size: 16px !important;
    }
}



/* Form search */
.featured-section {
  text-align: center;
  padding: 40px 20px;

}

.subtitle-product-title {
  font-style: italic;
  font-family: 'NewsreaderItalic', serif;
  font-size: 51px;
  color: #aa2233;
  margin-bottom: 10px;
}

.main-title {
  font-size: 75px;
  font-weight: bold;
  color: #aa2233;
  margin-bottom: 30px;
  font-family: 'Newsreader', serif;
}

.search-bar {
  display: inline-flex;
  border: 1px solid #aa2233;
  border-radius: 4px;
  overflow: hidden;
  max-width: 486px;
  width: 100%;
  background-color: #FFF7E6;

}

.search-bar input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 16px;
  outline: none;
  color: #333;
  background-color: #FFF7E6;

}

.search-bar button {
  background: transparent;
  border: none;
  padding: 0 15px;
  color: #aa2233;
  font-size: 18px;
  cursor: pointer;
  background-color: #FFF7E6;
}
@media (max-width: 1024px) {
  .subtitle-product-title {
    font-size: 36px;
  }

  .main-title {
    font-size: 55px;
  }

  .search-bar {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .subtitle-product-title {
    font-size: 28px;
  }

  .main-title {
    font-size: 42px;
  }

  .search-bar input {
    font-size: 14px;
    padding: 8px;
  }

  .search-bar button {
    font-size: 16px;
    padding: 0 12px;
  }

  .search-bar {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .subtitle-product-title {
    font-size: 22px;
  }

  .main-title {
    font-size: 32px;
  }

  .search-bar {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
  }

  .search-bar input {
    padding: 8px;
    font-size: 14px;
  }

  .search-bar button {
    padding: 0 10px;
    font-size: 14px;
  }
}

/* popup product quyendau */

#cartModal {
    display: none;
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

#cartModal.active {
    display: flex;
}

.modal-product {
    width: 90%;
    max-width: 1112px;
    background: #FFF7E6;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    margin: 40px 0;
}

.btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}


.flex-box {
  display: flex;
  gap: 20px;
}

.left-img img {
  width: 506px !important;
  height: 451px !important;
}

.carousel-slide {
  width: 100%;
  max-width: 506px;
  margin: 0 auto;
}

.swiper-slide img {
  width: 100%;
  height: auto;
}

.carousel-slide img {
  width: 100%;
}

.carousel-slide img.active {
  display: block;
}

.right-content {
  width: 50%;
}

.right-content h1 {
  color: #8a1c1c;
  font-size: 37px;
  margin: 0;
  font-weight: 600;
  font-family: 'Newsreader', serif;
}

.subtitle-product {
  font-style: italic;
  color: #aa2233;
  font-size: 25px;
  margin-top: 4px;
  font-family: 'Newsreader', serif;

}

.price-per {
  font-weight: 600;
  color: #c59e59;
  font-size: 30px;
  padding: 10px 0;

}



.status {
  font-weight: 700;
  font-size: 15px;
  padding-top: 5px;
  color: #c59e59;
}

.region-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

.region-label {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #000;
  font-weight: 500;
  cursor: pointer !important;
}

.region-label input {
  display: none;
}

.region-dot {
  width: 18px;
  height: 18px;
  font-size: 15px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: #ddd;
  display: inline-block;
}

.region-label input:checked+.region-dot {
  background-color: #96172e;
}

.section-label {
  font-weight: bold;
  color: #96172e;
  margin-right: 16px;
  font-size: 19px;
}

.qty-section {
  padding: 20px 0;
  border-bottom: 2px solid #AA2233;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #941a1d;
  padding: 5px 0;
  width: fit-content;
}

.quantity-control button {
 font-size: larger;
 padding: 0 5px;
  background: none !important;
  border: none !important;
  font-weight: bold;
  color: #941a1d;
  cursor: pointer !important;
}

.quantity-control input {
  background: none !important;
  border: none !important;
}

.quantity-input {
  width: 120px;
  height: 25px;
  text-align: center;
  border: none;
  background: none;
}

.cart-total-price {
  font-size: 30px;
  color: #C79451;
  font-weight: 700;
}

.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
}

.btn-add,
.btn-buy {
  flex: 1;
  padding: 12px 0;
  text-align: center;
color: white;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  background-color: #AA2233;
  font-size: 14px;
  cursor: pointer !important;
}

.product-details {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.product-details .column {
  flex: 1;
  min-width: 280px;
}

.product-details h3 {
  margin: 16px 0 4px;
  font-size: 16px;
  font-weight: bold;
  color: #96172e;
}

.product-details ul {
  padding-left: 20px;
}

.product-details li {
  margin-bottom: 6px;
}

.row-inline {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.row-inline h3 {
  margin: 0 0 4px;
}

.carousel-dots {
  margin-top: 15px;
  text-align: center;
}

.carousel-dots span {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 4px;
  cursor: pointer !important;
}

.carousel-dots .active {
  background: #8a1c1c;
}

@media (max-width: 991.98px) {
  .modal-product {
    width: 100% !important;
    height: auto !important;
    padding: 16px;
    margin: 0;
  }

  .flex-box {
    flex-direction: column;
    gap: 24px;
  }

  .left-img,
  .right-content {
    width: 100%;
  }

  .left-img img {
    width: 506px !important;
    height: 451px !important;
  }

  .carousel-slide {
    width: 100%;
    max-width: 506px !important;
    margin: 0 auto;
  }


  .price-per,
  .qty-section,
  .btn-row,
  .total-price,
  .section-label,
  .region-group {
    text-align: left;
    align-items: flex-start !important;
  }

  .region-group {
    gap: 12px;
  }

  .btn-row button {
    width: 100%;
  }

  .product-details {
    flex-direction: column;
    gap: 24px;
  }

  .row-inline {
    flex-direction: column;
    gap: 8px;
  }

  .quantity-input {
    width: 100%;
  }
}

/* Responsive: Mobile <style 576px */
@media (max-width: 575.98px) {
  .modal-product {
    padding: 12px;
  }

  .left-img,
  .right-content {
    width: 100%;
  }

  .left-img img {
    width: 386px !important;
    height: 311px !important;

  }

  .carousel-slide {
    width: 100%;
    max-width: 386px !important;
    margin: 0 auto;
  }

  .right-content h1 {
    font-size: 24px;
  }

  .subtitle-product {
    font-size: 18px;
  }

  .price-per {
    display: flex !important;
    font-size: 20px;
  }

  .total-price {
    font-size: 22px;
  }

  .quantity-control {
    flex-direction: row;
    justify-content: space-between;
  }

  .quantity-input {
    width: 100%;
    max-width: 80px;
  }
}


