/**
 * Site chrome and shared components.
 *
 * Every measurement here is taken from the corresponding React component so the rendered
 * output matches the original front end.
 */

/* -------------------------------------------------------------------------
 * Scroll progress bar — ScrollProgress.jsx
 * ---------------------------------------------------------------------- */

.zz-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-red), var(--gold));
	transform: scaleX(0);
	transform-origin: 0%;
	z-index: 1001;
}

/* -------------------------------------------------------------------------
 * Cursor glow — CustomCursor.jsx
 * ---------------------------------------------------------------------- */

.zz-cursor {
	position: fixed;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(192, 57, 43, 0.024) 0%, rgba(212, 175, 55, 0.012) 60%, transparent 100%);
	pointer-events: none;
	z-index: 9999;
	left: 0;
	top: 0;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity 0.2s ease;
}

.zz-cursor.is-visible {
	opacity: 0.6;
}

@media (max-width: 768px) {
	.zz-cursor {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Navigation — Navbar.jsx
 * ---------------------------------------------------------------------- */

.zz-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0 var(--page-gutter);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	transition: all 0.4s ease;
	animation: zz-nav-in 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes zz-nav-in {
	from {
		transform: translateY(-100px);
	}

	to {
		transform: translateY(0);
	}
}

.zz-nav__inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-height);
}

.zz-nav__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.zz-nav__brand:hover {
	transform: scale(1.02);
}

.zz-nav__brand:active {
	transform: scale(0.98);
}

.zz-nav__logo {
	height: 50px;
	width: auto;
	object-fit: contain;
	display: block;
}

.zz-nav__tagline {
	font-size: 10px;
	letter-spacing: 2.5px;
	margin-top: 4px;
	color: var(--muted);
	text-transform: uppercase;
	font-weight: 500;
}

.zz-nav__desktop {
	display: flex;
	gap: 36px;
	align-items: center;
}

.zz-nav__list {
	display: flex;
	gap: 36px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zz-nav__list li {
	animation: zz-nav-item-in 0.4s ease both;
}

.zz-nav__list li:nth-child(1) { animation-delay: 0s; }
.zz-nav__list li:nth-child(2) { animation-delay: 0.1s; }
.zz-nav__list li:nth-child(3) { animation-delay: 0.2s; }
.zz-nav__list li:nth-child(4) { animation-delay: 0.3s; }
.zz-nav__list li:nth-child(5) { animation-delay: 0.4s; }
.zz-nav__list li:nth-child(6) { animation-delay: 0.5s; }
.zz-nav__list li:nth-child(7) { animation-delay: 0.6s; }
.zz-nav__list li:nth-child(8) { animation-delay: 0.7s; }

@keyframes zz-nav-item-in {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.zz-nav__list .nav-link {
	font-size: 17px;
	font-weight: 500;
	color: var(--charcoal);
}

.zz-nav__list .nav-link.active {
	color: var(--primary-red);
	font-weight: 600;
}

.zz-nav__cta {
	padding: 10px 22px;
	font-size: 13px;
	background: var(--deep-red);
	flex-shrink: 0;
}

.zz-nav__mobile-actions {
	display: none;
	align-items: center;
	gap: 12px;
}

.zz-nav__mobile-cta {
	padding: 6px 14px;
	font-size: 12px;
	background: var(--primary-red);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	font-family: 'Poppins', sans-serif;
}

.zz-nav__toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: var(--charcoal);
	font-family: inherit;
}

.zz-nav__toggle-close {
	display: none;
}

.zz-nav__toggle[aria-expanded="true"] .zz-nav__toggle-open {
	display: none;
}

.zz-nav__toggle[aria-expanded="true"] .zz-nav__toggle-close {
	display: inline;
}

.zz-nav__mobile {
	background: rgba(255, 255, 255, 0.98);
	padding: 20px var(--page-gutter);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0 0 20px 20px;
	margin: 0 calc(var(--page-gutter) * -1);
	overflow: hidden;
	animation: zz-mobile-menu-in 0.3s ease both;
}

@keyframes zz-mobile-menu-in {
	from {
		opacity: 0;
		max-height: 0;
	}

	to {
		opacity: 1;
		max-height: 70vh;
	}
}

.zz-nav__mobile-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zz-nav__mobile-link {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	cursor: pointer;
	font-size: 17px;
	font-weight: 500;
	color: var(--charcoal);
	text-decoration: none;
}

.zz-nav__mobile-link.is-active {
	color: var(--primary-red);
}

/* -------------------------------------------------------------------------
 * Breadcrumbs — Breadcrumbs.jsx
 * ---------------------------------------------------------------------- */

.zz-breadcrumbs {
	padding: 12px var(--page-gutter);
	background: rgba(255, 255, 255, 0.95);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	position: sticky;
	top: var(--nav-height);
	z-index: 99;
	backdrop-filter: blur(10px);
}

.zz-breadcrumbs__inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
}

