/* Definitions */
:root {
    --accent-color: #a02c2c;
    --accent-color-light: #f5baba;
    --complementary-color1:#f6aa1c;
    --complementary-color1darker:#eea51d;
    --complementary-color2:#177f75;
    --complementary-color2darker:#15746a;
    --light-background: #f1f1f1;
  }
/* General Layout */
html {
    height: 100%;
    font-size: 16px; /* Base font for rem units */
}
body {    
    display: grid;
    min-height: 100%;
    width: 100%;
    grid-gap: 1em;
    grid-template-areas:
     "header"
     "sidebar"
     "content";
    margin: 0px auto;
    background-color: var(--light-background);
  }

#header {
    grid-area: header;
    background-color: white;
    border-bottom: 1px solid var(--accent-color);
} 
#header-content{
    width: 1000px;
    height: 44px;
    margin: 0px auto;
    display: flex;
    justify-content: flex-start;
}
#sidebar {
    grid-area: sidebar;
}

#content {
    grid-area: content;
}

/* Style */
html{
    font-family: 'Titillium Web',sans-serif;
    
}
h1,h2,h3,h4{
    margin: 0;
    color: var(--accent-color)
}
h4 a {
    text-decoration: none;
    color: var(--accent-color)
}
p {
    margin-bottom: 1em;
    text-align:justify;
}
.center {
	display: block;
	margin: 0 auto;
	text-align:center;
}
ul{
    margin-top:0px;

}
table{
    border-collapse: collapse;
}
th,td{
    border-bottom:1px solid #E1E1E1;
    padding: 12px 15px;
}
th{
    text-align: left;
}
table.compact th,table.compact td{
    padding: 3px 3px;
}

.flex-container {
    display: flex; /* Enable flex container */
  }

.column {
    flex: 1; /* Each column takes equal available space */
    
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
  }

/* Product page */

/* Desktop Styles */
.product-name {
    margin-bottom: 10px;
}

.product-upper {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.product-gallery {
    flex: 0 0 400px;
}

.main-image {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    border-radius: 3px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 3px;
}

.thumbnails {
    display: flex;
    flex-wrap: wrap; /* Allow thumbnails to wrap onto multiple rows */
    gap: 0px; /* Adjust gap as needed */
    max-width: 400px; /* Limit the width of the thumbnails container */
    overflow-x: hidden; /* Remove horizontal scrolling */
    white-space: normal; /* Allow thumbnails to wrap */
    padding-bottom: 0px; /* remove unnecessary padding */
}
.thumbnails img {
    width: 78px;
    height: 78px;
    border: 1px solid #eee;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0; /* Prevent thumbnails from shrinking */
}


.thumbnails img:hover {
    border-color: #333;
}

.product-info {
    flex: 1;
}

.short-description {
    margin-bottom: 5px;
}
.tab-link a{
    font-size: small;
    color: #555;
    
}
.tab-link{
    margin-bottom: 10px;
}

.product-variants a{
    display: inline-block;
    border: solid 1px var(--accent-color);
    margin: 20px 5px;
    border-radius: 3px;
    cursor: pointer;
    padding: 5px 15px;
    text-decoration: none;
    color: black;
    text-align: center;
}
.product-variants a.active{
    color: white;
    background-color:  var(--accent-color);;
}

.product-price {
    font-size: medium;
    font-weight: bold;
    color: var(--complementary-color2);
    margin-bottom: 20px;
}

div.product-price div{
    float:right;

}

.recommended-accessories {
    margin-bottom: 5px;
}

.accessory-item {
    display: flex;
    align-items: center; /* Vertically align items */
    margin-bottom: 0px;
    margin-top: 10px;
    border: solid 1px white;
    border-radius: 3px;
    padding-right: 10px;
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1), 0 3px 8px 0 rgba(0, 0, 0, 0.1);
}

.accessory-image-label {
    width: auto;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.accessory-image-label img {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    object-fit: cover;
    margin-right: 10px;
    margin-top: 0px;
    vertical-align: middle; /* Align image vertically */
}

.accessory-image-label input[type="checkbox"] {
    margin-right: 5px; /* Add spacing between checkbox and image */
    vertical-align: middle; /* Align checkbox vertically */
    margin-top: -10px;
}

.accessory-name-link {
    width: auto;
    margin-right: auto;
    vertical-align: middle; /* Align link vertically */
    margin-top:-10px;
}
.accessory-name-link a {
    text-decoration: none;
    color: #333;
}

.accessory-name-link a:hover {
    text-decoration: underline;
}

.accessory-price {
    color: var(--complementary-color2);
    display: flex; /* Make price a flex container */
    align-items: center; /* Vertically align price text */
    vertical-align: middle; /* Align price vertically */
    margin-top:-10px;
}

.add-to-cart-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
}

