* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }
body { background-color: #F5F5DC; color: #1B3022; }

/* HEADER */
header { background-color: #1B3022; display: flex; align-items: center; justify-content: space-between; padding: 12px 40px; position: sticky; top: 0; z-index: 1000; }
.logo-box { background: white; padding: 6px 15px; border-radius: 20px; }
.logo-box span { color: #1B3022; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; }

.search-container { flex: 2; display: flex; justify-content: center; padding: 0 40px; }
.search-input { width: 100%; max-width: 500px; padding: 10px 18px; border-radius: 25px; border: none; outline: none; }

.header-right { display: flex; gap: 20px; align-items: center; }
.icon-btn { color: #F5F5DC; font-size: 1.3rem; text-decoration: none; position: relative; }
.badge-count { position: absolute; top: -8px; right: -10px; background: #90EE90; color: #1B3022; font-size: 0.7rem; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid #1B3022; }

/* SIDEBAR */
.sidebar { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: #1B3022; z-index: 3001; transition: 0.4s; padding: 20px; display: flex !important; flex-direction: column; }
.sidebar.active { left: 0; }
.close-sidebar { color: #F5F5DC; font-size: 2rem; cursor: pointer; float: right; }
.sidebar-links { display: flex; flex-direction: column; gap: 20px; margin-top: 50px; flex-grow: 1; }
.sidebar-links a { color: #F5F5DC; text-decoration: none; font-size: 1.2rem; font-weight: 600; }
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 3000; }
.overlay.active { display: block; }

/* HARTA SIDEBAR */
.sidebar-map-area { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(245, 245, 220, 0.2); text-align: center; margin-bottom: 20px; }
.sidebar-map-area h4 { color: #F5F5DC; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 1px; }
.map-frame { width: 100%; height: 180px; border: 2px solid #F5F5DC; border-radius: 15px; overflow: hidden; transition: transform 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.map-frame:hover { transform: scale(1.02); border-color: #90EE90; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* GRID PRODUSE */
.content { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { background: white; border-radius: 12px; border: 1px solid #e0e0d1; overflow: hidden; position: relative; transition: 0.3s; }

.wishlist-icon, .info-icon { position: absolute; right: 12px; width: 35px; height: 35px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #1B3022; cursor: pointer; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.wishlist-icon { top: 12px; }
.info-icon { top: 55px; }
.wishlist-icon.active { background: #1B3022; color: #F5F5DC; }

.product-image { height: 300px; background: #fafafa; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 30px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; display: block; }

.product-info { padding: 15px; text-align: center; }
.price { color: #1B3022; font-size: 1.2rem; font-weight: 800; margin: 10px 0; }
.add-to-cart { background: #1B3022; color: #F5F5DC; border: none; padding: 10px; border-radius: 8px; width: 100%; font-weight: bold; cursor: pointer; }

/* MODALS */
.wishlist-modal { display: none; position: fixed; top: 80px; left: 50%; transform: translateX(-50%); width: 350px; background: white; border-radius: 12px; z-index: 2000; padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.wishlist-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; margin-bottom: 10px; }
.close-modal { cursor: pointer; font-size: 1.5rem; }
.info-modal, .note-modal { display: none; position: fixed; z-index: 4000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.info-content, .note-content { background: #F5F5DC; margin: 15% auto; padding: 25px; width: 85%; max-width: 400px; border-radius: 15px; position: relative; text-align: center; border: 2px solid #1B3022; }
.note-content { background: #fff; }
.close-info, .close-note { position: absolute; right: 15px; top: 10px; cursor: pointer; font-size: 20px; font-weight: bold;}

.note-textarea { width: 100%; height: 100px; padding: 10px; margin: 15px 0; border: 1px solid #ccc; border-radius: 8px; resize: none; font-family: inherit; }
.btn-save-note { background: #1B3022; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-cancel-note { background: #ddd; color: #333; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-right: 10px; }

/* SEARCH */
.search-container { position: relative; z-index: 5001; }
.search-results { display: block; position: absolute; top: 100%; left: 50%; width: 100%; max-width: 540px; margin-top: 12px; background: white; border-radius: 15px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 15px 35px rgba(0,0,0,0.15); z-index: 5000; max-height: 350px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-20px) scale(0.98); transition: all 0.3s; }
.search-results.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
.search-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.2s ease; }
.search-item:hover { background-color: #f0f7f0; }
.search-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; margin-right: 15px; border: 1px solid #eee; }
.search-left-side { display: flex; align-items: center; }

@keyframes highlightPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(144, 238, 144, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(144, 238, 144, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(144, 238, 144, 0); }
}
.highlight-product { animation: highlightPulse 1s ease-out; border: 2px solid #90EE90 !important; z-index: 100; position: relative; }

/* RESPONSIVE */
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    header { flex-wrap: wrap; gap: 10px; padding: 15px; height: auto; }
    .header-left { order: 1; flex: 1; }
    .header-right { order: 2; justify-content: flex-end; }
    .search-container { order: 3; width: 100%; position: static; padding: 5px 0 0 0; margin: 0; }
    .content { margin-top: 20px; }
}
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }