/*
Theme Name:   Getzy
Theme URI:    https://getzy.shop
Author:       Getzy Shop
Description:  Custom lightweight theme for Getzy Shop: Moroccan COD store, Arabic/RTL first, mobile first, built for Elementor and WooCommerce. Texts and contacts: Appearance > Customize > Getzy Shop.
Version:      1.0.2
Requires at least: 6.4
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  getzy
Tags:         e-commerce, rtl-language-support, custom-logo, custom-menu, full-width-template
*/

/* =========================================================================
   1. Tokens
   ========================================================================= */
:root {
	--gz-orange: #FF6A00;
	--gz-orange-2: #FF8A1F;
	--gz-orange-dark: #E85F00;
	--gz-navy: #0F1B3D;
	--gz-navy-2: #1B2A55;
	--gz-cream: #FFF5EC;
	--gz-bg: #FFFFFF;
	--gz-soft: #F6F7FB;
	--gz-text: #1E2235;
	--gz-muted: #6B7280;
	--gz-border: #ECEEF3;
	--gz-green: #25D366;
	--gz-red: #E11D48;
	--gz-radius: 14px;
	--gz-radius-lg: 22px;
	--gz-shadow: 0 10px 30px rgba(15, 27, 61, .08);
	--gz-shadow-lg: 0 20px 50px rgba(15, 27, 61, .14);
	--gz-font: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
	--gz-container: 1240px;
	--gz-header-h: 72px;
}

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--gz-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--gz-text);
	background: var(--gz-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--gz-font); font-weight: 800; color: var(--gz-navy); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { margin: 0 0 1em; }
a { color: var(--gz-orange); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gz-orange-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"],
input[type="password"], select, textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--gz-border);
	border-radius: 12px;
	background: #fff;
	color: var(--gz-text);
	transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gz-orange); box-shadow: 0 0 0 4px rgba(255, 106, 0, .12); }
:focus-visible { outline: 3px solid rgba(255, 106, 0, .5); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; inset-inline-start: 8px; z-index: 10000;
	width: auto; height: auto; clip: auto; padding: 10px 16px;
	background: var(--gz-navy); color: #fff; border-radius: 8px;
}

.gz-container { width: 100%; max-width: var(--gz-container); margin-inline: auto; padding-inline: 16px; }
.gz-main { min-height: 50vh; }
.gz-content { padding-block: 40px; }
.gz-page-title { margin-bottom: 24px; }

/* WordPress core alignment helpers */
.alignwide { max-width: 1400px; margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--gz-muted); }

/* =========================================================================
   3. Buttons
   ========================================================================= */
.gz-btn, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--gz-orange);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: var(--gz-font);
	font-weight: 800;
	font-size: 16px;
	line-height: 1.2;
	padding: 14px 28px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(255, 106, 0, .25);
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.gz-btn:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--gz-orange-dark); color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(255, 106, 0, .32);
}
.gz-btn--navy { background: var(--gz-navy); box-shadow: 0 8px 20px rgba(15, 27, 61, .2); }
.gz-btn--navy:hover { background: var(--gz-navy-2); box-shadow: 0 12px 26px rgba(15, 27, 61, .28); }
.gz-btn--wa { background: var(--gz-green); box-shadow: 0 8px 20px rgba(37, 211, 102, .25); }
.gz-btn--wa:hover { background: #1EBE5A; box-shadow: 0 12px 26px rgba(37, 211, 102, .32); }
.gz-btn--ghost { background: transparent; color: var(--gz-navy); box-shadow: inset 0 0 0 2px var(--gz-navy); }
.gz-btn--ghost:hover { background: var(--gz-navy); color: #fff; box-shadow: none; }
.gz-btn svg { width: 20px; height: 20px; }

/* =========================================================================
   4. Announcement bar
   ========================================================================= */
.gz-announce {
	background: linear-gradient(90deg, var(--gz-orange), var(--gz-orange-2));
	color: #fff; font-size: 14px; font-weight: 700;
	overflow: hidden; white-space: nowrap;
}
.gz-announce__track { display: inline-flex; gap: 56px; padding: 8px 0; animation: gz-marquee 30s linear infinite; }
.gz-announce__item { display: inline-flex; align-items: center; gap: 8px; }
.gz-announce__item svg { width: 16px; height: 16px; flex: none; }
@keyframes gz-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="ltr"] .gz-announce__track { animation-name: gz-marquee-ltr; }
@keyframes gz-marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   5. Header
   ========================================================================= */
.gz-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(10px);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--gz-border);
	transition: box-shadow .25s ease;
}
.admin-bar .gz-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gz-header { top: 0; } }
.gz-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 27, 61, .08); }
.gz-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--gz-header-h); }
.gz-logo { display: flex; align-items: center; flex: none; }
.gz-logo img { max-height: 54px; width: auto; }
.gz-logo__text { font-size: 26px; font-weight: 900; color: var(--gz-navy); }

