/* 7at 7agtak — Marketplace (hat7-marketplace plugin) */

/* Seller line: directly under the SKU, same look as the other meta lines. */
.single-product .product_meta {
	display: flex;
	flex-direction: column;
}
.single-product .product_meta > * {
	order: 3;
}
.single-product .product_meta > .sku_wrapper {
	order: 1;
}
.single-product .product_meta > .h7-soldby {
	order: 2;
	display: block;
	font: inherit;
}
.single-product .product_meta > .h7-soldby a {
	font-weight: 600;
}

/* Vendor registration thank-you card. */
.wcfm_membership_thankyou_content_wrapper,
.wcfm-membership-wrapper:has(.h7-ty),
.wcfm_membership_thankyou_content_wrapper .wcfm_membership_thankyou_content {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}
.h7-ty {
	max-width: 520px;
	margin: 8px auto;
	padding: 32px 24px 24px;
	border: 1px solid var(--border, #DDE4E1);
	border-radius: 20px;
	background: var(--surface, #FFFFFF);
	text-align: center;
	color: var(--text, #263638);
	line-height: 1.8;
}
.h7-ty__icon {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--primary-soft, #E5ECE8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294C50' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2l1.7-7.3H6.1'/%3E%3Cpath d='m10.5 10.6 1.8 1.8 3.4-3.4'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.h7-ty p {
	margin: 0 0 10px;
}
.h7-ty .h7-ty__title {
	font-size: 1.25em;
	font-weight: 700;
	margin-bottom: 12px;
}
.h7-ty .h7-ty__sign {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--border, #DDE4E1);
	color: var(--primary-dark, #294C50);
}
.h7-ty .h7-ty__sign span {
	display: block;
	font-size: .85em;
	letter-spacing: .08em;
	color: var(--text-secondary, #5E6E6C);
}

/* AI assistant (Hazem) — brand petrol, chat-bubble button. CSS-only override. */
#hhz-btn,
#hhz-btn:hover,
#hhz-btn:focus {
	background: linear-gradient(135deg, var(--primary, #537B7B), var(--primary-deep, #1E3B3E)) !important;
	border-radius: 18px 18px 18px 6px !important;
	box-shadow: 0 8px 22px rgba(30, 59, 62, .35) !important;
}
#hhz-btn .hhz-av { background: transparent !important; }
#hhz-btn .hhz-eyes { fill: var(--primary-deep, #1E3B3E) !important; }
#hhz-panel .hhz-head { background: linear-gradient(135deg, var(--primary-dark, #294C50), var(--primary-deep, #1E3B3E)) !important; }
#hhz-panel .hhz-head .hhz-av { background: rgba(255, 255, 255, .16) !important; }
#hhz-panel .hhz-eyes { fill: var(--primary-deep, #1E3B3E) !important; }
#hhz-panel .hhz-form button { background: var(--primary-dark, #294C50) !important; }
#hhz-panel .hhz-form button:hover { background: var(--primary-deep, #1E3B3E) !important; }

/* Product tags duplicate the seller line ("البائع:"), so hide the tags row on the product page. */
.single-product .product_meta .tagged_as { display: none !important; }

/* Buy box (صندوق الشراء) — brand palette: cream box, petrol actions, gold only for the cheaper-offer note. */
.single-product .h7-bb {
	--bb-bg: var(--background, #F7F6F0);
	--bb-line: var(--border, #DDE4E1);
	--bb-ink: var(--text, #263638);
	--bb-muted: var(--text-secondary, #5E6E6C);
	--bb-accent: var(--primary-dark, #294C50);
	--bb-star: var(--accent-dark, #8A6A2F);
	margin: 12px 0 18px;
	padding: 12px 14px;
	border: 1px solid var(--bb-line);
	border-radius: 12px;
	background: var(--bb-bg);
	color: var(--bb-ink);
	font-size: .92em;
	line-height: 1.6;
	clear: both;
}
.single-product .h7-bb__stock { color: var(--success, #3F8F70); font-weight: 700; margin-bottom: 6px; }
.single-product .h7-bb__stock--out { color: var(--danger, #C2410C); }
.single-product .h7-bb__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; }
.single-product .h7-bb__table th,
.single-product .h7-bb__table td { padding: 3px 0; border: 0; background: transparent; vertical-align: top; font-size: 1em; }
.single-product .h7-bb__table th { width: 45%; font-weight: 400; color: var(--bb-muted); text-align: start; }
.single-product .h7-bb a { color: var(--bb-accent); font-weight: 600; text-decoration: none; }
.single-product .h7-bb a:hover { text-decoration: underline; }
.single-product .h7-bb__muted { color: var(--bb-muted); font-size: .9em; }
.single-product .h7-stars { color: var(--bb-star); letter-spacing: 1px; font-size: .9em; }
.single-product .h7-bb__new { padding: 0 7px; border-radius: 999px; background: var(--primary-soft, #E5ECE8); color: var(--bb-muted); font-size: .78em; white-space: nowrap; }
.single-product .h7-bb__better {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
	margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft, #F3EBDD); color: var(--accent-ink, #8A6A2F); font-size: .95em;
}
.single-product .h7-bb a.h7-bb__btn { padding: 4px 12px; border-radius: 8px; background: var(--bb-accent); color: #fff; white-space: nowrap; }
.single-product .h7-bb a.h7-bb__btn:hover { background: var(--primary-deep, #1E3B3E); text-decoration: none; }
.single-product .h7-bb__more { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bb-line); }
.single-product .h7-bb__more summary { cursor: pointer; color: var(--bb-accent); font-weight: 600; list-style: none; }
.single-product .h7-bb__more summary::-webkit-details-marker { display: none; }
.single-product .h7-bb__more summary::after { content: " ›"; }
.single-product .h7-bb__more[open] summary::after { content: " ⌄"; }
.single-product .h7-bb__more ul { list-style: none; margin: 6px 0 0; padding: 0; }
.single-product .h7-bb__offer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px dashed var(--bb-line); }
.single-product .h7-bb__offer:last-child { border-bottom: 0; }
.single-product .h7-bb__offer-buy { white-space: nowrap; }
.single-product .h7-bb a.h7-bb__add { margin-inline-start: 6px; font-size: .9em; }

/* ==========================================================================
   Brand line (2026-10 logo): "— HAT HAGTAK —" with layered petrol / gold /
   cream stripes. Used under the logo in the seller dashboard and the footer;
   the theme header has the same component.
   ========================================================================== */
.h7-tagline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 10px;
	line-height: 1;
	letter-spacing: .42em;
	color: #294C50;
	white-space: nowrap;
}
.h7-tagline > span { margin-inline-end: -.42em; }
.h7-tagline i {
	display: block;
	width: 18px;
	height: 5px;
	border-radius: 2px;
	background: linear-gradient(to bottom, #537B7B 0 34%, #C5A46D 34% 67%, #E3D9C4 67% 100%);
}
/* Footer logo (snippet #14 markup, styled from here — the snippet is not edited):
   the new logo is taller, so size it by height and add the brand line under it. */
.site-footer .hh-logo-foot { display: inline-flex !important; flex-direction: column; align-items: center; gap: 6px; }
.site-footer .hh-logo-foot img.hh-logo-img { width: auto !important; height: 64px !important; max-width: 100% !important; object-fit: contain; }
.site-footer .hh-logo-foot::after {
	content: "HAT HAGTAK";
	direction: ltr;
	padding: 0 28px;
	font-weight: 700;
	font-size: 10px;
	line-height: 1;
	letter-spacing: .42em;
	color: #E9E1CF; /* the footer is dark petrol: light text */
	background:
		linear-gradient(to bottom, #537B7B 0 34%, #C5A46D 34% 67%, #E3D9C4 67% 100%) left center / 18px 5px no-repeat,
		linear-gradient(to bottom, #537B7B 0 34%, #C5A46D 34% 67%, #E3D9C4 67% 100%) right center / 18px 5px no-repeat;
}
