/* ==================== Global Styles ==================== */
:root { --primary-color: #667eea; --secondary-color: #764ba2; --text-dark: #2d3748; --text-light: #718096; --bg-light: #f7fafc; --border-color: #e2e8f0; --danger-color: #e53e3e; --success-color: #48bb78; --whatsapp-color: #25d366; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: var(--text-dark); line-height: 1.6; }

/* ==================== Header ==================== */
.main-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; padding: 1rem 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; max-width: 1200px; margin: 0 auto; }
.header-title { color: var(--text-dark); font-size: 1.5rem; font-weight: 700; text-align: center; flex: 1; }
.icon-btn { background: var(--primary-color); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 1.1rem; }
.icon-btn:hover { background: var(--secondary-color); transform: translateY(-2px); }
.delivery-cart-btn { position: relative; }
.delivery-cart-btn::after { content: attr(data-count); position: absolute; top: -5px; right: -5px; background: var(--danger-color); color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }
.nav-links { display: none; flex-direction: column; background: white; padding: 1rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); border-radius: 0 0 10px 10px; }
.nav-links.active { display: flex; }
.nav-links a { padding: 0.75rem 1rem; text-decoration: none; color: var(--text-dark); border-bottom: 1px solid var(--border-color); transition: all 0.3s ease; font-weight: 500; }
.nav-links a:last-child { border-bottom: none; }
.nav-links a:hover { background: var(--bg-light); color: var(--primary-color); padding-right: 1.5rem; }

/* ==================== Main Content ==================== */
.search-container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.search-input { width: 100%; padding: 1rem 1.5rem; border: none; border-radius: 50px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); font-size: 1.1rem; transition: all 0.3s ease; }
.search-input:focus { outline: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }
.search-input::placeholder { color: #a0aec0; }
.quick-actions-container { display: flex; justify-content: center; gap: 1rem; margin: -1rem auto 2rem auto; padding: 0 1rem; }
.quick-action-btn { background: white; border: none; border-radius: 25px; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--primary-color); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; }
.quick-action-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.quick-action-btn.install-btn { display: none; }
.category-filters { display: flex; gap: 0.5rem; padding: 1rem; overflow-x: auto; max-width: 1200px; margin: 0 auto; }
.category-btn { background: rgba(255, 255, 255, 0.9); border: 2px solid transparent; padding: 0.75rem 1.5rem; border-radius: 25px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-weight: 500; color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }
.category-btn:hover { background: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.category-btn.active { background: var(--primary-color); color: white; border-color: var(--secondary-color); }
.category-btn i { font-size: 1.1rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; padding: 1rem; max-width: 1200px; margin: 0 auto; }
.product-card { background: rgba(255, 255, 255, 0.95); border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; backdrop-filter: blur(10px); position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.product-media { position: relative; width: 100%; height: 200px; background-color: #f0f0f0; border-bottom: 1px solid var(--border-color); }
.product-media img, .product-media iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border: none; }
.product-info { padding: 1.5rem; }
.product-info h3 { color: var(--text-dark); margin-bottom: 0.5rem; font-size: 1.2rem; }
.product-info p { color: var(--text-light); margin-bottom: 0.5rem; font-size: 0.95rem; }
.price { color: var(--primary-color) !important; font-weight: 700; font-size: 1.1rem !important; }
.add-to-cart-btn { width: 100%; padding: 0.75rem; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; margin-top: 0.5rem; background: var(--primary-color); color: white; }
.whatsapp-order-btn { width: 100%; padding: 0.75rem; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; margin-top: 0.5rem; background: var(--whatsapp-color); color: white; }
.add-to-cart-btn:hover, .whatsapp-order-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.view-video-btn { position: absolute; top: 10px; left: 10px; z-index: 5; background: rgba(0, 0, 0, 0.6); color: white; border: none; border-radius: 20px; padding: 5px 10px; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 5px; backdrop-filter: blur(5px); }
.view-video-btn:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.05); }

