/*
 * qelq-core front end, design v3: group "shop".
 * Dyqan (Main.dc.html, MainCompare.dc.html, MainFiltersPhone.dc.html) and the product page
 * (QPiece.dc.html, QPieceSold.dc.html, QPieceGiftPhone.dc.html). Scoped under .q3.
 * Breakpoints are container queries on .q3 (1080 px, 900 px); the sticky bars sit above the fixed
 * tab bar below 900 px (media query, like the tab bar itself).
 */

/* ================================================================== Dyqan */
.q3 .q3-shop__in {
	padding-top: 8px;
	padding-bottom: clamp(40px, 5cqw, 72px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.q3 .q3-shop__head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.q3 .q3-shop__title { max-width: none; }
.q3 .q3-shop__intro { font-size: 17px; line-height: 1.55; color: var(--q3-ink-2); max-width: 920px; }
.q3 .q3-shop__form { display: flex; flex-direction: column; gap: 16px; }

/* Filter box: the three questions + collection */
.q3 .q3-shop__filters { padding: clamp(10px, 1.6cqw, 20px); background: var(--q3-sand); }
.q3 .q3-shop__fgrid {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	align-items: center;
	gap: 12px 40px;
}
.q3 .q3-shop__search { position: relative; grid-column: 1 / -1; }
.q3 .q3-shop__searchicon { position: absolute; left: 12px; top: 12px; color: var(--q3-ink-3); }
.q3 .q3-shop__input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 12px 0 40px;
	border: 1.5px solid var(--q3-navy);
	border-radius: var(--q3-radius);
	background: var(--q3-white);
	box-shadow: none;
	font-family: var(--q3-f-body);
	font-size: 16px;
	color: var(--q3-navy);
}
.q3 .q3-shop__input::placeholder { color: var(--q3-ink-3); opacity: 1; }
.q3 .q3-shop__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q3 .q3-shop__flabel { flex: 0 0 104px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.q3 .q3-shop__flabel--auto { flex: none; }
.q3 .q3-shop__n { font-weight: 400; }
.q3 .q3-shop__dot--multi { background: conic-gradient(#C8281E, #E6C229, #3F8F4A, #2BA6B8, #1F4FBF, #C8281E); }
.q3 .q3-shop__select {
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1.5px solid var(--q3-navy);
	border-radius: var(--q3-radius);
	background: var(--q3-white);
	box-shadow: none;
	font-family: var(--q3-f-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--q3-navy);
	appearance: auto;
}
.q3 .q3-shop__select--col { min-width: 200px; }
.q3 .q3-shop__select--full { width: 100%; }
.q3 .q3-shop__kol { margin-left: 8px; }

/* Result bar */
.q3 .q3-shop__bar { min-height: 44px; display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.q3 .q3-shop__count { font-size: 15px; font-weight: 600; }
.q3 .q3-shop__barend { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.q3 .q3-shop__nojs { display: none; }
.q3 .q3-shop__filtbtn[aria-expanded="true"] { background: var(--q3-navy); color: var(--q3-white); }

/* Phone filter sheet */
.q3 .q3-shop__drawer {
	display: none;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	background: var(--q3-sand);
}
.q3 .q3-shop__drawer.is-open { display: flex; }
.q3 .q3-shop__drow { display: flex; flex-direction: column; gap: 8px; }
.q3 .q3-shop__drow .q3-shop__flabel,
.q3 .q3-shop__dgrid .q3-shop__flabel { flex: none; }
.q3 .q3-shop__dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.q3 .q3-shop__view { min-height: 48px; }

/* Cards that do not match the filters */
.q3 .q3-pc.is-off { display: none; }

/* Compare panel ("Të preferuarat: krahasojini") */
.q3 .q3-shop__cmp {
	padding: clamp(14px, 1.6cqw, 24px);
	border: 2px solid var(--q3-navy);
	display: flex;
	flex-direction: column;
	gap: 16px;
	scroll-margin-top: 16px;
}
.q3 .q3-shop__cmp:focus { outline: none; }
.q3 .q3-shop__cmphead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.q3 .q3-shop__cmptext { display: flex; flex-direction: column; gap: 4px; }
.q3 .q3-shop__close {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--q3-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.q3 .q3-shop__cmpgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.q3 .q3-shop__cmpitem { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.q3 .q3-shop__cmpimg { aspect-ratio: 1 / 1; background: var(--q3-sand); }
.q3 .q3-shop__cmpimg img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.q3 .q3-shop__cmpname {
	font-family: var(--q3-f-head);
	font-size: 17px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--q3-navy);
	text-decoration: none;
}
.q3 .q3-shop__cmpname:hover { text-decoration: underline; text-underline-offset: 4px; }
.q3 .q3-shop__dl { display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.q3 .q3-shop__dl > div { padding: 6px 0; border-top: 1px solid var(--q3-line); display: flex; justify-content: space-between; gap: 8px; }
.q3 .q3-shop__dl > div:last-child { border-bottom: 1px solid var(--q3-line); }
.q3 .q3-shop__dl dt { color: var(--q3-ink-3); }
.q3 .q3-shop__dl dd { margin: 0; font-weight: 600; text-align: right; }
.q3 .q3-shop__cmpadd { padding: 0 12px; }
.q3 .q3-shop__cmpsold { min-height: 48px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--q3-ink-3); }
.q3 .q3-shop__cmprm { align-self: flex-start; }

/* Empty state */
.q3 .q3-shop__empty {
	padding: 40px 24px;
	background: var(--q3-sand);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

/* Saved bar (sticky at the bottom of the Dyqan) */
.q3 .q3-shop__savedwrap { position: sticky; bottom: 0; z-index: 20; }
.q3 .q3-shop__saved { background: var(--q3-navy); color: var(--q3-white); }
.q3 .q3-shop__savedin {
	min-height: clamp(56px, 5cqw, 64px);
	display: flex;
	align-items: center;
	gap: 8px 16px;
	padding-top: 6px;
	padding-bottom: 6px;
}
.q3 .q3-shop__savedlabel { font-size: 15px; font-weight: 600; }
.q3 .q3-shop__thumbs { display: flex; gap: 6px; }
.q3 .q3-shop__thumbs img { width: 44px; height: 44px; object-fit: contain; background: var(--q3-sand); }
.q3 .q3-shop__savedend { margin-left: auto; display: flex; align-items: center; gap: 4px 16px; }
.q3 .q3-shop__cmpopen { min-height: 44px; }

/* ================================================================== Product page */
.q3 .q3-pd__top {
	padding-top: 8px;
	padding-bottom: clamp(32px, 4cqw, 56px);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.q3 .q3-pd__notices { font-size: 15px; }
.q3 .q3-pd__notices :where(ul) { list-style: none; }
.q3 .q3-pd__notices :where(li, .woocommerce-message, .woocommerce-error, .woocommerce-info) {
	padding: 12px 16px;
	border: 2px solid var(--q3-navy);
	font-weight: 600;
}
.q3 .q3-pd__notices .woocommerce-error { border-color: var(--q3-err); color: var(--q3-err); }
.q3 .q3-pd__notices a { text-decoration: underline; text-underline-offset: 4px; }
.q3 .q3-pd__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px clamp(24px, 4.4cqw, 64px);
}

/* Gallery */
.q3 .q3-pg { flex: 1 1 460px; min-width: 0; max-width: 660px; display: flex; flex-direction: column; gap: 10px; }
.q3 .q3-pg__main { display: flex; flex-direction: column; gap: 10px; }
.q3 .q3-pg__slide { position: relative; display: none; margin: 0; aspect-ratio: 1 / 1; background: var(--q3-sand); overflow: hidden; }
.q3 .q3-pg__slide.is-on { display: block; }
.q3 .q3-pg__slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.q3 .q3-pg__slide.is-worn img { object-fit: cover; object-position: 30% 57%; mix-blend-mode: normal; }
.q3 .q3-pg__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	background: var(--q3-white);
	color: var(--q3-navy);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
.q3 .q3-pg__slide.is-worn .q3-pg__tag { background: var(--q3-navy); color: var(--q3-white); }
.q3 .q3-pg__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.q3 .q3-pg__thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	min-height: 44px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 0;
	background: var(--q3-sand);
	overflow: hidden;
	cursor: pointer;
}
.q3 .q3-pg__thumb[aria-pressed="true"] { border-color: var(--q3-navy); }
.q3 .q3-pg__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.q3 .q3-pg__thumb.is-worn img { object-fit: cover; mix-blend-mode: normal; }
.q3 .q3-pg__cap { font-size: 13.5px; line-height: 1.45; color: var(--q3-ink-3); }

/* Summary */
.q3 .q3-pd__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.q3 .q3-pd__head { display: flex; flex-direction: column; gap: 10px; }
.q3 .q3-pd__eyerow { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.q3 .q3-pd__state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	background: var(--q3-peach);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
.q3 .q3-pd__statedot { width: 8px; height: 8px; border-radius: 50%; background: var(--q3-navy); flex: none; }
.q3 .q3-pd__name { max-width: none; }
.q3 .q3-pd__line { font-size: 17px; line-height: 1.5; }
.q3 .q3-pd__pricerow { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.q3 .q3-pd__price { font-family: var(--q3-f-head); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.q3 .q3-pd__dims { font-size: 15px; color: var(--q3-ink-3); }

/* Buy box */
.q3 .q3-pd__buy { display: flex; flex-direction: column; gap: 20px; }
.q3 .q3-pd__form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.q3 .q3-pd__for { display: flex; flex-direction: column; gap: 8px; }
.q3 .q3-pd__forlabel { font-size: 14px; font-weight: 600; scroll-margin-top: 120px; }
.q3 .q3-gift { display: flex; flex-direction: column; }
.q3 .q3-gift__seg {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1.5px solid var(--q3-navy);
	border-radius: var(--q3-radius);
}
.q3 .q3-gift__opt {
	min-height: 46px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--q3-white);
	color: var(--q3-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}
.q3 .q3-gift__opt--gift { border-left: 1.5px solid var(--q3-navy); }
.q3 #pc-gift-0:checked ~ .q3-gift__seg .q3-gift__opt--me,
.q3 #pc-gift-1:checked ~ .q3-gift__seg .q3-gift__opt--gift { background: var(--q3-peach); box-shadow: inset 0 -3px 0 var(--q3-navy); }
.q3 #pc-gift-0:focus-visible ~ .q3-gift__seg .q3-gift__opt--me,
.q3 #pc-gift-1:focus-visible ~ .q3-gift__seg .q3-gift__opt--gift {
	outline: 2px solid var(--q3-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--q3-peach);
	position: relative;
	z-index: 1;
}
.q3 .q3-gift__box {
	display: none;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--q3-peach);
	border: 1.5px solid var(--q3-navy);
	border-top: 0;
	scroll-margin-top: 180px;
}
.q3 #pc-gift-1:checked ~ .q3-gift__box { display: flex; }
.q3 .q3-gift__field { display: flex; flex-direction: column; gap: 6px; }
.q3 .q3-gift__labelrow { display: flex; justify-content: space-between; gap: 12px; }
.q3 .q3-gift__label { font-size: 14px; font-weight: 600; line-height: 1.35; }
.q3 .q3-gift__count { font-size: 14px; color: var(--q3-ink-2); flex: none; }
.q3 .q3-gift__msg { min-height: 0; }
.q3 .q3-gift__note { font-size: 14.5px; line-height: 1.45; }

.q3 .q3-pd__actions { display: flex; flex-direction: column; gap: 8px; }
.q3 .q3-pd__add { display: flex; gap: 8px; }
.q3 .q3-pd__addbtn { flex: 1 1 auto; min-height: 56px; font-size: 17px; }
.q3 .q3-pd__save {
	flex: none;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1.5px solid var(--q3-navy);
	border-radius: var(--q3-radius);
	background: var(--q3-white);
	color: var(--q3-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.q3 .q3-pd__save:hover { background: var(--q3-sand-2); }
.q3 .q3-pd__added {
	padding: 4px 16px;
	border: 2px solid var(--q3-navy);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0 16px;
	flex-wrap: wrap;
	font-size: 15px;
	font-weight: 600;
}
.q3 .q3-pd__addedtext { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.q3 .q3-pd__wc { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.q3 .q3-pd__wc form.cart { flex: 1 1 auto; }

.q3 .q3-pd__trust { list-style: none; margin: 0; padding: 0; border: 1px solid var(--q3-line); border-top: 0; display: flex; flex-direction: column; }
.q3 .q3-pd__trust li {
	padding: 12px 16px;
	border-top: 1px solid var(--q3-line);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	line-height: 1.45;
}
.q3 .q3-pd__trust .q3-icon { flex: none; }
.q3 .q3-pd__trust a { color: var(--q3-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Pair module */
.q3 .q3-pd__pair {
	display: flex;
	min-width: 0;
	border: 1px solid var(--q3-line);
	background: var(--q3-white);
	color: var(--q3-navy);
	text-decoration: none;
}
.q3 .q3-pd__pairmedia { flex: 0 0 112px; width: 112px; min-height: 112px; background: var(--q3-sand); }
.q3 .q3-pd__pairimg { width: 100%; height: 100%; object-fit: cover; }
.q3 .q3-pd__pairbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
.q3 .q3-pd__pairtitle { font-family: var(--q3-f-head); font-size: 17px; line-height: 1.25; font-weight: 600; }
.q3 .q3-pd__pairprice { font-size: 15px; font-weight: 600; }

/* Sold */
.q3 .q3-pd__sold {
	padding: 20px;
	background: var(--q3-sand);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

/* Accordion + maker */
.q3 .q3-pd__detailsin {
	padding-top: var(--q3-sec-pad);
	padding-bottom: var(--q3-sec-pad);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 32px clamp(24px, 4.4cqw, 64px);
}
.q3 .q3-pd__acc { flex: 3 1 420px; min-width: 0; }
.q3 .q3-pd__accbody { padding: 0 0 20px; max-width: 640px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.55; color: var(--q3-ink-2); }
.q3 .q3-pd__accbody :where(ul, ol) { padding-left: 1.3em; }
.q3 .q3-pd__accbody a { color: var(--q3-navy); text-decoration: underline; text-underline-offset: 4px; }
.q3 .q3-pd__maker { flex: 2 1 320px; min-width: 0; border: 1px solid var(--q3-line); display: flex; flex-direction: column; }
.q3 .q3-pd__makerimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.q3 .q3-pd__makerbody { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* Packaging band */
.q3 .q3-pd__packin {
	padding-top: var(--q3-sec-pad);
	padding-bottom: var(--q3-sec-pad);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px clamp(24px, 4.4cqw, 64px);
}
.q3 .q3-pd__packimg { flex: 1 1 320px; min-width: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.q3 .q3-pd__packtext { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.q3 .q3-pd__packeyebrow { color: var(--q3-navy); }
.q3 .q3-pd__packp { font-size: 17px; line-height: 1.55; }

/* Reviews band */
.q3 .q3-pd__reviews .q3-section__in { gap: 20px; }
.q3 .q3-pd__rating { display: flex; align-items: center; gap: 10px; }
.q3 .q3-pd__rating .q3-icon { flex: none; }
.q3 .q3-pd__quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.q3 .q3-pd__quote { margin: 0; padding: 20px; border: 1px solid var(--q3-line); display: flex; flex-direction: column; gap: 8px; }

/* Related */
.q3 .q3-pd__relatedin { gap: 20px; }
.q3 .q3-pd__relh { scroll-margin-top: 24px; }

/* Sticky phone bar */
.q3 .q3-pd__bar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	background: var(--q3-white);
	border-top: 1px solid var(--q3-line-2);
	transition: opacity 0.15s ease;
}
.q3 .q3-pd__bar.is-away { visibility: hidden; opacity: 0; }
.q3 .q3-pd__barin { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q3 .q3-pd__bartext { display: flex; flex-direction: column; min-width: 0; }
.q3 .q3-pd__barprice { font-family: var(--q3-f-head); font-size: 17px; font-weight: 600; line-height: 1.3; }
.q3 .q3-pd__barnote { font-size: 13.5px; line-height: 1.4; color: var(--q3-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q3 .q3-pd__barbtn { flex: none; }

/* ================================================================== breakpoints */
@container (max-width: 1079px) {
	.q3 .q3-shop__fgrid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 899px) {
	.q3 .q3-shop__fgrid { grid-template-columns: minmax(0, 1fr); }
	.q3 .q3-shop__cmpgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.q3 .q3-shop__grow { flex: 1 1 auto; padding: 0 10px; }
}
/* The tab bar (61 px) is fixed below 900 px: the sticky bars sit on top of it. */
@media (max-width: 899px) {
	.q3 .q3-shop__savedwrap,
	.q3 .q3-pd__bar { bottom: calc(61px + env(safe-area-inset-bottom, 0px)); }
}
