/**
 * Components: buttons, badges, pills, cards, form elements.
 */

/* ==================== Buttons ==================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: 8px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.25s;
	border: none;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
}

.btn-primary {
	background: linear-gradient(135deg, var(--cyan), #00D4E0);
	color: var(--bg-primary);
	box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
	box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
	transform: translateY(-1px);
	color: var(--bg-primary);
}

.btn-outline {
	background: transparent;
	color: var(--text-body);
	border: 1px solid var(--border-hover);
}

.btn-outline:hover {
	border-color: var(--cyan);
	color: var(--cyan);
}

.btn-sm {
	padding: 8px 18px;
	font-size: 13px;
}

/* ==================== Cart button (icon only) ==================== */

.btn-cart {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--cyan-soft);
	border: 1px solid rgba(0, 240, 255, 0.15);
	color: var(--cyan);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.btn-cart svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.btn-cart:hover {
	background: var(--cyan);
	color: var(--bg-primary);
	box-shadow: 0 0 15px var(--cyan-glow);
}

/* ==================== Badges ==================== */

.badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.badge--new {
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid rgba(0, 240, 255, 0.15);
	color: var(--cyan-muted);
}

.badge--sale {
	background: rgba(255, 59, 92, 0.9);
	border: 1px solid rgba(255, 59, 92, 1);
	color: #fff;
	font-size: 12px;
	padding: 5px 12px;
}

.badge--stock {
	background: rgba(255, 170, 0, 0.06);
	border: 1px solid rgba(255, 170, 0, 0.12);
	color: rgba(255, 170, 0, 0.65);
}

.badge--green {
	background: rgba(0, 255, 136, 0.08);
	border: 1px solid rgba(0, 255, 136, 0.2);
	color: var(--green);
}

.badge--eol {
	background: rgba(150, 150, 150, 0.15);
	border: 1px solid rgba(150, 150, 150, 0.3);
	color: rgba(200, 200, 200, 0.7);
}

/* ==================== Pills ==================== */

.pill {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--card-gradient);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 12px;
	color: var(--text-body);
}

.pill svg {
	width: 14px;
	height: 14px;
	stroke: var(--cyan-muted);
	fill: none;
	stroke-width: 1.8;
	flex-shrink: 0;
}

/* ==================== Cards ==================== */

.card {
	background: var(--card-gradient);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: all var(--transition-normal);
}

.card:hover {
	border-color: rgba(0, 240, 255, 0.2);
	box-shadow: var(--shadow-card), 0 0 0 1px rgba(0, 240, 255, 0.08);
	transform: translateY(-3px);
}

/* Card with cyan top line */
.card--accent {
	position: relative;
}

.card--accent::after {
	content: '';
	position: absolute;
	top: -1px;
	left: 20%;
	right: 20%;
	height: 2px;
	background: var(--cyan-topline);
	box-shadow: 0 0 15px var(--cyan-glow);
}

/* ==================== Form elements ==================== */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
	width: 100%;
	background: var(--card-gradient);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 16px;
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: 14px;
	outline: none;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
	color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--cyan);
	box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

/* Quantity selector */
.qty-selector {
	display: flex;
	align-items: center;
	background: var(--card-gradient);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}

.qty-selector__btn {
	width: 42px;
	height: 48px;
	background: none;
	border: none;
	color: var(--text-body);
	font-size: 18px;
	cursor: pointer;
	transition: all var(--transition-fast);
	display: flex;
	align-items: center;
	justify-content: center;
}

.qty-selector__btn:hover {
	color: var(--cyan);
	background: var(--cyan-soft);
}

.qty-selector__value {
	width: 48px;
	height: 48px;
	background: none;
	border: none;
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
	color: var(--text-primary);
	font-family: var(--font-mono);
	font-size: 16px;
	text-align: center;
}

/* ==================== Breadcrumb ==================== */

.breadcrumb {
	padding: 16px 0;
	font-size: 13px;
	color: var(--text-muted);
}

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

.breadcrumb a:hover {
	color: var(--cyan);
}

.breadcrumb__sep {
	margin: 0 8px;
	opacity: 0.5;
}

.breadcrumb .current {
	color: var(--text-body);
}

/* ==================== Section header ==================== */

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.section-link {
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 500;
	transition: color var(--transition-fast);
}

.section-link:hover {
	color: var(--cyan);
}

/* ==================== Animations ==================== */

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
