:root {
    --primary: #8B5FBF;
    --primary-dark: #6B46A3;
    --secondary: #FF6B8B;
    --accent: #FFD166;
    --dark: #2D3748;
    --light: #F7FAFC;
    --gray: #A0AEC0;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4);
}

.btn-secondary {
    background: linear-gradient(to right, var(--secondary), #FF8FA3);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 139, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.4);
}

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

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

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

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

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav ul li a i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.nav ul li a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    margin-right: 20px;
    font-size: 1.3rem;
    color: var(--dark);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary);
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.9), rgba(107, 70, 163, 0.9)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.decoration-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

/* About Mini Section */
.about-mini {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-content p {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: var(--gray);
}

/* Featured Product Section */
.featured-product {
    padding: 100px 0;
    background-color: var(--light);
}

.section-header {
    margin-bottom: 4rem;
}

.featured-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.featured-image {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bestseller-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(to right, var(--accent), #FFE082);
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(255, 209, 102, 0.3);
}

.bestseller-badge i {
    margin-right: 5px;
}

.featured-details {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.featured-details h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.featured-details p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Shop Section */
.shop {
    padding: 100px 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
}

.product-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-description {
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.95rem;
    /* Removed the line-clamp property to show full descriptions */
    overflow: visible;
    max-height: none;
}

.product-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.product-keywords span {
    display: inline-flex;
    align-items: center;
    background-color: rgba(139, 95, 191, 0.1);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-keywords i {
    margin-right: 5px;
    font-size: 0.7rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--light);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(139, 95, 191, 0.05);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-header i {
    transition: var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
    max-height: 500px;
}

.accordion-content p {
    margin: 0;
    color: var(--gray);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content-full {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: var(--shadow);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light);
}

.contact-info {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.contact-item {
    max-width: 300px;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-item .note {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-top: 10px;
}

/* Policy Section */
.policy {
    padding: 50px 0 100px;
    background-color: var(--white);
    text-align: center;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

.policy-content p {
    margin-bottom: 15px;
    color: var(--gray);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--white);
}

.footer-logo span {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--gray);
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* --- MODAL (Shopping Cart) STYLES --- */
.modal {
    display: none;
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    padding-top: 60px;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; 
    padding: 30px;
    border-radius: 15px;
    width: 90%; 
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInModal 0.3s;
}

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

.modal-content h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.close {
    color: var(--gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: var(--secondary);
    text-decoration: none;
}

/* Cart Item Styles */
#cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-top: 1px solid var(--light);
    padding-top: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--light);
}

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

.cart-item-info h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.cart-item-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--dark);
}

.remove-item {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    transition: var(--transition);
}

.remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    color: var(--gray);
    padding: 30px 0;
}

.cart-total {
    padding: 15px 0;
    border-top: 2px solid var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
}

.cart-total span {
    color: var(--secondary);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Notification Pop-up Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}

.notification.success {
    background-color: var(--primary);
}

.notification.error {
    background-color: var(--secondary);
}

.notification.info {
    background-color: var(--dark);
}

/* --- Media Queries (Mobile Responsiveness) --- */
@media (max-width: 900px) {
    .nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Menu Overlay */
    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: var(--primary-dark);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav.active {
        display: block;
        max-height: 300px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav ul li:last-child {
        border-bottom: none;
    }

    .nav ul li a {
        padding: 15px 30px;
        color: var(--white);
        justify-content: center;
    }

    .nav ul li a:hover {
        background-color: var(--primary);
    }

    /* General layout fixes for smaller screens */
    .hero-title {
        font-size: 2.5rem;
    }

    .featured-content, .about-content-full {
        flex-direction: column;
        text-align: center;
    }

    .featured-details, .about-text {
        order: 2;
        max-width: 100%;
    }

    .featured-image, .about-image {
        order: 1;
        margin-bottom: 30px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-info {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        justify-content: space-around;
        gap: 20px;
    }
    
    /* Improved mobile responsiveness for product cards */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-keywords {
        justify-content: center;
    }
    
    .product-keywords span {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-content, .about-content-full {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-keywords span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 400px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .featured-details h2 {
        font-size: 1.8rem;
    }
    
    .product-details h3 {
        font-size: 1.1rem;
    }
    
    .product-keywords {
        gap: 5px;
    }
    
    .product-keywords span {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}