/*--------------------- Responsive (Start) ---------------------*/
@media (max-width: 991px){

    /* Adjust font size for medium screens */
    html{
        font-size: 55%;
    }

    /* Show the menu bar button in the header */
    .header #menu-btn{
        display: initial;
    }

    /* Hide the navbar in the header */
    .header .navbar{
        display: none;
    }

    /* Style and position the mobile menu */
    .mobile-menu { 
        display: block;
        position: fixed;
        top: 0; 
        left: -110%; 
        height: 100%;
        width: 30rem;
        z-index: 10000;
        overflow-y: auto; 
        max-height: 100%;
        background: var(--black);
        -webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
        border: 0.1rem solid var(--black);
        -webkit-box-shadow: var(--box-shadow);
                box-shadow: var(--box-shadow);
    } 

    /* Show the mobile menu when active */
    .mobile-menu.active {
        left: 0;
    }
    
    /* Mobile menu Close button */
    .mobile-menu #close-side-bar {
        position: absolute;
        top: 1rem;
        right: 2rem;
        font-size: 4rem;
        cursor: pointer;
        color: var(--white);
    }
    
    /* Mobile menu Close button, On Hover */
    .mobile-menu #close-side-bar:hover {
        -webkit-transform: rotate(90deg);
                transform: rotate(90deg);
        color: var(--main-color);
    }
    
    /* Mobile menu navbar */
    .mobile-menu .mobile-navbar {
        padding-top: 8rem;
    } 

    /* Main-navigation links */
    .mobile-navbar .main-nav-link{
        border-top: 0.1rem solid var(--white);
        border-bottom: 0.1rem solid var(--white);
        background-color: var(--main-color);
        color: var(--white);
        font-size: 2rem;
        cursor: pointer; 
        width: 100%;
        padding: 2rem 1rem;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify; 
        justify-content: space-between; 
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .mobile-navbar .main-nav-link a{
        color: var(--white);
    }

    /* Main-navigation links, On Hover & Active */
    .mobile-navbar .main-nav-link:hover,
    .mobile-navbar .main-nav-link.active{
        background-color: var(--black);
    }
    
    /* Hide the sub-navigation links by default */
    .mobile-navbar .sub-nav-link {
        padding-left: 2rem;
        padding-bottom: 1rem;
        background: var(--white);
        display: none;
        -webkit-transition: all 0s;
        -moz-transition: all 0s;
        -o-transition: all 0s;
        transition: all 0s;
    }
    
    /* Sub-navigation links */
    .mobile-navbar .sub-nav-link a{
        color: var(--secondary-color);
        display: block;
        padding: 1rem 0rem;
        font-size: 1.8rem;
        border-bottom: 0.1rem solid var(--secondary-color);
    }
    
    /* Sub-navigation links, On Hover */
    .mobile-navbar .sub-nav-link a:hover{
        color: var(--main-color);
    }
    
    /* Customize scrollbar for the navbar */
    .mobile-menu::-webkit-scrollbar{
        width: 0.8rem; 
    }
    
    .mobile-menu::-webkit-scrollbar-thumb{
        border-radius: 1rem;
        background-color: var(--black);
    }
    
    .mobile-menu::-webkit-scrollbar-track{
        background: var(--white);
    }

    /* Responsive layout for blog grid and list */
    .blog.grid, .blog.list{
        -ms-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
    }

    /* Adjust grid layout  ===== zacatek pridaneho =====*/
    .tile .box-container {
        grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
        gap: 1.5rem; /* Větší mezera mezi dlaždicemi */
    }

    /* Slightly reduce image height */
    .tile-item .image {
        height: 30rem; /* Snížená výška obrázků */
    }

    /* Adjust padding and alignment for content */
    .tile-item .content {
        padding: 1.8rem;
        text-align: left; /* Zarovnání na střed pro větší přehlednost */
    }

    /* Font sizes for headings and paragraphs */
    .tile-item .content h3 {
        font-size: 2.4rem; /* Lehce zmenšené nadpisy */
    }

    .tile-item .content p {
        font-size: 1.8rem; /* Texty stále dobře čitelné */
    }

    /* Adjust list styling */
    .tile-item .content ul {
        font-size: 1.8rem; /* Velikost písma seznamů */
        padding-left: 20px;
    }

    .tile-item .content ul li {
        margin-bottom: 0.5rem; /* Mezera mezi položkami seznamu */
    }

    /* Adjust price container */
    .tile-item .price {
        display: flex;
		flex-direction: row; /* Zarovná obsah vedle sebe */
        justify-content: space-between; /* Udržuje prostor mezi textem a hodnotou */
        /*flex-direction: column; /* Vertikální zarovnání ceny a textu */
        align-items: center;
        margin-top: 1.2rem;
    }

    .tile-item .price .price-text {
        font-size: 1.8rem; /* Zvýšená velikost textu ceny */
		padding-right: 1rem; /* Mezera mezi textem a hodnotou ceny */
    }

    .tile-item .price .price-value {
        font-size: 3.5rem; /* Zvýšená velikost čísel ceny */
		font-weight: bold;
    }

    /* Adjust social media icons  === konec pridfaneho ====*/
    .tile-item .icon-container a {
        height: 3.5rem; /* O něco větší ikony */
        width: 3.5rem;
        font-size: 1.6rem;
    }
	
	    .custom-gallery-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .custom-gallery-content {
        flex-direction: column;
        gap: 20px;
    }

    .custom-gallery-main-image img {
        width: 100%;
        max-width: 300px;
    }

    .custom-gallery-thumbnails {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .custom-gallery-thumbnail img {
        width: 80px;
        height: 80px;
    }

    .custom-gallery-text {
        margin: 0;
        text-align: center;
    }
}


@media (max-width: 768px){

    /* Adjust padding for sections */
    section{
        padding: 3rem 2rem;
    }

    /* Adjust padding for header */
    .header{
        padding: 0rem 2rem;
    }

    /* Adjust padding for footer */
    .footer{
        padding: 0 2rem;
    }

    /* Adjust padding for footer container */
    .footer .box-container{
        padding: 2rem 0;
    }

    .home-item{
        height: 75rem;
    }

    .home-item .content{ 
        padding: 2rem;
    }

    .home-slider .swiper-button-next,
    .home-slider .swiper-button-prev{
        display: none;
    }

    .gallery-item{
        width: 50%;
    }
    
    /* Reverse the flex wrap order for shop items */
    .shop{
        -ms-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
    }
    
    /* Adjust the position of next and previous buttons in the testimonial slider */
    .testimonial-slider .swiper-button-next{
        right: 0rem;
    }
    
    .testimonial-slider .swiper-button-prev{
        left: 0rem;
    }

    /* Adjust padding for the testimonial slider */
    .testimonial-slider{
        padding: 2rem 7rem 4rem 7rem;
    }

    /* Profile Details Content */
    .profile .profile-details .content{
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }
    
    /* Profile Information */
    .profile .profile-details .info{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    
    /* Testimonial item */
    .testi-item{
        -ms-flex-wrap: wrap-reverse;
            flex-wrap: wrap-reverse;
    }
    
    /* Testimonial image */
    .testi-item .image{
        height: 40rem;
    }
    
    /* Testimonial Content */
    .testi-item .content{
        padding: 2rem;
    }
    
    /* Testimonial Author Name */
    .testi-item .content h3{
        padding-top: 2rem;
    }

    /* Adjust grid layout for smaller screens ===== zacatek pridaneho ======*/
    .tile .box-container {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
        gap: 1rem;
    }

    /* Reduce the height of the image for better fit */
    .tile-item .image {
        height: 25rem;
    }

    /* Adjust padding and text alignment for content */
    .tile-item .content {
        padding: 1.5rem;
        text-align: left; /* Center-align for better mobile readability */
    }

    /* Adjust font size for headings */
    .tile-item .content h3 {
        font-size: 2.5rem;
    }

    /* Adjust font size for paragraphs */
    .tile-item .content p {
        font-size: 1.6rem;
    }

    /* Adjust list styling */
    .tile-item .content ul {
        font-size: 1.6rem;
        padding-left: 15px;
    }

    /* Reduce spacing in list items */
    .tile-item .content ul li {
        margin-bottom: 0.3rem;
    }

    /* Adjust price container positioning */
    .tile-item .price {
        /*position: static; /* Remove absolute positioning for stacking on mobile */
        margin-top: 1rem;
        display: flex;
        /*flex-direction: column; /* Stack price text and value vertically */
        align-items: center; /* Center-align price content */
		/*=====*/
        flex-direction: row; /* Zarovná text a hodnotu vedle sebe */
        justify-content: space-between; /* Prostor mezi textem a hodnotou ceny */

    }

    /* Adjust font size for price text */
    .tile-item .price .price-text {
        font-size: 1.8rem;
        padding-right: 0.5rem;
    }

    /* Adjust font size for price value */
    .tile-item .price .price-value {
        font-size: 3.5rem;
		font-weight: bold;
    }

    /* Adjust social media icon size */
    .tile-item .icon-container a {
        height: 3rem;
        width: 3rem;
        font-size: 1.8rem;
    }

    /* Adjust hover effects for better usability on touch devices */
    .tile-item .image:hover:before,
    .tile-item .image:hover .icon-container {
        -webkit-transform: none;
        transform: none;
        opacity: 1;
    }

    /* Add spacing between tiles for better touch navigation ==== konec pridaneho ===== */
    .tile-item {
        margin-bottom: 1rem;
    }
	
	  .custom-gallery-container {
        padding: 10px;
    }

    .custom-gallery-main-image img {
        max-width: 100%;
    }

    .custom-gallery-thumbnails {
        flex-wrap: wrap;
        gap: 5px;
    }

    .custom-gallery-thumbnail img {
        width: 60px;
        height: 60px;
    }

    .custom-gallery-text {
        font-size: 1.6rem;
    }

    .custom-gallery-text h3 {
        font-size: 2.2rem;
    }
}
    

@media (max-width: 450px){
    
    /* Adjust font size for extra small screens */
    html{
      font-size: 50%;
    }

    /* Adjust padding for sections */
    section{
        padding: 2rem 1rem;
    }

    /* Adjust padding for header */
    .header{
        padding: 0rem 1rem;
    }

    /* Adjust padding for footer */
    .footer{
        padding: 0 1rem;
    }

    /* Adjust padding for footer container */
    .footer .box-container{
        padding: 1rem 0;
    }

    .home-item{
        height: 100vh;
    }

    .gallery-item{
        width: 100%;
    }

    /* Wrap product items in a list view */
    .shop .product-container.list .product-item {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    /* Adjust image height and width for product items in list view */
    .shop .product-container.list .product-item .image{
        min-height: 15rem; 
        width: 100%;
    }

    /* Adjust image sizing for product items in list view */
    .shop .product-container.list .product-item .image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* Account Form */
    .form.account{
        max-width: 100%;
    }

    /* Form Input Field inside input box container */
    .form .input-box .box{
        width: 100%;
    }

    /* Cart Summary */
    .cart .cart-summary{
        width: 100%;
    }
 
    /* Adjust grid layout for very small screens ===== zacatek pridaneho =====*/
    .tile .box-container {
        grid-template-columns: 1fr; /* Jediný sloupec pro lepší čitelnost */
        gap: 0.8rem; /* Menší mezera mezi dlaždicemi */
    }

    /* Reduce image height further */
    .tile-item .image {
        height: 20rem; /* Snížená výška obrázků */
    }

    /* Center-align text for small screens */
    .tile-item .content {
        padding: 1rem;
        text-align: left;
    }

    /* Adjust font sizes for headings */
    .tile-item .content h3 {
        font-size: 3rem;
    }

    /* Adjust font sizes for paragraphs */
    .tile-item .content p {
        font-size: 2rem;
    }

    /* Adjust font sizes for lists */
    .tile-item .content ul {
        font-size: 2rem;
        padding-left: 15px; /* Menší odsazení pro seznamy */
    }

    /* Reduce spacing between list items */
    .tile-item .content ul li {
        margin-bottom: 0.4rem;
    }

    /* Stack price text and value vertically */
    .tile-item .price {
        margin-top: 2rem;
        display: flex;
        /*flex-direction: column;*/
        align-items: center; /* Zarovnání ceny na střed */
		flex-direction: row; /* Zajistí vedlejší zarovnání */
        justify-content: space-between;
    }

    /* Adjust price text font size */
    .tile-item .price .price-text {
        font-size: 2rem;
    }

    /* Adjust price value font size */
    .tile-item .price .price-value {
        font-size: 3rem;
    }

    /* Social media icons size adjustment */
    .tile-item .icon-container a {
        height: 2.5rem;
        width: 2.5rem;
        font-size: 1.4rem;
    }

    /* Add spacing between tiles for better touch usability  ==== konec pridaneho =====*/
    .tile-item {
        margin-bottom: 0.8rem;
    }
	
	 .custom-gallery-container {
        padding: 5px;
    }

    .custom-gallery-main-image img {
        max-width: 100%;
        height: auto;
    }

    .custom-gallery-thumbnails {
        gap: 3px;
    }

    .custom-gallery-thumbnail img {
        width: 50px;
        height: 50px;
    }

    .custom-gallery-text {
        font-size: 1.4rem;
    }

    .custom-gallery-text h3 {
        font-size: 2rem;
    }
}



/*--------------------- Responsive (End) ---------------------*/




