/*!
 * سلامتکده هیرمان — لایه دوم استایل: حرکت‌ها، دسته‌بندی گرد، فوتر، باکس‌های محصول، ورود پیامکی، فرم تماس
 */

/* ===== لوگو ===== */
.brand-logo img { height: 66px; width: auto; }
.footer-logo img { height: 124px; width: auto; }

/* ===== حرکت اسلایدر ===== */
@keyframes hmUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hmFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
/* پس‌زمینه ساده و یکدست (گرادیان سبزِ قبلی باعث سایه روی نوشته‌ها می‌شد) */
.hero-slider { background: var(--c-dark); }
.slide, .slide-2, .slide-3 { background: transparent; }
.slide.is-active .slide-copy > * { animation: hmUp .9s cubic-bezier(.2, .8, .2, 1) both; }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: .24s; }
.slide-art { animation: hmFloat 6s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .25)); }
.slider-dots button[aria-current="true"] { width: 36px; }

/* ===== نوار مزیت‌ها ===== */
.feature { transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .45); }

/* ===== دسته‌بندی‌های گرد ===== */
.cat-media { border-radius: 50%; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), background-color .3s, border-color .3s; }
.cat-card a:hover .cat-media { transform: scale(1.07) rotate(-3deg); background: var(--c-gold); color: var(--c-dark); }

/* ===== کارت محصول ===== */
ul.products li.product, .product-card { transition: transform .3s, box-shadow .3s; }
ul.products li.product:hover, .product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .5); }

/* ===== فوتر: شبکه‌ها و نمادها ===== */
.social-list { gap: 10px; margin: 16px 0 20px; flex-wrap: wrap; }
.social-list a { width: 44px; height: 44px; background: rgba(255, 255, 255, .1); border-color: transparent; transition: background-color .25s, transform .25s, color .25s; }
.social-list a:hover { background: var(--c-gold); color: var(--c-dark); transform: translateY(-3px); text-decoration: none; }
.social-list .txt { font-size: .95rem; }
.seals { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.seal { display: grid; place-items: center; min-width: 104px; min-height: 104px; padding: 8px; background: #fff; border-radius: 14px; text-align: center; }
.seal img { max-height: 88px; max-width: 100%; padding: 0; background: none; border-radius: 0; }
.seal a, .seal a:hover { text-decoration: none; }

/* ===== حذف از سبد خرید ===== */
table.cart .product-remove a.remove { width: auto; height: auto; padding: 4px 14px; border-radius: 999px; font-size: 0; }
table.cart .product-remove a.remove::after { content: "حذف"; font-size: .85rem; font-weight: 600; }

/* ===== باکس‌های صفحه محصول ===== */
.summary form.cart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.summary form.cart.grouped_form, .summary form.cart.external { display: block; }
.summary form.cart .single_variation_wrap,
.summary form.cart .woocommerce-variation-add-to-cart { display: contents; }
.hm-box, .summary form.variations_form table.variations {
	padding: 14px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-l);
}
.hm-box-qty { order: 1; }
.hm-box-weight, .summary form.variations_form table.variations { order: 2; }
.hm-box-add { order: 3; }
.summary form.cart .woocommerce-variation { grid-column: 1 / -1; order: 0; margin: 0; }
.hm-box-title, .summary form.variations_form table.variations label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--c-dark); font-size: .95rem; }
.hm-fixed { display: block; padding: 10px 0; font-size: 1.05rem; color: var(--c-dark); }
.hm-total { display: block; margin-bottom: 10px; font-size: 1.05rem; color: var(--c-dark); min-height: 1.9em; }
.hm-box-qty .quantity { display: flex; width: 100%; justify-content: space-between; align-items: center; border-radius: 999px; background: var(--c-cream); border-color: var(--c-line); }
.hm-box-qty .quantity .qty { flex: 1; min-width: 0; background: transparent; font-weight: 800; font-size: 1.1rem; }
.hm-box-qty .qty-btn { width: 40px; height: 40px; margin: 3px; border: 0; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 1.2rem; cursor: pointer; }
.hm-box-add .single_add_to_cart_button { width: 100%; min-width: 0; min-height: 48px; }
.summary form.variations_form table.variations { display: block; width: auto; }
.summary form.variations_form table.variations tbody, .summary form.variations_form table.variations tr { display: block; }
.summary form.variations_form .swatches { flex-direction: column; }
.summary form.variations_form .swatch { width: 100%; min-width: 0; min-height: 40px; }
.summary form.variations_form .reset_variations { margin-top: 6px; }
@media (max-width: 720px) {
	.summary form.cart { grid-template-columns: 1fr; }
	.hm-box-qty, .hm-box-weight, .hm-box-add, .summary form.variations_form table.variations { order: 0; }
	.summary form.variations_form table.variations { order: 2; }
	.hm-box-qty { order: 1; }
	.hm-box-add { order: 3; }
}

