/*
Theme Name: An Nhiên Premium
Description: Theme B2B chuyên nghiệp cho thảo dược
Author: Ngoc Tan Tran
Version: 1.0
*/
/* Reset cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #FDFDFC; /* Nền trắng ngọc trai tối giản */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Cấu trúc chính */
.page-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.left-column {
    flex: 0 0 35%;
    padding-right: 50px;
}

.right-column {
    flex: 1;
}

/* --- XỬ LÝ HEADER, LOGO VÀ HIỆU ỨNG GIỎ HÀNG --- */
.header-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    width: fit-content; /* Chỉ kích hoạt hover khi chuột ở vùng logo/giỏ hàng */
}

.logo {
    font-family: 'Playfair Display', serif; /* Phông chữ Serif sang trọng thay thế */
    font-size: 3.5rem;
    font-weight: 600;
    font-style: italic;
    color: #A64E9A; /* Màu tím logo */
    cursor: pointer;
    transition: text-shadow 0.4s ease, transform 0.4s ease;
}

.cart-icon {
    display: flex;
    align-items: center;
    margin-left: 20px;
    color: #4a4a4a;
    
    /* Trạng thái ẩn ban đầu */
    opacity: 0;
    transform: translateX(-20px);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng nảy nhẹ */
}

/* Hiệu ứng khi Hover vào khu vực Header */
.header-container:hover .logo {
    text-shadow: 0px 0px 15px rgba(166, 78, 154, 0.5); /* Glow màu tím */
}

.header-container:hover .cart-icon {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.cart-icon:hover {
    color: #00ADEF; /* Đổi sang màu xanh logo khi trỏ chuột vào giỏ hàng */
}
/* ----------------------------------------------- */

.navigation {
    margin-bottom: 40px;
}

.navigation ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navigation ul li a:hover {
    color: #A64E9A;
}

.info-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    color: #555;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    font-size: 0.85rem;
}

.price-table th, .price-table td {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}

.price-table th {
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ddd;
}

/* Cột bên phải */
.main-artwork-placeholder {
    margin-bottom: 40px;
}

.icons-row {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.icon-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon-custom {
    margin-bottom: 15px;
}

.icon-text h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #222;
}

.icon-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #666;
}

/* Hiệu ứng mượt mà cho toàn bộ trang */
html {
    scroll-behavior: smooth;
}

/* Biến màu sắc để dễ quản lý */
:root {
    --color-purple: #A64E9A;
    --color-blue: #00ADEF;
    --color-green: #6BBF61;
    --color-bg: #FDFDFC;
    --font-main: 'Open Sans', sans-serif;
    --font-title: 'Playfair Display', serif;
}

/* Hiệu ứng Fade-in khi tải trang */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-column, .right-column {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Thiết kế lại Icon Hiệu quả - Tinh tế hơn */
.icon-custom {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.icon-item:hover .icon-custom {
    transform: scale(1.1) rotate(5deg);
}

/* Hiệu ứng cho Table để trông không giống table mặc định */
.price-table tr {
    transition: background 0.3s ease;
    cursor: pointer;
}

.price-table tr:hover {
    background-color: rgba(166, 78, 154, 0.03);
}

/* Tối ưu hóa hiển thị di động (Responsive) */
@media (max-width: 992px) {
    .page-container {
        flex-direction: column;
        padding: 40px 20px;
    }
    .left-column {
        flex: none;
        width: 100%;
        padding-right: 0;
        margin-bottom: 60px;
    }
    .logo {
        font-size: 2.8rem;
    }
}

/* --- BỔ SUNG CHO TRANG SẢN PHẨM --- */

/* Ghim cột bên trái khi cuộn chuột */
.sticky-sidebar {
    position: sticky;
    top: 80px; /* Bằng với padding-top của page-container */
    height: calc(100vh - 160px); /* Trừ đi padding trên dưới */
    overflow-y: auto; /* Cho phép cuộn nhẹ nếu menu quá dài ở màn hình nhỏ */
    scrollbar-width: none; /* Ẩn thanh cuộn cho Firefox */
}
.sticky-sidebar::-webkit-scrollbar {
    display: none; /* Ẩn thanh cuộn cho Chrome/Safari */
}

/* Highlight menu đang được chọn */
.navigation ul li a.active {
    color: var(--color-purple, #A64E9A);
    font-weight: 600;
    border-left: 2px solid var(--color-purple, #A64E9A);
    padding-left: 10px;
    transition: all 0.3s ease;
}

/* Kiểu dáng danh sách sản phẩm */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Khoảng cách rộng rãi giữa các sản phẩm */
    padding-bottom: 60px;
}

.product-card {
    display: flex;
    gap: 40px;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
}

.product-card:last-child {
    border-bottom: none;
}

.product-image-wrapper {
    flex: 0 0 45%; /* Ảnh chiếm 45% chiều rộng cột phải */
}

.image-placeholder {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Màu nền nhẹ cho các placeholder ảnh */
.bg-purple-tint { background-color: rgba(166, 78, 154, 0.6); }
.bg-blue-tint { background-color: rgba(0, 173, 239, 0.6); }
.bg-green-tint { background-color: rgba(107, 191, 97, 0.6); }

.product-details {
    flex: 1;
}

.product-title {
    font-family: var(--font-title, 'Playfair Display', serif);
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 5px;
}

.product-sku {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-meta {
    margin-bottom: 25px;
}

.element-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    font-weight: 600;
}

.element-tag.hỏa { color: #d9534f; background: rgba(217, 83, 79, 0.1); }
.element-tag.mộc { color: #5cb85c; background: rgba(92, 184, 92, 0.1); }
.element-tag.thủy { color: #0275d8; background: rgba(2, 117, 216, 0.1); }

.product-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-purple, #A64E9A);
}

.btn-add-cart {
    background: transparent;
    color: var(--color-purple, #A64E9A);
    border: 1px solid var(--color-purple, #A64E9A);
    padding: 10px 24px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--color-purple, #A64E9A);
    color: #fff;
}

/* Tối ưu Responsive cho trang sản phẩm */
@media (max-width: 992px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
        height: auto;
    }
    .product-card {
        flex-direction: column;
        gap: 20px;
    }
    .product-image-wrapper {
        width: 100%;
    }
}