/* ================= GLOBAL VARIABLES & BASE STYLES ================= */
:root {
--primary-color: #FF6497;
--primary-hover: #e04f80;
--secondary-color: #FFAEC9;
--bg-light-pink: #FFF0F2;
--bg-card: #FFFFFF;
--text-dark: #6B4E56;
--text-light: #8E747B;
--border-pink: #FFD4DE;
--font-heading: 'Playfair Display', serif;
--font-body: 'Quicksand', sans-serif;
--transition-speed: 0.3s;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
font-family: var(--font-body);
color: var(--text-dark);
background-color: var(--bg-light-pink);
line-height: 1.6;
overflow-x: hidden;
}

a {
text-decoration: none;
color: inherit;
transition: color var(--transition-speed);
}

button {
cursor: pointer;
border: none;
outline: none;
font-family: var(--font-body);
transition: all var(--transition-speed);
}

/* ================= UTILITIES ================= */
.section-container {
max-width: 1200px;
margin: 4rem auto;
padding: 0 2rem;
}

.section-title {
font-family: var(--font-heading);
font-size: 2.5rem;
text-align: center;
color: var(--primary-color);
margin-bottom: 0.5rem;
font-style: italic;
}

.section-subtitle {
text-align: center;
color: var(--text-light);
margin-bottom: 3rem;
}

.sparkle {
color: var(--secondary-color);
}

/* ================= NAVIGATION BAR ================= */
.navbar {
background-color: rgba(255, 255, 255, 0.95);
border-bottom: 2px solid var(--border-pink);
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 15px rgba(255, 100, 151, 0.08);
}

.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
}

.logo-area {
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
}

.logo-main {
font-family: var(--font-heading);
font-size: 2rem;
font-weight: 900;
color: var(--primary-color);
line-height: 0.9;
}

.logo-sub {
font-size: 0.75rem;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--text-light);
}

.nav-links {
display: flex;
gap: 1.5rem;
}

.nav-item {
font-weight: 600;
color: var(--text-dark);
font-size: 0.95rem;
padding: 0.5rem 0.2rem;
border-bottom: 2px solid transparent;
}

.nav-item:hover, .nav-item.active {
color: var(--primary-color);
border-bottom: 2px solid var(--primary-color);
}

.nav-actions {
display: flex;
align-items: center;
gap: 1.5rem;
}

.social-icon {
font-size: 1.3rem;
color: var(--primary-color);
}

.cart-icon-container {
position: relative;
font-size: 1.4rem;
color: var(--primary-color);
cursor: pointer;
}

.cart-count {
position: absolute;
top: -8px;
right: -8px;
background-color: var(--primary-color);
color: white;
font-size: 0.7rem;
padding: 2px 6px;
border-radius: 50%;
font-weight: bold;
}

/* ================= BUTTONS ================= */
.btn {
padding: 0.75rem 2rem;
border-radius: 50px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 0.85rem;
display: inline-block;
box-shadow: 0 4px 10px rgba(255, 100, 151, 0.15);
}

.btn-primary {
background-color: var(--primary-color);
color: white;
}

.btn-primary:hover {
background-color: var(--primary-hover);
transform: translateY(-2px);
}

.btn-secondary {
background-color: transparent;
color: var(--primary-color);
border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
background-color: rgba(255, 100, 151, 0.05);
transform: translateY(-2px);
}

/* ================= HERO SECTION ================= */
.hero {
background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,240,242,0.9) 100%),
url('https://images.unsplash.com/photo-1519869325930-281384150729?auto=format&fit=crop&w=1200&q=80');
background-size: cover;
background-position: center;
padding: 8rem 2rem;
text-align: center;
border-bottom: 3px dashed var(--border-pink);
}

.hero-content {
max-width: 800px;
margin: 0 auto;
}

.hero-title {
font-family: var(--font-heading);
font-size: 5rem;
color: var(--primary-color);
font-weight: 900;
line-height: 0.8;
}

.hero-subtitle {
font-size: 2rem;
text-transform: uppercase;
letter-spacing: 4px;
color: var(--text-dark);
margin-bottom: 1.5rem;
}

.ribbon-container {
margin: 1.5rem 0;
}

