/* CSS cho Trang Chủ - Dự án Tranh Nhóm */

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-white: #ffffff;
    --accent-gold: #c9a84c;
    --accent-gold-hover: #e5c36a;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .inner {
        padding: 0 14px;
    }
}

@media (max-width: 360px) {
    .inner {
        padding: 0 10px;
    }
}

/* Common Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px; /* Reduced from 22px for a much cleaner, premium look */
    font-weight: 700; /* Reduced from 800 */
    letter-spacing: 1.5px;
    color: var(--text-white);
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px; /* Slimmed down from 4px */
    height: 15px; /* Reduced from 20px to match new font size */
    background-color: var(--accent-gold);
}

.section-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--accent-gold-hover);
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-color: #050505;
    background-size: cover;
    background-position: center right;
    min-height: 60vh;
    /* Thu nhỏ lại thành dải banner thanh thoát hơn */
    display: flex;
    align-items: center;
}

/* Kỹ thuật phủ dải bóng tối (Vignette Gradient) */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Đổ bóng tối sâu ở góc trái (nơi đặt chữ) và trong suốt dần sang góc phải (nơi treo tranh) */
    background: linear-gradient(to right,
            rgba(5, 5, 5, 0.95) 0%,
            rgba(5, 5, 5, 0.8) 40%,
            rgba(5, 5, 5, 0.2) 70%,
            rgba(5, 5, 5, 0.5) 100%);
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    /* Đẩy khối chữ né sang bên trái một cách tự nhiên */
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    /* Loại bỏ hoàn toàn chiếc hộp đen mờ */
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.hero-title {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    /* Khắc phục lỗi font không đều bằng font hệ thống chuẩn */
    font-size: 64px;
    /* To và ấn tượng hơn */
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;

    /* Dải màu Chrome/Kim loại bóng bẩy (Glossy Metal) với đường chân trời sắc nét */
    background: linear-gradient(to bottom,
            #ffffff 0%,
            #e6e6e6 30%,
            #888888 47%,
            #111111 50%,
            #999999 53%,
            #e0e0e0 75%,
            #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Đổ bóng 3D nổi bật: viền sáng mỏng và bóng tối dày */
    filter:
        drop-shadow(0px 2px 1px rgba(255, 255, 255, 0.4)) drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.9)) drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.7));
}

.hero-title span {
    display: block;
    font-size: 52px;
    margin-top: 6px;
    letter-spacing: 2px;

    /* Cấp riêng một dải màu Chrome cho dòng chữ dưới để hiệu ứng bóng đồng đều từng dòng */
    background: linear-gradient(to bottom,
            #ffffff 0%,
            #e6e6e6 30%,
            #888888 47%,
            #111111 50%,
            #999999 53%,
            #e0e0e0 75%,
            #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    max-width: 450px;
    text-align: left;
    /* Đồng bộ căn trái */
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Nâng cấp hệ thống nút bấm đồng bộ chuỗi màu Gold sang trọng */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 6px;
    /* Bo góc nhẹ mang lại cảm giác hiện đại */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

/* Nút Khám Phá Ngay: Nền Gold nguyên khối */
.btn-primary {
    background-color: var(--accent-gold);
    color: #050505;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.25);
}

/* Nút Thiết Kế Tranh Riêng: Trong suốt viền Gold đồng bộ */
.btn-outline {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn-outline:hover {
    background-color: rgba(201, 168, 76, 0.08);
    border-color: var(--accent-gold-hover);
    color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

/* Slider Dots cố định phía dưới cùng của không gian */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

/* Responsive tinh tế cho mọi thiết bị di động */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-bg-overlay {
        /* Trên điện thoại, phủ tối toàn bộ bề mặt để đảm bảo chữ luôn đọc được rõ ràng */
        background: rgba(5, 5, 5, 0.85);
    }

    .hero-container {
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-title {
        font-size: 40px;
        text-align: center;
    }

    .hero-title span {
        font-size: 34px;
    }

    .hero-desc {
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .hero-btns {
        display: none !important;
    }
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

.category-card:hover {
    border-color: var(--accent-gold);
}

.cat-img {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.cat-img img,
.cat-img div {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Info Bar matching Image 1 */
.cat-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background-color: #0b0b0b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s;
}

.category-card:hover .cat-info-bar {
    background-color: #0d0d0d;
}

.cat-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Star Box (✦) */
.cat-star-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
    transition: all 0.3s;
}

.category-card:hover .cat-star-box {
    border-color: var(--accent-gold);
    background: rgba(201, 168, 76, 0.08);
}

.cat-text-group {
    display: flex;
    flex-direction: column;
}

.cat-title-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.cat-subtitle-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin: 2px 0 0 0;
    font-weight: 400;
}

/* Action Button */
.cat-action-btn {
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 6px;
    padding: 8px 16px;
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    background: transparent;
}

.category-card:hover .cat-action-btn {
    background-color: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .btn-detail {
        display: none !important;
    }
}


@media (max-width: 920px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 850px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .products-grid .product-card:nth-child(n+5) {
        display: none !important;
    }
}



.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.product-img {
    height: 320px;
    position: relative;
    background-color: #151515;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.badge-hot {
    background-color: #ff3333;
    color: white;
}

.badge-new {
    background-color: var(--accent-gold);
    color: black;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

.product-type {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price del {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 500;
    text-decoration: line-through;
    margin-right: 4px;
}

.product-price ins {
    font-size: 18px;
    color: var(--accent-gold) !important;
    font-weight: 800;
    text-decoration: none;
    background: transparent;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-detail,
.btn-order {
    flex: 1;
    height: 36px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-detail {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-detail:hover {
    border-color: var(--text-white);
}

.btn-order {
    background-color: var(--accent-gold);
    color: #000;
    border: none;
}

.btn-order:hover {
    background-color: var(--accent-gold-hover);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-gallery {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-features {
        grid-template-columns: 1fr;
    }

    .hero-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 770px) {
    .section-title {
        font-size: 16px;
        padding-left: 10px;
    }

    .section-title::before {
        height: 16px;
    }

    .section-link {
        font-size: 10px;
    }

    .cat-title-text {
        font-size: 12px;
    }

    .cat-subtitle-text {
        font-size: 10px;
    }

    .cat-info-bar {
        padding: 10px 12px;
    }

    .cat-star-box {
        display: none !important;
    }

    .products-grid {
        gap: 10px;
    }

    .product-img {
        height: 150px !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .product-name {
        font-size: 11px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }

    .product-type {
        font-size: 9px !important;
        margin-bottom: 8px !important;
    }

    .product-price {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .product-price ins {
        font-size: 12px !important;
    }

    .product-price del {
        font-size: 10px !important;
    }

    .btn-detail {
        display: none !important;
    }

    .btn-order {
        height: 32px !important;
        line-height: 30px !important;
        font-size: 10px !important;
        padding: 0 5px !important;
    }
}