/*
Theme Name: Store Child
Description: قالب فرعي لـ hanout — صفحة رئيسية وصفحة منتج وفورم طلب محسّنة، آراء الزبناء، وأسعار التوصيل حسب المنطقة. اللون والشعار يُضبطان من المظهر › تخصيص.
Author: Berchih
Template: hanout
Version: 2.0.0
Text Domain: store-child
*/

/* ===== Home ===== */
.ely-home {
	--ely-maroon: var(--b-darker, #6b1d3a);
	--ely-ink: var(--b-ink, #3d1424);
	--ely-muted: var(--b-muted, #6e4a59);
	--ely-pink: var(--b-primary, #c8336f);
	--ely-pink-dark: var(--b-primary-dark, #a8235a);
	--ely-blush: var(--b-soft, #fcebf0);
	--ely-blush-2: var(--b-soft2, #f8dbe4);
	--ely-line: var(--b-line, #f1d6df);
	--ely-cream: var(--b-cream, #fdf6f3);
	--ely-green: #1f7a4d;
	background: var(--ely-cream);
	color: var(--ely-ink);
	direction: rtl;
	padding-bottom: 40px;
}
.ely-home *,
.ely-home *::before,
.ely-home *::after { box-sizing: border-box; }
.ely-home img { max-width: 100%; height: auto; }
.ely-home a { text-decoration: none; }
.ely-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ely-sec { padding-top: 56px; }

.ely-h2 { margin: 0 0 6px; font-size: 34px; font-weight: 800; line-height: 1.35; color: var(--ely-maroon); }
.ely-sub { margin: 0; font-size: 17px; color: var(--ely-muted); }
.ely-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.ely-sec-head--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.ely-more { font-weight: 700; font-size: 16px; color: var(--b-deep, #8f1d4c); text-decoration: underline !important; }

.ely-badge { display: inline-block; align-self: flex-start; background: var(--ely-blush); color: var(--b-deep, #8f1d4c); font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 999px; }

.ely-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 32px; border-radius: 999px;
	background: var(--ely-pink); color: #fff !important; font-weight: 700; font-size: 17px;
	box-shadow: 0 8px 18px rgba(var(--b-primary-rgb, 200,51,111), .28);
	transition: background .2s, transform .2s;
}
.ely-btn:hover { background: var(--ely-pink-dark); transform: translateY(-1px); }
.ely-btn--wa { background: #fff; color: var(--ely-green) !important; border: 2px solid var(--ely-green); box-shadow: none; }
.ely-btn--wa:hover { background: #eef8f2; }
.ely-btn--light { background: #fff; color: var(--ely-maroon) !important; box-shadow: none; }
.ely-btn--light:hover { background: var(--ely-blush); }

/* Hero */
.ely-hero { display: flex; align-items: stretch; gap: 32px; padding-top: 36px; }
.ely-hero__text { flex: 1 1 520px; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px 8px; }
.ely-hero__title { margin: 0; font-size: 52px; line-height: 1.25; font-weight: 800; color: var(--ely-maroon); }
.ely-hero__desc { margin: 0; font-size: 19px; line-height: 1.8; color: var(--b-ink2, #5c3344); max-width: 540px; }
.ely-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ely-hero__media { flex: 1 1 520px; min-height: 380px; max-height: 480px; border-radius: 32px; overflow: hidden; background: var(--ely-blush-2); }
.ely-hero__media img { width: 100%; height: 100%; min-height: 380px; max-height: 480px; object-fit: cover; display: block; }

/* Perks */
.ely-perks { margin-top: 24px; background: #fff; border: 1px solid var(--ely-line); border-radius: 22px; padding: 18px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ely-perk { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px; }
.ely-perk__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--ely-blush); color: var(--ely-pink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ely-perk__icon svg { width: 22px; height: 22px; }
.ely-perk strong { display: block; font-size: 16px; color: var(--ely-ink); }
.ely-perk span { display: block; font-size: 13px; color: var(--ely-muted); }

/* Categories */
.ely-cats { display: grid; grid-template-columns: repeat(var(--ely-cat-cols, 8), minmax(0, 1fr)); gap: 14px; }
.ely-cat {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--ely-line); border-radius: 20px;
	color: var(--ely-ink) !important; box-shadow: 0 6px 16px rgba(var(--b-darker-rgb, 107,29,58), .07);
	transition: transform .25s, box-shadow .25s;
}
.ely-cat:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(var(--b-darker-rgb, 107,29,58), .14); }
.ely-cat__img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ely-blush); }
.ely-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ely-cat:hover .ely-cat__img img { transform: scale(1.06); }
.ely-cat__name { padding: 10px 8px 14px; min-height: 64px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.4; }

/* Products */
.ely-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ely-prod { background: #fff; border: 1px solid var(--ely-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.ely-prod:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(var(--b-darker-rgb, 107,29,58), .12); }
.ely-prod__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--ely-blush); }
.ely-prod__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ely-prod__off { position: absolute; top: 12px; right: 12px; background: var(--ely-pink); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.ely-prod__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.ely-prod__cat { font-size: 13px; color: var(--b-deep, #8f1d4c); font-weight: 600; }
.ely-prod__name { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 700; flex-grow: 1; }
.ely-prod__name a { color: var(--ely-ink) !important; }
.ely-prod__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ely-prod__price ins { text-decoration: none; font-size: 20px; font-weight: 800; color: var(--ely-maroon); }
.ely-prod__price del { font-size: 15px; color: var(--b-muted2, #8a6a77); }
.ely-prod__price > .amount, .ely-prod__price > span > .amount { font-size: 20px; font-weight: 800; color: var(--ely-maroon); }
.ely-prod__btn { margin-top: 4px; display: block; text-align: center; background: var(--ely-pink); color: #fff !important; font-weight: 700; font-size: 16px; padding: 11px 8px; border-radius: 12px; transition: background .2s; }
.ely-prod__btn:hover { background: var(--ely-pink-dark); }

/* Promo */
.ely-promo { background: var(--ely-maroon); border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.ely-promo__text { flex: 1 1 460px; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px; color: #fff; }
.ely-promo__text .ely-badge { background: rgba(255, 255, 255, .14); color: #fff; }
.ely-promo__title { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.35; color: #fff; }
.ely-promo__desc { margin: 0; font-size: 18px; line-height: 1.8; color: var(--b-soft2, #f6d9e3); }
.ely-promo__media { flex: 1 1 380px; min-height: 300px; position: relative; }
.ely-promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Steps */
.ely-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ely-step { background: #fff; border: 1px solid var(--ely-line); border-radius: 22px; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.ely-step__n { width: 54px; height: 54px; border-radius: 50%; background: var(--ely-pink); color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ely-step > div { display: flex; flex-direction: column; gap: 6px; }
.ely-step strong { font-size: 19px; }
.ely-step > div span { font-size: 15px; color: var(--ely-muted); line-height: 1.7; }

/* Mobile WhatsApp bar */
.ely-wa-bar { display: none; }

@media (max-width: 1100px) {
	.ely-cats { --ely-cat-cols: 4 !important; }
	.ely-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ely-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.ely-wrap { padding: 0 14px; }
	.ely-sec { padding-top: 30px; }
	.ely-h2 { font-size: 22px; }
	.ely-sub { font-size: 14px; }
	.ely-sec-head { margin-bottom: 14px; }

	.ely-hero { padding-top: 14px; display: block; position: relative; }
	.ely-hero__media { min-height: 0; height: 360px; border-radius: 24px; }
	.ely-hero__media img { min-height: 0; height: 360px; }
	.ely-hero__text {
		position: absolute; inset: auto 14px 0 14px; padding: 70px 18px 18px; gap: 10px;
		border-radius: 0 0 24px 24px;
		background: linear-gradient(180deg, rgba(61, 20, 36, 0) 0%, rgba(61, 20, 36, .85) 55%);
	}
	.ely-hero__text .ely-badge, .ely-hero__desc, .ely-hero__cta .ely-btn--wa { display: none; }
	.ely-hero__title { font-size: 28px; color: #fff; }
	.ely-hero__title br { display: none; }
	.ely-btn { min-height: 44px; padding: 10px 26px; font-size: 16px; }

	.ely-perks { padding: 0; border: 0; background: none; gap: 8px; margin-top: 14px; }
	.ely-perk { background: #fff; border: 1px solid var(--ely-line); border-radius: 14px; padding: 10px; justify-content: flex-start; gap: 8px; }
	.ely-perk__icon { width: 30px; height: 30px; }
	.ely-perk__icon svg { width: 16px; height: 16px; }
	.ely-perk strong { font-size: 13px; }
	.ely-perk span { display: none; }

	.ely-sec-head--center { align-items: flex-start; text-align: right; }
	.ely-cats { display: flex; overflow-x: auto; gap: 10px; margin: 0 -14px; padding: 0 14px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.ely-cats::-webkit-scrollbar { display: none; }
	.ely-cat { flex: 0 0 96px; background: none; border: 0; box-shadow: none; align-items: center; scroll-snap-align: start; }
	.ely-cat:hover { transform: none; box-shadow: none; }
	.ely-cat__img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--ely-blush-2); }
	.ely-cat__name { padding: 6px 0 0; min-height: 0; font-size: 13px; }

	.ely-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ely-prod { border-radius: 16px; }
	.ely-prod__off { top: 8px; right: 8px; font-size: 12px; padding: 2px 9px; }
	.ely-prod__body { padding: 10px; gap: 6px; }
	.ely-prod__cat { display: none; }
	.ely-prod__name { font-size: 14px; }
	.ely-prod__price ins, .ely-prod__price > .amount { font-size: 16px; }
	.ely-prod__price del { font-size: 12px; }
	.ely-prod__btn { font-size: 14px; padding: 10px 6px; border-radius: 10px; }

	.ely-promo { border-radius: 22px; }
	.ely-promo__text { padding: 24px 20px; gap: 10px; }
	.ely-promo__title { font-size: 22px; }
	.ely-promo__desc { font-size: 15px; }
	.ely-promo__media { display: none; }

	.ely-steps { grid-template-columns: 1fr; gap: 8px; }
	.ely-step { flex-direction: row; text-align: right; padding: 12px 14px; gap: 12px; border-radius: 16px; }
	.ely-step__n { width: 40px; height: 40px; font-size: 18px; flex-shrink: 0; }
	.ely-step strong { font-size: 16px; display: block; }
	.ely-step > div span { font-size: 13px; }

	body.ely-has-wa-bar { padding-bottom: 76px; }
	body.ely-has-wa-bar .callus-icon { display: none; }
	.ely-wa-bar {
		display: flex; align-items: center; justify-content: center; gap: 8px;
		position: fixed; z-index: 999; bottom: 14px; left: 14px; right: 14px; height: 52px;
		border-radius: 999px; background: var(--ely-green, #1f7a4d); color: #fff !important;
		font-weight: 800; font-size: 16px; box-shadow: 0 8px 20px rgba(31, 122, 77, .35); text-decoration: none;
	}
	.ely-wa-bar svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.ely-cat, .ely-prod, .ely-btn, .ely-cat__img img { transition: none; }
}

/* =====================================================================
 * Shared tokens for shop & product pages
 * =================================================================== */
body.ely-single,
body.ely-shop {
	--ely-maroon: var(--b-darker, #6b1d3a);
	--ely-ink: var(--b-ink, #3d1424);
	--ely-muted: var(--b-muted, #6e4a59);
	--ely-pink: var(--b-primary, #c8336f);
	--ely-pink-dark: var(--b-primary-dark, #a8235a);
	--ely-blush: var(--b-soft, #fcebf0);
	--ely-blush-2: var(--b-soft2, #f8dbe4);
	--ely-line: var(--b-line, #f1d6df);
	--ely-cream: var(--b-cream, #fdf6f3);
	--ely-green: #1f7a4d;
	background: var(--ely-cream);
}

/* ---------- Product cards (shop, categories, related products) ---------- */
body.ely-shop .row-items [class*="col-"],
body.ely-single .row-items [class*="col-"] { border: 0 !important; margin-bottom: 20px; }
.ely-shop .item-product,
.ely-single .item-product {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ely-line) !important;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: none;
	transition: transform .25s, box-shadow .25s;
	padding: 0 !important;
}
.ely-shop .item-product:hover,
.ely-single .item-product:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(var(--b-darker-rgb, 107,29,58), .12); }
.ely-shop .item-product .item-thumb,
.ely-single .item-product .item-thumb { margin: 0; border: 0 !important; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ely-blush); }
.ely-shop .item-product .item-thumb img,
.ely-single .item-product .item-thumb img { width: 100%; height: 100%; object-fit: cover; border: 0 !important; }
.ely-shop .item-product .onsale,
.ely-single .item-product .onsale {
	top: 12px; right: 12px; left: auto; z-index: 2;
	background: var(--ely-pink) !important; color: #fff; border-radius: 999px;
	font-size: 13px; font-weight: 700; padding: 3px 12px; line-height: 1.6; min-height: 0; min-width: 0;
}
.ely-shop .item-product .item-content,
.ely-single .item-product .item-content { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; text-align: right; }
.ely-shop .item-product .item-meta,
.ely-single .item-product .item-meta { margin: 0; }
.ely-shop .item-product .item-categories a,
.ely-single .item-product .item-categories a { color: var(--b-deep, #8f1d4c) !important; font-size: 13px; font-weight: 600; }
.ely-shop .item-product .item-title,
.ely-single .item-product .item-title { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; flex-grow: 1; }
.ely-shop .item-product .item-title a,
.ely-single .item-product .item-title a { color: var(--ely-ink) !important; }
.ely-shop .item-product .price,
.ely-single .item-product .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin: 2px 0 6px; color: var(--ely-maroon) !important; }
.ely-shop .item-product .price ins,
.ely-single .item-product .price ins { text-decoration: none; font-size: 19px; font-weight: 800; color: var(--ely-maroon) !important; }
.ely-shop .item-product .price del,
.ely-single .item-product .price del { font-size: 14px; color: var(--b-muted2, #8a6a77) !important; opacity: 1; }
.ely-shop .item-product .button,
.ely-single .item-product .button {
	display: block; width: 100%; margin: auto 0 0; padding: 11px 8px;
	background: var(--ely-pink) !important; background-image: none !important; color: #fff !important;
	border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; text-align: center; line-height: 1.5;
}
.ely-shop .item-product .button:hover,
.ely-single .item-product .button:hover { background: var(--ely-pink-dark) !important; }
.ely-shop .item-product .button::before,
.ely-shop .item-product .button::after,
.ely-single .item-product .button::before,
.ely-single .item-product .button::after { display: none !important; }

/* ---------- Shop / category page ---------- */
.ely-shop .section-heading { margin-bottom: 8px; }
.ely-shop .section-heading .section-title { font-size: 34px; font-weight: 800; color: var(--ely-maroon); }
.ely-shop .section-heading .section-title::after { background: var(--ely-pink) !important; }
.ely-shop .woocommerce-products-header { display: none; }
.ely-shop .term-description { text-align: center; color: var(--ely-muted); max-width: 720px; margin: 0 auto 16px; }

.ely-chips {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin: 6px 0 22px;
}
.ely-chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px;
	background: #fff; border: 1px solid var(--ely-line); border-radius: 999px;
	color: var(--ely-ink) !important; font-size: 15px; font-weight: 700; white-space: nowrap;
	transition: background .2s, border-color .2s;
}
.ely-chip:hover { border-color: var(--ely-pink); }
.ely-chip.is-active { background: var(--ely-pink); border-color: var(--ely-pink); color: #fff !important; }

.ely-shop .shop-actions {
	background: #fff !important; border: 1px solid var(--ely-line); border-radius: 16px;
	padding: 10px 16px; margin-bottom: 22px;
}
.ely-shop .shop-actions select { border-radius: 10px; border-color: var(--ely-line); }
.ely-shop .woocommerce-pagination a,
.ely-shop .woocommerce-pagination span { border-radius: 10px; }
.ely-shop .woocommerce-pagination .current { background: var(--ely-pink); color: #fff !important; border-color: var(--ely-pink); }

/* ---------- Single product ---------- */
.ely-single .ely-product { padding-top: 10px; }
.ely-pd {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}
.ely-pd > * { min-width: 0; }
.ely-pd__gallery { position: relative; }
.ely-pd__gallery .onsale { display: none !important; }
.ely-pd__flag {
	position: absolute; top: 14px; left: 14px; z-index: 5;
	background: var(--ely-pink); color: #fff; font-size: 15px; font-weight: 800;
	padding: 4px 14px; border-radius: 999px;
}
.ely-single .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.ely-single .woocommerce-product-gallery__wrapper,
.ely-single .woocommerce-product-gallery .flex-viewport {
	border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--ely-line) !important;
}
.ely-single .woocommerce-product-gallery__image img { border: 0 !important; }
.ely-single .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px !important; padding: 0; }
.ely-single .woocommerce-product-gallery .flex-control-thumbs li { width: 72px !important; float: none !important; margin: 0 !important; }
.ely-single .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 14px; border: 2px solid transparent !important; opacity: .7; transition: opacity .2s, border-color .2s; }
.ely-single .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.ely-single .woocommerce-product-gallery .flex-control-thumbs img:hover { border-color: var(--ely-pink) !important; opacity: 1; }

.ely-pd__summary { display: flex; flex-direction: column; gap: 14px; }
.ely-pd__head { display: flex; flex-direction: column; gap: 10px; }
.ely-pd__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ely-pd__cats a { background: var(--ely-blush); color: var(--b-deep, #8f1d4c) !important; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.ely-pd__title { margin: 0 !important; font-size: 32px !important; line-height: 1.35 !important; font-weight: 800 !important; color: var(--ely-maroon) !important; }
.ely-pd__subhead { margin: -4px 0 0; color: var(--ely-muted); font-size: 17px; }
.ely-pd__price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ely-pd__price .price { display: flex; align-items: baseline; gap: 10px; margin: 0 !important; color: var(--ely-maroon) !important; }
.ely-pd__price .price ins { text-decoration: none; font-size: 32px; font-weight: 800; color: var(--ely-maroon) !important; }
.ely-pd__price .price > .amount,
.ely-pd__price .price > span > .amount { font-size: 32px; font-weight: 800; color: var(--ely-maroon) !important; }
.ely-pd__price .price del { font-size: 19px; color: var(--b-muted2, #8a6a77) !important; opacity: 1; }
.ely-pd__save { background: #eaf6ef; color: var(--ely-green); font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.ely-pd__save .amount, .ely-pd__save bdi { color: inherit !important; font-size: inherit !important; }
.ely-pd__excerpt { color: var(--ely-muted); font-size: 16px; line-height: 1.8; }
.ely-pd__excerpt p { margin: 0 0 6px; }
.ely-pd__perks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ely-pd__perks li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ely-line); border-radius: 14px; padding: 10px; font-size: 14px; font-weight: 700; color: var(--ely-ink); margin: 0; }
.ely-pd__perks svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ely-pink); }

/* COD order form (hanout) */
.ely-single .ely-pd__form { margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important; }
.ely-single #codplugin-checkout {
	margin-top: 0 !important; padding: 22px !important;
	border: 2px solid var(--ely-pink) !important; border-radius: 22px !important;
	background: #fff !important; box-shadow: 0 12px 30px rgba(var(--b-primary-rgb, 200,51,111), .10);
}
.ely-single .codplugin-checkout-title h3 { color: var(--ely-maroon) !important; font-size: 18px !important; font-weight: 800 !important; }
.ely-single #codplugin_woo_single_form input,
.ely-single #codplugin_state,
.ely-single #codplugin_city,
.ely-single #codplugin_woo_single_form select {
	height: 52px !important; border: 1.5px solid var(--b-line2, #e7bccb) !important; border-radius: 12px !important;
	background: var(--ely-cream) !important; color: var(--ely-ink) !important; font-size: 16px !important;
}
.ely-single #codplugin_woo_single_form input:focus,
.ely-single #codplugin_woo_single_form select:focus { border-color: var(--ely-pink) !important; outline: 3px solid rgba(var(--b-primary-rgb, 200,51,111), .18); outline-offset: 0; background: #fff !important; }
.ely-single #codplugin-checkout .form-qte { border-radius: 12px !important; border-color: var(--b-line2, #e7bccb) !important; overflow: hidden; }
.ely-single #codplugin-checkout .form-qte span { color: var(--ely-maroon) !important; }
.ely-single #codplugin-checkout input[type="submit"],
.ely-single #nrwooconfirm input[type="submit"] {
	height: 56px !important; border-radius: 14px !important; border: 0 !important;
	background: var(--ely-pink) !important; background-image: none !important; color: #fff !important;
	font-size: 18px !important; font-weight: 800 !important; box-shadow: 0 8px 18px rgba(var(--b-primary-rgb, 200,51,111), .3);
}
.ely-single #codplugin-checkout input[type="submit"]:hover { background: var(--ely-pink-dark) !important; }
.ely-single #codplugin-checkout .custom-atc-btn {
	border-radius: 14px !important; background: #fff !important; background-image: none !important;
	color: var(--ely-maroon) !important; border: 2px solid var(--ely-maroon) !important; font-weight: 800 !important;
}
.ely-single .whatsapp-order-section #whatsapp-orders,
.ely-single #whatsapp-orders {
	border-radius: 14px !important; background: var(--ely-green) !important; color: #fff !important; font-weight: 800 !important; border: 0 !important;
}
.ely-single #codplugin_order_history,
.ely-single #codplugin_show_hide { border-radius: 14px !important; border-color: var(--ely-line) !important; background: var(--ely-cream) !important; }
.ely-single #codplugin_order_history { background: var(--ely-blush) !important; }

.ely-pd__wa { display: inline-flex; align-items: center; gap: 8px; color: var(--ely-green) !important; font-weight: 700; font-size: 15px; align-self: flex-start; }
.ely-pd__wa svg { width: 20px; height: 20px; }

.ely-pd__desc {
	margin: 40px 0 10px; padding: 28px 32px; background: #fff;
	border: 1px solid var(--ely-line); border-radius: 24px;
}
.ely-pd__desc-title { margin: 0 0 14px; font-size: 24px; font-weight: 800; color: var(--ely-maroon); }
.ely-pd__desc-body { font-size: 16px; line-height: 1.9; color: var(--b-ink2, #4a2a37); }
.ely-pd__desc-body img { border-radius: 16px; }

/* Related / upsells heading */
.ely-single .related > h2,
.ely-single .upsells > h2,
.ely-single .section-title { font-size: 26px; font-weight: 800; color: var(--ely-maroon) !important; }
.ely-single .section-title::after { background: var(--ely-pink) !important; }

/* Sticky "buy now" bar (hanout) */
.ely-single .sticky-atc-btn a { background: var(--ely-pink) !important; background-image: none !important; border-radius: 999px !important; font-weight: 800 !important; }

@media (max-width: 991px) {
	.ely-pd { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 767px) {
	.ely-pd__title { font-size: 24px !important; }
	.ely-pd__price .price ins,
	.ely-pd__price .price > .amount { font-size: 26px; }
	.ely-pd__perks { gap: 6px; }
	.ely-pd__perks li { flex-direction: column; text-align: center; font-size: 12px; padding: 8px 4px; gap: 4px; }
	.ely-single #codplugin-checkout { padding: 14px !important; border-radius: 18px !important; }
	.ely-pd__desc { padding: 20px 16px; border-radius: 18px; margin-top: 24px; }
	.ely-pd__desc-title { font-size: 20px; }

	.ely-shop .item-product .item-content,
	.ely-single .item-product .item-content { padding: 10px; gap: 4px; }
	.ely-shop .item-product .item-categories,
	.ely-single .item-product .item-categories { display: none; }
	.ely-shop .item-product .item-title,
	.ely-single .item-product .item-title { font-size: 14px; }
	.ely-shop .item-product .price ins,
	.ely-single .item-product .price ins { font-size: 16px; }
	.ely-shop .item-product .price del,
	.ely-single .item-product .price del { font-size: 12px; }
	.ely-shop .item-product .button,
	.ely-single .item-product .button { font-size: 14px; padding: 10px 6px; border-radius: 10px; }
	.ely-shop .item-product .onsale,
	.ely-single .item-product .onsale { top: 8px; right: 8px; font-size: 12px; padding: 1px 9px; }
	.ely-shop .row-items { margin-left: -5px; margin-right: -5px; }
	.ely-shop .row-items [class*="col-"] { padding-left: 5px; padding-right: 5px; margin-bottom: 10px; }

	.ely-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 4px -15px 16px; padding: 0 15px 4px; scrollbar-width: none; }
	.ely-chips::-webkit-scrollbar { display: none; }
	.ely-chip { min-height: 38px; font-size: 14px; padding: 6px 14px; }
	.ely-shop .section-heading .section-title { font-size: 24px; }
}

/* --- Fixes: neutralize hanout's card wrapper & floating button --- */
body.ely-shop .row-items [class*="col-"],
body.ely-single .row-items [class*="col-"] {
	background: transparent !important; box-shadow: none !important; border: 0 !important; padding-bottom: 0 !important;
}
body.ely-shop .row-items [class*="col-"] .item-product .button,
body.ely-single .row-items [class*="col-"] .item-product .button {
	position: static !important; transform: none !important; left: auto !important; bottom: auto !important;
	width: 100% !important; margin-top: auto !important;
}
body.ely-single #nrwooconfirm.atc-buy-button a.custom-atc-btn,
body.ely-single #nrwooconfirm.atc-buy-button .button {
	background: #fff !important; background-image: none !important; color: var(--ely-maroon) !important;
	border: 2px solid var(--ely-maroon) !important; border-radius: 14px !important; font-weight: 800 !important;
}
body.ely-single #nrwooconfirm.atc-buy-button input[type="submit"] {
	background: var(--ely-pink) !important; background-image: none !important; border-radius: 14px !important;
}
body.ely-single #codplugin_total_price,
body.ely-single .full-price td,
body.ely-single #codplugin_h_o i { color: var(--ely-maroon) !important; }
body.ely-single .woocommerce-tabs {
	margin-top: 20px; padding: 22px 28px; background: #fff;
	border: 1px solid var(--ely-line); border-radius: 24px;
}
body.ely-single .woocommerce-tabs ul.tabs { margin: 0 0 12px; padding: 0; border: 0; }
body.ely-single .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; padding: 0 !important; }
body.ely-single .woocommerce-tabs ul.tabs li a { font-size: 20px; font-weight: 800; color: var(--ely-maroon) !important; }
body.ely-single .woocommerce-noreviews { border-radius: 12px; background: var(--ely-cream) !important; border-color: var(--ely-pink) !important; }
@media (max-width: 767px) { body.ely-single .woocommerce-tabs { padding: 16px; border-radius: 18px; } }

/* --- COD form footer: [qty | confirm] then [add to cart] --- */
body.ely-single #codplugin-checkout .form-footer {
	display: grid !important; grid-template-columns: 140px minmax(0, 1fr) !important; gap: 10px !important; align-items: stretch;
}
body.ely-single #codplugin-checkout .form-footer.sold-individual { grid-template-columns: minmax(0, 1fr) !important; }
body.ely-single #codplugin-checkout .form-footer.sold-individual .form-qte { display: none; }
body.ely-single #nrwooconfirm.atc-buy-button { display: contents !important; }
body.ely-single #codplugin-checkout .form-qte { order: 1; height: 56px; margin: 0 !important; }
body.ely-single #nrwooconfirm.atc-buy-button input[type="submit"] {
	order: 2; width: 100% !important; margin: 0 !important; white-space: normal; line-height: 1.3; padding: 6px 12px !important;
}
body.ely-single #nrwooconfirm.atc-buy-button a.custom-atc-btn {
	order: 3; grid-column: 1 / -1; width: 100% !important; margin: 0 !important; height: 50px;
	display: flex !important; align-items: center; justify-content: center;
}
@media (max-width: 767px) {
	body.ely-single #codplugin-checkout .form-footer { grid-template-columns: 116px minmax(0, 1fr) !important; }
	body.ely-single #nrwooconfirm.atc-buy-button input[type="submit"] { font-size: 16px !important; }
}
body.ely-single #codplugin-checkout .form-footer > .form-qte { grid-column: 1 !important; grid-row: 1 !important; width: 100% !important; }
body.ely-single #nrwooconfirm.atc-buy-button input[type="submit"] { grid-column: 2 !important; grid-row: 1 !important; height: 56px !important; }
body.ely-single #nrwooconfirm.atc-buy-button a.custom-atc-btn { grid-column: 1 / -1 !important; grid-row: 2 !important; }
body.ely-single #codplugin-checkout .form-footer.sold-individual input[type="submit"] { grid-column: 1 !important; }

/* Order summary: keep price + currency on one line */
body.ely-single #codplugin-checkout .summary-product-title + td,
body.ely-single #codplugin-checkout td:last-child { white-space: nowrap; }
body.ely-single #codplugin-checkout .full-price td:last-child { font-weight: 800; font-size: 18px; }
body.ely-single #codplugin-checkout input[type="radio"],
body.ely-single #codplugin-checkout input[type="checkbox"] { accent-color: var(--ely-pink); }

/* ===== Customer reviews ===== */
.ely-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ely-review {
	margin: 0; background: #fff; border: 1px solid var(--ely-line, var(--b-line, #f1d6df)); border-radius: 22px;
	padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.ely-stars { display: inline-flex; gap: 2px; }
.ely-stars svg { width: 18px; height: 18px; }
.ely-stars .on { fill: #e8a317; }
.ely-stars .off { fill: var(--b-line, #ead9df); }
.ely-review__text { margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.8; color: var(--ely-ink, var(--b-ink, #3d1424)); flex-grow: 1; font-style: normal; quotes: none; background: none; }
.ely-review__text::before, .ely-review__text::after { content: none; }
.ely-review__shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--ely-line, var(--b-line, #f1d6df)); max-height: 220px; }
.ely-review__shot img { width: 100%; height: auto; display: block; }
.ely-review__who { display: flex; align-items: center; gap: 10px; }
.ely-review__avatar {
	width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
	background: var(--ely-blush, var(--b-soft, #fcebf0)); color: var(--ely-pink, var(--b-primary, #c8336f));
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.ely-review__meta { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.ely-review__meta strong { font-size: 15px; color: var(--ely-ink, var(--b-ink, #3d1424)); }
.ely-review__meta a, .ely-review__meta span { font-size: 13px; color: var(--b-deep, #8f1d4c) !important; }
.ely-pd__reviews { margin: 28px 0 10px; }

@media (max-width: 991px) {
	.ely-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ely-reviews {
		display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory;
		margin: 0 -14px; padding: 0 14px 6px; scrollbar-width: none;
	}
	.ely-reviews::-webkit-scrollbar { display: none; }
	.ely-review { flex: 0 0 82%; scroll-snap-align: start; padding: 16px; border-radius: 18px; }
	.ely-review__text { font-size: 15px; }
}

/* ===== Review form ===== */
.ely-review__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ely-review__verified { background: #eaf6ef; color: #1f7a4d; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.ely-rf { margin-top: 22px; display: flex; flex-direction: column; align-items: center; }
.ely-rf__open { background: #fff !important; color: var(--ely-maroon, var(--b-darker, #6b1d3a)) !important; border: 2px solid var(--ely-maroon, var(--b-darker, #6b1d3a)); box-shadow: none; }
.ely-rf__open:hover { background: var(--ely-blush, var(--b-soft, #fcebf0)) !important; }
.ely-rf__form {
	width: 100%; max-width: 640px; margin-top: 16px; padding: 22px;
	background: #fff; border: 1px solid var(--ely-line, var(--b-line, #f1d6df)); border-radius: 22px;
	display: flex; flex-direction: column; gap: 14px; text-align: right;
}
.ely-rf__form[hidden] { display: none; }
.ely-rf__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ely-rf__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 700; font-size: 15px; color: var(--ely-ink, var(--b-ink, #3d1424)); }
.ely-rf__field b, .ely-rf__rating b { color: var(--ely-pink, var(--b-primary, #c8336f)); }
.ely-rf__field small { font-weight: 400; color: var(--ely-muted, var(--b-muted, #6e4a59)); }
.ely-rf__field input,
.ely-rf__field select,
.ely-rf__field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-weight: 400; font-size: 16px;
	border: 1.5px solid var(--b-line2, #e7bccb); border-radius: 12px; background: var(--ely-cream, var(--b-cream, #fdf6f3)); color: var(--ely-ink, var(--b-ink, #3d1424));
}
.ely-rf__field textarea { min-height: 110px; resize: vertical; }
.ely-rf__field input:focus, .ely-rf__field select:focus, .ely-rf__field textarea:focus { outline: 3px solid rgba(var(--b-primary-rgb, 200,51,111), .2); border-color: var(--ely-pink, var(--b-primary, #c8336f)); background: #fff; }
.ely-rf__rating { border: 0; margin: 0; padding: 0; }
.ely-rf__rating legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; color: var(--ely-ink, var(--b-ink, #3d1424)); }
.ely-rf__stars { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; direction: ltr; }
.ely-rf__stars input { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ely-rf__stars label { cursor: pointer; padding: 2px; }
.ely-rf__stars svg { width: 36px; height: 36px; fill: var(--b-line, #ead9df); transition: fill .15s; }
.ely-rf__stars input:checked ~ label svg,
.ely-rf__stars label:hover svg,
.ely-rf__stars label:hover ~ label svg { fill: #e8a317; }
.ely-rf__stars input:focus-visible + label { outline: 3px solid var(--ely-pink, var(--b-primary, #c8336f)); border-radius: 6px; }
.ely-rf { position: relative; }
.ely-rf__hp { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.ely-rf__note { margin: 0; font-size: 14px; color: var(--ely-muted, var(--b-muted, #6e4a59)); }
.ely-rf__submit { align-self: flex-start; border: 0; cursor: pointer; }
.ely-rf__submit[disabled] { opacity: .6; cursor: wait; }
.ely-rf__msg { margin: 0; font-weight: 700; }
.ely-rf__msg:empty { display: none; }
.ely-rf__msg.is-ok { color: #1f7a4d; background: #eaf6ef; padding: 12px 14px; border-radius: 12px; }
.ely-rf__msg.is-error { color: var(--b-primary-dark, #a3123a); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) {
	.ely-rf__form { padding: 16px; border-radius: 18px; }
	.ely-rf__row--2 { grid-template-columns: 1fr; }
	.ely-rf__open { width: 100%; }
	.ely-rf__submit { width: 100%; }
}

/* Review photos */
.ely-rf__pick {
	position: relative; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	min-height: 48px; padding: 10px 18px; border: 1.5px dashed var(--b-line2, #e7bccb); border-radius: 12px;
	background: var(--ely-cream, var(--b-cream, #fdf6f3)); color: var(--ely-maroon, var(--b-darker, #6b1d3a)); font-weight: 700; cursor: pointer;
}
.ely-rf__pick:hover, .ely-rf__pick:focus-within { border-color: var(--ely-pink, var(--b-primary, #c8336f)); background: #fff; }
.ely-rf__pick[hidden] { display: none; }
.ely-rf__pick svg { width: 22px; height: 22px; }
.ely-rf__pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ely-rf__previews { display: flex; flex-wrap: wrap; gap: 8px; }
.ely-rf__preview { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ely-line, var(--b-line, #f1d6df)); }
.ely-rf__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ely-rf__rm {
	position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(61, 20, 36, .8); color: #fff; font-size: 18px; line-height: 28px; cursor: pointer;
}
.ely-review__photos { display: flex; gap: 8px; }
.ely-review__photo { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ely-line, var(--b-line, #f1d6df)); }
.ely-review__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ely-review__photo:hover img { transform: scale(1.06); }
dialog.ely-lb { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
dialog.ely-lb::backdrop { background: rgba(20, 6, 12, .82); }
dialog.ely-lb img { display: block; max-width: 94vw; max-height: 86vh; border-radius: 14px; }
.ely-lb__close {
	position: absolute; top: -14px; left: -14px; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: #fff; color: var(--ely-maroon, var(--b-darker, #6b1d3a)); font-size: 26px; line-height: 44px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
@media (max-width: 767px) {
	.ely-review__photo { width: 64px; height: 64px; }
	.ely-lb__close { top: 6px; left: 6px; }
}

/* Brand logo in the header */
.site-branding .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.site-branding .custom-logo-link img.custom-logo { height: 58px; width: auto; max-width: 100%; max-height: none; }
@media (max-width: 991px) { .site-branding .custom-logo-link img.custom-logo { height: 48px; } }
@media (max-width: 480px) { .site-branding .custom-logo-link img.custom-logo { height: 42px; } }
@media (min-width: 992px) {
	/* keep the logo clear of hanout's search icon (absolutely positioned at the start of the header) */
	.head-mast-row .header-branding-wrap { padding-inline-start: 72px; }
	/* logo and menu share the row instead of overlapping (hanout centers the menu absolutely over the whole row) */
	.head-mast-row { flex-wrap: nowrap; }
	.head-mast-row > .header-branding-wrap { position: relative; flex: 0 0 auto; }
	.head-mast-row > .head-nav { position: relative; flex: 1 1 auto; width: auto; min-width: 0; justify-content: center; padding-inline: 16px; }
	.head-mast .head-mast-container { width: min(1360px, 100%); max-width: 100%; }
	.head-mast-row { height: auto; min-height: 80px; }
	.head-nav .nav { max-width: 100%; }
	.head-nav .navigation-main { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
	.head-nav .navigation-main > li { margin: 0 !important; padding: 0 clamp(6px, .9vw, 14px) !important; }
	.head-nav .navigation-main > li > a { margin: 0 !important; padding-block: 10px !important; font-size: clamp(13px, 1.1vw, 16px); }
}
@media (min-width: 992px) and (max-width: 1199px) {
	.site-branding .custom-logo-link img.custom-logo { height: 56px; width: auto; aspect-ratio: auto; }
}

/* Placeholder when no banner image and no products yet */
.store-ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; background: radial-gradient(circle at 30% 30%, var(--b-soft2, #f8dbe4), var(--b-line2, #e7bccb)); }

/* Line under the logo */
.store-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.2; }
.store-brand__line { display: block; font-size: 12px; font-weight: 700; color: var(--b-deep, #8f1d4c); white-space: nowrap; letter-spacing: 0; }
@media (max-width: 991px) {
	.store-brand { gap: 2px; }
	.store-brand__line { font-size: 10.5px; }
	.site-branding .store-brand .custom-logo-link img.custom-logo { height: 40px; }
}
