/* =========================================================
   فروشگاه کاشی و سرامیک - استایل اصلی
   ========================================================= */

:root {
	--c-primary: #155ea3;
	--c-secondary: #0f4c8a;
	--c-accent: #ff7a3d;
	--c-accent-2: #e8621f;
	--c-light: #f2f8fd;
	--c-text: #1b2733;
	--c-muted: #647082;
	--c-white: #ffffff;
	--c-border: #dde6f0;
	--c-post-bg: #ffffff;
	--c-page-bg: #ffffff;
	--radius: 10px;
	--container: 1240px;
	--transition: .25s ease;
	--font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--c-text);
	background: var(--c-white);
	direction: rtl;
	line-height: 1.8;
	font-size: 16px;
}
body, input, button, select, textarea, table,
.woocommerce, .woocommerce table, .woocommerce ul, .woocommerce li, .woocommerce span, .woocommerce div,
.primary-menu, .mobile-menu, .footer-menu, .sidebar-cat-menu {
	font-family: var(--font) !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; margin: 0 0 .6em; color: var(--c-primary); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- دکمه‌ها ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
	white-space: nowrap; border: 2px solid transparent; cursor: pointer;
}
.btn-solid { background: var(--c-accent); color: var(--c-text); }
.btn-solid:hover { background: var(--c-accent-2); color: #ffffff; }
.btn-outline { border-color: var(--c-accent); color: var(--c-light); }
.btn-outline:hover { background: var(--c-accent); color: var(--c-text); }

/* =========================================================
   هدر
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 500; }
.site-header.is-scrolled .header-row2 { box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.header-row1 { background: var(--c-secondary); color: rgba(255,255,255,.78); font-size: 13px; }
.header-row1-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; flex-wrap: wrap; gap: 6px 0; padding: 6px 0; }
.header-row1-right { display: flex; gap: 18px; flex-wrap: wrap; }
.header-phone { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.92); }
.header-phone svg { color: var(--c-accent); }
.header-phone:hover { color: var(--c-accent); }
.header-row1-left { color: rgba(255,255,255,.55); }

.header-row2 { background: var(--c-primary); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header-row2-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }

.site-branding .custom-logo { max-height: 56px; width: auto; }
.site-title-link { font-size: 22px; font-weight: 800; color: var(--c-white); }

.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu { display: flex; align-items: center; gap: 4px; }
.primary-menu li { position: relative; }

.primary-menu li > a {
	display: flex; align-items: center; gap: 5px;
	padding: 12px 16px; color: rgba(255,255,255,.9); font-weight: 600; font-size: 15px;
	border-radius: 7px; position: relative; letter-spacing: .1px;
	transition: color var(--transition), background var(--transition);
}
.primary-menu > li > a::after {
	content: ''; position: absolute; right: 16px; left: 16px; bottom: 6px; height: 2px;
	background: var(--c-accent); border-radius: 2px; transform: scaleX(0); transform-origin: center;
	transition: transform var(--transition);
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
	color: #ffffff; background: rgba(255,255,255,.08);
}
.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current_page_item > a::after { transform: scaleX(1); }

.primary-menu li.menu-item-has-children > a::before {
	content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); margin-top: -4px; opacity: .75; transition: transform var(--transition);
}
.primary-menu li.menu-item-has-children:hover > a::before { transform: rotate(225deg); margin-top: 4px; }

.primary-menu li ul {
	position: absolute; top: 100%; right: 0; min-width: 230px; background: var(--c-white);
	border-radius: 10px; box-shadow: 0 18px 40px rgba(15,25,40,.16); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition);
	z-index: 50; border-top: 3px solid var(--c-accent);
}
.primary-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu li ul li a { color: var(--c-text); padding: 10px 14px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.primary-menu li ul li a::after { display: none; }
.primary-menu li ul li a::before { border-color: var(--c-muted); }
.primary-menu li ul li a:hover { background: var(--c-light); color: var(--c-accent-2); }
.primary-menu li ul li + li { margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.tile-menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; cursor: pointer; }
.tile-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--c-white); margin: 0 auto; }

/* منوی موبایل (باز شونده از راست) */
.tile-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 900; }
.tile-mobile-overlay.active { opacity: 1; visibility: visible; }

