body {
    font-family: "Inter", sans-serif;
    background-color: #f6f7fb;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-attachment: fixed;
    background-image: url('../pictures/pattern.svg'); 
    background-repeat: repeat; 
    background-size: auto; 

    
}
header {
    box-sizing: border-box;
    width:80%;
    height:auto;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
    padding:20px;
    background-color: #f6f7fb;
    box-sizing: border-box;
    

    

    
    
}
header h1 {
    font-size: 2rem;
    
}
img {
    width:100px;
    height:auto;
    
}
form {
    flex-grow:1;
     
    display: flex;
    justify-content: center;
}

.searchContainer {
    width:100%;
    position:relative;
    display:flex;
    align-items: center;
    justify-content: center;
    
    max-width: 350px;
    height:40px;
}
.searchContainer input {
    width: 100%;
    max-width: 350px;
    padding-left: 25px;
    border-radius: 4px;
    border:1px solid black;
    
    height: 40px;
    

}

.amountInput:focus {
    outline: none;
    border: none;
    box-shadow: none;
}
.searchContainer i {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}
.logoContainer {
    display:flex;
    align-items: center;
    justify-content: center;
    gap:20px;
    max-width: 300px;

    text-decoration: none !important;
    
    
    
}



header a {
    color: black;
    text-decoration: none;
}






.iconsContainer {
    display:flex;
    align-items: center;
    justify-content: center;
    width:100%;
    max-width: 280px;
    gap:20px;
    
    
}
.iconsContainer i {
    font-size: 30px;
}

.logoContainer object {
    color:#FFCD1F;
    width:100px;
    height:100px;
}
.vertDivider {
    width:2px;
    height:30px;
    background-color: #000;
    border-radius: 1px;
}
.aboutUs {
    padding-right: 20px;
}
h1  span {
    font-weight: 700;
}
nav {
    display:flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
    width:80%;
    
}
nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height:50px;
    width:100%;
}
nav li {
    width:100%;
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    background-color: #1e1e1e;
    color:white;
    font-weight: 700;
}
main {
    width:80%;
    height:auto;
    background-color: #fefefe;
    padding:10px;
    box-sizing: border-box;
    margin-bottom: 50px;
    
    
    
}



h2 {
font-size: 42px;
font-weight: 700;
margin :0;
color : #1e1e1e;
width:100%;

}
footer {
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f6f7fb;
    box-sizing: border-box;
    border-top-left-radius: 0.6rem; 
    border-top-right-radius: 0.6rem; 
    overflow: hidden; 
}

div.footerContainer {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    padding-bottom: 100px;
}

div.footerContainer > article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div.footerContainer > article > section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.footerContainer > article > section > p {
    padding-left: 0;
    margin-left: 0;
    text-align: left;
}

.copyrightContainer {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #E5AC00;
    padding: 20px;
    box-sizing: border-box;
    gap: 50px;
}



#aboutUsText, #CustomerServiceText {
    font-weight: 600;
    padding-bottom: 10px;
    text-align: left;
}

#aboutUsList, #customerServiceList {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.footerContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

div > article > section {
    width: 100%;
}

section > p {
    width: 100%;
}

ul {
    width: 100%;
}

.footerContainer > article > section {
    display: flex;
    justify-content: center;
    align-items: center;
}

#aboutUsFooter {
    padding-left: 15%;
}

#brandInfo {
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
width:80%;
height: 100px;
background-color: #f6f7fb;
box-sizing: border-box;
}
#brandLogoFooter {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 15px;
}
#brandLogoFooter img {
width: 50px;
height: auto;
}
#brandLogoFooter span {
font-weight: 700;
}
#brandLogoFooterSection {
display:flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap:15px;

}

#aboutUsText{
font-weight: 600;
padding-bottom: 20px;
}

#CustomerServiceText{
font-weight: 600;
padding-bottom: 20px;
}

#aboutUsList {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 10px;
}
#customerServiceList {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 10px;
}

#brandInfoText {
text-wrap: wrap;
}

footer article {
flex:1;
}
header, nav, main, footer {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    
    
    max-width: 1700px;
    
}

.product {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

h3,h4,h5 {
    margin:5px;
}
h3 {
    font-size: 34px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}
h4 {
    font-size: 20px;
    color:#6C757D;
    padding-bottom: 3px;
}
h5 {
    font-size: 32px;
}

.akatovyMed >div {
    background-image: url('pictures/med_akat_maly-removebg-preview.png');
    
}
.medvidekTmavy >div {
    background-image: url('pictures/medvidek_tmavy-removebg-preview.png');
    
}
.vcelarskyKlobouk >div {
    background-image: url('pictures/vcelarsky_klobouk-removebg-preview.png');
    
}

.syto >div {
    background-image: url('pictures/syto-removebg-preview.png');
}
.vidlickaNaOdvickovani >div {
    background-image: url('pictures/vidlicka_na_odvickovani-removebg-preview.png');
}
.medvidekSvetly >div {
    background-image: url('pictures/medvidek_svetly-removebg-preview.png');
}
.ochranneRukavice >div {
    background-image: url('pictures/vcelarske_rukavice-removebg-preview.png');
}
.medomet >div {
    background-image: url('pictures/medomet-removebg-preview.png');
}
.kartac >div {
    background-image: url('pictures/kartac-removebg-preview.png');
}
.syto >div {
    background-image: url('pictures/syto-removebg-preview.png');
}
.dymovnice >div {
    background-image: url('pictures/dymovnice-removebg-preview.png');
}
.akatovyMedL >div {
    background-image: url('pictures/med_akatl-removebg-preview.png');
}
.lipovyMed >div {
    background-image: url('pictures/med_lipovy-removebg-preview.png');
}
.medovicovyMed >div {
    background-image: url('pictures/med_medovicovy-removebg-preview.png');
}
.smisenyMed >div {
    background-image: url('pictures/med_smiseny-removebg-preview.png');
}
.kvetovyMedP > div {
    background-image: url('pictures/med_kvetovy_p-removebg-preview.png');
}




.photoContainer {
    width: 95%;
    height: 60%;
    
    
    margin: 2.5%;
    border-radius: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#customerServiceList > li:hover, #aboutUsList > li:hover {
    cursor: pointer;
    transform: scale(1.05);
}
i:hover {
    transform: scale(0.9);
    transition: 0.1s ease;
}


main >article {
    min-height: 500px;
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    
    width:100%;
    height:100%;
    flex-direction: row;



}

main > article >section {
    width:50%;
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    flex:1;   
    
}
.productImageContainer {
    width:50%;
    height:100%;
    display:flex;
    justify-content: center;
    align-items: center;
}
.productSoleImageContainer {
    width:80%;
    aspect-ratio: 1/1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor:pointer;
}
    
.productSoleImageContainer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    
}


.productInfoContainer {
    width: 100%;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
    
}

.productPriceContainer {
    width:100%;
    display: flex;
    align-items: center;

    gap: 20px;
    
}

#addToCartButton {
    box-sizing: border-box;
    height:50px;
    flex:1;
    min-width: 180px;
    display:flex;
    justify-content: center;
    align-items: center;
    
    
    border:3px solid transparent;
    background-color: #E5AC00;
    color:white;
    font-family: "Inter", sans-serif;
    padding: 0 25px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(299, 172, 0, 0.3);
    transition: all 0.2s ease-in-out;
   
}

#addToCartButton:hover {
    box-sizing: border-box;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 172, 0, 0.4);
    border : 3px solid #E5AC00;
    background-color: white;
    color: #E5AC00;
}
.productSoleImageContainer {
    background-image: url('../pictures/med_akat_maly-removebg-preview.png');

}

article:last-child {
    text-align: left;
    justify-content: flex-start;
}

.mainArticleContainer {
    flex:1;
}

.amountSelector {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height:50px;
    background-color: white;
}

.amountDecrease,  .amountIncrease {
    width: 50px;
    height: 100%;
    background-color: #f9f9f9;
    border: none;
    font-size: 20px;
    color:#333;
    cursor: pointer;
    
    transition: all 0.2s ease-in-out;
}

.amountDecrease:hover, .amountIncrease:hover {
    background-color: #f8f8f8;
}

.amountInput {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  
    
}

.amountInput::-webkit-outer-spin-button,.amountInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    
}
.productPrice {
    width:100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 32px;
    font-weight: bold;

}

.productBuyingInfoContainer {
    box-sizing: border-box;
    width:100%;
    
    padding:25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0, 0.08);
    
    display:flex;
    flex-direction: column;
    gap:25px;
}

.productDescription {
    font-size: 18px;
    line-height: 1.6;
    color:#555;
    
}

.productRating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin :10px 0;
}

.stars {
    color: #ffCD1F;
    font-size: 18px;
    letter-spacing: 2px;
}

.ratingText {
    font-size: 16px;
    color: #666;

}

.productPriceFavouriteContainer {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.fa-heart {
    font-size: 30px;
    
}

.productPriceFavouriteContainer >i.fa-heart {
    color: #E63946;
    
    cursor: pointer;
}

article.productImagePopupBackground {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 587;
    display:none;
    animation: fadeIn 0.2s ease-in-out;
}

section.productImagePopup {
    box-sizing: border-box;
    background-color: white;
    width: 100%;
    height: 100%;
    max-width: 1000px;
    max-height: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position:relative;
    left:0;
    top:0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0, 0.08);
    overflow: hidden;
}

button.closePopupButton {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

div.popupContent {
    padding:0px;
    width:100%;
    height: 100%;
    background-image: url("../pictures/med_akat_maly-removebg-preview.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    
}

nav > ul > li {
    cursor: pointer;
}

#productWeight {
    font-size: 26px;
    font-weight: 600;
}

a {
    text-decoration: none;
    
}

nav> ul >a {
    height:100%;
    width:100%;
}

.iconsContainer >a {
    width:fit-content;
    padding: 0px;
}

#aboutUsHeaderContainer:hover {
    font-weight: 600;
    transition: 0.1s ease;
}



.heartContainer, .profileContaier, .cartContainer {
    padding:0px;
    width:fit-content;
}


article.likedProductPopupBackground {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 586;
    
    
}

section.likedProductPopup {
    box-sizing: border-box;
    background-color: white;
    width: 100%;
    height: 100%;
    max-width: 550px;
    max-height: 200px;
    
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position:relative;
    left:0;
    top:0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0, 0.08);
    padding:20px;
    gap:20px;
    overflow: hidden;
    display:flex;
    flex:1;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

button.closePopupButton {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

div.likedPopupContentImage {
    padding:0px;
    width:100%;
    height: 100%;
    background-image: url("../pictures/med_akat_maly-removebg-preview.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1;

    
}

div.likedPopupContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;


    
}

.likedPopupContent h4 {
    font-size: 20px;
    margin:0px;
}


#productNameLiked {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#productPriceLiked {
    font-size: 20px;
    font-weight: 550;
    margin-bottom: 0.4rem;
}

#productNameLiked, #productWeightLiked, #productPriceLiked {
   
    color: #333;
    
}

button.closePopupButtonLiked {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}





article.boughtProductPopupBackground {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 586;
    
    
}

section.boughtProductPopup {
    box-sizing: border-box;
    background-color: white;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 400px;
    
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position:relative;
    left:0;
    top:0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0, 0.08);
    padding:20px;
    gap:20px;
    overflow: hidden;
    display:flex;
    flex:1;
    animation: fadeIn 0.2s ease-in-out;
}




div.boughtPopupContentImage {
    padding:0px;
    width:100%;
    height: 100%;
    background-image: url("../pictures/med_akat_maly-removebg-preview.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1.5;

    
}

div.boughtPopupContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;


    
}

