/* Tranou Education – Βιβλία & eduki
   Χρώματα στο ύφος του site: μωβ/ματζέντα διαβάθμιση, πορτοκαλί τόνοι.
   Αλλάξτε τις μεταβλητές παρακάτω για να προσαρμόσετε την παλέτα. */
.trb-wrap {
	--trb-violet: #a93df0;        /* κουμπί "Παίξε και μάθε" */
	--trb-violet-dark: #8a22d4;
	--trb-plum: #6b2a7b;          /* τίτλοι */
	--trb-magenta: #c2358f;
	--trb-orange: #f7931e;        /* κύπελλο */
	--trb-orange-deep: #e8601c;
	--trb-ink: #3a2c45;
	--trb-muted: #7d6f88;
	--trb-line: #ece3f3;
	--trb-lilac: #f6effb;
	--trb-hero: linear-gradient(180deg, #a3724a 0%, #9a5379 42%, #8b2f96 100%);
	--trb-slab: "Roboto Slab", Georgia, serif;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--trb-ink);
	font-size: 1rem;
	line-height: 1.6;
}
.trb-wrap *, .trb-wrap *::before, .trb-wrap *::after { box-sizing: border-box; }
.trb-wrap button { font: inherit; letter-spacing: normal; text-transform: none; }
.trb-wrap svg { flex: none; }

/* ---------- Κεφαλίδα ---------- */
.trb-head { text-align: center; margin: 0 auto 40px; max-width: 760px; }
.trb-wrap .trb-eyebrow {
	margin: 0 0 10px; font-size: .78rem; font-weight: 700;
	letter-spacing: .32em; text-transform: uppercase; color: var(--trb-violet);
}
.trb-wrap .trb-h2 {
	margin: 0; font-family: var(--trb-slab); font-weight: 700;
	font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; color: var(--trb-plum);
}
.trb-squiggle { display: block; color: var(--trb-orange); margin: 14px auto 12px; width: 120px; }
.trb-wrap .trb-sub { margin: 0; color: var(--trb-muted); font-size: .95rem; }

/* ---------- Πλέγμα βιβλίων ---------- */
.trb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 32px;
	margin: 0 0 40px;
}
.trb-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border-radius: 22px; overflow: hidden;
	box-shadow: 0 2px 6px rgba(107, 42, 123, .06), 0 18px 40px -22px rgba(107, 42, 123, .45);
	transition: transform .25s ease, box-shadow .25s ease;
}
.trb-card:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(107, 42, 123, .08), 0 26px 50px -22px rgba(107, 42, 123, .55); }

