:root {
    --primary: #c9506c;
    --primary-dark: #a83b52;
    --primary-light: #e36882;
    --secondary: #f4a261;
    --accent: #e9c46a;
    --dark: #2b2d42;
    --light: #fdf6f0;
    --gray: #8d99ae;
    --gray-light: #edf2f4;
    --shadow: 0 4px 12px rgba(201, 80, 108, 0.12);
    --shadow-lg: 0 10px 30px rgba(201, 80, 108, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    display: flex;
    gap: 1.5rem;
}

.cart-icon, .favorites-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--dark);
    transition: var(--transition);
}

.cart-icon:hover, .favorites-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.cart-count, .favorites-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero {
    height: 600px;
    margin-bottom: 4rem;
}

.hero .swiper {
    height: 100%;
}

.hero .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 80, 108, 0.7), rgba(233, 196, 106, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-product-price {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.discounted-price {
    font-size: 1.3rem;
    text-decoration: line-through;
    opacity: 0.8;
}

.final-price {
    font-size: 2rem;
    font-weight: 700;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Categories */
.category-section {
    margin-bottom: 4rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.category-btn {
    background: white;
    border: 2px solid var(--gray-light);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.category-btn i {
    font-size: 2rem;
    color: var(--primary);
}

.category-btn:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.category-btn.active i {
    color: white;
}

/* Products */
.products-section {
    margin-bottom: 4rem;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stock-badge, .discount-badge {
    position: absolute;
    top: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.stock-badge {
    left: 10px;
    background: var(--secondary);
    color: white;
}

.discount-badge {
    right: 10px;
    background: #ef4444;
    color: white;
}

.product-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-actions-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.btn-favorite {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--dark);
}

.btn-favorite:hover, .btn-favorite.active {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-rating {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price.discounted {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 1rem;
}

.product-final-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-to-cart {
    background: var(--gradient-primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    transform: scale(1.1);
}

.btn-add-to-cart.added {
    background: #10b981;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--gray);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.cart-item-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quantity-control {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-light);
    padding: 0.3rem;
    border-radius: 6px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: none;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

.remove-item {
    color: #ef4444;
    cursor: pointer;
    padding: 0.3rem;
}

.cart-summary {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-light);
    background: var(--gray-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--dark);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-checkout, .btn-clear-cart {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-checkout {
    background: var(--gradient-primary);
    color: white;
}

.btn-checkout:hover {
    transform: translateY(-2px);
}

.btn-clear-cart {
    background: white;
    border: 2px solid var(--gray-light);
    color: var(--dark);
}

.btn-clear-cart:hover {
    background: #ef4444;
    color: white;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
}