/*
Theme Name: Accanta
Theme URI: https://accanta.ir
Author: Hesam
Description: Custom theme for Accanta landing + WooCommerce
Version: 1.0
Text Domain: accanta
*/

:root {
  --ink: #0b1f17;
  --muted: #e8fff6;
  --brand: #1fa97a;
  /* سبز انرژی‌بخش */
  --brand-2: #4ade80;
  /* سبز روشن */
  --accent: #ffd166;
  /* زرد گرم برای CTA */
  --badge: #9ae6b4;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.25);
  --card: rgba(255, 255, 255, 0.65);
  --shadow: 0 18px 50px rgba(4, 24, 16, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: IRANSans, Vazirmatn, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: #e8f7ef;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Categories (outside hero) */
.section {
  padding: 0px;
}

.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 1100px) {
  .cats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat {
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.cat .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1f17;
  font-weight: 900;
}

.cat b {
  font-size: 15px;
}

/* === Green Glass: Special Offers (banners) === */
.section .banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 10px;
}

@media (max-width: 1100px) {
  .section .banners {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .section .banners {
    grid-template-columns: 1fr;
  }
}

.section .banner {
  position: relative;
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 36px rgba(4, 24, 16, 0.16);
  color: #0b1f17;
  overflow: hidden;
  min-height: 120px;
}

.section .banner h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.section .banner p {
  margin: 0 0 8px;
  opacity: 0.85;
}

.section .banner .cta-btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd166, #fdd24f);
  color: #0b1f17;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.section .banner .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* subtle color tints per banner */
.section .banner.tg {
  background:
    linear-gradient(135deg, #a7f3d044, #ecfdf5aa), rgba(255, 255, 255, 0.65);
}

.section .banner.gpt {
  background:
    linear-gradient(135deg, #bbf7d044, #e6fffaaa), rgba(255, 255, 255, 0.65);
}

.section .banner.sp {
  background:
    linear-gradient(135deg, #c7f9cc44, #f1fff4aa), rgba(255, 255, 255, 0.65);
}

.section .banner.cv {
  background:
    linear-gradient(135deg, #f3e8ff44, #fdf4ffaa), rgba(255, 255, 255, 0.65);
}

.section .banner.bank {
  background:
    linear-gradient(135deg, #dbeafe44, #eff6ffaa), rgba(255, 255, 255, 0.65);
}

.section .banner.server {
  background:
    linear-gradient(135deg, #dcfce744, #f0fdf4aa), rgba(255, 255, 255, 0.65);
}

/* === Akanta Green Theme — Layout-preserving overrides (v3) === */
/* Sections */
.section.container,
section.section.container {
  padding: 26px 20px;
  background: linear-gradient(180deg, #f0fff6, #eefaf4 40%, #edf7f2 100%);
}

.section.container h2 {
  margin: 0 0 16px;
  color: #0b1f17;
}

/* Special banners grid already styled in v2 */

/* Trend products grid: .products (container) with .p items */
.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

.products .p {
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(4, 24, 16, 0.12);
  color: #0b1f17;
}

.products .p .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.products .p .price {
  font-weight: 900;
}

.products .p .muted {
  opacity: 0.75;
}

.products .p .btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #34d399, #22c55e);
  color: #0b1f17;
}

/* WHY section */
#why-akanta .why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0;
}

@media (max-width: 1000px) {
  #why-akanta .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #why-akanta .why-grid {
    grid-template-columns: 1fr;
  }
}

#why-akanta .why-card {
  background: #ffffffcc;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(4, 24, 16, 0.12);
  color: #0b1f17;
}

#why-akanta .why-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #34d399, #22c55e);
  display: grid;
  place-items: center;
  color: #0b1f17;
  font-weight: 900;
}

/* Blog grid */
#blog .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  #blog .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  #blog .grid {
    grid-template-columns: 1fr;
  }
}

#blog .card {
  background: #ffffffcc;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(4, 24, 16, 0.12);
  color: #0b1f17;
}

#blog .card .badge {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
}

/* Steps / How it works */
#how .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 1000px) {
  #how .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #how .grid {
    grid-template-columns: 1fr;
  }
}

#how .step {
  background: #ffffffcc;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(4, 24, 16, 0.12);
}

