/*
Theme Name: Clovex Gaming
Theme URI: https://example.com
Author: Custom
Description: Custom theme for Clovex Game Store + Blog
Version: 1.0
Text Domain: clovex
*/

/* ====== CSS FROM YOUR ORIGINAL HTML FILES (ALL 3 PAGES) ====== */

/* -------- PAGE 1: SHOP / LANDING -------- */

/* Hero slider */
.hero-slider {
  display: flex;
  width: 100%;
  min-height: 340px;    height: 400px;
}
.btn-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* گرید محصولات ووکامرس در قالب Clovex */
.shop-wrap ul.products {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.shop-wrap ul.products li.product {
    background-color: #050505;
    border-radius: 12px;
    padding: 14px;
    text-align: right;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.shop-wrap ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
}

.shop-wrap ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 800;
    margin: 4px 0 6px;
}

.shop-wrap ul.products li.product .price {
    display: block;
    color: #ff9c00;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px;
}

.shop-wrap ul.products li.product .button {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    background-color: #ff9c00;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}

.shop-wrap ul.products li.product .button:hover {
    background-color: #ffb733;
}

/* متن سورت و تعداد نتایج */
.shop-wrap .woocommerce-ordering select {
    font-size: 12px;
    padding: 6px 8px;
}

.shop-wrap .woocommerce-result-count {
    font-size: 11px;
    color: #777;
}


.user-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    padding: 6px 10px;
    border-radius: 999px;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.user-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.logout-btn {
    font-size: 10px;
    color: #ff9c00;
    text-decoration: none;
}

.logout-btn:hover {
    color: #d97b00;
}

.hero-card {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: 1s;
}
.hero-card:hover
{
  flex:2;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-card:hover img {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 55%);
}

.hero-info {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #ffffff;
  font-size: 13px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tag span {
  color: #ffbe40;
}

.hero-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-arrows {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: #ffffff;
  opacity: 0.8;
}

.hero-arrow-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
}

/* Intro / marketplace */
.intro-section {
  background-color: #ffffff;
  padding: 80px 0 40px;
}

.intro-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.intro-media {
  flex: 0 0 40%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(0,0,0,0.18);
}

.intro-content {
  flex: 1;
}

.intro-kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.intro-title-main {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-title-accent {
  color: #ff9c00;
  display: block;
  margin-top: 4px;
}

.intro-desc {
  margin-top: 16px;
  font-size: 13px;
  color: #555;
  max-width: 520px;
}

.intro-cta {
  margin-top: 28px;
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9c00;
  border-bottom: 1px solid #ff9c00;
  padding-bottom: 4px;
}

/* Filter bar */
.games-section {
  padding: 20px 0 60px;
  background-color: #ffffff;
}

.filter-bar {
  display: flex;
  gap: 12px;    justify-content: center;
  margin-bottom: 32px;
  margin-left: 24px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 4px;
  border: 1px solid #f2f2f2;
  font-size: 12px;
  background-color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 6px 10px rgba(0,0,0,0.04);
}

.filter-btn.active {
  background-color: #ff9c00;
  color: #ffffff;
  border-color: #ff9c00;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 40px 20px;
}

.game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.game-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.06);
}

.game-card-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.game-card-body {
  padding: 16px 16px 18px;
  font-size: 11px;
}

.game-card-title {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: #777;
  margin-bottom: 10px;
}

.game-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* کانتینر کلی صفحه شاپ */
body.woocommerce .site-main,
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* عنوان و نوار بالای شاپ */
body.woocommerce .woocommerce-result-count {
    font-size: 12px;
    color: #777;
}

body.woocommerce .woocommerce-ordering select {
    font-size: 12px;
    padding: 6px 8px;
}

/* گرید محصولات */
body.woocommerce ul.products {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

/* کارت هر محصول */
body.woocommerce ul.products li.product {
    background-color: #050505;
    border-radius: 12px;
    padding: 14px;
    text-align: right;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

/* تصویر محصول */
body.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
}

/* عنوان محصول */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 800;
    margin: 4px 0 6px;
}

