/* ===== CSS VARIABLES ===== */
:root {
    --primary: #D4A853;
    --primary-dark: #B8872E;
    --secondary: #2D1B0E;
    --accent: #E8C97A;
    --bg-dark: #1A1A2E;
    --bg-card: #16213E;
    --bg-light: #FFF9F0;
    --bg-cream: #FEF3E2;
    --text-dark: #2D1B0E;
    --text-light: #F5F5F5;
    --text-muted: #8B7355;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --border: #E8DCC8;
    --shadow: 0 4px 24px rgba(45,27,14,0.10);
    --shadow-lg: 0 8px 40px rgba(45,27,14,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
    --font: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 1.3rem; color: var(--secondary);
}
.navbar-brand .brand-icon {
    width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
    padding: 8px 18px; border-radius: 10px; font-weight: 500;
    font-size: 0.95rem; color: var(--text-muted); position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-dark); background: var(--bg-cream);
}
.nav-cart {
    position: relative; display: flex; align-items: center;
    padding: 10px 16px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-weight: 600; gap: 8px; font-size: 0.95rem;
}
.nav-cart:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(212,168,83,0.4); color:#fff; }
.cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--danger); color: #fff; font-size: 0.7rem;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #3D2B1F 50%, var(--primary-dark) 100%);
    padding: 100px 2rem 60px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(212,168,83,0.15) 0%, transparent 70%);
    border-radius: 50%; animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,201,122,0.1) 0%, transparent 70%);
    border-radius: 50%; animation: float 6s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.hero-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: 3.2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero-text h1 span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.15rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-egg {
    width: 380px; height: 380px;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex; align-items: center; justify-content: center;
    font-size: 8rem; animation: eggBounce 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(212,168,83,0.3);
}
@keyframes eggBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px; font-weight: 600;
    font-size: 1rem; border: none; cursor: pointer;
    transition: var(--transition); font-family: var(--font);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(212,168,83,0.4); color:#fff; }
.btn-outline {
    background: transparent; border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); color:#fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-warning { background: var(--warning); color: var(--text-dark); }
.btn-info { background: var(--info); color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 80px 2rem; }
.section-title {
    text-align: center; margin-bottom: 50px;
}
.section-title h2 { font-size: 2.2rem; font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.section-title p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-title .accent-line {
    width: 60px; height: 4px; background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px; margin: 16px auto 0;
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto;
}
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card-img {
    height: 220px; background: var(--bg-cream);
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; overflow: hidden; position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
}
.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--secondary); }
.product-card-body .category { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.product-price {
    font-size: 1.3rem; font-weight: 800; color: var(--primary-dark);
    margin-bottom: 12px;
}
.product-card-actions { display: flex; gap: 8px; }
.product-card-actions .btn { flex: 1; justify-content: center; padding: 10px; font-size: 0.85rem; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.feature-card {
    background: #fff; padding: 32px; border-radius: var(--radius);
    text-align: center; box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bg-cream), rgba(212,168,83,0.2));
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--secondary); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== CART ===== */
.cart-container { max-width: 900px; margin: 100px auto 40px; padding: 0 2rem; }
.cart-item {
    display: flex; align-items: center; gap: 20px;
    background: #fff; padding: 20px; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 16px; border: 1px solid var(--border);
}
.cart-item-img { width: 80px; height: 80px; border-radius: 12px; background: var(--bg-cream); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-weight: 700; margin-bottom: 4px; }
.cart-item-info .price { color: var(--primary-dark); font-weight: 700; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
    width: 36px; height: 36px; border: 1px solid var(--border);
    background: #fff; border-radius: 8px; font-size: 1.1rem;
    cursor: pointer; transition: var(--transition); display: flex;
    align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--bg-cream); }
