:root {
    --bg-dark: #F5EFE2;      /* Warm Ivory - nền chính */
    --bg-card: #FFFDF7;      /* Off White - card / vùng nổi */
    --sand: #E6D7BC;         /* Soft Sand - section phụ */
    --border-color: #E6D7BC;
    --gold: #B84A2B;         /* Terracotta - highlight chính */
    --gold-hover: #9C3B20;
    --burgundy: #681F1B;     /* Deep Burgundy - CTA / section nổi bật */
    --olive: #686B4D;        /* Muted Olive - accent phụ */
    --text-main: #171513;    /* Soft Black - heading / text */
    --text-muted: #4A3429;   /* Warm Brown - chữ phụ */
    --nav-green: #FFFDF7;
    --logo-gold: #B84A2B;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }

.main-navbar { position: sticky; top: 0; width: 100%; background-color: var(--nav-green); border-bottom: 1px solid rgba(184,74,43,0.15); z-index: 1000; }
.nav-container { max-width: 1300px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { color: var(--logo-gold); font-size: 1.6rem; font-weight: 700; text-decoration: none; letter-spacing: 0.5px; cursor: pointer; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--logo-gold); }
.btn-nav-booking { background-color: var(--logo-gold); color: #FFFDF7 !important; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 0.85rem; transition: background-color 0.2s; }
.btn-nav-booking:hover { background-color: #9C3B20; }
.btn-nav-login { background-color: transparent; color: var(--gold) !important; border: 1px solid var(--gold); padding: 9px 18px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 0.85rem; transition: all 0.2s; }
.btn-nav-login:hover { background-color: rgba(184,74,43,0.12); }

.hero-section { height: 55vh; position: relative; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center center; background-repeat: no-repeat; opacity: 0; transition: opacity 1.2s ease-in-out, transform 4s ease-out; transform: scale(1.02); }
.hero-slide.active { opacity: 1; transform: scale(1.06); }
.hero-overlay { width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(230,215,188,0.4) 0%, var(--bg-dark) 100%); display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; }
.brand-box { text-align: center; padding: 20px; }
.since { font-size: 0.8rem; letter-spacing: 6px; color: var(--gold); font-weight: bold; }
.brand-box h1 { font-size: 3.8rem; font-family: 'Playfair Display', Georgia, serif; color: #ffffff; font-weight: 300; margin: 5px 0; letter-spacing: 1px; }
.subtitle { font-size: 1.1rem; letter-spacing: 5px; color: var(--gold); }
.divider { width: 80px; height: 1px; background-color: var(--gold); margin: 15px auto; }
.tagline { font-size: 0.95rem; color: var(--text-muted); }

.main-container { max-width: 1300px; margin: 0 auto; padding: 40px 20px; min-height: 60vh; }
.filter-wrapper { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 1.6rem; letter-spacing: 2px; margin-bottom: 20px; color: var(--gold); }
.filter-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-filter, .btn-class-filter { background: var(--bg-card); border: 1px solid #E6D7BC; color: var(--text-muted); padding: 8px 20px; border-radius: 4px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; }
.btn-filter.active, .btn-filter:hover, .btn-class-filter.active, .btn-class-filter:hover { border-color: var(--gold); color: #FFFDF7; background-color: var(--gold); }

.class-photos-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.class-photo-item { background-color: var(--bg-card); border-radius: 6px; overflow: hidden; border: 1px solid #E6D7BC; position: relative; flex: 1 1 calc(25% - 16px); aspect-ratio: 1 / 1; transition: transform 0.3s ease, border-color 0.3s ease; }
.class-photo-item.img-wide { flex: 1 1 calc(38% - 16px); aspect-ratio: 3 / 2 !important; }
.class-photo-item.img-vertical { flex: 1 1 calc(23% - 16px); aspect-ratio: 2 / 3 !important; }
.class-photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-hover-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.55); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; z-index: 2; }
.btn-view-detail { background-color: var(--logo-gold); color: #FFFDF7; border: none; padding: 8px 18px; font-size: 0.85rem; font-weight: bold; border-radius: 4px; cursor: pointer; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.btn-view-detail:hover { background-color: var(--gold-hover); transform: translateY(0) scale(1.05); }
.class-photo-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.class-photo-item:hover img { transform: scale(1.04); }
.class-photo-item:hover .photo-hover-overlay { opacity: 1; }
.class-photo-item:hover .btn-view-detail { transform: translateY(0); }
.photo-info { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(23,21,19,0.92) 75%); padding: 15px; z-index: 3; pointer-events: none; }
.photo-tag { display: block; font-size: 0.75rem; color: var(--gold); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: bold; }
.photo-info h4 { color: #fff; font-size: 0.9rem; font-weight: 500; }

.layout-grid { display: grid; grid-template-columns: 2.8fr 1.2fr; gap: 30px; }
.outfit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.outfit-card { background-color: var(--bg-card); border-radius: 6px; overflow: hidden; border: 1px solid #E6D7BC; transition: transform 0.3s ease, border-color 0.3s ease; }
.outfit-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-img-wrapper { position: relative; height: 340px; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.outfit-card:hover .card-img-wrapper img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background-color: rgba(255,253,247,0.85); color: var(--gold); font-size: 0.75rem; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--gold); text-transform: uppercase; }
.card-body { padding: 18px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-main); }
.card-body p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-select { width: 100%; background-color: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.2s ease; }
.btn-select:hover { background-color: var(--gold); color: #FFFDF7; }

.sticky-box { position: sticky; top: 80px; background-color: var(--bg-card); border: 1px solid #E6D7BC; border-radius: 6px; padding: 20px; }
.sticky-box h3 { font-size: 1.2rem; border-bottom: 1px solid #E6D7BC; padding-bottom: 12px; margin-bottom: 15px; color: var(--gold); }
.empty-text { font-size: 0.9rem; color: var(--text-muted); text-align: center; padding: 20px 0; }
.selected-item { display: flex; justify-content: space-between; align-items: center; background-color: #F5EFE2; padding: 10px 12px; border-radius: 4px; margin-bottom: 8px; font-size: 0.9rem; border-left: 3px solid var(--gold); }
.selected-item button { background: transparent; border: none; color: #ef4444; cursor: pointer; }
.text-gold { color: var(--gold); }
.booking-form { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #E6D7BC; }
.btn-submit-all { width: 100%; background-color: var(--gold); color: #FFFDF7; border: none; padding: 12px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; }
.btn-submit-all:hover { background-color: var(--gold-hover); }

.main-footer { background-color: #FFFDF7; border-top: 1px solid rgba(184,74,43,0.15); padding: 45px 20px 20px 20px; margin-top: 60px; }
.footer-container { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(104,107,77,0.1); }
.footer-col h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--logo-gold); }
.footer-contact-item { color: var(--text-main); font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; position: relative; }
.footer-contact-item i { color: var(--logo-gold); width: 16px; }
.footer-hyperlink { color: var(--gold) !important; text-decoration: none !important; font-weight: 500; transition: color 0.2s; }
.footer-hyperlink:hover { color: var(--gold-hover) !important; text-decoration: none !important; }
.highlight-gold { color: var(--gold); font-weight: bold; letter-spacing: 0.5px; }
.input-copy-zalo { cursor: pointer; user-select: none; transition: transform 0.1s ease; }
.input-copy-zalo:active { transform: scale(0.98); }
.tooltip-copied { position: absolute; left: 170px; background-color: #B84A2B; color: #FFFDF7; font-size: 0.75rem; font-weight: bold; padding: 3px 8px; border-radius: 4px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.tooltip-copied.show { opacity: 1; visibility: visible; }
.footer-bottom { max-width: 1300px; margin: 0 auto; padding-top: 20px; text-align: center; font-size: 0.85rem; color: #4A3429; }

@media (max-width: 992px) { .layout-grid { grid-template-columns: 1fr; } .class-photo-item { flex: 1 1 calc(33.33% - 16px); } .class-photo-item.img-wide { flex: 1 1 calc(50% - 16px); } }
@media (max-width: 640px) { .class-photo-item, .class-photo-item.img-wide, .class-photo-item.img-vertical { flex: 1 1 100% !important; aspect-ratio: 3 / 2 !important; } .footer-container { grid-template-columns: 1fr; gap: 30px; } .tooltip-copied { left: auto; right: 20px; } }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ================= AVATAR GÓC PHẢI ================= */
.nav-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(184,74,43,0.1);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.nav-user-profile:hover {
    background: rgba(184,74,43,0.25);
    transform: translateY(-2px);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold);
}

.nav-user-name {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ================= DROPDOWN TÀI KHOẢN ================= */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 220px;
    box-shadow: 0 10px 25px rgba(74,52,41,0.20);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    padding: 12px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown-menu a:hover {
    background-color: rgba(184,74,43,0.1);
    color: var(--gold);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 5px 0;
}

/* ================= POPUP XEM CHI TIẾT TRANG PHỤC ================= */
.outfit-detail-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.outfit-detail-modal-overlay.show { display: flex; }
.outfit-detail-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 25px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(74,52,41,0.28);
}
.outfit-detail-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: #171513;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    z-index: 2;
}
.outfit-detail-modal-close:hover { border-color: var(--gold); color: var(--gold); }
.outfit-detail-modal-title {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    padding-right: 40px;
    text-align: center;
    letter-spacing: 0.5px;
}
.outfit-detail-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.outfit-detail-modal-vertical {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.outfit-detail-modal-vertical img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}
.outfit-detail-modal-horizontals {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.outfit-detail-modal-horizontal {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.outfit-detail-modal-horizontal img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}
@media (max-width: 700px) {
    .outfit-detail-modal-grid { grid-template-columns: 1fr; }
    .outfit-detail-modal-vertical img { min-height: 260px; }
}