.add-to-cart-btn:hover {
    background-color: #218838;
}

/* Mobile Styles (Default, Overridden by Desktop) */
.mobile-gallery {
    max-width: 100vw;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Enable smooth snapping between images */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
    margin-bottom: 0.625rem; /* 10px / 16px in rem */
    height: 400px!important;
    
}

.mobile-image-slider {
    display: flex;
    width: 100%; /* Ensure the slider container takes full width */
    height: 99%;
}

.mobile-image-slider  img {
    flex: 0 0 100vw;
    width: 100vw; /* Explicitly set width to viewport width */
    height: auto;
    scroll-snap-align: start;
    object-fit: contain;
    margin-right: 0; /* Remove right margin as they are full width */
}

.dots {
    display: flex;
    justify-content: center; /* Zarovnání teček na střed */
    margin-top: -2.2rem; /* Trocha prostoru mezi galerií a tečkami */
    margin-bottom: 2rem;
}

.dot {
    width: 0.8rem; /* Velikost tečky (10px / 16px) */
    height: 0.8rem; /* Velikost tečky (10px / 16px) */
    background-color: #bbb; /* Výchozí barva tečky */
    border-radius: 50%; /* Udělá z tečky kolečko */
    display: inline-block;
    z-index: 20;
    margin: 0 0.25rem; /* Mezera mezi tečkami (4px / 16px) */
    cursor: pointer; /* Indikace, že na tečku lze kliknout */
}

.dot.active {
    background-color: #717171; /* Barva aktivní tečky */
}

.mobile-actions {
    margin-bottom: 20px;
}

.mobile-actions .short-description { /* Specific short description for mobile*/
    margin-bottom: 10px;
}

.mobile-actions .add-to-cart-btn {
    width: 100%;
}



/* Tabs */
.product-lower {
    border-top: 1px solid #ccc;
    padding-top: 5px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    border-bottom-color: #007bff;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 0px 0;
}

.tab-content.active {
    display: block;
}



/* Header */
#header-content {
    font-size: 1.2rem;
}
#header-content a,.left-menu-toggler a {
    display: block;
    color: black;
    text-align: center;
    padding: 9px 12px;
    text-decoration: none;
}
#header-content a:hover{
    color:var(--accent-color);
}
#header-content .logo{
    width:35px;
    height:35px;
    margin: auto 0px auto 5px;
}
#header-content .logo-text{
    color: var(--accent-color);
    font-weight: bold;
    padding: 8px 12px;
}
#header-content .menu-icon{
    display: none;
}
#shopping-cart-link {
    margin-left: auto;
    background-color: var(--light-background);
}
.filled-cart {
	background-color: var(--accent-color) !important;
	color: white !important;
}
#shopping-cart-link i{
	font-size: 1.5rem;
	margin-right: 7px;
    margin-top: 3px;
}
#shopping-cart-link span{
    float:right;
}

/* Sidebar */
#sidebar {
    margin-right: 20px;
}
#sidebar img{
    margin: 10px auto;
}
#sidebar ul {
    margin-left: 25px;
    padding: 0;
    margin-top: 10px;
    list-style-type: none;
}
#sidebar ul li {
    padding-bottom: 5px;
    margin-bottom: 5px;
}
#sidebar ul li a {
    color: black;
    text-decoration: none;
}
#sidebar ul li a:hover {
    color: var(--accent-color);
}
.menu-title {
    font-size: 1.2rem;
    font-variant: small-caps;
    border-bottom: solid 1px var(--accent-color);
}
.menu-title a {
    text-decoration: none;
    color: black;
}
/* Content */ 
main#content  {
    position: relative;
    min-height: 90%;
    border-radius: 3px;
	background-color: white;
	padding: 15px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 20px;
    padding-bottom: 25px;
}

.sorter {
	float: right;
}

.product-list { /* Container for all product blocks */
    display: flex; /* Enables flexbox for easy arrangement */
    flex-wrap: wrap; /* Allows items to wrap to the next line if needed */
    gap: 25px; /* Space between product blocks */
    margin: 0 auto;

    
    

  }

.product-block {
    width: 230px; /* Example fixed width - adjust as needed */
    height: 250px; /* Example fixed height - adjust as needed */
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1), 0 3px 8px 0 rgba(0, 0, 0, 0.1);
    padding: 15px;
    box-sizing: border-box; /* Ensures padding and border are included in width/height */
    display: flex;
    flex-direction: column; /* Arranges items inside the block vertically */
    align-items: center; /* Centers items horizontally within the block */
    position: relative; /* Needed for absolute positioning of availability */
  }
