/* ==========================================================================
   KGLU – Trgovina in Dostopna gradiva

   Sledi vizualnemu jeziku strani: mala pisana oznaka nad naslovom,
   verzalen krepek naslov, črni čip za aktiven filter, tanke črne črte,
   brez zaobljenih robov in senc.
   ========================================================================== */

/* Strani trgovine nimajo stranskega stolpca – primary čez celo širino. */

.shop-page section#primary,
.shop-single section#primary {
	width: 100%;
	float: none;
}

.shop-page #main,
.shop-single {
	padding: 0 29px;
	box-sizing: border-box;
}

/* Tema doda slikam spodnji rob; v teh sklopih ga ne želimo. */

.shop-card .shop-card__media img,
.shop-single .shop-single__description img,
.shop-gallery .shop-gallery__thumb img,
.shop-gallery .shop-gallery__slide img {
	margin: 0;
	max-width: 100%;
}


/* --- Glava strani --------------------------------------------------------- */

.shop-head {
	margin: 0 0 44px;
	border-bottom: 1px solid #000;
	padding-bottom: 20px;
}

.shop-head__title {
	font-size: 26px;
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 20px;
	padding: 0;
}

.shop-head__intro {
	max-width: 640px;
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.55;
}

.shop-head__intro--wide {
	max-width: 760px;
}

.shop-head__intro p:last-child {
	margin-bottom: 0;
}

.shop-head__intro--term {
	color: #555;
}


/* --- Filtri po kategorijah ------------------------------------------------ */

.shop-nav {
	margin: 0;
}

.shop-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-nav__item {
	display: inline-block;
	margin: 0 4px 4px 0;
}

.shop-nav__item a {
	display: inline-block;
	padding: 3px 7px;
	text-decoration: none;
	color: #000;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	-webkit-transition: background .12s ease, color .12s ease;
	transition: background .12s ease, color .12s ease;
}

.shop-nav__item a:hover {
	background: #e6e6e6;
}

.shop-nav__item.is-active a {
	background: #000;
	color: #fff;
}

/* druga raven – manjša, pisana, kot filtri v arhivu */

.shop-nav__list--sub {
	margin-top: 6px;
}

.shop-nav__list--sub .shop-nav__item a {
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #333;
}

.shop-nav__list--sub .shop-nav__item.is-active a {
	background: #000;
	color: #fff;
}


/* --- Mreža izdelkov ------------------------------------------------------- */

.shop-grid {
	display: -ms-grid;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: 34px;
	grid-row-gap: 54px;
	margin: 0 0 60px;
}

.shop-card {
	float: none;
	margin: 0;
	padding: 0;
	position: relative;
	min-width: 0;
}

.shop-card__link {
	display: block;
	text-decoration: none;
	color: #000;
}

/* Enotno visoko polje za sliko: naslovi se poravnajo ne glede na razmerja
   fotografij (knjige, plakati, nogavice ...). */

.shop-card__media {
	position: relative;
	margin: 0 0 13px;
	padding-top: 118%;
	background: #f2f2f0;
	overflow: hidden;
}

.shop-card .shop-card__media img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	-o-object-fit: contain;
	object-fit: contain;
	-webkit-transition: opacity .18s ease;
	transition: opacity .18s ease;
}

.shop-card__link:hover .shop-card__media img {
	opacity: .82;
}

.shop-card__tag {
	position: absolute;
	top: 0;
	right: 0;
	background: #000;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 7px;
}

.shop-card__label {
	font-size: 13px;
	line-height: 1.3;
	color: #000;
	margin: 0 0 3px;
}

.shop-card__title {
	font-size: 13px;
	line-height: 1.4;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .015em;
	margin: 0;
	padding: 0;
}

.shop-card__link:hover .shop-card__title {
	text-decoration: underline;
}

.shop-card__author {
	font-size: 13px;
	line-height: 1.4;
	color: #666;
	margin-top: 2px;
}

.shop-card__price {
	font-size: 13px;
	line-height: 1.4;
	color: #000;
	margin-top: 5px;
}