/* ===== ورود با کد پیامکی ===== */
.otp-box { max-width: 440px; margin: 10px auto 30px; padding: 26px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-l); }
.otp-box h2 { margin-bottom: 16px; font-size: 1.4rem; }
.otp-box .field { margin-bottom: 14px; }
.otp-box label { display: block; margin-bottom: 6px; font-weight: 600; }
.otp-box input.ltr { direction: ltr; text-align: center; width: 100%; }
.otp-box .btn { width: 100%; justify-content: center; }
.otp-cells { display: flex; gap: 8px; justify-content: center; margin: 8px 0 12px; }
.otp-cells input { width: 50px; height: 56px; padding: 0; text-align: center; font-size: 1.4rem; border: 1.5px solid var(--c-field); border-radius: var(--r-m); }
.otp-hint { color: var(--c-muted); font-size: .92rem; }
.otp-msg { min-height: 1.6em; margin: 0 0 8px; color: var(--c-danger); font-size: .9rem; }
.otp-links { display: flex; justify-content: center; gap: 16px; margin: 14px 0 0; }
.otp-link { padding: 0; font: inherit; font-weight: 700; color: var(--c-primary); background: none; border: 0; cursor: pointer; }
.otp-link:disabled { color: var(--c-muted); cursor: default; }
.otp-alt { margin: 18px 0 0; text-align: center; font-size: .9rem; }

/* ===== فرم تماس ===== */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-form, .contact-info { padding: 24px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-l); }
.contact-form .field { margin-bottom: 14px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; }
.contact-form input.ltr { direction: ltr; text-align: end; }
.contact-info h2 { font-size: 1.2rem; }
.contact-info ul { margin: 0; padding: 0; list-style: none; }
.contact-info li { margin-bottom: 8px; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-m); font-weight: 600; }
.form-note.is-ok { background: var(--c-light); color: var(--c-dark); }
.form-note.is-err { background: #fdecea; color: #7a1a14; }
@media (max-width: 720px) { .contact-wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	.slide-art, .slide.is-active .slide-copy > * { animation: none !important; }
	.feature, .cat-media, .social-list a, ul.products li.product, .product-card { transition: none !important; }
}

/* ===== بنر عمودی زیر فیلترهای فروشگاه ===== */
.shop-banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; margin-top: 18px; overflow: hidden; border-radius: var(--r-l); background: linear-gradient(170deg, var(--c-primary), var(--c-dark)); color: #fff; text-decoration: none; isolation: isolate; transition: transform .3s, box-shadow .3s; }
.shop-banner:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55); text-decoration: none; }
.shop-banner .sb-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: contain; object-position: center 22%; padding: 18px 18px 120px; }
.shop-banner.has-image .sb-art { object-fit: cover; object-position: center; padding: 0; }
.shop-banner.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 35, 25, .88) 0, rgba(10, 35, 25, 0) 62%); }
.sb-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; }
.sb-copy strong { font-size: 1.15rem; line-height: 1.5; }
.sb-text { font-size: .88rem; opacity: .92; }
.sb-copy .btn { margin-top: 6px; }

/* ===== روش‌های ارسال و پرداخت (از تنظیمات ووکامرس) ===== */
ul#shipping_method { list-style: none; margin: 0; padding: 0; }
ul#shipping_method li { margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-m); background: #fff; }
ul#shipping_method li label { display: inline; font-weight: 600; }
.woocommerce-shipping-totals th { vertical-align: top; }
#payment .payment_box { margin: 10px 0 0; padding: 12px 14px; background: var(--c-cream); border-radius: var(--r-m); font-size: .92rem; }
#payment .payment_box p:last-child { margin-bottom: 0; }
.hm-city, select.state_select { width: 100%; }

/* ===== نام برند کنار لوگو ===== */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 1.2rem; font-weight: 800; color: var(--c-dark); text-decoration: none; white-space: nowrap; }
.brand-name:hover { color: var(--c-primary); text-decoration: none; }
@media (max-width: 420px) { .brand-name { font-size: 1rem; } .brand-logo img { height: 54px; } }

