/* =========================================================================
   ZIQAA — Product Grid  (v1.1)
   Soft-luxury defaults; everything overridable from the Style tab.
   ========================================================================= */

.ziqaa-pg {
	--hellebore: #2B1A12;
	--rose: #D6336C;
	--rose-deep: #B02457;
	--orchid: #FBA9E5;
	--blush: #FEFAFB;
	--blush-deep: #FBEAF1;
	--magnolia: #F7E9F1;
	--warm-white: #FFFBFD;
	--tint: #EBCBD9;
	--gold: #C9A24B;
	--ink-soft: #7A6A63;

	position: relative;
	overflow: hidden;
	background-color: var(--blush);
	font-family: "Jost", sans-serif;
}

/* ---- Background layers ---------------------------------------------------- */
.ziqaa-pg__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ziqaa-pg__wash { position: absolute; border-radius: 50%; filter: blur(70px); }
.ziqaa-pg__wash--o { width: 42%; height: 60%; top: -12%; right: -8%; background: var(--orchid); opacity: .20; }
.ziqaa-pg__wash--r { width: 36%; height: 50%; bottom: -14%; left: -10%; background: var(--blush-deep); opacity: .55; }
.ziqaa-pg__grain {
	position: absolute; inset: 0; opacity: .045;
	background-image: repeating-linear-gradient(0deg, var(--hellebore) 0, var(--hellebore) 1px, transparent 1px, transparent 5px);
}

/* ---- Heritage corner brackets (one quiet gold per section) ---------------- */
.ziqaa-pg__corner { position: absolute; width: 38px; height: 38px; border: 1px solid var(--gold); z-index: 2; pointer-events: none; }
.ziqaa-pg__corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.ziqaa-pg__corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

/* ---- Inner ---------------------------------------------------------------- */
.ziqaa-pg__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }

/* ---- Header --------------------------------------------------------------- */
.ziqaa-pg__head { margin-bottom: 24px; }
.ziqaa-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
	color: var(--rose); margin-bottom: 12px;
}
.ziqaa-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--rose); }
.ziqaa-headline {
	font-family: "Cormorant Garamond", serif; font-weight: 600;
	font-size: clamp(30px, 4vw, 46px); line-height: 1.05; color: var(--hellebore); margin: 0;
}
.ziqaa-headline .accent { position: relative; font-style: italic; color: var(--rose); white-space: nowrap; }
.ziqaa-headline .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--rose); }

