/* =========================================
   TOP SECRET: CSS Variables & Core Rules
   ========================================= */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #fbfbfd;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --accent-blue: #0071e3; 
    --accent-hover: #005bb5;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 10px 30px rgba(0,0,0,0.08);
    --transition-fast: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-main); color: var(--text-dark); overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 5%;
    background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-light);
}

.logo { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.logo-img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; } /* Logo UI Fix */

/* Smart Search */
.search-wrapper { position: relative; width: 40%; }
.search-box {
    display: flex; align-items: center; background-color: var(--bg-secondary);
    border: 1px solid var(--border-light); border-radius: 20px; padding: 8px 16px; width: 100%; transition: var(--transition-fast);
}
.search-box input { border: none; background: transparent; outline: none; width: 100%; font-size: 1rem; color: var(--text-dark); }
.search-box:focus-within { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }

/* Hint Dropdown */
.search-hints {
    position: absolute; top: 110%; left: 0; width: 100%; background: var(--bg-main);
    border-radius: 12px; box-shadow: var(--shadow-premium); border: 1px solid var(--border-light);
    overflow: hidden; z-index: 999;
}
.search-hints.hidden { display: none; }
.hint-item { padding: 12px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: var(--transition-fast); border-bottom: 1px solid var(--border-light); }
.hint-item:hover { background: var(--bg-secondary); }

/* Cart Icon */
.cart-icon { position: relative; cursor: pointer; transition: transform 0.2s ease; }
.cart-icon:hover { transform: scale(1.1); }
#cart-count {
    position: absolute; top: -6px; right: -8px; background-color: var(--accent-blue); color: white;
    font-size: 0.75rem; font-weight: bold; padding: 2px 6px; border-radius: 12px;
}

/* Hero Section */
.hero { background-color: var(--bg-secondary); padding: 60px 5%; text-align: center; display: flex; align-items: center; justify-content: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 10px; letter-spacing: -1px; }
.hero p { font-size: 1.1rem; color: var(--text-muted); }

/* Product Grid */
.product-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 50px 5%; }
.product-card {
    background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 16px;
    padding: 20px; text-align: center; transition: var(--transition-fast); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-premium); }
.product-image { width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; border-radius: 8px; }
.product-title { font-size: 1.2rem; margin-bottom: 5px; font-weight: 600; }
.product-price { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 15px; flex-grow: 1; }

.cta-btn {
    background-color: var(--text-dark); color: white; border: none; padding: 12px 24px;
    font-size: 1rem; font-weight: 600; border-radius: 25px; cursor: pointer; transition: var(--transition-fast); width: 100%;
}
.cta-btn:hover { background-color: var(--accent-blue); }

/* Notifications */
#notification-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
.notification { background: var(--text-dark); color: white; padding: 16px 24px; border-radius: 12px; margin-top: 10px; font-weight: 500; animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; box-shadow: var(--shadow-premium); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 768px) {
    .navbar { flex-wrap: wrap; }
    .search-wrapper { order: 3; width: 100%; margin-top: 15px; }
}
