:root {
    --main-bg: #ffffff;
    --main-text: #000000;
    --accent: #DB6E00;
    --card-bg: #f7f7f7;
}

body {
    background-color: var(--main-bg);
    color: var(--main-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #fff;
    padding: 0 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav img {
    width: 50px;
    margin-right: 5px;
}

.logo {
    display: flex;
    align-items: center;
}

nav,
.nav-links,
.nav-links .dropdown,
.nav-links .dropdown .dropdown {
    z-index: 999;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

.nav-links li {
    list-style: none;
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

.nav-links li a.active {
    font-weight: bold;
    color: var(--accent);
}

.nav-links li:hover>.dropdown {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
}

div.main {
    text-align: center;
    padding: 30px 20px 10px;
}

.top-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-options {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter {
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.filter:hover {
    background-color: #b85a00;
}

.category {
    margin: 50px 20px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card img {
    max-width: 100%;
    height: 250px;
    border-radius: 8px;
}

.product-card h3 {
    margin: 10px 0;
}

.product-card p {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
}

.product-card a {
    text-decoration: none;
}

.buy-button {
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.3s;
}

.buy-button:hover {
    transform: scale(1.05);
    background-color: #b85a00;
}

/* Hover efekt na celou kartičku */
.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Přepínač světlo/tma */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: .4s;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

input:checked + .slider.round {
  background-color: var(--accent);
}

input:checked + .slider.round:before {
  transform: translateX(26px);
}

/* CTA tlačítko styl */
.cta {
    border: none;
    background: none;
    cursor: pointer;
}

.cta span {
    padding-bottom: 7px;
    letter-spacing: 4px;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
}

.hover-underline-animation {
    position: relative;
    color: var(--accent);
    font-weight: bold;
    padding-bottom: 20px;
}

.hover-underline-animation:after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Tmavý režim */
body.dark-mode {
    --main-bg: #121212;
    --main-text: #ffffff;
    --card-bg: #1e1e1e;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--accent);
    margin-top: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {

    header {
        padding: 15px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle:before {
        font-size: 30px;
        color: #333;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: whitesmoke;
        position: absolute;
        width: 100%;
        left: 0;
        top: 32px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: left;
        width: 100%;
        padding: 10px 20px;
    }

    .nav-links li a {
        color: #333;
    }

    .nav-links .has-dropdown>a::after {
        font-size: 14px;
    }

    .nav-links .has-dropdown.active .dropdown {
        display: block;
    }

    .nav-links .dropdown {
        display: none;
        background-color: #f8f8f8;
        padding: 10px;
        position: relative;
        left: 0;
        top: 0;
    }

    .nav-links .dropdown li a {
        padding-left: 30px;
    }

    .btn-hero {
        bottom: 0;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }

    .nav-links li {
        margin: 5px 0 5px 0;
        display: flex;
        flex-wrap: nowrap;
    }

    .nav-links .has-dropdown>a::after {
        font-size: 14px;
    }

    .nav-links .dropdown {
        display: none;
        background-color: #f8f8f8;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        padding: 5px;
    }

    .nav-links .has-dropdown:hover>.dropdown {
        display: block;
    }

    .nav-links .dropdown .has-dropdown {
        position: relative;
    }

    .nav-links .dropdown .has-dropdown .dropdown {
        top: 0;
        left: 100%;
        position: absolute;
        display: none;
        background-color: #f8f8f8;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        min-width: 80px;
    }

    .nav-links .dropdown .has-dropdown:hover>.dropdown {
        display: block;
    }
}