/* ================================================================
   TheCoin Wishlist v2 — styles
================================================================ */

/* ── Grid ── */
.tcwl-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 40px;
}
@media (max-width: 1024px) { .tcwl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .tcwl-grid { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 28px; } }

/* ── Skeleton loading ── */
.tcwl-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 40px;
}
@media (max-width: 1024px) { .tcwl-skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .tcwl-skeleton-grid { grid-template-columns: repeat(2, 1fr); column-gap: 16px; } }

.tcwl-skeleton__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #efefed;
	border-radius: 2px;
	margin-bottom: 12px;
	animation: tcwl-pulse 1.4s ease-in-out infinite;
}
.tcwl-skeleton__line {
	height: 12px;
	background: #efefed;
	border-radius: 6px;
	margin-bottom: 8px;
	animation: tcwl-pulse 1.4s ease-in-out infinite;
}
.tcwl-skeleton__line--short { width: 60%; }

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

/* ── Card ── */
.tcwl-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	opacity: 1;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.tcwl-card.is-removing {
	opacity: 0;
	transform: scale(0.96);
	pointer-events: none;
}

/* ── Image wrap ── */
.tcwl-image-wrap {
	position: relative;
	background: #f7f7f5;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin-bottom: 14px;
}
.tcwl-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tcwl-card:hover .tcwl-image-wrap img { transform: scale(1.05); }

.tcwl-image-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
}

.tcwl-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cccccc;
}

/* ── Badge stack ── */
.tcwl-badge-stack {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.tcwl-badge {
	display: inline-block;
	font-size: 9px;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-family: sans-serif;
	font-weight: 500;
	padding: 2px 8px;
	line-height: 1.6;
}
.tcwl-badge--sale { background: #c8a96e; color: #ffffff; }
.tcwl-badge--new  { background: #ffffff; color: #1a1a1a; border: 1px solid #1a1a1a; }

/* ── Heart button ── */
.tcwl-heart {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 20;
	background: none;
	border: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	padding: 4px;
	color: rgba(26,26,26,0.45);
	line-height: 0;
	transition: color 0.2s ease, transform 0.15s ease;
	border-radius: 0;
}
.tcwl-heart svg {
	width: 18px;
	height: 18px;
	display: block;
	transition: fill 0.2s ease;
}
.tcwl-heart.is-active           { color: #c8a96e; }
.tcwl-heart.is-active svg       { fill: currentColor; }
.tcwl-heart:hover               { transform: scale(1.15); color: #c8a96e; }
.tcwl-heart:focus               { outline: none; box-shadow: none; }

/* ── Quick add overlay ── */
.tcwl-quick-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	z-index: 9;
}
.tcwl-card:hover .tcwl-quick-wrap { transform: translateY(0); }

.tcwl-quick-btn {
	display: block;
	width: 100%;
	background: #1a1a1a;
	color: #ffffff;
	border: none;
	font-size: 10px;
	letter-spacing: .15em;
	text-transform: uppercase;
	font-family: sans-serif;
	font-weight: 500;
	padding: 10px 12px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
	box-sizing: border-box;
}
.tcwl-quick-btn:hover                { background: #c8a96e; }
.tcwl-quick-btn.is-adding            { opacity: 0.65; cursor: wait; }
.tcwl-quick-btn.is-added             { background: #4a7c59 !important; }

/* ── Product info ── */
.tcwl-info { flex: 1; }

.tcwl-category {
	font-size: 10px;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: #9a9a8a;
	font-family: sans-serif;
	margin: 0 0 3px;
}

.tcwl-name {
	font-family: sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #1a1a1a;
	margin: 0 0 4px;
	line-height: 1.4;
}
.tcwl-name a { color: inherit; text-decoration: none; }
.tcwl-name a:hover { opacity: 0.7; }

.tcwl-price {
	font-size: 14px;
	font-family: sans-serif;
	font-weight: 300;
	margin: 0 0 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}
.tcwl-price--regular { color: #1a1a1a; }
.tcwl-price--old     { color: #9a9a8a; text-decoration: line-through; }
.tcwl-price--sale    { color: #c8a96e; }
.tcwl-price .woocommerce-Price-amount { font-size: inherit; color: inherit; }

.tcwl-delivery {
	font-size: 10px;
	color: #9a9a8a;
	font-family: sans-serif;
	margin: 2px 0 0;
}

/* ── Empty state ── */
.tcwl-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 80px 24px;
}
.tcwl-empty__icon {
	color: #d4d4cc;
	margin-bottom: 22px;
	line-height: 0;
}
.tcwl-empty__text {
	font-family: sans-serif;
	font-size: 15px;
	color: #9a9a8a;
	font-weight: 400;
	max-width: 320px;
	line-height: 1.65;
	margin: 0 0 28px;
}
.tcwl-empty__btn {
	display: inline-block;
	background: #1a1a1a;
	color: #ffffff;
	font-size: 11px;
	letter-spacing: .25em;
	text-transform: uppercase;
	font-family: sans-serif;
	font-weight: 500;
	text-decoration: none;
	padding: 14px 40px;
	transition: background 0.2s ease;
}
.tcwl-empty__btn:hover { background: #c8a96e; color: #ffffff; }

/* ── Header icon shortcode ── */
.tcwl-header-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: inherit;
	background: none;
	border: none;
	box-shadow: none;
	padding: 2px;
	line-height: 0;
	vertical-align: middle;
}
.tcwl-header-icon svg { display: block; transition: color 0.2s ease; }
.tcwl-header-icon:hover { opacity: 0.7; }

.tcwl-badge {
	position: absolute;
	top: -5px;
	right: -7px;
	background: var(--tcwl-badge-bg, #1a1a1a);
	color: var(--tcwl-badge-color, #ffffff);
	font-family: sans-serif;
	font-size: 9px;
	font-weight: 600;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
	box-sizing: border-box;
	line-height: 1;
	pointer-events: none;
	transition: transform 0.2s ease;
}
.tcwl-badge.is-zero { display: none; }
.tcwl-badge.bump    { transform: scale(1.5); }

/* ── Toast ── */
.tcwl-toast {
	position: fixed;
	top: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(-80px);
	z-index: 999999;
	background: #1a1a1a;
	color: #ffffff;
	font-family: sans-serif;
	font-size: 12px;
	letter-spacing: .1em;
	padding: 12px 28px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.tcwl-toast.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}