.shop-empty {
	margin: 20px 0 60px;
	color: #666;
}

.shop-pagination {
	margin: 0 0 60px;
}

.shop-pagination .page-numbers {
	display: inline-block;
	margin-right: 14px;
	text-decoration: none;
	color: #000;
	font-size: 14px;
}

.shop-pagination .page-numbers.current {
	font-weight: 700;
}

.shop-contact {
	max-width: 640px;
	margin: 0 0 70px;
	padding-top: 22px;
	border-top: 1px solid #000;
	font-size: 14px;
	line-height: 1.55;
}


/* --- Posamezen izdelek ---------------------------------------------------- */

.shop-single .back-button {
	margin-bottom: 14px;
}

.shop-single__wrap {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: 0 0 70px;
}

.shop-single__media {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 60%;
	flex: 0 0 60%;
	max-width: 60%;
	box-sizing: border-box;
	padding-right: 56px;
}

.shop-single__info {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 40%;
	flex: 0 0 40%;
	max-width: 40%;
	box-sizing: border-box;
}

.shop-single__breadcrumb {
	font-size: 13px;
	color: #777;
	margin: 0 0 22px;
}

.shop-single__breadcrumb a {
	color: #777;
	text-decoration: none;
}

.shop-single__breadcrumb a:hover {
	color: #000;
	text-decoration: underline;
}

.shop-single__breadcrumb span {
	margin: 0 5px;
}

.shop-single__label {
	font-size: 14px;
	line-height: 1.3;
	margin: 0 0 5px;
}

.shop-single__title {
	font-size: 25px;
	line-height: 1.2;
	font-weight: 700;
	margin: 0;
	padding: 0;
}

.shop-single__author {
	font-size: 15px;
	color: #666;
	margin: 6px 0 0;
}

.shop-single__price {
	font-size: 17px;
	font-weight: 700;
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid #000;
}

.shop-single__download {
	margin: 16px 0 0;
}

.shop-single__download a {
	display: inline-block;
	border: 1px solid #000;
	padding: 8px 15px;
	text-decoration: none;
	color: #000;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	-webkit-transition: background .12s ease, color .12s ease;
	transition: background .12s ease, color .12s ease;
}

.shop-single__download a:hover {
	background: #000;
	color: #fff;
}

.shop-single__download-icon {
	margin-right: 8px;
}

.shop-single__description {
	font-size: 15px;
	line-height: 1.6;
	margin: 22px 0 0;
}

.shop-single__description p:last-child {
	margin-bottom: 0;
}

.shop-single__description--data {
	font-size: 14px;
	color: #333;
}

.shop-single__specs {
	margin: 24px 0 0;
	padding-top: 18px;
	border-top: 1px solid #ddd;
	font-size: 14px;
	line-height: 1.5;
}

.shop-single__specs dt {
	float: left;
	clear: left;
	width: 120px;
	color: #777;
}

.shop-single__specs dd {
	margin: 0 0 5px 120px;
}

.shop-single__availability {
	margin: 24px 0 0;
	padding: 15px 17px;
	background: #f2f2f0;
	font-size: 14px;
	line-height: 1.55;
}

.shop-single__availability p:last-child {
	margin-bottom: 0;
}

.shop-single__colophon {
	margin: 26px 0 0;
	padding-top: 18px;
	border-top: 1px solid #ddd;
	font-size: 13px;
	line-height: 1.55;
	color: #444;
}

.shop-single__colophon h3 {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin: 0 0 9px;
	padding: 0;
	color: #000;
}

.shop-single__share {
	margin-top: 26px;
}


/* --- Galerija izdelka ----------------------------------------------------- */

.shop-gallery {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
}

.shop-gallery__thumbs {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 72px;
	flex: 0 0 72px;
	margin-right: 14px;
	max-height: 620px;
	overflow-y: auto;
}

.shop-gallery .shop-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 7px;
	border: 1px solid #e0e0e0;
	background: #f2f2f0;
	cursor: pointer;
	opacity: .65;
	border-radius: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	line-height: 0;
	-webkit-transition: opacity .15s ease, border-color .15s ease;
	transition: opacity .15s ease, border-color .15s ease;
}

