/* ======================================================= */
/* UNIVERZÁLNÍ OPRAVA A RESET BOX-MODELU (NEJDŮLEŽITĚJŠÍ)  */
/* ======================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Obecné nastavení */
body{
font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}
h2{
    font-family: Arial, Helvetica, sans-serif;
}
.content-container {
    max-width:80%;
    margin: 0 auto; /* Centrovat obsah na střed */
    color: #333; /* Barva textu */
    font-family: Arial, Helvetica, sans-serif;
}

.header-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Zajišťuje vertikální zarovnání */
    height: 200px; /* Nastav dostatečnou výšku kontejneru */
    position: relative;
}

.header-titles h1 {
    font-family: 'Herr Von Muellerhoff', cursive;
    font-size: 7rem; /* Můžeš upravit podle potřeby */
    color: #c59d5f;
    margin: 0;
    position: absolute;
    top: 55%;
    transform: translateY(-45%);
}

.header-titles h3 {
    font-family: Arial, sans-serif;
    font-size: 3rem;
    color: black;
    margin: 0;
    position: absolute;
    top: calc(50% + 70px); /* Přizpůsob velikostnímu rozdílu mezi nadpisy */
    transform: translateY(-50%);
}
/* Záhlaví */
header {
    background-color: white;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .logo img {
    height: 50px;
   
}
header nav a {
    text-transform: capitalize;
    text-decoration: none;
    font-size: 15px;
    color: black;
    transition: color 0.2s linear;
}

header nav a:hover {
    color: #c59d5f; /* Zlatá barva */
    text-decoration: underline;
}
.search-container {
    position: relative; /* Umožní přesné umístění vyskakovacího okna */
    display: flex; /* Zarovná input a tlačítko vedle sebe */
    align-items: center;
    width: 350px; /* Přizpůsob velikost podle potřeby */
}

#searchBox, #newSearchBox {
    flex: 1; /* Input se roztáhne na maximální šířku */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px; /* Zaoblení pouze na levé straně */
}


#searchButton, #newSearchButton {
    padding: 9px 12px;
    background-color: #2c2c2c;
    color: white;
    cursor: pointer;
    border:none;
    border-radius: 0 5px 5px 0; /* Zaoblení pouze na PRAVÉ straně */
    transition: background-color 0.3s;  /* Efekt při najetí myší */

}

#searchButton:hover, #newSearchButton:hover {
    background-color: #c59d5f;
}

/* === VYSKAKOVACÍ OKNO === */
.search-popup {
    position: absolute;
    top: 100%; /* Posune okno dolů pod vyhledávací pole */
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px; /* Zaoblené rohy dole */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* Skryté, dokud nezačne hledání */
}

.search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.search-item:hover {
    background: #f0f0f0;
}


.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.lang-btn img {
    width: 40px;
    height: auto;
   
}

.lang-dropdown {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 5px;
    z-index: 10;
}

.lang-dropdown a {
    display: block;
    padding: 5px;
}

.lang-dropdown img {
    width: 40px;
    height: auto;
}

.language-switcher:hover .lang-dropdown {
    display: block;
}
.fas.fa-shopping-cart {
    font-size: 24px;
    margin-right: 5px; /* pro odsazení mezi ikonou a číslem */
}

/* Hlavní nadpis a text */
main {
    text-align: center;
    margin-top: 10px;
    padding: 20px;
}
.our h1 {
    font-family: 'Herr Von Muellerhoff', cursive;
    font-size: 750%;
    color: #c59d5f; /* Zlatá barva */
    margin-bottom: -4%;
    font-weight: 100;
    margin-top: 1px;
}


h3 {
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    font-weight: 100;
    letter-spacing: 0.2em;
}

/* Sekce popisu */
.description {
    margin: 20px auto;
    max-width: 100%;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: center;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
}

.description strong {
    color: #c59d5f;
    font-family: Arial, Helvetica, sans-serif;
}

/* Odkaz do košíku */



