/* THF Header & Navigation Styles */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Left: Hamburger + Logo */
.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-logo {
    height: 40px;
    width: auto;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    color: #d4af37;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Center: Main Logo */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    width: 280px;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Right: Navigation */
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
}

/* Search */
.search-container {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    color: #d4af37;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 300px;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-size: 14px;
    font-family: "Forum", serif;
}

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

.search-box input:focus {
    outline: none;
    border-color: #d4af37;
}

/* Nav Links */
.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: "Forum", serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

/* Cart Icon */
.nav-cart-icon {
    position: relative;
    color: white;
    font-size: 20px;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-cart-icon:hover {
    color: #d4af37;
    transform: scale(1.1);
}

.cart-count-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #d4af37;
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0a;
}

/* Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: -20px;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 40px;
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.98);
    transform: rotate(45deg);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.dropdown-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    padding: 12px 0;
    display: block;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 10px;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    color: #d4af37;
    transform: translateX(10px);
}

/* Sign In Dropdown */
.signin-dropdown .dropdown-content {
    min-width: 280px;
    padding: 25px;
}

.signin-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.signin-header h4 {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 8px;
    font-family: "Forum", serif;
}

.signin-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.signin-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-bottom: 10px;
    font-family: "Forum", serif;
}

.signin-btn:hover {
    background: #c9a033;
}

.signin-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.signin-btn.secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.cart-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.cart-link:hover {
    color: #d4af37;
}

.cart-link i {
    font-size: 20px;
}

.cart-count {
    background: #d4af37;
    color: #000;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 20, 0.95));
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 120px 60px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.menu-left {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    flex-wrap: wrap;
}

.links-col {
    flex: 1;
    min-width: 180px;
}

.col-title {
    font-size: 12px;
    font-weight: 600;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.7;
    padding-bottom: 15px;
    position: relative;
}

.col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: #d4af37;
    opacity: 0.5;
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 20px;
}

.links-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: block;
}

.links-col a:hover {
    color: #d4af37;
    transform: translateX(10px);
}

/* Bestseller Gallery */
.menu-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 500px;
    margin-top: 30px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.gallery-header h3 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
    font-family: "Forum", serif;
    color: #d4af37;
}

.gallery-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #d4af37;
    border-radius: 50%;
}

.gallery-controls {
    display: flex;
    gap: 15px;
}

.g-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.g-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d4af37;
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 0;
}

.g-arrow i {
    position: relative;
    z-index: 1;
}

.g-arrow:hover {
    border-color: #d4af37;
    color: #000;
    transform: scale(1.1);
}

.g-arrow:hover::after {
    transform: scale(1);
}

.gallery-viewport {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    flex-shrink: 0;
}

.gallery-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.gallery-item {
    min-width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 20px;
    color: white;
    font-size: 16px;
    text-align: center;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.gallery-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background: #d4af37;
    width: 60px;
}

.gallery-indicator:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* Responsive */
@media (max-width: 1200px) {
    .menu-gallery {
        max-height: 400px;
    }

    .gallery-viewport {
        height: 280px;
    }

    .gallery-item {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
        height: 60px;
    }

    /* Hide center logo on mobile */
    .nav-center {
        display: none !important;
    }

    .logo img {
        width: 200px;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-link {
        font-size: 12px;
    }

    .menu-gallery {
        display: none;
    }

    .mega-panel {
        padding: 100px 30px 40px;
    }

    .menu-left {
        flex-direction: column;
        gap: 30px;
    }

    .cart-count-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}
