/* style.css */
:root {
    --primary: #FFB300;
    --primary-light: #FFC107;
    --primary-dark: #FF8F00;
    --accent: #FF5252;
    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #FAFAFA;
    --bg-card: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

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

body { 
    font-family: 'Poppins', 'Noto Sans KR', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

/* Glassmorphism Header */
.glass-header {
    position: sticky; 
    top: 0; 
    z-index: 1000;
    background: var(--glass-bg); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.header-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 15px 20px;
}

.brand-logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.logo-icon { 
    font-size: 1.8rem; 
}

.highlight { 
    color: var(--primary-dark); 
}

.main-nav ul { 
    display: flex; 
    gap: 24px; 
}

.main-nav a { 
    font-weight: 500; 
    transition: color 0.3s; 
}

.main-nav a:hover, 
.main-nav a.active { 
    color: var(--primary-dark); 
}

.cart-btn {
    background: none; 
    border: none; 
    cursor: pointer; 
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 8px; 
    color: var(--text-main); 
    transition: transform 0.2s;
}

.cart-btn:hover { 
    transform: scale(1.1); 
}

.badge {
    position: absolute; 
    top: 0; 
    right: 0; 
    background: var(--accent); 
    color: white;
    font-size: 0.75rem; 
    font-weight: 700; 
    width: 18px; 
    height: 18px;
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

/* Hero Section */
.hero-section {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
    gap: 40px;
}

.hero-content { 
    flex: 1; 
}

.badge-new { 
    display: inline-block; 
    background: var(--primary-light); 
    color: var(--text-main); 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-bottom: 15px; 
}

.hero-title { 
    font-size: 3rem; 
    font-weight: 700; 
    line-height: 1.2; 
    margin-bottom: 15px; 
}

.hero-subtitle { 
    font-size: 1.1rem; 
    color: var(--text-light); 
    margin-bottom: 30px; 
}

.cta-btn { 
    display: inline-block; 
    background: var(--primary-dark); 
    color: white; 
    padding: 14px 32px; 
    border-radius: 30px; 
    font-weight: 600; 
    font-size: 1.1rem; 
    box-shadow: 0 4px 15px rgba(255,143,0,0.3); 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.cta-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(255,143,0,0.4); 
}

.hero-visual { 
    flex: 1; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 350px; 
}

.mango-blob { 
    position: absolute; 
    width: 320px; 
    height: 320px; 
    background: var(--primary); 
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; 
    z-index: -1; 
    animation: morph 8s ease-in-out infinite; 
    opacity: 0.25; 
}

@keyframes morph { 
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; } 
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 
}

.floating-mango { 
    width: 280px; 
    height: 280px; 
    object-fit: cover; 
    border-radius: 50%; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    animation: float 6s ease-in-out infinite; 
}

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-20px); } 
}

/* Shop Layout */
.shop-layout { 
    display: flex; 
    max-width: 1200px; 
    margin: 0 auto 60px; 
    padding: 0 20px; 
    gap: 30px; 
    align-items: flex-start; 
}

/* Products Section */
.products-section { 
    flex: 1; 
}

.section-title { 
    font-size: 2rem; 
    margin-bottom: 25px; 
    color: var(--text-main); 
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 25px; 
}

.product-card { 
    background: var(--bg-card); 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); 
    transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; 
    flex-direction: column; 
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.card-img-wrapper { 
    position: relative; 
    width: 100%; 
    height: 220px; 
}

.card-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.card-tag { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: var(--primary-dark); 
    color: white; 
    padding: 4px 12px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    border-radius: 12px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

.tag-sale { 
    background: var(--accent); 
}

.card-info { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}

.product-name { 
    font-size: 1.1rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: var(--text-main); 
}

.product-price { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--primary-dark); 
    margin-bottom: 20px; 
    flex: 1; 
}

.add-to-cart-btn { 
    width: 100%; 
    background: white; 
    color: var(--primary-dark); 
    border: 2px solid var(--primary-dark); 
    padding: 12px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: all 0.3s; 
}

.add-to-cart-btn:hover { 
    background: var(--primary-dark); 
    color: white; 
}

/* Cart Summary Sidebar */
.cart-summary-panel {
    width: 320px; 
    background: var(--bg-card); 
    border-radius: 16px; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    position: sticky; 
    top: 90px; 
    display: flex; 
    flex-direction: column; 
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-summary-header { 
    border-bottom: 1px solid #EEE; 
    padding-bottom: 15px; 
    margin-bottom: 15px; 
}

.cart-summary-header h3 { 
    font-size: 1.3rem; 
    margin-bottom: 5px; 
}

.cart-desc { 
    font-size: 0.85rem; 
    color: var(--primary-dark); 
    font-weight: 600; 
}

.cart-items { 
    min-height: 150px; 
    max-height: 350px; 
    overflow-y: auto; 
    margin-bottom: 25px; 
    padding-right: 5px; 
}

.empty-cart-msg { 
    text-align: center; 
    color: var(--text-light); 
    font-size: 0.95rem; 
    margin-top: 50px; 
}

/* Scrollbar styling for cart */
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.cart-items::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.cart-items::-webkit-scrollbar-thumb:hover { background: #aaa; }

.cart-calculations { 
    background: #F9F9F9; 
    padding: 18px; 
    border-radius: 12px; 
    margin-bottom: 20px; 
}

.calc-row { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.95rem; 
    margin-bottom: 10px; 
    color: var(--text-light); 
}

.total-row { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px solid #E0E0E0; 
    margin-bottom: 0; 
}

.highlight-text { 
    color: var(--accent); 
    font-weight: 600; 
}

.checkout-btn { 
    width: 100%; 
    background: var(--primary-dark); 
    color: white; 
    border: none; 
    padding: 16px; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: background 0.3s; 
}

.checkout-btn:hover { 
    background: #E68000; 
}

/* Footer */
.main-footer { 
    text-align: center; 
    padding: 30px; 
    color: var(--text-light); 
    border-top: 1px solid #EEE; 
    margin-top: auto; 
}

/* Responsive Design */
@media (max-width: 900px) {
    .shop-layout { 
        flex-direction: column; 
    }
    
    .products-section { 
        width: 100%; 
    }
    
    .cart-summary-panel { 
        width: 100%; 
        position: fixed; 
        bottom: 0; 
        left: 0; 
        top: auto; 
        z-index: 2000; 
        border-radius: 24px 24px 0 0; 
        transform: translateY(100%); 
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1); 
    }
    
    .cart-summary-panel.open { 
        transform: translateY(0); 
    }
    
    .hero-section { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 20px; 
    }
    
    .hero-title { 
        font-size: 2.4rem; 
    }
    
    .main-nav { 
        display: none; 
    }
}