/*
 * 965 Toys - P1 design layer (draft, not deployed).
 * Source: Figma "965 toys" (Home — Premium, Product — Desktop, Mobile components, Color options).
 * Loaded after WoodMart; it only overrides WoodMart's CSS variables and styles a few components.
 * Values marked "confirm" were sampled from a screenshot and must be checked in Figma before production.
 */

:root {
	--t965-navy: #1a0b45;         /* Figma text */
	--t965-ink: #4b4466;          /* body text, derived from navy */
	--t965-red: #e55b38;          /* Figma utility bar and red buttons */
	--t965-yellow: #fcb837;       /* call-to-action buttons (confirm) */
	--t965-yellow-dark: #eaa21f;  /* hover (confirm) */
	--t965-cream: #fff8ef;        /* Figma page background */
	--t965-peach: #fce5cb;        /* Figma trust band */
	--t965-card: #ffffff;
	--t965-line: #f0e3d3;
	--t965-radius: 16px;
	--t965-font: "Zain", Tahoma, Arial, sans-serif;

	--wd-primary-color: var(--t965-red);
	--wd-alternative-color: var(--t965-yellow);
	--wd-text-font: var(--t965-font);
	--wd-title-font: var(--t965-font);
	--wd-entities-title-font: var(--t965-font);
	--wd-text-color: var(--t965-ink);
	--wd-title-color: var(--t965-navy);
	--wd-link-color: var(--t965-navy);
	--wd-brd-radius: var(--t965-radius);
	--wd-form-brd-radius: 999px;
	--btn-accented-bgcolor: var(--t965-yellow);
	--btn-accented-bgcolor-hover: var(--t965-yellow-dark);
	--btn-accented-color: var(--t965-navy);
	--btn-accented-color-hover: var(--t965-navy);
	--btn-accented-brd-radius: 999px;
}

body,
.website-wrapper,
.main-page-wrapper {
	background-color: var(--t965-cream);
	color: var(--t965-ink);
	font-family: var(--t965-font);
}

h1, h2, h3, h4, .title, .wd-entities-title, .product_title {
	font-family: var(--t965-font);
	color: var(--t965-navy);
	font-weight: 800;
}

/* Page-title bands with WoodMart's light text scheme (dark background) keep white titles. */
.page-title.color-scheme-light .title,
.page-title.color-scheme-light h1,
.page-title.color-scheme-light .entry-title,
.wd-page-title.color-scheme-light .title {
	color: #fff !important;
}

/* Buttons: yellow pill for buying, red outline for the secondary action (Figma "Color options"). */
.single_add_to_cart_button,
.add_to_cart_button,
.checkout-button,
#place_order {
	border-radius: 999px !important;
	background-color: var(--t965-yellow) !important;
	color: var(--t965-navy) !important;
	font-weight: 800;
}
.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover {
	background-color: var(--t965-yellow-dark) !important;
}

/* "Buy now" (Figma "اشتر الآن"): full-width yellow outline button under the yellow add to cart. */
.wd-buy-now-btn {
	background-color: transparent !important;
	color: var(--t965-navy) !important;
	border: 2px solid var(--t965-yellow) !important;
	border-radius: 999px !important;
	font-weight: 800;
}
.wd-buy-now-btn:hover {
	background-color: var(--t965-yellow) !important;
	color: var(--t965-navy) !important;
}

/* Utility bar (header top row): red band, white centred text. Content comes from the Header Builder. */
.whb-top-bar {
	background-color: var(--t965-red) !important;
	color: #fff;
	font-weight: 700;
}

/* Main menu: Arabic labels in Zain, no capitals (WoodMart default is uppercase 13 px). */
.wd-header-main-nav .wd-nav > li > a,
.wd-header-main-nav .menu > li > a {
	font-family: var(--t965-font);
	font-size: 15px;
	font-weight: 700;
	text-transform: none;
	color: var(--t965-navy);
}
.wd-header-main-nav .wd-nav > li > a:hover,
.wd-header-main-nav .menu > li.current-menu-item > a {
	color: var(--t965-red);
}

/* Main header row: cream background like Figma. */
.whb-general-header,
.whb-header-bottom {
	background-color: var(--t965-cream) !important;
}

