/* Base Styles */
:root {
    --primary-color: #faf9f6;
    --secondary-color: #212121;
    --accent-color: #e9e5dc;
    --border-color: #e0d9cb;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Cormorant Garamond', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--secondary-color);
    background-color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    padding-top: 80px;
    /* Adjust this value based on your header height */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
.btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: normal;
    line-height: 1.2;
    font-family: var(--font-secondary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 1px;
    font-weight: 400;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    font-weight: 400;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    letter-spacing: 0.3px;
    line-height: 1.8;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 80px;
    /* Fixed height to match home page */
}

/* Adjust body padding to account for fixed header */
body {
    padding-top: 80px;
    /* Match the header height */
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-desktop li {
    margin-left: 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-desktop a {
    position: relative;
    transition: var(--transition);
}

.nav-desktop a:hover {
    opacity: 0.7;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    margin-top: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
    z-index: 1500;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-submenu {
    display: none;
    margin: 1rem 0 0.5rem 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--accent-color);
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.dropdown-mobile>a::after {
    content: ' +';
    font-size: 1.2rem;
}

/* Mobile-only styles */
@media screen and (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }
}

/* Hide mobile nav on larger screens */
@media screen and (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: none !important;
    }
}

/* Collection Styles */
.collection-description {
    max-width: 800px;
    margin: 120px auto 5rem;
    /* Increased top margin to account for fixed header */
    text-align: center;
    font-style: italic;
    color: #565656;
    padding: 0 20px;
    /* Added padding for mobile */
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    position: relative;
    padding-bottom: 1.5rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    /* Increased width for longer underscore */
    height: 1px;
    background-color: var(--primary-color);
}

.collection-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem auto;
}

/* Mobile layout */
@media screen and (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Tablet layout */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* Desktop layout */
@media screen and (min-width: 1025px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

.collection-item {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    cursor: pointer;
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-item:hover .collection-img {
    transform: scale(1.05);
}

.collection-item::after {
    content: 'View Details';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.collection-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .detail-container {
        flex-direction: column;
        gap: 2rem;
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .product-detail {
        padding: 5rem 1rem 1rem;
    }

    .detail-image img {
        max-height: 70vh;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-specs {
        padding: 1.5rem;
    }
}

/* Hide mobile nav on larger screens */
@media screen and (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: none !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.product-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.close-detail {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: none !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 30px !important;
    line-height: 35px !important;
    text-align: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    display: block !important;
}

.close-detail:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: white;
}

@media screen and (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
    }

    .close-detail {
        top: 10px;
        right: 10px;
    }
}

/* Home collection base styles */
.home-collection {
    display: grid;
    gap: 2rem;
    margin: 0 auto 4rem auto;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .home-collection {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .desktop-only {
        display: none !important;
    }

    .main-item {
        width: 100%;
    }
}

/* Desktop styles */
@media screen and (min-width: 769px) {
    .home-collection {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }

    .desktop-only {
        display: block;
    }
}

.collection-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.collection-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-item:hover .collection-img {
    transform: scale(1.05);
}

/* Contact */
.contact {
    padding: 8rem 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.contact-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.phone-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.phone-links .contact-link {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-divider {
    width: 1px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-divider {
        display: none;
    }
}

/* Footer Styles */
footer {
    padding: 4rem 0;
    background-color: var(--primary-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-heading {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-nav li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(33, 33, 33, 0.1);
    text-align: center;
    font-size: 0.8rem;
}

.collection-video {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.collection-video video,
.collection-video iframe {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.collection-video iframe {
    aspect-ratio: 16/9;
    height: 450px;
}