.hero-ribbon {
background-color: var(--primary-color);
color: white;
padding: 0.5rem 2rem;
font-size: 1.2rem;
border-radius: 4px;
font-style: italic;
font-family: var(--font-heading);
display: inline-block;
position: relative;
box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.hero-tagline {
font-size: 1.1rem;
color: var(--text-light);
margin-bottom: 2rem;
}

.hero-buttons {
display: flex;
justify-content: center;
gap: 1.5rem;
}

/* ================= CATEGORIES GRID ================= */
.grid-categories {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 1.5rem;
}

.category-card {
background-color: var(--bg-card);
border: 2px solid var(--border-pink);
border-radius: 20px;
padding: 1.5rem 1rem;
text-align: center;
cursor: pointer;
position: relative;
transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.category-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(255, 100, 151, 0.12);
}

.card-img-placeholder {
width: 100%;
height: 120px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
margin-bottom: 1rem;
}

.cake-bg { background-color: #FFF2F5; }
.berry-bg { background-color: #FFF0F0; }
.cupcake-bg { background-color: #FBF0FF; }
.pop-bg { background-color: #F0F9FF; }
.crochet-bg { background-color: #FFF4FA; }
.bag-bg { background-color: #FFF0F5; }

.category-icon-badge {
position: absolute;
bottom: 5rem;
left: 50%;
transform: translateX(-50%);
background-color: var(--primary-color);
color: white;
width: 35px;
height: 35px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
border: 2px solid white;
}

.category-card h3 {
font-size: 1rem;
color: var(--text-dark);
margin-top: 1rem;
margin-bottom: 0.5rem;
}

.shop-now-link {
font-size: 0.85rem;
color: var(--primary-color);
font-weight: bold;
}

/* ================= SPLIT PROMO ================= */
.split-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}

.promo-box {
background-color: var(--bg-card);
border: 2px solid var(--border-pink);
border-radius: 24px;
padding: 3rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 1rem;
background-size: cover;
background-position: center;
box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.promo-left {
background-image: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
}

.promo-right {
background-image: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
}

.promo-box h2 {
font-family: var(--font-heading);
font-size: 2.2rem;
color: var(--primary-color);
font-style: italic;
}

.promo-box p {
color: var(--text-light);
font-size: 1rem;
max-width: 400px;
}

/* ================= HOW IT WORKS ================= */
.how-it-works-section {
text-align: center;
}

.steps-grid {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 3rem;
gap: 1rem;
}

.step-item {
flex: 1;
background-color: var(--bg-card);
border: 2px solid var(--border-pink);
border-radius: 20px;
padding: 2rem 1.5rem;
}

.step-icon {
font-size: 2rem;
color: var(--primary-color);
margin-bottom: 1rem;
}

.step-item h4 {
margin-bottom: 0.5rem;
color: var(--text-dark);
}

.step-item p {
font-size: 0.85rem;
color: var(--text-light);
}

.step-arrow {
font-size: 1.2rem;
color: var(--secondary-color);
}

/* ================= TESTIMONIALS ================= */
.testimonials-section {
text-align: center;
}

.testimonials-slider {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}

.testimonial-card {
background-color: var(--bg-card);
border: 2px solid var(--border-pink);
border-radius: 20px;
padding: 2rem;
text-align: center;
}

.stars {
margin-bottom: 1rem;
font-size: 1.1rem;
}

.testimonial-card p {
font-style: italic;
color: var(--text-dark);
margin-bottom: 1rem;
}

.client-name {
font-weight: bold;
color: var(--primary-color);
}

/* ================= ROUTING VIEWS CONTROL ================= */
.page-section {
display: none;
animation: fadeIn 0.4s ease-in-out forwards;
}

.page-section.active {
display: block;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

/* ================= PRODUCTS GRID ================= */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 2rem;
margin-top: 2rem;
}

.product-card {
background-color: var(--bg-card);
border: 2px solid var(--border-pink);
border-radius: 20px;
overflow: hidden;
transition: transform var(--transition-speed);
}

.product-card:hover {
transform: translateY(-5px);
}

.product-image {
height: 200px;
background-color: #FFF2F5;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
}

.product-info {
padding: 1.5rem;
text-align: center;
}

.product-info h3 {
font-family: var(--font-heading);
color: var(--text-dark);
font-size: 1.3rem;
margin-bottom: 0.5rem;
}

.product-desc {
font-size: 0.85rem;
color: var(--text-light);
margin-bottom: 1rem;
height: 40px;
overflow: hidden;
}

.product-price {
font-weight: bold;
color: var(--primary-color);
font-size: 1.2rem;
margin-bottom: 1rem;
}

/* ================= ABOUT PAGE ================= */
.about-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}

.about-image {
background-color: var(--bg-card);
border: 3px dashed var(--border-pink);
height: 400px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 8rem;
}

.about-text h2 {
font-family: var(--font-heading);
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 1.5rem;
}

.about-text p {
margin-bottom: 1.5rem;
color: var(--text-dark);
}

/* ================= CONTACT FORM ================= */
.contact-container {
max-width: 600px;
}

.contact-form {
background-color: var(--bg-card);
padding: 3rem;
border-radius: 24px;
border: 2px solid var(--border-pink);
}

.form-group {
display: flex;
flex-direction: column;
margin-bottom: 1.5rem;
text-align: left;
}

.form-group label {
font-weight: bold;
color: var(--text-dark);
margin-bottom: 0.5rem;
font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
padding: 0.8rem 1rem;
border-radius: 10px;
border: 1px solid var(--border-pink);
font-family: var(--font-body);
font-size: 0.95rem;
background-color: var(--bg-light-pink);
}

.form-group input:focus, .form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
background-color: white;
}

/* ================= SHOPPING CART DRAWER ================= */
.cart-drawer {
position: fixed;
top: 0;
right: -400px;
width: 380px;
height: 100%;
background-color: white;
box-shadow: -5px 0 25px rgba(0,0,0,0.15);
z-index: 2000;
transition: right 0.4s ease;
display: flex;
flex-direction: column;
}

.cart-drawer.open {
right: 0;
}

.cart-header {
padding: 1.5rem;
border-bottom: 1px solid var(--border-pink);
display: flex;
justify-content: space-between;
align-items: center;
}

.cart-header h3 {
color: var(--text-dark);
}

.close-cart {
font-size: 1.8rem;
cursor: pointer;
color: var(--text-light);
}

.cart-items {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
}

.empty-cart-msg {
text-align: center;
color: var(--text-light);
margin-top: 3rem;
}

.cart-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--bg-light-pink);
}

.cart-item-details h4 {
font-size: 0.95rem;
color: var(--text-dark);
}

.cart-item-details span {
color: var(--primary-color);
font-weight: bold;
}

.cart-item-qty {
display: flex;
align-items: center;
gap: 0.5rem;
}

.cart-item-qty button {
background-color: var(--bg-light-pink);
padding: 2px 8px;
border-radius: 4px;
font-weight: bold;
}

.cart-footer {
padding: 1.5rem;
border-top: 1px solid var(--border-pink);
background-color: var(--bg-light-pink);
}

.cart-total {
display: flex;
justify-content: space-between;
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 1rem;
color: var(--text-dark);
}

.checkout-btn {
width: 100%;
text-align: center;
}

.cart-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.4);
z-index: 1500;
display: none;
}

.cart-overlay.open {
display: block;
}

/* ================= MODAL BACKGROUNDS ================= */
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
z-index: 2500;
display: none;
align-items: center;
justify-content: center;
}