#how .step .num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #34d399, #22c55e);
  display: grid;
  place-items: center;
  color: #0b1f17;
  font-weight: 900;
}

/* FAQ */
#faq .qa {
  background: #ffffffcc;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  margin: 8px 0;
  box-shadow: 0 8px 20px rgba(4, 24, 16, 0.08);
}

#faq details summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
}

#faq details[open] summary {
  background: #f0fff6;
  border-bottom: 1px solid #e6f6ee;
  border-radius: 12px 12px 0 0;
}

#faq details .ans {
  padding: 12px 16px;
  color: #0b1f17;
  opacity: 0.9;
}

/* Newsletter + footer */
#newsletter .box {
  background: #ffffffcc;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(4, 24, 16, 0.12);
}

#newsletter input {
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 10px 12px;
}

#newsletter .btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #84cc16);
  color: #0b1f17;
}

footer {
  background: linear-gradient(180deg, #edf7f2, #eaf4ef);
  border-top: 1px solid #daf2e6;
}

footer .cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  footer .cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  footer .cols {
    grid-template-columns: 1fr;
  }
}

#why-akanta .why-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1000px) {
  #why-akanta .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  #why-akanta .why-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v15: Blog as tidy tiles */
#blog .blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}

#blog .blog-card {
  background: #ffffffcc !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 12px 28px rgba(4, 24, 16, 0.12) !important;
  color: #0b1f17 !important;
}

#blog .blog-card .chip {
  display: inline-block;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  margin-bottom: 6px;
}

#blog .blog-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

#blog .blog-card p {
  margin: 0 0 8px;
  opacity: 0.85;
}

#blog .blog-card .blog-cta {
  font-weight: 800;
}

@media (max-width: 1100px) {
  #blog .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 680px) {
  #blog .blog-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v16: How-it-works as tile cards */
#how .how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 1000px) {
  #how .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #how .how-grid {
    grid-template-columns: 1fr;
  }
}

#how .how-card {
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(4, 24, 16, 0.12);
  min-height: 160px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#how .how-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #34d399, #22c55e);
  color: #0b1f17;
  font-weight: 900;
}

#how h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

#how .how-points {
  margin: 0;
  padding-inline-start: 18px;
}

#how .how-points li {
  margin: 4px 0;
}

/* v16.3: Responsive blog grid & equal-height cards */
#blog .blog-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

#blog .blog-card {
  background: #ffffffcc !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 12px 28px rgba(4, 24, 16, 0.12) !important;
  color: #0b1f17 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Featured (spans 2 cols on large screens) */
@media (min-width: 1100px) {
  #blog .blog-card.featured {
    grid-column: span 2;
  }
}

/* v17.1: Glassy category chips with site color palette */
.section.container .cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.section.container .cats .cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(20, 80, 60, 0.12);
  box-shadow: 0 14px 30px rgba(4, 24, 16, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  min-height: 90px;
}

.section.container .cats .cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(4, 24, 16, 0.16);
}

.section.container .cats .cat .ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    60% 60% at 45% 35%,
    #a7f3d0 0%,
    #34d399 55%,
    #16a34a 100%
  );
  color: #06361f;
  font-weight: 900;
}

.section.container .cats .cat b {
  font-size: 0.98rem;
}

.section.container .cats .cat .examples {
  font-size: 0.86rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .section.container .cats {
    gap: 10px;
  }

  .section.container .cats .cat {
    padding: 12px;
    border-radius: 14px;
  }
}

/* v17.2 – category tiles: dark text, animated, and last-row fill */
.section.container .cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
  grid-auto-flow: dense;
}

/* Force columns to 4 on large screens so we can span the last item to fill space */
@media (min-width: 1100px) {
  .section.container .cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section.container .cats .cat:last-child {
    grid-column: span 2;
  }
}

.section.container .cats .cat {
  color: #111 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(20, 80, 60, 0.12);
  box-shadow: 0 12px 26px rgba(4, 24, 16, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  min-height: 100px;
  will-change: transform, box-shadow;
}

.section.container .cats .cat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 40px rgba(4, 24, 16, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

.section.container .cats .cat .ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    60% 60% at 45% 35%,
    #a7f3d0 0%,
    #34d399 55%,
    #16a34a 100%
  );
  color: #06361f;
  font-weight: 900;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(6, 54, 31, 0.15);
}

