:root {
    --black: #0a0a0a;
    --hotpink: #ff69b4;
    --pink: #f0d0df;
    --gold: #d4af9a;
    --ivory: #fdf9f5;
    --text: #3a282f;
    --text-light: #f0f0f0;
    --shadow: rgba(255,105,180,0.4);
}

body { 
    margin: 0; 
    background: var(--ivory); 
    color: var(--text); 
    line-height: 1.7; 
    font-family: 'Playfair Display', serif; 
    font-size: 16px; 
}

* { box-sizing: border-box; }

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

header { 
    background: white; 
    padding: 1rem; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
}

.logo { 
    font-family: 'Dancing Script', cursive; 
    font-size: 2.5rem; 
    color: var(--hotpink); 
    text-decoration: none; 
    margin-left: 1rem; 
}

nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    font-size: 1rem; 
    text-transform: capitalize; 
}

nav a { 
    text-decoration: none; 
    color: var(--text); 
    transition: color 0.3s; 
}

nav a:hover, 
nav a:focus { 
    color: var(--hotpink); 
}

.cart { 
    margin-right: 1rem; 
    position: relative; 
}

.cart-icon { 
    font-size: 1.5rem; 
    color: var(--hotpink); 
    text-decoration: none; 
}

.cart-badge { 
    position: absolute; 
    top: -10px; 
    right: -10px; 
    background: var(--hotpink); 
    color: white; 
    border-radius: 50%; 
    width: 20px; 
    height: 20px; 
    font-size: 0.8rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 2px 8px var(--shadow); 
}

.hero { 
    position: relative; 
    height: 70vh; 
    overflow: hidden; 
}

.hero img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.85); 
}

.hero-overlay { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center; 
    color: white; 
    background: rgba(255,105,180,0.25); 
    padding: 2rem; 
    border-radius: 25px; 
    backdrop-filter: blur(8px); 
    box-shadow: 0 10px 30px var(--shadow); 
}

.hero h1 { 
    font-family: 'Dancing Script', cursive; 
    font-size: 3rem; 
    margin: 0; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}

.cta { 
    display: inline-block; 
    background: var(--hotpink); 
    color: white; 
    padding: 1rem 3rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-size: 1.2rem; 
    box-shadow: 0 8px 25px var(--shadow); 
    margin: 1rem; 
    transition: all 0.3s; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 600; 
}

.cta:hover, 
.cta:focus { 
    background: #ff1493; 
    transform: translateY(-5px); 
    box-shadow: 0 12px 30px var(--shadow); 
}