.zz-breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.zz-breadcrumbs__sep {
	color: var(--muted);
	font-size: 12px;
}

.zz-breadcrumbs__current {
	color: var(--primary-red);
	font-weight: 600;
	font-size: 13px;
}

.zz-breadcrumbs__link {
	color: var(--muted);
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s;
}

.zz-breadcrumbs__link:hover {
	color: var(--primary-red);
}

@media (max-width: 768px) {
	.desktop-breadcrumbs {
		display: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Footer — Footer.jsx
 * ---------------------------------------------------------------------- */

.zz-footer {
	background: var(--charcoal);
	color: #fff;
	padding: 60px var(--page-gutter) 32px;
}

.zz-footer__inner {
	max-width: var(--content-max);
	margin: 0 auto;
}

.zz-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 50px;
}

.zz-footer__logo {
	height: 50px;
	width: auto;
	object-fit: contain;
	display: block;
}

.zz-footer__tagline {
	font-size: 10px;
	letter-spacing: 2.5px;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	margin-top: 6px;
	font-weight: 500;
	margin-bottom: 16px;
}

.zz-footer__blurb {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.8;
	max-width: 260px;
}

.zz-footer__col-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 18px;
}

.zz-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zz-footer__links li {
	margin-bottom: 10px;
	/* The size must sit on the item, not just the link, or the 16px strut sets the line box. */
	font-size: 13px;
}

.zz-footer__links a {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.zz-footer__links a:hover {
	color: var(--gold);
}

.zz-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.zz-footer__copy,
.zz-footer__licence {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35);
}

.zz-footer__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 20px;
}

.zz-footer__credit {
	font-size: 11px;
	color: #fff;
	font-weight: 500;
	cursor: pointer;
	opacity: 0.8;
	text-decoration: none;
	transition: all 0.2s ease;
}

.zz-footer__credit span {
	font-weight: 600;
}

.zz-footer__credit:hover {
	color: var(--gold);
	opacity: 1;
	transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
 * Floating actions — WhatsAppButton.jsx and BackToTop.jsx
 * ---------------------------------------------------------------------- */

.zz-whatsapp {
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 55px;
	height: 55px;
	background-color: #25D366;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	z-index: 998;
	cursor: pointer;
	text-decoration: none;
	animation: zz-pop-in 0.3s ease both;
	transition: transform 0.2s ease;
}

.zz-whatsapp:hover {
	transform: scale(1.1);
}

.zz-whatsapp:active {
	transform: scale(0.9);
}

@keyframes zz-pop-in {
	from {
		opacity: 0;
		transform: scale(0);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.zz-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--primary-red);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 998;
	font-size: 20px;
	opacity: 0;
	transform: scale(0);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.zz-to-top.is-visible {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.zz-to-top.is-visible:hover {
	transform: scale(1.1);
	background-color: var(--gold);
}

.zz-to-top.is-visible:active {
	transform: scale(0.9);
}

/* -------------------------------------------------------------------------
 * Star rating — StarRating.jsx
 * ---------------------------------------------------------------------- */

.zz-stars {
	display: flex;
	gap: 2px;
}

.zz-stars__star {
	color: var(--gold);
	font-size: 14px;
	animation: zz-pop-in 0.3s ease both;
	animation-delay: var(--zz-star-delay, 0s);
}

/* -------------------------------------------------------------------------
 * Product card and grid — ProductsGrid.jsx
 * ---------------------------------------------------------------------- */

.zz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 40px;
}

.zz-card {
	background: var(--white);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.04);
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
}

.zz-card.is-revealed {
	transition: opacity var(--reveal-duration) var(--ease-out-soft) var(--zz-reveal-delay, 0s),
		transform 0.25s ease-out;
}

.zz-card:hover {
	transform: translateY(-8px) scale(1.02);
}

.zz-card__media {
	height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.zz-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.zz-card:hover .zz-card__img {
	transform: scale(1.05);
}

.zz-card__emoji {
	font-size: 80px;
}

.zz-card__body {
	padding: 24px 24px 28px;
}

.zz-card__eyebrow {
	font-size: 12px;
	color: var(--primary-red);
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.zz-card__title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--charcoal);
}

.zz-card__desc {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: 18px;
}

.zz-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.zz-card__pill {
	font-size: 12px;
	color: var(--primary-red);
	font-weight: 600;
	background: rgba(192, 57, 43, 0.03);
	padding: 4px 12px;
	border-radius: 50px;
}

.zz-card__details {
	font-size: 14px;
	color: var(--primary-red);
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.zz-card:hover .zz-card__details {
	transform: translateX(5px);
}

/* Empty state */
.zz-empty {
	text-align: center;
	padding: 60px 20px;
}

.zz-empty__icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.zz-empty__title {
	font-size: 24px;
	color: var(--charcoal);
	margin-bottom: 8px;
}

.zz-empty__text {
	font-size: 14px;
	color: var(--muted);
}
