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

:root {
    --primary-pink: #E91E63;
    --primary-purple: #9C27B0;
    --secondary-pink: #F48FB1;
    --cream: #FFF5F5;
    --dark-gray: #333333;
    --text-color: #2C2C2C;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    font-style: italic;
}

.nav-search {
    display: flex;
    gap: 0.5rem;
}

.nav-search input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-search button {
    background-color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-pink);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#cartCount {
    background-color: var(--white);
    color: var(--primary-pink);
    padding: 0.2rem 0.6rem;
    border-radius: 50%;
    font-weight: bold;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.page {
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFDEE9 0%, #B5FFFC 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-purple);
    font-weight: bold;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* Featured Section */
.featured-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-purple);
    font-size: 2rem;
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.carousel-controls button {
    background-color: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.carousel-controls button:hover {
    background-color: var(--primary-purple);
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.featured-card {
    min-width: 100%;
    padding: 3rem;
    background: var(--white);
    display: flex;
    gap: 3rem;
    align-items: center;
}

.featured-card img {
    max-width: 450px;
    max-height: 450px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-card-content {
    flex: 1;
}

.featured-card-content h3 {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-card-content p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

/* Category Section */
.category-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.category-section h2 {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(135deg, var(--white) 0%, #FFE5EC 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.25);
}

.category-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-purple);
}

/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.products-section h2 {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 2rem;
}

#categoryFilter, #categoryFilterPage {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-pink);
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    background: var(--white);
    color: var(--primary-purple);
}

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

.product-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.25);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: var(--white);
    padding: 1rem;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

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

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.view-button {
    flex: 1;
    background-color: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 0.7rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.view-button:hover {
    background-color: var(--primary-purple);
    color: var(--white);
}

.add-button {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    color: var(--white);
    border: none;
    padding: 0.7rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s;
}

.add-button:hover {
    transform: scale(1.05);
}

/* Trust Section */
.trust-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #FFE5EC 0%, #E3F2FD 100%);
    border-radius: 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-item h3 {
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--dark-gray);
}

/* Page Header */
.page-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    color: var(--primary-purple);
    font-size: 2.5rem;
}

/* Product Detail Page */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.back-button {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 2rem;
    font-weight: 500;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.product-image-large {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
}

.product-image-large img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 15px;
}

.product-info-large h1 {
    color: var(--primary-purple);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.detail-description {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    gap: 1rem;
}

.buy-button {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s;
}

.buy-button:hover {
    transform: scale(1.05);
}

.add-cart-button {
    flex: 1;
    background-color: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-cart-button:hover {
    background-color: var(--primary-purple);
    color: var(--white);
}

/* Cart Page */
#cartContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 2rem;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cart-item-info h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-pink);
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity button {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-quantity span {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.cart-item-total {
    color: var(--primary-pink);
    font-weight: bold;
    font-size: 1.3rem;
    text-align: right;
}

.cart-remove {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    text-align: right;
}

.cart-summary h2 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.summary-total {
    font-weight: bold;
    color: var(--primary-pink);
    font-size: 1.5rem;
}

.checkout-button {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.checkout-button:hover {
    transform: scale(1.05);
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: var(--dark-gray);
}

.empty-cart h2 {
    margin-bottom: 1rem;
}

/* Checkout Page */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.checkout-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.checkout-form h2 {
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.checkout-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 15px;
    transition: all 0.3s;
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, #FFE5EC 0%, #E3F2FD 100%);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.payment-name {
    font-weight: 500;
    color: var(--primary-purple);
}

.order-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
}

.order-summary h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

#checkoutSummary {
    margin-bottom: 1.5rem;
}

/* Success Page */
.success-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-container h1 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.success-container p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

#orderId {
    font-weight: bold;
    color: var(--primary-pink);
}

.continue-shopping {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 2rem;
    transition: transform 0.3s;
}

.continue-shopping:hover {
    transform: scale(1.05);
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.policy-container h1 {
    color: var(--primary-purple);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.policy-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.policy-content h2 {
    color: var(--primary-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content h3 {
    color: var(--primary-pink);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p, .policy-content ul, .policy-content ol {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul, .policy-content ol {
    margin-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-search input {
        width: 100%;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .featured-card {
        flex-direction: column;
        text-align: center;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item img {
        margin: 0 auto;
    }

    .payment-methods {
        flex-direction: column;
    }
}
