:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #e67e22;
    --secondary-dark: #d35400;
    --accent-color: #27ae60;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --dark-gray: #9e9e9e;
    --white: #fbf9f6;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --rem3: 3rem;
    --doubleRem: calc(var(--rem3)*2);
    --colorMain: var(--white);
    --colorMainHover: var(--light-gray);
    --colorDefaultText: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: "Roboto", "Poppins", sans-serif;
}

.hideElement {
    display: none !important;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: var(--doubleRem);
    background-color: var(--colorMain);
    color: var(--colorDefaultText);
    padding: 0 5%;
    transition: 250ms;
    box-shadow: 0 2px 5px var(--shadow);
}

.logo {
    height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.nav-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.kosik {
    margin-right: 1rem;
    color: var(--colorDefaultText);
    width: 48px;
    height: 48px;
}

.kosik img {
    width: 100%;
    height: 100%;
}

.hideHeader {
    transform: scaleY(0);
    transform-origin: top;
    transition: 250ms;
}

.header-div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-height: 3rem;
}

.hamburger {
    display: flex;
    position: fixed;
    flex-direction: column;
    align-items: center;
    min-width: fit-content;
    width: 0;
    transform: translateX(-100%);
    transition: .5s;
    z-index: 800;
    background-color: var(--colorMain);
    top: var(--doubleRem);
    bottom: 0;
    left: 0;
    right: 0;
}

.showHamburger {
    transform: translateX(0%);
    transition: .5s;
    width: 70%;
}

.menu-item {
    --contentPadding: 1rem 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    text-align: center;
    background-color: inherit;
    color: var(--colorDefaultText);
    border: solid 1px rgba(0, 0, 0, 0);
}

.menu-item:hover {
    background-color: var(--colorMainHover);
    border: solid 1px var(--gray);
}

.menu-item p {
    text-align: center;
    flex: 1;
    padding: var(--contentPadding);
}

.special-menu-item p {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.show-more-icon {
    height: 36px;
    width: 36px;
}

.hamburger-btn {
    background-color: inherit;
    border: none;
    width: var(--rem3);
    height: var(--rem3);
    cursor: pointer;
}

.hamburger-btn i {
    width: 100%;
    height: 100%;
    font-size: var(--rem3);
}

.submenu {
    display: flex;
    position: fixed;
    flex-direction: column;
    align-items: center;
    min-width: fit-content;
    width: 0;
    transform: translateX(-100%);
    transition: .5s;
    z-index: 801;
    background-color: var(--colorMain);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.showSubmenu {
    transform: translateX(0%);
    transition: .5s;
    width: 100%;
}

.rotate-180deg {
    transform: rotate(180deg);
}

.close-this {
    flex-direction: row-reverse;
}

.close-this p {
    position: relative;
    text-align: center;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 24px), -50%);
}

main {
    margin-top: var(--doubleRem) !important;
    /*padding-top: 2rem;*/
}

/* prvni breakpoint na vypnuti hamburger menu */
@media screen and (min-width: 700px) {
    nav {
        display: flex;
        flex-direction: row;
        width: auto;
    }

    .hamburger {
        position: static;
        flex-direction: row;
        align-items: center;
        width: 100%;
        transform: unset;
        transition: unset;
        z-index: unset;
        top: unset;
        bottom: unset;
        left: unset;
        right: unset;
        height: unset;
    }

    .hamburger-btn {
        display: none;
    }

    .special-menu-item:hover>.submenu,
    .special-menu-item.hovering>.submenu {
        display: flex;
    }

    .submenu {
        display: none;
        position: absolute;
        flex-direction: column;
        align-items: center;
        min-width: 10rem;
        width: auto;
        transform: translateX(-10%);
        transition: unset;
        top: calc(var(--doubleRem) - 2rem);
        bottom: unset;
        left: unset;
        right: unset;
        box-shadow: 0 4px 8px var(--shadow);
    }

    .close-this {
        display: none;
    }

    .show-more-icon {
        display: none;
    }

    .special-menu-item p {
        top: unset;
        left: unset;
        transform: none;
        position: static;
    }

    .kosik {
        margin-left: 2rem;
    }

    .menu-item {
        padding: 0.5rem;
    }

    .menu-item p {
        padding: 0;
    }
}

/* Banner styles */
.banner {
    width: 100%;
    height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.67), rgba(0, 0, 0, 0.67)), url("../images/banner.png");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-dark);
}

