/* Navigation Menu */
.menu {
    position: relative;
    z-index: 10;
}

.logo img {
    height: 40px;
    margin: 10px 0;
}

.menu-right {
    border-left: 2px solid white;
    display: flex;
    gap: 5px;
    padding-left: 15px;
}

.menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.menu-content > ul:first-of-type {
    flex-grow: 1;
    justify-content: center;
}

.menu > .menu-content > ul > li {
    position: relative;
}

.menu > .menu-content > ul > li > a {
    display: block;
    color: white;
    text-decoration: none;
    font-variant: small-caps;
    font-size: 16px;
    padding: 0 15px;
    line-height: 60px;
    transition: all 0.3s;
}

.menu > .menu-content > ul > li > a:hover {
    color: #ccc;
}

.menu > .menu-content > ul > li > a.active {
    background: #444;
    border-radius: 4px;
}

.menu > .menu-content > ul > li > a.active:hover {
    color: white;
    text-decoration: underline;
}

/* Dropdown Menu */
.menu ul ul {
    position: absolute;
    display: none;
    width: 200px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.menu ul ul li {
    width: 100%;
}

.menu ul ul a {
    display: block;
    color: black;
    text-decoration: none;
    font-variant: small-caps;
    font-size: 14px;
    padding: 12px 15px;
    line-height: normal;
    text-align: left;
    transition: all 0.3s;
}

.menu > .menu-content > ul > li:hover > ul {
    display: block;
}

.menu ul ul a:hover {
    background: #f8f8f8;
    color: #333;
}

/* Slider */
.slider {
    flex: 1;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    animation: slide-animation 8s infinite;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes slide-animation {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-100%); }
    66%, 91% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* Sidebar Menu */
.menu-aside {
    list-style: none;
    margin-bottom: 20px;
}

.menu-aside a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: url('IMG/Fatcow-Farm-Fresh-Bullet-orange.32.png') no-repeat 15px center;
    background-size: 16px;
    padding-left: 45px;
    transition: all 0.3s;
}

.menu-aside a:hover {
    background-color: #f8f8f8;
    background-image: url('IMG/Fatcow-Farm-Fresh-Bullet-black.32.png');
    color: #333;
    font-weight: 500;
}

/* Product Styles */
.san-pham-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.column {
    flex: 0 0 calc(20% - 12px);
    min-width: 180px;
    max-width: calc(20% - 12px);
    position: relative;
}

.column-hot {
    flex: 1;
    min-width: 250px;
    max-width: calc(33.33% - 10px);
    position: relative;
}

.column-hot .san-pham img {
    height: 280px;
}

.san-pham {
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s;
    height: 100%;
    background: white;
    position: relative;
    overflow: hidden;
}

.phan-tram-giam {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.san-pham:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #ddd;
}

.san-pham .ten {
    font-size: 13px;
    color: #333;
    margin: 8px 0;
    font-weight: 500;
    line-height: 1.3;
}

.san-pham img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.san-pham .gia {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto;
}

.san-pham .gia del {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

/* Nút hành động sản phẩm */
.nut-hanh-dong-san-pham {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s;
}

.san-pham:hover .nut-hanh-dong-san-pham {
    opacity: 1;
    transform: translateY(0);
}

.nut-them-gio,
.nut-mua-ngay {
    flex: 1;
    padding: 8px;
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nut-them-gio {
    background: #dc3545;
}

.nut-them-gio:hover {
    background: #c82333;
}

.nut-mua-ngay {
    background: #28a745;
}

.nut-mua-ngay:hover {
    background: #218838;
}

.column-hot .top {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

.column-hot .top img {
    width: 24px;
    height: 24px;
}


/* Footer columns */
.col3 {
    flex: 1;
    padding: 0 15px;
}

.col3 h3 {
    color: #333;
    margin-bottom: 15px;
}

.col3 p {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.5;
}

.col3 img {
    margin-right: 10px;
    margin-top: 10px;
}

.col3 iframe {
    border-radius: 4px;
}

/* Sidebar styles */
.phan-sidebar {
    background: white;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phan-sidebar h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

/* Sách bán chạy */
.danh-sach-ban-chay {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.muc-ban-chay {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.hinh-ban-chay {
    width: 50px;
    height: 60px;
    object-fit: cover;
}

.thong-tin-ban-chay {
    flex: 1;
}

.ten-ban-chay {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.gia-ban-chay {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
}

/* Khuyến mãi */
.khung-khuyen-mai p {
    margin-bottom: 8px;
    padding: 8px;
    background: #fff8dc;
    border-left: 3px solid #ffc107;
    font-size: 13px;
}

/* Nút hỗ trợ */
.nut-ho-tro {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.nut-ho-tro:hover {
    background: #218838;
}

/* Hỗ trợ khách hàng */
.phan-ho-tro {
    background: white;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tieu-de-ho-tro {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.noi-dung-ho-tro {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}
/* Đường dẫn */
.duong-dan {
    padding: 15px;
    background: white;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.duong-dan a { color: #007bff; text-decoration: none; }

/* Responsive cho cột sản phẩm */
@media (max-width: 1400px) {
    .column {
        max-width: calc(20% - 12px);
    }
}

@media (max-width: 1200px) {
    .column {
        max-width: calc(25% - 12px);
    }
    
    .column-hot {
        max-width: calc(33.33% - 10px);
    }
}

@media (max-width: 900px) {
    .column {
        max-width: calc(33.33% - 12px);
    }
    
    .column-hot {
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .column {
        max-width: calc(50% - 12px);
    }
    
    .column-hot {
        max-width: 100%;
    }
}

