/* Farhina Core — additions on top of the theme's single-product layout (own fpe- classes only). */
.fpe-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fpe-chip {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 5px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 700; line-height: 1.6;
	background: #f1f5f9; color: #475569; text-decoration: none;
}
a.fpe-chip:hover { background: #e2e8f0; }
.fpe-chip--brand { background: #eaf7f6; color: #1a7f78; }
a.fpe-chip--brand:hover { background: #d9f1ef; }
.fpe-chip--ok { background: #ecfdf5; color: #047857; }
.fpe-chip--warn { background: #fef2f2; color: #b91c1c; }

.fpe-card {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.7);
	border-radius: 32px;
	padding: 20px;
}
.fpe-card__title { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #0f172a; }
.fpe-keyspecs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.fpe-keyspecs__grid > div { background: #f8fafc; border-radius: 16px; padding: 10px 12px; min-width: 0; }
.fpe-keyspecs__grid dt { margin: 0; font-size: 12px; color: #64748b; }
.fpe-keyspecs__grid dd { margin: 2px 0 0; font-size: 13px; font-weight: 800; color: #0f172a; overflow-wrap: anywhere; }
.fpe-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 800; color: #1a7f78; text-decoration: none; }
.fpe-link:hover { text-decoration: underline; }

.fpe-extras { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fpe-extras:empty { display: none; }
.fpe-cashback {
	padding: 12px 14px; border-radius: 18px;
	background: linear-gradient(135deg, #ecfdf5, #eaf7f6); border: 1px solid #c7ece8;
}
.fpe-cashback strong { display: block; font-size: 13.5px; font-weight: 900; color: #1a7f78; }
.fpe-cashback small { display: block; margin-top: 2px; font-size: 11.5px; color: #475569; }

@media (max-width: 767.98px) {
	.fpe-card { border-radius: 24px; padding: 16px; }
	.fpe-chips { margin-top: 10px; }
}

/* Installments (DigiPay + TorobPay) collapsed into one row. */
.fpe-inst { margin-top: 12px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; overflow: hidden; }
.fpe-inst > summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.fpe-inst > summary::-webkit-details-marker { display: none; }
.fpe-inst__icon { display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #eaf7f6; color: #1a7f78; }
.fpe-inst__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fpe-inst__text b { font-size: 13.5px; font-weight: 800; color: #0f172a; }
.fpe-inst__text small { font-size: 12px; color: #475569; }
.fpe-inst__text small .woocommerce-Price-amount { font-weight: 800; color: #1a7f78; }
.fpe-inst__chev { flex: none; width: 9px; height: 9px; margin: -4px 4px 0; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform .2s; }
.fpe-inst[open] .fpe-inst__chev { margin-top: 4px; transform: rotate(-135deg); }
.fpe-inst__body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.fpe-inst__body > * { margin: 0 !important; }

/* Trust boxes on phones: a compact 2x2 grid (icon beside a short title, one-line note). */
@media (max-width: 639.98px) {
	.fpe-trust { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
	.fpe-trust > div { gap: 8px !important; padding: 10px !important; border-radius: 18px !important; min-width: 0; }
	.fpe-trust > div > span:first-child { width: 34px !important; height: 34px !important; border-radius: 11px !important; }
	.fpe-trust > div > span:first-child svg { width: 18px; height: 18px; }
	.fpe-trust > div > span:last-child { min-width: 0; }
	.fpe-trust strong { font-size: 12px; font-weight: 800; line-height: 1.55; }
	.fpe-trust .text-tiny { font-size: 10.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* "Sealed & original" chip. */
.fpe-chip--seal { background: #fff7ed; color: #c2410c; }

/* Review summary above the review list. */
.fpe-rs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 28px; align-items: center; margin-bottom: 20px; padding: 18px 20px; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; }
.fpe-rs__score { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; }
.fpe-rs__score strong { font-size: 36px; font-weight: 900; line-height: 1.1; color: #0f172a; }
.fpe-rs__score small { font-size: 12px; color: #94a3b8; }
.fpe-rs__note { margin-top: 4px; font-size: 11.5px; color: #64748b; text-align: center; }
.fpe-stars { position: relative; display: inline-block; margin-top: 4px; font-size: 17px; line-height: 1; letter-spacing: 2px; color: #e2e8f0; white-space: nowrap; }
.fpe-stars::before { content: "★★★★★"; }
.fpe-stars::after { content: "★★★★★"; position: absolute; top: 0; inset-inline-start: 0; width: var(--fpe-r, 0%); overflow: hidden; color: #f59e0b; }
.fpe-rs__bars { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fpe-rs__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 12px; color: #64748b; }
.fpe-rs__row i { display: block; height: 7px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.fpe-rs__row b { display: block; height: 100%; border-radius: 99px; background: #f59e0b; }
.fpe-rs__row span:last-child { text-align: center; }
.fpe-rs__cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed #e2e8f0; }
.fpe-rs__cta p { margin: 0; font-size: 13px; color: #475569; }
.fpe-rs__btn { flex: none; height: 42px; padding: 0 20px; border: 0; border-radius: 14px; background: rgb(var(--color-primary-600, 35 167 158)); color: #fff; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: filter .15s; }
.fpe-rs__btn:hover { filter: brightness(0.94); }
.fpe-rs--empty { grid-template-columns: auto minmax(0, 1fr); }
.fpe-rs--empty .fpe-rs__bars { display: none; }
.fpe-rs--empty .fpe-rs__cta { grid-column: auto; padding-top: 0; border-top: 0; }
@media (max-width: 639.98px) {
	.fpe-rs, .fpe-rs--empty { grid-template-columns: minmax(0, 1fr); padding: 16px; }
	.fpe-rs__score { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 8px; }
	.fpe-rs__note { width: 100%; }
	.fpe-rs__cta, .fpe-rs--empty .fpe-rs__cta { flex-direction: column; align-items: stretch; text-align: center; }
	.fpe-rs__btn { width: 100%; }
}


/* "How to use" tab. */
.fpe-usage { line-height: 2.1; color: #334155; }

/* Phones/tablets: the gallery already swipes; its thumbnail row becomes dots. */
@media (max-width: 1023.98px) {
	.fpe-gdots .woocommerce-product-gallery .flex-control-thumbs { display: flex !important; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 2px !important; padding: 0 !important; }
	.fpe-gdots .woocommerce-product-gallery .flex-control-thumbs li { display: block !important; position: relative; flex: none; width: 7px !important; height: 7px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 99px !important; background: #cbd5e1; overflow: hidden; transition: width .2s, background-color .2s; }
	.fpe-gdots .woocommerce-product-gallery .flex-control-thumbs li.more-images { display: none !important; }
	.fpe-gdots .woocommerce-product-gallery .flex-control-thumbs li img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; opacity: 0; }
	.fpe-gdots .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) { width: 22px !important; background: rgb(var(--color-primary-600, 35 167 158)); }
}

/* Chips with small icons. */
.fpe-chip { gap: 5px; padding: 5px 11px 5px 12px; border: 1px solid transparent; }
.fpe-chip__ico { flex: none; width: 14px; height: 14px; }
.fpe-chip--review { background: #fffbeb; color: #b45309; }
a.fpe-chip--review:hover { background: #fef3c7; }
.fpe-chip--date { background: #f0f9ff; color: #0369a1; }

/* Product rows (theme products widget): spacing inside the product column. */
.fpe-wrow { margin: 32px 0 8px; min-width: 0; }
.fpe-wrow .bazarak-products-widget > .mb-6 { margin-bottom: 16px; }

/* Phones: the theme's "no reviews yet" box is compact (it was ~220px of mostly padding). */
@media (max-width: 639.98px) {
	.single-product #reviews #comments > div.text-center { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 14px !important; border-radius: 20px !important; }
	.single-product #reviews #comments > div.text-center > :first-child:not(h2):not(h3):not(p) { display: none; }
	.single-product #reviews #comments > div.text-center h2,
	.single-product #reviews #comments > div.text-center h3,
	.single-product #reviews #comments > div.text-center strong { margin: 0 !important; font-size: 14px !important; }
	.single-product #reviews #comments > div.text-center p { margin: 2px 0 0 !important; font-size: 12.5px !important; line-height: 1.8; }
}
