/*
Theme Name: Zakharif
Theme URI: https://www.instagram.com/zakharif_int
Author: Zakharif Alealamia Advertising Company
Description: Print-on-demand storefront for Zakharif — Printify-style home page, WooCommerce shop styling, Arabic (RTL) and English. Pair with the Zakharif Studio plugin for the design tool, colour swatches, WhatsApp ordering and quotes.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zakharif
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu, translation-ready
WC requires at least: 8.0
*/

:root {
	--aqua: #B7E2E3;
	--aqua-dark: #9fd3d5;
	--brand-grey: #646263;
	--grey: #6D6E71;
	--ink: #1f2021;
	--muted: #4a4b4d;
	--line: #e3e6e6;
	--soft: #f4f7f7;
	--radius: 20px;
	--font: "Archivo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-ar: "Tajawal", "Archivo", system-ui, sans-serif;
	--container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
[lang="ar"], :lang(ar) { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: #000; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
:focus-visible { outline: 3px solid #0b57d0; outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	inset-block-start: 8px; inset-inline-start: 8px; padding: 12px 16px; background: #fff;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 26px;
	border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--accent { background: var(--aqua); color: #000; }
.btn--accent:hover { background: var(--aqua-dark); color: #000; }
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: #2b2b2b; color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: #f1f1f1; color: #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.topbar {
	background: #000; color: var(--aqua);
	font-size: 14px; text-align: center; padding: 9px 16px;
}
.site-header { background: var(--brand-grey); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.site-header__brand { flex: 0 0 auto; }
.site-header__brand img, .site-header__brand .custom-logo { height: 52px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1 1 auto; justify-content: flex-end; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav .menu a {
	display: block; padding: 10px 12px; color: #fff; text-decoration: none;
	font-weight: 600; font-size: 15px; border-radius: 8px;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a { background: rgba(255, 255, 255, .12); color: #fff; }
.site-nav .sub-menu { display: none; }
.site-nav__extra { display: flex; align-items: center; gap: 12px; }
.lang-switch, .lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.lang-switch a { color: #fff; font-weight: 600; text-decoration: none; padding: 10px 6px; display: inline-block; }
.cart-link {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; color: #fff; border-radius: 50%;
}
.cart-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cart-count {
	position: absolute; inset-block-start: 2px; inset-inline-end: 0;
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: var(--aqua); color: #000; font-size: 12px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.cart-count[data-count="0"] { display: none; }
.nav-toggle {
	display: none; margin-inline-start: auto; width: 48px; height: 48px;
	background: none; border: 0; color: #fff; cursor: pointer; border-radius: 10px;
}
.nav-toggle__close { display: none; }

@media (max-width: 1080px) {
	.site-header__inner { flex-wrap: wrap; min-height: 72px; gap: 8px; }
	.site-header__brand img, .site-header__brand .custom-logo { height: 42px; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.site-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-block-end: 16px; }
	.nav-open .site-nav { display: flex; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.site-nav .menu { flex-direction: column; }
	.site-nav__extra { flex-wrap: wrap; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

/* ---------- Hero ---------- */
.hero { background: var(--brand-grey); color: #fff; overflow: hidden; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-block-start: 56px; }
.hero__copy { flex: 1 1 520px; min-width: 0; padding-block-end: 72px; }
.hero__kicker { margin: 0 0 14px; font-family: var(--font-ar); font-size: 22px; color: var(--aqua); }
.hero__title { margin: 0; font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; }
.hero__text { margin: 20px 0 0; font-size: 19px; max-width: 560px; color: #f2f2f2; }
.hero__checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; }
.hero__checks li { display: flex; gap: 8px; align-items: center; }
.hero__checks svg { color: var(--aqua); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 36px; }
.hero__art { flex: 1 1 360px; min-width: 0; position: relative; display: flex; justify-content: center; }
.hero__logo { position: relative; width: 100%; max-width: 420px; display: block; }
.hero__mandala { position: absolute; inset-block-start: -40px; inset-inline-end: -60px; width: 360px; opacity: .55; }

.trust { background: var(--aqua); color: #000; }
.trust__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section--soft { background: var(--soft); }
.section__title { font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -.01em; margin: 0; }
.section__sub { margin: 10px 0 0; font-size: 18px; color: var(--muted); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-block-end: 36px; }
.section__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.section__cta { margin: 40px 0 0; }
.empty-note { padding: 28px; border: 1px dashed #b9bdbd; border-radius: var(--radius); color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-block-start: 40px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.step__num {
	width: 52px; height: 52px; border-radius: 50%; background: #000; color: var(--aqua);
	display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px;
}
.step h3 { margin: 22px 0 8px; font-size: 24px; }
.step p { margin: 0; color: var(--muted); }

.color-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -12px 0 32px; font-weight: 600; }
.color-strip__dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }

.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-block-start: 40px; }
.occasion {
	display: flex; flex-direction: column; gap: 4px;
	background: var(--brand-grey); color: #fff; border-radius: var(--radius); padding: 32px; text-decoration: none;
	transition: transform .15s ease;
}
.occasion:hover { color: #fff; transform: translateY(-3px); }
.occasion h3 { margin: 0; font-size: 24px; }
.occasion__ar { margin: 0; color: var(--aqua); font-size: 18px; }
.occasion p { margin: 8px 0 0; }
.occasion__more { margin-block-start: auto; padding-block-start: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--aqua); }

.cta-band { background: var(--aqua); border-radius: 28px; padding: clamp(32px, 6vw, 72px); text-align: center; }
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; color: #000; margin: 0; }
.cta-band p { font-size: 22px; margin: 10px 0 0; }
.cta-band__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-block-start: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-grey); color: #fff; padding-block: 64px 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.site-footer__brand img { width: 230px; height: auto; display: block; }
.site-footer__ar { margin: 12px 0 0; color: var(--aqua); }
.site-footer__title { font-size: 16px; color: var(--aqua); margin: 0 0 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__list--icons a, .site-footer__list--icons span { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__bottom { border-top: 1px solid #8a8a8c; margin-block-start: 48px; padding-block-start: 20px; font-size: 13px; }
.float-wa {
	position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 60;
	width: 60px; height: 60px; border-radius: 50%;
	background: #128C4B; color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.float-wa:hover { background: #0e7a40; color: #fff; }

/* ---------- Pages ---------- */
.page-wrap { padding-block: 48px 96px; }
.page-title { font-size: clamp(32px, 4vw, 48px); font-weight: 900; margin-block-end: 28px; }
.entry-content > * { max-width: 100%; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card__title { font-size: 22px; margin-block-start: 12px; }
.post-card__title a { text-decoration: none; }

/* ---------- WooCommerce ---------- */
.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--muted); margin-block-end: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-products-header__title { font-size: clamp(32px, 4vw, 48px); font-weight: 900; }

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	margin: 0 !important;
	padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
	display: flex; flex-direction: column; position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); flex: 1 1 auto; }
.woocommerce ul.products li.product a img { margin: 0 !important; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 18px !important; font-weight: 800; padding: 14px 18px 0 !important; }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-weight: 600; padding: 0 18px; font-size: 15px !important; }
.woocommerce ul.products li.product .zk-dots { padding: 0 18px; }
.woocommerce ul.products li.product .button {
	margin: 12px 18px 18px !important; border-radius: 999px; background: #000; color: #fff;
	text-align: center; padding: 12px 18px; font-weight: 700;
}
.woocommerce ul.products li.product .button:hover { background: #2b2b2b; color: #fff; }
.zk-badge {
	position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2;
	background: var(--aqua); color: #000; font-size: 12px; font-weight: 800;
	padding: 5px 10px; border-radius: 999px;
}
.woocommerce span.onsale { background: #000; color: var(--aqua); }

.woocommerce div.product { display: flex; flex-wrap: wrap; gap: 48px; }
.woocommerce div.product div.images, .woocommerce div.product div.zk-designer {
	float: none !important; width: auto !important; flex: 1 1 520px; min-width: 0; margin: 0 !important;
}
.woocommerce div.product div.summary { float: none !important; width: auto !important; flex: 1 1 380px; min-width: 0; margin: 0 !important; }
.woocommerce div.product .product_title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 24px; font-weight: 800; }
.woocommerce div.product form.cart { margin-block-end: 24px; }
.woocommerce div.product form.cart .variations { margin-block-end: 8px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; text-align: start; padding: 0; }
.woocommerce div.product form.cart .variations th label { font-weight: 700; font-size: 15px; display: block; margin-block: 12px 10px; }
.woocommerce div.product form.cart .reset_variations { font-size: 14px; }
.woocommerce div.product form.cart .single_variation_wrap { margin-block-start: 12px; }
.woocommerce div.product form.cart .quantity input.qty { min-height: 52px; width: 80px; border-radius: 12px; border: 1px solid #b9bdbd; font: inherit; font-weight: 700; }
.woocommerce div.product form.cart .button, .woocommerce .single_add_to_cart_button {
	min-height: 52px; padding: 14px 32px !important; border-radius: 999px !important;
	background: #000 !important; color: #fff !important; font-weight: 800 !important; font-size: 16px !important;
}
.woocommerce div.product form.cart .button.disabled { opacity: .5; }
.woocommerce div.product .woocommerce-tabs { flex-basis: 100%; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 12px 12px 0 0; }
.woocommerce div.product section.related { flex-basis: 100%; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	border-radius: 999px; background: #000; color: #fff; font-weight: 700; padding: 14px 24px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: #2b2b2b; color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce .checkout-button {
	background: var(--aqua) !important; color: #000 !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--aqua-dark) !important; }
.woocommerce-cart table.cart img { width: 90px; }
.woocommerce table.shop_table { border-radius: 16px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	min-height: 48px; border-radius: 12px; border: 1px solid #b9bdbd; padding: 10px 14px;
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--brand-grey); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand-grey); }

@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding-block: 64px; }
	.hero__copy { padding-block-end: 40px; }
	.hero__mandala { width: 240px; }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; padding: 10px 12px 0 !important; }
	.woocommerce ul.products li.product .price, .woocommerce ul.products li.product .zk-dots { padding: 0 12px; }
	.woocommerce ul.products li.product .button { margin: 10px 12px 12px !important; padding: 10px; font-size: 14px; }
	.float-wa { width: 54px; height: 54px; }
}

@media (max-width: 640px) {
	.hero__logo { max-width: 300px; }
	.hero__mandala { inset-inline-end: -90px; opacity: .35; }
}
