/* =====================================================================
   DHOLKI WISHLIST PAGE
   Table layout + header for the "My Wishlist" page. Self-contained
   (redeclares the shared Dholki brand tokens) since this file loads only
   on pages that use the Dholki Wishlist Elementor widget, same pattern
   as dholki-category.css.
   ===================================================================== */

:root{
	--dholki-orange: #D9612F;
	--dholki-orange-dark: #C24E20;
	--dholki-cream: #FBEDE3;
	--dholki-cream-2: #FDF6F0;
	--dholki-maroon: #5E1F2B;
	--dholki-text: #2B2320;
	--dholki-text-soft: #6b5c56;
	--dholki-border: #F0DDD0;
	--dholki-green: #1f9254;
	--dholki-font-serif: 'Playfair Display', Georgia, serif;
	--dholki-font-sans: 'Poppins', system-ui, sans-serif;
}

.dholki-wishlist-root,
.dholki-wishlist-root *{ box-sizing:border-box; }
.dholki-wishlist-root{
	font-family: var(--dholki-font-sans);
	color: var(--dholki-text);
	max-width:1320px;
	margin:0 auto;
	padding:36px 40px 70px;
}
.dholki-wishlist-root a{ text-decoration:none; color:inherit; }
.dholki-wishlist-root button{ font-family:inherit; cursor:pointer; }
.dholki-wishlist-root img{ max-width:100%; display:block; }

.dholki-wl-header{
	display:flex;
	justify-content:space-between;
	align-items:flex-start;
	flex-wrap:wrap;
	gap:20px;
	margin-bottom:30px;
}
.dholki-wl-header__title{ display:flex; align-items:flex-start; gap:14px; }
.dholki-wl-icon{
	width:44px; height:44px; flex-shrink:0;
	border-radius:50%;
	background: var(--dholki-cream);
	color: var(--dholki-orange);
	display:flex; align-items:center; justify-content:center;
	font-size:18px;
}
.dholki-wl-heading{
	font-family: var(--dholki-font-serif);
	color: var(--dholki-maroon);
	font-size:26px;
	margin:2px 0 4px;
}
.dholki-wl-count{ color: var(--dholki-text-soft); font-family: var(--dholki-font-sans); font-size:18px; font-weight:500; }
.dholki-wl-subtitle{ margin:0; color: var(--dholki-text-soft); font-size:14px; }