.section { 
    padding: 4rem 1rem; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.section h2 { 
    text-align: center; 
    font-family: 'Dancing Script', cursive; 
    font-size: 2.5rem; 
    color: var(--hotpink); 
    margin-bottom: 3rem; 
    text-shadow: 0 2px 12px var(--shadow); 
}

.products { 
    display: flex; 
    overflow-x: auto; 
    gap: 1rem; 
    padding: 1rem 0; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.products::-webkit-scrollbar { 
    display: none; 
}

.product { 
    background: white; 
    border-radius: 25px; 
    overflow: hidden; 
    box-shadow: 0 12px 35px rgba(0,0,0,0.15); 
    text-align: center; 
    transition: all 0.4s; 
    min-width: 80%; 
    scroll-snap-align: start; 
    padding-bottom: 1.5rem; 
    border: 1px solid #f0e0e7; 
}

.product img { 
    width: 100%; 
    height: auto; 
    border-bottom: 1px solid #f0e0e7; 
}

.product h3 { 
    margin: 1rem 0 0.5rem; 
    font-size: 1.3rem; 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    text-transform: capitalize; 
}

.product .price { 
    font-size: 1.4rem; 
    color: var(--gold); 
    margin: 0.5rem 0 1rem; 
    font-weight: bold; 
    font-family: Arial, sans-serif; 
}

.product .cta { 
    padding: 1rem 2rem; 
    font-size: 1rem; 
}

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

.barbie-section { 
    background: var(--black); 
    color: var(--text-light); 
}

.barbie-section h2 { 
    color: var(--hotpink); 
}

.carousel-container { 
    position: relative; 
}

.carousel { 
    display: flex; 
    overflow-x: auto; 
    gap: 1rem; 
    padding: 1rem 0; 
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.carousel::-webkit-scrollbar { 
    display: none; 
}

.carousel .product { 
    min-width: 80%; 
    scroll-snap-align: start; 
    background: #111; 
    border: 2px solid var(--hotpink); 
    box-shadow: 0 10px 30px rgba(255,105,180,0.3); 
}

.carousel .product .price { 
    color: var(--hotpink); 
}

.carousel-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255,105,180,0.7); 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    color: white; 
    cursor: pointer; 
    box-shadow: 0 4px 15px var(--shadow); 
    transition: all 0.3s; 
    z-index: 10; 
}

.carousel-nav:hover { 
    background: var(--hotpink); 
    transform: translateY(-50%) scale(1.1); 
}

.prev { 
    left: 0; 
}

.next { 
    right: 0; 
}

.reviews { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
}

.review { 
    background: #111; 
    padding: 1.5rem; 
    border-radius: 20px; 
    text-align: center; 
    font-style: italic; 
    border: 2px solid var(--hotpink); 
    box-shadow: 0 8px 25px var(--shadow); 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    text-transform: capitalize; 
}

.guarantees { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
    text-align: center; 
}

.guarantee { 
    padding: 1.5rem; 
    background: #111; 
    border-radius: 20px; 
    border: 2px solid var(--hotpink); 
    box-shadow: 0 8px 25px var(--shadow); 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    text-transform: capitalize; 
}

.after-dark { 
    background: linear-gradient(to bottom, #000, #1a001a); 
}

.after-dark .product { 
    background: #0a000a; 
    border: 3px solid var(--hotpink); 
    min-width: 80%; 
}

.after-dark .cta { 
    background: linear-gradient(to right, var(--hotpink), #ff1493); 
}

.newsletter { 
    background: linear-gradient(to bottom, #111, #1a1a1a); 
    text-align: center; 
    padding: 3rem 1rem; 
    border-top: 4px solid var(--hotpink); 
}

.newsletter input { 
    padding: 1rem; 
    width: 100%; 
    border: 2px solid var(--hotpink); 
    border-radius: 50px 50px 0 0; 
    background: #222; 
    color: white; 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
}

.newsletter button { 
    padding: 1rem; 
    width: 100%; 
    background: var(--hotpink); 
    color: white; 
    border: none; 
    border-radius: 0 0 50px 50px; 
    cursor: pointer; 
    box-shadow: 0 4px 15px var(--shadow); 
    font-weight: 600; 
    font-family: Arial, sans-serif; 
}

footer { 
    background: var(--black); 
    color: var(--text-light); 
    padding: 3rem 1rem; 
    border-top: 6px solid var(--hotpink); 
    box-shadow: 0 -10px 30px var(--shadow); 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    text-transform: capitalize; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
}

.footer-grid h4 { 
    color: var(--hotpink); 
    font-size: 1.4rem; 
}

.footer-grid ul { 
    list-style: none; 
    padding: 0; 
}

.footer-grid a { 
    color: var(--text-light); 
    text-decoration: none; 
    line-height: 2; 
    transition: color 0.3s; 
}

.footer-grid a:hover { 
    color: var(--hotpink); 
}

.trust { 
    text-align: center; 
    margin-top: 2rem; 
}

#popup { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background: #111; 
    color: white; 
    padding: 2rem; 
    border-radius: 25px; 
    box-shadow: 0 15px 40px rgba(255,105,180,0.5); 
    text-align: center; 
    z-index: 1000; 
    display: none; 
    width: 90%; 
    max-width: 400px; 
    border: 4px solid var(--hotpink); 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
}

#popup input { 
    padding: 1.2rem; 
    width: 100%; 
    border: 2px solid var(--hotpink); 
    border-radius: 50px 50px 0 0; 
    background: #222; 
    color: white; 
    font-size: 1rem; 
}

#popup button.cta { 
    padding: 1.2rem; 
    width: 100%; 
    font-size: 1.2rem; 
    border-radius: 0 0 50px 50px; 
}

#overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.75); 
    display: none; 
    z-index: 999; 
}

@media (min-width: 768px) { 
    .logo { font-size: 3.2rem; }
    nav ul { font-size: 1.15rem; gap: 2.5rem; }
    .hero { height: 90vh; }
    .hero h1 { font-size: 5rem; }
    .section { padding: 7rem 2rem; }
    .section h2 { font-size: 3.8rem; }
    .products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; overflow-x: visible; }
    .product { min-width: auto; }
    .carousel .product { min-width: 320px; }
    .reviews { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
    .guarantees { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .newsletter input { width: 350px; border-radius: 50px 0 0 50px; }
    .newsletter button { width: auto; border-radius: 0 50px 50px 0; }
    #popup { padding: 4rem; width: auto; max-width: 500px; }
    #popup input { width: 80%; border-radius: 5px; }
    #popup button.cta { width: auto; border-radius: 50px; }
}

@media (min-width: 1025px) { 
    .footer-grid { grid-template-columns: repeat(4, 1fr); } 
}
