/* CouponCloudy Stores – A-Z directory. All selectors are prefixed .cc-az- to avoid theme/Elementor clashes. */
.cc-az-directory,
.cc-az-directory-wrap,
.cc-az-nav {
	--cc-navy: #001234;
	--cc-blue-d: #0141A2;
	--cc-blue: #0278F4;
	--cc-sky: #1FA5FC;
	--cc-ink: #001234;
	--cc-muted: #5b6b86;
	--cc-line: #dbe6f6;
	--cc-soft: #f3f8ff;
	--cc-head: "Outfit", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--cc-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--cc-body);
	box-sizing: border-box;
}
.cc-az-directory *,
.cc-az-nav * { box-sizing: border-box; }
.cc-az-directory,
.cc-az-directory-wrap { width: 100%; }

/* Title */
.cc-az-directory .cc-az-title {
	margin: 0 0 24px;
	font-family: var(--cc-head);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--cc-navy);
}

/* ------------------------------------------------------------ A-Z bar */
.cc-az-nav {
	position: relative;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin: 0 0 28px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(1, 65, 162, .08);
}
.cc-az-nav--sticky {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.cc-az-nav .cc-az-nav__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 38px;
	padding: 0 9px;
	border-radius: 10px;
	font-family: var(--cc-head);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	color: var(--cc-navy);
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.cc-az-nav .cc-az-nav__item:hover {
	background: var(--cc-soft);
	color: var(--cc-blue);
}
.cc-az-nav .cc-az-nav__item.is-active,
.cc-az-nav .cc-az-nav__item.is-active:hover {
	background: linear-gradient(135deg, var(--cc-blue-d), var(--cc-blue));
	color: #fff;
	box-shadow: 0 6px 14px rgba(2, 120, 244, .28);
}
.cc-az-nav .cc-az-nav__item:focus-visible {
	outline: 2px solid var(--cc-sky);
	outline-offset: 2px;
}

/* ------------------------------------------------------------ Sections */
.cc-az-directory .cc-az-section {
	scroll-margin-top: 130px;
	margin: 0 0 32px;
	padding: 24px;
	background: var(--cc-soft);
	border: 1px solid #e3edfb;
	border-radius: 20px;
}
.cc-az-directory .cc-az-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
}
.cc-az-directory .cc-az-section__head h1,
.cc-az-directory .cc-az-section__head h2 {
	margin: 0;
	padding: 0;
	font-family: var(--cc-head);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.1;
	color: var(--cc-navy);
}
.cc-az-directory .cc-az-section__head h1::after,
.cc-az-directory .cc-az-section__head h2::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-top: 8px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--cc-blue), var(--cc-sky));
}
.cc-az-directory .cc-az-section__head span {
	font-size: 13px;
	font-weight: 500;
	color: var(--cc-muted);
}

/* ---------------------------------------------------------------- Grid */
.cc-az-directory .cc-az-grid { display: grid; gap: 12px; }
.cc-az-grid--1 { grid-template-columns: 1fr; }
.cc-az-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-az-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-az-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-az-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cc-az-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.cc-az-directory .cc-az-card {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	min-height: 84px;
	padding: 12px 16px 12px 12px;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 14px;
	color: inherit;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cc-az-directory .cc-az-card:hover {
	border-color: var(--cc-sky);
	box-shadow: 0 10px 24px rgba(2, 120, 244, .13);
	transform: translateY(-2px);
}
.cc-az-directory .cc-az-card:focus-visible {
	outline: 2px solid var(--cc-blue);
	outline-offset: 2px;
}
.cc-az-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 6px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e6eefb;
	border-radius: 12px;
}
.cc-az-directory .cc-az-logo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
	border: 0;
	box-shadow: none;
}
.cc-az-directory .cc-az-logo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(1, 65, 162, .10), rgba(31, 165, 252, .18));
	color: var(--cc-blue-d);
	font-family: var(--cc-head);
	font-weight: 700;
	font-size: 22px;
}
.cc-az-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-az-directory .cc-az-card__name {
	overflow: hidden;
	font-family: var(--cc-head);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.25;
	color: var(--cc-navy);
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cc-az-directory .cc-az-card__count {
	font-size: 13px;
	line-height: 1.3;
	color: var(--cc-muted);
}
.cc-az-directory .cc-az-card:hover .cc-az-card__name { color: var(--cc-blue); }

/* ------------------------------------------------------------ Show more */
.cc-az-more-wrap { display: flex; justify-content: flex-end; margin-top: 14px; }
.cc-az-directory .cc-az-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	color: var(--cc-blue-d);
	cursor: pointer;
	font-family: var(--cc-head);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cc-az-directory .cc-az-more:hover {
	background: var(--cc-blue);
	border-color: var(--cc-blue);
	color: #fff;
}
.cc-az-directory .cc-az-more:focus-visible { outline: 2px solid var(--cc-sky); outline-offset: 2px; }
.cc-az-directory .cc-az-more.is-loading { opacity: .6; pointer-events: none; }

/* Letter pages (/stores/b/) */
.cc-az-virtual-page .cc-az-virtual-inner { width: min(1180px, calc(100% - 32px)); margin: 40px auto; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
	.cc-az-grid--5, .cc-az-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cc-az-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.cc-az-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* One scrollable row so 27 letters never wrap into a tall block. */
	.cc-az-nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.cc-az-nav::-webkit-scrollbar { display: none; }
	.cc-az-nav .cc-az-nav__item { flex: 0 0 auto; }
}
@media (max-width: 650px) {
	.cc-az-directory .cc-az-section { padding: 14px; margin-bottom: 22px; border-radius: 16px; }
	.cc-az-grid--2, .cc-az-grid--3, .cc-az-grid--4, .cc-az-grid--5, .cc-az-grid--6 { grid-template-columns: 1fr; }
	.cc-az-directory .cc-az-card { min-height: 76px; }
	.cc-az-card__logo { flex-basis: 56px; width: 56px; height: 56px; }
	.cc-az-directory .cc-az-section__head h1,
	.cc-az-directory .cc-az-section__head h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.cc-az-nav .cc-az-nav__item, .cc-az-directory .cc-az-card, .cc-az-directory .cc-az-more { transition: none; }
	.cc-az-directory .cc-az-card:hover { transform: none; }
}