.tile-mobile-menu {
	position: fixed; top: 0; right: 0; height: 100%; width: 82%; max-width: 340px;
	background: var(--c-primary); color: var(--c-white); z-index: 950;
	transform: translateX(100%); transition: transform .35s ease;
	overflow-y: auto; padding: 0 0 30px;
}
.tile-mobile-menu.active { transform: translateX(0); }
.tile-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 700; }
.tile-menu-close { background: none; border: none; color: var(--c-white); font-size: 26px; cursor: pointer; line-height: 1; }
.mobile-menu li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.92); font-weight: 600; transition: background var(--transition), color var(--transition); }
.mobile-menu li a:hover, .mobile-menu li a:active { background: rgba(255,255,255,.06); color: var(--c-accent); }
.mobile-menu li.menu-item-has-children > a::after {
	content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); opacity: .7; flex-shrink: 0;
}
.mobile-menu li ul { background: rgba(255,255,255,.04); }
.mobile-menu li ul li a { padding-right: 34px; font-weight: 400; }
.tile-mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 0; }

/* =========================================================
   بردکرامب
   ========================================================= */
.tile-breadcrumb { background: var(--c-light); border-bottom: 1px solid var(--c-border); font-size: 13px; }
.tile-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; color: var(--c-muted); }
.tile-breadcrumb a { color: var(--c-muted); }
.tile-breadcrumb a:hover { color: var(--c-accent-2); }
.tile-breadcrumb li:not(:last-child)::after { content: '/'; margin-right: 6px; color: #c9c6bb; }

.tile-breadcrumb--dark { background: transparent; border-bottom: none; }
.tile-breadcrumb--dark ol { justify-content: center; padding: 0; margin-top: 18px; color: rgba(255,255,255,.65); }
.tile-breadcrumb--dark a { color: rgba(255,255,255,.85); }
.tile-breadcrumb--dark a:hover { color: var(--c-accent); }
.tile-breadcrumb--dark li[aria-current] { color: var(--c-accent); font-weight: 700; }
.tile-breadcrumb--dark li:not(:last-child)::after { color: rgba(255,255,255,.4); }

/* =========================================================
   بلاگ / نوشته‌ها
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 40px 0; }
.post-card { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-white); transition: var(--transition); }
.post-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.post-card-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--c-light); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px; }
.post-card-date { font-size: 12px; color: var(--c-muted); }
.post-card-title { font-size: 18px; margin: 8px 0; }
.post-card-title a:hover { color: var(--c-accent-2); }
.post-card-excerpt { font-size: 14px; color: var(--c-muted); margin: 0 0 12px; }
.post-card-more { color: var(--c-accent-2); font-weight: 700; font-size: 14px; }

.single-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.blog-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 20px; }
.blog-main { min-width: 0; }
.blog-layout .blog-main { order: 2; }
.blog-layout .post-sidebar { order: 1; }
.single-post-main { min-width: 0; }
.single-post-wrap { max-width: 100%; margin: 0; padding: 40px 0 60px; }
.single-post {
	background: var(--c-post-bg); border: 1px solid var(--c-border); border-radius: var(--radius);
	padding: 38px 42px 42px; box-shadow: 0 4px 24px rgba(15,25,40,.05);
	max-width: 100%;
}
.post-category-badge {
	display: inline-flex; align-items: center; gap: 5px; background: var(--c-light); color: var(--c-accent-2);
	font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
	text-transform: uppercase; letter-spacing: .4px;
}
.single-post-title { font-size: 34px; line-height: 1.4; margin: 0 0 18px; letter-spacing: -.2px; }
.single-post-meta { display: flex; flex-wrap: wrap; align-items: center; color: var(--c-muted); font-size: 13px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--c-border); }
.single-post-meta span { display: flex; align-items: center; gap: 6px; margin-left: 16px; }
.single-post-meta span:last-child { margin-left: 0; }
.single-post-thumb {
	position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden;
	margin-bottom: 32px; box-shadow: 0 12px 30px rgba(15,25,40,.1); background: var(--c-light);
}
.single-post-thumb img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; }
.single-post-body { font-size: 17px; line-height: 2; }
.single-post-body h2, .single-post-body h3 { margin-top: 1.4em; }
.post-tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { background: var(--c-light); padding: 6px 12px; border-radius: 20px; font-size: 13px; color: var(--c-muted); }

.related-posts { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--c-border); }
.related-posts-title { font-size: 21px; margin-bottom: 22px; position: relative; padding-bottom: 12px; display: inline-block; }
.related-posts-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 46px; height: 3px; background: var(--c-accent); border-radius: 3px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-post-card { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-white); box-shadow: 0 4px 16px rgba(15,25,40,.06); transition: var(--transition); }
.related-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,25,40,.12); border-color: var(--c-accent); }
.related-post-thumb { display: block; aspect-ratio: 16/10; background: var(--c-light); overflow: hidden; }
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.related-post-card:hover .related-post-thumb img { transform: scale(1.06); }
.related-post-body { padding: 14px; }
.related-post-date { font-size: 11.5px; color: var(--c-muted); }
.related-post-title { font-size: 14.5px; margin: 6px 0 0; line-height: 1.6; }
.related-post-title a:hover { color: var(--c-accent-2); }

.post-author-box {
	display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 26px;
	background: var(--c-light); border: 1px solid var(--c-border); border-radius: var(--radius);
	border-right: 4px solid var(--c-accent);
}
.post-author-avatar img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; box-shadow: 0 4px 14px rgba(15,25,40,.12); }
.post-author-label { display: block; font-size: 11px; font-weight: 700; color: var(--c-accent-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.post-author-name { font-size: 17px; margin: 0 0 8px; }
.post-author-desc { font-size: 14px; color: var(--c-muted); line-height: 1.9; margin: 0; }

.pagination-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 24px 0 54px; }
.pagination-wrap .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--c-border); border-radius: 8px; padding: 0 12px; color: var(--c-text); font-size: 14px; transition: var(--transition); }
.pagination-wrap .page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent-2); }
.pagination-wrap .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-text); font-weight: 800; }
.pagination-wrap .page-numbers.dots { border: none; }

.page-content { max-width: 900px; margin: 0 auto; padding: 40px 0 60px; }
.page-card {
	background: transparent; padding: 0;
}
.page-body { font-size: 17px; line-height: 2; }

/* =========================================================
   فروشگاه (آرشیو محصولات)
   ========================================================= */
.shop-archive-header {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
	padding: 58px 0 50px; margin-bottom: 34px; text-align: center;
}
.shop-archive-header::before {
	content: ''; position: absolute; inset: 0;
	background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.10) 0, transparent 40%),
	                   radial-gradient(circle at 85% 80%, rgba(255,255,255,.08) 0, transparent 45%);
	pointer-events: none;
}
.shop-archive-header-inner { position: relative; z-index: 2; }
.archive-title { font-size: 36px; color: #ffffff; margin: 0; }
.shop-archive-divider { display: inline-block; width: 64px; height: 3px; background: var(--c-accent); border-radius: 3px; margin-top: 20px; }
.archive-description { color: var(--c-muted); max-width: 760px; margin: 0 auto; }

.shop-archive-description {
	max-width: 900px; margin: 10px auto 60px; padding: 30px 34px; border: 1px solid var(--c-border);
	border-top: 3px solid var(--c-accent); border-radius: var(--radius); background: var(--c-light);
}
.shop-archive-description h2 { font-size: 19px; margin-bottom: 12px; }
.shop-archive-description-body { color: var(--c-muted); font-size: 15px; line-height: 2; }

.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; padding-bottom: 60px; }
.shop-main { min-width: 0; order: 2; }
.shop-sidebar { order: 1; }