.shop-gallery .shop-gallery__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.shop-gallery .shop-gallery__thumb:hover {
	opacity: 1;
}

.shop-gallery .shop-gallery__thumb.is-active {
	opacity: 1;
	border-color: #000;
}

.shop-gallery__stage {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
	background: #f2f2f0;
}

.shop-gallery__slide {
	display: none;
	margin: 0;
}

.shop-gallery__slide.is-active {
	display: block;
}

.shop-gallery__slide a {
	display: block;
	cursor: -webkit-zoom-in;
	cursor: zoom-in;
}

.shop-gallery__slide img {
	display: block;
	width: 100%;
	height: auto;
}

.shop-gallery__slide figcaption {
	padding: 9px 2px 0;
	font-size: 12px;
	color: #777;
}


/* --- Sorodni izdelki ------------------------------------------------------ */

.shop-related {
	margin: 0 0 70px;
	padding-top: 26px;
	border-top: 1px solid #000;
}

.shop-related__title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin: 0 0 26px;
	padding: 0;
}


/* --- Katalog iz arhiva v trgovini / dostopnih gradivih ---------------------
   Isti podatki kot pri izdelku, le da stojijo v ozkem stranskem stolpcu
   kataloga, ki je poravnan desno. Zato specifikacije niso v dveh stolpcih,
   ampak druga pod drugo.
   ------------------------------------------------------------------------- */

.catalogue-shop-box {
	margin: 0;
}

/* crto nad podatki prispeva cena; ce cene ni, se opis zacne takoj pod naslovom */

.catalogue-shop-box .shop-single__author {
	margin: 6px 0 0;
}

.catalogue-shop-box .shop-single__price {
	margin-top: 18px;
}

.catalogue-shop-box .shop-single__description,
.catalogue-shop-box .shop-single__colophon,
.catalogue-shop-box .shop-single__availability {
	font-size: 14px;
}

.catalogue-shop-box .shop-single__specs dt {
	float: none;
	clear: none;
	width: auto;
	margin: 0 0 1px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.catalogue-shop-box .shop-single__specs dd {
	margin: 0 0 9px;
}

.catalogue-shop-box .shop-single__specs dd:last-child {
	margin-bottom: 0;
}

.catalogue-shop-box__links {
	margin: 24px 0 0;
	padding-top: 16px;
	border-top: 1px solid #ddd;
}

.catalogue-shop-box__links a {
	display: inline-block;
	margin: 0 0 0 16px;
	font-size: 13px;
	color: #555;
}

.catalogue-shop-box__links a:first-child {
	margin-left: 0;
}

/* galerija kataloga v glavnem stolpcu */

.feat-image.catalogue-gallery {
	text-align: left;
}

.feat-image.catalogue-gallery .shop-gallery__thumbs {
	max-height: none;
}


/* --- Prilagoditve za manjše zaslone --------------------------------------- */

@media only screen and (max-width: 1100px) {
	.shop-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media only screen and (max-width: 804px) {

	.shop-page #main,
	.shop-single {
		padding: 0 20px;
	}

	.shop-head {
		margin-bottom: 32px;
	}

	.shop-head__title {
		font-size: 22px;
	}

	.shop-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-column-gap: 18px;
		grid-row-gap: 34px;
	}

	.shop-single__media,
	.shop-single__info {
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
		padding-right: 0;
	}

	.shop-single__media {
		margin-bottom: 26px;
	}

	.shop-single__title {
		font-size: 21px;
	}

	.shop-gallery {
		display: block;
	}

	.shop-gallery__thumbs {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-wrap: nowrap;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		max-height: none;
		margin: 10px 0 0;
	}

	.shop-gallery .shop-gallery__thumb {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 58px;
		flex: 0 0 58px;
		margin: 0 7px 0 0;
	}
}

@media only screen and (max-width: 420px) {
	.shop-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-column-gap: 14px;
	}
}
