/* CONTENT FOR: DollsDollhouse/css/style.css */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-pink: #ff69b4;
    --dark-pink: #db2777;
    --light-pink: #fdf2f8;
    --accent-gold: #fbbf24;
    --text-dark: #b60f74;
    --text-light: #6d3345;
    --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);
    --shadow-soft: 0 20px 40px rgba(219, 39, 119, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-display), serif;
    background: var(--light-pink);
    color: var(--text-dark);
    width: 100%;
    max-width: 100%; 
    overflow-x: hidden; 
    min-height: 100vh;
    position: relative;
    margin: 0;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- BANNER & COOKIE STYLES --- */
.site-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #db2777, #be185d, #db2777);;
    color: white;
    overflow: hidden;
    z-index: 2000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.banner-content {
    padding: 0 50px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Push UI down when banner is active */
body.has-banner .fab-container {
    top: 60px; /* 40px banner + 20px gap */
}

.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

#accept-cookies {
    background: var(--dark-pink);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.2);
}

#accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(219, 39, 119, 0.3);
    background: #be185d;
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 50px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- CURSOR --- */
@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;
    }
}

/* 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;
    line-height: 1;
}

.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);
}

/* --- 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); width: 100%;
}
.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; width: 100%;
}

.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); }
.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); }

/* --- FOOTER --- */
footer { background: var(--text-dark); color: var(--light-pink); padding: 3rem 2rem; text-align: center; font-family: var(--font-sans); }
.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; }
.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; }

/* --- NAVIGATION / FAB BUTTONS --- */
.fab-container {
    position: fixed; top: 2rem; right: 2rem;
    display: flex; gap: 1rem; z-index: 998;
    flex-direction: row-reverse; transition: top 0.3s ease;
}
.menu-btn, .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; color: var(--text-dark);
}
.menu-btn:hover, .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;
}

@media (max-width: 1024px) {
    .fab-container {
        top: 10px; right: 10px; left: auto; gap: 8px;
        background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
        padding: 8px 12px; border-radius: 50px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        width: auto; max-width: 100%; justify-content: flex-end;
        border: 1px solid rgba(255,255,255,0.5);
    }
    body.has-banner .fab-container { top: 3.5rem; }
    .menu-btn, .cart-icon, .auth-button, .search-btn, .wishlist-icon {
        width: 40px; height: 40px; font-size: 1.1rem; background: transparent; box-shadow: none;
    }
    .menu-btn:hover, .cart-icon:hover { transform: none; }
    .cart-count, .wishlist-count { top: -2px; right: -2px; width: 18px; height: 18px; font-size: 0.7rem; }
}

/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
    background: rgba(253, 242, 248, 0.98); z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); backdrop-filter: blur(5px);
}
.mobile-menu.active { left: 0; }
.mobile-menu a {
    font-family: var(--font-display); font-size: 3rem; color: var(--dark-pink);
    text-decoration: none; margin: 1rem 0;
    transition: transform 0.3s ease, color 0.3s ease; opacity: 0; transform: translateY(20px);
}
.mobile-menu.active a { opacity: 1; transform: translateY(0); }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.4s; }
.mobile-menu a:hover { transform: scale(1.1); color: var(--primary-pink); }
.close-menu {
    position: absolute; top: 2rem; right: 2rem; background: none; border: none;
    font-size: 2.5rem; color: var(--text-light); cursor: pointer; transition: transform 0.3s ease;
}
.close-menu:hover { transform: rotate(90deg); color: var(--primary-pink); }