/* قیمت */
body.woocommerce ul.products li.product .price {
    display: block;
    color: #ff9c00;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px;
}

/* دکمه افزودن به سبد */
body.woocommerce ul.products li.product .button {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    background-color: #ff9c00;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}

body.woocommerce ul.products li.product .button:hover {
    background-color: #ffb733;
}


.game-card-text {
  color: #777;
  font-size: 10px;
}

.all-games-btn-wrap {
  text-align: center;
  margin: 24px 0 0;
}

.all-games-btn {
  padding: 10px 24px;
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid #f2f2f2;
  background-color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

/* Search & FIFA section */
.search-band {
  background-image: url("images/search-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 36px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.search-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,156,0,0.85), rgba(255,156,0,0.7));
}

.search-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  align-items: center;
  gap: 10px;    justify-content: center;
}
 
/* === استایل تمیز برای شاپ === */

/* گرید محصولات: کنار هم، نه وسط تنها */
body.woocommerce ul.products {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* کارت هر محصول */
body.woocommerce ul.products li.product {
    width: 260px;              /* عرض ثابت برای کارت */
    background-color: #050505;
    border-radius: 16px;
    padding: 14px 14px 18px;
    text-align: center;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* تصویر محصول */
body.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
    display: block;
}

/* عنوان محصول */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 800;
    margin: 6px 0 8px;
    line-height: 1.5;
}

/* قیمت */
body.woocommerce ul.products li.product .price {
    display: block;
    color: #ff9c00;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 13px;
}

/* دکمه افزودن به سبد */
body.woocommerce ul.products li.product .button {
    display: block;
    width: 100%;
    padding: 9px 0;
    border-radius: 999px;
    font-size: 12px;
    background-color: #ff9c00;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}

body.woocommerce ul.products li.product .button:hover {
    background-color: #ffb733;
}



.search-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 10px;
}

.search-field,
.search-select {
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 12px;
  padding: 10px 12px;
  min-width: 130px;
  border-radius: 2px;
  color: #ffffff;
  outline: none;
}

.search-field::placeholder {
  color: rgba(255,255,255,0.8);
}

.search-select {
  cursor: pointer;
}

.search-btn {
  padding: 10px 26px;
  border-radius: 2px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: #ffffff;
  color: #ff9c00;
  font-weight: 700;
}

/* FIFA banner */
.fifa-section {
  background-image: linear-gradient(to bottom, #0b101a, #05070b);
  padding: 60px 0 70px;
  color: #ffffff;
}

.fifa-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 130px;
  align-items: center;
}

.fifa-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fifa-title span {
  color: #ff9c00;
  display: block;
  margin-top: 4px;
}

.fifa-text {
  font-size: 12px;
  color: #e9e9e9;
  width: 100%;
  margin-top: 72px;
}

.fifa-actions {
  display: flex;
  gap: 40px;
  margin-top: 100px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fifa-actions a {
  position: relative;
  padding-bottom: 4px;
}

.fifa-actions a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 2px;
  background-color: #ff9c00;
}

.fifa-media {
  border-radius: 12px;
  overflow: hidden;
  width: 130%;
  box-shadow: 0 24px 50px rgba(0,0,0,0.7);
}

/* Products */
.products-section {
  background-color: #ffffff;
  padding: 60px 0 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto 40px;
}

.product-card {
  text-align: left;
  font-size: 13px;
}

.product-img-box {
  padding: 12px;
  border-radius: 10px;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 10px;
}

.product-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.product-price {
  color: #ff9c00;
  font-weight: 600;
  font-size: 13px;
}

/* Newsletter & footer */
.newsletter-band {
  background-image: url("images/newsletter-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 30px 0;
  position: relative;
  color: #ffffff;
}

.newsletter-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,156,0,0.9), rgba(255,156,0,0.85));
}