.boughtPopupContent h4 {
    font-size: 20px;
    margin:0px;
}


#productNameBought {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

#productPriceBought {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

#productWeightBought {
    font-size: 26px;
    font-weight: 600;
    
}

#productNameBought, #productWeightBought, #productPriceBought {
   
    color: #333;
    
}

button.closePopupButtonBought {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

ul > a {
    cursor: pointer;
    text-align: left;
    color:black;
}

ul > a:hover {
    font-weight: 530;
    transform: scale(1.02);
    transition: 0.1s ease;
}

main {
    border-bottom-left-radius: 0.6rem;
    border-bottom-right-radius: 0.6rem;
}
footer {
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
}


@media (max-width : 480px) {
    nav > ul {
        flex-direction: column;
        height: auto;
    }
    
    nav > ul > a {
        width: 100%;
        height: 50px;
        border:none;
    }
    
    nav > ul > a > li {
        width: 100%;
        height: 50px;
        border:none;
        
    }
    
    
}
@media (max-width: 1500px) {
    header, nav, main, footer {
        width: 100%;
    }
}

@media (max-width : 1250px) {
    form {
        display: none;
    }

}

@media (max-width: 1200px) {
    header, nav, main, footer {
        width: 100%;
    }
}

@media (max-width: 992px) {
    

    .mainArticleContainer {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .logoContainer {
        margin-bottom: 10px;
    }
    
    
    
    .mainArticleContainer {
        flex-direction: column;
    }
    
    .productImageContainer, 
    .productInfoContainer {
        width: 100%;
    }
    
    .productSoleImageContainer {
        width: 60%;
        margin-bottom: 20px;
    }
    
    .footerContainer {
        flex-direction: column; 
        gap: 30px;
        padding-bottom: 50px;
    }
    
    #aboutUsFooter {
        padding-left: 0;
    }
    
    #brandInfo {
        align-items: center;
        text-align: center;
    }
    
    
}

@media (max-width: 576px) {
    header, nav, main, footer {
        width: 100%;
    }
    
    .searchContainer {
        max-width: 100%;
    }
    
    .productSoleImageContainer {
        width: 80%;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .productDescription {
        font-size: 16px;
    }
    
    .productPrice {
        font-size: 28px;
    }
    
    
    
    #addToCartButton {
        width: 100%;
    }
    
    
}

@media (max-width: 400px) {
    .logoContainer h1 {
        font-size: 1.5rem;
    }
    
    .logoContainer img {
        width: 80px;
    }
    
    .iconsContainer {
        gap: 10px;
    }
    
    .aboutUs {
        padding-right: 10px;
    }
    
    .vertDivider {
        display: none;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .productSoleImageContainer {
        width: 90%;
    }
    
    .productBuyingInfoContainer {
        padding: 10px;
    }
    
}




.productImageContainer {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.productSoleImageContainer {
    width: 100%;
    max-width: 500px;
    min-width: 300px;
    aspect-ratio: 1/1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: 0;
}


@media (max-width: 1100px) {
    .productImageContainer {
        width: 100%;
        padding: 20px 0;
    }
    
    .productSoleImageContainer {
        max-width: 400px;
    }
}

@media (max-width : 800px) {
    footer > .footerContainer {
        flex-direction: column;
    }
    .footerDuoContainer > section {
        padding:0px;
        margin: 0px;

        

    }
    .footerDuoContainer {
        padding:0px;
        margin: 0px;

        

    }

    #aboutUsFooter {
        margin: 0px;
        padding:0px;
    }
    

}

@media (max-width: 768px) {
    .productSoleImageContainer {
        min-width: 250px;
    }
}

@media (max-width: 520px ) {
    .productPriceContainer {
        flex-direction: column;
        align-items: flex-start;
    }

    #addToCartButton {
        width: 100%;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .productSoleImageContainer {
        min-width: 200px;
    }
}

@media (max-width: 340px) {
    .productRating {
        gap: 0.1rem;
    }
}