/*
Theme Name: خط‌ساز صنعت
Theme URI: https://example.com
Author: Khatsaz Sanat
Description: قالب اختصاصی فروشگاهی برای تجهیزات و قطعات کشتارگاه طیور، سازگار با ووکامرس.
Version: 1.0
Text Domain: khatsaz-sanat
*/

:root{
  --bg:#F5F7F6;
  --bg-soft:#EAF0EE;
  --ink:#12211E;
  --ink-soft:#4A5C58;
  --steel:#8FA39D;
  --steel-dark:#3D5751;
  --teal:#0E7C6B;
  --teal-light:#17A98C;
  --amber:#F0A63C;
  --card:#FFFFFF;
  --line:#D8E3E0;
  --radius-lg:28px;
  --radius-md:18px;
  --radius-sm:12px;
  --shadow:0 10px 30px -12px rgba(18,33,30,0.18);
  --shadow-soft:0 4px 16px -6px rgba(18,33,30,0.10);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'SF Arabic','Vazirmatn',sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.7;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1200px;margin:0 auto;padding:0 28px;}
ul{list-style:none;}

.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);}
.reveal.in{opacity:1;transform:translateY(0);}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
}

/* ---------- header ---------- */
header{position:sticky;top:0;z-index:100;backdrop-filter:blur(14px);background:rgba(245,247,246,0.82);border-bottom:1px solid var(--line);}
.nav{display:flex;align-items:center;justify-content:space-between;height:82px;flex-wrap:wrap;gap:10px;}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.15rem;letter-spacing:-0.02em;}
.logo .mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--teal),var(--steel-dark));display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-soft);}
.logo .mark svg{width:20px;height:20px;}
.nav-links{display:flex;align-items:center;gap:6px;background:var(--card);padding:6px;border-radius:999px;box-shadow:var(--shadow-soft);flex-wrap:wrap;}
.nav-links ul{display:flex;gap:6px;}
.nav-links a{padding:10px 18px;border-radius:999px;font-size:0.92rem;font-weight:500;color:var(--ink-soft);transition:.25s;display:inline-block;}
.nav-links a:hover{background:var(--bg-soft);color:var(--ink);}
.nav-cta{display:flex;align-items:center;gap:14px;}
.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 26px;border-radius:999px;font-weight:700;font-size:0.92rem;border:none;cursor:pointer;transition:transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;}
.btn-primary{background:linear-gradient(135deg,var(--teal-light),var(--teal));color:#fff;box-shadow:0 8px 22px -8px rgba(14,124,107,0.55);}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 26px -8px rgba(14,124,107,0.6);}
.btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line);}
.btn-ghost:hover{border-color:var(--steel-dark);}

