body {
    background-color: #f4f5f7;
    color: #444444;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; padding: 0;
}

header { background-color: #2c3e50; color: white; border-bottom: 4px solid #3498db; }
.header-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.logo h1 { margin: 0; font-size: 26px; letter-spacing: 1px; }

/* DROPDOWN MENU */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav ul li { position: relative; }
.main-nav ul li a { color: #ecf0f1; text-decoration: none; padding: 15px 18px; display: block; font-weight: 600; font-size: 14px; }
.main-nav ul li a:hover { background-color: #34495e; }

.dropdown-menu {
    display: none !important;
    position: absolute; top: 100%; left: 0;
    background-color: #2c3e50; min-width: 220px;
    padding: 0; margin: 0; list-style: none;
    border-top: 3px solid #3498db; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
}
.dropdown:hover .dropdown-menu {
    display: block !important;
}
.dropdown-menu li { width: 100%; }
.dropdown-menu li a { padding: 12px 15px; border-bottom: 1px solid #34495e; font-size: 13px; }
.dropdown-menu li a:hover { background-color: #3498db; }

/* ELEMENTY INTERFEJSU */
.cart-nav-btn { background-color: #e67e22; border-radius: 4px; margin-right: 5px; }
.cart-nav-btn:hover { background-color: #d35400 !important; }
.user-btn { background-color: #2980b9; border-radius: 4px; }
.user-btn:hover { background-color: #3498db !important; }
.user-welcome { font-size: 13px; padding: 0 10px; color: #2ecc71; }
.logout-mini-btn { background-color: #c0392b; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-weight: bold; }

.page-section { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.content-box { background-color: #ffffff; border: 1px solid #dcdde1; border-radius: 6px; padding: 25px; margin-bottom: 25px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
h2 { margin-top: 0; font-size: 22px; color: #2c3e50; border-bottom: 2px solid #f1f2f6; padding-bottom: 10px; margin-bottom: 20px; }

/* KAFELKI PRODUKTÓW */
.products-list-container { display: flex; flex-wrap: wrap; gap: 25px; }
.old-product-card { border: 1px solid #e1e4e8; background-color: #ffffff; border-radius: 4px; width: 235px; padding: 15px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; }
.old-product-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 2px; border: 1px solid #eee; }
.old-product-card h4 { margin: 10px 0 5px 0; font-size: 15px; color: #2c3e50; }
.tech-specs-box { background: #f8f9fa; padding: 6px; font-size: 11px; border-radius: 3px; margin-bottom: 10px; color: #555; text-align: left; border: 1px solid #ebdada; }
.old-product-price { color: #e74c3c; font-weight: bold; font-size: 18px; margin-bottom: 5px; }

/* MODAL */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); z-index: 20000; }
.modal-content { background-color: white; width: 340px; margin: 12% auto; padding: 30px; border-radius: 6px; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #aaa; }
.modal-form-group { margin-bottom: 15px; }
.modal-form-group label { display: block; font-size: 13px; margin-bottom: 5px; font-weight: bold; }
.modal-form-group input { width: 100%; padding: 9px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }
.modal-switch-text { font-size: 12px; text-align: center; margin-top: 15px; }
.admin-hidden-trigger { text-align: center; margin-top: 25px; border-top: 1px solid #eee; padding-top: 10px; }
.admin-hidden-trigger a { color: #ffffff; text-decoration: none; font-size: 11px; cursor: default; }

/* WGRAWANIE I PANEL ADMINA */
.admin-box { border: 2px dashed #c0392b; background-color: #fffbfa; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row input, .form-row select { padding: 9px; border: 1px solid #ccc; border-radius: 4px; flex-grow: 1; font-family: inherit; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; }
.admin-table th, .admin-table td { border: 1px solid #ddd; padding: 10px; font-size: 13px; text-align: left; }
.admin-table th { background-color: #f1f2f6; }

.btn-primary { background-color: #3498db; color: white; border: none; padding: 10px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.btn-success { background-color: #2ecc71; color: white; border: none; padding: 10px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.btn-danger { background-color: #e74c3c; color: white; border: none; padding: 10px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; }

/* INNE */
.featured-product-box { display: flex; align-items: center; background-color: #f8f9fa; border: 1px solid #e9ecef; padding: 20px; border-radius: 4px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table th, .cart-table td { padding: 12px; border-bottom: 1px solid #ddd; text-align: left; }
.cart-summary-box { text-align: right; padding: 15px; background-color: #fdfefe; border-top: 2px solid #ddd; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.img-placeholder { height: 150px; background: #e1e4e8; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #7f8c8d; font-weight: bold; border: 1px solid #ccc; }
.contact-flex { display: flex; justify-content: space-between; gap: 30px; }
.contact-map-box { flex-grow: 1; background-color: #f1f2f6; border: 1px dashed #ccc; display: flex; align-items: center; justify-content: center; color: #7f8c8d; border-radius: 4px; }
footer { background-color: #2c3e50; color: #bdc3c7; text-align: center; padding: 20px; font-size: 13px; margin-top: 50px; border-top: 3px solid #3498db; }