.modal-backdrop.open {
display: flex;
}

.modal-content {
background-color: white;
border-radius: 24px;
padding: 3rem;
max-width: 500px;
width: 90%;
position: relative;
border: 2px solid var(--border-pink);
text-align: center;
}

.close-modal {
position: absolute;
top: 1.5rem;
right: 1.5rem;
font-size: 1.8rem;
cursor: pointer;
color: var(--text-light);
}

/* ================= FOOTER ================= */
.main-footer {
background-color: white;
border-top: 2px solid var(--border-pink);
padding: 4rem 2rem 1.5rem 2rem;
margin-top: 6rem;
}

.footer-grid {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 3rem;
}

.footer-about p {
font-size: 0.9rem;
color: var(--text-light);
margin-top: 1rem;
}

.footer-links h4, .footer-socials h4, .footer-cta h4 {
color: var(--primary-color);
margin-bottom: 1.5rem;
font-size: 1.1rem;
}

.footer-links a, .footer-socials a {
display: block;
margin-bottom: 0.8rem;
color: var(--text-light);
font-size: 0.9rem;
}

.footer-links a:hover, .footer-socials a:hover {
color: var(--primary-color);
}

.footer-cta p {
font-size: 0.9rem;
color: var(--text-light);
margin-bottom: 1.5rem;
}

.footer-bottom {
max-width: 1200px;
margin: 3rem auto 0 auto;
padding-top: 1.5rem;
border-top: 1px solid var(--border-pink);
text-align: center;
font-size: 0.8rem;
color: var(--text-light);
}

/* Responsive */
@media(max-width: 768px) {
.nav-links { display: none; }
.split-container, .about-layout { grid-template-columns: 1fr; }
.steps-grid { flex-direction: column; }
.step-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
.hero-title { font-size: 3.5rem; }
.hero-subtitle { font-size: 1.4rem; }
}