/*VŠEOBECNÉ*/
/*Nadpis pre verejné stránky */
.home-pages-title {
    color: var(--color-category-active);
}
/*Tabulky*/
.main-table-responsive caption {
    caption-side: top;
    font-weight: bold;
    padding: 0.75rem 1rem;
    text-align: left;
    background-color: var(--color-gray-light); /* prispôsob podľa tvojho dizajnu */
}

.main-table-responsive {
    border-collapse: collapse;
}

    .main-table-responsive table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1rem;
    }

    .main-table-responsive th, td {
        padding: 0.3rem;
        border: 1px solid #000000ff;
    }
/*--Verejné--nadpisy--*/
.public-section-title {
    color: var(--color-category);
}
/*lightbox-overlay pre produkt detail a contact stores*/
.lightbox-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1055;
    cursor: pointer;
}

    .lightbox-overlay .lightbox-close {
        position: absolute;
        top: .75rem;
        right: .75rem;
        z-index: 2; /* nad obrázok/loader */
        min-width: 44px;
        min-height: 44px; /* pohodlný tap target */
    }

    .lightbox-overlay.open {
        display: flex;
    }

    .lightbox-overlay img {
        max-width: 98%;
        max-height: 98%;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
        image-rendering: auto;
        backface-visibility: hidden; /* fix pre niektoré GPU */
        transform: translateZ(0); /* vyprovokuje čistý repaint */
    }

        .lightbox-overlay img.zoom-in {
            transform: scale(1);
        }

        .lightbox-overlay img:not(.zoom-in) {
            transform: scale(1);
        }
/*Profil*/
/* Profile – cards for orders */
.profile-order-card {
    border: 1px solid var(--color-border2);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: .75rem .75rem .25rem;
    margin: 0 0 1rem 0;
    background: #fff;
}

    .profile-order-card .main-table-responsive caption {
        background: transparent;
        padding-left: 0;
        font-weight: 600;
    }

    .profile-order-card .badge {
        font-weight: 500;
    }

.profile-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}
/*Login Register*/
.login-check-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .login-check-button .form-check {
        margin: 5px;
        padding: 6px 10px;
        cursor: pointer;
    }

        .login-check-button .form-check input {
            width: 1.2rem;
            height: 1.2rem;
            margin-right: 1rem;
            border: 1px solid var(--color-category);
        }

        .login-check-button .form-check label {
            cursor: pointer;
        }

        .login-check-button .form-check input:hover,
        .login-check-button .form-check input:checked {
            background-color: #1b7b24;
        }

        .login-check-button .form-check label:hover,
        .login-check-button .form-check input:hover {
            color: var(--color-danger3);
        }
/*--------------------------------------------------Galéria*/
.gallery-category {
    border-bottom: 1px dashed var(--color-success);
    padding-bottom: 0.5rem;
}

    .gallery-category > a {
        font-size: 1.2rem;
        padding: 3px 6px;
        color: var(--color-category);
    }

        .gallery-category > a.active {
            font-size: 1.2rem;
            color: var(--color-category-active);
        }
/*hoover efekt public gallery*/
.gallery-row .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: start;
}

.gallery-div {
    flex: 1 1 calc(20% - 1rem); /* ~5 columns, mínus medzera */
    max-width: calc(20% - 1rem);
    min-width: 180px;
    height: auto;
}

.gallery-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 300 / 225;
    box-shadow: var(--box-shadow);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .gallery-thumb:hover {
        transform: scale(1.04);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

.category-title {
    color: var(--color-danger);
    font-weight: 300;
    font-size: 1.5rem;
}
/*Označenie z úvodneho slideru*/
.gallery-item.highlight {
    outline: 2px solid var(--color-category-active);
    border-radius: 5px;
    padding: 1px;
    animation: pulse 1.5s ease-in-out;
}

@keyframes pulse {
    0% {
        outline-color: transparent;
    }

    50% {
        outline-color: var(--color-category-active);
    }

    100% {
        outline-color: transparent;
    }
}

.gallery-img:hover {
    transform: scale(1.03);
}

.gallery-img button:hover {
    background: #ff0018ee;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    display: none;
}

    .fullscreen-overlay.active {
        display: flex;
        animation: fadeIn 0.4s ease-in-out;
        animation-fill-mode: both;
    }
/* Animácia */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fullscreen-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    image-rendering: auto;
}
/*CSS pre lightbox*/
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

    .lightbox.open {
        visibility: visible;
        opacity: 1;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    }
