/* =========================================================
   PREMIUM BLOSSOMLACE THEME
   Glassmorphism, Animated Gradients, Micro-Interactions
========================================================= */

:root {
    --primary: #FFB7B2;      /* Pastel Pink */
    --primary-glow: #ff8fa3; 
    --secondary: #E2F0CB;    /* Pastel Green/Blue */
    --accent: #C7CEEA;       /* Soft Lavender */
    --dark: #2d3436;
    --light: #fdfdfd;
    --gray: #636e72;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(255, 183, 178, 0.15);
    
    --font-head: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* -------------------------------------
   Animated Background Blobs
------------------------------------- */
.blob-container {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden;
    background: #fcfcfc;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: var(--primary);
    animation-delay: 0s;
}
.blob-2 {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: var(--accent);
    animation-delay: -5s;
}
.blob-3 {
    top: 40%; left: 60%; width: 40vw; height: 40vw;
    background: var(--secondary);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-10%, 20%) scale(0.9); }
}

/* -------------------------------------
   Typography & Utilities
------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: var(--font-body); cursor: pointer; outline: none; }

.container { width: 95%; max-width: 1400px; margin: 0 auto; }
.section { padding: 100px 0; }

.gradient-text {
    background: linear-gradient(135deg, #ff8fa3, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* -------------------------------------
   Navbar (Glassmorphism)
------------------------------------- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000; padding: 20px 0; transition: var(--transition);
}
.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--dark); }

.nav-links { display: flex; align-items: center; gap: 25px; font-weight: 500; }
.nav-links a:hover { color: var(--primary-glow); }
.nav-social-icon { font-size: 1.2rem; color: var(--dark); transition: var(--transition); }
.nav-social-icon:hover { color: var(--primary-glow); transform: scale(1.2); }

/* Cart Icon */
.cart-icon-wrapper {
    position: relative; font-size: 1.5rem;
    color: var(--dark); transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.5); border: 1px solid var(--glass-border);
}
.cart-icon-wrapper:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,143,163,0.2); color: var(--primary-glow); }
.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: linear-gradient(135deg, #ff8fa3, #ffb7b2);
    color: white; font-size: 0.75rem; font-weight: bold;
    height: 22px; min-width: 22px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 6px; border: 2px solid white;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-outline {
    border: 2px solid var(--primary-glow);
    color: var(--primary-glow); padding: 10px 24px;
    border-radius: 50px; font-weight: 600;
}
.btn-outline:hover { background: var(--primary-glow); color: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,143,163,0.3); }

/* -------------------------------------
   Hero Banner
------------------------------------- */
.hero-catalog {
    position: relative; padding: 220px 0 120px;
    text-align: center; overflow: hidden;
}
.hero-content { position: relative; z-index: 10; }

.floating-icon {
    position: absolute; 
    opacity: 0.6; z-index: 5; pointer-events: none;
    animation: floatIcon 10s infinite alternate ease-in-out;
}
.icon-1 { top: 15%; left: 15%; font-size: 3rem; color: #ff8fa3; animation-delay: 0s; animation-duration: 12s; }
.icon-2 { top: 25%; right: 12%; font-size: 2.5rem; color: #a29bfe; animation-delay: -2s; animation-duration: 15s; }
.icon-3 { bottom: 20%; left: 20%; font-size: 4rem; color: #74b9ff; animation-delay: -5s; animation-duration: 18s; }
.icon-4 { top: 60%; right: 18%; font-size: 2.5rem; color: #fab1a0; animation-delay: -1s; animation-duration: 14s; }
.icon-5 { top: 75%; left: 8%; font-size: 2rem; color: #55efc4; animation-delay: -7s; animation-duration: 11s; }

@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    100% { transform: translateY(-30px) rotate(20deg) scale(1.1); }
}

.hero-subtitle {
    display: block; font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--gray); margin-bottom: 20px;
}
.hero-catalog h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; }
.hero-catalog p { font-size: 1.2rem; max-width: 650px; margin: 0 auto; color: var(--gray); }

/* -------------------------------------
   Catalog Section
------------------------------------- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 3rem; margin-bottom: 10px; }
.section-header p { color: var(--gray); font-size: 1.1rem; }

.filters-container {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 50px; flex-wrap: wrap; gap: 20px;
}
.filters { display: flex; gap: 15px; flex-wrap: wrap; }
.sort-select {
    padding: 12px 35px 12px 25px; border-radius: 50px;
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    color: var(--dark); font-family: var(--font-body); font-weight: 500;
    backdrop-filter: blur(10px); outline: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23636e72%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 10px auto;
}
.sort-select:hover, .sort-select:focus {
    border-color: var(--primary-glow); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .filters-container { justify-content: center; flex-direction: column; gap: 15px; margin-bottom: 25px; }
    .filters {
        display: flex; flex-wrap: nowrap; width: 100%;
        justify-content: space-between; gap: 5px;
    }
    .filter-btn { 
        flex: 1; white-space: nowrap; padding: 8px 2px; 
        font-size: 0.75rem; text-align: center; letter-spacing: -0.2px;
    }
    .sort-filter { width: 100%; }
    .sort-select { width: 100%; font-size: 0.85rem; padding: 10px 30px 10px 15px; }
}

.filter-btn {
    padding: 12px 28px; border: 1px solid var(--glass-border);
    background: var(--glass-bg); backdrop-filter: blur(10px);
    color: var(--dark); font-weight: 500; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--dark); color: white;
    transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Product Grid & Premium Card */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }

@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 143, 163, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
}

