/*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;
    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.open {
    display: flex;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.lightbox-overlay img.zoom-in {
    transform: scale(1.05);
}
.lightbox-overlay img:not(.zoom-in) {
    transform: scale(0.7);
}
/*Profil*/
.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 label {
   cursor: pointer;
}
/*--------------------------------------------------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;
}
.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 30px rgba(255, 255, 255, 0.3);
    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*/
.checkout-form {
    margin-bottom: 6rem;
}
.checkout-checkbox-div {
    display: flex;
    flex-direction: row;
}
.form-check-label {
    color: #ff0018ee;
}
.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;
}



/*------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 2rem 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: 1rem;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 1px 1px 12px 0px var(--color-shadow);

}
.product-card:hover {
    transform: scale(1.01);
}
.product-card a {
    text-decoration:none;
}
.product-image {
    width: 100%;
    aspect-ratio: 300 / 225;
    overflow:hidden;
}
.product-image img {
    aspect-ratio: 300 / 225;
    width: 100%;
    height: 100%;
    object-fit:cover;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 0.625rem;
    display: block;
}
.product-info {
    margin-top: 1rem;    
}
.product-title {
    color: var(--color-danger);
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.3125rem;
}
.product-description {
    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;
}
.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-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-gallery {      
    width: 27rem;
    display: flex;
    justify-content: flex-start; 
}
.product-detail-gallery img {      
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.product-detail-info-action {
    margin: 0 auto;
    width: 25rem;
    display: flex;
    flex-direction: column;
}
.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;
}
.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-bg); 
    text-shadow: 0px 0px 9px #4e4e4e;
    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: #aeaeae;
    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: 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-container {
        flex-direction: column;
        align-items:center;

    }
    .product-detail-info-action {
        margin-top: 3rem;
    }
/*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-gallery {      
        width: 20rem;
    }
    .product-detail-info-action {
        width: 18rem;
    }
    .stores-contact-gallery-img {
        width: 45%;
    }
/*Produkt detail*/
    .product-detail-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;
    }
}
@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-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*/
    .main-table-responsive th {
        display: none;
    }
    .main-table-responsive td {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: 15ch auto;
        padding: 0.5rem 1rem;
    }
    .main-table-responsive td {
        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: capitalize;
    }
    .main-table-responsive tr {
        padding: 10px;
        display: block;
    }
    .main-table-responsive caption {
        padding-bottom: 0;
        padding-left: 0;
    }
    .main-table-responsive {
        border-collapse: collapse;
        margin-top: 0.5rem;
    }
    .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*/
    .product-detail-gallery {      
        width: 16rem;
    }
    .product-detail-info-action {
        width: 12rem;
    }
    .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 {      
        width: 10rem;
    }
    .product-detail-info-action {
        width: 10rem;
    }
}

