/**
 * Polat Kuyumculuk — reusable component styles.
 * Loaded globally so components can be reused on any page/template.
 */

/* ===== Base brand typography on the front of site ===== */
body {
	font-family: var(--polat-font-sans);
	color: var(--polat-ink);
}

.polat-gold-text {
	background: var(--polat-gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

::selection {
	background: var(--polat-gold);
	color: #fff;
}

/* ===== Keyframes ===== */
@keyframes polat-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@keyframes polat-shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}
@keyframes polat-floaty {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
@keyframes polat-pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes polat-ann-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===== Shared shell container ===== */
.polat-shell {
	width: min(calc(100% - 2.5rem), var(--polat-shell));
	margin-inline: auto;
}

/* ===== Buttons ===== */
.polat-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 40px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-position 0.6s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.polat-btn--gold {
	background: var(--polat-cta-grad);
	background-size: 200% auto;
	color: #1a1408;
}
.polat-btn--gold:hover {
	background-position: right center;
	color: #1a1408;
}

.polat-btn--light {
	background: #fff;
	color: var(--polat-night-2);
}
.polat-btn--light:hover {
	color: var(--polat-night-2);
	transform: translateY(-1px);
}

.polat-btn--dark {
	background: var(--polat-night-2);
	color: var(--polat-gold-light);
}
.polat-btn--dark:hover {
	color: var(--polat-gold-light);
	transform: translateY(-1px);
}

.polat-btn--ghost-light {
	padding: 17px 4px;
	border-radius: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-weight: 500;
}
.polat-btn--ghost-light:hover {
	border-color: var(--polat-gold);
	color: #fff;
}

.polat-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.polat-btn--ghost-light .polat-btn__icon {
	width: 30px;
	height: 30px;
	border: 1px solid var(--polat-gold);
	border-radius: 50%;
}

/* ===== Image slot ===== */
.polat-image-slot {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #1c1813, #0c0a08);
	isolation: isolate;
}
.polat-image-slot--circle {
	border-radius: 50%;
}
.polat-image-slot__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.polat-image-slot--contain .polat-image-slot__img {
	object-fit: contain;
}
.polat-image-slot.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}
.polat-image-slot__shimmer {
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, #16130f 30%, #221d16 50%, #16130f 70%);
	background-size: 200% 100%;
	animation: polat-shimmer 2.6s linear infinite;
	z-index: -1;
}
.polat-image-slot__label {
	max-width: 78%;
	padding: 10px 14px;
	color: var(--polat-ink-faint);
	font-size: 11.5px;
	letter-spacing: 0.5px;
	text-align: center;
	line-height: 1.5;
}

/* ===== Luxury heading ===== */
.lux-heading--center {
	text-align: center;
	margin-inline: auto;
}
.lux-heading__eyebrow {
	margin-bottom: 16px;
	color: var(--polat-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 4px;
	text-transform: uppercase;
}
.lux-heading__title {
	margin: 0;
	font-family: var(--polat-font-serif);
	font-weight: 500;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.5px;
	color: var(--polat-ink);
}
.lux-heading__title em,
.lux-heading__title i {
	font-style: italic;
}
.lux-heading__text {
	margin: 18px 0 0;
	max-width: 440px;
	color: var(--polat-ink-mute);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.75;
}
.lux-heading--center .lux-heading__text {
	margin-inline: auto;
}
.lux-heading--light .lux-heading__title {
	color: #fff;
}
.lux-heading--light .lux-heading__text {
	color: var(--polat-ink-light);
}

/* ===== Product card ===== */
.product-card {
	flex: none;
	width: 280px;
}
.product-card__media {
	position: relative;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--polat-line);
}
.product-card__media-link {
	display: block;
}
.product-card__media .polat-image-slot {
	display: block;
	width: 100%;
	aspect-ratio: 1;
}
.product-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 10px;
	border-radius: 2px;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.product-card__fav {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(6px);
	color: var(--polat-ink-soft);
	transition: transform 0.2s ease;
}
.product-card__fav:hover {
	transform: scale(1.12);
}
.product-card__fav[aria-pressed="true"] svg {
	fill: var(--polat-gold);
	stroke: var(--polat-gold);
}
.product-card__body {
	padding: 18px 4px 0;
}
.product-card__cat {
	margin: 0 0 7px;
	color: var(--polat-ink-light);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.product-card__name {
	margin: 0 0 10px;
	font-family: var(--polat-font-serif);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--polat-ink);
}
.product-card__name a {
	text-decoration: none;
	color: inherit;
}
.product-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.product-card__price {
	font-size: 16px;
	font-weight: 600;
	color: var(--polat-ink);
}
.product-card__add {
	padding: 4px 0;
	border: none;
	border-bottom: 1px solid transparent;
	background: none;
	color: var(--polat-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	transition: border-color 0.25s ease;
}
.product-card__add:hover {
	border-color: var(--polat-gold);
}

/* ===== Category card (bento) ===== */
.category-card {
	position: relative;
	display: block;
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	min-height: 300px;
}
.category-card--lg {
	grid-column: span 2;
	grid-row: span 2;
}
.category-card__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.category-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 9, 7, 0.62), transparent 60%);
}
.category-card--lg .category-card__scrim {
	background: linear-gradient(0deg, rgba(10, 9, 7, 0.72), transparent 55%);
}
.category-card__caption {
	position: absolute;
	left: 22px;
	bottom: 20px;
	color: #fff;
}
.category-card--lg .category-card__caption {
	left: 30px;
	bottom: 28px;
}
.category-card__eyebrow {
	margin: 0 0 8px;
	color: var(--polat-gold-light);
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
}
.category-card__title {
	font-family: var(--polat-font-serif);
	font-size: 27px;
	font-weight: 500;
	line-height: 1;
}
.category-card--lg .category-card__title {
	font-size: 40px;
}
.category-card__meta {
	margin-top: 8px;
	color: var(--polat-dark-text);
	font-size: 12px;
	letter-spacing: 1px;
}

