/* CONTENT FOR: DollsDollhouse/css/style.css */

:root {
    --primary-pink: #ff69b4;
    --dark-pink: #db2777;
    --light-pink: #fdf2f8;
    --accent-gold: #fbbf24;
    --text-dark: #b60f74;
    --text-light: #6d3345; /* Added for lighter text */
    --gradient-primary: linear-gradient(135deg, #ff69b4, #db2777);
    --gradient-secondary: linear-gradient(135deg, #fdf2f8, #fbcfe8);
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Lovelace', serif;
    --font-script: 'Pinyon Script', cursive;
    --shadow-light: 0 10px 20px rgba(136, 19, 64, 0.1);
    --shadow-dark: 0 20px 40px rgba(136, 19, 64, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-display), serif;
    background: var(--light-pink);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- CURSOR FIX --- */
@media (min-width: 1024px) {
    body {
        cursor: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter id='neon' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='2.5' flood-color='%23fbbf24'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M4 2L19 13L12.5 14.5L16 22L13.5 24L10 16L5.5 17.5V2Z' fill='%23fbbf24' stroke='%238B6914' stroke-width='1' filter='url(%23neon)'/%3E%3C/svg%3E") 1 1, auto;
    }
    a, button, .add-to-cart, .cart-icon, .close-cart, select, input, .product-card {
        cursor: pointer;
    }
}
/* --- END CURSOR FIX --- */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light-pink);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 2px solid var(--light-pink);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill="%23ffffff" opacity="0.1"><circle cx="25" cy="25" r="1.5"/><circle cx="75" cy="25" r="1.5"/><circle cx="25" cy="75" r="1.5"/><circle cx="75" cy="75" r="1.5"/></g></svg>');
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { background-position: 0 0; }
    100% { background-position: -200px 200px; }
}

.hero h1 {
    font-family: var(--font-script);
    font-size: clamp(4rem, 10vw, 10rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: white;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.cta-button {
    background: white;
    color: var(--dark-pink);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.floating {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Products Section */
.products {
    padding: 5rem 2rem;
    background: var(--light-pink);
}

.section-title {
    text-align: center;
    font-family: var(--font-script);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--dark-pink);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto 2.5rem auto;
    max-width: 1400px;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}
.filter-container input[type="text"],
.filter-container select {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--light-pink);
    border-radius: 8px;
    color: var(--text-light);
    background: white;
}
.filter-container input[type="text"] {
    flex-grow: 1;
    min-width: 200px;
}
.filter-container select {
    cursor: pointer;
    flex-grow: 1;
    min-width: 150px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.product-image {
    width: 100%;
    height: 280px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Wishlist Toggle on Card */
.card-wishlist-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
}
.card-wishlist-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-pink);
}
.card-wishlist-toggle.active {
    color: var(--primary-pink);
}


.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-family: var(--font-display);
}

.product-price {
    font-size: 1.2rem;
    color: var(--dark-pink);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.about {
    padding: 5rem 2rem;
    background: white;
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.about-content h2 {
    font-family: var(--font-script);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--dark-pink);
    margin-bottom: 2rem;
}
.about-content p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact {
    padding: 5rem 2rem;
    background: var(--light-pink);
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-methods a {
    text-decoration: none;
}
.contact-method {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    flex-basis: 300px;
    flex-grow: 1;
    transition: all 0.3s ease;
}
.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}
.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.contact-method h3 {
    font-size: 1.75rem;
    color: var(--dark-pink);
    margin-bottom: 1rem;
}
.contact-detail {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-detail:hover {
    color: var(--primary-pink);
}

footer {
    background: var(--text-dark);
    color: var(--light-pink);
    padding: 3rem 2rem;
    text-align: center;
    font-family: var(--font-sans);
}
.install-button {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}
.install-button:hover {
    background: #fff;
    color: var(--dark-pink);
}
.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-pink);
}
.copyright {
    font-size: 0.9rem;
    color: #fbcfe8;
    line-height: 1.6;
}
.copyright a {
    color: white;
    text-decoration: none;
}
.copyright a:hover {
    text-decoration: underline;
}

/* --- Floating Action Buttons (FAB) --- */
.fab-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 998;
    flex-direction: row-reverse; /* Icons order */
}

.cart-icon,
.auth-button,
.search-btn,
.wishlist-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.5rem;
}
.cart-icon:hover,
.auth-button:hover,
.search-btn:hover,
.wishlist-icon:hover {
    transform: scale(1.1);
}

.auth-button.logged-in {
    background: var(--gradient-primary);
    color: white;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--dark-pink);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Sidebar Styles (Cart & Wishlist) --- */
.cart-sidebar,
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active,
.wishlist-sidebar.active {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-pink);
}
.cart-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--dark-pink);
}
.close-cart,
.close-wishlist {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}
.cart-items,
.wishlist-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-item,
.wishlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}
.wishlist-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}
.cart-item h4,
.wishlist-item h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-dark);
}
.cart-item p,
.wishlist-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}
.remove-item,
.remove-wishlist-item {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #ef4444;
    cursor: pointer;
}
.cart-total {
    padding: 1.5rem;
    border-top: 1px solid var(--light-pink);
    font-family: var(--font-sans);
}
.cart-total h3 {
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
}