.product-block:hover {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 8px 0 rgba(0, 0, 0, 0.19);
}

  .product-image {
    flex-grow: 1; /* Allows the image area to take up remaining vertical space */
    display: flex;
    justify-content: center; /* Centers image horizontally */
    align-items: center; /* Centers image vertically */
    overflow: hidden; /* Prevents image from overflowing its container */
    width: 100%; /* Make image container take full width */
    height: 170px;
    vertical-align: middle;
  }
  .product-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain; /* Ensures the image fits within the container without cropping */
  }
  
  .product-list-info {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Puts price on the left, availability on the right */
    align-items: center;
    padding-top: 10px;
  }
  
  .product-availability {
    position: absolute;
    bottom: 15px;
    right: 15px;
    /* Add any specific styling for availability (e.g., color based on status) */
  }



.product-block a {
	display: block;
	text-decoration: none;
	color: black;
	height: 230px;
	
}


.product-price-catalog {
    position:absolute;
    width:100%;
    bottom:5px;

}
.product-stock {
    position:absolute;
    width: 100px;
	right: 5px;
    bottom:5px;
	text-align: right;
}
.product-stocked {
	color: var(--complementary-color2);
}

.product-expected {
    color: var(--complementary-color1);
}
.product-expected {
    color: var(--complementary-color1);
}

.product-not-available, .product-backorder, .product-leadtime{
    color: var(--accent-color);
}

/*.price, .on-stock, .sold.out {
	font-size: large;
	margin-bottom: 10px;
}
.on-stock, .sold-out {
	float: right;
	margin-right: 15px;
}*/
.on-stock {
	color: var(--complementary-color2);
	font-weight: bold;
}
.sold-out {
  color: #333333;
}
.price {
	font-weight: bold;
	color: var(--accent-color);
}

a.button,input[type=submit] {
    display: inline-block;
    border: solid 1px var(--complementary-color2);
    background-color: var(--complementary-color2);
    margin: 10px 10px 10px 10px;
    border-radius: 3px;
    cursor: pointer;
    padding: 5px 30px;
    text-decoration: none;
    color: white;
    text-transform:uppercase;  
  }
a.button:hover,input[type=submit]:hover{
    background-color: var(--complementary-color2darker);
}

a.button.warning{
    border: solid 1px var(--complementary-color1);
    background-color: var(--complementary-color1);
}
a.button.warning:hover{
    background-color: var(--complementary-color1darker);
}
i.add, i.remove,i.delete{
    color: var(--accent-color);

}

.caminqa-list {
    list-style-type: none; /* Remove the default bullet */
    padding-left: 5px; /* Remove default left padding */
  }
  
.nolist {
    padding-left: 5px; /* Remove default left padding */
    list-style-type: none; /* Remove the default bullet */
    margin-bottom: 20px;
    margin-top: 5px;
}
.caminqa-list li {
    padding-left: 25px; /* Adjust to create space for the image */
    background-image: url('images/listlogo.png'); /* Replace with your image path */
    background-repeat: no-repeat;
    background-position: 0 5px; /* Adjust vertical alignment of the image */
    background-size: 16px 16px; /* Adjust image size as needed */
    margin-bottom: 5px; /* Optional: Add some spacing between list items */
  }



/* Forms */ 
form label, fieldset label {
	width: 200px;
	margin-top: 10px;
	margin-right: 5px;
	font-weight: normal;
	clear: both;
	float:left;
	text-align: right;
}
input,textarea,select {
    width: 400px;
    margin-top: 10px;
    float: left;
	margin-bottom: 0px;
}
select#sort-select{
    float:none;
    width:auto;
}
input[type=button],input[type=submit] {
	clear: both;
	float:none;	
	width : 400px;	
}
div.checkbox{
	clear:both;
	width: 450px;
	margin:auto;
}
div.checkbox label{
	clear:none;
	float: none;
	padding-top: 5px;
	text-align: left;
	width:auto;
	
}
input[type=checkbox],input[type=radio]{
	display: inline;
	width: auto;
	margin-right: 10px;
}

form .error {
	color: var(--accent-color);
	font-weight: bold;
}
label.required::after {
    content: "*";
		font-weight: bold;
		color: var(--accent-color);
	 }
fieldset {
	margin-bottom: 0px;
	padding-bottom: 0px;
}
legend {
    color: var(--accent-color);
	margin-bottom: 10px;
	font-size: 1.2rem;
	font-weight: normal!important;


}
.centeredrules {
	text-align:center;
	margin-bottom: 15px;
}
.validation-message,.text-help {
	color: darkred;
	clear: both;
	margin: auto;
	text-align: center;
}
input::placeholder{
	color:#888;
	opacity: 0.5;
}
.skryte{
	display: none;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 38px;
  padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box; }