.newsletter-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.newsletter-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 20px;
}

.newsletter-input {
  flex: 1;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 12px;
  color: #ffffff;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.85);
}

.newsletter-btn {
  padding: 10px 24px;
  border-radius: 2px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  background-color: #ffffff;
  color: #ff9c00;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-slider {
    min-height: 280px;
  }
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .intro-wrapper {
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fifa-wrapper {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-slider {
    flex-direction: column;
    height: auto;
  }

  .filter-bar {
    flex-wrap: wrap;
    margin-left: 0;
    padding: 0 24px;
  }

  .game-grid {
    padding: 0 24px;
    grid-template-columns: 1fr 1fr;
  }

  .search-form-row {
    flex-wrap: wrap;
  }

  .newsletter-inner {
    flex-wrap: wrap;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-links {
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-info {
    left: 14px;
    bottom: 16px;
  }

  .intro-section {
    padding: 50px 0 30px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-inner {
    align-items: stretch;
  }

  .newsletter-title {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

/* -------- PAGE 2: BLOG LIST -------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  direction: ltr;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.fa-text {
  text-align: right;
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Blog hero */
.blog-hero {
  background-image: linear-gradient(to bottom, #0b101a, #05070b);
  padding: 40px 0 30px;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.blog-hero-inner {
  display: flex;
  align-items: center;
  gap: 50px;
}

.blog-hero-text {
  flex: 1;
}

.blog-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9c00;
  margin-bottom: 4px;
}

.blog-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  line-height: 1.3;
}

.blog-hero-title span {
  color: #ff9c00;
  display: block;
  margin-top: 4px;
}

.blog-hero-desc {
  margin-top: 16px;
  font-size: 13px;
  color: white;
  max-width: 540px;
}

.blog-hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: #777;
}

.blog-hero-meta span::before {
  content: "â€¢ ";
  color: #ff9c00;
}

.blog-hero-media {
  flex: 0 0 36%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0,0,0,0.14);
  background: #000;
}

.blog-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category overview */
.blog-categories-main {
  background-color: #ffffff;
  padding: 24px 0 32px;
  border-bottom: 1px solid #f0f0f0;
  margin-top: 50px;
}

.blog-categories-main .section-header {
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-subtitle {
  font-size: 12px;
  color: #666;
}

.categories-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.categories-grid.fa-text {}
}

@media (min-width: 600px) and (max-width: 899px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.category-card {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 14px 14px 10px;
}

.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.category-title {
  font-size: 13px;
  font-weight: 800;
}

.category-sub-en {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

.category-description {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}

.subcategory-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.subcategory-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 2px 0;
  color: #222;
}

.subcategory-item a .bullet {
  font-size: 14px;
  color: #ff9c00;
}

.subcategory-item a:hover {
  color: #ff9c00;
}

/* Blog main layout */
.blog-main {
  background-color: #ffffff;
  padding: 32px 0 40px;
}

.blog-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .blog-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Filter */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #f2f2f2;
  font-size: 11px;
  background-color: #ffffff;margin-right:5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 6px 10px rgba(0,0,0,0.04);
}

.filter-btn.active {
  background-color: #ff9c00;
  color: #ffffff;
  border-color: #ff9c00;
}

/* Posts list */
.posts-list {
  display: grid;
  gap: 20px;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 20px;
  background-color: #fffdf8;
  border-radius: 12px;
  border: 1px solid #ffe1b3;
  padding: 16px 16px 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

@media (max-width: 850px) {
  .featured-post {
    grid-template-columns: minmax(0, 1fr);
  }
}

.featured-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9c00;
  margin-bottom: 6px;
}

.post-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: #777;
  margin-bottom: 8px;
}

.post-meta span::before {
  content: "â€¢ ";
  color: #ff9c00;
}

.post-excerpt {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  margin-top: 6px;
}

.post-tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #ffe1b3;
  background-color: #fff;
  color: #ff9c00;
}

.featured-thumb {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  min-height: 140px;
  background: #000;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-more-link {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9c00;
  border-bottom: 1px solid #ff9c00;
  padding-bottom: 2px;
  margin-top: 4px;
}

/* Small post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 700px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  padding: 12px 12px 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-card-top {
  display: flex;
  gap: 10px;
}

.post-thumb {
  width: 80px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}


.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.post-card-meta {
  font-size: 10px;
  color: #777;
}

.post-card-footer {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #777;
}

.pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #eee;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sidebar */
.blog-sidebar {
  font-size: 12px;
}

.sidebar-card {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  padding: 14px 14px 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.04);
  margin-bottom: 14px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-subtitle {
  font-size: 11px;
  color: #777;
  margin-bottom: 8px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #eee;
  font-size: 10px;
  color: #777;
  white-space: nowrap;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px dashed #ddd;
  font-size: 10px;
  color: #555;
  background-color: #fafafa;
}

/* Newsletter & footer (blog page) */
.newsletter-band {
  background-color: #ff9c00;
  background-image: linear-gradient(to right, #ff9c00, #ffb533);
  padding: 26px 0;
  color: #ffffff;
}

.newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.newsletter-input {
  flex: 1;
  min-width: 140px;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 12px;
  color: #ffffff;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.9);
}

.newsletter-btn {
  padding: 9px 20px;
  border-radius: 2px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  background-color: #ffffff;
  color: #ff9c00;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

footer {
  background-color: #050505;
  color: #ffffff;
  padding: 40px 0 45px;
  font-size: 11px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.1fr 2fr 2.2fr;
  gap: 40px;
}

.footer-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-title span {
  color: #ff9c00;
}

.footer-text {
  color: #bfbfbf;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 30px;
  margin-top: 8px;
}

.footer-links a {
  color: #f1f1f1;
}

.footer-links a:hover {
  color: #ff9c00;
}

.footer-news-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.footer-news-thumb {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.footer-news-meta {
  color: #999;
  font-size: 10px;
  margin-top: 2px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-top: 8px;
}

.app-badge {
  border-radius: 4px;
  border: 1px solid #262626;
  padding: 10px;
  font-size: 10px;
  line-height: 1.4;
  background-color: #111111;
  color: #f1f1f1;
}

.app-badge-title {
  font-weight: 700;
  margin-bottom: 2px;
}

/* Responsive tweaks (blog) */
@media (max-width: 1024px) {
  .blog-hero-inner {
    flex-direction: column-reverse;
  }

  .blog-hero-media {
    flex: none;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-links {
    justify-content: flex-start;
    gap: 14px;
  }

  .blog-hero {
    padding: 28px 0 22px;
  }

  .blog-hero-title {
    font-size: 22px;
  }
}

/* -------- PAGE 3: SINGLE ARTICLE -------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: 100%;
}

.fa-text {
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  width: 300px;
  letter-spacing: 0.08em;
  width: 20%;
  text-transform: uppercase;
  font-size: 18px;
}
.logo_img
{
      width: 100%;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 20%;
  font-size: 13px;
  direction: rtl;
  justify-content: center;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #ff9c00;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.nav-icons {
  display: flex;
  gap: 10px;
  font-size: 11px;
}

.nav-btn {
  padding: 8px 18px;
  border-radius: 32px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  margin: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-box
{
	width: 20%;
	display: flex;
	justify-content: center;
}
.btn-login {
  background-color: #ffffff;
  border: 1px solid #ff9c00;
  color: #ff9c00;
}

.btn-signup {
  background-color: #ff9c00;
  color: #ffffff;
}

footer {
  background-color: #050505;
  color: #ffffff;
  padding: 50px 0 60px;
  font-size: 11px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.1fr 2fr 2.2fr;
  gap: 40px;
}

.footer-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-title span {
  color: #ff9c00;
}

.footer-text {
  color: #bfbfbf;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 30px;
  margin-top: 8px;
}

.footer-links a {
  color: #f1f1f1;
}

.footer-links a:hover {
  color: #ff9c00;
}

.footer-news-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.footer-news-thumb {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-news-meta {
  color: #999;
  font-size: 10px;
  margin-top: 2px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-top: 8px;
}

.app-badge {
  border-radius: 4px;
  border: 1px solid #262626;
  padding: 10px;
  font-size: 10px;
  line-height: 1.4;
  background-color: #111111;
}

.app-badge-title {
  font-weight: 700;
  margin-bottom: 2px;
}

/* Article hero */
.article-hero {
  background-color: #ffffff;
  padding: 32px 0 22px;
  border-bottom: 1px solid #ececec;
}

.article-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breadcrumbs {
  font-size: 11px;
  color: #777;
}

.breadcrumbs a {
  color: #777;
}

.breadcrumbs a:hover {
  color: #ff9c00;
}

.breadcrumbs span.sep {
  margin: 0 4px;
  opacity: 0.6;
}

.article-category-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9c00;
}

.article-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
}

.article-subtitle {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
  max-width: 720px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: #777;
  margin-top: 10px;
}

.article-meta span::before {
  content: "â€¢ ";
  color: #ff9c00;
}

/* Article layout */
.article-wrap {
  background-color: #ffffff;
  padding: 24px 0 40px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-main {
  background-color: #ffffff;
}

.article-cover {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  background: #000;
}

.article-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-body {
  font-size: 14px;
  color: #333;
}

.article-body > * + * {
  margin-top: 16px;
}

.article-body p {
  text-align: justify;
}

.article-body h2 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 26px;
  margin-bottom: 6px;
  position: relative;
  padding-bottom: 4px;
}

.article-body h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background-color: #ff9c00;
}

.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 4px;
}

.article-body ul,
.article-body ol {
  padding-right: 20px;
  margin-top: 8px;
}

.article-body li {
  margin-bottom: 4px;
}

.article-body strong {
  font-weight: 700;
}

.article-quote {
  border-right: 3px solid #ff9c00;
  padding: 8px 16px 8px 8px;
  background-color: #fffaf1;
  font-size: 13px;
  color: #555;
}

/* Note box */
.article-note {
  border-radius: 10px;
  border: 1px solid #ffe1b3;
  background-color: #fffdf8;
  padding: 12px 12px 10px;
  font-size: 13px;
  margin-top: 18px;
}

.article-note-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ff9c00;
  margin-bottom: 4px;
}

/* Code block */
pre {
  background-color: #111;
  color: #f5f5f5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  overflow-x: auto;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  direction: ltr;
  text-align: left;
}

code {
  font-family: inherit;
}

/* Bottom area */
.article-bottom {
  margin-top: 26px;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-tag {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #eee;
  background-color: #fafafa;
  font-size: 11px;
  color: #555;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-share span {
  font-size: 11px;
  color: #777;
}

.share-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  background-color: #fff;
}

/* Sidebar (single) */
.article-sidebar {
  font-size: 12px;
}

.sidebar-card {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  padding: 14px 14px 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.04);
  margin-bottom: 14px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-subtitle {
  font-size: 11px;
  color: #777;
  margin-bottom: 8px;
}

.sidebar-author {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.author-role {
  font-size: 11px;
  color: #777;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.author-link-badge {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #eee;
  font-size: 10px;
  color: #555;
  background-color: #fafafa;
  cursor: pointer;
}

/* TOC */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  font-size: 11px;
  padding: 3px 0;
}

.toc-list li a {
  color: #333;
}

.toc-list li a:hover {
  color: #ff9c00;
}

/* Related posts list */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-item + .related-item {
  margin-top: 8px;
}

.related-item a {
  font-size: 11px;
  color: #333;
}

.related-item span {
  display: block;
  font-size: 10px;
  color: #888;
}

/* Responsive tweaks (single) */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-links {
    justify-content: flex-start;
	  gap: 14px;}}

