/****************************
 Tranlegia Store - Custom CSS
 Sử dụng Bootstrap, chỉ bổ sung style nhẹ nhàng
*****************************/
/* Base styles */
body {
    color: #FFF;
    line-height: 1.5;
}
/* Logo header */
.logo-header {
    background: #f0f0f0;
    padding: 14px 0 8px 0;
    text-align: center;
}
.logo-header img {
    max-height: 38px;
}

/* Main menu background */
.main-menu-bg {
    background: #272727 !important;
    border-top: 1px solid #C5A47E;
    border-bottom: 1px solid #C5A47E;
}
.main-menu-bg .nav-link,
.main-menu-bg .navbar-brand,
.main-menu-bg .dropdown-toggle {
    color: #C5A47E !important;
    padding-left: 0px;
    padding-right: 10px;
    position: relative;
}
.main-menu-bg .nav-link.active,
.main-menu-bg .nav-link:hover {
    color: #fff !important;
    background: transparent;
}
.main-menu-bg .navbar-nav .nav-item:not(:last-child) .nav-link:after {
    content: "|";
    color: #fff;
    margin-left: 10px;
    font-weight: normal;
}
@media (max-width: 991.98px) {
    .main-menu-bg .navbar-nav {
        flex-direction: column !important;
        gap: 0;
    }
    .main-menu-bg .nav-link:after {
        content: "";
        margin: 0;
    }
}

/* Banner lớn */
.banner-large {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
}
@media (min-width: 768px) {
    .banner-large {
        height: 420px;
    }
}

/* Banner nhỏ */
.banner-thumbs {
    display: flex;
    gap: 2px;
    margin-bottom: 24px;
}
.banner-thumb {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: stretch;
}
.banner-thumb-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
@media (min-width: 768px) {
    .banner-thumb-img {
        height: 230px;
    }
}

/* Card title styles */
.card-title, h2, h5, h6 {
    font-weight: 500;
}

/* Footer styles */
footer {
    /* Using Bootstrap's default styles */
    padding: 1rem 0;
}

/* Responsive padding cho main */
@media (max-width: 575.98px) {
    main.container {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* --- Chủ đạo: #272727 (nền), #C5A47E (điểm nhấn), #fff (chữ) --- */

body {
    background: #272727 !important;
    color: #fff;
}
.card {
    border-radius: 12px;
}
.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
img,
.card,
.card-img-top,
.banner-large,
.banner-thumb,
.banner-thumb img,
.category-featured-img,
.category-featured-img img,
.product-featured-img,
.category-featured-card,
.product-featured-card,
.btn,
input,
textarea,
select {
    border-radius: 0 !important;
}
.main-menu-bg .container { margin-left: auto; margin-right: auto; }
.main-menu-bg .navbar-nav {
    flex-direction: row;
    gap: 0;
}

/* Danh mục nổi bật */
.category-featured-card {
    background: #232323;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    border: 1px solid #3a3a3a;
}
.category-featured-card:hover {
    box-shadow: 0 4px 16px rgba(197,164,126,0.10);
    transform: translateY(-4px) scale(1.03);
    border-color: #C5A47E44;
}
.category-featured-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.category-featured-title {
    font-weight: 500;
    color: #C5A47E;
}

/* Sản phẩm nổi bật */
.product-featured-card {
    background: #232323;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #3a3a3a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-featured-card:hover {
    box-shadow: 0 6px 24px rgba(197,164,126,0.13);
    transform: translateY(-4px) scale(1.03);
    border-color: #C5A47E44;
}
.product-featured-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transition: filter 0.2s;
}
.product-featured-card:hover .product-featured-img {
    filter: brightness(0.97) saturate(1.1);
}
.product-featured-card .product-price,
.product-featured-card .product-contact-price {
    font-weight: 500;
    color: #C5A47E;
}
/* Sửa màu chữ xám nhạt thành sáng hơn cho nền tối */
.product-featured-card .product-old-price {
    color: #C5A47E;
}
@media (min-width: 768px) {
    .product-featured-img {
        height: 200px;
    }
    .category-featured-img {
        width: 100px;
        height: 100px;
    }
}

/* Làm nổi bật chữ trong sản phẩm và tin tức */
.product-featured-card .card-title,
.product-featured-card .product-price,
.product-featured-card .product-contact-price,
.product-featured-card .product-old-price {
    color: #C5A47E !important;
    font-weight: 600;
}
.product-featured-card .text-muted,
.product-featured-card .small {
    color: #fff !important;
    font-weight: 400;
}

/* Tiêu đề nổi bật */
.section-title {
    font-weight: 700;
    color: #C5A47E !important;
    text-align: left;
    position: relative;
    display: inline-block;
    margin-bottom: 1.2rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #C5A47E 60%, #fff 100%) !important;
    border-radius: 2px;
    margin-top: 6px;
}

/* Nền xám nhẹ cho vùng Danh mục nổi bật full width */
.featured-category-section {
    background: #f6f7fb;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 32px 0 24px 0;
    border-radius: 0 !important;
}
@media (min-width: 768px) {
    .featured-category-section {
        padding: 40px 0 32px 0;
    }
}

/* Tab sản phẩm nổi bật - nav-pills nhỏ gọn, màu nổi bật */
#productTabs {
    background-color: white !important;
    color: black !important;
}