/* ---------- کادر ابزارک‌های سایدبار (فروشگاه و نوشته‌های تکی) ---------- */
.shop-sidebar .widget, .post-sidebar .widget {
	background: var(--c-white); border: 1px solid var(--c-border); border-top: 3px solid var(--c-accent);
	border-radius: var(--radius); padding: 22px; margin-bottom: 22px; box-shadow: 0 6px 22px rgba(15,25,40,.06);
}
.shop-sidebar .widget:last-child, .post-sidebar .widget:last-child { margin-bottom: 0; }
.post-sidebar { position: sticky; top: 96px; margin-top: 40px; }

/* کارت زیبای توضیحات آرشیو داخل سایدبار (بعد از دسته‌بندی‌ها) */
.archive-desc-card {
	position: relative; overflow: hidden; background: var(--c-light); border: 1px solid var(--c-border);
	border-top: 3px solid var(--c-accent); border-radius: var(--radius); padding: 22px; margin-bottom: 22px;
	box-shadow: 0 6px 22px rgba(15,25,40,.06);
}
.archive-desc-card::before {
	content: '\201C'; position: absolute; top: -18px; right: 8px; font-size: 84px; line-height: 1;
	font-family: Georgia, serif; color: var(--c-accent); opacity: .12; pointer-events: none;
}
.archive-desc-card-title { position: relative; z-index: 1; font-size: 15px; margin: 0 0 10px; color: var(--c-primary); }
.archive-desc-card-body { position: relative; z-index: 1; font-size: 13.5px; line-height: 1.9; color: var(--c-muted); }
.archive-desc-card-body p { margin: 0 0 8px; }
.archive-desc-card-body p:last-child { margin-bottom: 0; }

