/* Main Layout */

body{
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	font-style: normal;
}

#skiptomain{
	display:none;
}

/* Wrapper to centre the main content on screen */
#wrapper{
	margin-left:auto;
	margin-right:auto;
	width:1280px;/* Default desktop width */
	min-height:600px;
		/* border:solid 1px #ddd; */
}

#topBar{
	font-size:14px;
	background-color: rgba(124, 108, 153, 1.0);
	color:#fff;
	padding:2px 10px 2px 0px;
	height:10px;
	line-height:20px;
	align-items:center;
	text-align:right;
}

#headcontainer{
	width:100%;
}

#headlogocontainer{
	width:172px;
	float:left;
	height:110px;
}

#headlogocontainer img{
	margin:0px;
	padding:0px;
}

#headtitlecontainer{
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* padding: 10px; */
	padding: 5px;
}

#logo img{
	margin-left:5px;
	/* width:300px; */
		width:220px;
}

#searchForm{
	flex-grow: 1;
	display: flex;
	justify-content: center;
	margin: 0 20px;
	position: relative;
}

#searchIcon{
	position: absolute;
	left: calc(50% - 228px);
	top: 50%;
	transform: translateY(-45%);
	padding: 8px;
	pointer-events: none;
}

#searchIcon img{
	width: 32px;
	height: 32px;
}

#searchInput{
	width: 100%;
	max-width: 400px;
	padding: 8px 10px 8px 44px;
	border: 1px solid #ccc;
	border-radius: 20px;
	font-size: 15px;
}

#clearSearchIcon{
	position: absolute;
	right: calc(50% - 228px);
	top: 50%;
	transform: translateY(-45%);
	padding: 8px;
	cursor: pointer;
	display: none;
}

#clearSearchIcon img{
	width: 20px;
	height: 20px;
}

#searchResults{
	position: absolute;
	top:39px;
	width:100%;
	max-width:400px;
	background:white;
	border:1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	display:none;
	z-index:1000;
}


#basket{
	margin-right:10px;
	margin-top:16px;
	display:flex;
	flex-direction:column;
	align-items:center;
	position:relative;
	text-align:center;
}

#mobile-menu{
	margin-right:10px;
	margin-top:16px;
	display:flex;
	flex-direction:column;
	align-items:center;
	position:relative;
	text-align:center;
		display:none;
}

#mobile-menu-close{
	margin-right:10px;
	margin-top:16px;
	display:flex;
	flex-direction:column;
	align-items:center;
	position:relative;
	text-align:center;
	
	display:none; /* Set the default state to hide menu option */
}

#basketIcon, #mobileMenuIcon, #mobileMenuCloseIcon{
	position: relative;
	display: inline-block;
}

#basketQuantityBadge{
	align-items: center;
	background: #b00;
	border-radius: 8px;
	color: #fff;
	height: 16px;
	justify-content: center;
	position: absolute;
	top: -10px;
	right: -4px;
	font-size: 14px;
	display: flex;
	align-items: center;
	padding: 1px 5px 1px;
	font-weight:bold;
}

#basketLabel{
	text-decoration:none;
	color:#000;
}

#menuLabel{
	text-decoration:none;
	color:#000;
}

#menuCloseLabel{
	text-decoration:none;
	color:#000;
}
#basketLabel span{
	margin-top: 0px;
	font-size: 12px;
	font-weight: 400;
	line-height: 13px;
}

#menuLabel span{
	margin-top: 0px;
	font-size: 12px;
	font-weight: 400;
	line-height: 13px;
}

#menuCloseLabel span{
	margin-top: 0px;
	font-size: 12px;
	font-weight: 400;
	line-height: 13px;
}

nav{
	background-image: url('/images/bg_image_01_01.jpg');
	background-size: cover;
	background-position: right center;
	height:100px;
	border-top:solid 1px rgb(124,108,153);
}

#breadcrumb{
	margin:20px 0px 0px 5px;
}

#breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

#breadcrumb li {
  display: inline-flex;
  align-items: center;
}

