/*
Theme Name: برجسته - Boroj
Theme URI: https://example.com/boroj
Author: استودیو برجسته
Author URI: https://example.com
Description: پوسته اختصاصی و حرفه‌ای فروشگاه آویزهای کلید و کوله با حروف سه‌بعدی سفارشی برجسته برای وردپرس و ووکامرس (WooCommerce)
Version: 1.5.4
Text Domain: boroj
*/

@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Lalezar&family=Reem+Kufi:wght@500;700&family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
@import url('checkout.css');
@import url('cart.css');
@import url('assets/css/drawer-cart.css');
@import url('assets/css/cards.css');
@import url('assets/css/tracking.css');
@import url('assets/css/home.css');
@import url('assets/css/product.css');
@import url('assets/css/shop.css');
@import url('assets/css/pages.css');

:root {
  --bg: #F4F6FC; --bg-2: #ECEFF8; --surface: #FFFFFF; --surface-2: #F8FAFD;
  --ink: #101322; --ink-2: #5F647D; --accent: #FF5A2C; --accent-2: #4B3BFF;
  --danger: #E5243B; --success: #10B981;
  --line: rgba(16, 19, 34, 0.08); --line-strong: rgba(16, 19, 34, 0.16);
  --card-bg: #FFFFFF; --shadow: 0 10px 30px rgba(16, 19, 34, 0.06); --shadow-lg: 0 20px 40px rgba(16, 19, 34, 0.1);
  --radius: 16px; --radius-lg: 24px;
  --ff-body: 'Vazirmatn', system-ui, -apple-system, sans-serif; --ff-display: 'Lalezar', cursive;
}

