@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Premium Palette (Light) */
    --primary-color: #A34A5E;
    --primary-gradient: linear-gradient(135deg, #A34A5E 0%, #D67C92 100%);
    --gold-accent: #D4AF37;

    --text-dark: #1F1F1F;
    --text-light: #666666;

    --bg-body: #FDFBFB;
    --bg-card: #FFFFFF;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-btn: 50px;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-bs-theme="dark"] {
    --primary-color: #E598AB;
    --primary-gradient: linear-gradient(135deg, #D67C92 0%, #E598AB 100%);

    --text-dark: #F5F5F5;
    --text-light: #A0A0A0;

    /* Cherry Red for Hero Text Override in Dark Mode */
    --hero-text-dark: #D2042D;

    --bg-body: #121212;
    --bg-card: #1E1E1E;

    --glass-bg: rgba(30, 30, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Base Setup */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Glassmorphism Navbar */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: padding 0.3s;
}

.glass-nav.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    color: var(--text-dark) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-icons .btn-link {
    color: var(--text-dark);
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.nav-icons .btn-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Search Bar Trendy */
.search-fancy {
    border-radius: var(--radius-btn);
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2px 15px;
}

.search-fancy input {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
    color: var(--text-dark);
}

/* Hero Section */
/* Hero Section */
/* Hero Section (Carousel) */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    /* Using img tag now, so let height be auto or constrained by image */
    position: relative;
    overflow: hidden;
    /* Strict boundary enforcement */
}

/* Ensure image behaves well */
/* Ensure image behaves well */
.carousel-banner-img {
    width: 100%;
    height: auto;
    display: block;
    /* Responsive height, no crop */
}

/* On large screens, we might want to cap the height so it doesn't take 2 screens */
/* On large screens, we might want to cap the height so it doesn't take 2 screens */
@media (min-width: 992px) {
    .carousel-banner-img {
        height: 65vh;
        object-fit: cover;
        object-position: top center;
        animation: panVertical 10s ease-in-out infinite alternate;
    }
}

@keyframes panVertical {
    from {
        object-position: top center;
    }

    to {
        object-position: bottom center;
    }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: left;
    z-index: 2;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 10;
}

/* Common Typography for Hero */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    /* Solid subtle white */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Softer shadow */
    line-height: 1.1;
    opacity: 0;
    animation: fadeUp 1s forwards 0.3s;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 1s forwards 0.6s;
}

/* Custom Buttons */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(163, 74, 94, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    opacity: 0;
    animation: fadeUp 1s forwards 0.9s;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D67C92 0%, #A34A5E 100%);
    z-index: -1;
    transition: opacity 0.4s;
    opacity: 0;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(163, 74, 94, 0.5);
    color: #fff;
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

/* Category Circles - Modern */
.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
}

.category-circle:hover {
    color: var(--primary-color);
}

.circle-img-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    /* Space for border */
    background: linear-gradient(135deg, rgba(163, 74, 94, 0.1), rgba(163, 74, 94, 0));
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
}

.circle-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-circle:hover .circle-img-wrapper img {
    transform: scale(0.95);
    box-shadow: var(--shadow-md);
}

.category-circle:hover .circle-img-wrapper {
    background: var(--primary-gradient);
    transform: rotate(5deg);
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    position: relative;
}

/* Vertical Line Decoration */
.category-name::after {
    content: '';
    display: block;
    width: 0px;
    height: 2px;
    background: var(--primary-color);
    margin: 5px auto 0;
    transition: width 0.3s;
}

.category-circle:hover .category-name::after {
    width: 20px;
}


/* Product Cards - "Floating Glass" */
.product-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.product-price-old {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Trendy Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
}

/* Media Queries for Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .circle-img-wrapper {
        width: 90px;
        height: 90px;
    }

    /* Mobile Carousel Adjustment */
    .carousel-item {
        /* Let content dictate height */
    }

    .carousel-banner-img {
        /* Let image dictate height */
    }

    .carousel-caption-custom {
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}