#breadcrumb li a {
  text-decoration: none;
  color: #000;
  padding: 0 5px;
}

#breadcrumb li a:hover {
  text-decoration: underline;
  color: #000;
  padding: 0 5px;
}

#breadcrumb li::after {
  content: '/';
  margin:0 5px;
  color:#666;
}

#breadcrumb li:last-child::after {
  content: ''; /* Remove arrow for the last item */
}



/* Initial state for mobile core navigation */
#mobileCoreNavigation{
	display:none;
	position:relative;
	width:100%;
	border-bottom:solid 1px rgb(124, 108, 153);
}

#mobileCoreNavigation div{
	padding:10px;
}

#mobileCoreNavigation ul{
	list-style:none;
}

#mobileCoreNavigation ul li{
	line-height:1.8em;
		padding: 6px 4px 2px 8px;
		border-bottom: solid 1px #ddd;
}

#mobileCoreNavigation ul li:last-child {
    border-bottom: none;
}

#mobileCoreNavigation .nav_sel{
	font-weight:bold;
	padding: 6px 4px 2px 8px;
	font-weight:bold;
	color:#000;
	background-color:#fff;
	margin-left:-8px;
}

nav ul#menu{
	float:left;
	list-style:none;
	padding:0px;
	margin:0px;
	/* margin-top:94px;*/
	margin-top:53px;
	background-color: rgba(124, 108, 153, 0.7);
		
	width:100%;
	
}

nav ul#menu li{
	float:left;
	text-align: center;
	position: relative;
	padding: 0px;
	margin: 10px 0 0 25px;	/* Adjust spacing between top nav bar buttons */
	line-height: 1.8em; /* Line height needed for Desktop mode */
}

nav ul#menu li a{
	padding: 6px 4px 2px 8px;
	display:block;
	color: #fff; /* menu text colour */
	outline: 0;
	text-decoration: none;
	/*font-size:19px;*/	/* Adjust font size for core navigation */
	font-size:16px;
	font-weight:bold;
}

nav ul#menu li .nav_sel{
	font-weight:bold;
	color:#000;
	background-color:#fff;
}

nav ul#menu li a:hover{
	color: #ccc !important;
}


/* Category Dropdown selection */
.dropdown {
    position: relative;
    display: inline-block;
    width: calc(100% - 20px);
	margin-top:10px;
	margin-left:10px;
	display:none;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle:hover {
    background: #f1f1f1;
}

.dropdown-toggle .arrow {
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	z-index:10;
}

.dropdown-menu li {
    padding: 10px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background: #f1f1f1;
}

.show {
    display: block;
}



/*

#mobileCoreNavigation{
	height:40px;
	overflow:hidden;
	background-color:#E4F1FD;
	width:100%;
}

#mobileMenu{
	list-style: disc outside none;
	list-style:none;
	font-size:25px;
	text-align:left;
	margin-left:10px;
	line-height:25px;
}

#mobileMenu li{
	margin: 0 0 0 4px;
	padding-right:10px;
	padding-bottom:8px;
	padding-top:8px;
}

#mobileMenu li a{
	color:#000;
}

#mobileMenu li a:hover{
	color:#000;
	text-decoration:none;
}

*/

/* MAIN CONTENT AREA */

#maincontentcontainer{
	min-height:200px;
}

#maincontent{
	overflow:hidden;
	margin-top:10px;
}

#maincontent h1{
	font-size:32px;
	color: #000;
	margin-bottom:15px;
	line-height:35px;
}

#maincontent h2{
	font-size:28px;
	color: #000;
	margin-bottom:5px;
	line-height:28px;
}

#maincontent h3{
	font-size:20px;
	/* color: #09f; */
	margin-bottom:5px;
	line-height:20px;
}

#maincontent ul{
	list-style: disc outside none;
	list-style-type: square;
	margin: 0 0 20px 25px;
}

#maincontent ul li{
	margin-bottom:6px;
}

#maincontent p{
	margin-bottom:5px;
	line-height:1.3em;
}

#maincontent img{
	margin:5px;
	border:solid 1px black;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* Standard styling of hyperlinks */
