/**
 * Tone Alchemy Wishlist - Scoped Stylesheet
 * Native Flatsome integration, dark-mode optimised.
 *
 * @package ToneAlchemyWishlist
 */

/* Single Product Button */
.ta-single-product-wishlist {
	margin: 1rem 0;
	display: block;
}

.ta-wishlist-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	text-decoration: none;
}

.ta-wishlist-btn i {
	font-size: 1.1em;
	line-height: 1;
	transition: transform 0.2s ease, color 0.2s ease;
}

.ta-wishlist-btn:hover i {
	transform: scale(1.15);
}

.ta-wishlist-btn.in-wishlist {
	color: var(--primary-color, #d4af37);
	border-color: var(--primary-color, #d4af37);
}

.ta-wishlist-btn.in-wishlist i {
	color: var(--primary-color, #d4af37);
}

/* Loop / Catalog Heart Button Overlay */
.ta-wishlist-loop-wrapper {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
}

.ta-wishlist-btn-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(18, 18, 18, 0.75);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	padding: 0;
	margin: 0;
}

.ta-wishlist-btn-icon:hover {
	background: rgba(0, 0, 0, 0.95);
	border-color: rgba(255, 255, 255, 0.35);
	transform: scale(1.08);
}

.ta-wishlist-btn-icon.in-wishlist i {
	color: var(--primary-color, #d4af37);
}

/* Shareable Link Box */
.ta-wishlist-share-box {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding: 0.85rem 1.25rem;
	margin-bottom: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.ta-share-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #e0e0e0;
}

.ta-share-input-wrap {
	display: flex;
	gap: 0.5rem;
	flex: 1;
	min-width: 260px;
}

.ta-share-input {
	flex: 1;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	padding: 0.35rem 0.75rem;
	border-radius: 4px;
	font-family: monospace;
	font-size: 0.85rem;
}

.ta-copy-feedback {
	font-size: 0.85rem;
	color: #55c57a;
	font-weight: 600;
}

/* Guest Banner & Shared Header */
.ta-guest-banner,
.ta-shared-header {
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid var(--primary-color, #d4af37);
	padding: 0.85rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: 0 4px 4px 0;
}

.ta-guest-banner p,
.ta-shared-subtext {
	margin: 0;
	font-size: 0.9rem;
	color: #bbb;
}

/* Wishlist Responsive Table */
.ta-wishlist-table-responsive {
	overflow-x: auto;
	margin: 1.5rem 0;
}

.ta-wishlist-table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
}

.ta-wishlist-table th {
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	padding: 0.75rem 0.6rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #aaa;
	text-align: left;
}

.ta-wishlist-table td {
	padding: 0.85rem 0.6rem;
	vertical-align: middle;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ta-wishlist-row {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ta-remove-btn {
	background: transparent;
	border: none;
	color: #888;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.2rem 0.5rem;
	transition: color 0.2s ease, transform 0.2s ease;
}

.ta-remove-btn:hover {
	color: #ff5555;
	transform: scale(1.2);
}

.ta-wishlist-table .product-thumbnail img {
	border-radius: 4px;
	display: block;
	max-width: 60px;
	height: auto;
}

.ta-wishlist-table .product-name a {
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}

.ta-wishlist-table .product-name a:hover {
	color: var(--primary-color, #d4af37);
}

.ta-stock.in-stock {
	color: #55c57a;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Empty State */
.ta-wishlist-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #888;
}

.ta-wishlist-empty p {
	font-size: 1.1rem;
	margin-bottom: 1.25rem;
}

/* Suggestions Grid */
.ta-wishlist-suggestions {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ta-suggestions-title {
	font-size: 1.15rem;
	margin-bottom: 1.25rem;
	color: #fff;
}

.ta-suggestions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}

.ta-suggestion-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	padding: 0.85rem;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.ta-suggestion-card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 0.15);
}

.ta-suggestion-thumb img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.ta-suggestion-name {
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	margin: 0.6rem 0 0.3rem;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ta-suggestion-price {
	font-size: 0.85rem;
	color: #ccc;
	margin-bottom: 0.6rem;
}

.ta-suggestion-action {
	margin-top: auto;
}

/* Prevent header nav wrapping to ensure Search, Heart, and Cart remain on a single horizontal row */
.header-main .header-nav.nav-right,
.header-main .flex-right .header-nav,
.header-main ul.nav-right,
.header-nav.nav-right {
    flex-wrap: nowrap !important;
}
.header-button-1 {
    flex-shrink: 0 !important;
    margin: 0 4px !important;
}
.header-button-1 a.button {
    padding: 0 6px !important;
    min-height: auto !important;
    box-shadow: none !important;
    border: none !important;
}
.header-button-1 a.button i {
    font-size: 1.15rem !important;
    vertical-align: middle !important;
    margin: 0 !important;
}
.header-button-1 a.button span {
    display: none !important;
}
.header-main .cart-item {
    flex-shrink: 0 !important;
}
.ta-btn-out-of-stock {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    color: #777 !important;
    border-color: #444 !important;
}
.ta-atc-btn {
    white-space: nowrap !important;
}