/* --- SIDEBARS (Cart & Wishlist) --- */
.cart-sidebar, .wishlist-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    z-index: 3000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%); /* FIX: Smooth Slide */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
}
.cart-sidebar.active, .wishlist-sidebar.active { transform: translateX(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); padding-bottom: 1rem; border-bottom: 1px solid #fce7f3;
}
.cart-item-image, .wishlist-item img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-right: 1rem; flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.cart-item-details, .wishlist-item-details { flex-grow: 1; }
.cart-item h4, .wishlist-item h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.cart-item p.variant { font-size: 0.85rem; color: #888; margin-bottom: 0.2rem; }
.cart-item p.price { font-size: 0.95rem; color: var(--dark-pink); font-weight: bold; }

.remove-item, .remove-wishlist-item { background: none; border: none; font-size: 1.5rem; color: #ef4444; cursor: pointer; padding: 0 0.5rem; }

/* --- QUANTITY BUTTON STYLING (THE FIX) --- */
.qty-controls {
    display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.qty-controls button {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid #e5e7eb; background: white;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--text-dark); transition: all 0.2s;
}
.qty-controls button:hover { background: var(--primary-pink); color: white; border-color: var(--primary-pink); }
.qty-controls span { font-weight: 600; font-size: 0.95rem; min-width: 20px; text-align: center; }

.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 & MODALS --- */
.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; }

/* CHECKOUT BUTTONS & MODAL */
.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 0 0 0; width: 100%; border-radius: 8px; }

.checkout-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 4000; justify-content: center; align-items: center;
    backdrop-filter: blur(5px); 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;
}
.close-checkout {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    font-size: 1.75rem; cursor: pointer; color: var(--text-light);
}
.checkout-content h2 { font-family: var(--font-script); font-size: 3rem; color: var(--dark-pink); text-align: center; margin-bottom: 0.5rem; }

#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;
}
.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;
}
.payment-option:has(:checked) { border-color: var(--dark-pink); background: white; }

/* CAT POPUP */
#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); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* MOBILE */
@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; }
    .cart-sidebar, .wishlist-sidebar { max-width: 100%; }
    .checkout-content { padding: 1.5rem; border-radius: 0; height: 100%; max-height: 100%; }
    #cat-popup-overlay { display: block; top: 5px; bottom: auto; left: 5px; }
    #cat-popup-gif { display: block; width: 80px; max-width: 80px; }
}

/* --- SMART SEARCH DROPDOWN --- */
.search-suggestions {
    background: white;
    width: 100%;
    max-width: 600px;
    margin: 15px auto 0;
    border-radius: 15px;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 15px 40px rgba(219, 39, 119, 0.15);
}

.search-suggestions.active {
    max-height: 450px;
    opacity: 1;
    padding: 10px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #fce7f3;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fff0f5; /* Light pink hover */
    padding-left: 25px; /* Slight slide effect */
}

.search-result-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
}

.search-result-info {
    flex-grow: 1;
}

.search-result-info h4 {
    font-family: var(--font-display);
    color: var(--dark-pink);
    font-size: 1.1rem;
    margin: 0 0 2px 0;
}