a{ 
	color : #03a;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	text-decoration: none;
}
a:hover{
	text-decoration: underline;
	color : #00f;
}

a:visited{
	color: #339;
}

.nounderline a:hover{
		text-decoration: none;
}

#leftColumn{
	/* Width is established from sNavigation class */
	float:left;
}

#leftColumn h2 {
  background: #e1edf9;
  color: #007bc3;
  font-size: 15px;
}

/* Sub-navigation */
#sNavigation{
  position: relative;
  float: left;
  color: #003366;;
  width: 200px;
  padding-left: 10px;
}

#sNavigation select{
	display: none;
}

#sNavigation li {
	list-style:none;
}

#sNavigation > ul{
	margin:13px 0 12px 0px;
}

#sNavigation > ul > li a{
	color:#003366;
	display:block;
	line-height: 1.2em;
	text-decoration:none;
	
	padding:5px 5px 5px 5px;
}

#sNavigation > ul > li a:hover{
	color:#fff;
	background-color:#9e93b1;
}

#sNavigation ul li{
	margin-bottom:12px;
	margin-right:10px;
	text-align:left;
}

#sNavigation .selected{
	color:#fff;
	font-weight:bold;
	text-decoration:none;
	background-color:#9e93b1;
	padding:5px 5px 5px 5px;
}


#sNavigation .backLink{
	margin-top:27px;	/* Correct spacing for desktop */
	margin-bottom:27px;
}

#mainColumn{
	margin-top:10px;	/* Amount to push down starting position of content to align with folder level menu */
	font-size:15px;
	line-height:25px;
	margin-right:20px;
	margin-left:210px;

	border-left:solid 1px #ddd;
	padding-left:10px;
}

#mainColumn p{
	margin: 0px 0 20px 0;
}

#mainColumn h2{
	margin-top:12px;

}


/* iPad size display adjustment, needs to updated if corenav changes size */
@media only screen and (max-width:1280px) {

	/* Switch wrapper width from fixed to responsive width */
	#wrapper{
		width:100%;
	}

}

@media only screen and (max-width:1100px) {
	
	.stocklist_grid_flex .stockitem_flex{
		width: calc(33% - 6px);
	}
	
}


@media only screen and (max-width:900px) {
	#searchInput{
		max-width:200px;
	}
	
	#searchIcon{
		left: calc(50% - 130px);
	}
	
	#clearSearchIcon{
		left: calc(50% - -90px);
	}
	
	#searchResults{
		max-width:200px;
	}
	
	.stocklist_grid_flex .stockitem_flex{
		width: calc(50% - 10px);
	}
	
}

/* Hide left-hand navigation column for mobile devices */
@media only screen and (max-width:780px) {
	
	#leftColumn{
		display:none;
	}
	
	.dropdown{
		display:block;
	}
	
	#mainColumn{
		margin-left:0px;
		margin:0px;
	}
	
	#logo img{
		width:200px;
	}
	
	#menu{
		display:none;
	}
	
	#mobileCoreNavigation{
		Xdisplay:block;
	}
	
		#mobile-menu{
			display:flex;
		}
	
	nav{
		height:50px;
		border-top:solid 1px rgb(124,108,153);
		border-bottom:solid 8px rgb(124,108,153);
	}
}

@media only screen and (max-width:617px) {
	
	.stocklist_grid_flex .stockitem_flex{
		width: calc(100% - 6px);
	}
	
	#searchIcon, #searchInput, #clearSearchIcon, #searchResults{
		display:none !important;;
	}
	
}

footer{
	background-color: rgba(124, 108, 153, 1.0);
	margin-top:20px;
}

footer > div{
	margin-left:10px;
	padding:10px;
	color:#fff;
}

.footer a{
	color:#fff;
}

.footer-rm{
	margin-right:20px;
}

/* Stock Product List */

.stocklist_grid_flex{
	display:flex;
	flex-flow:row wrap;
}

.stockitem_flex{
	flex-grow:0;
	flex-shrink:0;
	width:calc(25% - 6px);
	margin:2px 2px 2px 2px;
}