.section.container .cats .cat b {
  font-size: 1rem;
  color: #0b1f17;
}

.section.container .cats .cat .examples {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* v17.3: Featured-wide request card */
.section.container .cats .featured-wide {
  grid-column: 1 / -1;
  min-height: 140px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.section.container .cats .featured-wide .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 22px;
}

.section.container .cats .featured-wide b {
  font-size: 1.05rem;
}

.section.container .cats .featured-wide .desc {
  grid-column: 2 / 4;
  color: #0b1f17;
  opacity: 0.9;
}

.section.container .cats .featured-wide .benefits {
  grid-column: 2 / 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 4px 0 0 0;
  list-style: none;
}

.section.container .cats .featured-wide .benefits li {
  background: rgba(22, 163, 74, 0.09);
  border: 1px dashed rgba(22, 163, 74, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #0b1f17;
}

.section.container .cats .featured-wide .cta-btn {
  grid-column: 3 / 4;
  justify-self: end;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(22, 163, 74, 0.35);
  box-shadow: 0 10px 24px rgba(4, 24, 16, 0.12);
  color: #0b1f17;
  text-decoration: none;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.section.container .cats .featured-wide .cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(4, 24, 16, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 800px) {
  .section.container .cats .featured-wide {
    grid-template-columns: auto 1fr;
    grid-column: 1/-1;
  }

  .section.container .cats .featured-wide .desc {
    grid-column: 1 / -1;
  }

  .section.container .cats .featured-wide .benefits {
    grid-column: 1 / -1;
  }

  .section.container .cats .featured-wide .cta-btn {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 6px;
  }
}

/* v17.4: Make request card span width (2 cols) instead of full-row, keep height compact */
@media (min-width: 1100px) {
  .section.container .cats .featured-wide {
    grid-column: span 2 !important;
  }
}

.section.container .cats .featured-wide {
  min-height: 100px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: space-between !important;
}

.section.container .cats .featured-wide .desc {
  margin-inline-start: 8px;
  opacity: 0.95;
}

.section.container .cats .featured-wide .benefits {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.section.container .cats .featured-wide .cta-btn {
  white-space: nowrap;
}

@media (max-width: 800px) {
  .section.container .cats .featured-wide {
    grid-column: 1 / -1 !important;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .section.container .cats .featured-wide .cta-btn {
    margin-top: 6px;
  }
}

/* v17.6: Make the request tile span the full row; compact height; centered content */
@media (min-width: 1100px) {
  .section.container .cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section.container .cats .featured-wide {
    grid-column: 1 / -1 !important;
    /* take all columns */
  }
}

.section.container .cats .featured-wide {
  min-height: 100px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: space-between !important;
}

:root {
  --brand: #16a34a;
  --brand-600: #15803d;
  --bg: #ffffff;
  --ink: #0b1f17;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ic {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #86efad, #22c55e);
  color: #06361f;
  font-weight: 900;
  font-size: 13px;
}

.login {
  color: #111;
  font-weight: 800;
}

.support .ic {
  background: #eafbf1;
}

.notif .ic {
  background: #eef7f1;
}

.row-2 {
  border-top: 1px solid var(--border);
  background: #fff;
}

.cats {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  overflow: auto hidden;
  padding: 8px 0;
}

.cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cat .dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(65% 65% at 35% 35%, #86efad, #22c55e);
}

.cat:hover {
  background: #eef7f1;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.cat.active {
  background: #e6f7ed;
  border-color: #c7ead7;
}

@media (max-width: 980px) {
  .row-1 {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }

  .brand {
    order: 1;
  }

  .search {
    order: 3;
    grid-column: 1/-1;
    max-width: none;
  }

  .actions {
    order: 2;
  }
}

@media (max-width: 560px) {
  .action .txt {
    display: none;
  }

  .row-1 {
    min-height: 64px;
  }

  .search input {
    padding: 12px;
  }

  .search .btn {
    height: 40px;
  }

  .cats {
    gap: 8px;
  }
}

/* v18 patch: real brand logo & text links in row-2 */
header .brand .brand-logo {
  height: 32px;
  /* پیاده‌سازی اندازه جمع‌وجور مشابه نسخه قبلی */
  width: auto;
  display: block;
}

header .row-2 {
  background: #fff;
}

header .row-2 .container {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  padding: 8px 16px;
}

header .row-2 .navlink {
  color: #0b1f17;
  font-weight: 800;
  text-decoration: none;
  opacity: 0.9;
  padding: 6px 0;
}

header .row-2 .navlink:hover {
  color: #15803d;
  text-decoration: underline;
}

.row-2 .container.cats {
  padding-top: 4px;
  padding-bottom: 4px;
  min-height: unset;
  height: auto;
}

/* Compact row-2 (cats) */
header .row-2 .container.cats {
  min-height: 36px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

header .row-2 .navlink {
  padding: 4px 0 !important;
}

/* Safer compact header nav */
header .row-2 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header .row-2 .cats {
  min-height: 32px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

header .row-2 .navlink {
  line-height: 32px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#why-akanta .why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

#why-akanta .why-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

#why-akanta .why-card b {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

#why-akanta .why-card .muted {
  font-size: 15px;
}

#why-akanta .why-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e9f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

@media (max-width: 1024px) {
  #why-akanta .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #why-akanta .why-grid {
    grid-template-columns: 1fr;
  }
}

#why-akanta .why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

#why-akanta .why-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

#why-akanta .why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e9f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

#why-akanta .why-text b {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

#why-akanta .why-text .muted {
  font-size: 14px;
}

@media (max-width: 1024px) {
  #why-akanta .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #why-akanta .why-grid {
    grid-template-columns: 1fr;
  }
}

/* WHY section v119 */
#why-akanta {
  --card-bg: #fff;
  --badge-bg: #e9f7ef;
}

#why-akanta .why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

#why-akanta .why-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

#why-akanta .why-card .txt {
  flex: 1;
  text-align: center;
  padding-inline: 16px;
}

#why-akanta .why-card b {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1.4;
}

#why-akanta .why-card .muted {
  font-size: 15px;
  opacity: 0.85;
}

