body {
    margin: 0;
    font-family: Arial, sans-serif; /* Đảm bảo fallback font */
}

#top {
    width: 100%;
    height: 150px;
    background-color: #FFD400;
    display: flex;
    font-family: Arial, sans-serif; /* Xác định rõ font cho #top */
    color: #333; /* Màu chữ mặc định, có thể điều chỉnh */
    font-size: 14px; /* Kích thước phông cơ bản */
}

.top-bar {
    display: flex;
	padding-left: 80px;
    width: 90%;
    margin: auto;
    align-items: center;
    font-family: inherit; /* Kế thừa font từ #top */
}

/* Style cho menu chính */
#mainMenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    padding-top: 15px;
}

#mainMenu li {
    line-height: 48px;
    float: left;
    position: relative;
    margin-left: 10px;
}

#mainMenu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 0 15px;
    transition: color 0.3s;
}

#mainMenu li a:hover {
    color: #e63946;
    cursor: pointer;
}

/* Style cho menu thả xuống */
.sub-menu {
    display: none; /* Ẩn mặc định */
    position: absolute;
    top: 48px;
    left: 0;
    background-color: #FFF;
    min-width: 200px;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    list-style: none; /* Loại bỏ dấu list */
}

.sub-menu li {
    float: none;
    width: 100%;
    list-style: none; /* Loại bỏ dấu list */
}

.sub-menu li a {
    color: #333;
    border-bottom: 1px solid #CCC;
    white-space: nowrap;
    padding: 0 15px;
    list-style: none; /* Loại bỏ dấu list */
}

.sub-menu li a:hover {
    color: #e63946;
    background-color: #f0f0f0;
}

/* Hiển thị menu thả xuống khi hover */
.dropdown:hover .sub-menu {
    display: block;
}
.auth-buttons {
    display: flex !important;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.auth-buttons a {
    flex: 1 1 auto;
    text-align: center;
    min-width: 100px; /* hoặc max-content nếu muốn */
    box-sizing: border-box;
}

@media only screen and (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
        width: 100%;
    }
    #mainMenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        flex-direction: column;
        width: 100%;
        background-color: #FFF;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        line-height: 10px;
    }
    #mainMenu.show {
        max-height: 500px;
        opacity: 1;
        padding: 15px 0;
        z-index: 1000;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 5%;
        top: 18px;
        z-index: 1001;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        color: #e63946;
        transition: transform 0.3s ease, opacity 0.3s ease;
        line-height: 10px;
    }
}
/* Cho Tablet */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .top-bar {
        flex-wrap: nowrap;
        align-items: center;
        gap: 20px;
    }
    #mainMenu li {
        margin-left: 20px;
        white-space: nowrap;
    }
 
    .collections,
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr); /* Chia đôi màn hình */
        gap: 20px;
		z-index: 500
    }
    .collection-card,
    .showcase-item{
        width: 100%;
		z-index: 500
    }
    .section-title {
        font-size: 28px;
        margin-top: 40px;
        margin-bottom: 20px;
		z-index: 500
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-content {
        max-width: 90%;
        left: 5%;
    }
}

/* Cho Mobile */
@media only screen and (max-width: 768px) {
    .collections,
    .showcase-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột trên mobile */
        gap: 20px;
    }
    .collection-card,
    .showcase-item {
        width: 100%;
    }
}

/* Cho Laptop/PC */
@media only screen and (min-width: 1024px){
	.mobile-menu-btn {
	  display: none;
	  background: none;
	  border: none;
	  font-size: 24px;
	  cursor: pointer;
	  color: #333;
	}
}

/* Cho TV */
@media only screen and (min-width: 1280px){
	.mobile-menu-btn {
	  display: none;
	  background: none;
	  border: none;
	  font-size: 24px;
	  cursor: pointer;
	  color: #333;
	}
}

#dangnhap {
    padding: 10px;
    border-radius: 20px;
    background-color: blue;
    color: white;
    border: 1px solid #CCC;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

#dangky{
    padding: 10px;
    margin-left: 30px;
    border-radius: 20px;
    background-color: blue;
    color: white;
    border: 1px solid #CCC;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cart-count {
  background: #e63946;
  color: #fff;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 12px;
  margin-left: 20px;
}

#banner{
    height: 350px;
    width: 100%;
    margin-left: 14px;
    margin-top: 20px;
}

#slideshow-container{
    height: 250px;
    width: 100%;
    position: relative;
    height: 300px;
    z-index: 500; /* Đặt z-index thấp hơn menu */
}

/* Content */
/* Hero Section */
/* Slideshow Hero Section */
.slideshow-container {
    position: relative;
    height: 300px;
}

.slide {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height:100%;
    object-fit: contain;
    filter: brightness(0.7);
}

.slide.fade {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    color: #fff;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 3;
    background-color: rgba(0,0,0,0.2);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

#slideshow {
    width: 100%;
    margin: auto;
}

#slideshow img {
    width: 100%;
    height: 50%;
    object-fit: contain;
    display: block;
}

/* Dots indicator */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #e63946;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20%) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

#chat {
    width: 70px;
    height: 200px;
    position: fixed;
    bottom: 0px;
    right: 10px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 90%
}

#chat a img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}

#chat a img:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        left: 5%;
        padding-right: 5%;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}

/* All button */

/* banner trưng bày thời trang nổi bật */
/* Fashion Showcase Section */
.fashion-showcase {
    padding: 4rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.showcase-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.showcase-item:hover {
    transform: scale(1.02);
}

.showcase-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

.showcase-caption {
    padding: 1.5rem;
    background: white;
}

.showcase-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.showcase-caption p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-item img {
        height: 350px;
    }
}

/* Collections */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 32px;
}

.collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;    
}

.collection-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: black;
}

.collection-card:hover {
    transform: translateY(-10px);
}

.collection-img {
    width: 200px;
    height: auto;          /* Đặt chiều cao cố định phù hợp */
    object-fit: contain;    /* Đảm bảo toàn bộ ảnh hiển thị, không bị cắt */
    border-radius: 8px;
    display: block;
    background-color: #fff; /* Thêm nền trắng nếu ảnh nhỏ hơn khung */
}
.collection-card {
    width: 300px;
	height: auto;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.collection-info {
    padding: 20px;
}

.collection-info h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.collection-info p {
    color: #666;
    margin-bottom: 15px;
}

/* test footer */
#footer {
    background-color: blue;
    color: #fff;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
	margin-left: -20px
}

.footer-column ul {
    list-style: none;
	margin-left: -40px
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #a8dadc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 20px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a8dadc;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Thêm vào giỏ hàng */
.add-to-cart{
    background-color: #e63946;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s;
}

.add-to-cart:hover {
  background-color: #c1121f;
}

.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #e63946;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.toast-message.show {
    opacity: 1;
}