/* ==========================================================
   Shared components — buttons, badges, forms, section headers
   ========================================================== */

/* --- Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-sm);
	font-family: var(--f-body);
	font-weight: 700;
	font-size: var(--fs-sm);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: none;
	border-radius: var(--r-md);
	cursor: pointer;
	transition:
		background-color var(--dur-normal) var(--ease-out),
		color var(--dur-normal) var(--ease-out),
		transform var(--dur-normal) var(--ease-out),
		box-shadow var(--dur-normal) var(--ease-out);
}

.btn--primary {
	padding: 0.875rem 2.25rem;
	background: var(--c-text);
	color: var(--c-white);
}

.btn--primary:hover {
	background: var(--c-accent);
	transform: translateY(-2px);
	box-shadow: var(--sh-lg);
}

.btn--secondary {
	padding: 0.75rem 2rem;
	background: transparent;
	color: var(--c-text);
	box-shadow: inset 0 0 0 1.5px var(--c-text);
}

.btn--secondary:hover {
	background: var(--c-text);
	color: var(--c-white);
	transform: translateY(-2px);
}

.btn--accent {
	padding: 0.875rem 2.25rem;
	background: var(--c-accent);
	color: var(--c-white);
}

.btn--accent:hover {
	background: var(--c-accent-hover);
	transform: translateY(-2px);
	box-shadow: var(--sh-lg);
}

.btn--sm {
	padding: 0.5rem 1.25rem;
	font-size: var(--fs-xs);
}

/* --- Badges --- */
.badge {
	display: inline-block;
	font-family: var(--f-body);
	font-weight: 700;
	font-size: var(--fs-xs);
	letter-spacing: 0.03em;
	padding: 0.25rem 0.75rem;
	border-radius: var(--r-full);
	line-height: 1.4;
}

.badge--sale {
	background: var(--c-accent);
	color: var(--c-white);
}

.badge--new {
	background: var(--c-gold);
	color: var(--c-text);
}

/* --- Section header --- */
.section-header {
	text-align: center;
	margin-bottom: var(--sp-3xl);
}

.section-header__label {
	display: block;
	font-family: var(--f-accent);
	font-style: italic;
	font-size: var(--fs-lg);
	color: var(--c-text-muted);
	margin-bottom: var(--sp-sm);
	letter-spacing: 0.1em;
}

.section-header__title {
	font-family: var(--f-display);
	font-size: var(--fs-3xl);
	font-weight: 400;
	margin-bottom: var(--sp-md);
}

.section-header__line {
	width: 50px;
	height: 2px;
	background: var(--c-gold-dark);
	margin-inline: auto;
	border-radius: var(--r-full);
}

/* --- Form inputs --- */
.form-input {
	font-family: var(--f-body);
	font-size: var(--fs-base);
	color: var(--c-text);
	background: var(--c-white);
	border: 1.5px solid var(--c-border);
	border-radius: var(--r-md);
	padding: 0.75rem 1rem;
	width: 100%;
	transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-input:focus {
	outline: none;
	border-color: var(--c-gold-dark);
	box-shadow: 0 0 0 3px var(--c-gold-light);
}

.form-input::placeholder {
	color: var(--c-text-muted);
}

/* --- Breadcrumbs --- */
.miral-breadcrumb {
	font-family: var(--f-body);
	font-size: var(--fs-sm);
	color: var(--c-text-muted);
	padding: var(--sp-lg) 0;
}

.miral-breadcrumb a {
	color: var(--c-text-muted);
	transition: color var(--dur-fast);
}

.miral-breadcrumb a:hover {
	color: var(--c-accent);
}

.breadcrumb__sep {
	margin-inline: 0.5rem;
	opacity: 0.5;
}

/* --- Price display --- */
.price {
	font-family: var(--f-accent);
	font-weight: 600;
	font-size: var(--fs-lg);
	color: var(--c-text);
}

.price del {
	color: var(--c-text-muted);
	font-weight: 400;
	margin-right: 0.5em;
}

.price ins {
	text-decoration: none;
	color: var(--c-accent);
}

/* ---------------------------------------------------------------
   Product Card (shared between homepage and shop)
   ------------------------------------------------------------- */
.product-card__link {
	display: block;
}

.product-card__image-wrap {
	position: relative;
	border-radius: var(--r-md);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--c-ivory);
}

.product-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-card__image-wrap img {
	transform: scale(1.06);
}

/* Hide gallery hover image — we use zoom instead of crossfade */
.product-card__hover-img {
	display: none;
}

/* Badges */
.product-card__image-wrap .badge {
	position: absolute;
	top: var(--sp-md);
	z-index: 2;
}

.product-card__image-wrap .badge--sale {
	left: var(--sp-md);
}

.product-card__image-wrap .badge--new {
	right: var(--sp-md);
}

/* Info */
.product-card__info {
	padding-top: var(--sp-md);
}

.product-card__cat {
	display: block;
	font-family: var(--f-accent);
	font-style: italic;
	font-size: var(--fs-xs);
	color: var(--c-text-muted);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: var(--sp-xs);
}

.product-card__title {
	font-family: var(--f-display);
	font-size: var(--fs-base);
	font-weight: 400;
	line-height: 1.3;
	margin-bottom: var(--sp-xs);
	transition: color var(--dur-fast);
}

.product-card:hover .product-card__title {
	color: var(--c-accent);
}

.product-card__price {
	font-family: var(--f-accent);
	font-weight: 600;
	font-size: var(--fs-lg);
}
