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

:root {
    --baby-pink: #FFE4E9;
    --light-pink: #FFD1DC;
    --medium-pink: #FFB6C1;
    --hot-pink: #FF69B4;
    --deep-pink: #FF1493;
    --white: #FFFFFF;
    --cream: #FFF5F7;
    --text-dark: #4A4A4A;
    --text-light: #777777;
    --shadow: rgba(255, 182, 193, 0.3);
}



body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--baby-pink) 0%, var(--cream) 50%, var(--light-pink) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="0" y="20" font-size="20">❤️</text></svg>') 10 10, auto;
}

/* Interactive elements cursor */
.seasonal-deals-btn, .logo, #settingsIcon, #cartIcon, button, .product-card, a {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="0" y="20" font-size="20">💖</text></svg>') 10 10, pointer !important;
}

.fonts-not-loaded {
    visibility: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--light-pink);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none; /* Remove underline from the logo link */
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo h1 {
    font-family: 'Fredoka', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-pink);
    text-shadow: 2px 2px 4px var(--shadow);
}

/* Cart Styles */
.cart-container {
    position: relative;
}

.seasonal-deals-btn {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--hot-pink) 0%, var(--deep-pink) 100%);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    margin-right: 1rem; /* Space between this button and settings icon */
    font-family: 'Nunito', sans-serif;
}



.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--hot-pink) 0%, var(--deep-pink) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.secondary-btn {
    background: var(--light-pink);
    color: var(--deep-pink);
    border: 2px solid var(--medium-pink);
}

.secondary-btn:hover {
    background: var(--medium-pink);
    color: white;
    transform: translateY(-2px);
}

.seasonal-deals-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.settings-icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--light-pink);
}

.settings-icon-wrapper:hover {
    background: var(--medium-pink);
    transform: scale(1.1);
}

.settings-icon {
    width: 32px;
    height: 32px;
    color: var(--deep-pink);
}

/* Settings Dropdown */
.settings-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.4);
    padding: 1.5rem;
    display: none;
    animation: slideDown 0.3s ease;
    border: 3px solid var(--light-pink);
}

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

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px dashed var(--light-pink);
}

.settings-header h3 {
    font-family: 'Fredoka', cursive;
    color: var(--deep-pink);
    font-size: 1.25rem;
}

.close-settings {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-settings:hover {
    color: var(--hot-pink);
}

.settings-content p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-pink);
    border-radius: 12px;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    text-align: left;
}

.theme-btn:hover {
    background: var(--light-pink);
    color: var(--deep-pink);
    transform: translateX(5px);
}

.theme-btn.light-blue {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-color: #64B5F6;
}

.theme-btn.light-purple {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    border-color: #BA68C8;
}

.theme-btn.light-mint {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #81C784;
}

.theme-btn.iridescent {
    background: linear-gradient(135deg, #E0F7FA 0%, #F3E5F5 25%, #FFF9C4 50%, #FFEBEE 75%, #E8EAF6 100%);
    border-color: #9FA8DA;
}

.theme-btn.cream-yellow {
    background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
    border-color: #FBC02D;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--light-pink);
}

.cart-icon-wrapper:hover {
    background: var(--medium-pink);
    transform: scale(1.1);
}

.tote-bag-icon {
    width: 32px;
    height: 32px;
    color: var(--deep-pink);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--hot-pink);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.4);
    padding: 1.5rem;
    display: none;
    animation: slideDown 0.3s ease;
    border: 3px solid var(--light-pink);
}

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

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px dashed var(--light-pink);
}

.cart-header h3 {
    font-family: 'Fredoka', cursive;
    color: var(--deep-pink);
    font-size: 1.25rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart:hover {
    color: var(--hot-pink);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
    font-style: italic;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--cream);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--light-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.cart-item-qty {
    font-size: 0.8rem;
    color: var(--text-light);
}

.remove-item {
    background: var(--light-pink);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--hot-pink);
    font-size: 1rem;
    transition: all 0.2s;
}

.remove-item:hover {
    background: var(--hot-pink);
    color: white;
}

.cart-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--light-pink);
}

.cart-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
}

.clear-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--medium-pink) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    font-family: 'Nunito', sans-serif;
}

.clear-cart-btn:hover {
    background: linear-gradient(135deg, var(--medium-pink) 0%, var(--hot-pink) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 228, 233, 0.6) 100%);
    margin: 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 32px var(--shadow);
}

.hero-content h2 {
    font-family: 'Fredoka', cursive;
    font-size: 2.5rem;
    color: var(--deep-pink);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px var(--shadow);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Heart Chain Decoration */
.heart-chain {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
}

.heart-chain-svg {
    width: 100%;
    height: 60px;
    overflow: visible;
}

.chain-path {
    filter: drop-shadow(0 2px 4px rgba(255, 182, 193, 0.4));
}

.heart-text {
    font-size: 24px;
    animation: heartbeat 1.5s ease-in-out infinite;
    cursor: default;
}

.heart-text:nth-of-type(2n+1) { animation-delay: 0s; }
.heart-text:nth-of-type(2n+2) { animation-delay: 0.2s; }
.heart-text:nth-of-type(2n+3) { animation-delay: 0.4s; }
.heart-text:nth-of-type(2n+4) { animation-delay: 0.6s; }
.heart-text:nth-of-type(2n+5) { animation-delay: 0.8s; }

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.section-title {
    font-family: 'Fredoka', cursive;
    font-size: 2rem;
    color: var(--deep-pink);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '🎀';
    margin-left: 0.5rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-family: 'Fredoka', cursive;
    font-size: 1.75rem;
    color: var(--deep-pink);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.category-title::before,
.category-title::after {
    content: '💕';
    margin: 0 0.5rem;
}

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

/* Product Card */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 182, 193, 0.5);
    border-color: var(--light-pink);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-family: 'Fredoka', cursive;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--medium-pink) 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--medium-pink) 0%, var(--hot-pink) 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: white;
    margin-top: 3rem;
    border-top: 3px solid var(--light-pink);
}

.footer p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.footer-note {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .hero {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .cart-dropdown {
        width: 280px;
        right: -1rem;
    }
}

/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 182, 193, 0.6);
    backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
    transform: scale(0.9) translateY(20px);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid var(--light-pink);
    border: 4px solid var(--light-pink);
}

.product-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--light-pink);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--deep-pink);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--hot-pink);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-pink) 50%, var(--medium-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    min-height: 400px;
    border-radius: 26px 0 0 26px;
}

.modal-details {
    padding: 2rem;
    overflow-y: auto;
    max-height: 500px;
}

.modal-title {
    font-family: 'Fredoka', cursive;
    font-size: 1.75rem;
    color: var(--deep-pink);
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hot-pink);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.detail-section {
    background: var(--cream);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-section h4 {
    font-family: 'Fredoka', cursive;
    color: var(--deep-pink);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.detail-section p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.4rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '💕';
    position: absolute;
    left: 0;
}

.modal-add-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--hot-pink) 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px var(--shadow);
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--light-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--medium-pink);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        min-height: 200px;
        border-radius: 26px 26px 0 0;
        font-size: 5rem;
    }
    
    .modal-details {
        max-height: 400px;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 5px;
    font-size: 0.9em;
}
