@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary-bg: #0c0c0d;
    --secondary-bg: #1a1a1c;
    --accent-gold: #c6a15b;
    --light-gold: #e6c27a;
    --bronze: #8b6f47;
    --paper-bg: #f5f2eb;
    --text-light: #f8f5f0;
    --text-muted: #a1a1aa;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background-color: var(--light-gold);
    box-shadow: 0 0 15px rgba(198, 161, 91, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    box-shadow: 0 0 15px rgba(198, 161, 91, 0.4);
}

/* HEADER */
.top-bar {
    background-color: var(--primary-bg);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
    position: relative;
    z-index: 1001;
}

.site-header {
    position: fixed;
    top: 34px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 20px 0;
}

.site-header.scrolled {
    top: 0;
    background-color: rgba(12, 12, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--accent-gold);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

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

/* MEGA MENU */
.has-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -200px;
    width: 800px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--accent-gold);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 999;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(20px);
}

.mega-item {
    text-align: center;
}

.mega-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid rgba(198, 161, 91, 0.3);
}

.mega-item span {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--light-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon {
    font-size: 18px;
    color: var(--text-light);
    position: relative;
}

.action-icon:hover {
    color: var(--accent-gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--accent-gold);
}

/* MOBILE MENU */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(12, 12, 13, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-mobile {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    color: var(--accent-gold);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-light);
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(12, 12, 13, 0.6), rgba(12, 12, 13, 0.8)), url('images/luxury-antique-room-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease;
}

.hero-title {
    font-size: 4rem;
    color: var(--light-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--bronze);
    margin: 15px auto 0;
}

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* PRODUCT CARD */
.product-card {
    background-color: var(--secondary-bg);
    border: 1px solid rgba(198, 161, 91, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: rgba(198, 161, 91, 0.4);
}

.product-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(198, 161, 91, 0.1);
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-price {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* COLLECTION CARDS */
.collection-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

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

.collection-card:hover img {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,12,13,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-align: center;
}

.collection-overlay h3 {
    color: var(--light-gold);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* FEATURES / WHY CHOOSE US */
.features {
    background-color: var(--secondary-bg);
    border-top: 1px solid rgba(198, 161, 91, 0.2);
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.feature-item h4 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* TESTIMONIALS */
.testimonial-card {
    background-color: var(--primary-bg);
    padding: 40px;
    border: 1px solid var(--bronze);
    text-align: center;
    border-radius: 8px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* NEWSLETTER */
.newsletter {
    background-color: var(--secondary-bg);
    text-align: center;
    padding: 80px 0;
}

.newsletter h2 {
    color: var(--accent-gold);
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 12px 20px;
    background-color: var(--primary-bg);
    border: 1px solid var(--bronze);
    color: var(--text-light);
    border-radius: 14px;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--accent-gold);
}

/* FOOTER */
.site-footer {
    background-color: var(--primary-bg);
    padding: 80px 0 30px;
    border-top: 1px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--light-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(198, 161, 91, 0.2);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links a {
    margin-left: 20px;
}

/* PAGE HEADERS */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background-color: var(--secondary-bg);
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
}

/* SHOP & FILTERS */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.sidebar-filter {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(198, 161, 91, 0.1);
    height: fit-content;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-title {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
    padding-bottom: 5px;
}

.filter-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-list li:hover {
    color: var(--text-light);
}

/* PRODUCT DETAIL */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery-main {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(198, 161, 91, 0.2);
    margin-bottom: 20px;
}

.product-thumbnails {
    display: flex;
    gap: 15px;
}

.product-thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid rgba(198, 161, 91, 0.2);
    cursor: pointer;
    border-radius: 4px;
}

.product-info-full h1 {
    font-size: 3rem;
    color: var(--light-gold);
    margin-bottom: 10px;
}

.product-info-full .price {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 300;
}

.product-info-full .desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector input {
    width: 60px;
    padding: 10px;
    background: var(--primary-bg);
    border: 1px solid var(--bronze);
    color: var(--text-light);
    text-align: center;
    border-radius: 8px;
}

/* CART PAGE */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: normal;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(198, 161, 91, 0.2);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(198, 161, 91, 0.3);
}

.cart-remove {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-summary {
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(198, 161, 91, 0.2);
    max-width: 400px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--light-gold);
    border-top: 1px solid rgba(198, 161, 91, 0.2);
    padding-top: 20px;
}

/* CHECKOUT */
.checkout-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-bg);
    border: 1px solid rgba(198, 161, 91, 0.3);
    color: var(--text-light);
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-gold);
}

/* TEXT PAGES (Heritage, About, Legal) */
.text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-content h2 {
    color: var(--light-gold);
    margin-top: 40px;
}

.text-content img {
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid rgba(198, 161, 91, 0.2);
}

/* UTILS & ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mega-menu { display: none; } /* Hide mega menu on tablet/mobile */
}

@media (max-width: 768px) {
    .main-nav, .header-actions .btn { display: none; }
    .mobile-toggle { display: block; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}