/* Modern Glassmorphism & Baby Pink Aesthetic */
:root {
    --color-bg-primary: #FFF0F5; /* Lavender blush / Baby pink */
    --color-glass: rgba(255, 255, 255, 0.5);
    --color-glass-strong: rgba(255, 255, 255, 0.8);
    --color-glass-border: rgba(255, 255, 255, 0.6);
    --color-text-primary: #332B2B; 
    --color-text-secondary: #7A6969;
    --color-accent: #E5989B; 
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --pill-radius: 50px;
    --card-radius: 24px;
    --shadow-soft: 0 8px 32px rgba(229, 152, 155, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--color-bg-primary); 
    background-image: radial-gradient(circle at top left, #FFFFFF, transparent 40%), radial-gradient(circle at bottom right, #FFE4E1, transparent 40%);
    background-attachment: fixed;
    color: var(--color-text-primary); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-text-primary); }

/* Glass Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; background: var(--color-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-glass-border); position: fixed; width: 100%; top: 0; z-index: 1000; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--color-text-primary); cursor: pointer; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--color-text-primary); font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--color-accent); }

/* Hamburger UI Block */
.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: var(--color-text-primary); transition: transform 0.3s ease; }
.hamburger:hover { color: var(--color-accent); transform: scale(1.1); }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 2rem 0; box-shadow: var(--shadow-soft); gap: 2rem; border-top: 1px solid var(--color-glass-border); text-align: center; }
    .nav-links.active { display: flex; animation: slideDown 0.4s ease-out forwards; }
    .nav-links a { font-size: 1.2rem; font-weight: 600; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.nav-icons span { color: var(--color-text-primary); font-size: 0.9rem; font-weight: 600; cursor: pointer; background: #fff; padding: 0.5rem 1rem; border-radius: var(--pill-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.05);}

/* Video Section */
.video-scroll-section { position: relative; width: 100vw; height: 500vh; }
.video-container { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
#bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(255,240,245,0.2), rgba(255,240,245,0.7)); z-index: 0; }
.text-stage { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 80%; z-index: 1; opacity: 0; visibility: hidden; }
.text-stage h1 { color: #332B2B; font-size: 4rem; font-style: italic; margin-bottom: 1rem; text-shadow: 0 4px 20px rgba(255,255,255,0.8); }
.text-stage p { color: #554A4A; font-size: 1.2rem; }

/* Filter & Search Bar */
.shop-controls {
    max-width: 1200px;
    margin: 8rem auto 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 5%;
}
.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--pill-radius);
    border: 1px solid var(--color-glass-border);
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-soft);
    outline: none;
    transition: 0.3s;
}
.search-input:focus { background: #fff; border-color: var(--color-accent); }
.category-select {
    padding: 1rem 2rem;
    border-radius: var(--pill-radius);
    border: 1px solid var(--color-glass-border);
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-soft);
    outline: none;
    cursor: pointer;
}

/* Glassmorphism Product Grid */
.collection-preview { padding: 2rem 5% 8rem; position: relative; z-index: 10; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }

.product-card { 
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--card-radius);
    padding: 1rem;
    text-align: center; 
    cursor: pointer; 
    transition: 0.4s ease;
    box-shadow: var(--shadow-soft);
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(229, 152, 155, 0.3); background: #fff;}
.image-wrapper { overflow: hidden; width: 100%; aspect-ratio: 4/5; border-radius: 16px; margin-bottom: 1.5rem; background: #fff;}
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .image-wrapper img { transform: scale(1.08); }

.product-card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.3rem; }
.product-card p { font-size: 1rem; color: var(--color-text-secondary); font-weight: 600; }

/* Buttons */
.btn-primary { display: inline-block; padding: 1rem 3rem; background: var(--color-text-primary); color: #fff; border-radius: var(--pill-radius); text-transform: uppercase; font-size: 0.85rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background: var(--color-accent); transform: scale(1.05); }

/* Product Details Page */
.product-details-container {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.product-image-large {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border: 1px solid var(--color-glass-border);
}
.product-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-info-panel h1 { font-size: 3rem; margin-bottom: 1rem; }
.price-tag { font-size: 1.8rem; font-weight: 600; color: var(--color-accent); margin-bottom: 1rem; }
.reviews-badge { display: inline-block; background: #fff; padding: 0.5rem 1rem; border-radius: var(--pill-radius); font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem; box-shadow: var(--shadow-soft); }
.product-desc { font-size: 1.1rem; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 3rem; }
.action-group { display: flex; gap: 1rem; }

/* Cart & Auth */
.auth-container, .cart-container { max-width: 500px; margin: 8rem auto; background: var(--color-glass); backdrop-filter: blur(16px); padding: 3rem; border: 1px solid var(--color-glass-border); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); text-align: center; }
.cart-container { max-width: 900px; text-align: left; }
.auth-container h2, .cart-header { font-size: 2.2rem; margin-bottom: 2rem; }
input, select { width: 100%; padding: 1.2rem; border-radius: var(--pill-radius); background: #fff; border: 1px solid var(--color-glass-border); margin-bottom: 1rem; outline: none; transition: 0.3s; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);}
input:focus, select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(229, 152, 155, 0.2); }

@media screen and (max-width: 768px) {
    .product-details-container { grid-template-columns: 1fr; gap: 1.5rem; margin: 8rem auto 2rem; padding: 0 5%; }
    .product-image-large { aspect-ratio: 4/5; max-height: 60vh; width: 100%; border-radius: 12px; padding: 0.5rem; }
    .shop-controls { flex-direction: column; gap: 1rem; }
    .checkout-grid { grid-template-columns: 1fr; margin-top: 6rem; gap: 2rem; }
    .address-grid { grid-template-columns: 1fr; }
    .action-group, .pin-input-group { flex-direction: column; width: 100%; gap: 1rem; }
    .action-group .btn-primary, .pin-input-group .btn-primary { width: 100%; text-align: center; }
    .product-info-panel h1 { font-size: 2.2rem; }
    header.cart-header, h2.section-title { font-size: 1.8rem; }
    .gallery-container { padding-bottom: 1rem; }
}

/* Prototype Showcase Features Phase 9 */
.delivery-widget { margin: 2.5rem 0; padding: 2rem; border: 1px solid var(--color-glass-border); border-radius: var(--card-radius); background: rgba(255,255,255,0.4); box-shadow: var(--shadow-soft); }
.delivery-widget h4 { margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.pin-input-group { display: flex; gap: 1rem; }
.pin-input-group input { margin-bottom: 0; flex: 1; }
#deliveryResult { margin-top: 1rem; font-size: 0.95rem; font-weight: 500; color: #15803d; }

.checkout-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 3rem; max-width: 1400px; margin: 8rem auto; padding: 0 5%; }
.checkout-section { background: var(--color-glass); backdrop-filter: blur(16px); padding: 3rem; border: 1px solid var(--color-glass-border); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); }
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem;}
.address-grid input, .address-grid textarea { margin-bottom: 0; background: rgba(255,255,255,0.7); }
.full-width { grid-column: 1 / -1; }

.payment-methods h3 { font-size: 1.5rem; margin-bottom: 1.5rem; border-top: 1px solid var(--color-glass-border); padding-top: 2rem; }
.payment-option { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--color-glass-border); border-radius: var(--card-radius); margin-bottom: 1rem; cursor: pointer; background: rgba(255,255,255,0.6); transition: 0.3s; }
.payment-option:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.payment-option input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--color-text-primary); cursor: pointer; }
.disabled-option { opacity: 0.5; pointer-events: none; filter: grayscale(1); }

/* Thumbnail Image Gallery */
.gallery-container { display: flex; gap: 1rem; margin-top: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.gallery-thumb { width: 80px; height: 100px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: 0.3s; opacity: 0.6; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--color-accent); opacity: 1; }

/* Structural Footer Core Alignment overrides */
.footer { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; border-top: 1px solid var(--color-glass-border); padding: 4rem 10%; background: var(--color-bg); }
.footer .social-links, .footer .legal-links { display: flex; justify-content: center; width: 100%; margin: 1rem 0; gap: 1.5rem; }
.footer p { margin-top: 1.5rem; color: var(--color-text-secondary); width: 100%; text-align: center; }
