/* TacoLink 商品リンクカード（テーマ非依存・BEM） */

.tacolink-card {
	display: flex;
	gap: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	margin: 24px 0;
	background: #fff;
	box-sizing: border-box;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tacolink-card__image {
	flex: 0 0 160px;
}

.tacolink-card__image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.tacolink-card__gallery {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.tacolink-card__gallery-track {
	display: flex;
	transition: transform 0.3s ease;
}

.tacolink-card__gallery-track img {
	flex: 0 0 100%;
	width: 100%;
	height: auto;
	display: block;
}

.tacolink-card__gallery-prev,
.tacolink-card__gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	padding: 0;
}

.tacolink-card__gallery-prev {
	left: 4px;
}

.tacolink-card__gallery-next {
	right: 4px;
}

.tacolink-card__gallery-prev::before,
.tacolink-card__gallery-next::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

.tacolink-card__gallery-prev::before {
	transform: rotate(-135deg);
	margin-left: 3px;
}

.tacolink-card__gallery-next::before {
	transform: rotate(45deg);
	margin-right: 3px;
}

.tacolink-card__gallery-dots {
	position: absolute;
	bottom: 4px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 4px;
}

.tacolink-card__gallery-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	border: none;
	padding: 0;
	cursor: pointer;
}

.tacolink-card__gallery-dot.is-active {
	background: #fff;
}

.tacolink-card .tacolink-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* 3クラスセレクタでテーマ・エディタCSSに勝つ */
.tacolink-card .tacolink-card__body .tacolink-card__title {
	font-weight: bold;
	font-size: 1.05em;
	line-height: 1.3;
	margin: 0 0 8px;
}

.tacolink-card .tacolink-card__body .tacolink-card__info {
	font-size: 0.85em;
	color: #666;
	line-height: 1.3;
	margin: 0 0 10px;
}

.tacolink-card .tacolink-card__body .tacolink-card__price {
	font-size: 1.1em;
	font-weight: bold;
	color: #d9534f;
	line-height: 1.3;
	margin: 0 0 8px;
}

.tacolink-card .tacolink-card__price-at {
	font-size: 0.7em;
	font-weight: normal;
	color: #999;
	margin-left: 6px;
}

.tacolink-card .tacolink-card__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	align-items: flex-end;
}

.tacolink-card__button-wrap {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
}

.tacolink-card .tacolink-card__buttons .tacolink-card__button {
	display: block;
	padding: 10px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
	white-space: nowrap;
	color: #fff;
	transition: opacity 0.15s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.tacolink-card .tacolink-card__buttons .tacolink-card__button:hover,
.tacolink-card .tacolink-card__buttons .tacolink-card__button:visited {
	opacity: 0.85;
	color: #fff;
}

.tacolink-card .tacolink-card__buttons .tacolink-card__button:visited {
	opacity: 1;
}

.tacolink-card__button--amazon {
	background: #1ca7ec;
}

.tacolink-card__button--rakuten {
	background: #d9534f;
}

.tacolink-card__button--yahoo {
	background: #e0609e;
}

.tacolink-card__button--custom {
	background: #555;
}

/* セールバッジ（吹き出し風） */
.tacolink-card__sale-badge {
	display: block;
	font-size: 0.7em;
	font-weight: bold;
	color: #ff6b35;
	background: none;
	padding: 0 0 2px;
	text-align: center;
	line-height: 1.4;
	margin-bottom: 2px;
}

.tacolink-card__sale-badge::before {
	content: '＼\00a0';
}

.tacolink-card__sale-badge::after {
	content: '\00a0／';
}

/* セール通知バー */
.tacolink-sale-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	padding: 10px 48px 10px 16px;
	text-align: center;
	font-size: 0.9em;
	font-weight: bold;
	color: #856404;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.tacolink-sale-bar__close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 1.4em;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	padding: 4px 8px;
	line-height: 1;
}

.tacolink-sale-bar__close:hover {
	opacity: 1;
}

/* インラインリンク */
.tacolink-inline {
	font-weight: bold;
}

@media (max-width: 480px) {
	.tacolink-card {
		flex-direction: column;
		align-items: center;
		margin: 20px 12px;
	}

	.tacolink-card .tacolink-card__buttons {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.tacolink-card__button-wrap {
		flex: none;
	}

	.tacolink-card__body {
		width: 100%;
	}

	.tacolink-card__image {
		flex: 0 0 auto;
		max-width: 200px;
		margin: 0 auto;
	}

	.tacolink-card__sale-badge {
		font-size: 0.8em;
	}
}