.qty-control input {
    width: 50px; text-align: center; border: 1px solid var(--border);
    border-radius: 8px; padding: 6px; font-weight: 600; font-family: var(--font);
}
.cart-summary {
    background: #fff; padding: 28px; border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-summary .summary-row.total { border: none; font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); padding-top: 16px; }

/* ===== CHECKOUT / FORMS ===== */
.checkout-container { max-width: 800px; margin: 100px auto 40px; padding: 0 2rem; }
.form-card { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 24px; }
.form-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--secondary); }
.form-control {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: 10px; font-family: var(--font); font-size: 0.95rem;
    transition: var(--transition); background: var(--bg-light);
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(212,168,83,0.15); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B7355' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px; border-radius: 10px; margin-bottom: 20px;
    font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-danger { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.alert-warning { background: #FFF3CD; color: #856404; border: 1px solid #FFEAA7; }
.alert-info { background: #D1ECF1; color: #0C5460; border: 1px solid #BEE5EB; }

/* ===== ORDER STATUS ===== */
.status-badge {
    padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block;
}
.status-pending { background: #FFF3CD; color: #856404; }
.status-confirmed { background: #D1ECF1; color: #0C5460; }
.status-processing { background: #CCE5FF; color: #004085; }
.status-shipped { background: #D4EDDA; color: #155724; }
.status-completed { background: #C3E6CB; color: #155724; }
.status-cancelled { background: #F8D7DA; color: #721C24; }

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary); color: rgba(255,255,255,0.7);
    padding: 60px 2rem 30px; margin-top: 40px;
}
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--accent); font-size: 1.1rem; margin-bottom: 16px; }
.footer p, .footer a { font-size: 0.9rem; line-height: 2; }
.footer a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    padding: 120px 2rem 50px; text-align: center; color: #fff;
}
.page-header h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1rem; }

/* ===== TRACK ORDER ===== */
.track-container { max-width: 700px; margin: 100px auto 40px; padding: 0 2rem; }
.order-timeline { position: relative; padding-left: 30px; }
.order-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: var(--border); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 24px; padding-left: 20px; }
.timeline-item::before {
    content: ''; position: absolute; left: -24px; top: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--border); border: 3px solid #fff;
}
.timeline-item.active::before { background: var(--success); }
.timeline-item h4 { font-weight: 700; font-size: 0.95rem; }
.timeline-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: var(--shadow-lg); }
    .nav-links.show { display: flex; }
    .mobile-toggle { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    .hero-egg { width: 240px; height: 240px; font-size: 5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; text-align: center; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ===== CATALOG FILTERS ===== */
.catalog-filters {
    display: flex; gap: 10px; flex-wrap: wrap;
    justify-content: center; margin-bottom: 32px;
}
.filter-btn {
    padding: 8px 20px; border-radius: 24px; font-size: 0.9rem;
    font-weight: 500; background: #fff; border: 2px solid var(--border);
    color: var(--text-muted); cursor: pointer; transition: var(--transition);
    font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    max-width: 500px; margin: 0 auto 30px; position: relative;
}
.search-bar input {
    width: 100%; padding: 14px 48px 14px 20px;
    border: 2px solid var(--border); border-radius: 30px;
    font-family: var(--font); font-size: 0.95rem; background: #fff;
    transition: var(--transition);
}
.search-bar input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(212,168,83,0.15); }
.search-bar button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: var(--primary); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* ===== ORDER SUCCESS ===== */
.success-container { max-width: 600px; margin: 100px auto 40px; padding: 0 2rem; text-align: center; }
.success-icon {
    width: 100px; height: 100px; margin: 0 auto 24px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #fff; animation: successPulse 2s ease-in-out infinite;
}
@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0.4); }
    50% { box-shadow: 0 0 0 20px rgba(40,167,69,0); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center; padding: 60px 20px;
}
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--secondary); }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.toast {
    background: var(--secondary); color: #fff; padding: 14px 24px;
    border-radius: 12px; margin-top: 8px; font-size: 0.9rem;
    box-shadow: var(--shadow-lg); animation: slideInRight 0.4s ease;
    display: flex; align-items: center; gap: 10px;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