/* ابزارک آخرین نوشته‌ها: آیتم اول مجله‌ای (تصویر بزرگ + عنوان روی عکس)، بقیه فهرستی و کوچک */
.tile-latest-post-widget { display: flex; flex-direction: column; gap: 14px; }
.tile-latest-post-item { display: block; text-decoration: none; }

.tile-latest-post-item:first-child {
	position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--c-light);
}
.tile-latest-post-item:first-child .tile-latest-post-thumb { position: absolute; inset: 0; margin: 0; }
.tile-latest-post-item:first-child .tile-latest-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tile-latest-post-item:first-child:hover .tile-latest-post-thumb img { transform: scale(1.06); }
.tile-latest-post-item:first-child::after {
	content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,15,25,.82), rgba(10,15,25,0) 65%); pointer-events: none;
}
.tile-latest-post-item:first-child .tile-latest-post-body { position: absolute; right: 0; left: 0; bottom: 0; padding: 16px; z-index: 2; }
.tile-latest-post-item:first-child .tile-latest-post-date { color: rgba(255,255,255,.75); font-size: 11.5px; }
.tile-latest-post-item:first-child .tile-latest-post-title { color: #ffffff; font-size: 15px; margin: 5px 0 0; line-height: 1.6; }

.tile-latest-post-item:not(:first-child) {
	display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--c-border);
}
.tile-latest-post-item:not(:first-child):last-child { border-bottom: none; padding-bottom: 0; }
.tile-latest-post-item:not(:first-child) .tile-latest-post-thumb { width: 62px; height: 62px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--c-light); }
.tile-latest-post-item:not(:first-child) .tile-latest-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-latest-post-item:not(:first-child) .tile-latest-post-date { font-size: 11px; color: var(--c-muted); }
.tile-latest-post-item:not(:first-child) .tile-latest-post-title { font-size: 13.5px; margin: 3px 0 0; line-height: 1.6; color: var(--c-text); }
.tile-latest-post-item:not(:first-child):hover .tile-latest-post-title { color: var(--c-accent-2); }

.widget-title { color: var(--c-primary); font-size: 16px; margin: 0 0 18px; position: relative; padding-bottom: 11px; }
.widget-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 2px; background: var(--c-accent); border-radius: 2px; }

/* ---------- استایل عمومی فهرست‌های ابزارک (دسته‌بندی، نوشته‌های جدید، بایگانی و...) ---------- */
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
	padding: 10px 0; border-bottom: 1px dashed var(--c-border); font-size: 14px; line-height: 1.7;
}
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li:first-child { padding-top: 0; }
.widget ul li a { color: var(--c-text); font-weight: 600; transition: color var(--transition); }
.widget ul li a:hover { color: var(--c-accent-2); }
.widget-count {
	display: inline-block; vertical-align: middle; margin-right: 8px; white-space: nowrap;
	background: var(--c-light); color: var(--c-accent-2); font-size: 10.5px; font-weight: 800;
	padding: 2px 9px; border-radius: 20px;
}
.widget select { width: 100%; padding: 9px 10px; border: 1px solid var(--c-border); border-radius: 8px; font-family: var(--font); color: var(--c-text); }
.widget p { font-size: 14px; color: var(--c-muted); line-height: 1.9; margin: 0; }

/* ابزارک «دسته‌بندی محصولات» ووکامرس */
.widget_product_categories ul.product-categories { list-style: none; margin: 0; padding: 0; }
.widget_product_categories ul.product-categories li {
	padding: 11px 0; border-bottom: 1px dashed var(--c-border); font-size: 14px; line-height: 1.7;
}
.widget_product_categories ul.product-categories > li:first-child { padding-top: 0; }
.widget_product_categories ul.product-categories > li:last-child { border-bottom: none; padding-bottom: 0; }
.widget_product_categories ul.product-categories li a { color: var(--c-text); font-weight: 600; transition: color var(--transition); }
.widget_product_categories ul.product-categories li a:hover { color: var(--c-accent-2); }
.widget_product_categories ul.product-categories li.current-cat > a { color: var(--c-accent-2); }
.widget_product_categories .count {
	display: inline-block; vertical-align: middle; margin-right: 8px;
	background: var(--c-light); color: var(--c-accent-2); font-size: 10.5px; font-weight: 800;
	padding: 2px 9px; border-radius: 20px; white-space: nowrap;
}
.widget_product_categories ul.children {
	list-style: none; margin: 8px 0 0; padding: 2px 16px 2px 0;
	border-right: 2px solid var(--c-border);
}
.widget_product_categories ul.children li { padding: 7px 0; font-size: 13px; border-bottom: none; }
.widget_product_categories ul.children li a { font-weight: 500; color: var(--c-muted); }
.widget_product_categories ul.children li a:hover { color: var(--c-accent-2); }
.widget_product_categories select { width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px; font-family: var(--font); color: var(--c-text); background: var(--c-white); }