#why-akanta .badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#why-akanta .why-card .badge-icon {
  margin-right: 16px;
}

/* responsive */
@media (max-width: 1200px) {
  #why-akanta .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #why-akanta .why-grid {
    grid-template-columns: 1fr;
  }

  #why-akanta .why-card {
    padding: 18px;
  }

  #why-akanta .why-card b {
    font-size: 18px;
  }

  #why-akanta .badge-icon {
    width: 48px;
    height: 48px;
  }
}

#why-akanta .why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

#why-akanta .badge-icon {
  margin: 0 0 12px 0 !important;
}

#why-akanta .why-card .txt {
  padding-inline: 0 !important;
}

#blog .blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
}

#blog .blog-grid > article:first-child {
  grid-row: span 2;
}

html {
  scroll-behavior: smooth;
}

.newsletter {
  padding: 2rem 1rem;
  background: linear-gradient(45deg, #1a2980, #26d0ce);
  color: #ffffff;
  text-align: center;
  font-family: sans-serif;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 900px;
}

.newsletter-icon {
  margin-bottom: 0.5rem;
}

.newsletter h2 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.newsletter p {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  direction: ltr;
  text-align: left;
  padding: 0.7em 1em;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  margin: 0.2em;
  flex: 1 1 auto;
  min-width: 250px;
}

.newsletter-form input::placeholder {
  color: #888;
}

.newsletter-form button {
  padding: 0.7em 1.5em;
  font-size: 1rem;
  font-weight: bold;
  color: #1a2980;
  background: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex: 0 0 auto;
  margin: 0.2em;
}

.newsletter-form button:hover {
  background: #f0f0f0;
}

.newsletter-form button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.success-message {
  display: none;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.newsletter.submitted .success-message {
  display: block;
  color: #c2ffd8;
}

#newsletter {
  margin-top: 28px;
}

#newsletter .nl-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0fff8, #e7fbf4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  padding: 28px;
}

#newsletter .nl-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#newsletter .nl-art svg {
  width: 88%;
  height: auto;
}

#newsletter .nl-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

#newsletter .nl-badge {
  align-self: flex-start;
  background: rgba(0, 184, 148, 0.1);
  color: #008f74;
  border: 1px solid rgba(0, 184, 148, 0.25);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