#productTabs * {
    color: black !important;
}

#productTabs .nav-link {
    font-weight: 600;
    padding: 0.22rem 0.7rem;
    border-radius: 0 !important;
    background: #232323;
    color: #C5A47E;
    border: 1px solid #C5A47E;
    margin-right: 4px;
    transition: background 0.18s, color 0.18s;
}
#productTabs .nav-link.active, #productTabs .nav-link:focus, #productTabs .nav-link:hover {
    background: #C5A47E;
    color: #272727;
    border-color: #C5A47E;
}
#productTabs .nav-link:last-child {
    margin-right: 0;
}

/* Blog panel section - nền xám full width */
.blog-panel-section {
    background: #232323;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}
.blog-card {
    background: #181818;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #3a3a3a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card-img {
    width: 100%;
    height: 156px;
    object-fit: cover;
    border-radius: 0 !important;
    background: #eaeaea;
}
@media (min-width: 768px) {
    .blog-card-img {
        height: 235px;
    }
}
.blog-card-title {
    color: #C5A47E !important;
    font-weight: 600;
}
.blog-card-desc {
    color: #ffe6b0 !important;
    line-height: 1.7;
    font-weight: 400;
}
@media (max-width: 767.98px) {
    .blog-card-img {
        height: 120px;
    }
}

/* Footer chuyên nghiệp */
.footer-main {
    color: #fff !important;
}
.footer-main a {
    font-weight: 500;
}
.footer-main .small, .footer-main small {
    color: #fff !important;
}
.footer-main .bi {
}
.footer-main a {
    color: #C5A47E;
    transition: color 0.18s;
}
.footer-main a:hover, .footer-main a:focus {
    color: #fff !important;
    text-decoration: underline;
}
.footer-main h6 {
    color: #C5A47E;
    letter-spacing: 1px;
    font-weight: 500;
}
.footer-main .small, .footer-main small {
    color: #fff !important;
}
.footer-main .bi {
    margin-right: 6px;
    vertical-align: -0.15em;
    color: #ffd700;
}
.footer-main hr {
    border-top: 1.5px solid #23272b;
    opacity: 1;
}
@media (max-width: 767.98px) {
    .footer-main {
        text-align: center;
    }
    .footer-main .row > div {
        margin-bottom: 1.5rem;
    }
}

.footer-static-bar {
    background: #111216;
    color: #bdbdbd;
    font-weight: 500;
    border-top: 1px solid #23272b;
}
.footer-static-links {
    gap: 12px !important;
}
.footer-static-link {
    color: #bdbdbd;
    text-decoration: none;
    font-weight: 400;
    padding: 0 6px;
    transition: color 0.18s;
    font-weight: 500;
}
.footer-static-link:hover, .footer-static-link:focus {
    color: #C5A47E;
    text-decoration: underline;
}

/* Link mặc định */
a, .text-primary {
    color: #C5A47E !important;
}
a:hover, a:focus {
    color: #fff !important;
}
.text-muted, .text-secondary, .text-gray, .text-grey {
    color: #fff !important;
}
.text-muted, .blog-card-desc.text-muted, .product-featured-card .text-muted {
    color: #fff !important;
    opacity: 1 !important;
    --bs-text-opacity: 1 !important;
}
.blog-card-meta,
.blog-card-meta.text-muted,
.blog-card-meta.small,
.blog-card-meta.text-muted.small {
    color: #fff !important;
    opacity: 1 !important;
    --bs-text-opacity: 1 !important;
    font-weight: 400;
}

/* Reset font and size for all except header menu */
body, p, div, span, h1, h2, h3, h4, h5, h6, a, button, input, textarea {
    color: #fff !important;
}
