/* Global Styles for CD17 - Pastel Theme */
:root {
    /* New Light & Pastel Palette */
    --primary-color: #6d6d6d;
    /* Soft Charcoal Grey for Text */
    --accent-color: #d4a5a5;
    /* Dusty Rose/Pastel Pink */
    --secondary-accent: #a8d0e6;
    /* Pastel Blue */
    --bg-color: #fcfcfc;
    /* Off-White Background */
    --card-bg: #ffffff;
    --text-color: #555555;

    --header-bg: #ffffff;
    --top-bar-bg: #f2f2f2;
    /* Very Light Grey */
    --top-bar-text: #666666;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadows */
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 80px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    /* Darker grey, not harsh black */
    line-height: 1.2;
}

/* --- New Header Styles (Pastel Theme) --- */

/* Top Light Strip with Dropdown Menu */
.top-bar-strip {
    background-color: var(--top-bar-bg);
    /* Light Grey */
    color: var(--top-bar-text);
    /* Dark Grey Text */
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 2000;
    border-bottom: 1px solid #eaeaea;
}

.top-bar-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    height: 45px;
    /* Slightly taller for comfort */
}

.top-nav {
    height: 100%;
}

.nav-links {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 25px;
}

.nav-links>li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links>li>a {
    color: var(--top-bar-text);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0 10px;
    transition: color 0.3s;
}

.nav-links>li>a:hover {
    color: var(--accent-color);
    /* Pink on hover */
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-width: 240px;
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 3000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    border-bottom: 1px solid #f9f9f9;
    text-transform: none;
    font-weight: 500;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #fafafa;
    color: var(--accent-color);
    padding-left: 25px;
}

.dropdown-menu i {
    width: 25px;
    text-align: center;
    margin-right: 8px;
    color: #ccc;
}

/* WhatsApp Link */
.whatsapp-link {
    color: #25D366;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-link:hover {
    color: #1ebc59;
}

.whatsapp-link i {
    font-size: 1.2rem;
}

/* Main Header Layout */
.main-header-ref {
    background-color: var(--header-bg);
    padding: 20px 0;
    color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Lighter shadow */
}

.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Left Section */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Center Section */
.header-center {
    flex-grow: 1;
    max-width: 600px;
}

.search-wrapper form {
    position: relative;
    display: flex;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 25px;
    border-radius: 30px 0 0 30px;
    /* Rounded pill shape */
    border: 2px solid #f0f0f0;
    border-right: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    background-color: #fdfdfd;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--accent-color);
    background-color: #fff;
}

.search-wrapper button {
    background-color: var(--accent-color);
    /* Pink Search Button */
    border: 2px solid var(--accent-color);
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-wrapper button:hover {
    background-color: #c48f8f;
    /* Darker pink */
    border-color: #c48f8f;
}

/* Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #b0a36e;
    /* Muted Gold */
    white-space: nowrap;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--accent-color);
}

.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-sell {
    background-color: #fff;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sell:hover {
    background-color: var(--accent-color);
    color: #fff;
}


/* --- Category Circles Section --- */
.category-circles {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cat-heading {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 400;
}

.circles-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100px;
}

.circle-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.circle-item:hover .circle-img {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 25px rgba(212, 165, 165, 0.3);
    /* Soft pink shadow */
}

.circle-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #777;
    transition: var(--transition);
}

.circle-item:hover span {
    color: var(--accent-color);
}


/* --- Hero Slider Styles --- */
.hero-slider-section {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s linear;
}

.hero-slide.active .slide-bg {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1));
    /* Much lighter overlay */
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    color: #fff;
    /* May need text shadow if bg is light */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 400;
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    font-weight: 300;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
    background: #fff;
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background: #fff;
    border-color: var(--accent-color);
    transform: scale(1.2);
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.hero-slide.active .animate-text {
    animation-play-state: running;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Section - Image Effects */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--primary-color);
}

.section-title .line {
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

/* Beautiful Product Image Styles - Enhanced for Pastel */
.product-item {
    background-color: #fff;
    border-radius: 15px;
    /* Softer curves */
    transition: var(--transition);
    position: relative;
    /* overflow: hidden; Removed to allow shadow to spill nicely if needed, but wrapper handles it */
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    /* height: 380px;  Removed fixed height */
    aspect-ratio: 1 / 1;
    /* Make it square or 4/3 depending on preference, square is versatile for grid */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    /* Add light border for definition */
    background-color: #fff;
    /* White background for 'contain' images */
}

/* Hover Zoom, Shadow & Filter */
.product-item:hover .product-image-wrapper {
    box-shadow: 0 20px 50px rgba(212, 165, 165, 0.25);
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Prevents cropping, shows full image */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(1.02);
}

/* --- Features Section --- */
.features-section {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid #f9f9f9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns side by side */
    gap: 30px;
    text-align: center;
}

.feature-box {
    padding: 30px;
    background-color: #fdfdfd;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box p {
    color: #777;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.product-item:hover img {
    transform: scale(1.1);
    filter: saturate(1.1) brightness(1.05);
    /* Enhance colors slightly */
}

/* Overlay Effect - Soft Gradient */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(109, 109, 109, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding-bottom: 30px;
}

.product-item:hover .image-overlay {
    opacity: 1;
}

.view-btn {
    padding: 12px 35px;
    background-color: #fff;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.view-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(0) scale(1.05);
}

.product-item:hover .view-btn {
    transform: translateY(0);
}

.product-details {
    padding: 20px 10px;
    text-align: center;
}

.product-details h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.product-details .price {
    font-family: var(--font-body);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer (Light & Clean) */
.main-footer {
    background-color: #fdfdfd;
    color: var(--text-color);
    padding-top: 60px;
    position: relative;
    border-top: 1px solid #f0f0f0;
}

.footer-top-decoration svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: var(--bg-color);
    /* Matches body bg */
    /* This svg might need to be inverted or removed if style is flat */
}

/* Let's simplify footer decoration for pastel theme, maybe just a border */
.footer-top-decoration {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-brand h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-brand p {
    margin-bottom: 25px;
    font-size: 0.95rem;
    max-width: 300px;
    color: #888;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    /* Light grey bg */
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-nav h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #777;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    background: #fff;
    outline: none;
}

.footer-newsletter button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.footer-newsletter button:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Responsive */
@media (max-width: 992px) {
    .header-layout {
        flex-wrap: wrap;
    }

    .header-center {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 15px;
    }

    .header-right {
        gap: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .top-text {
        display: none;
    }

    /* Hide top nav links on mobile for now */
    .mobile-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-slider-section {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }
}