/* ابزارک نوشته‌های جدید: شماره‌گذاری دایره‌ای شیک */
.widget_recent_entries ul { counter-reset: tile-recent; }
.widget_recent_entries ul li { counter-increment: tile-recent; position: relative; padding-right: 36px; }
.widget_recent_entries ul li::before {
	content: counter(tile-recent); position: absolute; right: 0; top: 8px; width: 24px; height: 24px;
	border-radius: 50%; background: var(--c-light); color: var(--c-accent-2); font-size: 11.5px; font-weight: 800;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.widget_recent_entries .post-date { display: block; font-size: 11.5px; color: var(--c-muted); font-weight: 400; margin-top: 3px; }

/* ابر برچسب‌ها */
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget_tag_cloud .tagcloud a {
	display: inline-block; background: var(--c-light) !important; color: var(--c-accent-2) !important;
	padding: 6px 14px; border-radius: 18px; font-size: 12px !important; font-weight: 600; transition: var(--transition);
}
.widget_tag_cloud .tagcloud a:hover { background: var(--c-accent) !important; color: var(--c-text) !important; }

.sidebar-cat-menu li a, .footer-menu li a { display: block; padding: 8px 0; color: var(--c-muted); border-bottom: 1px dashed var(--c-border); }
.sidebar-cat-menu li a:hover { color: var(--c-accent-2); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 20px; border-bottom: 1px solid var(--c-border); margin-bottom: 24px; font-size: 13px; color: var(--c-muted); }
.shop-toolbar select { border: 1px solid var(--c-border); border-radius: 6px; padding: 6px 10px; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-white); transition: var(--transition); position: relative; box-shadow: 0 4px 16px rgba(15,25,40,.07); }
.product-card:hover { box-shadow: 0 18px 36px rgba(15,25,40,.13); transform: translateY(-4px); border-color: var(--c-accent); }
.product-card-thumb { position: relative; display: block; aspect-ratio: 1/1; background: var(--c-light); overflow: hidden; }
.product-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-thumb img { transform: scale(1.06); }
.product-badge-sale { position: absolute; top: 10px; right: 10px; background: var(--c-accent); color: var(--c-primary); font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; z-index: 5; }
.single-product-summary .product-badge-sale { position: static; display: inline-block; margin: 0 0 14px; }
.product-card-body { padding: 16px; }
.product-card-cat { display: inline-flex; font-size: 11px; font-weight: 700; color: var(--c-accent-2); background: var(--c-light); padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.product-card-cat a { color: inherit; }
.product-card-title { font-size: 16px; margin: 6px 0 8px; }
.product-card-title a:hover { color: var(--c-accent-2); }
.product-card-rating { margin-bottom: 8px; }
.product-card-rating .star-rating { font-size: 13px; color: var(--c-border); }
.product-card-rating .star-rating span { color: var(--c-accent); }
.product-card-rating .star-rating::before { color: var(--c-border); }
.product-card-price { font-weight: 800; color: var(--c-primary); margin-bottom: 12px; }
.product-card-price del { color: var(--c-muted); font-weight: 400; margin-left: 6px; }
.product-card-price ins { text-decoration: none; color: var(--c-accent-2); }
.product-card-actions a.btn-view-specs {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--c-accent); color: var(--c-text); padding: 11px; border-radius: 8px;
	font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: var(--transition);
}
.product-card-actions a.btn-view-specs:hover { background: var(--c-accent-2); color: #ffffff; }
.product-card-actions a.btn-view-specs svg { flex-shrink: 0; }

/* =========================================================
   صفحه تک محصول
   ========================================================= */
.single-product-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; padding: 40px 0; align-items: start; }
.single-product-gallery { min-width: 0; }