/* ===== اسلایدر دسته‌بندی‌ها: ۷ دسته ثابت در هر نما ===== */
.cat-slider { position: relative; --per: 7; --gap: 16px; }
.cat-slider .cat-grid {
	display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none; padding: 6px 2px 10px;
}
.cat-slider .cat-grid::-webkit-scrollbar { display: none; }
.cat-slider .cat-card { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; }
.cat-slider .cat-name { font-size: .92rem; }
.cat-nav { position: absolute; top: 34%; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-dark); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); transition: background-color .2s, color .2s; }
.cat-nav:hover { background: var(--c-dark); color: #fff; }
.cat-nav[hidden] { display: none; }
.cat-prev { inset-inline-end: -14px; }
.cat-next { inset-inline-start: -14px; }
@media (max-width: 1100px) { .cat-slider { --per: 5; --gap: 14px; } }
@media (max-width: 720px) { .cat-slider { --per: 3.4; --gap: 10px; } .cat-nav { display: none; } .cat-slider .cat-name { font-size: .85rem; } }
@media (max-width: 420px) { .cat-slider { --per: 2.6; } }

/* ===== حساب کاربری ===== */
.hm-profile { margin: 0 0 22px; padding: 22px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-l); }
.hm-profile h2 { margin: 0 0 14px; font-size: 1.25rem; }
.hm-profile dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.hm-profile dt { color: var(--c-muted); font-size: .85rem; }
.hm-profile dd { margin: 2px 0 0; font-weight: 700; color: var(--c-dark); overflow-wrap: anywhere; }
.hm-profile .wide { grid-column: 1 / -1; }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.hm-stat { padding: 16px; text-align: center; background: var(--c-cream); border-radius: var(--r-m); }
.hm-stat b { display: block; font-size: 1.4rem; color: var(--c-dark); }
.hm-stat span { font-size: .85rem; color: var(--c-muted); }
.hm-quick { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) {
	.woocommerce-account.logged-in .entry-content > .woocommerce { grid-template-columns: 1fr; gap: 18px; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; border-radius: 999px; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation li { flex: none; }
	.woocommerce-MyAccount-navigation li a { padding: 10px 16px; border-bottom: 0; white-space: nowrap; }
}
@media (max-width: 560px) { .hm-profile dl, .hm-stats { grid-template-columns: 1fr; } }

/* ===== موبایل و تبلت ===== */
@media (max-width: 1024px) {
	.summary form.cart { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.hm-box { padding: 12px; }
}
@media (max-width: 720px) {
	.shop-banner { min-height: 300px; }
	.seals { justify-content: flex-start; }
	.seal { min-width: 96px; min-height: 96px; }
	.otp-box { padding: 20px; margin-inline: 0; }
	.otp-cells input { width: 46px; height: 52px; }
	.single-product .summary .price { font-size: 1.3rem; }
	table.shop_table_responsive td { text-align: start; }
	.woocommerce-checkout #payment { padding: 12px; }
	.contact-form, .contact-info { padding: 18px; }
}
@media (max-width: 420px) {
	.otp-cells { gap: 6px; }
	.otp-cells input { width: 42px; height: 50px; font-size: 1.25rem; }
	.hm-profile { padding: 16px; }
}
img, video, iframe { max-width: 100%; }
.entry-content table { display: block; overflow-x: auto; max-width: 100%; }

/* ===== آیکون تصویری بله و روبیکا در فوتر ===== */
.social-list .soc-img { width: 26px; height: 26px; object-fit: contain; display: block; }

/* ===== دکمه شناور واتساپ (سمت چپ) ===== */
.chat-fab {
	position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
	display: flex; align-items: center; gap: 0; height: 58px; padding: 0; overflow: hidden;
	border-radius: 999px; background: #25d366; color: #fff; text-decoration: none;
	box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55); transition: transform .3s, box-shadow .3s;
}
.chat-fab:hover, .chat-fab:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); text-decoration: none; color: #fff; }
.chat-ico { position: relative; flex: none; width: 58px; height: 58px; display: grid; place-items: center; }
.chat-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: hmPulse 2.4s ease-out infinite; }
.chat-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .95rem; transition: max-width .35s ease, padding .35s ease; }
.chat-fab:hover .chat-label, .chat-fab:focus-visible .chat-label { max-width: 180px; padding-inline-end: 18px; }
@keyframes hmPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 720px) { .chat-fab { height: 52px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } .chat-ico { width: 52px; height: 52px; } }
@media print { .chat-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-ico::after { animation: none; } .chat-fab, .chat-label { transition: none; } }