/* Invest variant */
.category-card--invest {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 22px;
	background: linear-gradient(135deg, #1c1813, #2a2419);
	border: 1px solid var(--polat-line-gold);
}
.category-card__badge {
	align-self: flex-end;
	padding: 4px 9px;
	border-radius: 2px;
	background: var(--polat-gold-light);
	color: var(--polat-night);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.category-card--invest .category-card__caption {
	position: static;
}
.category-card__title--gold {
	background: var(--polat-gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.category-card--invest .category-card__meta {
	color: var(--polat-ink-faint);
}

/* ===== Trust item ===== */
.trust-item {
	display: flex;
	align-items: center;
	gap: 13px;
	flex: 1;
	min-width: 210px;
}
.trust-item__icon {
	flex: none;
	color: var(--polat-gold);
	display: inline-flex;
}
.trust-item__title {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--polat-ink);
}
.trust-item__sub {
	margin-top: 2px;
	font-size: 11.5px;
	color: var(--polat-ink-faint);
}

/* ===== Stat ===== */
.polat-stat__value {
	font-family: var(--polat-font-serif);
	font-size: 38px;
	font-weight: 600;
	line-height: 1;
	color: var(--polat-ink);
}
.polat-stat__label {
	margin-top: 6px;
	font-size: 12px;
	letter-spacing: 0.5px;
	color: var(--polat-ink-faint);
}
.polat-stat--light .polat-stat__value {
	color: #fff;
}
.polat-stat--light .polat-stat__label {
	color: var(--polat-ink-faint);
}

/* ===== Global toast ===== */
.polat-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 200;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - 2.5rem);
	padding: 15px 26px;
	background: var(--polat-night-2);
	color: #fff;
	border: 1px solid var(--polat-line-dark);
	border-radius: 5px;
	box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.5);
	font-size: 13.5px;
	transform: translateX(-50%) translateY(20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.polat-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.polat-toast__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: none;
	border-radius: 50%;
	background: var(--polat-gold);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.polat-image-slot__shimmer,
	[style*="polat-pulse-dot"],
	[style*="polat-floaty"],
	[style*="polat-marquee"] {
		animation: none !important;
	}
}