/* گالری سفارشی محصول: تصویر اصلی بزرگ + تصاویر بندانگشتی افقی زیر آن */
.tile-gallery { display: flex; flex-direction: column; gap: 14px; }
.tile-gallery-main {
	position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--c-border);
	border-radius: var(--radius); overflow: hidden; background: var(--c-light);
}
.tile-gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.tile-gallery-zoom {
	position: absolute; inset: 0; background-repeat: no-repeat; background-size: 200%;
	opacity: 0; transition: opacity .2s ease; pointer-events: none; z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
	.tile-gallery-main { cursor: zoom-in; }
	.tile-gallery-main:hover .tile-gallery-zoom { opacity: 1; }
}
.tile-gallery-badge {
	position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--c-accent); color: var(--c-text);
	font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 20px;
}
.tile-gallery-thumbs {
	display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin;
}
.tile-gallery-thumbs::-webkit-scrollbar { height: 5px; }
.tile-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 10px; }
.tile-gallery-thumb {
	flex: 0 0 auto; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; padding: 0;
	border: 2px solid var(--c-border); background: none; cursor: pointer; transition: var(--transition);
}
.tile-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-gallery-thumb:hover { border-color: var(--c-accent-2); }
.tile-gallery-thumb.is-active { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0,0,0,.04); }

.product-category-btn {
	display: inline-flex; align-items: center; background: var(--c-light); color: var(--c-accent-2);
	font-size: 12.5px; font-weight: 800; padding: 7px 18px; border-radius: 20px; margin-bottom: 16px;
	border: 1px solid var(--c-border); transition: var(--transition);
}
.product-category-btn:hover { background: var(--c-accent); color: var(--c-text); border-color: var(--c-accent); }
.product-title { font-size: 28px; }
.product-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; font-size: 13px; color: var(--c-muted); }
.product-price-box { font-size: 26px; font-weight: 800; color: var(--c-accent-2); margin-bottom: 16px; }
.product-price-box del { font-size: 16px; color: var(--c-muted); font-weight: 400; margin-left: 10px; }
.product-short-desc { color: var(--c-muted); margin-bottom: 20px; }
.product-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-consult, .btn-whatsapp {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 22px; border-radius: var(--radius); font-weight: 700; font-size: 15px;
	flex: 1 1 220px; transition: var(--transition); border: none; cursor: pointer;
}
.btn-consult { background: var(--c-accent); color: var(--c-text); }
.btn-consult:hover { background: var(--c-accent-2); color: #ffffff; }
.btn-whatsapp { background: #25D366; color: #ffffff; }
.btn-whatsapp:hover { background: #1eb958; }

.product-meta-info { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--c-border); font-size: 14px; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-label { color: var(--c-muted); }
.meta-value { font-weight: 700; color: var(--c-text); }
.stock-badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 20px; font-weight: 700; font-size: 12.5px; }
.stock-badge.in-stock { background: #e5f7ec; color: #17803d; }
.stock-badge.out-stock { background: #fdecec; color: #c62828; }

/* حذف SKU پیش‌فرض ووکامرس برای جلوگیری از تکرار (SKU سفارشی بالاتر نمایش داده می‌شود) */
.product_meta .sku_wrapper { display: none; }
.product_meta .posted_in { display: none; }

.product-trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0; padding: 18px; background: var(--c-light); border-radius: var(--radius); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text); }
.trust-item svg { color: var(--c-accent-2); flex-shrink: 0; }

.single-product-tabs { padding: 10px 0 40px; border-top: 1px solid var(--c-border); margin-top: 20px; }

/* برگه‌های توضیحات تکمیلی / نظرات ووکامرس */
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--c-border); margin: 0 0 28px; padding: 0; }
.woocommerce-tabs ul.tabs li { list-style: none; margin: 0; }
.woocommerce-tabs ul.tabs li a {
	display: inline-block; padding: 13px 22px; font-weight: 700; font-size: 15px; color: var(--c-muted);
	border-radius: 8px 8px 0 0; transition: var(--transition);
}
.woocommerce-tabs ul.tabs li a:hover { color: var(--c-accent-2); background: var(--c-light); }
.woocommerce-tabs ul.tabs li.active a { color: var(--c-primary); background: var(--c-light); position: relative; }
.woocommerce-tabs ul.tabs li.active a::after {
	content: ''; position: absolute; right: 0; left: 0; bottom: -2px; height: 2px; background: var(--c-accent);
}
.woocommerce-tabs .panel { animation: tileFadeIn .3s ease; }
.woocommerce-tabs .panel h2 { font-size: 19px; margin-bottom: 16px; }
@keyframes tileFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* جدول مشخصات فنی محصول (Additional Information) */
table.shop_attributes, table.woocommerce-product-attributes {
	width: 100%; border-collapse: collapse; border: 1px solid var(--c-border); border-radius: var(--radius);
	overflow: hidden; font-size: 14.5px;
}
table.shop_attributes tr, table.woocommerce-product-attributes tr { border-bottom: 1px solid var(--c-border); }
table.shop_attributes tr:last-child, table.woocommerce-product-attributes tr:last-child { border-bottom: none; }
table.shop_attributes tr:nth-child(odd), table.woocommerce-product-attributes tr:nth-child(odd) { background: var(--c-light); }
table.shop_attributes th, table.woocommerce-product-attributes th {
	text-align: right; padding: 14px 20px; width: 34%; font-weight: 700; color: var(--c-primary);
	background: transparent; border-left: 1px solid var(--c-border);
}
table.shop_attributes td, table.woocommerce-product-attributes td { padding: 14px 20px; color: var(--c-text); }
table.shop_attributes td p, table.woocommerce-product-attributes td p { margin: 0; }

