:root {
    --bg: #f9f9f9;
    --bt-red: #e63946;
    --bt-red-hover: #d62828;
    --bt-blue: #1e98d7;
    --bt-blue-hover: #0a6495;
    --bt-gray: #6c757d;
    --bt-gray-hover: #6c757d;
    --bg-white: white;
    --ft-red: #e63946;
    --ft-normal: #333;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #f9f9f9;
    --bt-red: #e63946;
    --bt-red-hover: #d62828;
    --bt-gray: #6c757d;
    --bt-gray-hover: #6c757d;
    --bg-white: white;
    --ft-red: #e63946;
    --ft-dark: #333;
  }
}

/* Resetowanie domyślnych stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Podstawowy styl dla całej strony */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg);
    color: var(--ft-dark);
    line-height: 1.6;
}

/* Header - stylizacja */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: white;
}

ul, ol {
    margin-left: 20px;
}

header .logo img {
    max-width: 50px;
}

header .headerWrapper {
    width: 820px;
    margin: 0 auto;
}

header .headerWrapper .logoutLink {
    text-align: right;
}

header .headerWrapper .logoutLink a {
    color: var(--ft-red);
}


/* Hero Section */
.hero {
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5em;
	color: var(--ft-red);
}

.hero p {
    font-size: 1.2em;
    margin-top: 10px;
	color: var(--ft-red);
}

.hero-actions {
    margin-top: 20px;
}

.panels {
    display: flex;
    justify-content: center;
    margin: 40px;
    gap: 20px;
}

.panel {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 400px;
}

.panel.breadcrumbs {
    padding: 5px 30px;
}

.panel p {
    margin: 10px 0;
}

.single-panel {
    max-width: 820px;
}

.login-panel h2,
.register-panel h2{
    color: var(--ft-red);
}

.panel .wishlistBox a.button {
    padding: 5px;
    margin-bottom: 10px;
}

.panel a.button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: var(--bt-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
}

.panel a.button.red {
    background-color: var(--bt-red);
}

a.button:hover {
    background-color: var(--bt-red-hover);
}

a.button.red:hover {
    background-color: var(--bt-red-hover);
}

.panel a.button.blue {
    background-color: var(--bt-blue);
}

a.button.blue:hover {
    background-color: var(--bt-blue-hover);
}

.panel a {
    color: var(--ft-red);
    text-decoration: none;
}

.panel a:hover {
    text-decoration: underline;
}

/* Stopka */
footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer .footerWrapper {
    max-width: 820px;
    margin: 0 auto;
}

footer p {
    color: #666;
}

footer .socials a {
    color: var(--ft-red);
    margin: 0 10px;
    text-decoration: none;
}

footer .socials a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .panels {
        flex-direction: column;
        align-items: center;
    }

    .panel {
        max-width: 100%;
    }
}

/* Swiper */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 40%;
    height: auto;
}

/* wyrównanie przycisków */
.invisible-link a {
    visibility: hidden; /* Ukrywa link wizualnie */
    pointer-events: none; /* Link nie jest klikalny */
    display: block; /* Upewnia się, że link zajmuje miejsce */
    height: 16px; /* Dostosuj wysokość, jeśli potrzebne */
}

/* Profile management buttons */

.panel .profileEdit {
    text-align: right;
}

.panel .profileEdit a.edit {
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.panel .profileEdit a.edit:hover {
    color: var(--ft-red);
}

.profile-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Filters form */
.filters-form {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.filters-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.filters-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filters-form-field label {
    font-weight: bold;
}

.filters-form-field input,
.filters-form-field select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

.filters-form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.filters-form-buttons .button {
    padding: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1em;
    text-align: center;
    line-height: 1.6em;
}

.filters-form-buttons .button.filter {
    background: var(--bt-red);
}
.filters-form-buttons .button.filter:hover {
    background: var(--bt-red-hover);
}

.filters-form-buttons .button.clear {
    background: var(--bg-white);
    color: var(--bt-gray);
    border: 1px solid var(--bt-gray);
}

.filters-form-buttons .button.clear:hover {
    background: var(--bt-gray-hover);
    color: var(--bg-white);
    text-decoration: none;
}

@media (max-width: 768px) {
    .filters-form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .filters-form-buttons {
        flex-direction: column !important;
    }
    
    .filters-form-buttons .button {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination-controls {
    display: inline-block;
}

.pagination .pagination-button {
    padding: 8px 12px;
    margin: 0 2px;
    background: var(--bt-red);
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

.pagination .pagination-button:hover {
    background: var(--bt-red-hover);
}

.pagination-info {
    margin: 0 15px;
    font-weight: bold;
}

.pagination-count {
    margin-top: 10px;
    color: #666;
}

/* Profile edit forms */
.profile-form {
    width: 100%;
}

.profile-form .form-group {
    margin-bottom: 15px;
}

.profile-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-form .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.profile-form .error-message {
    color: var(--ft-red);
    font-size: 14px;
    margin-top: 5px;
}

.profile-form .form-actions {
    margin-top: 20px;
}

.profile-form .button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
}

.profile-form .button.save {
    background: var(--bt-red);
    color: white;
}

.profile-form .button.save:hover {
    background: var(--bt-red-hover);
}

.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.alert.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.messages-container {
    max-width: 820px;
    margin: 20px auto;
}

.message {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
}

.message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}