/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 242, 248, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.search-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.search-content {
    width: 90%;
    max-width: 600px;
    text-align: center;
}
.search-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--dark-pink);
    margin-bottom: 2rem;
}
.search-content input {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--dark-pink);
    background: transparent;
    color: var(--text-dark);
    font-family: var(--font-sans);
    text-align: center;
}
.search-content input:focus {
    outline: none;
    border-bottom-width: 4px;
}
.close-search {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
}

/* --- Shared Buttons --- */
.checkout-button,
.pay-now-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.3);
}
.checkout-button:hover,
.pay-now-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.4);
}
.checkout-button {
    margin: 1.5rem;
    width: auto;
    border-radius: 8px;
}
.pay-now-button {
    border-radius: 8px;
    margin-top: 1rem;
}

.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 1rem;
}
.checkout-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.close-checkout {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}
.close-checkout:hover {
    color: var(--text-dark);
}
.checkout-content h2 {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--dark-pink);
    text-align: center;
    margin-bottom: 0.5rem;
}
.checkout-content h3 {
    font-family: var(--font-sans);
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

#checkout-form {
    font-family: var(--font-sans);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #f1d9e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.2);
}
.form-group textarea {
    resize: vertical;
}

.payment-methods h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--light-pink);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.payment-option:hover {
    border-color: #fbcfe8;
}
.payment-option input[type="radio"] {
    accent-color: var(--dark-pink);
    width: 18px;
    height: 18px;
}
.payment-option span {
    font-weight: 500;
    color: var(--text-dark);
}
.payment-option:has(:checked) {
    border-color: var(--dark-pink);
    background: white;
}

#card-element-container {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #f1d9e5;
    border-radius: 8px;
}
#card-element-container label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}
#payment-error {
    font-family: var(--font-sans);
    color: #e53e3e;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

#cat-popup-overlay {
	position: fixed;
	bottom: 5px;
	left: 5px;
	z-index: 10001;
	pointer-events: none;
}

#cat-popup-gif {
	width: 300px;
	max-width: 80%;
	border-radius: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .products {
        padding: 3rem 1rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about, .contact {
        padding: 3rem 1rem;
    }
    .contact-methods {
        gap: 1.5rem;
    }
    footer {
        padding: 2rem 1rem;
    }
    .footer-links {
        gap: 1rem;
    }
    .fab-container {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    .cart-icon, .auth-button, .search-btn, .wishlist-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    .cart-sidebar, .wishlist-sidebar {
        max-width: 100vw;
    }
    .checkout-content {
        padding: 1.5rem;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }
    .checkout-content h2 {
        font-size: 2.5rem;
    }
    .checkout-content h3 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
    .product-name {
        font-size: 1.5rem;
    }
    .product-price {
        font-size: 1.25rem;
    }
    .about-content h2 {
        font-size: 2.5rem;
    }
    .about-content p {
        font-size: 1rem;
    }
    .contact-method h3 {
        font-size: 1.5rem;
    }
    .contact-detail {
        font-size: 1rem;
    }
    .cart-header h2 {
        font-size: 1.8rem;
    }
    .cart-item h4 {
        font-size: 1.1rem;
    }
    .cart-total h3 {
        font-size: 1.1rem;
    }
    .checkout-button,
    .pay-now-button {
        font-size: 1rem;
        padding: 1rem;
    }
    .form-group label {
        font-size: 0.85rem;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .filter-container {
        flex-direction: row;
    }

    #cat-popup-overlay {
    display: block;
    top: 5px;
    bottom: auto;
    left: 5px;
    }
    #cat-popup-gif {
        display: block;
        width: 80px;
        max-width: 80px;
    }
}

.install-button {
    display: none;
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}
.install-button:hover {
    background: #fff;
    color: var(--dark-pink);
}
.install-button.show {
    display: inline-block;
}

/* --- ADDED FOR COUPON CHECKOUT --- */

.checkout-summary {
    font-family: var(--font-sans);
    padding: 1rem;
    background: var(--light-pink);
    border-radius: 8px;
    margin-bottom: 2rem;
}
.checkout-summary p {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.checkout-summary h3.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.75rem;
    border-top: 1px solid var(--primary-pink);
    padding-top: 0.75rem;
}
#modal-discount-row {
    color: #16a34a;
    font-weight: 500;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}
.coupon-input-group input {
    flex-grow: 1;
}
#apply-coupon-btn {
    background: #888;
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}
#apply-coupon-btn:hover {
    background: var(--text-dark);
}
#apply-coupon-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
#coupon-status {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}
#coupon-status.success {
    color: #16a34a;
}
#coupon-status.error {
    color: #e53e3e;
}