/* Footer */
footer {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #2c2c2c;
    color: #919191;
    text-align: center;
    padding: 20px 10px;
    font-size: 0.9rem;
    max-width: 80%;
    margin: auto;
    margin-top: 6px;
}
.sorting {
    text-align: center;
    margin-bottom: 20px;
}

.sorting a {
    text-decoration: none;
    color: #c59d5f;
    margin: 0 5px;
    font-weight: bold;
}

.sorting a:hover {
    text-decoration: underline;
}

/* Seznam produktů */


.product-item {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    max-width: 220px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%; /* Obrázek zabere celou šířku rodiče */
    object-fit: cover; /* Zachování poměru stran obrázku */
    border-radius: 8px; /* Mírně zaoblené rohy (volitelné) */
   
}





.product-item h2 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

.product-item p {
    margin: 15px ;
    font-size: 1rem;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
}

.product-img a {
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px ;
    background-color: teal;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.product-img a:hover {
    background: rgb(5, 100, 100);
}
.product-detail {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.product-header {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    margin-bottom: 20px;
}
.product-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #222;
}
.product-header h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #555;
}
.product-content {
    display: flex;
    gap: 20px;
}
.product-image {
    flex: 1;
    text-align: center;
}
.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.product-specifications {
    flex: 1;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
}
.product-specifications h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}
.product-specifications table {
    width: 100%;
    border-collapse: collapse;
}
.product-specifications table th,
.product-specifications table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.product-description {
    margin-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.product-description p {
    line-height: 1.6;
    color: #555;
}
.navigation-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.navigation-links a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}
.navigation-links a:hover {
    text-decoration: underline;
}
.cara {
    padding-top: 15px;
    border-top: 1px solid #c59d5f;
}
     
    .product-grid {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 20px 0;
    }
    
    .product-card {
        position: relative;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        text-align: center;
        padding: 15px;
        max-width: 280px;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .product-card img {
        width: 100%; /* Obrázek zabere celou šířku rodiče */
        height: 200px; /* Nastavená výška obrázků */
        object-fit: cover; /* Zachování poměru stran obrázku */
        border-radius: 8px; /* Mírně zaoblené rohy (volitelné) */
    }
    
    .discount-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: teal;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.9rem;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
        margin: 10px 0;
    }
    .detail-button {
        display: inline-block;
        margin-top: 10px;
        padding: 8px 15px;
        background-color: teal;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
    }
    
    .detail-button:hover {
        background-color: rgb(5, 100, 100);
    }

   

    .product-container {
        align-items: flex-start; /* Zarovná obsah k hornímu okraji */
    display: flex;
    gap: 20px;
    max-width: 80%;
    margin: auto;
    padding: 20px 0;
}