.filter-buttons {
    display: flex;
    justify-content: center;
    margin: 10px auto;
}



/* =========================
   CLOVEX – WOO FIX OVERRIDES
   همهٔ اینا فقط روی صفحات ووکامرس اعمال میشه
   ========================= */

/* 1) سایدبار وردپرس روی شاپ دیده نشه */
body.woocommerce #secondary,
body.woocommerce .widget-area,
body.woocommerce .site-sidebar {
    display: none !important;
}

body.woocommerce .content-area,
body.woocommerce #primary {
    width: 100% !important;
    float: none !important;
}

/* 2) ظرف اصلی شاپ */
body.woocommerce .site-main,
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 24px 60px;
    background: #ffffff;
}

/* 3) عنوان صفحه شاپ و متن "Showing the single result" */
body.woocommerce .woocommerce-products-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

body.woocommerce .woocommerce-products-header__title.page-title {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 6px;
}

body.woocommerce .woocommerce-result-count {
    font-size: 12px;
    color: #777;
    margin: 0 0 10px;
}

body.woocommerce .woocommerce-ordering {
    margin-bottom: 16px;
}
body.woocommerce .woocommerce-ordering select {
    font-size: 12px;
    padding: 6px 8px;
}

/* 4) فیکسِ کش‌اومدن عکس‌ها فقط روی صفحات ووکامرس */
body.woocommerce ul.products li.product img {
    height: auto !important;
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    display: block;
}