/*--------------------------------------------------Košík*/
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
/*Title*/
.cart-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cart-increase {
    font-size: 2rem;
    padding: 0 2px;
    color: rgb(255, 0, 0);
    top: 0;
    margin: 0 0 10px 5px;
}

.cart-decrease {
    font-size: 2rem;
    padding: 0 2px;
    color: rgb(255, 0, 0);
    top: 0;
    margin: 0 5px 10px 0;
}
/*odkazy*/
.cart-links-all {
    display: flex;
    flex-direction: row;
}

.cart-price-summary {
    color: var(--color-text);
}
/*------------Objednávka------------------------*/
/*Spôsob doruťenia*/
/* hlavička skupiny PSČ */
.areas-psc-head {
    color: #00790c;
    font-size: smaller;
}

/* jednotný riadok so stĺpcami */
.areas-item.area-row {
    display: grid;
    grid-template-columns: 6rem 1fr auto; /* PSČ | Obec | Cena */
    gap: .5rem;
    align-items: center;
    padding: .25rem .5rem;
    border-radius: .25rem;
    cursor: pointer;
}

    /* zebrovanie riadkov (už stabilné) */
    .areas-item.area-row.even {
        background: rgba(0,0,0,.03);
    }

    .areas-item.area-row:hover {
        color: var(--color-danger);
    }

/* drobné stĺpcové zarovnania */
.areas-col.areas-psc {
    font-variant-numeric: tabular-nums;
}

.areas-col.areas-fee {
    white-space: nowrap;
}



.checkout-form {
    margin-bottom: 6rem;
}

.checkout-checkbox-div {
    display: flex;
    flex-direction: row;
}

.form-check-label {
    color: var(--color-danger);
}

.checkout-checkbox {
    margin-right: 0.6rem;
    background-color: #ffb4b4;
    width: 1.3rem;
    height: 1.3rem;
    box-shadow: 1px 1px 3px rgb(255, 0, 0);
}

    .checkout-checkbox:checked {
        background-color: rgb(255, 0, 0);
        box-shadow: 1px 1px 3px rgb(255, 0, 0);
        border: 1px solid rgb(255, 0, 0);
    }

.checkout-delivery-label {
    color: var(--color-blue);
}

#checkoutForm .form-label {
    color: var(--color-dark) !important;
}

.platba-payment-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.available-methods {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

    .available-methods img {
    }

.platba-payment-icons a {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px #717171 inset;
    border-radius: 1rem;
    color: #000000ff;
    background-color: #eaeaeaee;
}

    .platba-payment-icons a:hover {
        transform: scale(1.05);
        color: #0c7900ff;
        background-color: #eaeaeaee;
    }

.payment-vyber {
    margin-top: 1rem;
    color: var(--color-category-hover);
}

.payment-icon-gopay {
    max-width: 6rem;
    height: auto;
}

.payment-pay {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    padding: 0 1rem;
}

.platba-payment-icons .available-methods img {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.available-methods img:hover {
    opacity: 1;
}

.gopay-infotext {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    font-weight: 300;
    border-top: 1px solid rgb(255, 0, 0);
    padding-top: 0.5rem;
}
.payment-price-products,
.payment-delivery-fee,
.payment-total {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    text-wrap: balance;
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--color-secondary)
}
.payment-price-products span,
.payment-delivery-fee span,
.payment-total span {
    margin-left: 1.2rem;
    color: var(--color-text);
}


/*------Thank---You-----*/
.thank-you p {
    color: var(--color-danger);
}

.autocomplete-suggestions {
    color: var(--color-danger);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background-color: white;
    border: none;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.autocomplete-item.active {
    background-color: #e0f0ff;
    font-weight: bold;
    cursor: pointer;
}

#PostalCodeSelect {
    color: var(--color-danger);
}

.autocomplete-suggestions div:hover {
    background-color: #f2f2f2;
}

#deliverySection h6 {
    color: var(--color-danger);
    margin: 0.5rem 0 1rem 0;
    text-decoration: underline;
}
/*--------------------------------------------------Produkty*/
/* Pridať do košíka - Produkty + Detail */
.add-to-cart-btn {
    background-color: #710031;
    color: #ffffff;
    border: none;
}

    .add-to-cart-btn:hover {
        background-color: #560025;
        transform: scale(0.98);
        color: #ffffff;
        border: none;
    }

