/* ================ */
/* سکشن دسته بندی های دوم */
/* ================ */
:is(.alo-cats, .elementor-element-1dc801c) {
--alo-ink: #2b231e;
--alo-brown: #332115;
--alo-accent: #aa8872;
--alo-cream: #fcf7f1;
--alo-sand: #eee4d8;
--alo-line: #ebdfd4;
--alo-radius: 13px;
--alo-ease: cubic-bezier(.22, .8, .24, 1);
}
/* تصویر دسته مراقبت بدن */
.alo-cats .wd-cat a.wd-cat-image[href*="body-care"] img {
content: url("https://demoarazitco.ir/alopoost/wp-content/uploads/2026/10/body-care.webp") !important;
}
/* تصویر دسته مراقبت مو */
.alo-cats .wd-cat a.wd-cat-image[href*="hair-care"] img {
content: url("https://demoarazitco.ir/alopoost/wp-content/uploads/2026/10/hair-care.webp") !important;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-grid-g {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 20px;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-grid-g > .wd-cat {
grid-column: span 2;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-grid-g > .wd-cat:nth-child(n + 4) {
grid-column: span 3;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-inner {
position: relative;
height: 100%;
aspect-ratio: 4 / 5;
border-radius: var(--alo-radius);
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default:nth-child(n + 4) .wd-cat-inner {
aspect-ratio: 16 / 10;
}
/* ---------- تصویر ---------- */
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-thumb {
position: absolute;
inset: 0;
margin: 0;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-image {
height: 100%;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-image img {
height: 100%;
object-fit: cover;
transition: transform 1.2s var(--alo-ease);
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-inner:hover .wd-cat-image img {
transform: scale(1.05);
}
/* سایهی قهوهای ملایم پایین (برای خوانایی متن) و بالا (برای شمارنده) */
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-thumb::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(0deg, rgba(51, 33, 21, .68) 0%, rgba(51, 33, 21, .22) 36%, rgba(51, 33, 21, 0) 60%),
linear-gradient(180deg, rgba(51, 33, 21, .16) 0%, rgba(51, 33, 21, 0) 22%);
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-content {
position: absolute;
inset: 0;
z-index: 2;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-rows: 1fr auto;
grid-template-areas:
"count count"
"title pill";
padding: 16px !important;
transform: none;
pointer-events: none; /* کل کانتینر کلیکپذیر میماند */
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-entities-title {
position: static;
font-size: clamp(16px, 1.5vw, 20px);
font-weight: 600;
line-height: 1.6;
color: #fff;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-count {
grid-area: count;
justify-self: start;
align-self: start;
padding: 4px 11px;
border-radius: 100px;
background: rgba(252, 247, 241, .92);
font-size: 12px;
line-height: 1.6;
color: var(--alo-ink);
opacity: 1;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-content::after {
content: "مشاهده";
padding: 6px 16px 6px 16px;
border: 1px solid rgba(255, 255, 255, .55);
border-radius: 100px;
font-weight: 600;
color: #fff;
transition: all 0.3s
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-inner:hover .wd-cat-content::after {
background-color: #fff;
border-color: #fff;
color: var(--alo-brown);
}
/* تبلت */
@media (max-width: 1024px) {
:is(.alo-cats, .elementor-element-1dc801c) { --alo-gap: 14px; }
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-content::after {
content: "←";
width: 34px;
height: 34px;
padding: 0;
display: flex;
justify-content: center;
align-items: center
}
}
/* موبایل */
@media (max-width: 768px) {
:is(.alo-cats, .elementor-element-1dc801c) { --alo-gap: 10px; --alo-radius: 12px; }
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-grid-g {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-grid-g > .wd-cat,
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-grid-g > .wd-cat:nth-child(n + 4) {
grid-column: span 1;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-grid-g > .wd-cat:first-child {
grid-column: 1 / -1;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-inner,
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default:nth-child(n + 4) .wd-cat-inner {
aspect-ratio: 4 / 5;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default:first-child .wd-cat-inner {
aspect-ratio: 16 / 10;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-content {
padding: 10px !important;
column-gap: 8px;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-entities-title {
font-size: 14px;
line-height: 1.5;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-count {
padding: 2px 9px;
font-size: 11px;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-content::after {
width: 30px;
height: 30px;
}
.wd-entities-title{
text-align: right;
font-size: 12px !important
}
}
/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-image img,
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-content::after {
transition: none;
}
:is(.alo-cats, .elementor-element-1dc801c) .wd-cats-element .wd-cat.cat-design-default .wd-cat-inner:hover .wd-cat-image img {
transform: none;
}
}