/*
Theme Name: Blocksy Child
Template: blocksy
Text Domain: blocksy-child
Version: 1.0.0
*/

/* پس‌زمینه کلی فوتر سایت */
.site-footer,
.wp-block-template-part {
  background: linear-gradient(135deg, #05281f, #093629, #0a3f2c) !important;
}

/* باکس اصلی فوتر */
.footer-main-block {
  direction: rtl;
  width: 100%;
  max-width: 1600px;
  margin: 1.5rem auto 0;
  padding: 1.3rem 2rem 2.3rem;
  border-radius: 12px;
  box-sizing: border-box;

  background: radial-gradient(circle at top left, #1f4d3b 0, #062019 60%, #030805 100%);

  border: 1px solid #f0c96b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 20px rgba(240, 201, 107, 0.4),
    0 25px 45px rgba(0, 0, 0, 0.55);

  color: #f7f7f7;
  font-size: 0.95rem;
}

/* سه ستون بالایی روی دسکتاپ */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-col {
  min-width: 0;
}

/* عناوین ستون‌ها (فقط برای about و دسته‌بندی‌ها) */
.footer-heading {
  position: relative;
  display: inline-block;
  padding: 0.45rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(240, 202, 103, 0.4);
}

/* متن توضیحات برند */
.footer-about-text {
  opacity: 0.92;
  line-height: 1.9;
  font-size: 0.92rem;
}

/* دسته‌بندی‌ها */
.footer-cats-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-cats-list li {
  margin-bottom: 0.4rem;
}
.footer-cats-list a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.25s;
}
.footer-cats-list a::after {
  content: " >";
  opacity: 0.7;
}
.footer-cats-list a:hover {
  color: #ffe29f;
  text-shadow: 0 0 4px rgba(240, 200, 120, 0.3);
}

/* عنوان شیشه‌ای شماره‌های تماس (به‌جای عنوان تماس با ما) */
.footer-phone-title {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.3rem 0.9rem;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(240, 202, 103, 0.4);
}

/* شماره تلفن‌ها */
.footer-phones {
  margin-bottom: 0.7rem;
}
.footer-phones a {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffe7a6;
  text-decoration: none;
  transition: 0.25s;
}
.footer-phones a:hover {
  color: #fff6d0;
  text-shadow: 0 0 8px rgba(255, 230, 170, 0.6);
  transform: translateX(-4px);
}

/* باکس شیشه‌ای آدرس‌ها – حالا فول‌عرض زیر سه ستون */
.footer-address-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.9rem 1rem;
  margin: 0.4rem 0 0.8rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-sizing: border-box;
}
.footer-address-box .footer-address {
  margin: 0;
  line-height: 1.8;
  color: #e9f7ef;
  font-size: 0.9rem;
}

/* ایمیل */
.footer-email {
  margin-top: 0.3rem;
}
.footer-email a {
  color: #92ffd0;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}
.footer-email a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(150, 255, 200, 0.5);
}

/* باکس نمادهای اعتماد */
.footer-trust {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-top: 1.3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-trust-title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 6px rgba(240, 202, 103, 0.4);
}
.footer-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}
.footer-trust-logos img {
  height: 50px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
}

/* زرین‌پال کمی کوچک‌تر */
#zarinpal {
  transform: scale(0.9);
}

/* شبکه‌های اجتماعی */
.footer-social {
  margin-top: 1.2rem;
}
.footer-social-title {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.footer-social-icons {
  display: flex;
  gap: 0.6rem;
}
.footer-social-icons a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: 0.25s;
}
.footer-social-icons a:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.footer-social-icons img {
  width: 18px;
}

