/*
Theme Name: JOY
Theme URI: https://joynut.ir
Description: قالب اختصاصی جوی روی Blocksy — سالم و پرمیوم؛ سبز عمیق، کرم، لهجه‌ی نارنجیِ ظریف، فونت وزیرمتن، راست‌چین.
Author: JOY
Template: blocksy
Version: 1.0.0
Text Domain: joy
*/

/* ===== Vazirmatn ===== */
@font-face{font-family:'Vazirmatn';src:url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-display:swap}

/* ===== Palette (restrained premium) — override Blocksy vars ===== */
:root{
  --green:#1F5C43; --green-deep:#14392B; --green-700:#184C38;
  --orange:#DB8A4B;               /* accent — used sparingly */
  --cream:#FBF9F4; --soft:#F1F4EF; --ink:#23231E; --muted:#6E6E64; --line:#E8E4D9; --white:#fff;
  --red:#D64535; --red-ink:#C43A2B; --red-50:#FCEBE7; --orange-700:#C67A3E; --orange-50:#FBF3E8; --orange-200:#EDD9BE;
  --sand:#F6F3EC; --line-soft:#F1ECE2; --faint:#B7B0A3; --green-50:#F4FAF6; --green-100:#E4F0E8;
  --radius:12px; --radius-lg:20px; --r-sm:10px; --r-lg:16px; --r-xl:24px;
  --shadow-sm:0 6px 20px rgba(20,57,43,.06); --shadow-lg:0 18px 44px rgba(20,57,43,.12); --ring:0 0 0 3px rgba(31,92,67,.28);
  --ease:cubic-bezier(.22,.61,.36,1);

  /* Blocksy theme palette remap */
  --theme-palette-color-1:#1F5C43;   /* accent / links / buttons */
  --theme-palette-color-2:#184C38;   /* accent hover */
  --theme-palette-color-3:#14392B;   /* headings */
  --theme-palette-color-4:#23231E;   /* text */
  --theme-palette-color-5:#E8E4D9;   /* border */
  --theme-palette-color-6:#F1F4EF;   /* subtle bg */
  --theme-palette-color-7:#FBF9F4;   /* light bg */
  --theme-palette-color-8:#ffffff;
  --theme-link-initial-color:#1F5C43;
  --theme-link-hover-color:#184C38;
  --theme-button-background-initial-color:#1F5C43;
  --theme-button-background-hover-color:#184C38;
  --theme-font-family:'Vazirmatn',system-ui,Tahoma,sans-serif;
  --theme-heading-color:#14392B;
}

/* ===== Base type ===== */
body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,.entry-title,.ct-breadcrumbs{
  font-family:'Vazirmatn',system-ui,Tahoma,sans-serif !important;
}
body{color:var(--ink);line-height:1.85;direction:rtl}
h1,h2,h3,h4{color:var(--green-deep);letter-spacing:0;font-weight:700}
.jbtn,.joy-catbtn,.joy-catpills a,.joy-badge,button,.button{line-height:1.5}
a{transition:color .2s var(--ease)}
::selection{background:var(--green);color:#fff}

/* ===== Buttons — green, soft, NO fake glow ===== */
.wp-block-button__link,.ct-button,button.button,.button,input[type=submit],
.woocommerce a.button,.woocommerce button.button,.woocommerce #respond input#submit,
.single_add_to_cart_button,.wc-proceed-to-checkout .checkout-button,.woocommerce #payment #place_order{
  background:var(--green) !important;color:#fff !important;border:none !important;border-radius:var(--radius) !important;
  font-weight:600 !important;box-shadow:none !important;transition:transform .16s var(--ease),background .2s var(--ease);
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.single_add_to_cart_button:hover,
.wc-proceed-to-checkout .checkout-button:hover,.woocommerce #payment #place_order:hover,.button:hover{
  background:var(--green-700) !important;transform:translateY(-1px);
}
.button:active,.woocommerce button.button:active{transform:translateY(0) scale(.99)}

/* price + sale badge = the only orange touches */
.woocommerce .price,.woocommerce div.product p.price,.woocommerce ul.products li.product .price{color:var(--green-700) !important;font-weight:700}
.woocommerce span.onsale{background:var(--red) !important;color:#fff !important;border-radius:999px !important}

/* ===== Product cards ===== */
.woocommerce ul.products li.product{transition:transform .25s var(--ease)}
.woocommerce ul.products li.product:hover{transform:translateY(-4px)}
.woocommerce ul.products li.product img{border-radius:12px}

/* ===== Forms ===== */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]),select,textarea{border-radius:var(--r-sm) !important;border:1px solid var(--line) !important;background:#fff}
input:focus,select:focus,textarea:focus{border-color:var(--green) !important;box-shadow:0 0 0 3px rgba(31,92,67,.12) !important;outline:none}

/* ===== Wishlist link subtle ===== */
.tinvwl_add_to_wishlist_button{color:var(--muted) !important;font-weight:500}
.tinvwl_add_to_wishlist_button:hover{color:var(--green) !important}

/* breadcrumb */
.ct-breadcrumbs{text-transform:none !important}
.ct-breadcrumbs,.ct-breadcrumbs *{color:var(--muted) !important}
.ct-breadcrumbs a{color:var(--green) !important}
.ct-breadcrumbs a:hover{color:var(--green-700) !important}

/* keyboard focus */
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* reduced motion */
@media(prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important}}
