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

:root {
    --primary-color: #f8a5c2;
    --secondary-color: #c44569;
    --accent-color: #f78fb3;
    --light-color: #fff9fb;
    --dark-color: #3d3d3d;
    --text-color: #444;
    --light-pink: #f8eef2;
    --medium-pink: #f3d1dc;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    font-weight: 600;
}

.brand-name {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-pink);
    transform: translateY(-3px);
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 20px;
}

.hero-images {
    flex: 1;
    display: flex;
    min-width: 300px;
    gap: 1rem;
}

.hero-img {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.hero-img:first-child {
    margin-top: -2rem;
}

.hero-img:last-child {
    margin-top: 2rem;
}

/* Featured Earrings */
/* Featured Earrings Section */
.featured-section {
    padding: 4rem 0;
    background-color: var(--light-pink);
    text-align: center;
}

.featured-earrings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Optional: Add container if not already present */
.featured-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure product cards don't stretch too much */
.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding-bottom: 1.5rem;
    max-width: 375px; /* Optional: limit max width */
    margin: 0 auto; /* Centers card within grid cell */
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: auto;
    width: 280px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.product-card h3 {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.product-card .btn-secondary {
    margin: 0 1rem;
    width: calc(100% - 2rem);
}

/* How to Order Section */
.order-process {
    padding: 4rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Earings Page Specific Styles */
.earings-page .page-header {
    text-align: center;
    padding: 3rem 0 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--dark-color);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* 4x3 Grid Layout for Earings */
.earings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Ensure product cards on earings page have consistent height */
.earings-page .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.earings-page .product-image {
    height: 220px;
    flex-shrink: 0;
}

.earings-page .product-card h3 {
    flex-grow: 0;
}

.earings-page .price {
    flex-grow: 0;
}

.earings-page .product-card .btn-secondary {
    margin-top: auto;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: white;
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--light-pink);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 5px;
    color: var(--dark-color);
}

/* Order CTA Section */
.order-cta {
    background-color: var(--light-pink);
    padding: 3rem 0;
    text-align: center;
    margin-top: 2rem;
}

.order-cta h2 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.order-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    min-width: 220px;
}

/* 4x3 Grid Layout for Earings */
.earings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Ensure product cards on earings page have consistent height */
.earings-page .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.earings-page .product-image {
    height: 220px;
    flex-shrink: 0;
}

.earings-page .product-card h3 {
    flex-grow: 0;
    text-align: center;
}

.earings-page .price {
    flex-grow: 0;
    text-align: center;
}

.earings-page .product-card .btn-secondary {
    margin-top: auto;
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Responsive Design for 4x3 Grid */
@media (max-width: 1200px) {
    .earings-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    }
}

@media (max-width: 992px) {
    .earings-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 576px) {
    .earings-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow: hidden;
    display: none;
}

.chat-widget.active {
    display: block;
}

.chat-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    color: white;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
    padding: 0.8rem;
    border-radius: 10px;
}

.message.bot {
    background-color: var(--light-pink);
    align-self: flex-start;
}

.message.user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: none;
    font-family: 'Poppins', sans-serif;
}

.send-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    width: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background-color: var(--accent-color);
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.chat-toggle:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .brand-name {
        font-size: 3rem;
    }
    
    .chat-widget {
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .hero-img {
        height: 300px;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .chat-toggle {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