.product-img { width: 100%; aspect-ratio: 1 / 1; height: auto; overflow: hidden; position: relative; border-radius: 24px 24px 0 0; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1); }
.product-card:hover .product-img img { transform: scale(1.08); }

.product-badge {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(10px);
    padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
    color: var(--primary-glow); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.product-category { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; font-weight: 600; }
.product-title { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.2; }
.product-desc { font-size: 0.85rem; color: var(--gray); margin-bottom: 15px; flex-grow: 1; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--primary-glow); margin-bottom: 15px; }

/* Glowing Buttons */
.card-actions { display: flex; flex-direction: row; gap: 8px; margin-top: auto; }

.btn-primary-glow {
    background: linear-gradient(135deg, #ff8fa3, #ffb7b2);
    color: white; border: none; padding: 0; height: 40px;
    border-radius: 12px; font-weight: 600; font-size: 0.9rem;
    flex: 1; display: flex; justify-content: center; align-items: center; gap: 5px;
    transition: var(--transition); position: relative; overflow: hidden; z-index: 1;
}
.btn-primary-glow::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #ffb7b2, #ff8fa3);
    opacity: 0; z-index: -1; transition: var(--transition);
}
.btn-primary-glow:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255,143,163,0.4); }
.btn-primary-glow:hover::before { opacity: 1; }