/* 5) گرید محصولات (کارت‌ها کنار هم، نه وسط تنها) */
body.woocommerce ul.products {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* 6) کارت هر محصول */
body.woocommerce ul.products li.product {
    width: 260px;
    background-color: #050505;
    border-radius: 16px;
    padding: 14px 14px 18px;
    text-align: center;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* عنوان محصول */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 800;
    margin: 6px 0 8px;
    line-height: 1.5;
}

/* قیمت */
body.woocommerce ul.products li.product .price {
    display: block;
    color: #ff9c00;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 13px;
}

/* دکمه افزودن به سبد */
body.woocommerce ul.products li.product .button {
    display: block;
    width: 100%;
    padding: 9px 0;
    border-radius: 999px;
    font-size: 12px;
    background-color: #ff9c00;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}

body.woocommerce ul.products li.product .button:hover {
    background-color: #ffb733;
}

/* 7) ریسپانسیو کارت‌ها روی موبایل */
@media (max-width: 600px) {
    body.woocommerce ul.products {
        justify-content: center;
    }
    body.woocommerce ul.products li.product {
        width: 85%;
        max-width: 320px;
    }
}



/* ==== SHOP TOP BAR (result + sorting) ==== */

.shop-top-bar {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 10px 24px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.shop-top-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-page-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.shop-top-sub {
    font-size: 12px;
    color: #777;
}

.shop-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
}

.shop-top-right .woocommerce-result-count {
    margin: 0;
    font-size: 11px;
    color: #777;
}

.shop-top-right .woocommerce-ordering select {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background-color: #fff;
}

/* ==== CATEGORY FILTER PILLS ==== */

.shop-filters {
    max-width: 1200px;
    margin: 16px auto 10px;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    border: 1px solid #eee;
    background-color: #fafafa;
    border-radius: 999px;
    font-size: 11px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill a {
    color: #444;
}

.filter-pill:hover {
    border-color: #ff9c00;
    background-color: #fff5e4;
}

.filter-pill.active,
.filter-pill.active a {
    background-color: #ff9c00;
    border-color: #ff9c00;
    color: #fff;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .shop-top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px 0;
    }

    .shop-filters {
        padding: 0 16px;
    }
}