/* ===== فلش زیرمجموعه‌ها: گوشه‌ی چپ هر ردیف، باریک و خاکستری (مثل نمونه) ===== */
@media (min-width: 961px) {
	.cats-menu .sub-menu .menu-item-has-children > a { position: relative; display: block; padding-inline-end: 38px; }
	.cats-menu .sub-menu .menu-item-has-children > a::after {
		content: ""; position: absolute; top: 50%; inset-inline-end: 16px; float: none;
		display: block; width: 7px; height: 7px; margin: 0;
		border: solid #9aa3a0; border-width: 0 0 1.5px 1.5px;
		transform: translateY(-50%) rotate(45deg); transition: border-color .2s;
	}
	.cats-menu .sub-menu .menu-item-has-children:hover > a::after,
	.cats-menu .sub-menu .menu-item-has-children:focus-within > a::after { border-color: var(--c-dark); }
	.cats-menu .sub-menu .menu-item-has-children:hover > a { background: var(--c-light); }
	.cats-menu .sub-menu > li > a { border-radius: var(--r-s); }
}

/* ===== فروشگاه: ۴ محصول در هر ردیف ===== */
@media (min-width: 1101px) { .shop-content ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== بنرهای افقی صفحه اصلی ===== */
.hbanner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hbanner, .pbanner {
	position: relative; display: flex; align-items: center; min-height: 200px; padding: 30px 36px; overflow: hidden;
	color: #fff; text-decoration: none; border-radius: 24px; isolation: isolate; transition: transform .3s, box-shadow .3s;
}
.hbanner:hover, .pbanner:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .55); color: #fff; text-decoration: none; }
.hbanner-1 { background: linear-gradient(110deg, var(--c-dark), var(--c-primary)); }
.hbanner-2 { color: var(--c-dark); background: var(--c-cream); border: 1px solid #e6dcc0; }
.hbanner-2:hover { color: var(--c-dark); }
.pbanner { min-height: 190px; background: linear-gradient(110deg, var(--c-dark) 0, var(--c-primary) 100%); }
.hb-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; max-width: 58%; }
.hb-copy strong { font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.5; }
.hb-copy > span:not(.hb-btn) { font-size: .95rem; line-height: 1.8; opacity: .92; }
.hb-btn { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; padding: 6px 18px; font-weight: 700; color: var(--c-dark); background: var(--c-gold); border-radius: 20px; }
.hb-art { position: absolute; z-index: 1; inset-inline-end: -10px; bottom: -34px; height: 135%; width: auto; max-width: 46%; object-fit: contain; transition: transform .4s; animation: hmFloat 7s ease-in-out infinite; }
.hbanner:hover .hb-art, .pbanner:hover .hb-art { transform: scale(1.05) rotate(-3deg); }
.has-photo .hb-art { inset: 0; width: 100%; height: 100%; max-width: none; bottom: 0; object-fit: cover; animation: none; }
.hbanner.has-photo::after, .pbanner.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to left, rgba(10, 35, 25, .82) 0, rgba(10, 35, 25, .1) 70%); }
.hbanner-2.has-photo { color: #fff; }
@media (max-width: 860px) {
	.hbanner-grid { grid-template-columns: 1fr; }
	.hbanner, .pbanner { min-height: 170px; padding: 24px; }
	.hb-copy { max-width: 66%; }
}
@media (prefers-reduced-motion: reduce) { .hb-art { animation: none; } .hbanner, .pbanner { transition: none; } }

/* فونت یکسان برای همه عنصرهای فرم و دکمه‌ها */
button, input, select, textarea, optgroup { font-family: var(--font); }

/* ===== اسلایدر: عکس تمام‌صفحه پشت اسلاید، متن روی عکس (بدون گرادیان/سایه روی عکس) ===== */
.slide { position: relative; }
.slide-visual.has-photo { position: absolute; inset: 0; z-index: 0; display: block; margin: 0; }
.slide-visual.has-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; display: block; }
.slide-grid:has(.has-photo) { grid-template-columns: minmax(0, 1fr); }
.slide-grid:has(.has-photo) .slide-copy { position: relative; z-index: 2; max-width: 620px; }
.slide-grid:has(.has-photo) .slide-copy h1,
.slide-grid:has(.has-photo) .slide-copy h2,
.slide-grid:has(.has-photo) .slide-copy p { text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* ===== موبایل: باکس‌های صفحه محصول زیر هم (باید بعد از قاعده ۱۰۲۴px بیاید تا آن را باطل کند) ===== */
@media (max-width: 720px) {
	.summary form.cart { grid-template-columns: minmax(0, 1fr); }
	.hm-box-qty .quantity { min-width: 0; }
	.hm-box-qty .quantity .qty { min-width: 3ch; }
}