/* توضیحات تکمیلی متنی */
#tab-description, .woocommerce-Tabs-panel--description { font-size: 16px; line-height: 2; color: var(--c-text); }

/* =========================================================
   نظرات مشتریان (برگه دیدگاه‌های محصول ووکامرس)
   ========================================================= */
#tab-reviews .woocommerce-Reviews-title { font-size: 19px; margin-bottom: 24px; }

#reviews .commentlist { list-style: none; margin: 0 0 10px; padding: 0; }
#reviews .commentlist .comment { border-bottom: 1px solid var(--c-border); padding: 22px 0; }
#reviews .commentlist .comment:first-child { padding-top: 0; }
#reviews .commentlist .comment:last-child { border-bottom: none; padding-bottom: 6px; }

#reviews .comment_container { display: flex; gap: 16px; align-items: flex-start; }
#reviews .comment_container img.avatar { border-radius: 50%; width: 48px; height: 48px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(15,25,40,.1); }
#reviews .comment-text { flex: 1; }
#reviews .comment-text .star-rating { font-size: 14px; margin-bottom: 6px; color: var(--c-border); }
#reviews .comment-text .star-rating span { color: var(--c-accent); }
#reviews .woocommerce-review__author { font-weight: 700; font-size: 15px; color: var(--c-text); }
#reviews .woocommerce-review__dash { display: none; }
#reviews .woocommerce-review__published-date { display: block; font-size: 12px; color: var(--c-muted); margin-top: 2px; }
#reviews .description { margin-top: 10px; font-size: 14.5px; line-height: 1.9; color: var(--c-text); }
#reviews .description p { margin: 0 0 8px; }
#reviews .description p:last-child { margin-bottom: 0; }

#reviews .woocommerce-noreviews { color: var(--c-muted); font-size: 14px; }

/* فرم ثبت دیدگاه محصول */
#review_form_wrapper { margin-top: 34px; }
#review_form #respond {
	margin-top: 0; padding: 28px 30px; background: var(--c-light); border: 1px solid var(--c-border); border-radius: var(--radius);
}
#review_form .comment-reply-title { font-size: 17px; margin: 0 0 18px; }