/* ==================== Modals ==================== */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.modal-content { background-color: white; margin: 5% auto; padding: 2rem; border-radius: 15px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); position: relative; animation: slideIn 0.4s; }
.large-modal { max-width: 700px; }
.close-btn { position: absolute; left: 1rem; top: 1rem; font-size: 1.5rem; cursor: pointer; color: #a0aec0; transition: color 0.3s ease; }
.close-btn:hover { color: var(--danger-color); }
.modal h2 { color: var(--text-dark); margin-bottom: 1.5rem; text-align: center; font-size: 1.5rem; }
.modal h2 i { margin: 0 0.5rem; color: var(--primary-color); }
.cart-item { display: flex; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border-color); gap: 1rem; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { color: var(--text-dark); margin-bottom: 0.25rem; }
.cart-item-info p { color: var(--text-light); font-size: 0.9rem; }
.remove-from-cart-btn { background: var(--danger-color); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; transition: all 0.3s ease; }
.remove-from-cart-btn:hover { background: #c53030; transform: scale(1.1); }
#cart-total { text-align: center; font-weight: 700; font-size: 1.2rem; color: var(--text-dark); margin: 1rem 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-light); }
#add-product-form hr, #buy-store-form hr { border: 0; height: 1px; background: var(--border-color); margin: 1rem 0 2rem 0; }
input, textarea, select { width: 100%; padding: 0.75rem; border: 2px solid var(--border-color); border-radius: 10px; font-size: 1rem; transition: all 0.3s ease; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
.submit-btn { width: 100%; padding: 1rem; background: var(--primary-color); color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.submit-btn:hover { background: var(--secondary-color); transform: translateY(-2px); }
#checkout-btn { background: var(--whatsapp-color); }
#checkout-btn:hover { background: #128c7e; }
.offers-list { list-style: none; padding: 0; }
.offers-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--border-color); }
.offers-list li:last-child { border-bottom: none; }
.offers-list li i { font-size: 1.8rem; color: var(--primary-color); width: 40px; text-align: center; }
.offers-list li div strong { display: block; color: var(--text-dark); font-size: 1.1rem; }
.offers-list li div p { color: var(--text-light); margin: 0; }
.service-section { margin-bottom: 1.5rem; text-align: center; }
.service-section:last-child { margin-bottom: 0; }
.service-section h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.3rem; }
.service-section p { color: var(--text-dark); font-size: 1rem; }
.local-delivery-price { background: var(--bg-light); padding: 0.5rem; border-radius: 8px; margin-top: 1rem; font-size: 1.1rem; }
.section-divider { border: 0; height: 1px; background: var(--border-color); margin: 2rem 0; }
.global-stores-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.global-stores-list li { background: var(--bg-light); padding: 0.5rem 1rem; border-radius: 20px; font-weight: 500; color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }

/* ==================== Misc & Animations ==================== */
.notification { position: fixed; bottom: 20px; right: 20px; background: var(--success-color); color: white; padding: 1rem 1.5rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transform: translateY(100px); opacity: 0; transition: all 0.3s ease; z-index: 3000; font-weight: 500; }
.notification.show { transform: translateY(0); opacity: 1; }
.message { padding: 1rem; border-radius: 8px; margin-top: 1rem; text-align: center; font-weight: 500; display: none; }
.message.success { background: #c6f6d5; color: #22543d; }
.message.error { background: #fed7d7; color: #742a2a; }
.offers-btn-animation i { animation: gift-shake 2s infinite; }
@keyframes gift-shake { 0%, 100% { transform: rotate(0deg); } 10%, 30%, 50% { transform: rotate(-5deg); } 20%, 40% { transform: rotate(5deg); } 60% { transform: scale(1.1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-30px); opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } .quick-actions-container { flex-direction: column; align-items: center; } }