button.add-to-cart-btn:active {
    background-color: #710031 !important;
    color: #ffffff !important;
    border: none;
}
/*title*/
.products-all {
    color: var(--color-success);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    align-items: stretch;
}
/* Karta produktu */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    border: 1px solid var(--color-border2);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.1s ease;
    padding: .5rem;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

    .product-card:hover {
        transform: scale(1.01);
    }

    .product-card a {
        text-decoration: none;
    }
/* === Products: image wrapper – bez pevného pomeru, prirodzená výška === */
.product-image {
    width: 100%;
    /* aspect-ratio: 300 / 225;   ← odstrániť */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* === Products: image – rešpektuj originálny portrét/landscape bez orezu === */
    .product-image img {
        /* aspect-ratio: 300 / 225;   ← odstrániť */
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        background: transparent;
        border-radius: 5px;
        margin-bottom: 0.625rem;
    }

.product-info {
    margin-top: 1rem;
}

.product-title {
    color: var(--color-danger);
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.3125rem;
}

.product-description {
    white-space: normal;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--color-text);
    min-height: 2.8rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    margin: 0;
}

.product-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-danger);
}

.quantity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--btn-bg);
}

    .quantity-container > button.btn-pridat-kosik {
        background-color: #004206;
        margin-top: 0.4375rem;
        width: 100%;
        box-shadow: 0px 0px 5px black;
        color: #eaeaea
    }

        .quantity-container > button.btn-pridat-kosik:hover {
            background-color: #001b02;
            box-shadow: 0px 0px 1px black;
            color: #9f9f9f;
        }

.products .add-to-cart-form {
    margin-top: auto;
}

/* === Product detail === */
.product-detail-container {
    display: flex;
    flex-direction: row;
    /*flex-wrap: wrap;*/
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border2);
    box-shadow: 1px 1px 23px 0px var(--color-shadow);
}

.product-detail-photo-gallery {
    display: flex;
    flex: 1.3;
}

.product-detail-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

    .product-detail-gallery > .mb-3 {
        flex: 1 1 auto;
        min-width: 0;
    }

    .product-detail-gallery img,
    #mainProductImage {
        width: 100%;
        height: auto;
        object-fit: contain;
        cursor: pointer;
    }

.product-detail-gallery-thumb {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 120px;
    max-width: 120px;
    max-height: 70vh;
    overflow: auto;
    padding-right: 0.25rem;
}

    .product-detail-gallery-thumb .product-thumb {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        border: 2px solid transparent;
        border-radius: 6px;
        transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
        background: transparent;
        cursor: pointer;
    }

        .product-detail-gallery-thumb .product-thumb:hover {
            transform: scale(1.02);
        }

        .product-detail-gallery-thumb .product-thumb.active {
            border-color: var(--color-category-active);
            box-shadow: 0 0 8px rgba(25, 135, 84, 0.35);
            outline: none;
        }

