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

:root {
    --primary: #001f3f;
    /* Elegant Deep Navy */
    --secondary: #fdfdfb;
    --accent: #c5a059;
    --text-muted: #555;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--secondary);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.luxury-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

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

ul {
    list-style: none;
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

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

.main-logo {
    height: 70px;
    /* Big initial size */
    width: auto;
    transition: var(--transition);
}

header.scrolled .main-logo {
    height: 45px;
    /* Suitable for navbar on scroll */
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.mobile-toggle {
    display: none;
}

/* Carousel Styles */
.carousel-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #e8e8e3;
    display: flex;
    align-items: center;
}

.carousel-track {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease 0.3s;
}

.carousel-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

/* Carousel Controls */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 40px;
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    bottom: 40px;
    right: 5%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-next {
    right: calc(5% + 60px);
}

.carousel-prev:hover,
.carousel-next:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Product Slider Styles */
.product-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.product-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slider-item {
    flex: 0 0 calc(25% - 22.5px);
    /* 4 items in a row with 30px gap */
    min-width: 250px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--white);
}

/* Collection Grid Styles */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.collection-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

.collection-img-box {
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.collection-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}

.collection-tag {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--accent);
}

.collection-name {
    font-size: 2rem;
    margin-bottom: 15px;
}

.collection-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: underline;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    color: var(--white);
}

.collection-card:hover .collection-link {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial Styles */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    flex: 0 0 calc(33.333% - 20px);
    /* 3 items in a row with 30px gap */
    min-width: 320px;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stars {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.customer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary);
}



.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid var(--primary);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

/* Section Styling */
.section {
    padding: 60px 5%; /* 🔥 REDUCED PADDING FOR TIGHTER LAYOUT */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem; /* 🔥 REDUCED MARGIN UNDER TITLE */
}

/* Shop Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    position: relative;
    overflow: hidden;
    display: flex; /* 🔥 CENTERED CONTENT */
    flex-direction: column;
    align-items: center;
}

.product-link {
    display: block;
    cursor: pointer;
}

.product-info a {
    text-decoration: none;
    color: inherit;
}

.product-info a:hover .product-name {
    color: var(--accent);
}


.product-img-wrapper {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 5;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

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

.product-info {
    text-align: center;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--primary);
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-whatsapp {
    color: var(--primary);
    border: 1px solid #25D366;
    background-color: transparent;
}

.btn-whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--primary);
    transform: scale(1.1);
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-price {
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 5% 40px;
}

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

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: #999;
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

/* Sleek Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-overlay-close {
    position: absolute;
    top: 40px;
    right: 5%;
    font-size: 3rem;
    cursor: pointer;
    color: var(--primary);
    line-height: 1;
}

.search-overlay-content {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.search-input-group {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.search-overlay input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-size: 2.5rem;
    font-family: inherit;
    color: var(--primary);
    outline: none;
}

.search-overlay-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0 10px;
    transition: var(--transition);
}

.search-overlay-btn:hover {
    transform: scale(1.1);
}
.search-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .search-overlay {
        align-items: flex-start; /* 🔥 TOP ALIGN FOR SMALL SEARCH BAR */
        padding-top: 100px;
    }

    .search-overlay-content {
        max-width: 90%;
    }

    .search-input-group {
        border-bottom-width: 1px;
    }

    .search-overlay input {
        font-size: 1.1rem; /* 🔥 SMALLER FONT AS REQUESTED */
        padding: 10px 0;
    }

    .search-overlay-btn {
        font-size: 1.1rem;
        padding-right: 0;
    }

    .search-overlay-close {
        top: 20px;
        right: 20px;
        font-size: 1.8rem;
    }

    .search-hint {
        font-size: 0.7rem;
        letter-spacing: 1px;
        margin-top: 10px;
    }
}

.footer-social a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.nav-icons a {
    color: var(--primary);
    font-size: 1.3rem;
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff3b30; /* 🔥 Premium Red Badge */
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-toast.visible {
    opacity: 1;
    visibility: visible;
    bottom: 50px;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* About Section */
.about-split {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 30px 30px 0 var(--white);
}

/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
    /* Let the keyframe handle the motion */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Delay Utils for staggered reveal */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 2rem;
    overflow: hidden;
}

.whatsapp-floating span {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0;
}

.whatsapp-floating:hover {
    width: 160px;
    border-radius: 30px;
    padding: 0 20px;
    justify-content: flex-start;
}

.whatsapp-floating:hover span {
    max-width: 100px;
    opacity: 1;
    margin-left: 10px;
}

.whatsapp-floating:hover i {
    font-size: 1.8rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-floating i {
    animation: pulse 2s infinite;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .whatsapp-floating:hover {
        width: 140px;
    }
}
/* Mobile Specific Styles */
@media (max-width: 991px) {
    .carousel-container {
        height: auto;
        min-height: 110vh;
        padding-top: 100px;
        /* Increased to account for navbar */
    }

    .carousel-slide {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 60px 5%;
    }

    .carousel-bg {
        position: relative;
        width: 100%;
        height: 400px;
        order: -1;
        margin-bottom: 30px;
    }

    .main-logo {
        height: 45px;
    }

    .hero-content {
        max-width: 100%;
    }

    .slider-item {
        flex: 0 0 calc(50% - 15px);
        /* 2 in a row on tablets */
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card {
        height: 450px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .carousel-dots {
        left: 50%;
        transform: translateX(-50%);
    }

    .carousel-prev,
    .carousel-next {
        display: none;
        /* Hide arrows on mobile for cleaner look */
    }

    .about-split {
        flex-direction: column;
        gap: 40px;
    }

    .about-image img {
        box-shadow: 15px 15px 0 var(--white);
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* We'll use a JS toggle for a real menu, or simple for now */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .testimonial-card {
        flex: 0 0 100%;
        min-width: auto;
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-col:first-child {
        grid-column: span 2;
        margin-bottom: 30px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }

    .slider-item {
        flex: 0 0 calc(50% - 15px);
        min-width: 150px; /* 🔥 RESET MIN-WIDTH FOR 2-COLUMN MOBILE */
    }

    .product-card {
        min-width: 0; /* Clear any constraints */
    }
}