.btn-ghost {
    background: transparent; color: var(--dark);
    border: 2px solid var(--glass-border); padding: 0;
    border-radius: 12px; font-weight: 600; font-size: 1.1rem;
    width: 40px; height: 40px; display: flex; justify-content: center; align-items: center;
    transition: var(--transition); flex-shrink: 0;
}
.btn-ghost:hover {
    border-color: var(--dark); background: var(--dark); color: white;
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.w-100 { width: 100%; }

/* -------------------------------------
   Glass Modals & Panels
------------------------------------- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 1; transition: var(--transition);
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Cart Sidebar */
.cart-sidebar {
    position: absolute; right: 0; top: 0;
    width: 450px; max-width: 100%; height: 100%;
    display: flex; flex-direction: column;
    transform: translateX(0); transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-overlay.hidden .cart-sidebar { transform: translateX(100%); }

.cart-header { padding: 30px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.8rem; }
.close-btn { background: none; border: none; font-size: 2rem; line-height: 1; color: var(--gray); transition: 0.2s; }
.close-btn:hover { color: var(--primary-glow); transform: rotate(90deg); }

.cart-body { flex: 1; overflow-y: auto; padding: 30px; }
.cart-item { display: flex; gap: 20px; margin-bottom: 25px; align-items: center; }
.cart-item-img { width: 90px; height: 90px; border-radius: 16px; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 5px; }
.cart-item-price { color: var(--primary-glow); font-weight: 600; margin-bottom: 10px; }
.cart-qty-controls { display: flex; align-items: center; gap: 15px; }
.cart-qty-btn { background: rgba(0,0,0,0.05); border: none; width: 32px; height: 32px; border-radius: 8px; font-weight: bold; transition: 0.2s; }
.cart-qty-btn:hover { background: var(--dark); color: white; }

.cart-footer { padding: 30px; background: rgba(255,255,255,0.5); border-top: 1px solid rgba(0,0,0,0.05); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: bold; margin-bottom: 20px; }

/* Login Modal */
.login-panel { 
    padding: 30px; border-radius: 20px; width: 90%; max-width: 450px; 
    max-height: 90vh; overflow-y: auto; position: relative; 
    transform: scale(1); transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.modal-overlay.hidden .login-panel { transform: scale(0.9); }
.login-panel .close-btn { position: absolute; top: 15px; right: 20px; }
.modal-header-center { text-align: center; margin-bottom: 20px; }
.modal-header-center h3 { font-size: 1.7rem; margin-bottom: 5px; }
.modal-header-center p { color: var(--gray); font-size: 0.9rem; margin-bottom: 5px; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px;
    background: rgba(255,255,255,0.6); border: 2px solid rgba(0,0,0,0.05);
    border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem;
    transition: var(--transition); outline: none;
}
.form-group textarea { resize: vertical; min-height: 70px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-glow); background: white; box-shadow: 0 10px 20px rgba(255,143,163,0.1); }

/* Terms Section */
.terms-section { margin-bottom: -20px; position: relative; z-index: 2; margin-top: 20px; }
.terms-panel { padding: 35px 40px; border-radius: 24px; text-align: left; }
.terms-panel h3 { margin-bottom: 20px; font-size: 1.4rem; color: var(--primary-glow); display: flex; align-items: center; gap: 10px; }
.terms-panel ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.terms-panel li { position: relative; padding-left: 25px; color: var(--dark); font-size: 0.95rem; line-height: 1.5; }
.terms-panel li::before { content: '✨'; position: absolute; left: 0; top: 2px; font-size: 0.9rem; }
@media (max-width: 768px) { .terms-panel ul { grid-template-columns: 1fr; } .terms-panel { padding: 25px; } }

/* Footer & Tentang Kami */
.glass-footer { background: rgba(255,255,255,0.3); backdrop-filter: blur(20px); border-top: 1px solid var(--glass-border); margin-top: 50px; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h2 { font-size: 2.5rem; margin-bottom: 15px; }
.footer-brand p { color: var(--gray); line-height: 1.6; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 15px; }
.social-icon { 
    width: 45px; height: 45px; border-radius: 50%; background: white; 
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    color: var(--dark); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition);
}
.social-icon:hover { background: var(--primary-glow); color: white; transform: translateY(-5px); }

.footer-contact h3, .footer-maps h3 { margin-bottom: 20px; font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.footer-contact p { color: var(--gray); margin-bottom: 15px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact p i { color: var(--primary-glow); margin-top: 5px; }
.mt-3 { margin-top: 15px; display: inline-block; }

.contact-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: white; padding: 12px 25px; border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); font-weight: 600;
}
.contact-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.contact-btn.wa .icon { color: #25D366; font-size: 1.3rem; }

.maps-container iframe { width: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--glass-border); color: var(--gray); font-size: 0.9rem; }

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-socials { justify-content: center; }
    .footer-contact p { justify-content: center; }
}

/* -------------------------------------
   Animation: Flying to Cart
------------------------------------- */
.flying-img {
    position: fixed;
    z-index: 9999;
    width: 60px; height: 60px;
    border-radius: 50%; object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .nav-links a:not(.cart-icon-wrapper):not(.btn-outline) { display: none; }
    .nav-links { gap: 10px; }
    .btn-outline { padding: 8px 15px; font-size: 0.85rem; }
    .logo { font-size: 1.5rem; }
    .hero-catalog { 
        padding: 80px 15px 30px; 
        min-height: 100vh; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
    }
    .hero-catalog h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 2rem; }
    .section-header p { font-size: 0.95rem; }
    .section-header { margin-bottom: 30px; }
    .footer-container { flex-direction: column; text-align: center; }
    .cart-sidebar { width: 100%; }
}