[data-theme="dark"] {
  --bg: #0C0E17; --bg-2: #141724; --surface: #171B2B; --surface-2: #1E2337;
  --ink: #F0F2FA; --ink-2: #9499B3; --accent: #FF6E44; --accent-2: #6C5EFF;
  --danger: #FF4D6D; --success: #3DDCA8;
  --line: rgba(240, 242, 250, 0.08); --line-strong: rgba(240, 242, 250, 0.16);
  --card-bg: #171B2B; --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--ff-body); direction: rtl; text-align: right; background-color: var(--bg); color: var(--ink); transition: background-color 0.25s ease, color 0.25s ease; scroll-behavior: smooth; caret-color: transparent; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; font-family: var(--ff-body); font-size: 16px; line-height: 1.7; caret-color: transparent; }
body, h1, h2, h3, h4, h5, h6, p, span, div, section, header, footer, article, aside, nav, dl, dt, dd, a, button, label, strong, b, em { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; caret-color: transparent !important; }
input[type="submit"], button, .button { caret-color: transparent !important; user-select: none !important; }
a, button, .btn, .tile, a.tile, .tile *, .cpill, .site-brand, .site-ibtn, .pdp-thumb-item, .pdp-main-img-card, .pdp-zoom-overlay, .tab-nav-item, .faq-q, .drawer-qty-plus, .drawer-qty-minus, .cart-item-trash, .boroj-qty-btn, .woocommerce-MyAccount-navigation a { cursor: pointer !important; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text !important; -moz-user-select: text !important; user-select: text !important; caret-color: var(--accent) !important; }
img, svg { max-width: 100%; max-height: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }

/* ==========================================================================
   بخش‌ها و سربرگ‌های استاندارد سایت (Sections & Headers)
   ========================================================================== */
.sec { padding-block: clamp(48px, 7vw, 84px); position: relative; }
.sec-head { text-align: center !important; margin-bottom: 36px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; width: 100% !important; }
.sec-head h2 { font-family: 'Lalezar', cursive !important; font-weight: 400 !important; font-size: clamp(2.2rem, 5vw, 3.2rem) !important; color: var(--ink) !important; line-height: 1.3 !important; margin: 0 0 10px 0 !important; text-align: center !important; letter-spacing: normal !important; }
.sec-head p { color: var(--ink-2) !important; font-size: clamp(1rem, 2vw, 1.15rem) !important; font-weight: 600 !important; max-width: 680px !important; margin: 0 auto !important; text-align: center !important; line-height: 1.7 !important; }

/* ==========================================================================
   ۱. هدر سایت
   ========================================================================== */
.site-top { position: sticky; top: 0; padding-block: 16px; z-index: 990; background: color-mix(in oklab, var(--bg) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: background 0.3s ease; }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { flex: none; display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-size: 1.75rem; color: var(--ink); transition: transform 0.2s ease; }
.site-brand:hover { transform: scale(1.04); }
.site-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--accent); font-size: 1.6rem; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.site-mark::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); animation: shine 4.5s infinite; pointer-events: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 0.94rem; transition: background 0.2s, color 0.2s; }
.site-nav a:hover, .site-nav a.active { background: var(--bg-2); color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 10px; }
.site-ibtn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.site-ibtn:hover { border-color: var(--accent-2); transform: rotate(-6deg) scale(1.05); background: var(--bg-2); }
.site-ibtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-ibtn .sun { display: none; }
[data-theme="dark"] .site-ibtn .sun { display: block; }
[data-theme="dark"] .site-ibtn .moon { display: none; }
.site-cart-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 0.75rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.site-menu-btn { display: none; }
#mobileSiteMenu, .site-menu { display: none !important; }
@keyframes siteMenuPop { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 960px) {
  .site-nav { display: none !important; } .site-menu-btn { display: grid !important; }
  #mobileSiteMenu.open, .site-menu.open { display: grid !important; position: absolute; top: calc(100% + 8px); inset-inline: 16px; gap: 4px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 1000; animation: siteMenuPop 0.25s ease-out; }
  .site-menu a { padding: 12px 16px; border-radius: 12px; font-weight: 700; color: var(--ink); transition: background 0.2s; }
  .site-menu a:hover, .site-menu a.active { background: var(--bg-2); }
}
@media (max-width: 768px) {
  .site-actions .header-cta-btn { display: none !important; }
  .site-actions { gap: 6px !important; }
  .site-ibtn { width: 38px !important; height: 38px !important; }
  .site-ibtn svg { width: 18px !important; height: 18px !important; }
  .site-brand { font-size: 1.45rem !important; gap: 8px !important; }
  .site-mark { width: 36px !important; height: 36px !important; font-size: 1.35rem !important; }
}
@media (max-width: 420px) {
  .site-actions { gap: 4px !important; }
  .site-ibtn { width: 36px !important; height: 36px !important; }
  .site-brand span { font-size: 1.3rem !important; }
}
@media (min-width: 961px) { #mobileSiteMenu, .site-menu, .site-menu-btn { display: none !important; } }

/* ==========================================================================
   ۲. دکمه‌ها و انیمیشن‌ها
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; border: 1.5px solid transparent; font: 800 1rem/1 var(--ff-body); text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; white-space: nowrap; }
.btn:active { transform: scale(0.96) !important; }
.btn-primary { background: var(--accent); color: #FFFFFF !important; box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 28px -12px color-mix(in oklab, var(--accent) 85%, transparent); }
.btn-secondary { background: var(--accent-2); color: #FFFFFF !important; box-shadow: 0 6px 20px rgba(75, 59, 255, 0.35); }
.btn-secondary:hover { background: #3B2CE0; transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.1rem; border-radius: 16px; }
.btn-block { width: 100%; }

@keyframes shine { 0% { left: -80%; } 30%, 100% { left: 150%; } }
.shine-effect { position: relative; overflow: hidden; }
.shine-effect::after { content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 80%, transparent 100%); transform: rotate(30deg); pointer-events: none; animation: shine var(--shine-dur, 3.8s) cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: var(--shine-delay, 0s); }

@keyframes gentleCardBob { 0% { transform: translateY(0px); } 50% { transform: translateY(-7px); } 100% { transform: translateY(0px); } }
.card-float { animation: gentleCardBob var(--float-dur, 4.2s) ease-in-out infinite; animation-delay: var(--float-del, 0s); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease; }
.card-float:hover { animation-play-state: paused; transform: translateY(-9px) scale(1.02) !important; box-shadow: var(--shadow-lg); }

/* ==========================================================================
   ۳. دکمه شناور پشتیبانی سریع (FAB)
   ========================================================================== */
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(75, 59, 255, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(75, 59, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(75, 59, 255, 0); } }
@keyframes fab-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.fab-container { position: fixed; bottom: 24px; left: 24px; z-index: 1000; display: flex; flex-direction: column; align-items: center; }
.fab-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fab-container.open .fab-actions { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-item { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: transform 0.2s, background 0.2s; text-decoration: none; position: relative; }
.fab-item:hover { transform: scale(1.1); }
.fab-item::after { content: attr(data-label); position: absolute; left: 100%; top: 50%; transform: translateY(-50%) translateX(10px); background: var(--ink); color: var(--surface); padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s; margin-left: 8px; }
.fab-item:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.fab-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab-telegram { background: #2AABEE; }
.fab-whatsapp { background: #25D366; }
.fab-instagram { background: #E1306C; }
.fab-main-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-2); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(75, 59, 255, 0.4); transition: transform 0.3s, background 0.2s; animation: fab-pulse 2.2s infinite, fab-bob 3.5s ease-in-out infinite; }
.fab-main-btn:hover { transform: scale(1.08) translateY(-2px); animation-play-state: paused; }
.fab-main-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   ۴. فوتر سایت
   ========================================================================== */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-copy { color: var(--ink-2); font-size: 0.9rem; }