@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Poppins:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #f5f5f5;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-links {
    flex: 1;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #d4a5a5;
}

.logo {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 3px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}

.logo img {
    height: 32px;
}

.nav-right {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
}

.cart-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 1.5px;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.cart-btn:hover {
    background: #d4a5a5;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #d4a5a5;
}

/* Auth Links */
.auth-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-link {
    text-decoration: none;
    color: #333;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-link:hover {
    color: #d4a5a5;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #333;
    font-weight: 500;
    letter-spacing: 1px;
}

.user-btn:hover {
    color: #d4a5a5;
}

.user-btn .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #d4a5a5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 10px 0;
    display: none;
    z-index: 100;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.3s;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #f5f5f5;
    color: #d4a5a5;
}

.dropdown-menu .divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    padding: 80px 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-left {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 64px;
    font-weight: 400;
    font-style: italic;
    color: #d4a5a5;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

.hero-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #d4a5a5;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #c89393;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 165, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

.hero-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.image-placeholder {
    font-size: 120px;
}

.hero-right {
    flex: 0.5;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vertical-text {
    writing-mode: vertical-rl;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 8px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.hero-badge,
.discount-badge {
    background: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.floating-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.petal {
    position: absolute;
    font-size: 30px;
    opacity: 0;
    top: -10%;
}

.petal:nth-child(1) {
    left: 5%;
    font-size: 22px;
    animation: fall 8s infinite linear;
    animation-delay: 0.5s;
}

.petal:nth-child(2) {
    left: 15%;
    font-size: 28px;
    animation: fall2 12s infinite linear;
    animation-delay: 2.3s;
}

.petal:nth-child(3) {
    left: 25%;
    font-size: 18px;
    animation: fall 9s infinite linear;
    animation-delay: 4.1s;
}

.petal:nth-child(4) {
    left: 35%;
    font-size: 32px;
    animation: fall3 11s infinite linear;
    animation-delay: 1.7s;
}

.petal:nth-child(5) {
    left: 45%;
    font-size: 24px;
    animation: fall 7s infinite linear;
    animation-delay: 5.8s;
}

.petal:nth-child(6) {
    left: 55%;
    font-size: 20px;
    animation: fall2 10s infinite linear;
    animation-delay: 3.2s;
}

.petal:nth-child(7) {
    left: 65%;
    font-size: 26px;
    animation: fall3 8.5s infinite linear;
    animation-delay: 6.4s;
}

.petal:nth-child(8) {
    left: 75%;
    font-size: 30px;
    animation: fall 13s infinite linear;
    animation-delay: 0.8s;
}

.petal:nth-child(9) {
    left: 85%;
    font-size: 19px;
    animation: fall2 9.5s infinite linear;
    animation-delay: 4.6s;
}

.petal:nth-child(10) {
    left: 92%;
    font-size: 25px;
    animation: fall 11s infinite linear;
    animation-delay: 7.2s;
}

.petal:nth-child(11) {
    left: 8%;
    font-size: 21px;
    animation: fall3 10s infinite linear;
    animation-delay: 8.5s;
}

.petal:nth-child(12) {
    left: 42%;
    font-size: 27px;
    animation: fall2 8s infinite linear;
    animation-delay: 9.1s;
}

@keyframes fall {
    0% {
        top: -10%;
        opacity: 0;
        transform: rotate(0deg) translateX(0);
    }

    5% {
        opacity: 0.6;
    }

    95% {
        opacity: 0.6;
    }

    100% {
        top: 110%;
        opacity: 0;
        transform: rotate(360deg) translateX(20px);
    }
}

@keyframes fall2 {
    0% {
        top: -10%;
        opacity: 0;
        transform: rotate(0deg) translateX(0);
    }

    5% {
        opacity: 0.5;
    }

    50% {
        transform: rotate(180deg) translateX(-30px);
    }

    95% {
        opacity: 0.5;
    }

    100% {
        top: 110%;
        opacity: 0;
        transform: rotate(320deg) translateX(15px);
    }
}

@keyframes fall3 {
    0% {
        top: -10%;
        opacity: 0;
        transform: rotate(0deg) translateX(0);
    }

    5% {
        opacity: 0.7;
    }

    25% {
        transform: rotate(90deg) translateX(25px);
    }

    75% {
        transform: rotate(270deg) translateX(-20px);
    }

    95% {
        opacity: 0.7;
    }

    100% {
        top: 110%;
        opacity: 0;
        transform: rotate(400deg) translateX(10px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Products Section */
.products {
    padding: 100px 0;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 400;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-bottom: 60px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
}

/* Products Loading State */
.products-loading {
    text-align: center;
    padding: 60px 20px;
}

.products-loading p {
    color: #888;
    margin-top: 20px;
    font-size: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0e6e6;
    border-top: 4px solid #d4a5a5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Products Empty State */
.products-empty {
    text-align: center;
    padding: 80px 20px;
}

.products-empty .empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.products-empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.products-empty p {
    color: #888;
    margin-bottom: 30px;
}

/* Category Blocks */
.category-block {
    margin-bottom: 50px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0e6e6;
}

.no-products {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
    background: #fdf6f6;
    border-radius: 10px;
}

#allCategorySections {
    margin-top: 40px;
}

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

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%;
    position: relative;
}

/* Out of Stock Product Card */
.product-card.out-of-stock {
    opacity: 0.85;
}

.product-card.out-of-stock .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.out-of-stock-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

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

.product-image {
    height: 250px;
    background: linear-gradient(135deg, #ffeef0 0%, #f5e6e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image .image-placeholder {
    font-size: 100px;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d4a5a5;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.product-badge.out-of-stock {
    background: #888;
}

.product-category {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4a5a5;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.product-info p {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 24px;
    font-weight: 500;
    color: #d4a5a5;
    font-family: 'Poppins', sans-serif;
}

.add-to-cart {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.add-to-cart:hover {
    background: #d4a5a5;
    transform: scale(1.05);
}

.add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Product Card Colors Preview */
.product-colors-preview {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 15px;
}

.product-colors-preview .color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #eee;
    transition: transform 0.2s;
}

.product-colors-preview .color-dot:hover {
    transform: scale(1.2);
}

.product-colors-preview .color-more {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* Multi-image Badge */
.multi-image-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Product Card Clickable */
.product-card {
    cursor: pointer;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    color: #d4a5a5;
    font-size: 18px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

.footer-col p {
    line-height: 1.8;
    font-size: 14px;
    color: #ccc;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.footer-col ul li a:hover {
    color: #d4a5a5;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.social-links a:hover {
    color: #d4a5a5;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

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

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

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

#cartItems {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.cart-total {
    margin: 20px 0;
    font-size: 20px;
    text-align: right;
    color: #d4a5a5;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.checkout-btn {
    width: 100%;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        font-size: 24px;
    }

    .hero-title {
        font-size: 40px;
    }

    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}