/* Product card (WoodMart "base" hover). */
.product-grid-item .wd-product-thumb {
	background: var(--t965-card);
	border-radius: var(--t965-radius);
	overflow: hidden;
}
.product-grid-item .wd-entities-title {
	font-size: 15px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-grid-item .price,
.summary .price,
.product_list_widget .amount {
	color: var(--t965-navy) !important;
	font-weight: 800;
}
/* Card actions always visible (Figma): heart on one side, round yellow "+" on the other; no compare or quick view on cards. */
.product-grid-item.wd-hover-base .wd-product-card-hover {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	padding: 0;
	box-shadow: none;
	background: transparent;
}
.product-grid-item.wd-hover-base .wd-more-desc,
.product-grid-item .wd-compare-btn,
.product-grid-item .wcboost-products-compare-button,
.product-grid-item .wd-quick-view-btn,
.product-grid-item .wrap-quickview-button {
	display: none !important;
}
.product-grid-item .wd-bottom-actions {
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}
.product-grid-item .wd-add-btn .add_to_cart_button {
	width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border-radius: 50% !important;
	font-size: 0;
	justify-content: center;
}
.product-grid-item .wd-add-btn .add_to_cart_button::before {
	content: "+";
	font-family: var(--t965-font); /* WoodMart uses its icon font on this pseudo-element */
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	position: static;
	transform: none;
	opacity: 1;
}
.product-grid-item .wd-add-btn .add_to_cart_button > span {
	display: none;
}
/* Figma shows the brand, not the category, under the picture; hide the category line only when the brand label is there. */
.product-grid-item:has(.t965-brand) .wd-product-cats {
	display: none;
}
.t965-brand {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--t965-red);
	margin-bottom: 4px;
}

/* Product page: brand label replaces WoodMart's brand box; rounded quantity stepper; spec table. */
.t965-brand--single {
	font-size: 12px;
	margin-bottom: 6px;
}
.t965-brand--single a {
	color: var(--t965-red);
}
.single-product .summary .wd-product-brands {
	display: none;
}
.single-product .quantity {
	border-radius: 999px;
	overflow: hidden;
}
.woocommerce-product-attributes th {
	color: var(--t965-navy);
	font-weight: 700;
}

/* Trust band and footer stripe helpers for the Elementor/HTML blocks built in P1. */
.t965-trust {
	background: var(--t965-peach);
	color: var(--t965-navy);
	font-weight: 700;
}
.t965-stripe {
	height: 6px;
	background: linear-gradient(90deg, #e55b38 0 20%, #fcb837 20% 40%, #4caf7a 40% 60%, #3b82c4 60% 80%, #8e5cc8 80% 100%);
}

/* Home (parts/home-p1.html). */
.t965-home {
	font-family: var(--t965-font);
	color: var(--t965-ink);
}
.t965h-hero {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 32px;
	align-items: center;
	padding: 72px 6vw;
	background: linear-gradient(120deg, var(--t965-peach), var(--t965-cream));
	border-radius: 0 0 32px 32px;
}
.t965h-hero h1 {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.05;
	margin: 0 0 12px;
}
.t965h-kicker {
	font-weight: 800;
	letter-spacing: .12em;
	color: var(--t965-red);
	margin: 0 0 8px;
}
.t965h-btn {
	display: inline-flex;
	padding: 14px 30px;
	border-radius: 999px;
	background: var(--t965-yellow);
	color: var(--t965-navy);
	font-weight: 800;
	margin-top: 12px;
}
.t965h-hero__media:empty {
	display: none;
}
.t965h-hero:has(.t965h-hero__media:empty) {
	grid-template-columns: 1fr;
	text-align: center;
}
.t965h-section {
	padding: 56px 6vw 8px;
}
.t965h-section__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
}
.t965h-section__head h2 {
	font-size: clamp(24px, 3vw, 34px);
	margin: 0;
}
.t965h-section__head a {
	color: var(--t965-red);
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
	margin-inline-start: 12px;
}
.t965h-cats {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
}
.t965h-cats a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var(--t965-navy);
	font-weight: 800;
}
.t965h-cats img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background: #fff;
	border-radius: 50%;
	padding: 14%;
}
.t965h-brands__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.t965h-brands__list a {
	padding: 12px 22px;
	border-radius: 999px;
	background: #fff;
	color: var(--t965-navy);
	font-weight: 800;
	border: 1px solid var(--t965-line);
}
@media (max-width: 768px) {
	.t965h-hero {
		grid-template-columns: 1fr;
		padding: 48px 20px;
	}
	.t965h-section {
		padding: 40px 16px 4px;
	}
	.t965h-cats {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
}

/* Footer (parts/footer-p1.html). */
.t965-footer {
	background: var(--t965-cream);
	color: var(--t965-ink);
	font-family: var(--t965-font);
}
.t965-footer__inner {
	max-width: 1296px;
	margin: 0 auto;
	padding: 48px 24px 24px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
}
.t965-footer__logo {
	font-size: 30px;
	font-weight: 800;
	color: var(--t965-navy);
}
.t965-footer h4 {
	font-size: 16px;
	margin: 0 0 12px;
	color: var(--t965-navy);
}
.t965-footer__col a {
	display: block;
	padding: 4px 0;
	color: var(--t965-ink);
}
.t965-footer__col a:hover {
	color: var(--t965-red);
}
.t965-footer [data-t965-pending]:empty {
	display: none;
}
.t965-footer__bottom {
	max-width: 1296px;
	margin: 0 auto;
	padding: 16px 24px 28px;
	border-top: 1px solid var(--t965-line);
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}
@media (max-width: 768px) {
	.t965-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
	.t965-footer__brand {
		grid-column: 1 / -1;
	}
}
