/* cpapshop: stilurile sectiunii "Vino in magazin" (snippets/custom/cps_stores.html.twig), separate de cps.css
   ca sectiunea sa poata fi publicata singura. Culorile sunt aceleasi ca in cps.css. */

.cps-stores {
	--cps-blue: #1a4b8c;
	--cps-blue-dark: #123a6d;
	--cps-green: #2a9d44;
	--cps-green-text: #1e7a36;
	--cps-green-bg: #e9f6ed;
	--cps-ink: #1f2a37;
	--cps-muted: #5b6573;
	--cps-old: #7a8494;
	--cps-panel: #f5f7fa;
	--cps-line: #e3e8ef;
}

/* =========================================================
   2. "Vino in magazin", home page
   ========================================================= */

/* The page content above already ends with 64px of space, which is the section's top spacing */
.cps-stores { padding: 0 0 64px; background: #fff; font-family: inherit; color: var(--cps-ink); }
.cps-stores__inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; box-sizing: content-box; }
.cps-stores__head { text-align: center; }
/* inline-block shrinks the heading to its text, so the green border under it is exactly as wide as the text */
.cps-stores__heading {
	display: inline-block; margin: 0; padding-bottom: 10px; border-bottom: 3px solid var(--cps-green);
	font-size: 40px; line-height: 1.15; font-weight: 900; letter-spacing: .01em; text-transform: uppercase; color: var(--cps-ink);
}
.cps-stores__lead { margin: 14px auto 40px; text-align: center; font-size: 18px; line-height: 1.45; color: #4b5563; }
.cps-stores__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }

.cps-store {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--cps-line); border-radius: 16px;
	box-shadow: 0 2px 10px rgba(16, 24, 40, .06);
}
.cps-store__media { position: relative; height: auto; aspect-ratio: 4 / 3; background: #eef2f7; }
.cps-store__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cps-store__placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	color: var(--cps-muted); font-size: 14px; font-weight: 700;
}

/* Store photos: swipe or use the arrows; the dots show which photo is in view */
.cps-gallery { position: absolute; inset: 0; }
.cps-gallery__track {
	display: flex; width: 100%; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.cps-gallery__track::-webkit-scrollbar { display: none; }
.cps-store__media .cps-gallery__track img { position: static; flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.cps-gallery__btn {
	position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .92); color: var(--cps-blue); box-shadow: 0 2px 10px rgba(16, 24, 40, .2);
	transition: opacity .2s, background .2s;
}
.cps-gallery__btn[hidden] { display: none; }
.cps-gallery__btn:hover { background: #fff; }
.cps-gallery__btn:disabled { opacity: 0; pointer-events: none; }
.cps-gallery__btn--prev { left: 12px; }
.cps-gallery__btn--next { right: 12px; }
.cps-gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.cps-gallery__dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); transition: width .25s, background .25s; }
.cps-gallery__dot.is-on { width: 20px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .cps-gallery__track { scroll-behavior: auto; } }
@media (hover: none) { .cps-gallery__btn { width: 34px; height: 34px; } }

.cps-store__body { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.cps-store__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cps-store__name { margin: 0; font-size: 22px; font-weight: 900; color: var(--cps-ink); }
.cps-store__status {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
	font-size: 13px; font-weight: 700; background: #eef2f7; color: var(--cps-muted);
}
.cps-store__status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cps-store__status--open { background: var(--cps-green-bg); color: var(--cps-green-text); }
.cps-store__status--open::before { background: var(--cps-green); }

.cps-store__rows { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.cps-store__row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.cps-store__row > svg { margin-top: 2px; color: var(--cps-muted); }
.cps-store__row dt { margin: 0; font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cps-muted); }
.cps-store__row dd { margin: 2px 0 0; font-size: 17px; line-height: 1.2; color: var(--cps-ink); }
.cps-store__row dd a { display: inline-block; font-weight: 700; color: var(--cps-blue); text-decoration: none; }
.cps-store__row dd a:hover { color: var(--cps-blue-dark); }

.cps-store__actions { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.cps-btn {
	box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none;
}
.cps-btn--primary { flex: 1 1 auto; background: var(--cps-blue); color: #fff; }
.cps-btn--primary:hover, .cps-btn--primary:focus-visible { background: var(--cps-blue-dark); color: #fff; }
.cps-btn--call {
	flex: 0 0 52px; width: 52px; border-radius: 50%;
	border: 2px solid var(--cps-blue); background: #fff; color: var(--cps-blue);
}
.cps-btn--call:hover, .cps-btn--call:focus-visible { background: #eef3fa; color: var(--cps-blue); }

@media (max-width: 767.98px) {
	.cps-stores { padding: 0 0 40px; margin-top: -24px; }
	.cps-stores__inner { padding: 0 16px; }
	.cps-stores__heading { padding-bottom: 8px; font-size: 28px; }
	.cps-stores__lead { margin: 12px auto 28px; font-size: 15px; }
	.cps-stores__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.cps-store { border-radius: 14px; }
	.cps-store__placeholder { gap: 6px; font-size: 13px; }
	.cps-store__placeholder svg { width: 28px; height: 28px; }
	.cps-store__body { gap: 16px; padding: 20px; }
	.cps-store__head { flex-direction: column; align-items: flex-start; }
	.cps-store__name { font-size: 20px; }
	.cps-store__status { padding: 4px 10px; font-size: 12px; }
	.cps-store__rows { gap: 12px; }
	.cps-store__row dt { font-size: 11px; }
	.cps-store__row dd { font-size: 15px; }
	.cps-store__actions { gap: 10px; padding-top: 0; }
	.cps-btn { height: 50px; font-size: 15px; gap: 8px; }
	.cps-btn--call { flex-basis: 50px; width: 50px; }
}