/* ---------- hero ---------- */
.hero{padding:96px 0 40px;position:relative;}
.hero-grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:center;}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:var(--bg-soft);border:1px solid var(--line);color:var(--teal);padding:8px 16px;border-radius:999px;font-size:0.82rem;font-weight:700;margin-bottom:22px;}
.eyebrow span.dot{width:7px;height:7px;border-radius:50%;background:var(--teal-light);animation:pulse 1.8s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.3;}}
h1{font-size:clamp(2.2rem,4.4vw,3.6rem);font-weight:800;letter-spacing:-0.02em;line-height:1.28;margin-bottom:22px;}
h1 .accent{color:var(--teal);}
.hero p.lead{font-size:1.08rem;color:var(--ink-soft);max-width:520px;margin-bottom:34px;}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:44px;}
.hero-stats{display:flex;gap:36px;flex-wrap:wrap;}
.stat b{font-size:1.7rem;font-weight:800;display:block;color:var(--steel-dark);}
.stat span{font-size:0.85rem;color:var(--ink-soft);}
.hero-visual{position:relative;height:460px;display:flex;align-items:center;justify-content:center;}
.ring{position:absolute;border-radius:50%;border:1.5px dashed var(--line);}
.ring.r1{width:420px;height:420px;animation:spin 40s linear infinite;}
.ring.r2{width:320px;height:320px;border-color:rgba(14,124,107,0.25);animation:spin 30s linear infinite reverse;}
@keyframes spin{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}
.hero-core{width:200px;height:200px;border-radius:50%;background:linear-gradient(145deg,#fff,var(--bg-soft));box-shadow:var(--shadow), inset 0 0 0 1px var(--line);display:flex;align-items:center;justify-content:center;z-index:2;}
.hero-core svg{width:92px;height:92px;}
.orbit-icon{position:absolute;width:64px;height:64px;background:var(--card);border-radius:18px;box-shadow:var(--shadow-soft);display:flex;align-items:center;justify-content:center;border:1px solid var(--line);}
.orbit-icon svg{width:28px;height:28px;color:var(--teal);}
.oi1{top:8%; left:50%; transform:translateX(-50%);}
.oi2{bottom:14%; left:10%;}
.oi3{bottom:14%; right:10%;}
.oi4{top:42%; right:2%;}

/* ---------- process line ---------- */
.line-section{padding:100px 0;background:var(--ink);color:#EFF5F3;position:relative;overflow:hidden;}
.line-head{max-width:640px;margin-bottom:64px;}
.line-head .eyebrow{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.12);color:var(--amber);}
.line-head h2{font-size:clamp(1.7rem,3vw,2.4rem);font-weight:800;margin-bottom:14px;letter-spacing:-0.02em;}
.line-head p{color:#AAB9B5;font-size:1rem;max-width:560px;}
.conveyor{position:relative;padding:30px 0 10px;}
.belt-track{position:relative;height:3px;background:linear-gradient(90deg,transparent, rgba(255,255,255,0.18) 8%, rgba(255,255,255,0.18) 92%, transparent);margin:0 6px 54px;}
.belt-track::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg, var(--amber) 0 22px, transparent 22px 44px);opacity:0.9;animation:belt-move 3.5s linear infinite;}
@keyframes belt-move{from{background-position:0 0;}to{background-position:-44px 0;}}
.stages{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;}
.stage{text-align:center;position:relative;}
.stage .node{width:64px;height:64px;margin:0 auto 18px;border-radius:20px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.14);display:flex;align-items:center;justify-content:center;transition:transform .3s, background .3s, border-color .3s;}
.stage:hover .node{transform:translateY(-6px);background:rgba(23,169,140,0.14);border-color:var(--teal-light);}
.stage .node svg{width:26px;height:26px;color:var(--teal-light);}
.stage .num{position:absolute;top:-8px; right:calc(50% - 40px);font-size:0.7rem;color:var(--amber);font-weight:800;}
.stage h4{font-size:0.9rem;font-weight:700;margin-bottom:6px;}
.stage p{font-size:0.78rem;color:#93A6A1;}
@media (max-width:900px){.stages{grid-template-columns:repeat(3,1fr);row-gap:36px;}}
@media (max-width:560px){.stages{grid-template-columns:repeat(2,1fr);}}

/* ---------- sections generic ---------- */
.section-pad{padding:110px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:52px;flex-wrap:wrap;}
.section-head h2{font-size:clamp(1.7rem,3vw,2.3rem);font-weight:800;letter-spacing:-0.02em;}
.section-head p{color:var(--ink-soft);max-width:480px;margin-top:10px;}

/* ---------- generic cards (categories on front page) ---------- */
.grid-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.card{background:var(--card);border-radius:var(--radius-lg);padding:30px 26px;border:1px solid var(--line);transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;position:relative;overflow:hidden;}
.card::before{content:'';position:absolute;inset:0;background:radial-gradient(120px 120px at 85% -10%, rgba(23,169,140,0.10), transparent 70%);opacity:0;transition:opacity .35s;pointer-events:none;}
.card:hover{transform:translateY(-8px);box-shadow:var(--shadow);}
.card:hover::before{opacity:1;}
.card .icon-box{width:56px;height:56px;border-radius:var(--radius-sm);background:var(--bg-soft);display:flex;align-items:center;justify-content:center;margin-bottom:22px;overflow:hidden;}
.card .icon-box img{width:100%;height:100%;object-fit:cover;}
.card h3{font-size:1.08rem;font-weight:700;margin-bottom:10px;}
.card p{font-size:0.88rem;color:var(--ink-soft);margin-bottom:20px;}
.card .more{display:inline-flex;align-items:center;gap:6px;font-size:0.86rem;font-weight:700;color:var(--teal);}
@media (max-width:940px){.grid-cards{grid-template-columns:repeat(2,1fr);}}
@media (max-width:620px){.grid-cards{grid-template-columns:1fr;}}

/* ---------- why us ---------- */
.why{padding:100px 0;background:var(--bg-soft);border-radius:60px;margin:0 20px;}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.why-item{background:var(--card);padding:28px 22px;border-radius:var(--radius-md);border:1px solid var(--line);}
.why-item .num{font-size:0.78rem;font-weight:800;color:var(--amber);margin-bottom:14px;display:block;}
.why-item h4{font-size:1rem;font-weight:700;margin-bottom:8px;}
.why-item p{font-size:0.85rem;color:var(--ink-soft);}
@media (max-width:940px){.why-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.why{border-radius:32px;margin:0 10px;} .why-grid{grid-template-columns:1fr;}}

/* ---------- cta banner ---------- */
.cta-banner{margin:110px auto 0;max-width:1160px;padding:0 20px;}
.cta-inner{background:linear-gradient(135deg,var(--steel-dark), var(--ink) 70%);border-radius:var(--radius-lg);padding:64px 56px;display:flex;justify-content:space-between;align-items:center;gap:30px;color:#fff;position:relative;overflow:hidden;}
.cta-inner::after{content:'';position:absolute;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle, rgba(23,169,140,0.35), transparent 70%);top:-140px; left:-100px;pointer-events:none;}
.cta-inner h3{font-size:1.6rem;font-weight:800;margin-bottom:10px;position:relative;}
.cta-inner p{color:#C4D2CE;font-size:0.95rem;position:relative;}
.cta-inner .btn-primary{background:#fff;color:var(--ink);box-shadow:none;}
@media (max-width:760px){.cta-inner{flex-direction:column;text-align:center;padding:48px 30px;}}

/* ---------- footer ---------- */
footer{padding:90px 0 40px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;margin-bottom:60px;}
.footer-grid h5{font-size:0.92rem;font-weight:700;margin-bottom:18px;}
.footer-grid li{margin-bottom:12px;font-size:0.87rem;color:var(--ink-soft);}
.footer-grid li a:hover{color:var(--teal);}
.footer-desc{color:var(--ink-soft);font-size:0.9rem;max-width:300px;margin-top:16px;}
.footer-bottom{border-top:1px solid var(--line);padding-top:26px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:0.82rem;color:var(--ink-soft);}
@media (max-width:820px){.footer-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr;}}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr;} .hero-visual{height:320px;} .nav-links{order:3;width:100%;justify-content:center;}}