.gz-nav { flex: 1; }
.gz-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px; }
.gz-nav li { position: relative; }
.gz-nav a {
	display: block; padding: 10px 14px; border-radius: 10px;
	color: var(--gz-navy); font-weight: 700; font-size: 16px;
}
.gz-nav a:hover, .gz-nav .current-menu-item > a, .gz-nav .current_page_item > a { color: var(--gz-orange); background: var(--gz-cream); }
.gz-nav .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px;
	display: block; padding: 8px; background: #fff; border-radius: var(--gz-radius);
	box-shadow: var(--gz-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease;
}
.gz-nav li:hover > .sub-menu, .gz-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.gz-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.gz-icon-btn {
	position: relative; width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center; color: var(--gz-navy);
	background: transparent; border: 0; cursor: pointer; transition: background .2s ease;
}
.gz-icon-btn:hover { background: var(--gz-soft); color: var(--gz-orange); }
.gz-icon-btn svg { width: 24px; height: 24px; }
.gz-cart-count {
	position: absolute; top: 2px; inset-inline-end: 0;
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	background: var(--gz-orange); color: #fff; font-size: 12px; font-weight: 800;
	display: grid; place-items: center; line-height: 1;
}
.gz-cart-count[data-count="0"] { display: none; }
.gz-header__cta { padding: 10px 20px; font-size: 15px; }
.gz-burger { display: none; }

@media (max-width: 960px) {
	:root { --gz-header-h: 64px; }
	.gz-nav, .gz-header__cta { display: none; }
	.gz-burger { display: grid; }
	.gz-logo img { max-height: 44px; }
	.gz-header__inner { gap: 8px; }
}

/* Off-canvas mobile menu */
.gz-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.gz-drawer.is-open { visibility: visible; }
.gz-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 27, 61, .5); opacity: 0; transition: opacity .3s ease; }
.gz-drawer.is-open .gz-drawer__overlay { opacity: 1; }
.gz-drawer__panel {
	position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
	width: min(86vw, 360px); background: #fff; padding: 20px;
	display: flex; flex-direction: column; gap: 20px; overflow-y: auto;
	transform: translateX(-100%); transition: transform .3s ease;
}
[dir="ltr"] .gz-drawer__panel { transform: translateX(100%); }
.gz-drawer.is-open .gz-drawer__panel { transform: none; }
.admin-bar .gz-drawer__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .gz-drawer__panel { top: 46px; } }
.gz-drawer.is-open ~ .trp-language-switcher, body.gz-lock .trp-language-switcher { display: none !important; }
.gz-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.gz-drawer__head img { max-height: 40px; width: auto; }
.gz-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.gz-drawer nav a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 4px; border-bottom: 1px solid var(--gz-border);
	color: var(--gz-navy); font-weight: 700; font-size: 17px;
}
.gz-drawer nav .sub-menu a { padding-inline-start: 18px; font-weight: 600; font-size: 15px; }
.gz-drawer__cta { display: grid; gap: 10px; margin-top: auto; }
.gz-drawer__cta .gz-btn { width: 100%; }
body.gz-lock { overflow: hidden; }

/* =========================================================================
   6. Mobile bottom bar (shop / cart / WhatsApp)
   ========================================================================= */
