/* Aviya Yosef Free Gift – frontend */

.ayfg-wrap {
	direction: rtl;
	text-align: right;
	margin: 28px 0;
	padding: 22px;
	border: 1px solid #e6ddd4;
	border-radius: 10px;
	background: #fdfbf9;
	position: relative;
}

.ayfg-head {
	margin-bottom: 18px;
}

.ayfg-title {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.3;
}

.ayfg-subtitle {
	margin: 0;
	font-size: 14px;
	color: #6b6b6b;
}

/* ---------- Grid ---------- */

.ayfg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.ayfg-item {
	border: 2px solid #ece4dc;
	border-radius: 8px;
	background: #fff;
	padding: 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ayfg-item:hover {
	border-color: #cbb9a6;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.ayfg-item.is-selected {
	border-color: #b08d6a;
	box-shadow: 0 0 0 3px rgba(176, 141, 106, .15);
}

.ayfg-item-image {
	margin-bottom: 8px;
}

.ayfg-item-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 5px;
}

.ayfg-item-name {
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 10px;
	flex-grow: 1;
}

.ayfg-select-btn {
	display: block;
	width: 100%;
	padding: 8px 10px;
	font-size: 13px;
	border: 0;
	border-radius: 5px;
	background: #2c2c2c;
	color: #fff;
	cursor: pointer;
	transition: background .18s ease;
}

.ayfg-select-btn:hover {
	background: #000;
}

.ayfg-item.is-selected .ayfg-select-btn {
	background: #b08d6a;
}

/* ---------- Progress ---------- */

.ayfg-locked {
	background: #fff;
}

.ayfg-progress-text {
	font-size: 14px;
	margin-bottom: 10px;
}

.ayfg-progress-bar {
	height: 8px;
	background: #eee;
	border-radius: 20px;
	overflow: hidden;
}

.ayfg-progress-bar span {
	display: block;
	height: 100%;
	background: #b08d6a;
	border-radius: 20px;
	transition: width .3s ease;
}

/* ---------- Cart badge ---------- */

.ayfg-cart-badge {
	color: #b08d6a;
	font-weight: 700;
	font-size: .85em;
	white-space: nowrap;
}

/* ---------- Loader ---------- */

.ayfg-wrap.is-loading {
	pointer-events: none;
}

.ayfg-wrap.is-loading .ayfg-grid {
	opacity: .45;
}

.ayfg-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ayfg-loader span {
	width: 30px;
	height: 30px;
	border: 3px solid #e0d5c8;
	border-top-color: #b08d6a;
	border-radius: 50%;
	animation: ayfg-spin .7s linear infinite;
}

@keyframes ayfg-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
	.ayfg-wrap {
		padding: 16px;
	}
	.ayfg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.ayfg-title {
		font-size: 17px;
	}
}