/* باکس اعتماد (۴ ویژگی) */
.footer-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.footer-benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  transition: 0.25s;
}
.footer-benefit-card:hover {
  border-color: rgba(255, 215, 130, 0.8);
  box-shadow: 0 0 12px rgba(255, 215, 130, 0.35);
}
.footer-benefit-icon img {
  width: 40px;
  margin-bottom: 0.5rem;
}
.footer-benefit-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 215, 130, 0.25);
}
.footer-benefit-card p {
  opacity: 0.88;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ===== موبایل (زیر 768px) ===== */
@media (max-width: 768px) {

  .footer-main-block {
    width: calc(100% - 1rem);
    max-width: 100%;
    margin: 1.4rem auto 0;
    border-radius: 20px;
    padding: 1.4rem 1.1rem 1.6rem;
  }

  .footer-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .footer-col-about {
    grid-column: 1 / span 2;
  }

  .footer-heading {
    font-size: 0.95rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.6rem;
  }

  .footer-col p,
  .footer-col a,
  .footer-col li {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .footer-address-box-full {
    margin-top: 0.6rem;
  }

  .footer-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .footer-benefit-card {
    padding: 0.8rem 0.7rem;
    border-radius: 11px;
  }

  .footer-benefit-icon img {
    width: 30px;
    height: 30px;
    margin-bottom: 0.35rem;
  }

  .footer-benefit-card h4 {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
  }

  .footer-benefit-card p {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .footer-trust {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
  }

  .footer-trust-title {
    font-size: 0.88rem;
  }
}

/* سکشن اصلی دسته بندی ها */
.main-categories-section {
  direction: rtl;
  padding: 60px 0 40px;
  background: #f7f5f0;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.main-categories-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* تیتر */
.main-categories-section .section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #1f2933;
}

/* گرید دسته‌بندی‌ها */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* کارت هر دسته */
.category-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  min-height: 180px;
  background: #111;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* لایه تیره روی عکس */
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.05));
  transition: background 0.3s ease;
}

/* عنوان روی کارت */
.category-title {
  position: absolute;
  bottom: 18px;
  right: 18px;
  left: 18px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  z-index: 2;
}

/* افکت هاور دسکتاپ */
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15));
}

/* ریسپانسیو – تبلت */
@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .category-card {
    min-height: 160px;
  }

  .category-title {
    font-size: 16px;
  }
}

/* ریسپانسیو – موبایل کوچک */
@media (max-width: 576px) {
  .main-categories-section {
    padding: 40px 0 30px;
    margin-top: -20px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    min-height: 140px;
    border-radius: 14px;
  }

  .category-title {
    bottom: 12px;
    font-size: 14px;
  }
}

.more-info-btn {
  display: inline-block;
  padding: 5px 10px;
  background-color: #a8977b;
  color: #fff !important;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 5px rgba(0,0,0,0.12);
}

.more-info-btn:hover {
  background-color: #8c7a5f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  color: #fff !important;
}

/* خط باریک دور کارت محصول بدون کوچک شدن عکس */
.woocommerce ul.products li.product {
  outline: 1px solid #a8977b;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
  outline: 1px solid #a8977b;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ویجت اختصاصی Post Grid با کلاس tp-custom-grid */
.tp-custom-grid .uagb-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* کارت بزرگ اول (Hero) */
.tp-custom-grid .uagb-post__inner-wrap:first-child {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.8rem;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.tp-custom-grid .uagb-post__inner-wrap:first-child .uagb-post__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

.tp-custom-grid .uagb-post__inner-wrap:first-child .uagb-post__text {
  text-align: right;
}

.tp-custom-grid .uagb-post__inner-wrap:first-child .uagb-post__title {
  font-size: 1.6rem !important;
  font-weight: 700;
  margin-bottom: .6rem;
}

/* سه کارت کوچک پایین */
.tp-custom-grid .uagb-post__inner-wrap:not(:first-child) {
  display: grid !important;
  grid-template-columns: 0.9fr 1.6fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-custom-grid .uagb-post__inner-wrap:not(:first-child) .uagb-post__image img {
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.tp-custom-grid .uagb-post__inner-wrap:not(:first-child) .uagb-post__text {
  text-align: right;
}

.tp-custom-grid .uagb-post__inner-wrap:not(:first-child) .uagb-post__title {
  font-size: 1rem !important; /* FIX */
  font-weight: 600;
  line-height: 1.4;
}

/* Hover افکت */
.tp-custom-grid .uagb-post__inner-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* موبایل: همه زیر هم */
@media (max-width: 768px) {
  .tp-custom-grid .uagb-post-grid {
    grid-template-columns: 1fr !important;
  }

  .tp-custom-grid .uagb-post__inner-wrap:first-child {
    grid-template-columns: 1fr;
  }
}