.comment-form-rating { margin-bottom: 16px; }
.comment-form-rating label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--c-text); }
.comment-form-rating p.stars { display: flex; gap: 4px; }
.comment-form-rating p.stars a {
	font-size: 0; width: 26px; height: 26px; position: relative; display: inline-block;
}
.comment-form-rating p.stars a::before {
	content: '\2605'; font-size: 22px; line-height: 1; color: var(--c-border); font-family: inherit;
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.comment-form-rating p.stars a:hover::before,
.comment-form-rating p.stars a:hover ~ a::before { color: var(--c-border); }
.comment-form-rating p.stars:hover a::before { color: var(--c-accent); }
.comment-form-rating p.stars a.active::before,
.comment-form-rating p.stars.selected a.active::before { color: var(--c-accent); }
.comment-form-rating p.stars.selected a:not(.active) ~ a::before { color: var(--c-border); }

#review_form .comment-form-author input,
#review_form .comment-form-email input,
#review_form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 8px;
	font-family: var(--font); font-size: 14.5px; background: var(--c-white); color: var(--c-text);
}
#review_form .comment-form-author input:focus,
#review_form .comment-form-email input:focus,
#review_form textarea:focus { outline: none; border-color: var(--c-accent); }
#review_form textarea { resize: vertical; min-height: 120px; }
#review_form .form-submit input[type="submit"] {
	background: var(--c-accent); color: var(--c-text); border: none; padding: 13px 34px; border-radius: var(--radius);
	font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--transition); font-family: var(--font);
}
#review_form .form-submit input[type="submit"]:hover { background: var(--c-accent-2); color: #ffffff; }
.single-product-related { padding: 34px 0 10px; border-top: 1px solid var(--c-border); margin-top: 10px; }
.related-products-title { font-size: 22px; margin-bottom: 22px; position: relative; padding-bottom: 12px; display: inline-block; }
.related-products-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 46px; height: 3px; background: var(--c-accent); border-radius: 3px; }
.related-products-grid { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   فوتر
   ========================================================= */
.site-footer { background: var(--c-primary); color: rgba(255,255,255,.75); margin-top: 60px; }
.footer-row1 { padding: 56px 0 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-col-about p { font-size: 14px; color: rgba(255,255,255,.68); margin-top: 14px; line-height: 1.9; }
.footer-site-title { color: var(--c-white); font-size: 20px; }
.footer-title { color: var(--c-white); font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 2px; background: var(--c-accent); }
.footer-menu li a, .footer-contact li { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,.68); }
.footer-menu li a:hover { color: var(--c-accent); }
.footer-contact-label { color: var(--c-white); font-weight: 600; margin-left: 6px; }
.footer-contact a { color: rgba(255,255,255,.68); }
.footer-contact a:hover { color: var(--c-accent); }

.footer-row2 { padding: 18px 0; background: var(--c-secondary); }
.footer-row2-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copyright { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-trust-badges { display: flex; gap: 14px; align-items: center; }
.footer-trust-badges img { border-radius: 6px; }

.tile-float-call { position: fixed; bottom: 22px; left: 22px; width: 54px; height: 54px; border-radius: 50%; background: var(--c-accent); color: var(--c-text); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 400; transition: opacity .25s ease, transform .25s ease; }
.tile-float-call.tile-float-hide { opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; }

/* =========================================================
   ریسپانسیو
   ========================================================= */
@media (max-width: 1024px) {
	.post-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.shop-layout { grid-template-columns: 1fr; }
	.shop-sidebar { order: 2; }
	.related-products-grid { grid-template-columns: repeat(2, 1fr); }
	.single-post-layout { grid-template-columns: 1fr; }
	.blog-layout { grid-template-columns: 1fr; }
	.post-sidebar { position: static; order: 2; margin-top: 0; }
	.blog-layout .post-sidebar { order: 2; }
	.related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.main-navigation { display: none; }
	.header-actions .btn { display: none; }
	.header-row2-inner { justify-content: space-between; }
	.header-actions { margin-right: auto; }
	.tile-menu-toggle { display: flex; order: 99; }
	.header-row1-left { display: none; }
	.single-product-wrap { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
	.post-grid { grid-template-columns: 1fr; }
	.products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.product-card-body { padding: 11px; }
	.product-card-cat { font-size: 9.5px; padding: 2px 8px; }
	.product-card-title { font-size: 13.5px; margin: 4px 0 6px; line-height: 1.5; }
	.product-card-rating { margin-bottom: 6px; }
	.product-card-rating .star-rating { font-size: 11px; }
	.product-card-price { font-size: 13px; margin-bottom: 8px; }
	.product-card-actions a.btn-view-specs { padding: 8px; font-size: 12px; gap: 4px; }
	.product-card-actions a.btn-view-specs svg { width: 13px; height: 13px; }
	.product-badge-sale { font-size: 10px; padding: 3px 8px; top: 6px; right: 6px; }
	.shop-archive-header { padding: 40px 0 34px; }
	.archive-title { font-size: 24px; }
	.shop-archive-description { padding: 22px 20px; margin: 0 16px 40px; }
	.footer-grid { grid-template-columns: 1fr; text-align: center; }
	.footer-title::after { right: 50%; transform: translateX(50%); }
	.footer-row2 { padding-bottom: 22px; }
	.footer-row2-inner { flex-direction: column; text-align: center; }
	.header-row2-inner { min-height: 64px; }
	.site-branding .custom-logo { max-height: 42px; }
	.single-post-title, .product-title { font-size: 22px; }
	.tile-gallery-thumb { width: 58px; height: 58px; }
	.single-post { padding: 22px 18px 26px; }
	.single-post-thumb { aspect-ratio: 4 / 3; }
	.related-posts-grid { grid-template-columns: 1fr; }
	.post-author-box { flex-direction: column; text-align: center; padding: 20px; }
	.post-author-avatar { align-self: center; }
	.related-products-grid { grid-template-columns: 1fr 1fr; }
	.header-row1-right { gap: 12px; }
	.header-row1-inner { justify-content: center; }
	.header-phone { font-size: 12.5px; }
}
