/* Mrežna knjižara (naslovnica) */
.dhk-knjizara {
	--dhk-dark: #0e1111;
	--dhk-dark-hover: #394141;
	--dhk-accent: rgb(163, 178, 178);
	max-width: 1300px;
	margin: 0 auto;
	padding: 40px 15px 20px;
}

.dhk-knjizara__header {
	text-align: center;
	margin-bottom: 30px;
}

.dhk-knjizara__title {
	font-size: 2.2em;
	margin-bottom: 10px;
}

.dhk-knjizara__divider {
	width: 150px;
	height: 8px;
	margin: 0 auto;
	background: var(--dhk-accent);
}

.dhk-knjizara__row {
	margin-bottom: 40px;
}

.dhk-knjizara__row-title {
	font-size: 1.25em;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--dhk-accent);
}

.dhk-knjizara__row-title a {
	color: inherit;
}

.dhk-knjizara__items {
	display: grid;
	grid-template-columns: repeat(var(--dhk-cols, 6), minmax(0, 1fr)) 100px;
	gap: 24px;
	align-items: stretch;
}

.dhk-knjizara__item {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dhk-knjizara__cover {
	display: block;
	aspect-ratio: 2 / 3;
	background: #f3f3f2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dhk-knjizara__cover:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dhk-knjizara__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dhk-knjizara__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-grow: 1;
	margin-top: 12px;
	color: var(--dhk-dark) !important;
	line-height: 1.3;
}

.dhk-knjizara__author {
	font-size: 0.85em;
	opacity: 0.75;
}

.dhk-knjizara__book-title {
	font-weight: bold;
	font-size: 0.95em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dhk-knjizara__meta:hover .dhk-knjizara__book-title {
	text-decoration: underline;
}

/* Gumb "Naruči" (naslovnica i stranice rubrika) */
.dhk-order-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	padding: 7px 10px;
	background: #0e1111;
	color: #fff !important;
	font-size: 0.85em;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.dhk-order-btn:hover,
.dhk-order-btn:focus {
	background: #394141;
}

.dhk-order-btn i {
	font-size: 1.1em;
}

.dhk-order-btn i {
	margin-right: 2px;
}

/* Flatsome u .box-text prepisuje display poveznica */
.box-text a.dhk-order-btn--listing {
	display: inline-flex;
	margin-top: 12px;
	padding: 9px 20px;
	font-size: 0.9em;
}

.dhk-knjizara__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	aspect-ratio: 2 / 3;
	align-self: start;
	width: 100%;
	border: 2px solid var(--dhk-accent);
	color: var(--dhk-dark) !important;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dhk-knjizara__more i {
	font-size: 1.6em;
}

.dhk-knjizara__more:hover,
.dhk-knjizara__more:focus {
	background: var(--dhk-dark);
	border-color: var(--dhk-dark);
	color: #fff !important;
}

/* Tablet i mobitel: vodoravno listanje */
@media (max-width: 849px) {
	.dhk-knjizara__items {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 10px;
		-webkit-overflow-scrolling: touch;
	}

	.dhk-knjizara__item {
		flex: 0 0 150px;
		scroll-snap-align: start;
	}

	.dhk-knjizara__more {
		flex: 0 0 90px;
		scroll-snap-align: start;
	}
}

/* Plutajući gumb za narudžbu na pojedinačnom izdanju */
.dhk-floating-order {
	position: fixed;
	right: 20px;
	top: 50%;
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 10px;
	background: #0e1111;
	color: #fff !important;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transform: translateY(-50%);
	transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.dhk-floating-order:hover,
.dhk-floating-order:focus {
	background: #394141;
}

.dhk-floating-order i {
	font-size: 1.6em;
}

.dhk-floating-order__label {
	font-size: 0.7em;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.dhk-floating-order.is-hidden {
	opacity: 0;
	visibility: hidden;
}

@media (max-width: 549px) {
	.dhk-floating-order {
		top: auto;
		bottom: 80px;
		right: 12px;
		transform: none;
		padding: 10px;
	}
}