.search-result-info p {
    font-family: var(--font-sans);
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Scrollbar for the list */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}
.search-suggestions::-webkit-scrollbar-thumb {
    background: #fbcfe8;
    border-radius: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(80, 20, 40, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sleek-modal {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: var(--glass-border);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-overlay.active .sleek-modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 20px 25px;
    background: linear-gradient(to right, #fff0f5, #fff);
    border-bottom: 1px solid #fce7f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-display);
    color: var(--dark-pink);
    margin: 0;
    font-size: 1.8rem;
}

.close-modal-btn {
    background: white;
    border: 1px solid #fce7f3;
    color: var(--dark-pink);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: var(--dark-pink);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #fce7f3;
    background: #fafafa;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.auth-tab.active {
    background: white;
    color: var(--dark-pink);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sleek-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    margin-bottom: 15px;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.sleek-input:focus {
    background: white;
    border-color: var(--dark-pink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
}

.sleek-btn {
    width: 100%;
    padding: 14px;
    background: var(--dark-pink);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sleek-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.2);
}

/* --- Cart Items --- */
.cart-item-sleek {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.cart-item-sleek:hover {
    border-color: #fce7f3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.cart-thumb-sleek {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: #fce7f3;
}

/* =========================================
   4. SLEEK COOKIE BANNER (Cat Theme)
   ========================================= */
.cookie-card {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 340px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #fce7f3;
    z-index: 12000;
    display: flex;
    gap: 15px;
    align-items: center;
    animation: slideUpCat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-mascot {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.cookie-text h4 {
    margin: 0 0 4px 0;
    color: var(--dark-pink);
    font-family: var(--font-display);
}

.cookie-text p {
    margin: 0 0 10px 0;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #666;
}

.cookie-btn {
    background: var(--dark-pink);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
}

@keyframes slideUpCat {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   FIXED AUTH MODAL STYLES (v2)
   ========================================= */

/* The dark background behind the modal */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(48, 12, 34, 0.75); /* Dark pink/black tint */
    backdrop-filter: blur(8px);
    z-index: 99999; /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* The actual modal box */
.auth-box {
    background: #ffffff;
    width: 90%;
    max-width: 850px;
    height: auto;
    min-height: 550px;
    border-radius: 20px;
    display: flex;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-overlay.active .auth-box {
    transform: translateY(0);
}

/* Close Button */
.auth-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.auth-close-btn:hover { color: #db2777; }

/* LEFT SIDE (Pink Panel) */
.auth-left-decoration {
    width: 40%;
    background: linear-gradient(135deg, #db2777, #9d174d);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

/* Decorative pattern overlay */
.auth-left-decoration::after {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    opacity: 0.1;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}

.auth-welcome-msg {
    position: relative;
    z-index: 2;
    text-align: left;
}
.auth-welcome-msg h3 {
    font-family: 'Pinyon Script', cursive; /* Fallback if font fails */
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
}
.auth-welcome-msg p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* RIGHT SIDE (Content) */
.auth-right-content {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.auth-header h2 {
    font-family: 'Lovelace', serif;
    color: #db2777;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: #fdf2f8; /* Light pink bg */
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 25px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.auth-tab.active {
    background: white;
    color: #db2777;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.4s ease;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.auth-input-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-left: 5px;
}
.auth-input-group input {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.2s;
    width: 100%;
}
.auth-input-group input:focus {
    border-color: #db2777;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
}

.auth-actions-row {
    text-align: right;
}
.auth-forgot-link {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
}
.auth-forgot-link:hover { color: #db2777; }

.auth-submit-btn {
    margin-top: 10px;
    padding: 14px;
    background: #db2777;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
}
.auth-submit-btn:hover {
    background: #be185d;
    transform: translateY(-1px);
}

.auth-disclaimer {
    font-size: 0.75rem;
    text-align: center;
    color: #999;
    margin-top: 10px;
}
.auth-disclaimer a { color: #db2777; text-decoration: none; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .auth-box {
        flex-direction: column; /* Stack them */
        width: 95%;
        height: auto;
        min-height: auto;
        max-height: 90vh; /* Prevent overflow */
        overflow-y: auto;
    }
    .auth-left-decoration {
        display: none; /* Hide the pink side panel on mobile to save space */
    }
    .auth-right-content {
        width: 100%;
        padding: 25px;
    }
    .auth-header h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- QUANTITY BUTTON STYLING (THE FIX) --- */
.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.cart-qty-control button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #fce7f3;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-pink);
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(219, 39, 119, 0.1);
}

.cart-qty-control button:hover {
    background: var(--dark-pink);
    color: white;
    transform: scale(1.1);
}

.cart-qty-control span {
    font-weight: 700;
    font-size: 1rem;
    min-width: 25px;
    text-align: center;
    color: var(--text-dark);
}

.remove-item {
    background: #fff1f2;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #e11d48;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
}

.remove-item:hover {
    background: #e11d48;
    color: white;
}

/* --- INSTAGRAM GRID LAYOUT --- */
.ig-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px; /* Signature thin Instagram gap */
    max-width: 935px;
    margin: 40px auto;
    padding: 0 20px;
}

.ig-post-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Force perfect square ratio */
    overflow: hidden;
    background-color: #efefef;
}

.ig-post-wrapper img, 
.ig-post-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the square without distortion */
    transition: filter 0.3s ease;
}

.ig-post-wrapper:hover img {
    filter: brightness(0.8);
}

/* Hide any captions or overlay elements if they exist in the DOM */
.ig-post-wrapper .caption, 
.ig-post-wrapper .actions {
    display: none !important;
}

@media (max-width: 768px) {
    .ig-grid-container {
        gap: 1px;
        padding: 0;
    }
}