/* Removes awkward default styles on some inputs for iOS */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; }
textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px; }
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border: 1px solid var(--complementary-color2);
  outline: 0; }
label,
legend {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600; }
fieldset {
  padding: 0;
  border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
  display: inline; }
label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal; }




/* Small screen */
@media only screen and (max-width: 1000px)  {
    html{
        font-size: 20px;
    }
    body {  
      grid-template-columns: 1fr;
      grid-template-rows: auto auto 1fr;
      grid-template-areas:
      "header"
      "sidebar"
      "content";
      -webkit-text-size-adjust:100%;
    }
    .mobile-only,#header-content a.mobile-only,#sidebar.on {
        display:block;
    }
    .screen-only,#header-content a.screen-only,#sidebar.off{
        display:none;
    }
    #header-content {
        width:100%;
        justify-content: flex-start;
    }
    .product-upper, .thumbnails {
        display: none;
    }
    h1,h2,h3,h4,h5{
        font-weight: normal;
    }
    
    #header-content a,.left-menu-toggler a {  
        padding: 4px 12px;

    }
    #header-content .logo-text{
        padding: 4px 12px;
    }
    div#content {
        margin-top:-20px;
        padding: 0;
    }
    form label, fieldset label {
        display: block;
        width:auto;
        float:none;
        text-align:left;
        margin-bottom:0;
        padding-top: 5px;
        /*width: 200px;
        margin-top: 10px;
        margin-right: 5px;
        font-weight: normal;
        clear: both;
        float:left;
        text-align: right;-*/
    }
    input,textarea,select{
        width:100%;
        margin-top: 0;
    }
    div.checkbox label{
        clear:none;
        float: none;
        padding-top: 0px;
        text-align: left;
        width:auto;
        
    }
    input[type=checkbox],input[type=radio]{
        display: inline;
        width: auto;
        margin-top: 10px;
    }
    .product-stock {
        position:absolute;
        width: 200px;
        display:inline;        
        right: auto;
        bottom:27px;
        text-align: left;
    }
   
  
}

/* Big screen */ 
@media only screen and (min-width: 1000px)   {
      body {
        grid-gap: 10px;
        grid-template-rows: 45px 1fr;
        grid-template-columns: 1fr 200px 800px 1fr;
        grid-template-areas:
        "header  header  header  header"
        "left sidebar content right";
      }
      .screen-only,#sidebar.on,#sidebar.off{
        display:block;
      }
      .mobile-only,#header-content a.mobile-only{
        display: none;
      }
      .mobile-gallery, .mobile-actions {
        display: none;
    }

    .product-upper {
        display: flex;
    }
      
    }

/* Print */ 
@media print {
        #header,#sidebar {
          display: none;
          visibility: hidden;
        }
        #content main {
            min-height: 90%;
            border-radius: 00px;
            background-color: white;
            padding: 0px;
            box-shadow: none;
      }
    }
/* Lightbox */

.gallery {
    margin: 0 auto; /* Centers the div horizontally */
    text-align: center; /* Centers the images inside */
}
.thumbnail {
    max-height: 150px;
    object-fit: cover;
    border-radius: 3px; 
    cursor: pointer;
}

.lightbox-link {
    text-decoration: none;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    padding: 20px; /* Increase clickable area */
    user-select: none;
}

.lightbox-close { top: 10px; right: 20px; transform: translateY(0);}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover,
.lightbox-close:focus, .lightbox-prev:focus, .lightbox-next:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    font-size: 18px;
    text-align: center;
    width: 80%; /* Adjust as needed */
}

.flash-container {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    padding: 10px 15px;
    text-align: center;
    z-index: 1000; /* Ensure it's above other content */
    display: flex;
    justify-content: right; /* Center the message */
}


.flash {
    position: relative; /* For positioning the close button */
    padding: 10px 50px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    opacity: 1; /* Ensure they are initially fully visible */
    transition: opacity 0.5s ease-in-out; /* Add a transition for the opacity property */
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.flash.warning {
    background-color: #fff3cd;
    color: #85640a;
    border-color: #ffeeba;
}
.flash.info {
    background-color: #e0f7fa;
    color: #00838f;
    border-color: #b2ebf2;
}
.flash-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: x-large;
    line-height: 1;
    border: none;
    background: none;
    padding: 0;
    opacity: 0.7;
}

.flash-close-btn:hover {
    opacity: 1;
}



.customer-message{
    padding: 5px;
    border:solid 1px var(--accent-color);
    border-radius: 5px;
    color: black;
    background-color: var(--accent-color-light);
    margin-bottom:20px;
}