.filter {
    flex: 0 0 auto; /* Nebude se roztahovat */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.filter h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.filter label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.filter input {
    width: 92%;
    padding: 5px;
    margin-top: 5px;

}

.filter button,
.filter .reset-button {
    display: block;
    width: 50%;
    margin: auto;
    margin-top: 15px;
    padding: 8px;
    background-color: teal;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.filter button:hover,
.filter .reset-button:hover {
    background-color: rgb(5, 100, 100);
}
.pagination {
    margin-top: 20px;
}
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    text-decoration: none;
    color: black;
    background: #f1f1f1;
    border-radius: 5px;
}
.pagination a.active {
    background: #c59d5f;
    color: white;
    font-weight: bold;
}
.product-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kategorie a {
    display: inline-block;
    min-width: 150px; /* Nastaví minimální šířku */
    box-sizing: border-box; /* Důležité, aby se padding započítal správně */
    padding: 10px 20px;
    background-color: #2c2c2c;
    color: white;
    font-size: 16px;
    text-align: center; /* Zajistí, že text bude na středu */
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.kategorie a:hover {
    background-color: #c59d5f;
}

.kategorie a:hover {
    background-color: #c59d5f;  /* Tmavší modrá při najetí myší */
}
.login a {
    display: inline-block;  /* Aby byl odkaz blokový, ale na řádku */
    padding: 10px 20px;  /* Vnitřní okraje pro lepší velikost tlačítka */
    background-color: #2c2c2c;  /* Barva pozadí (modrá) */
    color: white;  /* Barva textu */
    font-size: 16px;  /* Velikost písma */
    text-align: center;  /* Zarovnání textu */
    border-radius: 5px;  /* Zaoblení rohů tlačítka */
    text-decoration: none;  /* Odstranění podtržení odkazu */
    transition: background-color 0.3s;  /* Efekt při najetí myší */
}

.login a:hover {
    background-color: #c59d5f;  /* Tmavší modrá při najetí myší */
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
    max-width: 100%;
    width: 100%;
    padding: 0;
}
.large-image {
    position: relative;
    flex: 1;
    max-width: 35%;
    min-width: 500px;
}
.large-image img {
    max-width: 100%;
    height: 100%;
    border-radius: 8px;
}
/* Kontejner pro malé obrázky */

.small-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Mezera mezi obrázky */
    flex: 2 1 45%; /* Malé obrázky budou zabírat až 45% šířky */
    max-width: 55%;
    min-width: 500px; /* Zajištění minimální šířky pro malé obrázky */
}
/* Řádky pro malé obrázky */
.row {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

/* Malé obrázky */
.small-images img {
    width: 95%;  /* Každý obrázek bude zabírat 48% šířky rodičovského kontejneru */
    height: auto;
    border-radius: 8px;
    
}
.all-categories-button {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    bottom: 45%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease-in-out;
    width: 170px;
}

.all-categories-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sloupce */
    gap: 30px;
    padding: 40px;
    max-width: 70%;
    margin: auto;
}

.category-item {
    text-align: center;
    width: 100%;
    height: 320px; /* Pevná výška pro konzistenci */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
}

.category-item img {
    width: 330px;  /* Pevná šířka */
    height: 200px; /* Pevná výška */
    object-fit: cover; /* Zajistí správné oříznutí obrázku */
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out; 
}

.category-item:hover img {
    transform: scale(1.1);
}

.category-item p {
    font-weight: bold;
    font-size: 25px;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
   
}
.category-item a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: border-color 0.3s ease; /* Přidání animace pro plynulý efekt */
}

.category-item a:hover {
    border-color: #c59d5f; /* Oranžová barva při najetí */
}
.gap{
    margin-top:-30px;
}














