@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* --- Dark Modern Pink Palette --- */
    --c-bg-dark: #1a0b14;
    /* Very dark purple/black */
    --c-bg-card: #2a1220;
    /* Card background */
    --c-bg-glass: rgba(42, 18, 32, 0.7);
    /* Glass effect */

    --c-primary: #ff1493;
    /* Deep Pink */
    --c-secondary: #ff69b4;
    /* Hot Pink */
    --c-accent: #ffb6c1;
    /* Light Pink */

    --c-text-main: #ffffff;
    --c-text-muted: #dcd0d8;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --shadow-glow: 0 0 20px rgba(255, 20, 147, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--c-bg-dark);
    color: var(--c-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* For animations */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
    color: var(--c-secondary);
}

p {
    color: var(--c-text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-padding {
    padding: 6rem 0;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: all 0.4s var(--ease);
}

nav.scrolled {
    background: rgba(26, 11, 20, 0.85);
    /* Dark Glass */
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--c-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

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

/* Logo Styling */
.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: transparent;
    transition: transform 0.3s ease;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--c-secondary);
}

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

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

.nav-icons a {
    font-size: 1.2rem;
    margin-left: 1.5rem;
    color: var(--c-text-main);
    transition: transform 0.3s ease;
}


/* Custom Scrollbar for Reviews */
/* Custom Scrollbar for Reviews */
.reviews-wrapper {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    /* Custom Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--c-primary) rgba(255, 255, 255, 0.05);
}

.reviews-wrapper::-webkit-scrollbar {
    width: 6px;
}

.reviews-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.reviews-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--c-primary);
    border-radius: 4px;
}

.nav-icons a:hover {
    color: var(--c-primary);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 20, 147, 0.6);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-soft:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
    /* Darken for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 2rem;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--c-accent);
    margin-bottom: 1rem;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* Product Cards - Zen Boutique Redesign */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.product-card {
    background: var(--c-bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 20, 147, 0.3);
}

.product-image {
    height: 200px;
    /* Reduced specific height */
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    opacity: 1;
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text-main);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}

.product-description {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
    /* Pushes footer down */
    opacity: 0.8;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-primary);
}

.product-card .btn-soft {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    /* Less rounded for modern look */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.product-card .btn-soft:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
    transform: none;
}

/* Dark Inputs */
input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    font-family: var(--font-body);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: #0f050b;
    /* Even darker */
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

footer a:hover {
    color: var(--c-primary);
}

/* Responsive */
/* Simplified */
h1 {
    font-size: 2.5rem;
}

.hero {
    padding: 0 1rem;
}


/* Cart & Checkout */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    background: var(--c-bg-card);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.cart-item-name {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.cart-item-price {
    color: var(--c-primary);
    font-weight: 600;
}

.cart-summary {
    background: var(--c-bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--c-text-muted);
}

.checkout-section {
    background: var(--c-bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

/* Marquee Carousel */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: fit-content;
    gap: 2rem;
    will-change: transform;
    /* Animation handled by GSAP */
}

/* Ensure cards in marquee have fixed width */
.marquee-content .product-card {
    min-width: 280px;
    /* Wider for carousel presence */
    flex-shrink: 0;
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
    .marquee-content .product-card {
        min-width: 220px;
    }
}

/* Responsive Cart */
@media (max-width: 900px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
}

/* Category Carousel */
.category-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
}

.category-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 1rem;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Firefox */
}

.category-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-item {
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Responsive Layouts --- */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.mobile-only-item {
    display: none;
}

@media (max-width: 768px) {

    /* Navbar Components */
    .hamburger {
        display: block;
        order: 3;
        /* Rightmost */
        z-index: 1001;
        /* Above menu */
    }

    .mobile-cart-icon {
        display: block !important;
        font-size: 1.2rem;
        order: 2;
        /* Middle */
    }

    .desktop-icons {
        display: none !important;
    }

    /* Mobile Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        height: 100vh;
        width: 100%;
        /* Full width for immersive feel */
        background: rgba(26, 11, 20, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem;
        backdrop-filter: blur(15px);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li.mobile-close {
        display: block !important;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Larger font for touch */
        font-weight: 600;
    }

    .mobile-only-item {
        display: block;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
        margin-top: 2rem;
        width: 80%;
    }

    .mobile-only-item a {
        display: block;
        margin: 1rem 0;
        font-size: 1.1rem;
        color: var(--c-text-muted);
    }

    /* Responsive About Section */
    /* Target the grid container in .container */
    .section-padding .container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* About Image Sizing on Mobile */
    .section-padding .container>div img {
        height: 300px !important;
        /* Fixed height for consistency */
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Responsive Hero */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}