#newsletter h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  color: #033;
  font-weight: 800;
}

#newsletter .nl-sub {
  margin: 0;
  color: #335;
  opacity: 0.9;
  line-height: 1.8;
}

#newsletter .nl-form {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#newsletter .nl-input {
  direction: ltr;
  text-align: left;
  flex: 1 1 260px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

#newsletter .nl-input:focus {
  border-color: #00b894;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
}

#newsletter .nl-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #00b894, #2dd4bf);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 10px 18px rgba(0, 184, 148, 0.25);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

#newsletter .nl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 184, 148, 0.3);
}

#newsletter .nl-note {
  font-size: 13px;
  color: #064;
  opacity: 0.9;
  margin-top: 6px;
}

#newsletter .nl-success {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eafff7;
  color: #064;
  border: 1px solid rgba(0, 184, 148, 0.2);
  font-weight: 600;
}

@media (max-width: 900px) {
  #newsletter .nl-wrap {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  #newsletter .nl-art {
    order: 2;
  }

  #newsletter .nl-body {
    order: 1;
  }

  #newsletter h2 {
    font-size: 20px;
  }
}

/* ===== منوی پروفایل بالای سایت ===== */

.profile-menu {
  position: relative;
  display: inline-block;
}

.profile-toggle {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* مطمئن شو .action خودش استایل دکمه سبز را دارد */

.profile-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
}

.profile-dropdown-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #111827;
  text-decoration: none;
  text-align: right;
  white-space: nowrap;
}

.profile-dropdown-link:hover {
  background: #f3f4f6;
}

.profile-dropdown-link--logout {
  color: #b91c1c;
}

/* باز شدن منو با هاور (برای دسکتاپ) */
.profile-menu:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* در موبایل اگر فقط کلیک لازم داشتی بعداً می‌تونیم با JS فعال کنیم */

/* === Accanta My Account Dashboard === */

.acc-account {
  padding: 24px 0 40px;
}

.acc-account--guest .acc-account-guest-card {
  max-width: 520px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 18px 45px rgba(4, 24, 16, 0.12);
  text-align: right;
}

.acc-account-guest-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.acc-account-guest-card p {
  margin: 0 0 16px;
  color: #6b7280;
}

.acc-account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

/* Sidebar */
.acc-account-sidebar {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 18px 40px rgba(4, 24, 16, 0.06);
}

.acc-account-sidebar-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.acc-account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acc-account-nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.acc-account-nav-link:hover {
  background: #f3f4f6;
  transform: translateX(-2px);
}

.acc-account-nav-link.is-active {
  background: #e6f7ed;
  color: #065f46;
}

.acc-account-nav-link--logout {
  margin-top: 8px;
  color: #b91c1c;
}

/* Content area */
.acc-account-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.acc-account-section-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.acc-account-section-sub {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

/* Cards */
.acc-account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.acc-account-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 16px 36px rgba(4, 24, 16, 0.08);
}

.acc-account-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.acc-account-card-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b7280;
}

/* Wallet */
.acc-account-card--wallet,
.acc-account-card--wallet-inline {
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fff8, #e7fbf4);
}

.acc-account-wallet-amount {
  font-size: 22px;
  font-weight: 900;
  margin: 4px 0 10px;
}

.acc-account-wallet-amount span {
  font-size: 12px;
  margin-right: 4px;
  color: #6b7280;
}

.acc-account-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons */
.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.acc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.acc-btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  color: #0b1f17;
}

.acc-btn--ghost {
  background: #f9fafb;
}

/* meta lines */
.acc-meta-line {
  margin: 2px 0;
  font-size: 13px;
  color: #374151;
}

/* Quick links */
.acc-quick-links {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 14px;
}

.acc-quick-links li {
  margin: 4px 0;
}

.acc-quick-links a {
  color: #065f46;
  text-decoration: underline;
}

/* Table */
.acc-table-wrapper {
  overflow-x: auto;
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.acc-table th,
.acc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
}

.acc-table th {
  background: #f9fafb;
  font-weight: 700;
}

.acc-table-footer {
  margin-top: 10px;
}

.acc-link {
  color: #065f46;
  text-decoration: underline;
  font-size: 13px;
}

/* Profile card */
.acc-account-card--profile dl {
  margin: 0;
}