.gz-bottombar { display: none; }
@media (max-width: 760px) {
	.gz-bottombar {
		position: fixed; bottom: 0; inset-inline: 0; z-index: 800;
		display: grid; grid-template-columns: repeat(4, 1fr);
		background: #fff; border-top: 1px solid var(--gz-border);
		box-shadow: 0 -6px 20px rgba(15, 27, 61, .06);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	}
	.gz-bottombar a {
		display: flex; flex-direction: column; align-items: center; gap: 2px;
		color: var(--gz-navy); font-size: 12px; font-weight: 700; padding: 4px 0; position: relative;
	}
	.gz-bottombar a.is-active { color: var(--gz-orange); }
	.gz-bottombar svg { width: 22px; height: 22px; }
	.gz-bottombar .gz-bottombar__wa { color: #12A150; }
	.gz-bottombar .gz-cart-count { top: -2px; inset-inline-end: calc(50% - 22px); }
	body { padding-bottom: 64px; }
	body.gz-no-bottombar { padding-bottom: 0; }
	.gz-wa-float { display: none; }
	/* Keep TranslatePress floating switcher above the bottom bar */
	.trp-language-switcher.trp-floating-switcher { bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
}

/* =========================================================================
   7. Trust strip + footer
   ========================================================================= */
.gz-trust { background: var(--gz-cream); padding: 28px 0; }
.gz-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gz-trust__item { display: flex; align-items: center; gap: 12px; }
.gz-trust__icon {
	width: 50px; height: 50px; flex: none; border-radius: 50%;
	background: #fff; color: var(--gz-orange); display: grid; place-items: center; box-shadow: var(--gz-shadow);
}
.gz-trust__icon svg { width: 24px; height: 24px; }
.gz-trust__title { font-weight: 800; color: var(--gz-navy); font-size: 15px; line-height: 1.3; }
.gz-trust__text { color: var(--gz-muted); font-size: 13px; line-height: 1.4; }
@media (max-width: 900px) { .gz-trust__grid { grid-template-columns: repeat(2, 1fr); } }

.gz-footer { background: var(--gz-navy); color: #C9CFE0; font-size: 15px; }
.gz-footer a { color: #C9CFE0; }
.gz-footer a:hover { color: var(--gz-orange-2); }
.gz-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px 32px; }
.gz-footer__logo img { max-height: 56px; width: auto; margin-bottom: 14px; }
.gz-footer__about { line-height: 1.8; margin: 0; }
.gz-footer h4 { color: #fff; font-size: 17px; margin: 4px 0 16px; }
.gz-footer ul { list-style: none; margin: 0; padding: 0; }
.gz-footer li { margin-bottom: 10px; }
.gz-footer__contact li { display: flex; align-items: center; gap: 10px; }
.gz-footer__contact svg { width: 18px; height: 18px; color: var(--gz-orange-2); flex: none; }
.gz-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gz-footer__badge { border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #fff; }
.gz-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 16px; font-size: 13px; color: #8C95B0; }
@media (max-width: 900px) {
	.gz-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 36px; }
	.gz-footer__brand, .gz-footer__contact-col { grid-column: 1 / -1; }
}

/* Floating WhatsApp (desktop; mobile uses the bottom bar) */
.gz-wa-float {
	position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 850;
	width: 58px; height: 58px; border-radius: 50%;
	background: var(--gz-green); color: #fff; display: grid; place-items: center;
	box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
	animation: gz-pulse 2.4s ease-out infinite;
}
.gz-wa-float svg { width: 30px; height: 30px; }
.gz-wa-float:hover { color: #fff; transform: scale(1.06); }
@keyframes gz-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
	70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================================
   8. WooCommerce basics (shop/product page designs come in later steps)
   ========================================================================= */
.woocommerce .price, .woocommerce-Price-amount { color: var(--gz-orange); font-weight: 800; }
.woocommerce .price del, .woocommerce .price del .woocommerce-Price-amount { color: var(--gz-muted); font-weight: 600; opacity: .8; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce span.onsale {
	background: var(--gz-red); border-radius: 999px; font-weight: 800;
	min-height: auto; min-width: auto; padding: 4px 12px; line-height: 1.6;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: var(--gz-radius); border-top: 0; background: var(--gz-soft);
	box-shadow: inset 4px 0 0 var(--gz-orange);
}
.woocommerce-breadcrumb { font-size: 14px; color: var(--gz-muted); margin-bottom: 20px; }

/* Generic content (pages/posts) */
.gz-entry { max-width: 820px; margin-inline: auto; }
.gz-entry ul, .gz-entry ol { padding-inline-start: 1.4em; }
.gz-404 { text-align: center; padding-block: 80px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
