body.bd-modern {
  --bd-ink: #122b3a;
  --bd-muted: #536672;
  --bd-accent: #0f766e;
  --bd-line: #dfe8e9;
  --wd-primary-color: #0f766e;
  --wd-text-font: IRANSans, Tahoma, sans-serif;
  --wd-title-font: IRANSans, Tahoma, sans-serif;
  --wd-alternative-font: IRANSans, Tahoma, sans-serif;
  --e-global-typography-primary-font-family: IRANSans;
  --e-global-typography-secondary-font-family: IRANSans;
  --e-global-typography-text-font-family: IRANSans;
  --e-global-typography-accent-font-family: IRANSans;
  background: #f4f7f8;
  color: var(--bd-ink);
  font-family: IRANSans, Tahoma, sans-serif;
}

body.bd-modern :is(h1, h2, h3, h4, h5, h6, input, select, textarea, button, .btn, .button) {
  font-family: IRANSans, Tahoma, sans-serif;
}

body.bd-modern .main-page-wrapper {
  background: #f4f7f8;
}

body.bd-modern .whb-top-bar {
  background: #123b49 !important;
  color: #e4efee;
}

body.bd-modern .whb-top-bar a {
  color: #e4efee;
}

body.bd-modern .whb-general-header {
  background: #fff;
  border-bottom: 1px solid var(--bd-line);
}

body.bd-modern .whb-general-header-inner {
  min-height: 84px;
}

body.bd-modern .wd-tools-element > a {
  color: var(--bd-ink);
}

body.bd-modern .page-title {
  margin-bottom: 36px;
  padding: 60px 0 36px;
  background: #123b49 !important;
  background-image: radial-gradient(ellipse at 14% 10%, #196f723d, transparent 50%), linear-gradient(120deg, #142e40, #125d62) !important;
}

body.bd-modern .wd-page-title-bg {
  background: transparent !important;
}

body.bd-modern .page-title h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.5;
}

body.bd-modern .page-title .wd-nav-product-cat {
  justify-content: center;
  gap: 10px;
  margin: 0;
}

body.bd-modern .page-title .category-nav-link {
  padding: 10px 18px;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  background: #ffffff0d;
  color: #fff;
  transition: background-color 150ms ease, border-color 150ms ease;
}

body.bd-modern .page-title .category-nav-link:hover {
  border-color: #ffffff80;
  background: #ffffff20;
}

body.bd-modern .page-title .nav-link-count {
  color: #d0e9e8;
}

body.bd-modern .bd-discovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
  padding: 28px 32px;
  border: 1px solid var(--bd-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 30px #17334205;
}

body.bd-modern .bd-eyebrow {
  color: var(--bd-accent);
  font-size: 12px;
  font-weight: 700;
}

body.bd-modern .bd-discovery h2 {
  margin: 7px 0 9px;
  color: var(--bd-ink);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.7;
}

body.bd-modern .bd-discovery p {
  margin: 0;
  color: var(--bd-muted);
  font-size: 13px;
  line-height: 2;
}

body.bd-modern .bd-book-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid #c6d9d8;
  border-radius: 14px;
  background: #f7faf9;
}

body.bd-modern .bd-book-search input[type="search"] {
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--bd-ink);
  box-shadow: none;
}

body.bd-modern .bd-book-search button {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--bd-accent);
  color: #fff;
}

body.bd-modern .shop-loop-head {
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--bd-line);
  border-radius: 14px;
  background: #fff;
}

body.bd-modern .woocommerce-result-count {
  color: var(--bd-muted);
  font-size: 12px;
}

body.bd-modern.woocommerce-shop .products.wd-products,
body.bd-modern.tax-product_cat .products.wd-products {
  --wd-col-lg: 4 !important;
  --wd-col-md: 3 !important;
  --wd-col-sm: 2 !important;
  --wd-gap-lg: 24px !important;
  --wd-gap-sm: 12px !important;
}

body.bd-modern .product-grid-item .product-wrapper {
  padding: 14px;
  border: 1px solid var(--bd-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.bd-modern .product-grid-item:hover .product-wrapper {
  border-color: #a6c7c3;
  box-shadow: 0 10px 28px #17334210;
}

body.bd-modern .product-grid-item .product-element-top {
  border-radius: 10px;
  background: #f5f5f1;
}

body.bd-modern .product-grid-item .product-image-link {
  padding: 12px;
}

body.bd-modern .product-grid-item .wd-entities-title {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.9;
}

body.bd-modern .product-grid-item .wd-product-cats {
  color: var(--bd-muted);
  font-size: 11px;
}

body.bd-modern .product-grid-item .price {
  color: var(--bd-accent);
  font-size: 15px;
  font-weight: 700;
}

body.bd-modern :is(.btn, .button, button[type="submit"], .single_add_to_cart_button) {
  border-radius: 10px;
}

body.bd-modern :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-radius: 10px;
}

body.bd-modern :is(.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-MyAccount-content) {
  border-radius: 16px;
}

body.bd-modern .footer-container {
  margin-top: 44px;
  border-top: 1px solid var(--bd-line);
  background: #123b49;
  color: #e4efee;
}

body.bd-modern :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #167d92;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  body.bd-modern .bd-discovery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }
}

@media (max-width: 767px) {
  body.bd-modern .page-title {
    margin-bottom: 22px;
    padding: 32px 0 22px;
  }

  body.bd-modern .page-title h1 {
    margin-bottom: 16px;
  }

  body.bd-modern .bd-discovery {
    margin-bottom: 18px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  body.bd-modern .bd-book-search {
    gap: 4px;
  }

  body.bd-modern .bd-book-search button {
    padding: 0 10px;
    font-size: 11px;
  }

  body.bd-modern .product-grid-item .product-wrapper {
    padding: 9px;
    border-radius: 14px;
  }

  body.bd-modern .product-grid-item .wd-entities-title {
    font-size: 12px;
  }

  body.bd-modern .product-grid-item .price {
    font-size: 12px;
  }

  body.bd-modern .shop-loop-head {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bd-modern :is(.category-nav-link, .product-wrapper) {
    transition: none;
  }
}
