/* Background trang chủ */
body {
    background: #81171e !important;
    color: white !important;
}

/* Loading Screen Custom Styles */
.loading-screen {
    background: #f1ded0 !important;
    background-image: none !important;
}

/* Làm logo loading nhỏ lại */
.logo-loading {
    transform: scale(1) !important;
    max-width: none !important;
    max-height: none !important;
}

.logo-loading:first-child {
    height: 60px !important; /* Logo đầu tiên nhỏ hơn */
}

.logo-loading:nth-child(2) {
    height: 400px !important; /* Logo thứ hai lớn hơn nhiều */
}

.loading-logo {
    margin-bottom: 3rem !important;
}

/* Thanh progress bar màu đỏ */
.progress-bar {
    background-color: #81171e !important;
}

/* Header Styles - Luôn có màu nền, không bao giờ trong suốt */
.header {
    background: rgba(73, 15, 26, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header.scrolled {
    background: rgba(73, 15, 26, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Logo header nhỏ lại */
.nav-brand .logo {
    height: 35px !important;
    max-height: 35px !important;
}

/* Logo footer nhỏ lại */
.footer-logo {
    height: 40px !important;
    max-height: 40px !important;
}

/* Nav menu styles - Bỏ text shadow */
.nav-menu a {
    color: white !important;
    font-weight: 500 !important;
    position: relative !important;
}

.header.scrolled .nav-menu a {
    text-shadow: none !important;
}

.nav-menu a:hover::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: auto;
    background-image: url('images/paten.png') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

/* Search box styles - Bỏ text shadow */
.search-box input {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 20px !important;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.header.scrolled .search-box input {
    text-shadow: none !important;
}

.header.scrolled .search-box input::placeholder {
    text-shadow: none !important;
}

/* Main content với video - Điều chỉnh để khớp */
.main-content {
    margin-top: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    background-attachment: initial !important;
    min-height: calc(100vh - 60px) !important; /* Điều chỉnh theo video */
}

.main-content::before {
    display: none !important;
}

/* Video Banner Background for Index Page - Điều chỉnh để không có khoảng trống */
.main-banner-video {
    position: relative !important;
    width: 100vw !important;
    height: calc(100vh - 60px) !important; /* Giảm xuống để vừa hơn */
    margin-left: calc(-50vw + 50%) !important;
    overflow: hidden !important;
    left: 0 !important;
    margin-top: 60px !important; /* Giảm margin-top để loại bỏ viền đỏ */
    margin-bottom: 0 !important;
}

.video-background {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    filter: brightness(0.9) contrast(1.05) !important;
}

.video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.2) 100%
    ) !important;
    z-index: 2 !important;
}

.banner-content {
    position: absolute !important;
    top: 85% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    text-align: center !important;
    color: white !important;
}

.scroll-indicator {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    cursor: pointer !important;
    animation: bounce 2s infinite !important;
}

.scroll-arrow {
    color: white !important;
    font-size: 2rem !important;
    font-weight: bold !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Product image styles - giống banner */
.product-image-box {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 2rem auto !important;
    border: 2px solid #f1ded0 !important;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 500px !important;
    height: 70vh !important;
}

.product-placeholder {
    color: #f1ded0 !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Button styles */
.btn-action {
    background: #81171e !important;
    color: #f1ded0 !important;
    border: 2px solid #f1ded0 !important;
    box-shadow: 0 4px 15px rgba(129, 23, 30, 0.3) !important;
}

.btn-action:hover {
    background: #f1ded0 !important;
    color: #81171e !important;
    box-shadow: 0 8px 25px rgba(241, 222, 208, 0.4) !important;
}

.btn-action img {
    filter: brightness(0) saturate(100%) invert(92%) sepia(8%) saturate(1074%) hue-rotate(340deg) brightness(97%) contrast(95%) !important;
}

.btn-action:hover img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(48%) saturate(1843%) hue-rotate(321deg) brightness(96%) contrast(90%) !important;
}

/* Product Section Styles - Thêm khoảng cách phía trên */
.product-section {
    background: #81171e !important;
    padding: 5rem 0 3rem 0 !important; /* Tăng padding-top để tránh bị video đè */
    margin-top: 0 !important; /* Đảm bảo không có margin âm */
}

.product-section .section-title {
    color: #f1ded0 !important;
    text-align: center !important;
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    background: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #f1ded0 !important;
}

.product-section .section-title + img {
    display: block !important;
    margin: 0 auto 2rem auto !important;
    width: 225px !important;
    height: auto !important;
    opacity: 0.8 !important;
}

.product-container {
    position: relative !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.product-image-box {
    width: 100% !important;
    height: 450px !important;
    background: #f1ded0 !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-bottom: 1rem !important;
}

.product-placeholder {
    color: #81171e !important;
    font-size: 1.3rem !important;
    text-align: center !important;
    font-weight: 500 !important;
}

.product-details-btn {
    text-align: right !important;
    margin-top: 2rem !important;
}

.btn-details {
    background: transparent !important;
    color: #f1ded0 !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
}

.btn-details:hover {
    background: rgba(241, 222, 208, 0.1) !important;
    transform: translateX(5px) !important;
}

.btn-details img {
    transition: transform 0.3s ease !important;
    filter: brightness(0) saturate(100%) invert(92%) sepia(8%) saturate(1074%) hue-rotate(340deg) brightness(97%) contrast(95%) !important;
}

.btn-details:hover img {
    transform: translateX(3px) !important;
}

/* Download Badges - Góc dưới bên phải sát góc */
.download-badges {
    position: fixed !important;
    bottom: 5px !important;
    right: 5px !important;
    z-index: 999 !important;
    width: auto !important;
    max-width: none !important;
}

.download-image {
    width: 100% !important;
}

.download-image img {
    max-width: 7vw !important;
    height: auto !important;
    min-width: 50px !important;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .download-badges {
        bottom: 3px !important;
        right: 3px !important;
    }
    
    .download-image img {
        max-width: 8vw !important;
        min-width: 40px !important;
    }
} 