/* CSS Variables */
:root {
    --theme-pink: #FF4F81;
    --theme-pink-dark: #d63363;
    --theme-pink-light: #FFF0F5;
    --text-dark: #333;
    --text-grey: #666;
    --bg-light: #f9f9f9;
    --border-color: #eee;
}

body {
    background-color: #fdfdfd;
    font-family: 'Inter', sans-serif;
}

header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 0 5%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-out;
}

.header-hidden {
    transform: translateY(-100%);
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}


/* --- ADD THIS CODE BELOW --- */
.site-logo {
    height: 50px;  /* This restricts the size to fit the header */
    width: auto;   /* This keeps the logo from looking squished */
    object-fit: contain;
}

/* Target the brand name text specifically on the Fashion page */
.brand-name {
    /* Define the pink gradient: Dark magenta -> Theme Pink -> Light Pink */
    background: linear-gradient(to right, #C2185B 0%, var(--theme-pink) 50%, #FFC1E3 100%) !important;

    /* Standard and Webkit properties to clip the background to the text shape */
    -webkit-background-clip: text !important;
    background-clip: text !important;

    /* Make the actual text fill transparent so the gradient background shows through */
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; /* Fallback */
}

/* --- Nav Links & Mega Menu --- */
.nav-links {
    display: none;
}

@media(min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 30px;
        align-items: center;
        flex: 1;
        height: 100%;
    }

    /* Static positioning allows mega menu to be full width relative to header */
    .nav-item {
        position: static; 
        height: 100%;
        display: flex;
        align-items: center;
    }

    .nav-links > a,
    .nav-item .menu-text-trigger {
        font-weight: 500;
        color: var(--text-dark);
        cursor: pointer;
        text-decoration: none;
        height: 100%;
        display: flex;
        align-items: center;
        border-bottom: 2px solid transparent;
        transition: color 0.3s, border-color 0.3s;
    }

    .nav-links > a:hover,
    .nav-item:hover .menu-text-trigger {
        color: var(--theme-pink);
        border-color: var(--theme-pink);
    }
}

/* --- MEGA MENU --- */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px 5%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-column h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--theme-pink);
    display: inline-block;
    padding-bottom: 5px;
}

.menu-column ul {
    list-style: none;
    padding: 0;
}

.menu-column ul li { margin-bottom: 12px; }

.menu-column ul li a {
    color: #666;
    font-size: 15px;
    transition: all 0.2s;
    text-decoration: none;
}

.menu-column ul li a:hover {
    color: var(--theme-pink);
    padding-left: 5px;
}

/* --- Header Icons --- */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1; 
    justify-content: flex-end; 
}

.icon-btn {
    font-size: 1.2rem;
    color: var(--text-dark);
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--theme-pink);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- Inline Search in Header --- */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-trigger {
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
}

.search-trigger:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.search-expand {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0);
}

.search-expand.active {
    width: 300px;
    opacity: 1;
    padding: 0 45px 0 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-expand input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 0.95rem;
    background: transparent;
}

.search-close {
    position: absolute;
    right: 15px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.search-close:hover {
    color: var(--accent);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1500;
    animation: slideDown 0.3s ease;
}

.search-results-dropdown.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--bg-light);
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item i {
    color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}


/* --- Page Title Header --- */
.care-header {
    background-color: var(--theme-pink-light);
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 30px;
}

.care-header h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.care-header p {
    color: var(--text-grey);
    font-size: 1.1rem;
}

/* --- Main Layout --- */
.care-container {
    max-width: 900px; /* Narrower for better focus */
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* --- Navigation Tabs (Horizontal) --- */
.care-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.tab-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.tab-btn i {
    font-size: 1rem;
}

/* Active Tab Style */
.tab-btn.active, .tab-btn:hover {
    background: var(--theme-pink);
    color: white;
    border-color: var(--theme-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 79, 129, 0.3);
}

/* --- Content Area --- */
.care-content-wrapper {
    min-height: 400px; /* Prevents jumpiness */
}

/* Sections Hidden by Default */
.care-section {
    display: none; /* Hides everything initially */
    animation: fadeIn 0.4s ease-in-out;
}

/* Active Section Visible */
.care-section.active {
    display: block;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-size: 1.8rem;
}

.section-header p {
    color: var(--text-grey);
}

/* --- Tracking Form Styling --- */
.tracking-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--theme-pink);
}