/* Categories section */
.categories {
    padding: 3rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.category-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.category-content p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.category-link {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
}

.category-link:hover {
    color: var(--primary-dark);
}

/* Featured products section */
.featured-products {
    padding: 3rem 5%;
    background-color: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-content .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-content .rating {
    color: #f39c12;
    margin-bottom: 1rem;
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: var(--primary-dark);
}

/* Info section */
.info-section {
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-card .material-icons {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-card p {
    color: var(--dark-gray);
}

/* Newsletter section */
.newsletter {
    padding: 3rem 5%;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-dark);
}

/* Footer styles */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 3rem 5% 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact .material-icons {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    padding-top: 1rem;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icon {
    width: 60%;
    height: 60%;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Animace pro úvodní stránku */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Aplikace animací */
.banner h1 {
    animation: fadeIn 1.2s ease-out;
}

.banner p {
    animation: fadeIn 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

.banner .btn {
    animation: fadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0.8;
}

.banner .btn:hover {
    animation: pulse 2s infinite;
}

.section-title {
    animation: fadeIn 1s ease-out;
}

.category-card,
.product-card {
    animation: fadeIn 0.8s ease-out;
}

/* Animace pro šipku "scrollovat dolů" */
.scroll-down {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    animation: pulse 2s infinite;
    cursor: pointer;
}

.scroll-down span {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.scroll-down i {
    font-size: 2rem;
}

/* Animace pro aktuality */
.news-section .news-title {
    animation: slideInLeft 1s ease-out;
}

.news-item {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.news-item:nth-child(1) {
    animation-delay: 0.2s;
}

.news-item:nth-child(2) {
    animation-delay: 0.4s;
}

.news-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Styly pro sekci aktualit */
.news-section {
    padding: 3rem 5%;
    background-color: var(--white);
}

.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-item {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px var(--shadow);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.news-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.news-item p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.news-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.news-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media screen and (min-width: 768px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .news-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Styles */
@media screen and (min-width: 768px) {

    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section {
        flex-direction: row;
        justify-content: space-between;
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input {
        flex: 1;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Detail Specific Styles */
.product-detail {
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.product-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px var(--shadow);
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-code {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    color: #f39c12;
    margin-right: 10px;
}

.review-count {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-availability {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.availability-status {
    display: flex;
    align-items: center;
}

.availability-status.in-stock {
    color: var(--accent-color);
}

.availability-status.limited {
    color: #f39c12;
}

.availability-status.out-stock {
    color: #e74c3c;
}

.availability-status i {
    margin-right: 5px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray);
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
}

.quantity-input {
    width: 50px;
    height: 36px;
    border: 1px solid var(--gray);
    text-align: center;
    font-size: 1rem;
    margin: 0 5px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-large {
    padding: 15px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.delivery-options {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.delivery-option:last-child {
    margin-bottom: 0;
}

.delivery-icon {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.delivery-info h4 {
    margin: 0;
    font-size: 1rem;
}

.delivery-info p {
    margin: 5px 0 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.product-short-desc {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.feature-list li:before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 5px;
    top: -5px;
}

.product-tabs {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    white-space: nowrap;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr:nth-child(odd) {
    background-color: var(--light-gray);
}

.specifications-table th,
.specifications-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.specifications-table th {
    width: 40%;
    font-weight: 500;
}

.review {
    border-bottom: 1px solid var(--gray);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.review:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.reviewer-name {
    font-weight: 500;
}

.review-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.review-text {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.helpful {
    display: flex;
    align-items: center;
}

.helpful-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 5px;
}

.related-products {
    margin-top: 4rem;
}

.related-products h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media screen and (min-width: 768px) {
    .action-buttons {
        flex-direction: row;
    }

    .product-tabs {
        margin-top: 4rem;
    }
}

@media screen and (min-width: 992px) {
    .product-main {
        flex-direction: row;
    }

    .product-gallery {
        max-width: 45%;
    }

    .main-image {
        max-height: 400px;
        object-fit: contain;
    }
}

/* Styl specifický pro kategorii audio */
.filter-section {
    background-color: var(--light-gray);
    padding: 1.5rem 5%;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.filter-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-filter {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-filter:hover {
    background-color: var(--primary-dark);
}

.btn-reset {
    background-color: var(--gray);
    color: var(--text-color);
}

.btn-reset:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-category-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-gray);
    border: 1px solid var(--gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-category-btn:hover,
.product-category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 5%;
}

.products-count {
    font-weight: bold;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options select {
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-option {
    padding: 0.5rem;
    background-color: var(--light-gray);
    border: 1px solid var(--gray);
    border-radius: 4px;
    cursor: pointer;
}

.view-option.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.audio-products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 0 5%;
    margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
    .audio-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .audio-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .audio-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 3rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-btn:hover:not(.active) {
    background-color: var(--light-gray);
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1;
}

/* Product card */
.product-card {
    position: relative;
}

.product-card .product-content .price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: var(--dark-gray);
    font-size: 1rem;
}

.category-description {
    padding: 0 5%;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-description h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.category-description p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}
.kosik {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.kosik span {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cart-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-items {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    padding: 1rem;
    background-color: var(--light-gray);
    font-weight: 500;
    border-bottom: 1px solid var(--gray);
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    padding: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

.item-name {
    font-weight: 500;
}

.item-price {
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray);
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
}

.quantity-input {
    width: 40px;
    height: 30px;
    border: 1px solid var(--gray);
    text-align: center;
    font-size: 1rem;
}

.item-total {
    font-weight: 500;
    color: var(--secondary-color);
}

.remove-item {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    color: var(--secondary-color);
}

.cart-empty {
    padding: 3rem 1rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.cart-summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.summary-row:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gray);
    font-size: 1.2rem;
    font-weight: 500;
}

.total-price {
    color: var(--secondary-color);
    font-weight: 700;
}

.checkout-form {
    margin-top: 2rem;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.continue-shopping:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

@media screen and (min-width: 768px) {
    .cart-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .cart-items {
        flex: 3;
    }

    .cart-summary {
        flex: 1;
        position: sticky;
        top: 100px;
    }

    .form-row {
        flex-direction: row;
    }

    .form-row>* {
        flex: 1;
    }
}

@media screen and (max-width: 768px) {

    .cart-header,
    .cart-item {
        grid-template-columns: 3fr 1fr 1fr auto;
    }

    .cart-header div:nth-child(2),
    .cart-item div:nth-child(2) {
        display: none;
    }
}

@media screen and (max-width: 576px) {

    .cart-header,
    .cart-item {
        grid-template-columns: 2fr 1fr auto;
    }

    .cart-header div:nth-child(3),
    .cart-item div:nth-child(3) {
        display: none;
    }

    .item-details {
        flex-direction: column;
        align-items: flex-start;
    }
}