@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

:root {
    --primary-color: #1a1a1a;
    --bg-color: #ffffff;
    --bg-soft: #f7f7f7;
    --text-color: #2a2a2a;
    --muted-color: #6b6b6b;
    --border-color: #e8e8e8;
    --serif-font: "Cormorant Garamond", serif;
    --sans-font: "Jost", sans-serif;
    --script-font: "Great Vibes", cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300;
    font-size: 15px;
    letter-spacing: 0.3px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Marquee (black bar, white text — always visible) ── */
.marquee-bar {
    background: #111;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #222;
}

.marquee-track {
    display: inline-block;
    animation: marqueeScroll 55s linear infinite;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-track {
        font-size: 0.58rem;
        letter-spacing: 2px;
        animation-duration: 45s;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Navbar */
header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    padding-left: 16px;
    padding-right: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    position: relative;
    min-height: 44px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
}

.logo-link {
    --logo-w: clamp(118px, 20vw, 196px);
    --logo-h: clamp(34px, 4.8vw, 46px);
    display: block;
    width: var(--logo-w);
    height: var(--logo-h);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    transform: translateY(calc(-50% + 5px));
    display: block;
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 992px) {
    .logo-link {
        --logo-w: 210px;
        --logo-h: 48px;
    }

    .footer-brand-logo-link {
        --logo-w: 185px;
        --logo-h: 44px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.35s ease;
    padding-bottom: 4px;
}

/* Sliding underline animation */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #b48c64;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links li a:hover {
    color: #b48c64;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    min-width: 180px;
    display: none;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 8px 20px;
    display: block;
    font-size: 0.8rem;
    text-transform: none;
}

/* Hero Carousel */
.hero-slider {
    width: 100%;
}

.hero-slider .slick-list,
.hero-slider .slick-track {
    height: 100%;
}

.hero-slider .slide {
    height: 85vh;
    min-height: 580px;
    max-height: 780px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0a0a0a;
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 70px 80px;
    position: relative;
}

.hero-slider .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 55%);
    z-index: 1;
}

.hero-slider .slide-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #3d2b1f 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    max-width: 520px;
}

.hero-content h2 {
    font-family: var(--serif-font);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 6px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

/* Product Grid */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-family: var(--serif-font);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    text-align: center;
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    margin-bottom: 15px;
}

.product-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.product-img.main-img {
    position: absolute;
    opacity: 1;
    z-index: 1;
}

.product-img.hover-img {
    position: absolute;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.6s ease;
}

.product-card:hover .hover-img {
    opacity: 1;
}

.product-card:hover .main-img {
    opacity: 0;
}

.product-name {
    font-family: var(--serif-font);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slick-prev:before,
.slick-next:before {
    color: #000;
}

.slick-btn {
    background: #fff;
    border: 1px solid #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.slick-btn:hover {
    background: #000;
    color: #fff;
}

.product-price {
    font-size: 0.9rem;
    color: var(--muted-color);
}

/* Footer */
footer {
    padding: 60px 0;
    background: #f9f9f9;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
}

.footer-brand-logo-link {
    --logo-w: clamp(118px, 20vw, 170px);
    --logo-h: clamp(34px, 4.8vw, 42px);
    display: block;
    width: var(--logo-w);
    height: var(--logo-h);
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-brand-logo {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    transform: translateY(calc(-50% + 5px));
    display: block;
    filter: brightness(1.35) contrast(1.05);
}

.footer-brand-text {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.9;
    max-width: 280px;
    text-align: left;
    margin: 0;
}

.footer-brand-social {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    justify-content: flex-start;
}

.copyright {
    font-size: 0.8rem;
    color: var(--muted-color);
}

/* Footer grid — desktop 4 columns */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* =====================
   HAMBURGER MENU
   ===================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* nav needs position relative for hamburger positioning */

/* =====================
   MOBILE MEDIA QUERIES
   ===================== */
@media (max-width: 768px) {

    /* Navbar */
    header {
        padding: 8px 0;
    }

    nav {
        justify-content: flex-start;
        padding-right: 46px;
    }

    .logo-link {
        --logo-w: clamp(108px, 34vw, 150px);
        --logo-h: 32px;
    }

    .hamburger {
        display: flex;
        right: 0;
        top: 50%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 60px 20px 40px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
    }

    .nav-links li a {
        display: block;
        padding: 18px 20px;
        font-size: 1rem;
        letter-spacing: 2px;
    }

    /* Dropdown in mobile — always visible */
    .dropdown-menu {
        position: static;
        display: block !important;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        min-width: unset;
        padding: 0;
        background: #f9f9f9;
    }

    .dropdown-menu li a {
        padding: 14px 20px;
        font-size: 0.85rem;
        color: var(--muted-color);
    }

    /* Hero Carousel */
    .hero-slider .slide {
        height: 62vh;
        min-height: 420px;
        max-height: none;
        padding: 40px 24px;
        background-position: center top;
    }

    .hero-content h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 0.75rem;
    }

    /* Product grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-img-wrap,
    .product-img {
        height: 240px;
    }

    .product-name {
        font-size: 0.85rem;
    }

    /* Collection slider */
    .collection-slider .slick-slide>div {
        padding: 5px;
    }

    /* Product detail page */
    .product-detail-wrap {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 20px auto !important;
    }

    .gallery-main {
        aspect-ratio: unset;
        height: 360px;
        object-fit: cover;
    }

    .gallery-thumb {
        width: 55px;
        height: 70px;
    }

    .product-detail-name {
        font-size: 1.2rem;
    }

    /* Products page banner */
    .page-banner {
        padding: 40px 15px;
    }

    .page-banner h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }

    .footer-brand,
    .footer-brand-text,
    .footer-brand-social {
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-brand-logo-link {
        --logo-w: clamp(108px, 34vw, 150px);
        --logo-h: 32px;
    }

    footer .container>div:last-child {
        flex-direction: column;
        text-align: center;
    }

    /* Section title */
    .section-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
        margin: 40px 0 25px;
    }

    /* Hide Slick carousel arrows on mobile — they overflow and break layout */
    .slick-prev,
    .slick-next {
        display: none !important;
    }
}

@media (max-width: 480px) {
    header .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo-link,
    .footer-brand-logo-link {
        --logo-w: clamp(100px, 38vw, 132px);
        --logo-h: 30px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-img-wrap,
    .product-img {
        height: 320px;
    }



    .gallery-main {
        height: 280px;
    }
}


/* Admin Styles */
.admin-container {
    max-width: 1000px;
    margin: 50px auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.btn-black {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}