/* Custom CSS cho trang chủ từ HTML */

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    max-height: 60px;
}

.header_top .topmenu {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 10px 0;
}

.header_top .topmenu li {
    display: inline-block;
    margin: 0 15px;
}

.header_top .topmenu li a {
    color: #333;
    text-decoration: none;
}

.usermenu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    text-align: right;
}

.usermenu li {
    display: inline-block;
    margin-left: 15px;
}

.usermenu li a {
    color: #333;
    text-decoration: none;
}

.usermenu li a:hover {
    color: #A67C52;
}

.header_bottom {
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.option {
    list-style: none;
    float: left;
    margin: 0;
    padding: 0;
}

.option li {
    display: inline-block;
    margin-right: 20px;
}

.search {
    position: relative;
}

.search-input {
    width: 250px;
    padding: 8px 40px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
}

.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23666"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.5s;
    pointer-events: all;
}

.loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #A67C52;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: #f8f8f8;
    text-align: center;
}

.about-section h2 {
    font-size: 36px;
    color: #4A2F1A;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
    color: #333;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-about {
    background: #A67C52;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-about:hover {
    background: #8B6842;
    transform: scale(1.05);
}

/* Video Section */
.vid-jumbotron {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.vid-jumbotron .video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.vid-jumbotron video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
    min-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.vid-jumbotron .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 24, 10, 0.45);
    z-index: 2;
}

.vid-jumbotron .video-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 60px 20px 40px 20px;
}

.vid-jumbotron .video-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.vid-jumbotron .video-content .subtitle {
    font-size: 24px;
    margin-bottom: 36px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* Hot Products */
.hot-products {
    min-height: 380px;
    margin: 40px 0;
    position: relative;
    padding: 60px 0;
}

.hot-products h2 {
    font-size: 36px;
    color: #4A2F1A;
    text-align: center;
    margin-bottom: 40px;
}

.galaxy-container {
    position: relative;
    width: 1100px;
    max-width: 100%;
    height: 600px;
    padding: 30px;
    margin: 0 auto;
    background-color: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
}

#cosmic-slide {
    width: max-content;
    margin-top: 50px;
}

.cosmic-item {
    width: 190px;
    height: 300px;
    background-position: 50% 50%;
    display: inline-block;
    transition: 0.5s;
    background-size: cover;
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
}

.cosmic-item:nth-child(1),
.cosmic-item:nth-child(2) {
    left: 0;
    top: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
}

.cosmic-item:nth-child(3) {
    left: 50%;
}

.cosmic-item:nth-child(4) {
    left: calc(50% + 220px);
}

.cosmic-item:nth-child(5) {
    left: calc(50% + 440px);
}

.cosmic-item:nth-child(n+6) {
    left: calc(50% + 660px);
    opacity: 0;
}

.cosmic-item .nebula-content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 250px;
    text-align: left;
    padding: 0;
    color: #ffffff;
    transform: translate(0, -50%);
    display: none;
}

.cosmic-item:nth-child(2) .nebula-content {
    display: block;
    z-index: 1;
}

.cosmic-item .star-name {
    font-size: 40px;
    font-weight: bold;
    opacity: 0;
    animation: cosmic-reveal 1s ease-in-out 1 forwards;
}

.cosmic-item .star-description {
    margin: 20px 0;
    opacity: 0;
    animation: cosmic-reveal 1s ease-in-out 0.3s 1 forwards;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin: 10px 0;
}

.cosmic-item .cosmic-button {
    padding: 10px 20px;
    border: none;
    opacity: 0;
    animation: cosmic-reveal 1s ease-in-out 0.6s 1 forwards;
}

@keyframes cosmic-reveal {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
        filter: blur(0);
    }
}

.cosmic-controls {
    position: relative;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cosmic-controls .orbit-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #A67C52;
    background: rgba(166, 124, 82, 0.1);
    color: #A67C52;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cosmic-controls .orbit-button:hover {
    background: #A67C52;
    color: #fff;
    transform: scale(1.1);
}

/* News Highlight */
.news-highlight {
    padding: 60px 0;
}

.news-highlight h2 {
    font-size: 36px;
    color: #4A2F1A;
    text-align: center;
    margin-bottom: 40px;
}

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item-content {
    padding: 20px;
}

.news-item-content h3 {
    font-size: 20px;
    color: #4A2F1A;
    margin: 0 0 10px;
}

.news-item-content .date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.news-item-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.btn-readmore {
    background: #A67C52;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-readmore:hover {
    background: #8B6842;
    transform: scale(1.05);
}

/* Chatbox Messenger - LUXURY A67C52 */
.chatbox-messenger {
    position: fixed;
    bottom: 100px;
    right: 26px;
    z-index: 2147483647 !important;
}