.stockitem_flex > div{
	border:solid 1px #ddd;
	border-radius:10px;
}

.stockitem_flex > div > div{
	margin:10px;
}

.stockitem_flex_selected{
	background-color:#ffc;
}

.stockitem_border{
	border:solid 1px #ddd;
}


.stockitem_inner_margin{
	margin:10px;
}

.stockitem_image{
	width:calc(100% - 10px);
}

.stockitem_product_title{
	margin-top:5px;
	font-size:20px;
	font-weight:bold;
}

.stockitem_grade{
	float:right;
	margin-top:5px;
	font-weight:normal;
	font-size:18px;
}

.stockitem_libraryref{
	margin-top:5px;
}

.stockitem_description{
	font-size:13px;
	line-height:18px;
	margin-top:5px;
}

.stockitem_serial{
	margin-top:5px;
}

.stockitem_price{
	margin-top:5px;
	font-weight:bold;
	font-size:20px;
}

button{
	margin-top:10px;
	font-size:1.0em;
	width:100%;
	height:35px;
	border:solid 0px;
	background-color:rgba(124, 108, 153, 1.0);
	border-radius:12px;
	color:#fff;
}

button:hover{
	background-color:rgba(124, 108, 153, 0.8);
	cursor:pointer;
}


/* Adjust flexgrid to always align serial,price,button to bottom of container */
.stockitem_flex > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stockitem_flex > div > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stockitem_description {
    font-size: 15px;
    line-height: 18px;
    margin-top: 5px;
    flex: 1;  /* This allows the description to take up remaining space */
}

.bottom-align {
    margin-top: auto;  /* This pushes the bottom content down */
    width: 100%;
}
/* --------------------------------------------------------------------------- */


/* Brose Category Styles */

.category {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    justify-content: center;
}
.category a {
    color: #fff;
    text-decoration: none;
}
.category .item {
    border: solid 1px #666;
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transition: all 0.2s ease-in-out;
    background-size: cover;
    background-position: center;
}
.category .item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.45);
    z-index: 10;
}
.category .label {
    background-color: rgba(68, 68, 68, 0.8);
    font-size: 16px;
    font-weight: bold;
    padding: 5px;
    width: 100%;
    text-align: left;
}

@media (max-width: 600px) {
    .category {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .category .item {
        height: 200px;
    }
    .category .label {
        font-size: 14px;
    }
}


/* Product detail view  */

.product-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
	margin-bottom: 25px;
}
.product-image-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-image {
    width: 100%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
	width:calc(100% - 10px);
}
.product-image:hover {
    transform: scale(1.1);
}
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.thumbnail {
    height: 60px;
    border: 1px solid #ddd;
    cursor: pointer;
}
.product-details {
    margin-top: 6px;
		margin:10px;
}
.product-title {
    font-size: 24px;
    font-weight: bold;
}
.product-description {
    color: #555;
	margin:5px 0 10px 0 !important;
}
.product-info {
    font-size: 14px;
    color: #777;
}
.product-info p{
	margin:0 0 12px 0 !important;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}
.add-to-basket {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
	width:auto;
	min-width:180px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}
.modal img {
    max-width: 90%;
    max-height: 90%;
}
.modal.show {
    display: flex;
}

@media (min-width: 768px) {
    .product-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    .product-image-section {
        width: 50%;
    }
    .product-details {
        /* width: 50%; */
    }
}


.quantity-control {
    display: flex;
    align-items: center;
    /* gap: 10px; */
    margin-top: 10px;
}
.quantity-control button {
    color: white;
    cursor: pointer;
    border-radius: 20px;
		width:35px;
		font-size:20px;
		line-height:20px;
}
.quantity-control button:hover {
    Xbackground-color: #0056b3;
}
.quantity-control input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
	margin-top:10px;
		border:none;
		outline: none;
		font-size:20px;
		font-weight:bold;
}


/* Hide number input arrows for Chrome, Safari, Edge, and Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide number input arrows for Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.highlight{
	background-color:yellow;
	font-weight: bold;
}