.trb-media {
	position: relative; padding: 18px 18px 14px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(247, 147, 30, .16), transparent 55%),
		radial-gradient(120% 90% at 0% 100%, rgba(169, 61, 240, .18), transparent 60%),
		var(--trb-lilac);
}
.trb-main {
	display: block; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; cursor: zoom-in;
	aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
}
.trb-main img {
	width: 100%; height: 100%; object-fit: contain; display: block;
	filter: drop-shadow(0 10px 14px rgba(107, 42, 123, .22));
	transition: transform .35s ease;
}
.trb-main:hover img { transform: scale(1.03); }
.trb-badge {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	display: inline-flex; align-items: center; gap: 5px;
	background: linear-gradient(135deg, var(--trb-orange), var(--trb-orange-deep)); color: #fff;
	font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	padding: 6px 12px 6px 10px; border-radius: 999px;
	box-shadow: 0 6px 14px -4px rgba(232, 96, 28, .6);
}
.trb-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.trb-thumb {
	flex: 1 1 0; display: flex; align-items: center; gap: 8px;
	padding: 5px 10px 5px 5px; margin: 0;
	background: rgba(255, 255, 255, .8); border: 2px solid transparent; border-radius: 12px;
	color: var(--trb-muted); font-size: .8rem; cursor: pointer; text-align: left;
	transition: border-color .15s, color .15s, background .15s;
}
.trb-thumb img { width: 42px; height: 32px; object-fit: cover; border-radius: 7px; flex: none; }
.trb-thumb:hover { background: #fff; color: var(--trb-plum); }
.trb-thumb.is-active { background: #fff; border-color: var(--trb-violet); color: var(--trb-plum); font-weight: 700; }

.trb-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.trb-wrap .trb-title {
	margin: 0 0 12px; font-family: var(--trb-slab); font-weight: 700;
	font-size: 1.22rem; line-height: 1.3; color: var(--trb-plum);
}
.trb-price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.trb-now {
	display: inline-block; padding: 3px 14px; border-radius: 999px;
	background: var(--trb-lilac); color: var(--trb-violet-dark);
	font-family: var(--trb-slab); font-weight: 700; font-size: 1.3rem; line-height: 1.5;
}
.is-offer .trb-now { background: linear-gradient(135deg, var(--trb-orange), var(--trb-orange-deep)); color: #fff; }
.trb-was { color: var(--trb-muted); font-size: 1rem; }
.trb-wrap .trb-until {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
	margin: 4px 0 4px; font-size: .82rem; color: var(--trb-orange-deep); font-weight: 700;
}
.trb-wrap .trb-until::before { content: "⏳"; font-size: .9rem; }
.trb-desc { margin-top: 10px; font-size: .94rem; color: #4d4058; position: relative; }
.trb-desc > *:first-child { margin-top: 0; }
.trb-desc > *:last-child { margin-bottom: 0; }
.trb-desc p { margin: 0 0 .6em; }
.trb-desc.is-clamped { max-height: 9.6em; overflow: hidden; }
.trb-desc.is-clamped::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.trb-more {
	align-self: flex-start; margin: 6px 0 0; padding: 0; border: 0; background: none;
	color: var(--trb-violet); font-weight: 700; font-size: .88rem; cursor: pointer;
}
.trb-more::after { content: " ↓"; }
.trb-body .trb-spacer { flex: 1 0 20px; }

.trb-wrap .trb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 4px;
	background: var(--trb-violet); color: #fff !important; text-decoration: none !important;
	font-size: .76rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; line-height: 1.2;
	box-shadow: 0 10px 20px -10px rgba(169, 61, 240, .8);
	transition: background .15s, transform .15s, box-shadow .15s;
}
.trb-body .trb-btn { align-self: stretch; }
.trb-wrap .trb-btn:hover, .trb-wrap .trb-btn:focus-visible {
	background: var(--trb-violet-dark); transform: translateY(-1px);
	box-shadow: 0 14px 24px -10px rgba(138, 34, 212, .85);
}

/* ---------- Υποσημείωση παραγγελιών ---------- */
.trb-order {
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px;
	padding: 22px 26px; margin: 0 0 8px;
	background: #fff; border: 2px dashed #dcc6ee; border-radius: 20px;
}
.trb-order-icon {
	display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
	background: linear-gradient(135deg, var(--trb-orange), var(--trb-orange-deep)); color: #fff;
}
.trb-order-icon svg { width: 26px; height: 26px; }
.trb-order-text { flex: 1 1 300px; }
.trb-wrap .trb-order-title { margin: 0 0 2px; font-family: var(--trb-slab); font-weight: 700; font-size: 1.1rem; color: var(--trb-plum); }
.trb-order-text p:last-child { margin: 0; color: var(--trb-muted); font-size: .94rem; }
.trb-order-links { display: flex; flex-wrap: wrap; gap: 10px; }
.trb-wrap .trb-order-links a {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
	background: var(--trb-lilac); color: var(--trb-plum) !important; text-decoration: none !important;
	font-size: .88rem; font-weight: 700; transition: background .15s, color .15s;
}
.trb-wrap .trb-order-links a:hover { background: var(--trb-violet); color: #fff !important; }

/* ---------- eduki ---------- */
.trb-eduki {
	position: relative; margin: 72px 0 8px; padding: 46px clamp(20px, 4vw, 48px) 40px;
	background: var(--trb-hero); color: #fff; border-radius: 28px; overflow: hidden;
}
.trb-eduki::before {
	content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
	background: radial-gradient(circle, rgba(247, 147, 30, .35), transparent 70%); pointer-events: none;
}
.trb-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; color: rgba(255, 255, 255, .08); pointer-events: none; }
.trb-eduki-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; }
.trb-eduki-head > div { flex: 1 1 340px; }
.trb-eduki .trb-eyebrow { color: #ffd59c; }
.trb-wrap .trb-eduki-title {
	margin: 0 0 8px; font-family: var(--trb-slab); font-weight: 700;
	font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.2; color: #fff;
}
.trb-eduki-head p:last-child { margin: 0; color: rgba(255, 255, 255, .85); }
.trb-wrap .trb-btn-eduki {
	flex: none; background: #fff; color: var(--trb-violet-dark) !important;
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45);
}
.trb-wrap .trb-btn-eduki:hover { background: #fff3e3; color: var(--trb-plum) !important; }

.trb-carousel { position: relative; margin-top: 34px; }
.trb-wrap .trb-car-title {
	margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.trb-car-viewport { position: relative; }
.trb-wrap .trb-car-track {
	display: flex; gap: 20px; margin: 0; padding: 4px 2px 16px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent; -webkit-overflow-scrolling: touch;
}
.trb-slide { flex: 0 0 clamp(220px, 30%, 320px); scroll-snap-align: start; margin: 0; }
.trb-slide > a, .trb-slide > span {
	display: block; height: 100%; padding: 10px 10px 14px; border-radius: 18px;
	background: #fff; color: var(--trb-ink) !important; text-decoration: none !important;
	box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); transition: transform .2s;
}
.trb-slide > a:hover { transform: translateY(-4px); }
.trb-slide-img { display: block; aspect-ratio: 4 / 3; background: var(--trb-lilac); border-radius: 12px; overflow: hidden; }
.trb-slide-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.trb-slide-title { display: block; margin: 12px 4px 0; font-family: var(--trb-slab); font-weight: 700; color: var(--trb-plum); line-height: 1.3; }
.trb-slide-link { display: block; margin: 4px 4px 0; font-size: .82rem; font-weight: 700; color: var(--trb-violet); }
.trb-car-nav {
	position: absolute; top: calc(50% - 30px); z-index: 2; transform: translateY(-50%);
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	border: 0; background: #fff; color: var(--trb-violet-dark);
	font-size: 1.7rem; line-height: 1; cursor: pointer;
	box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5);
	display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.trb-car-nav:hover { background: var(--trb-orange); color: #fff; }
.trb-car-nav[disabled] { opacity: 0; pointer-events: none; }
.trb-prev { left: -18px; }
.trb-next { right: -18px; }

@media (max-width: 640px) {
	.trb-car-nav { display: none; }
	.trb-slide { flex-basis: 78%; }
	.trb-wrap .trb-btn-eduki { width: 100%; text-align: center; letter-spacing: .16em; }
	.trb-order { padding: 20px; }
	.trb-order-links, .trb-wrap .trb-order-links a { width: 100%; }
	.trb-wrap .trb-order-links a { justify-content: center; }
}

/* ---------- Lightbox ---------- */
.trb-lb {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	background: rgba(40, 14, 52, .9); padding: 48px 60px;
}
.trb-lb[hidden] { display: none; }
.trb-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.trb-lb button {
	position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
	width: 46px; height: 46px; border-radius: 50%; font-size: 1.7rem; line-height: 1; padding: 0;
	display: flex; align-items: center; justify-content: center;
}
.trb-lb button:hover { background: #a93df0; }
.trb-lb button[hidden] { display: none; }
.trb-lb-close { top: 14px; right: 14px; }
.trb-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.trb-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.trb-lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #f0e6f6; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
	.trb-wrap *, .trb-lb * { transition: none !important; scroll-behavior: auto !important; }
}
