
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background: #ffffff; color: #111; margin: 0; padding: 0; display: flex; min-height: 100vh; overflow-x: hidden; }
* { box-sizing: border-box; }

/* Sidebar */
.sidebar { width: 260px; background: #f9f9f9; padding: 40px 20px; border-right: 1px solid #eaeaea; position: fixed; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 25px; z-index: 50; }
.sidebar h2 { font-size: 1.4em; text-transform: uppercase; letter-spacing: 2px; margin: 0; font-weight: 800; color: #111; }
.sidebar h3 { font-size: 0.9em; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px 0; color: #888; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-item { padding: 10px 15px; cursor: pointer; font-size: 0.9em; color: #444; border-radius: 6px; transition: background 0.2s, color 0.2s; display: block; text-decoration: none; }
.nav-item:hover, .nav-item.active { background: #111; color: #fff; font-weight: bold; }

/* Main Content */
.main-content { flex-grow: 1; margin-left: 260px; padding: 40px 50px; padding-bottom: 100px; }
.banner { background: #111; color: #fff; padding: 12px; text-align: center; font-weight: bold; letter-spacing: 2px; font-size: 0.9em; margin: -40px -50px 40px -50px; position: sticky; top: 0; z-index: 40; }

.header { margin-bottom: 40px; border-bottom: 2px solid #eee; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.header h1 { font-size: 2.2em; margin: 0; letter-spacing: 1px; font-weight: 800; }
.header p { color: #777; font-size: 1em; margin: 5px 0 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 25px; align-items: stretch; }
.card { background: #fff; border-radius: 8px; padding: 20px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #f0f0f0; transition: transform 0.2s, box-shadow 0.2s; height: 100%; cursor: pointer; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: #ddd; }

.card-top { display: flex; flex-direction: column; flex-grow: 1; pointer-events: none; }
.card-bottom { margin-top: auto; pointer-events: none; }

.image-container { height: 180px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; overflow: hidden; background: #fff; }
.image-container img { max-width: 100%; max-height: 100%; object-fit: contain; }

.brand { text-transform: uppercase; font-size: 0.7em; color: #999; letter-spacing: 1px; margin-bottom: 5px; font-weight: bold; }
.title { font-size: 0.95em; font-weight: 600; margin: 0 0 5px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; color: #111; height: 38px; }
.variant { font-size: 0.8em; color: #888; margin-bottom: 10px; height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.price { font-size: 1.3em; font-weight: bold; color: #000; margin-bottom: 15px; }

.quick-add-btn { background: #fff; color: #111; border: 2px solid #111; padding: 10px 15px; text-transform: uppercase; font-weight: bold; font-size: 0.85em; letter-spacing: 1px; cursor: pointer; border-radius: 4px; width: 100%; transition: all 0.2s; pointer-events: auto; }
.quick-add-btn:hover { background: #111; color: #fff; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content { background-color: #fff; margin: 5% auto; border-radius: 12px; width: 90%; max-width: 900px; position: relative; display: flex; flex-wrap: wrap; box-shadow: 0 25px 50px rgba(0,0,0,0.15); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; right: 25px; top: 20px; color: #aaa; font-size: 35px; font-weight: bold; cursor: pointer; line-height: 1; z-index: 10; }
.close-modal:hover { color: #111; }
.modal-img-col { flex: 1; min-width: 300px; padding: 40px; background: #fafafa; border-radius: 12px 0 0 12px; display: flex; align-items: center; justify-content: center; }
.modal-img-col img { max-width: 100%; max-height: 400px; object-fit: contain; }
.modal-info-col { flex: 1.5; min-width: 300px; padding: 50px 40px; }
.modal-brand { text-transform: uppercase; font-size: 0.85em; color: #888; font-weight: bold; letter-spacing: 2px; margin-bottom: 10px; }
.modal-title { font-size: 2em; font-weight: 800; margin: 0 0 10px 0; line-height: 1.2; }
.modal-variant { font-size: 1.1em; color: #d4af37; font-weight: bold; margin-bottom: 20px; }
.modal-price-wrap { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 25px; }
.modal-price { font-size: 2.2em; font-weight: 800; color: #111; }
.modal-msrp { font-size: 1.2em; color: #999; text-decoration: line-through; }
.modal-desc { font-size: 0.95em; color: #555; line-height: 1.6; margin-bottom: 30px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.modal-tag { background: #f0f0f0; padding: 6px 12px; border-radius: 20px; font-size: 0.8em; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-add-btn { background: #111; color: #fff; border: none; padding: 18px 30px; font-size: 1.1em; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; width: 100%; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.modal-add-btn:hover { background: #d4af37; color: #111; }

/* Cart */
.cart-toggle { position: fixed; bottom: 30px; right: 30px; background: #111; color: #fff; border: none; padding: 15px 25px; border-radius: 30px; font-size: 1.1em; font-weight: bold; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; gap: 10px; }
.cart-panel { position: fixed; top: 0; right: -450px; width: 400px; height: 100%; background: #fff; box-shadow: -5px 0 30px rgba(0,0,0,0.1); z-index: 1001; transition: right 0.3s ease; display: flex; flex-direction: column; }
.cart-panel.open { right: 0; }
.cart-header { padding: 25px; background: #f9f9f9; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { margin: 0; font-size: 1.5em; letter-spacing: 1px; color: #111; }
.close-cart { background: none; border: none; color: #111; font-size: 2em; cursor: pointer; line-height: 1; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 25px; background: #fff; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item-title { font-weight: bold; font-size: 0.9em; margin-bottom: 3px; color: #111; }
.cart-item-variant { font-size: 0.8em; color: #888; margin-bottom: 3px; }
.remove-item { color: #e74c3c; cursor: pointer; font-size: 0.75em; border: none; background: none; padding: 0; text-decoration: underline; }
.checkout-section { padding: 25px; background: #fafafa; border-top: 1px solid #eee; }
.cart-total { font-size: 1.3em; font-weight: bold; margin-bottom: 20px; display: flex; justify-content: space-between; color: #111; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.8em; font-weight: bold; margin-bottom: 5px; color: #555; text-transform: uppercase; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 0.95em; }
.checkout-btn { background: #111; color: #fff; border: none; padding: 15px; width: 100%; font-size: 1em; font-weight: bold; cursor: pointer; border-radius: 4px; margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; }
.checkout-btn:hover { background: #d4af37; color: #111; }
.instructions { font-size: 0.8em; color: #666; margin-bottom: 20px; text-align: center; line-height: 1.4; }

.category-section { margin-bottom: 50px; }
.category-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.category-header h2 { font-size: 1.5em; margin: 0; text-transform: uppercase; letter-spacing: 1px; }
.category-header a { color: #d4af37; text-decoration: none; font-weight: bold; font-size: 0.9em; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 20px; }
    .modal-content { flex-direction: column; }
    .modal-img-col { border-radius: 12px 12px 0 0; padding: 20px; }
}
