@charset "UTF-8";
/* CSS Document */

/* Reset a základ */
* {
	box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
	    min-height: 100vh; /* výška celé viditelné stránky */
	margin: 0;
	padding: 0;
}

/* Wrapper s max šířkou a centrováním */
.container {
    max-width: 80vw;
	margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
	min-height: 100vh;
}

/* Styl nadpisu */
.container h1 {
    color: #5c39a0;
    font-weight: 900;
    margin-bottom: 1rem;
}

.container h2 {
    color: #5c39a0;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Jednotlivé části layoutu */
navbar, main {
	padding: 1.5rem;
	background: white;
	margin-bottom: 1rem;
	border-radius: 6px;
	box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

header {
	position: relative;
	width: 100%;
	overflow: visible;
	margin: 0;
	padding: 0;
}

header img {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-top: -50px; /* nebo jakýkoliv záporný posun nahoru */
	display: block;
	height: auto;
	z-index: 1; /* aby byl nad ostatním obsahem */
}

/* Nastavení zápatí */
footer {
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	background-color: #5a2d1a;
	color: white;
	overflow: hidden;	
}

.footer-top {
	padding: 1rem;
	background: #5a2d1a;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.footer-links a {
	color: white;
	padding: 0.4em 0.8em;
	text-decoration: none;
	border-radius: 4px;
	background: rgba(0,0,0,0.5);
	transition: background 0.3s ease;
	margin: 5px;
}

.footer-links a:visited {
	color: white;
}

.footer-links a:hover {
	background: rgba(0,0,0,0.5);
}

footer a[href^="mailto:"] {
	color: #ffd966;
	font-weight: bold;
	text-decoration: none;
	border-bottom: 1px dotted #ffd966;
	trainsition: color 0.3s ease, border-color 0.3s ease;
}

footer a[href^="mailto:"]:hover {
	color: #ffffff;
	border-bottom-color: #ffffff;
}

footer a[href^="mailto:"]:visited {
	color: #ffd966;
	border-bottom-color: #ffd966;
}

.footer-bottom img {
	display: block;
	width: 100%;
	height: auto;
}

navbar {
	background-color: white;
}

a {
	color: #5c39a0;
	text-decoration: none;
}

a:hover {
  color: #d16aff;
}

a:visited {
  color: #5c39a0;
}


/* Formulář - každá položka label + input/textarea ve sloupci */
form {
    display: flex;
    flex-direction: column;
}

/* Label na samostatném řádku, tučný text */
form label {
    font-weight: 700;
    color: #5c39a0;
}

/* Vstupní pole a textarea */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select,
form file,
form checkbox {
    max-width: 900px;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #9c9ccc;
    border-radius: 3px;
    font-size: 1rem;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin-bottom: 1.3rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form input[type="number"] {
    max-width: 80px;
    width: 100%;
    padding: 0.6rem 0.6rem;
    border: 1px solid #9c9ccc;
    border-radius: 3px;
    font-size: 1rem;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Zvýraznění při focus */
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form textarea:focus {
    border-color: #5c39a0;
    outline: none;
}

/* Textarea výška */
form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Tlačítko odeslat */
form button[type="submit"] {
    background-color: #000000;
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    max-width: 200px;
    transition: background-color 0.3s ease;
	margin: 1rem auto;
}

form button[type="submit"]:hover {
    background-color: #5c39a0;
}

form hr {
    border: none;                /* odstraní defaultní styl */
    border-top: 2px solid #ccc;  /* čára nahoře */
    margin: 1.5rem 0;            /* svislé odsazení */
}

.form-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 10px;
}

.form-group label {
	flex: 0 0 200px; /* pevná šířka pro label (odsazení inputu) */
	margin-bottom: 0;
	text-align: right;
	margin-right: 1em;
}

.form-group input {
	flex: 1; /* zbytek místa zabere input */
	margin-bottom: 0;
	max-width: none; /* aby neomezovalo šířku inputu */
}

.forgot-password {
  margin-top: 10px;
  font-size: 0.9em;
}

/* Styly navigace */
.nav-container {
    display: flex;
	color: #5c39a0;
    align-items: center;
    justify-content: space-between;
	z-index: 500;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
	z-index: 700;
}

.nav-link {
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.nav-user {
    position: relative;
	z-index: 1000; 
}

.nav-user-btn {
    background: none;
	color: #5c39a0;
    border: none;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.nav-user-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 170px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    border-radius: 4px;
}

.nav-user-menu a {
    display: block;
    padding: 0.7rem 1rem;
    text-decoration: none;
    color: #5c39a0;
}

.nav-user-menu a:hover {
    background-color: #f0f0f0;
}

.nav-user-menu.show {
    display: block;
}

/* Základní styl tabulky */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

th, td {
  padding: 0.75em 1em;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

/* Dlaždice */
section.tile {
	background-color: #fff; /* Bílý podklad */
	border: 1px solid #ddd; /* Světle šedé ohraničení */
	border-radius: 6px; /* Zaoblené rohy */
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Jemný stín */
	padding: 16px 20px; /* Vnitřní odsazení */
	margin-bottom: 20px; /* Mezera pod dlaždicí */
	transition: box-shadow 0.3s ease; /* Plynulý přechod stínu při hover */
	overflow-wrap: break-word; /* zalomí dlouhá slova nebo URL */
	word-wrap: break-word; /* starší podpora */
	hyphens: auto; /* pomlčky u delších slov */
}

section.tile:hover {
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Zvýraznění stínu při najetí myší */
	border-color: #aaa; /* Trochu tmavší ohraničení při hover */
}

.tile .actions {
	margin-top: 0.5rem;
}

.tile img {
	max-width: 100%;
	height: auto;
	display: block;
}

.tiles-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
	gap: 20px;
	padding: 0 10px;
}

.tiles-container p {
	font-size: 0.9rem;
	color: #555;
}

/* Styly Font Awesome pro košík a odznaky */
.icon-badge {
    position: relative;
    display: inline-block;
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 0.7em;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Action tlačítka */
.actions .btn {
    background-color: #000000;
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none; /* odstraní podtržení odkazu */
    display: inline-block;
    transition: background-color 0.3s ease;
}

.actions .btn:hover {
    background-color: #5c39a0;
}

.actions .btn-delete {
    background-color: #dc3545;
}

.actions .btn-delete:hover {
    background-color: #a71d2a;
}

/* Detailní zobrazení zboží */
.product_details {
	display: flex;
	gap: 2rem;
	padding: 1rem;
	align-items: flex-start;
}

.product_details .left, .product_details .right {
	flex: 1;
}

.product_details .left img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
	object-fit: contain;
}

/* Label input pro vložení do košíku */
.label-input-group {
	display: flex;
	justify-content: center; /* zarovnání horizontálně na střed */
	align-items: center; /* vertikální zarovnání */
	gap: 0.5rem; /* mezera mezi labelem a inputem */
	margin-bottom: 0.5rem; /* odsazení od tlačítka */
}

.label-input-group label {
	margin: 0; /* zruší případné spodní odsazení */
}

/* Responsivita pro menší obrazovky */
@media (max-width: 800px) {
	.container {
		max-width: 100vw;
		padding: 0 1rem;
	}

	navbar, main {
		margin-bottom: 1rem;
		border-radius: 0;
	}

    form input[type="text"],
    form input[type="email"],
    form input[type="password"],
    form textarea,
	form select,
	form file {
        max-width: 100%;
    }

    form button[type="submit"] {
        max-width: 100%;
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

	form hr {
        width: 100%;
    }

	.form-group {
		flex-direction: column;
		margin-bottom: 1.3rem;
	}

	.form-group label {
		flex: none;           /* zruší pevnou šířku */
        width: auto;          /* nechá přizpůsobit šířku obsahu */
        text-align: left;     /* zarovná doleva */
        padding-right: 0;     /* odstraní odsazení */
        margin-bottom: 0.3rem;
    }
	
	.hamburger {
        display: block;
		color: #5c39a0;
		font-weight: bold;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background-color: white;
        position: absolute;
        top: 60px; /* výška lišty */
        right: 0;
        width: 200px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        border-radius: 4px;
        padding: 0.5rem 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link,
    .nav-user-btn {
        width: 100%;
        text-align: left;
    }

    .nav-user-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: none;
        min-width: 100%;
    }

    .nav-user-menu a {
        padding-left: 2rem;
    }
	
	/* RWD tabulka */
	table, thead, tbody, th, td, tr {
		display: block;
		width: 100%;
	}
	thead tr {
		display: none; /* schová hlavičku */
	}
	tr {
		margin-bottom: 1em;
		border-bottom: 2px solid #ddd;
	}
	td {
		border: none;
		border-bottom: 1px solid #eee;
		padding-left: 50%;
		position: relative;
	}
	/* Přidáme popisek před hodnotu (label) z atributu data-label */
	td::before {
		content: attr(data-label);
		position: absolute;
		left: 0;
		top: 0;
		padding-left: 1em;
		font-weight: bold;
		white-space: nowrap;
	}
	
	/* Mobilní zobrazení: detaily nahoře, obrázek dole */
	.product_details {
		flex-direction: column;
	}
	
	/* Přesunout obrázek pod detaily */
	.product_details .left {
		order: 2;
	}
	
	.product_details .right {
		order: 1;
	}
}