/* ---- Filter pills --------------------------------------------------------- */
.ziqaa-pg__pills-wrap { position: relative; margin: 0 0 28px; }
.ziqaa-pg__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ziqaa-pill {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; line-height: 1;
	font-family: "Jost", sans-serif;
	font-size: 11px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
	color: var(--hellebore); background: var(--warm-white);
	border: 1px solid var(--tint); border-radius: 0;
	padding: 0 20px; cursor: pointer; white-space: nowrap;
	transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.ziqaa-pill:hover { color: var(--rose); background: var(--blush-deep); border-color: var(--rose); }
.ziqaa-pill.is-active { color: #fff; background: var(--rose); border-color: var(--rose); }

/* ---- Grid ----------------------------------------------------------------- */
.ziqaa-pg__grid {
	--ziqaa-cols: 4;
	display: grid; grid-template-columns: repeat(var(--ziqaa-cols), 1fr); gap: 24px;
}

/* ---- Card (product-card surface) ----------------------------------------- */
.ziqaa-card {
	--ziqaa-shadow: var(--tint);
	--ziqaa-lift: 4px;
	position: relative; display: flex; flex-direction: column; height: 100%;
	background-color: var(--warm-white);
	border: 1px solid #F1D8E4;
	transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1), border-color .25s ease;
}
.ziqaa-card:hover {
	transform: translateY(calc(var(--ziqaa-lift) * -1));
	box-shadow: var(--ziqaa-lift) var(--ziqaa-lift) 0 var(--ziqaa-shadow);
	border-color: var(--tint);
}

/* Media */
.ziqaa-card__media {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden;
	background-color: var(--magnolia);
	border-bottom: 1px solid #EADBE3;
}
.ziqaa-card__link { display: block; width: 100%; height: 100%; }
.ziqaa-card__media img, .ziqaa-card__img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important;
	object-fit: cover; margin: 0; display: block;
	transition: opacity .55s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.ziqaa-card__img--secondary { opacity: 0; }
.ziqaa-card:hover .ziqaa-card__img--secondary { opacity: 1; }
.ziqaa-card:hover .ziqaa-card__img--primary { opacity: 0; }
.ziqaa-card.is-zoom:hover .ziqaa-card__img { transform: scale(1.045); }
.ziqaa-card__media:not(:has(.ziqaa-card__img--secondary)):hover .ziqaa-card__img--primary { opacity: 1; }

/* Seal */
.ziqaa-card__seal {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
	color: #fff; background: var(--rose);
	border: 1px solid var(--hellebore); box-shadow: 2px 2px 0 var(--hellebore);
	padding: 5px 9px; transform: rotate(4deg);
}

/* Body */
.ziqaa-card__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 16px; text-align: left; }
.ziqaa-card__name {
	font-family: "Cormorant Garamond", serif; font-weight: 600;
	font-size: 21px; line-height: 1.18; margin: 0 0 5px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; min-height: 2.36em;
}
.ziqaa-card__name a { color: var(--hellebore); text-decoration: none !important; transition: color .25s ease; }
.ziqaa-card__name a:hover { text-decoration: none !important; }
.ziqaa-card:hover .ziqaa-card__name a { color: var(--rose); }
.ziqaa-card__meta { font-size: 10.5px; font-weight: 400; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.ziqaa-card__price { font-size: 15px; font-weight: 500; color: var(--hellebore); margin-bottom: 14px; }
.ziqaa-card__price .woocommerce-Price-amount { font-weight: 500; }
.ziqaa-card__price del { color: var(--ink-soft); opacity: 1; margin-right: 7px; font-weight: 400; }
.ziqaa-card__price ins { color: var(--rose); text-decoration: none; }

/* Actions row: [ Add to cart ........ ] [ eye ] — always one line */
.ziqaa-card__actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; margin-top: auto; }
.ziqaa-card__add {
	flex: 1 1 0; min-width: 0;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; box-sizing: border-box;
	font-size: 11.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase;
	color: #fff; background: var(--rose); border: 1px solid var(--rose);
	padding: 0 12px; cursor: pointer; text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.ziqaa-card__add span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ziqaa-card__add, .ziqaa-card__add:hover { text-decoration: none !important; }
.ziqaa-card__add:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.ziqaa-card__add svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 1.6; fill: none; flex: 0 0 auto; }
.ziqaa-card__add.loading { opacity: .7; pointer-events: none; }

/* WooCommerce appends a "View cart" link after a successful ajax add —
   keep it out of the card so the row never breaks to two lines. */
.ziqaa-card__actions .added_to_cart,
.ziqaa-qv__buy .added_to_cart { display: none !important; }