.cart-container {
    max-width: 60%;
    margin: 15px auto;
    padding: 20px;
}
p.cart-empty{
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

h1.cart {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
td{
   
    font-family: Arial, Helvetica, sans-serif;
}
a{
   
   text-decoration: none;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    
}

table th, table td {
    border-bottom: 1px solid #c59d5f;
    padding: 15px;
    text-align: center;
    
}

table th {
    font-weight: bold;
    color: #999;
    font-family: Arial, Helvetica, sans-serif;
    
}

tr td img {
    max-width: 100px;
    height: auto;
    
}

.quantity-input {
    width: 50px;
    padding: 5px;
    text-align: center;
}

.cart-summary {
    text-align: right;
    margin-top: 20px;
}

.cart-summary h2 {
    font-size: 1.5em;
    color: #333;
    
}

.checkout-button {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.checkout-link, .continue-shopping {
    background-color: teal;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
    font-family:arial;
}

.checkout-link:hover, .continue-shopping:hover {
    background-color: rgb(5, 100, 100);
}

.remove-button {
    background-color: gray;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.remove-button:hover {
    background-color: #d32f2f;
}















.summary-container {
    width: 60%;
    margin: 50px auto;
    background: white;
    padding: 20px;
    text-align: center;
}

p {
    font-size: 18px;
    margin: 10px 0;
    font-family:arial;
}




button.Place-order {
    display: inline-block;
    padding: 12px 20px;
    background: teal;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

button.Place-order:hover {
    background: rgb(5, 100, 100);
}

.total-cost {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}


@media (max-width: 1680px) {
    
    .category-item img {
        width: 280px;  /* Pevná šířka */
        height: 150px; /* Pevná výška */
    }
}

@media (max-width: 1480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1300px)
{
#searchBox {
    flex: 0; /* Input se roztáhne na maximální šířku */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px; /* Zaoblení pouze na levé straně */
}
.search-container {
    position: relative; /* Umožní přesné umístění vyskakovacího okna */
    display: flex; /* Zarovná input a tlačítko vedle sebe */
    align-items: center;
    width: 250px; /* Přizpůsob velikost podle potřeby */
}
}

@media (max-width: 980px) {
    .category-grid {
        grid-template-columns: 1fr; /* 1 sloupec na mobilech */
    }
    .category-item img {
        width: 400px;  /* Pevná šířka */
        height: 230px; /* Pevná výška */
    }
}
/* ======================================================= */
/* FINÁLNÍ OPRAVA PRO MOBILNÍ ZOBRAZENÍ KATEGORIÍ */
/* ======================================================= */
@media (max-width: 650px) {

    /* 1. Nastavení mřížky */
    .category-grid {
        max-width: 95%;     
        padding: 10px; 
        gap: 20px;          
    }

    /* 2. Úprava samotného rámečku (karty) */
    .category-item {
        /* Odstraníme flexbox, který dělal problémy */
        display: block; /* Chová se jako standardní blok */
        text-align: center; /* Text pod obrázkem bude na středu */
    }

    /* 3. Nastavení obrázku */
    .category-item img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* 4. Nastavení textu (paragrafu) */
    .category-item p {
        margin-top: 15px; /* Vytvoří mezeru NAD textem (pod obrázkem) */
    }
}

@media (min-width: 1600px) {
    .large-image, .small-images {
        margin-top: 50px;
        max-width: 50%; /* Uprav podle potřeby */
    }
     .image-container {
        max-width: 75%; /* Nastaví maximální šířku kontejneru */
        margin: 0 auto; /* Zarovná obsah na střed */
    }
}
/* Mobilní verze úpravy */
@media screen and (max-width: 1300px) {
    .kategorie, .login {
        display: none;
    }

    .hamburger-menu-button, .hamburger-menu-button2 {
        display: block;
        font-size: 30px;
        cursor: pointer;
    }

    .hamburger-menu, .hamburger-menu2 {
        display: none;
        position: absolute;
        top: 80px;
        background-color: white;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
        border-radius: 5px;
        padding: 10px;
        width: 200px;
        z-index: 100;
    }

    .hamburger-menu.open, .hamburger-menu2.open {
        display: flex;
        flex-direction: column;
    }

    .hamburger-menu a, .hamburger-menu2 a  {
        text-decoration: none;
        padding: 10px;
        color: black;
        font-size: 16px;
        transition: color 0.3s;
    }

    .hamburger-menu a:hover, .hamburger-menu2 a:hover {
        color: #b68e52;
    }
}


/* Desktop verze */
@media screen and (min-width: 1300px) {
    .hamburger-menu-button, .hamburger-menu {
        display: none;
    }
}
@media screen and (min-width: 950px) {
    .hamburger-menu-button2, .hamburger-menu2{
        display: none;
    }
}
@media screen and (max-width: 949px){
    .kategorie, .login, .search-container, .hamburger-menu-button, .hamburger-menu2 {
        display: none;
    }
   
}
.small-image-container {
    position: relative;
    display: inline-block;
}

.small-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.prepare-button {
    font-family:arial;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-size:18px;
    border-radius: 5px;
    text-align: center;
   
}

.prepare-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
@media (max-width: 600px) {
    header .logo img {
        height: 30px;
    }
   
    .small-image-container img {
        width: 60%;
        height: auto;
        border-radius: 8px;
      margin-left: 20%;
    }
    .row {
        display: grid;
        justify-items: center; /* Zarovná obrázky na střed */
    }
}@media (max-width: 1600px) {
  footer{
    max-width: 100%;
  }
}
@media (max-width: 768px) {
    .container { 
        padding: 10px; 
        margin: 0; 
    }
}
@media screen and (max-width: 1240px) {
    .product-container {
        display: flex;
        flex-direction: column;
    }
    .filter button, .filter .reset-button {
    display: block;
    width: 25%;
    margin: auto;
    margin-top: 15px;
    padding: 8px;
    background-color: teal;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

    .filter {
        order: -1; /* Zajistí, že filtr zůstane nahoře */
        width: 100%;
        padding: 0px;
        margin-bottom: 5%;
    }
    .gap{
        margin-top:-20px;
    }

    .product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .product-item {
        width: 90%;
        max-width: 220px;
    }
}
/* ========================================= */
/* Responzivní tabulka pro historii objednávek */
/* ========================================= */

@media (max-width: 450px) {
    
    /* Skryjeme původní hlavičku tabulky */
    .profile-container table thead {
    display: none;
}

/* UPRAVENO: Přidán stín, větší mezery a zaoblené rohy */
.profile-container table tr {
    display: block;
    margin-bottom: 20px; /* Větší mezera mezi kartami */
    border: 1px solid #e9ecef; /* Mírně výraznější okraj */
    border-radius: 8px;   /* Zaoblené rohy */
    padding: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05); /* Přidáme stín */
    background-color: #fff; /* Výchozí pozadí je bílé */
}

/* NOVÉ PRAVIDLO: Každá druhá kartička bude mít lehce šedé pozadí */
.profile-container table tr:nth-child(even) {
    background-color: #f8f9fa; 
}

.profile-container table td {
    display: block;
    text-align: right;
    padding: 10px;
    border-bottom: 1px dotted #ccc;
}

.profile-container table td:last-child {
    border-bottom: none;
}

.profile-container table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85em;
}
}
/* ========================================= */
/* Responzivní design pro Detail Objednávky  */
/* ========================================= */

@media (max-width: 768px) {
    /* Informační boxy seřadíme pod sebe */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .info-box {
        margin-bottom: 20px;
    }
    .info-box h2 {
        text-align: left;
    }

    /* Tabulka s produkty se přemění na kartičky */
    .container table thead {
        display: none;
    }
    .container table tr {
        display: block;
        margin-bottom: 15px;
    }
    .container table td {
        display: block;
        text-align: right;
        padding-left: 50%; /* Vytvoří místo pro popisek */
        position: relative;
    }
    .container table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
    }

    /* Speciální pravidlo pro Grand Total řádek */
    .container table .total-row td {
        padding-left: 12px;
        text-align: right;
        font-size: 1.1em;
    }
    .container table .total-row td::before {
        position: static;
        float: left;
        width: auto;
    }
}
/* ================================================= */
/* Finální oprava pro sloupce na mobilu (bulletproof) */
/* ================================================= */

@media (max-width: 768px) {
    .details-column {
        /* Univerzální pravidla, která donutí sloupec zabrat celou šířku, 
           ať už je rodič flexbox, grid, nebo nic. */
        width: 100%;
        flex: 1 1 100%;
        grid-column: 1 / -1;

        /* Přidáme mezeru pod první sloupec, aby nebyl nalepený na druhý */
        margin-bottom: 25px;
    }
    /* --- ÚPRAVA PRO MOBILNÍ ZOBRAZENÍ KATEGORIÍ --- */
@media (max-width: 768px) {
    .category-grid {
        max-width: 95%;     /* Zvětšíme šířku kontejneru, aby byly menší okraje */
        padding: 20px 10px; /* Zmenšíme vnitřní odsazení (20px nahoře/dole, 10px vlevo/vpravo) */
        gap: 20px;          /* Můžeme i zmenšit mezeru mezi položkami */
    }
}
/* --- Oprava pro hlavičku na mobilních zařízeních (včetně odsazení) --- */
@media (max-width: 768px) {
    header .content-container {
        max-width: 100%;
        /* ZMĚNA: První hodnota (10px) přidá odsazení nahoře a dole */
        padding: 10px 15px;   
    }
}
}