.acc-profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.acc-profile-row:last-child {
  border-bottom: 0;
}

.acc-profile-row dt {
  font-size: 13px;
  color: #6b7280;
}

.acc-profile-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .acc-account-layout {
    grid-template-columns: 1fr;
  }

  .acc-account-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .acc-account-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .acc-account-nav-link {
    padding-inline: 8px;
  }
}

@media (max-width: 640px) {
  .acc-account {
    padding-top: 16px;
  }

  .acc-account-sidebar-title {
    font-size: 16px;
  }

  .acc-account-card {
    padding: 14px 12px;
  }

  .acc-account-wallet-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* پروفایل در هدر */
.profile-menu {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  display: none;
  /* مهم: در حالت عادی مخفی */
  z-index: 1000;
}

.profile-menu.is-open .profile-dropdown {
  display: block;
  /* وقتی کلاس is-open اضافه شد، نمایش داده شود */
}

.profile-dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.profile-dropdown-link:hover {
  background: #f5f7fa;
}

.profile-dropdown-link--logout {
  color: #d9534f;
}

html, body {
  font-family: "Vazirmatn", IRANSans, "Segoe UI", Tahoma, Arial, sans-serif;
}




/* ==================================================
   ACCANTA — WooCommerce Cart & Checkout Enhancements
   Wallet (Cart) + Required Fields (Checkout)
   ================================================== */

/* ==================================================
   CART — Wallet UI
   ================================================== */

/* Fix table interference (Cart Totals) */
.woocommerce-cart .acc-wallet-row th {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Wallet card */
.woocommerce-cart .acc-wallet-box {
  background: linear-gradient(135deg, #f0fff8, #e7fbf4);
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 10px 24px rgba(4, 24, 16, 0.08);
}

.woocommerce-cart .acc-wallet-box h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
}

.woocommerce-cart .acc-wallet-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 6px 0;
}

.woocommerce-cart .acc-wallet-line span {
  color: #064e3b;
}

.woocommerce-cart .acc-wallet-line b {
  font-weight: 800;
}

.woocommerce-cart .acc-wallet-final {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #86efac;
  font-size: 14px;
  font-weight: 800;
  color: #065f46;
}

/* ==================================================
   CHECKOUT — Required Email Field
   ================================================== */

.woocommerce-checkout .acc-checkout-email input {
  width: 100%;
  direction: ltr;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #a7f3d0;
  font-size: 14px;
  background: #ffffff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.woocommerce-checkout .acc-checkout-email input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* ==================================================
   CHECKOUT — Confirmation Checkbox
   ================================================== */

.acc-checkout-confirm {
  margin: 18px 0 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f0fff8;
  border: 1px solid #bbf7d0;
}

.acc-confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #065f46;
  cursor: pointer;
}

.acc-confirm-label input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #16a34a;
  transform: scale(1.05);
}

.acc-confirm-label a {
  color: #15803d;
  font-weight: 700;
  text-decoration: underline;
}

.acc-confirm-label a:hover {
  text-decoration: none;
}

/* ==================================================
   Responsive adjustments
   ================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .woocommerce-cart .acc-wallet-box {
    padding: 14px;
    border-radius: 16px;
  }

  .woocommerce-cart .acc-wallet-line {
    font-size: 13.5px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .woocommerce-cart .acc-wallet-box {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .woocommerce-cart .acc-wallet-line {
    font-size: 13px;
    flex-wrap: wrap;
  }

  .woocommerce-checkout .acc-checkout-email input {
    font-size: 13.5px;
    padding: 11px 12px;
    border-radius: 12px;
  }

  .acc-checkout-confirm {
    padding: 12px;
  }

  .acc-confirm-label {
    font-size: 13.5px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .woocommerce-cart .acc-wallet-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .woocommerce-cart .acc-wallet-line b {
    align-self: flex-end;
  }

  .acc-confirm-label {
    gap: 8px;
    font-size: 13px;
  }
}

html,
body {
  height: 100%;
}

#site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.trending-section {
  background: #e8f7ef;
}

.green-background {
  background: linear-gradient(180deg, #f0fff6, #eefaf4 40%, #edf7f2 100%);
}

.why-intro {
  max-width: 820px;
  margin: 0 auto 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
  text-align: center;
}
