/*
Theme Name: Gizmoo Child
Theme URI: https://gizmoo.top/
Description: Child theme of Blocksy for the Gizmoo store — 100% original digital accessories.
Author: Gizmoo
Author URI: https://gizmoo.top/
Template: blocksy
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gizmoo-child
*/

/* ── Gizmoo store custom styles ──
   Design language: classic dense e-commerce (Newegg / B&H / Digikala DNA).
   Brand palette: emerald (زمردی) — locked 2026-10-16.
*/

:root {
  --gz-dark: #083B2A;
  --gz-dark-2: #0C4F36;
  --gz-primary: #0E7A4D;
  --gz-primary-2: #35A56B;
  --gz-accent: #FFB703;
  --gz-red: #c81e1e;
  --gz-text: #1d2b23;
  --gz-muted: #7a8699;
  --gz-border: #e3e6ea;
  --gz-bg: #f4f7f5;
}

/* ── فونت استعداد (خودمیزبان، مثل کوین‌رادار) ── */
@font-face {
  font-family: 'Estedad';
  src: url('fonts/Estedad-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('fonts/Estedad-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('fonts/Estedad-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── بازنویسی متغیر فونت بلاکسی: همه‌ی تایپوگرافی قالب از این متغیر می‌آید ── */
:root {
  --theme-font-family: 'Estedad', -apple-system, Tahoma, sans-serif !important;
  --theme-font-stack-default: 'Estedad', -apple-system, Tahoma, sans-serif !important;
}

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Estedad', -apple-system, Tahoma, sans-serif !important;
}

/* ── جست‌وجوی پهن هدر (جایگزین آیکون جست‌وجوی بلاکسی در دسکتاپ) ── */
.gz-search-form {
  display: flex;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.gz-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--gz-border);
  border-inline-end: none;
  border-radius: 0 12px 12px 0;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--gz-text);
}
.gz-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--gz-primary);
}
.gz-search-form input[type="search"]::placeholder {
  color: var(--gz-muted);
}
.gz-search-form button {
  border: 2px solid var(--gz-dark);
  background: var(--gz-dark);
  color: #fff;
  border-radius: 12px 0 0 12px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.gz-search-form button:hover {
  background: var(--gz-dark-2);
  border-color: var(--gz-dark-2);
}
.gz-search-form button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── آیکون دکمه‌ی حساب کاربری (نسخه رایگان بلاکسی آیکون‌پیکر ندارد) ── */
.ct-header a[href*="my-account"],
[data-id="button"] a[href*="my-account"],
a[data-id="button"][href*="my-account"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ct-header a[href*="my-account"]::before,
[data-id="button"] a[href*="my-account"]::before,
a[data-id="button"][href*="my-account"]::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* ── آیتم «پیشنهاد شگفت‌انگیز» در منوی دسته‌بندی (قرمز، مثل موکاپ) ── */
.menu-item-deals > a,
.deals > a {
  color: #c81e1e !important;
  font-weight: 800 !important;
}

/* ── دکمه‌ی سبد خرید (دقیقاً مثل موکاپ) ── */
.gz-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gz-dark);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.gz-cart-btn:hover {
  background: var(--gz-dark-2);
  color: #fff;
}
.gz-cart-btn svg {
  width: 19px;
  height: 19px;
  stroke: var(--gz-accent);
  fill: none;
  stroke-width: 2;
}
.gz-cart-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #e33;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
@media (max-width: 768px) {
  .gz-cart-btn .gz-cart-label { display: none; }
  .gz-cart-btn { padding: 9px 12px; }
}

/* ── منوی دسته‌بندی، ردیف پایین هدر (دقیقاً مثل موکاپ) ── */
[data-row="bottom"] .menu > li > a {
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #3c475c !important;
  border-bottom: 3px solid transparent !important;
}
[data-row="bottom"] .menu > li > a:hover {
  color: var(--gz-dark) !important;
  border-bottom-color: var(--gz-accent) !important;
}
