/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #232f3e;
    --secondary: #ff9900;
    --light: #f2f2f2;
    --dark: #131921;
    --text: #333;
    --text-light: #777;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

body {
    background-color: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-header {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo { font-size: 24px; font-weight: bold; color: white; display:flex; align-items:center; }
.logo span { color: var(--secondary); }

.search-bar { flex:1; margin:0 20px; display:flex; }
.search-bar input { width:100%; padding:10px 15px; border:none; border-radius:4px 0 0 4px; font-size:16px; }
.search-bar button { background-color: var(--secondary); color:white; padding:10px 15px; border-radius:0 4px 4px 0; transition:background-color 0.3s ease; }
.search-bar button:hover { background-color:#e68900; }

.header-actions { display:flex; align-items:center; }
.header-action { margin-left:20px; display:flex; flex-direction:column; align-items:center; cursor:pointer; transition:color 0.3s ease; }
.header-action:hover { color: var(--secondary); }
.header-action i { font-size:20px; }
.header-action span { font-size:12px; }

.cart-count {
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}
.cart-icon { position: relative; }

.nav-menu { background-color: var(--primary); padding:8px 0; }
.nav-links { display:flex; list-style:none; }
.nav-links li { margin-right:20px; }
.nav-links a { color:white; font-size:14px; transition:color 0.3s ease; }
.nav-links a:hover { color: var(--secondary); }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1607082350899-7e105aa886ae?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
}
.hero h1 { font-size: 48px; margin-bottom:20px; }
.hero p { font-size:20px; margin-bottom:30px; }

.btn { display:inline-block; padding:12px 30px; background-color:var(--secondary); color:white; border-radius:4px; font-weight:bold; transition:all 0.3s ease; }
.btn:hover { background-color:#e68900; transform: translateY(-2px); }

/* Categories & Products */
.section-title { font-size:24px; margin-bottom:20px; padding-bottom:10px; border-bottom:2px solid var(--light); }

.categories { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap:20px; margin-bottom:40px; }
.category-card { background:white; border-radius:8px; overflow:hidden; box-shadow:0 3px 10px rgba(0,0,0,0.1); transition:transform 0.3s ease; text-align:center; padding:20px; cursor:pointer; }
.category-card:hover { transform: translateY(-5px); }
.category-icon { font-size:40px; margin-bottom:15px; color:var(--primary); }

.products-filter { display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.filter-btn { padding:8px 16px; background:white; border:1px solid var(--light); border-radius:4px; transition:all 0.3s ease; }
.filter-btn.active, .filter-btn:hover { background-color: var(--primary); color:white; }

.products { display:grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap:25px; margin-bottom:40px; }
.product-card { background:white; border-radius:8px; overflow:hidden; box-shadow:0 3px 10px rgba(0,0,0,0.1); transition:transform 0.3s ease; }
.product-card:hover { transform: translateY(-5px); }
.product-image { height:200px; width:100%; object-fit:cover; }
.product-info { padding:15px; }
.product-title { font-size:16px; margin-bottom:10px; height:40px; overflow:hidden; }
.product-price { font-size:18px; font-weight:bold; color:var(--primary); margin-bottom:10px; }
.product-rating { color:var(--secondary); margin-bottom:10px; }

.add-to-cart { width:100%; padding:10px; background-color:var(--secondary); color:white; border-radius:4px; font-weight:bold; transition:background-color 0.3s ease; }
.add-to-cart:hover{ background-color:#e68900; }

/* Footer */
footer { background-color: var(--dark); color:white; padding:40px 0 20px; }
.footer-content { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:30px; margin-bottom:30px; }
.footer-column h3 { font-size:18px; margin-bottom:20px; color: var(--secondary); }
.footer-links { list-style:none; }
.footer-links li { margin-bottom:10px; }
.footer-links a:hover { color: var(--secondary); }
.copyright { text-align:center; padding-top:20px; border-top:1px solid rgba(255,255,255,0.1); font-size:14px; }

/* Modal */
.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background-color: rgba(0,0,0,0.5); z-index:1100; justify-content:center; align-items:center; }
.modal-content { background:white; width:90%; max-width:800px; border-radius:8px; padding:20px; max-height:80vh; overflow-y:auto; }
.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; padding-bottom:10px; border-bottom:1px solid var(--light); }
.close-modal { font-size:24px; cursor:pointer; transition:color 0.3s ease; }
.close-modal:hover { color: var(--danger); }

/* Cart */
.cart-items { margin-bottom:20px; }
.cart-item { display:flex; padding:15px 0; border-bottom:1px solid var(--light); }
.cart-item-image { width:80px; height:80px; object-fit:cover; margin-right:15px; border-radius:4px; }
.cart-item-details { flex:1; }
.cart-item-title { font-weight:bold; margin-bottom:5px; }
.cart-item-price { color:var(--primary); font-weight:bold; }
.cart-item-quantity { display:flex; align-items:center; margin:10px 0; }
.quantity-btn { width:30px; height:30px; background-color:var(--light); border-radius:4px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background-color 0.3s ease; }
.quantity-btn:hover { background-color:#ddd; }
.quantity-input { width:40px; height:30px; text-align:center; margin:0 10px; border:1px solid var(--light); border-radius:4px; }
.remove-item { color:var(--danger); cursor:pointer; margin-top:10px; transition:color 0.3s ease; }
.remove-item:hover { color:#c82333; }
.cart-summary { border-top:1px solid var(--light); padding-top:20px; }
.cart-total { display:flex; justify-content:space-between; font-size:18px; font-weight:bold; margin-bottom:20px; }
.checkout-btn { width:100%; padding:12px; background-color:var(--secondary); color:white; border-radius:4px; font-weight:bold; font-size:16px; transition:background-color 0.3s ease; }
.checkout-btn:hover { background-color:#e68900; }

/* Account */
.account-content input { width:100%; padding:12px; margin-bottom:15px; border:1px solid var(--light); border-radius:4px; font-size:16px; }
.account-content input:focus { border-color:var(--secondary); outline:none; }
.login-form, .register-form { text-align:center; }
.login-form h3, .register-form h3 { margin-bottom:20px; color:var(--primary); }

/* Notification */
.notification { position: fixed; bottom: 20px; right: 20px; padding: 15px 25px; background-color: var(--success); color: white; border-radius: 4px; z-index: 1200; box-shadow: 0 3px 10px rgba(0,0,0,0.2); transform: translateX(150%); transition: transform 0.3s ease; }
.notification.show { transform: translateX(0); }
.notification.error { background-color: var(--danger); }
.notification.warning { background-color: var(--warning); color: var(--text); }