/* =======================================================
   WooCommerce styling — shop archive, single product, cart
   ======================================================= */
.woo-wrap{max-width:1200px;margin:0 auto;padding:60px 28px 110px;}

.woocommerce-breadcrumb{color:var(--ink-soft);font-size:0.85rem;margin-bottom:30px;}
.woocommerce-breadcrumb a:hover{color:var(--teal);}

ul.products{display:grid !important;grid-template-columns:repeat(3,1fr);gap:22px;list-style:none;}
@media (max-width:940px){ul.products{grid-template-columns:repeat(2,1fr) !important;}}
@media (max-width:620px){ul.products{grid-template-columns:1fr !important;}}

ul.products li.product{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);padding:22px 20px 26px;transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;position:relative;text-align:center;}
ul.products li.product:hover{transform:translateY(-8px);box-shadow:var(--shadow);}
ul.products li.product img{border-radius:var(--radius-md);margin-bottom:18px;aspect-ratio:1/1;object-fit:cover;}
ul.products li.product .woocommerce-loop-product__title{font-size:1.02rem;font-weight:700;margin-bottom:8px;color:var(--ink);}
ul.products li.product .price{color:var(--teal);font-weight:800;font-size:1rem;margin-bottom:14px;display:block;}
ul.products li.product .price del{color:var(--ink-soft);opacity:.6;font-weight:500;margin-left:8px;}
ul.products li.product a.button{display:inline-flex;align-items:center;justify-content:center;padding:12px 24px;border-radius:999px;background:linear-gradient(135deg,var(--teal-light),var(--teal));color:#fff !important;font-weight:700;font-size:0.85rem;border:none;transition:transform .25s;}
ul.products li.product a.button:hover{transform:translateY(-2px);}
ul.products li.product .onsale{position:absolute;top:16px;right:16px;background:var(--amber);color:#1a1a1a;font-size:0.72rem;font-weight:800;padding:5px 12px;border-radius:999px;min-height:auto;line-height:1.4;}
ul.products li.product mark{background:none;color:inherit;}

/* product categories shortcode grid on front page reuses .grid-cards; when rendered by WooCommerce itself: */
ul.products.product-category li.product-category{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);padding:26px;text-align:center;transition:transform .3s;}
ul.products.product-category li.product-category:hover{transform:translateY(-6px);box-shadow:var(--shadow-soft);}
ul.products.product-category li.product-category img{border-radius:var(--radius-md);margin-bottom:14px;}
ul.products.product-category li.product-category h2{font-size:1rem;font-weight:700;margin-bottom:4px;}
ul.products.product-category li.product-category .count{color:var(--ink-soft);font-size:0.8rem;}

/* single product page */
.woocommerce div.product{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start;}
.woocommerce div.product .woocommerce-product-gallery{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--line);}
.woocommerce div.product .summary{padding-top:6px;}
.woocommerce div.product .summary h1.product_title{font-size:1.8rem;font-weight:800;margin-bottom:14px;}
.woocommerce div.product .summary p.price{font-size:1.4rem;color:var(--teal);font-weight:800;margin-bottom:20px;}
.woocommerce div.product .summary .woocommerce-product-details__short-description{color:var(--ink-soft);margin-bottom:26px;}
.woocommerce div.product form.cart{display:flex;gap:14px;align-items:center;margin-bottom:30px;}
.woocommerce div.product .single_add_to_cart_button{padding:15px 32px;border-radius:999px;background:linear-gradient(135deg,var(--teal-light),var(--teal));color:#fff;font-weight:700;border:none;font-size:0.95rem;}
.woocommerce div.product .quantity input{width:64px;padding:12px;border-radius:12px;border:1px solid var(--line);text-align:center;}
.woocommerce div.product .product_meta{font-size:0.85rem;color:var(--ink-soft);border-top:1px solid var(--line);padding-top:18px;}
.woocommerce div.product .product_meta a{color:var(--teal);}
.woocommerce-tabs{margin-top:70px;grid-column:1/-1;}
.woocommerce-tabs ul.tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);margin-bottom:30px;list-style:none;}
.woocommerce-tabs ul.tabs li{padding:12px 22px;border-radius:14px 14px 0 0;font-weight:700;font-size:0.9rem;color:var(--ink-soft);cursor:pointer;}
.woocommerce-tabs ul.tabs li.active{color:var(--teal);background:var(--bg-soft);}
@media (max-width:860px){.woocommerce div.product{grid-template-columns:1fr;}}

/* cart & checkout */
.woocommerce table.shop_table{border-collapse:collapse;width:100%;border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden;}
.woocommerce table.shop_table th{background:var(--bg-soft);padding:14px;font-size:0.85rem;}
.woocommerce table.shop_table td{padding:16px;border-top:1px solid var(--line);}
.woocommerce-cart-form .product-remove a{color:#c0392b;}
.woocommerce a.checkout-button, .woocommerce #place_order{background:linear-gradient(135deg,var(--teal-light),var(--teal));color:#fff;padding:15px 30px;border-radius:999px;font-weight:700;border:none;}

/* notices */
.woocommerce-message, .woocommerce-info{background:var(--bg-soft);border-right:4px solid var(--teal);border-radius:var(--radius-sm);padding:16px 20px;margin-bottom:24px;list-style:none;}
.woocommerce-error{background:#FCEAEA;border-right:4px solid #c0392b;border-radius:var(--radius-sm);padding:16px 20px;margin-bottom:24px;list-style:none;}

/* category pill widget (sidebar, if used) */
.widget_product_categories ul li{margin-bottom:8px;}
.widget_product_categories ul li a{background:var(--bg-soft);padding:8px 16px;border-radius:999px;font-size:0.85rem;display:inline-block;}