.ziqaa-card__quick {
	flex: 0 0 auto; width: 46px; height: 46px; box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--warm-white); border: 1px solid var(--hellebore);
	cursor: pointer; padding: 0;
	transition: background-color .25s ease, border-color .25s ease;
}
.ziqaa-card__quick svg { width: 18px; height: 18px; stroke: var(--hellebore); stroke-width: 1.4; fill: none; transition: stroke .25s ease; }
.ziqaa-card__quick:hover { background: var(--hellebore); }
.ziqaa-card__quick:hover svg { stroke: #fff; }

/* Crisp, rounded icon strokes everywhere */
.ziqaa-card__add svg, .ziqaa-card__quick svg, .ziqaa-qv__add svg { stroke-linecap: round; stroke-linejoin: round; }

/* Demo (editor) */
.ziqaa-card__demoimg {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 26px; letter-spacing: 4px;
	color: var(--tint);
	background: linear-gradient(135deg, rgba(251,169,229,.10), rgba(214,51,108,.06)), var(--magnolia);
}

/* Empty */
.ziqaa-pg__empty { grid-column: 1 / -1; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 20px; color: var(--ink-soft); text-align: center; padding: 40px 0; }

/* ---- Show more ------------------------------------------------------------ */
.ziqaa-pg__more-wrap { display: flex; justify-content: center; margin-top: 38px; }
.ziqaa-pg__more {
	font-family: "Jost", sans-serif; font-size: 12px; font-weight: 500;
	letter-spacing: 2.5px; text-transform: uppercase;
	color: var(--hellebore); background: transparent; border: 1px solid var(--hellebore);
	padding: 15px 38px; cursor: pointer;
	transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.ziqaa-pg__more:hover { color: #fff; background: var(--hellebore); }
.ziqaa-pg__more.loading { opacity: .65; pointer-events: none; }
.ziqaa-pg__more[hidden] { display: none; }

/* ---- Quick view modal ----------------------------------------------------- */
.ziqaa-qv {
	--hellebore: #2B1A12; --rose: #D6336C; --rose-deep: #B02457;
	--orchid: #FBA9E5; --blush: #FEFAFB; --blush-deep: #FBEAF1;
	--magnolia: #F7E9F1; --warm-white: #FFFBFD; --tint: #EBCBD9;
	--gold: #C9A24B; --ink-soft: #7A6A63;
	position: fixed; inset: 0; z-index: 999999; display: none;
	box-sizing: border-box; font-family: "Jost", sans-serif;
}
.ziqaa-qv * { box-sizing: border-box; }
.ziqaa-qv.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.ziqaa-qv__overlay { position: absolute; inset: 0; background: rgba(43,26,18,.55); backdrop-filter: blur(2px); }
.ziqaa-qv__panel {
	position: relative; z-index: 1;
	width: min(860px, 100%); max-height: calc(100vh - 48px);
	overflow-x: hidden; overflow-y: auto;
	background: var(--warm-white); border: 1px solid var(--hellebore);
	box-shadow: 12px 12px 0 var(--tint);
}
.ziqaa-qv__close {
	position: absolute; top: 0; right: 0; z-index: 3;
	width: 46px; height: 46px; line-height: 46px; text-align: center;
	font-size: 24px; font-family: "Jost", sans-serif;
	color: #fff; background: var(--rose); border: 0; cursor: pointer;
	transition: background-color .25s ease;
}
.ziqaa-qv__close:hover { background: var(--rose-deep); color: #fff; }
.ziqaa-qv__content { padding: 0; }
.ziqaa-qv__grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.ziqaa-qv__grid > * { min-width: 0; }
.ziqaa-qv__media { background: var(--magnolia); aspect-ratio: 4/5; overflow: hidden; min-width: 0; }
.ziqaa-qv__media img, .ziqaa-qv__img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
.ziqaa-qv__info { padding: 40px 38px; display: flex; flex-direction: column; min-width: 0; }
.ziqaa-qv__eyebrow {
	font-family: "Jost", sans-serif; font-size: 11px; font-weight: 500;
	letter-spacing: 2.5px; text-transform: uppercase; color: var(--rose);
	margin-bottom: 12px;
}
.ziqaa-qv__name { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 31px; line-height: 1.08; color: var(--hellebore); margin: 0 0 10px; }
.ziqaa-qv__price { font-size: 18px; font-weight: 500; color: var(--hellebore); margin-bottom: 18px; }
.ziqaa-qv__price ins { color: var(--rose); text-decoration: none; }
.ziqaa-qv__price del { color: var(--ink-soft); margin-right: 7px; font-weight: 400; }
.ziqaa-qv__desc { font-size: 14px; line-height: 1.75; font-weight: 300; color: var(--ink-soft); margin-bottom: 24px; }
.ziqaa-qv__desc p { margin: 0 0 10px; }
.ziqaa-qv__desc p:last-child { margin-bottom: 0; }
.ziqaa-qv__buy { display: flex; gap: 10px; align-items: stretch; min-width: 0; margin-bottom: 16px; }
.ziqaa-qv__qty {
	width: 60px; flex: 0 0 auto; height: 52px; box-sizing: border-box;
	border: 1px solid var(--hellebore); background: var(--blush);
	font-family: "Jost", sans-serif; font-size: 15px; color: var(--hellebore); text-align: center;
	-moz-appearance: textfield;
}
.ziqaa-qv__qty::-webkit-outer-spin-button, .ziqaa-qv__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ziqaa-qv__add {
	flex: 1 1 auto; min-width: 0; height: 52px; box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-size: 12px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
	color: #fff; background: var(--rose); border: 1px solid var(--rose);
	padding: 0 22px; cursor: pointer; text-decoration: none !important; transition: background-color .25s ease, border-color .25s ease;
}
.ziqaa-qv__add span { white-space: nowrap; }
.ziqaa-qv__add:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.ziqaa-qv__add.loading { opacity: .7; pointer-events: none; }
.ziqaa-qv__add svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 1.6; fill: none; flex: 0 0 auto; }
.ziqaa-qv__full { align-self: flex-start; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.ziqaa-qv__full:hover { color: var(--rose); }
.ziqaa-qv__loading { padding: 60px; text-align: center; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 20px; color: var(--ink-soft); }

/* =========================================================================
   Responsive
   ========================================================================= */
/* Per-device quick-view eye visibility */
@media (min-width: 768px) {
	.ziqaa-card__quick.ziqaa-hide-d { display: none; }
}

@media (max-width: 1024px) {
	.ziqaa-pg__grid { --ziqaa-cols: 3; }
}

@media (max-width: 767px) {
	/* Two product columns on mobile */
	.ziqaa-pg__grid { --ziqaa-cols: 2 !important; gap: 12px; }

	.ziqaa-headline { font-size: clamp(26px, 7vw, 34px); }
	.ziqaa-pg__head { margin-bottom: 18px; }

	/* Pills: horizontal scroll, no wrap, hidden scrollbar, edge fade */
	.ziqaa-pg__pills-wrap { margin: 0 -16px 22px; padding: 0; }
	.ziqaa-pg__pills-wrap::after {
		content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 100%;
		background: linear-gradient(to right, rgba(254,250,251,0), var(--blush));
		pointer-events: none;
	}
	.ziqaa-pg__pills {
		flex-wrap: nowrap; overflow-x: auto; gap: 8px;
		padding: 2px 16px; scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.ziqaa-pg__pills::-webkit-scrollbar { display: none; }
	.ziqaa-pill { scroll-snap-align: start; min-height: 36px; padding: 0 16px; font-size: 10.5px; letter-spacing: 1.5px; }

	/* Compact card on mobile */
	.ziqaa-card__body { padding: 12px; }
	.ziqaa-card__name { font-size: 17px; min-height: 2.36em; }
	.ziqaa-card__meta { font-size: 9.5px; letter-spacing: 1.4px; margin-bottom: 7px; }
	.ziqaa-card__price { font-size: 14px; margin-bottom: 11px; }
	.ziqaa-card__actions { gap: 6px; }
	.ziqaa-card__add { height: 42px; padding: 0 8px; font-size: 10.5px; letter-spacing: 1.2px; }
	.ziqaa-card__add svg { width: 14px; height: 14px; }
	.ziqaa-card__quick { width: 42px; height: 42px; }
	.ziqaa-card__quick.ziqaa-hide-m { display: none; }

	/* Modal stacks */
	.ziqaa-qv.is-open { padding: 14px; }
	.ziqaa-qv__panel { max-height: calc(100vh - 28px); }
	.ziqaa-qv__grid { grid-template-columns: 1fr; }
	.ziqaa-qv__media { aspect-ratio: 4/3; }
	.ziqaa-qv__info { padding: 24px 20px; }
	.ziqaa-qv__name { font-size: 24px; }
	.ziqaa-qv__panel { box-shadow: 8px 8px 0 var(--tint); }

	.ziqaa-pg__corner { width: 24px; height: 24px; }
	.ziqaa-pg__more-wrap { margin-top: 28px; }
}

@media (max-width: 480px) {
	/* Narrow phones, 2-up + eye visible: show the cart icon only so [cart] + [eye] fit one line */
	.ziqaa-card__add { gap: 0; padding: 0; }
	.ziqaa-card__add span { display: none; }
	.ziqaa-card__add svg { width: 17px; height: 17px; }

	/* When the eye is off on mobile, the button is full width — show its label */
	.ziqaa-card__actions.ziqaa-acts--mtext .ziqaa-card__add { gap: 8px; padding: 0 10px; }
	.ziqaa-card__actions.ziqaa-acts--mtext .ziqaa-card__add span { display: inline; }
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ziqaa-card, .ziqaa-card__media, .ziqaa-card__img { transition: none; }
	.ziqaa-card.is-zoom:hover .ziqaa-card__img { transform: none; }
}