.care-btn {
    width: 100%;
    background: var(--theme-pink);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.care-btn:hover {
    background: var(--theme-pink-dark);
}

/* --- Returns Styling --- */
.policy-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.policy-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-list li i {
    color: var(--theme-pink);
}

.care-btn-outline {
    background: transparent;
    color: var(--theme-pink);
    border: 2px solid var(--theme-pink);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.care-btn-outline:hover {
    background: var(--theme-pink);
    color: white;
}

/* --- Shipping Table --- */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.shipping-table th, 
.shipping-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.shipping-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- FAQ Styling --- */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    color: var(--theme-pink);
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 18px 18px 18px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    background-color: #fafafa;
}

/* --- Contact Cards --- */
.contact-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.c-card {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--theme-pink);
    transition: transform 0.3s;
}

.c-card:hover {
    transform: translateY(-5px);
}

.c-card i {
    font-size: 2rem;
    color: var(--theme-pink);
    margin-bottom: 15px;
}

.c-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.c-card span {
    color: var(--text-grey);
    font-size: 0.95rem;
}
/* Applies to both Email and Maps cards */
a.c-card {
    text-decoration: none; /* Removes blue underline */
    color: inherit;        /* Keeps text dark/grey */
    cursor: pointer;
    display: block;        /* Ensures proper spacing */
}

a.c-card:hover {
    background-color: #FFF0F5; /* Hover effect */
    transform: translateY(-5px);
}
/* --- Responsive --- */
@media (max-width: 768px) {
    .contact-options {
        flex-direction: column;
    }
    .care-tabs {
        gap: 10px;
    }
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        flex: 1 1 40%; /* 2 buttons per row */
        justify-content: center;
    }
}

/* --- Footer --- */
footer { background-color: #0f172a; color: #cbd5e1; padding: 4rem 5% 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #f8fafc; margin-bottom: 25px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; transition: 0.3s; text-decoration: none; }
.footer-col ul li a:hover { color: var(--theme-pink); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); color: #f8fafc; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }
.social-links a:hover { background: var(--theme-pink); transform: translateY(-3px); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: #64748b; }

@media (max-width: 768px) {
    .mega-menu { position: fixed; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px); overflow-y: auto; }
    .mega-menu-content { flex-direction: column; gap: 30px; }
    .hero-text-content h1 { font-size: 2.5rem; }
    .filters { flex-direction: column; align-items: flex-start; }
    .filter-controls { width: 100%; justify-content: space-between; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}
/* ==================== CHATBOT STYLES ==================== */

/* Floating Button */
.chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007BFF;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 9999;
    /* Smooth transition for hover effects */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Effect: Scale up and tilt slightly */
.chatbot-trigger:hover {
    transform: scale(1.1) rotate(-10deg);
    background-color: #0056b3;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* The Icon Element itself */
.chatbot-trigger i {
    transition: transform 0.3s ease;
}

/* ==================== WAVING ANIMATION ==================== */
/* Define the waving motion */
@keyframes wave-hand {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* Class to apply the animation (added via JS) */
.icon-waving {
    animation: wave-hand 2s infinite ease-in-out;
}

/* ... Keep your existing Window/Message styles below ... */
.chatbot-window { 
    /* ... existing styles ... */
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #007BFF;
    font-family: 'Inter', sans-serif;
}
/* ... rest of your CSS ... */

.chatbot-window.active {
    display: flex;
}

/* Header */
.chatbot-header {
    background: #007BFF; /* Primary Blue */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

#closeChatbot {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #e9ecef; /* Lighter background for messages */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Dark bubble for the USER so it stands out */
.user-message {
    background-color: #333; /* Dark Grey background */
    color: #fff;            /* White text */
    align-self: flex-end;   /* Pushes to the right */
    text-align: right;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 80%;
    margin-bottom: 5px;     /* Small gap between messages */
    display: block;         /* Ensures it takes up space */
}

/* Light bubble for the BOT */
.bot-message {
    background-color: #e5e7eb; /* Light Grey/Blue background */
    color: #1f2937;            /* Dark text */
    align-self: flex-start;    /* Pushes to the left */
    text-align: left;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 80%;
    margin-bottom: 5px;
    display: block;
}

/* Input Area */
.chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ced4da;
    background: white;
    align-items: center;
}

#chatbotInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

#chatbotInput:focus {
    border-color: #007BFF;
}

#sendChatbotMsg {
    background: none;
    border: none;
    color: #007BFF; /* Blue Send Icon */
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

#sendChatbotMsg:hover {
    color: #0056b3;
}