.chatbox-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none;
    padding: 0 !important;
    width: 64px !important;
    height: 64px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: box-shadow 0.2s, background 0.2s;
    z-index: 2147483647 !important;
}

.chatbox-toggle img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.chatbox-window {
    width: 370px;
    max-width: 98vw;
    height: 500px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 40px rgba(166,124,82,0.22), 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    animation: fadeInUp 0.3s;
    border: 2px solid #A67C52;
    z-index: 2147483647 !important;
}

.chatbox-header {
    background: linear-gradient(90deg, #A67C52 80%, #8B6842 100%);
    color: #fff;
    padding: 18px 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(166,124,82,0.10);
}

.chatbox-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbox-close:hover {
    background: rgba(255,255,255,0.12);
}

.chatbox-messages {
    flex: 1;
    padding: 20px 18px 16px 18px;
    background: linear-gradient(180deg, #F7F3EF 0%, #F2E6DA 100%);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chatbox-message {
    max-width: 82%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
    display: inline-block;
    box-shadow: 0 1.5px 6px rgba(166,124,82,0.08);
    margin-bottom: 2px;
}

.chatbox-message.admin {
    background: linear-gradient(90deg, #A67C52 80%, #8B6842 100%);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbox-message.user {
    background: #fff;
    color: #A67C52;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border: 1.5px solid #A67C52;
}

.chatbox-input-area {
    display: flex;
    padding: 14px 16px;
    border-top: 1.5px solid #E5D3BC;
    background: #F7F3EF;
    align-items: center;
    gap: 8px;
}

.chatbox-input {
    flex: 1;
    border: none;
    border-radius: 18px;
    padding: 10px 16px;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #A67C52;
    border: 1.5px solid #E5D3BC;
    transition: border 0.2s;
}

.chatbox-input:focus {
    border: 1.5px solid #A67C52;
    background: #F2E6DA;
}

.chatbox-send {
    background: #A67C52;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatbox-send:hover {
    background: #8B6842;
}

.chatbox-send:after {
    content: '\f1d8';
    font-family: FontAwesome;
    font-size: 20px;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #fff;
    border-top: 1.5px solid #e5d3bc;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 10001;
    box-shadow: 0 -2px 12px rgba(166,124,82,0.08);
}

.bottom-nav a {
    text-align: center;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.bottom-nav a .nav-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 4px;
}

.bottom-nav a span {
    display: block;
    font-size: 11px;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: #A67C52;
}

/* Contact Section */
.contact-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.center-text {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-infoormation h5,
.ContactForm h5 {
    font-size: 20px;
    color: #4A2F1A;
    margin-bottom: 20px;
}

.contact-infoormation ul {
    list-style: none;
    padding: 0;
}

.contact-infoormation li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-infoormation .icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #A67C52;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-social h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-social ul {
    display: flex;
    gap: 10px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #A67C52;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.contact-social a:hover {
    background: #8B6842;
}

.ContactForm .form-row {
    margin-bottom: 15px;
}

.ContactForm label {
    display: block;
    margin-bottom: 5px;
    color: #4A2F1A;
}

.ContactForm .inputfild {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ContactForm textarea {
    resize: vertical;
}

.ContactForm .button {
    background: #A67C52;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.ContactForm .button:hover {
    background: #8B6842;
}

 .contact-form-wrapper .wpcf7 {
     width: 100%;
 }
 
 .contact-form-wrapper .wpcf7 form p {
     margin: 0 0 20px;
 }
 
 .contact-form-wrapper .wpcf7 label {
     display: block;
     font-weight: 600;
     color: #4A2F1A;
     margin-bottom: 8px;
     font-size: 0.95rem;
 }
 
 .contact-form-wrapper .wpcf7 .wpcf7-form-control-wrap {
     display: block;
 }
 
 .contact-form-wrapper .wpcf7 .am-cf7-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 20px;
     margin-bottom: 20px;
 }
 
 @media (max-width: 768px) {
     .contact-form-wrapper .wpcf7 .am-cf7-row {
         grid-template-columns: 1fr;
         gap: 14px;
     }
 }
 
 .contact-form-wrapper .wpcf7 input[type="text"],
 .contact-form-wrapper .wpcf7 input[type="email"],
 .contact-form-wrapper .wpcf7 input[type="tel"],
 .contact-form-wrapper .wpcf7 input[type="url"],
 .contact-form-wrapper .wpcf7 input[type="number"],
 .contact-form-wrapper .wpcf7 input[type="date"],
 .contact-form-wrapper .wpcf7 select,
 .contact-form-wrapper .wpcf7 textarea {
     width: 100%;
     padding: 14px 18px;
     border: 2px solid #e9ecef;
     border-radius: 8px;
     font-size: 1rem;
     transition: all 0.2s ease;
     font-family: inherit;
     background: #fff;
     outline: none;
 }
 
 .contact-form-wrapper .wpcf7 input[type="text"]:focus,
 .contact-form-wrapper .wpcf7 input[type="email"]:focus,
 .contact-form-wrapper .wpcf7 input[type="tel"]:focus,
 .contact-form-wrapper .wpcf7 input[type="url"]:focus,
 .contact-form-wrapper .wpcf7 input[type="number"]:focus,
 .contact-form-wrapper .wpcf7 input[type="date"]:focus,
 .contact-form-wrapper .wpcf7 select:focus,
 .contact-form-wrapper .wpcf7 textarea:focus {
     border-color: #A67C52;
     box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.12);
 }
 
 .contact-form-wrapper .wpcf7 textarea {
     resize: vertical;
     min-height: 120px;
 }
 
 .contact-form-wrapper .wpcf7 input[type="submit"],
 .contact-form-wrapper .wpcf7 button[type="submit"] {
     width: 100% !important;
     padding: 16px !important;
     font-size: 1rem;
     margin-top: 10px;
     border: none;
     border-radius: 8px;
     background: #A67C52;
     color: #fff;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.2s ease;
 }

 .contact-form-wrapper .wpcf7 .am-cf7-actions {
     display: flex;
     flex-direction: column;
     align-items: center;
 }
 
 .contact-form-wrapper .wpcf7 .am-cf7-actions .wpcf7-spinner {
     position: static !important;
     transform: none !important;
     display: block !important;
     margin: 12px auto 0 !important;
     pointer-events: none;
 }

 .contact-form-wrapper .wpcf7 .wpcf7-submit + .wpcf7-spinner {
     display: table !important;
     margin: 12px auto 0 !important;
     float: none !important;
 }

 .contact-form-wrapper .wpcf7 .wpcf7-spinner {
     display: none !important;
 }

 .contact-form-wrapper .wpcf7 .ajax-loader,
 .contact-form-wrapper .wpcf7 img.ajax-loader,
 .contact-form-wrapper .wpcf7 span.ajax-loader {
     display: none !important;
     visibility: hidden !important;
     opacity: 0 !important;
     width: 0 !important;
     height: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
 }

 .contact-form-wrapper .wpcf7 form .wpcf7-spinner,
 .contact-form-wrapper .wpcf7 form .wpcf7-spinner::before,
 .contact-form-wrapper .wpcf7 form .wpcf7-spinner::after {
     display: none !important;
     visibility: hidden !important;
     opacity: 0 !important;
     width: 0 !important;
     height: 0 !important;
     margin: 0 !important;
     padding: 0 !important;
     content: none !important;
 }
 
 .contact-form-wrapper .wpcf7 input[type="submit"]:hover,
 .contact-form-wrapper .wpcf7 button[type="submit"]:hover {
     background: #8B6842;
 }
 
 .contact-form-wrapper .wpcf7 .wpcf7-not-valid-tip {
     margin-top: 8px;
     font-size: 0.9rem;
     color: #e74c3c;
 }
 
 .contact-form-wrapper .wpcf7 form .wpcf7-response-output {
     margin: 18px 0 0;
     padding: 14px 16px;
     border-radius: 8px;
     font-size: 0.95rem;
 }
 
 .contact-form-wrapper .wpcf7 form.sent .wpcf7-response-output {
     border-color: #2ecc71;
     background: rgba(46, 204, 113, 0.12);
     color: #1e7e34;
 }
 
 .contact-form-wrapper .wpcf7 form.invalid .wpcf7-response-output,
 .contact-form-wrapper .wpcf7 form.failed .wpcf7-response-output,
 .contact-form-wrapper .wpcf7 form.spam .wpcf7-response-output {
     border-color: #e74c3c;
     background: rgba(231, 76, 60, 0.08);
     color: #b03a2e;
 }

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 220px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 12px;
}

.search-result-name {
    font-weight: 600;
    color: #4A2F1A;
    font-size: 14px;
}

.search-result-price {
    color: #A67C52;
    font-weight: 600;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    
    .galaxy-container {
        display: none;
    }
    
    .vid-jumbotron {
        min-height: 260px;
    }
    
    .vid-jumbotron .video-content h1 {
        font-size: 36px;
    }
    
    .chatbox-messenger {
        right: 30px;
        bottom: 150px;
    }
}

@media (max-width: 600px) {
    .chatbox-window {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        z-index: 999999;
    }
}