.product-detail-info-action {
    margin: 0 auto;
    /*width: 25rem;*/
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-detail-info {
    padding-top: 20px;
    justify-content: flex-start;
    align-items: end;
    align-content: flex-start;
    width: 100%;
}

    .product-detail-info .detail-title {
        color: var(--color-danger);
    }

    .product-detail-info .detail-category {
        color: var( --color-input-placeholder);
    }

    .product-detail-info .detail-description {
        color: var(--color-text);
        padding-top: 20px;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 10;
        -webkit-box-orient: vertical;
        overflow-wrap: anywhere;
        word-break: break-word;
        /*hyphens: auto;*/
    }

    .product-detail-info .detail-price {
        color: var(--color-danger2);
        padding-top: 20px;
        font-size: 1.2rem;
    }

.product-detail-action-buttons {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.product-detail-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.product-thumb {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .product-thumb.active {
        border: 2px solid #198754;
        box-shadow: 0 0 8px rgba(25, 135, 84, 0.5);
    }

    .product-thumb:hover {
        cursor: pointer;
        transform: scale(1.05);
    }

#mainProductImage {
    cursor: pointer;
}
/*---------------------------------------------------------Kontakt*/
.predajne-pokec {
    font-family: Geneva, Verdana, sans-serif;
    color: var(--btn-bg);
}

.contact-predajne .contact-nadpis {
    color: var(--color-danger);
    font-weight: 200;
}

.contact-predajne .predajne-pokec {
    color: var(--color-danger);
    font-weight: 200;
}

.contact-predajne .contact-predajna > h3 {
    color: var(--color-category-hover);
    font-weight: 500;
    margin-top: 1rem;
}

.contact-predajne p {
    margin: 0;
}
/*contact---predajne----img*/
.stores-contact-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.stores-contact-gallery-img {
    width: 100%;
    max-width: 30%;
    height: auto;
    padding: 0;
}

.produkty-dostupnost-btn {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: start;
}

    .produkty-dostupnost-btn button {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }

.contact-company-info {
    color: var(--color-deactivate);
}

    .contact-company-info p {
        padding: 0;
        margin: 0;
    }

.postal-codes-list {
    margin: 1rem;
    color: var(--color-text);
}

    .postal-codes-list h5 {
        color: var(--color-category-hover);
    }
/*----------------------------------------Login-Register*/
/*--Aktivne prepínanie nadpisu--*/
.tab-title {
    color: var(--color-dark);
    text-shadow: 0px 0px 9px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .tab-title.active-tab-title {
        color: #1b7b24;
        text-shadow: none;
    }

.tab-button {
    border-radius: 6px;
    border: none;
    color: #f2f2f2;
    background-color: #4e4e4e;
    padding: 5px 8px;
    font-weight: 200;
}

    .tab-button.active {
        color: #f5f5f5;
        background-color: #1b7b24;
    }

.tab-content {
    display: none; /* Skryt vsetky taby na zaciatku */
}

    .tab-content.active {
        display: block; /* Zobrazit len aktivny tab */
    }

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1.25rem;
}

@media (max-width: 1200px) {
    .product-detail-gallery-thumb {
        max-width: 100px;
    }
}

@media (max-width: 992px) {
    .gallery-div {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }

    .products {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 1rem;
    }

    .product-detail-gallery-thumb {
        max-width: 60px;
    }
    /*Galeria*/
    .gallery-category > a {
        font-size: 0.9rem;
    }

        .gallery-category > a.active {
            font-size: 0.9rem;
            padding: 2px 5px;
        }
}

@media (max-width: 768px) {
    .gallery-div {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
        min-width: 30%;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 1rem;
    }

    .product-detail-container {
        flex-direction: column;
        align-items: center;
    }

    .product-detail-gallery {
        flex-direction: column;
    }

    .product-detail-gallery-thumb {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

        /* neutralizácia bootstrap .col-* wrapperov vo vnútri thumbov */
        .product-detail-gallery-thumb > [class*="col-"] {
            width: auto !important;
            max-width: none !important;
            flex: 0 0 auto !important;
        }

    .product-detail-info-action {
        max-width: 18rem;
    }

    .stores-contact-gallery-img {
        width: 45%;
    }
    /*Galeria*/
    .gallery-images img {
        width: 90vw;
        height: auto;
    }

    .gallery-category > a {
        font-size: 0.9rem;
    }

        .gallery-category > a.active {
            font-size: 0.9rem;
            padding: 2px 5px;
        }
    /*košik*/
    .cart-title {
        font-size: 1.4rem;
    }

    .cart-links-all {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cart-increase {
        font-size: 1.5rem;
        padding: 0 2px;
        color: rgb(255, 0, 0);
        top: 0;
        margin: 0 0 10px 0;
    }

    .cart-decrease {
        font-size: 1.5rem;
        padding: 0 2px;
        color: rgb(255, 0, 0);
        top: 0;
        margin: 0 0 10px 0;
    }
    /*Checkout*/
    #deliverySection h6 {
        font-size: 1rem;
    }
    /* Profil – responzívna tabuľka (mobile) */
    .main-table-responsive table {
        border-collapse: collapse;
        width: 100%;
        margin-top: .5rem;
    }

    /* NEskrývaj stĺpcové hlavičky display:none; — len ich vizuálne skry, aby ostali v accessibility tree */
    .main-table-responsive thead {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
        white-space: nowrap;
    }

    .main-table-responsive tr {
        display: block;
        padding: 10px 0;
    }

    .main-table-responsive td {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: 15ch auto;
        padding: 0.5rem 1rem;
        border-bottom: none;
    }

        .main-table-responsive td:last-child {
            border-bottom: 1px solid #000000ff;
        }

        .main-table-responsive td::before {
            content: attr(data-cell) ": ";
            font-weight: 700;
            text-transform: none; /* nechaj presný text, nie capitalize */
        }

    .main-table-responsive caption {
        padding-bottom: 0;
        padding-left: 0;
    }

    .main-table-responsive .badge {
        width: 80px;
    }
}

@media (max-width: 576px) {
    .gallery-div {
        flex: 1 1 100%;
        max-width: 30%;
        min-width: 30%;
    }

    .gallery-row .row {
        justify-content: center;
        gap: 0.5rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 0.45rem;
    }

    .btn-submit {
        width: 100%;
        padding: 0.6rem;
    }

    .tab-title {
        font-size: 1rem;
    }

    .tab-button,
    .tab-button.active {
        padding: 4px 6px;
        font-size: 0.9rem
    }
    /*lightbox-overlay pre produkt detail a contact stores*/
    .lightbox-overlay img:not(.zoom-in) {
        transform: scale(1);
    }
    /*Produkty*/
    .products {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 1rem;
    }
    /*Produkt detail*/
    .product-detail-gallery-thumb {
        grid-template-columns: repeat(3, 1fr);
        flex: 0 0 80px;
    }

    .product-detail-buttons {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    /*Galéria*/
    .gallery-category > a {
        font-size: 0.8rem;
    }

        .gallery-category > a.active {
            font-size: 0.8rem;
            padding: 2px 5px;
        }
    /*košik*/
    .cart-title {
        font-size: 1.3rem;
    }

    .cart-links-all {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 140px;
        justify-content: center;
        align-items: center;
    }
    /*Checkout*/
    #deliverySection h6 {
        font-size: 0.9rem;
    }

    .payment-icon-gopay {
        max-width: 5rem;
        height: auto;
    }

    .platba-payment-icons a {
        max-width: 12rem;
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .platba-payment-icons .available-methods img {
        transform: scale(0.8);
    }

    .payment-pay {
        padding: 0;
    }

    .available-methods {
        display: inline;
    }
    /* Profil – responzívna tabuľka (mobile) */
    .main-table-responsive table {
        border-collapse: collapse;
        width: 100%;
        margin-top: .5rem;
    }

    /* NEskrývaj stĺpcové hlavičky display:none; — len ich vizuálne skry, aby ostali v accessibility tree */
    .main-table-responsive thead {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
        white-space: nowrap;
    }

    .main-table-responsive tr {
        display: block;
        padding: 10px 0;
    }

    .main-table-responsive td {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: 15ch auto;
        padding: 0.5rem 1rem;
        border-bottom: none;
    }

        .main-table-responsive td:last-child {
            border-bottom: 1px solid #000000ff;
        }

        .main-table-responsive td::before {
            content: attr(data-cell) ": ";
            font-weight: 700;
            text-transform: none; /* nechaj presný text, nie capitalize */
        }

    .main-table-responsive caption {
        padding-bottom: 0;
        padding-left: 0;
    }

    .main-table-responsive .badge {
        width: 80px;
    }
}

@media (max-width: 460px) {
    .stores-contact-gallery-img {
        width: 45%;
    }
    /*Admin gallery*/
    #gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    /*Produkt detail*/
    .cart-links-all {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 400px) {
    .gallery-div {
        flex: 1 1 100%;
        max-width: 45%;
        min-width: 30%;
    }

    .gallery-div {
        flex: 1 1 100%;
        max-width: 31%;
    }

    .gallery-row .row {
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .gallery-div {
        flex: 1 1 100%;
        max-width: 45%;
        min-width: 48%;
    }

    .product-detail-gallery-thumb {
        grid-template-columns: repeat(3, 1fr);
        flex: 0 0 80px;
    }
}

@media (max-width: 300px) {
    .product-detail-gallery-thumb {
        /*grid-template-columns: repeat(3, 1fr);
        flex: 0 0 140px;*/
    }
}
