/*
 * AnnGhar UI — Grids, Lists & Timeline
 * ------------------------------------------------------------------
 * One generic .ag-grid component with modifiers, replacing what used
 * to be four separately-defined near-identical grids (.ag-stats,
 * .ag-widgets, .ag-cards-grid, .ag-address-grid) across two CSS
 * systems. Every grid on every page — Dashboard stats, dashboard
 * widgets, coupon/tier/address cards, the landing page's card
 * sections — is one of these three modifiers.
 */

.ag-grid {
	display: grid;
	gap: 20px;
}

.ag-grid--stats {
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: var(--ag-gap);
}

.ag-grid--widgets {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ag-grid--cards {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ag-grid--3col {
	grid-template-columns: repeat(3, 1fr);
}

/* Split: the My Rewards / dashboard "main + sidebar" content layout —
   a wide main column of section cards next to a narrower stack of
   secondary panels. Collapses to a single column in responsive.css. */

.ag-grid--split {
	grid-template-columns: 2fr 1fr;
	align-items: start;
}

.ag-grid--split__col {
	display: flex;
	flex-direction: column;
	gap: var(--ag-gap);
	min-width: 0;
}

/* List rows inside a card body (recent orders, coupon summaries,
   referral counters, FAQ-free key/value pairs). */

.ag-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ag-list__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13.5px;
	color: var(--ag-text);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ag-border);
}

.ag-list__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ag-list--plain .ag-list__row {
	border-bottom: none;
	padding-bottom: 0;
}

/* Checklist — bulleted with a check icon (membership/tier benefits) */

.ag-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ag-checklist li {
	padding-left: 20px;
	position: relative;
	font-size: 13.5px;
	color: var(--ag-text);
}

/* Timeline — order fulfillment progress */

.ag-timeline {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	margin: 32px 0 40px;
	position: relative;
}

.ag-timeline__step {
	flex: 1;
	text-align: center;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.ag-timeline__step::before {
	content: "";
	position: absolute;
	top: 18px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: var(--ag-border);
	z-index: 0;
}

.ag-timeline__step:first-child::before {
	display: none;
}

.ag-timeline__step.is-complete::before {
	background: var(--ag-primary);
}

.ag-timeline__dot {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ag-white);
	border: 3px solid var(--ag-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ag-muted);
	position: relative;
	z-index: 1;
	transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

.ag-timeline__step.is-complete .ag-timeline__dot {
	background: var(--ag-primary);
	border-color: var(--ag-primary);
	color: var(--ag-white);
}

.ag-timeline__step.is-current .ag-timeline__dot {
	border-color: var(--ag-gold);
	color: var(--ag-gold);
	animation: ag-pulse 1.8s ease-in-out infinite;
}

.ag-timeline__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ag-muted);
}

.ag-timeline__step.is-complete .ag-timeline__label,
.ag-timeline__step.is-current .ag-timeline__label {
	color: var(--ag-primary-dark);
}

/* Steps component (marketing "how it works" — visually distinct from
   the order timeline, but shares the same numbered-circle idea). */

.ag-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ag-steps__item {
	text-align: center;
	padding: 24px;
	background: var(--ag-cream);
	border-radius: var(--ag-radius);
}

.ag-steps__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ag-primary);
	color: var(--ag-white);
	font-weight: 700;
	margin-bottom: 12px;
}