.dholki-wl-header__actions{ display:flex; gap:12px; flex-wrap:wrap; }
.dholki-wl-btn{
	display:inline-flex; align-items:center; gap:8px;
	border-radius:24px;
	padding:11px 22px;
	font-size:13px;
	font-weight:600;
	border:1.5px solid var(--dholki-orange);
	transition: background .15s ease, color .15s ease;
	white-space:nowrap;
}
.dholki-wl-btn--outline{ background:#fff; color: var(--dholki-orange); }
.dholki-wl-btn--outline:hover{ background: var(--dholki-cream); }
.dholki-wl-btn--solid{ background: var(--dholki-orange); color:#fff; }
.dholki-wl-btn--solid:hover{ background: var(--dholki-orange-dark); border-color: var(--dholki-orange-dark); }
.dholki-wl-btn.dholki-is-loading{ opacity:.6; pointer-events:none; }

.dholki-wishlist-root.dholki-is-empty .dholki-wl-header__actions{ display:none; }
.dholki-wishlist-root.dholki-is-empty .dholki-wl-table{ background:none; border:none; padding:0; }
.dholki-wishlist-root.dholki-is-empty .dholki-wl-row--head{ display:none; }

.dholki-wl-table{
	background:#fff;
	border:1px solid var(--dholki-border);
	border-radius:14px;
	padding:6px 22px;
}
.dholki-wl-row{
	display:grid;
	grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
	align-items:center;
	gap:14px;
	padding:16px 0;
	border-bottom:1px solid var(--dholki-border);
}
.dholki-wl-row:last-child{ border-bottom:none; }
.dholki-wl-row--head{
	font-size:11.5px; text-transform:uppercase; letter-spacing:.04em;
	color: var(--dholki-text-soft); font-weight:600;
}

.dholki-wl-cell--product{ display:flex; align-items:center; gap:12px; min-width:0; }
.dholki-wl-thumb{ width:52px; height:52px; border-radius:10px; overflow:hidden; flex-shrink:0; background: var(--dholki-cream-2); }
.dholki-wl-thumb img{ width:100%; height:100%; object-fit:cover; }
.dholki-wl-name{ font-size:13.5px; font-weight:600; color: var(--dholki-text); line-height:1.4; }

.dholki-wl-cell--price{ font-weight:700; color: var(--dholki-maroon); font-size:14px; }
.dholki-wl-cell--price del{ color: var(--dholki-text-soft); font-weight:400; font-size:12px; margin-right:4px; display:block; }

.dholki-wl-stock{ font-size:11px; display:inline-flex; align-items:center; gap:5px; font-weight:600; }
.dholki-wl-stock i{ font-size:6px; }
.dholki-wl-stock--in{ color: var(--dholki-green); }
.dholki-wl-stock--out{ color:#b3261e; }

.dholki-wl-cell--actions{ display:flex; align-items:center; gap:10px; }
.dholki-wl-heart{
	width:36px; height:36px; flex-shrink:0;
	padding:0;
	border:1px solid var(--dholki-border); border-radius:50%;
	background:#fff; color: var(--dholki-orange);
	display:flex; align-items:center; justify-content:center;
	font-size:14px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dholki-wl-heart:hover{ background: var(--dholki-orange); color:#fff; border-color: var(--dholki-orange); }

.dholki-wl-add-cart{
	flex:1;
	background: var(--dholki-orange);
	color:#fff;
	border:none;
	padding:10px 14px;
	border-radius:8px;
	font-size:12.5px;
	font-weight:600;
	display:flex; align-items:center; justify-content:center; gap:6px;
	white-space:nowrap;
}
.dholki-wl-add-cart:hover{ background: var(--dholki-orange-dark); }
.dholki-wl-add-cart:disabled{ background: var(--dholki-border); color: var(--dholki-text-soft); cursor:not-allowed; }
.dholki-wl-add-cart.dholki-is-loading{ opacity:.6; pointer-events:none; }

.dholki-wl-loading{
	padding:60px 0;
	text-align:center;
	font-size:24px;
	color: var(--dholki-orange);
}
.dholki-wl-error{ text-align:center; color: var(--dholki-text-soft); padding:40px 0; }

.dholki-wl-empty{
	text-align:center;
	padding:70px 20px;
	background:#fff;
	border:1px solid var(--dholki-border);
	border-radius:16px;
}
.dholki-wl-empty__icon{
	width:64px; height:64px; margin:0 auto 18px;
	border-radius:50%;
	background: var(--dholki-cream);
	color: var(--dholki-orange);
	display:flex; align-items:center; justify-content:center;
	font-size:26px;
}
.dholki-wl-empty h3{ font-family: var(--dholki-font-serif); color: var(--dholki-maroon); margin:0 0 8px; font-size:20px; }
.dholki-wl-empty p{ color: var(--dholki-text-soft); font-size:14px; max-width:360px; margin:0 auto 22px; }

@media (max-width:900px){
	.dholki-wishlist-root{ padding:26px 20px 50px; }
	.dholki-wl-header{ flex-direction:column; }
	.dholki-wl-header__actions{ width:100%; }
	.dholki-wl-btn{ flex:1; justify-content:center; }

	.dholki-wl-table{ background:none; border:none; padding:0; }
	.dholki-wl-row--head{ display:none; }
	.dholki-wl-row{
		display:grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"product product"
			"price stock"
			"actions actions";
		row-gap:10px; column-gap:10px;
		background:#fff; border:1px solid var(--dholki-border); border-radius:12px;
		padding:16px; margin-bottom:12px;
	}
	.dholki-wl-cell--product{ grid-area:product; }
	.dholki-wl-cell--price{ grid-area:price; }
	.dholki-wl-cell--stock{ grid-area:stock; justify-self:end; }
	.dholki-wl-cell--actions{ grid-area:actions; }
}
@media (max-width:560px){
	.dholki-wl-thumb{ width:44px; height:44px; }
	.dholki-wl-name{ font-size:13px; }
}