/*
Theme Name: allaland-fixed-14
Theme URI: https://allaland-kids.ir
Author: Rokhsana & Team
Author URI: https://allaland-kids.ir
Description: تم اختصاصی مینیمال با TailwindCSS
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allaland-fixed-14
Tags: rtl, tailwindcss, children, educational
*/

/* =========================
   Base Helpers + Variables
   ========================= */
:root {
  --allaland-orange: #f7931a;
  --allaland-orange-dark: #d87f00;
  --allaland-text: #1b1b1b;
  --allaland-bg: #fffaf3;
  --allaland-border: rgba(0, 0, 0, 0.08);
  --allaland-radius: 12px;
  --allaland-transition: 0.25s ease;
  --page-max-width: 1100px;
  --page-padding-desktop: 3.5rem;
  --page-padding-mobile: clamp(1.5rem, 5vw, 2.5rem);
  --page-bg: #fffaf4;
  --page-font: 'Vazirmatn', sans-serif;
  font-feature-settings: "ss01" on;
}

html, body {
  height: 100%;
  background-color: var(--allaland-bg);
  font-family: 'Vazirmatn', sans-serif;
  color: var(--allaland-text);
}

/* حذف مربع نارنجی دور آیتم‌های ناوبری پیش‌فرض ووکامرس */
header nav.main-navigation ul li,
header nav.main-navigation ul li a,
header nav.main-navigation ul li::before,
header nav.main-navigation ul li::after {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  content: none !important;
}

header nav.main-navigation ul li a {
  color: #333 !important;
  padding: 10px 18px !important;
  line-height: 1.4 !important;
  border-radius: 6px !important;
  box-sizing: border-box;
}

/* ========== Product Cards ========== */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

ul.products li.product {
  background: #fff;
  border-radius: var(--allaland-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  text-align: center;
  transition: transform 0.15s ease-in-out;
}
ul.products li.product:hover {
  transform: translateY(-4px);
}

ul.products li.product h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

ul.products li.product .price {
  font-weight: 600;
  color: var(--allaland-orange);
}
.tax-product_cat-products ul.products li.product .price {
  color: #2e7d32;
}

ul.products li.product .button {
  border-radius: 9999px;
  padding: 8px 16px;
  font-weight: 600;
  transition: background-color 0.2s;
  background: var(--allaland-orange);
  color: #fff;
}
.tax-product_cat-products ul.products li.product .button {
  background: #2e7d32;
}
ul.products li.product .button:hover {
  background: var(--allaland-orange-dark);
}
.tax-product_cat-products ul.products li.product .button:hover {
  background: #256a27;
}

/* ========== Pagination ========== */
.woocommerce nav.woocommerce-pagination {
  text-align: center;
  margin-top: 2.5rem;
}

.woocommerce nav.woocommerce-pagination ul {
  list-style: none;
  display: inline-flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 34px;
  height: 34px;
  line-height: 32px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  transition: var(--allaland-transition);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--allaland-orange);
  color: var(--allaland-orange);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--allaland-orange);
  color: #fff;
  border-color: var(--allaland-orange);
}

/* ========== WooCommerce General ========== */
.woocommerce,
.woocommerce-page {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"],
.woocommerce .button.alt,
.woocommerce a.checkout-button,
.woocommerce button.checkout {
  background-color: var(--allaland-orange) !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover,
.woocommerce a.checkout-button:hover,
.woocommerce button.checkout:hover {
  background-color: var(--allaland-orange-dark) !important;
}

.woocommerce table th,
.woocommerce table td {
  border-color: #f3f3f3;
  text-align: right;
}

/* حساب کاربری */
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.5rem;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  background: #f9f9f9;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  border: 2px solid transparent;
  color: #444;
  text-decoration: none;
  font-weight: 500;
  transition: var(--allaland-transition);
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  border-color: var(--allaland-orange);
  background: #fff8f0;
  color: #000;
}

.woocommerce-MyAccount-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.07);
  padding: 1.8rem;
  line-height: 1.9;
  color: #555;
}

@media (max-width: 767px) {
  .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
    align-items: stretch;
  }
  .woocommerce-MyAccount-navigation ul li {
    width: 100%;
  }
}

/* صفحه محصول */
.single-product .woocommerce-product-gallery,
.single-product .summary {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.single-product .product_title {
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}
.single-product .woocommerce-Price-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--allaland-orange);
}
.single-product.product_cat-products .woocommerce-Price-amount {
  color: #1aa35f;
}
.single-product .button {
  background-color: var(--allaland-orange);
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  transition: var(--allaland-transition);
}
.single-product .button:hover {
  background-color: #ffcc80;
  color: #000;
}

/* Checkout Button Fix */
.woocommerce #place_order,
.woocommerce-checkout button.button.alt {
  background-color: var(--allaland-orange) !important;
  color: #fff !important;
  border-radius: 8px;
}
.woocommerce #place_order:hover,
.woocommerce-checkout button.button.alt:hover {
  background-color: var(--allaland-orange-dark) !important;
}

/* Sticky Footer Layout */
body,
body[class*="woocommerce"],
body[class*="page-template"],
body[class*="theme-allaland-fixed"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* ================================
   WooCommerce Global Shell
   ================================ */
body.woocommerce,
body.woocommerce-page,
body.woocommerce-account,
body.woocommerce-cart,
body.woocommerce-checkout {
  background: #fffaf4;
}

.woocommerce-shell {
  padding: clamp(40px, 6vw, 80px) 0;
}

.woocommerce-shell__inner {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 20px 80px rgba(250, 159, 84, 0.15);
  border: 1px solid rgba(255, 165, 0, 0.08);
}

/* تیترهای اصلی */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
  font-family: 'Vazirmatn', sans-serif;
  color: #2b2b2b;
  font-weight: 700;
  margin-bottom: 1.2rem.
}

/* کارت‌های عمومی (Product Loop, Notices, Blocks) */
.woocommerce ul.products li.product,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details {
  background: #fffefe;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

/* جدول‌ها */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}

.woocommerce table.shop_table th {
  background: #fff4e1;
  color: #111;
  padding: 1rem;
  font-weight: 600;
}

.woocommerce table.shop_table td {
  padding: 0.95rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* فرم‌ها */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 0.65rem 0.9rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Vazirmatn', sans-serif;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #ffa500;
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.18);
  outline: none;
}

/* دکمه‌ها */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input[type="submit"],
.woocommerce #place_order,
.woocommerce .button.alt,
.woocommerce a.checkout-button {
  background: linear-gradient(135deg, #ffa500, #ff8800);
  color: #fff !important;
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce .button:hover,
.woocommerce .button:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(255, 136, 0, 0.25);
}

/* فاصله پیش‌فرض عنصرها */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-notices-wrapper,
.woocommerce .woocommerce-notices-wrapper + *,
.woocommerce div.product,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cross-sells,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-content {
  margin-bottom: 2.25rem;
}

/* حالت لیست محصولات */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.woocommerce ul.products li.product {
  text-align: center;
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Checkout two-columns fix */
@media (min-width: 992px) {
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review {
    display: flex;
    gap: 1.5rem;
  }
  .woocommerce-checkout #customer_details {
    flex: 1 0 60%;
  }
  .woocommerce-checkout #order_review {
    flex: 1 0 40%;
    flex-direction: column;
  }
}

#main-content-wrapper,
main,
.page-content,
.site-main {
  flex: 1 0 auto;
}

footer.site-footer {
  margin-top: auto;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--allaland-border);
}

/* Footer Content */
.site-footer .footer-inner {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 3rem clamp(1rem, 3vw, 3.5rem) 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.footer-contact,
.footer-info {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b4b4b;
}

.footer-social ul {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.65rem;
}
.footer-social li {
  width: 46px;
  height: 46px;
}
.footer-social a {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--allaland-border);
  transition: var(--allaland-transition);
}
.footer-social a:hover {
  border-color: var(--allaland-orange);
  color: var(--allaland-orange);
}

/* =========================
   Header + Navigation Final
   ========================= */
.site-header {
  background: var(--allaland-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}

.site-header .header-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

@media (max-width: 768px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  object-fit: cover;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.main-navigation {
  flex: 1 1 auto;
}

.desktop-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.desktop-menu a {
  color: var(--allaland-text);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-menu a:hover,
.desktop-menu a:focus {
  color: var(--allaland-orange);
}

.cart-link img {
  width: 18px;
  height: 18px;
  margin-inline-start: 0.3rem;
}

/* ================================
   Mobile Navigation (clean version)
   ================================ */

.menu-toggle,
#menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--allaland-text, #111);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle span,
#menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1),
#menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2),
#menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3),
#menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s linear, transform 0.3s ease;
}

.mobile-menu li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  font-weight: 500;
  color: var(--allaland-text, #111);
  transition: color 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--allaland-orange, #FFA500);
}

.mobile-menu.is-open {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu.is-closed {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 35;
}

.menu-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.nav-locked {
  overflow: hidden;
}

/* Visibility Rules */
@media (max-width: 1024px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .desktop-menu {
    display: none !important;
  }

  #menu-toggle,
  .menu-toggle {
    display: inline-flex !important;
  }

  .mobile-menu {
    display: block;
  }
}

@media (min-width: 1025px) {
  #menu-toggle,
  .menu-toggle {
    display: none !important;
  }

  .desktop-menu {
    display: flex !important;
    gap: 1.5rem;
  }
}

.site-footer {
  background-color: #fff1df;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: #4b4b4b;
  font-family: 'Vazirmatn', sans-serif;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  width: 100%;
}

.footer-block {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.footer-copy {
  margin: 0 0 8px 0;
  line-height: 1.7;
}

.footer-link {
  color: #e67e22;
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  color: #c76412;
  text-decoration: underline;
}

.footer-contact ul,
.footer-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact li,
.footer-social li {
  margin-bottom: 10px;
}

.footer-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff5eb;
  color: #e67e22;
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social__btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-social__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

@media (max-width: 640px) {
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-block {
    padding: 18px;
  }
}

.site-header .site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.site-header .site-branding__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-header .site-branding__title {
  font-size: clamp(0.85rem, 2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1f2933;
}

@media (max-width: 640px) {
  .site-header .site-branding__title {
    font-size: 0.85rem;
    max-width: calc(100vw - 170px); /* فضای لازم برای لوگو و دکمه همبرگری */
  }
}



.site-title-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .site-title-link {
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.01em;
  }
}

.site-header .brand-link .brand-title {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .site-header .brand-link .brand-title {
    font-size: clamp(1rem, 2.4vw, 1.2rem) !important;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
}

.site-header .brand-link .brand-title {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .site-header .brand-link .brand-title {
    font-size: clamp(1rem, 2.4vw, 1.15rem) !important;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
}

@media (max-width: 768px) {
  .site-header .brand-link .brand-title {
    font-size: clamp(0.95rem, 3vw, 1.05rem) !important;
  }
}

@media (max-width: 480px) {
  .site-header .brand-link .brand-title {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem) !important;
  }
}

.site-header .header-inner {
  align-items: center;
}

.site-header .header-brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.site-header .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.site-header .brand-logo {
  flex-shrink: 0;
  width: 64px;
  height: auto;
}

.site-header .brand-title {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .site-header .header-inner {
    gap: 12px;
  }
  .site-header .header-brand {
    order: 1;
  }
  .site-header #menu-toggle {
    order: 2;
    margin-inline-start: auto;
  }
  .site-header .main-navigation {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }
  .site-header .brand-title {
    font-size: clamp(0.95rem, 2.4vw, 1.1rem);
    letter-spacing: -0.01em;
  }
}

@media (max-width: 768px) {
  .site-header .brand-title {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
}

@media (max-width: 480px) {
  .site-header .brand-title {
    font-size: clamp(0.82rem, 3.6vw, 0.95rem);
  }
  .site-header #menu-toggle {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}

@media (max-width: 480px) {
  .site-header .brand-link {
    gap: 0.5rem;
  }
  .site-header .brand-title {
    font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    letter-spacing: -0.012em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header #menu-toggle {
    margin-inline-start: 0;
  }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    padding: 16px 20px;
    gap: 8px;
  }
  .site-header .brand-logo {
    width: 56px;
  }
}

@media (max-width: 1024px) {
  .site-header .main-navigation {
    width: 100%;
    margin-top: 6px;
  }
}

body.nav-locked {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

#mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.nav-locked {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

#mobile-menu {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.woocommerce-shell {
  width: 100%;
  background-color: var(--page-bg);
}

.woocommerce-shell__inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-block: var(--page-padding-desktop);
  padding-inline: var(--page-padding-mobile);
  font-family: var(--page-font);
  direction: rtl;
}

@media (max-width: 768px) {
  .woocommerce-shell__inner {
    padding-block: 2.5rem;
  }
}

body.woocommerce-page {
  background-color: var(--page-bg);
  font-family: var(--page-font);
}

/* WooCommerce cart layout */
.cart-screen {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft, 0 22px 45px rgba(21, 26, 36, 0.08));
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.cart-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--allaland-dark, #152024);
  margin: 0;
}

.cart-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-spacing: 0;
}

.cart-table th,
.cart-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(18, 29, 34, 0.08);
  text-align: right;
  font-size: 0.95rem;
}

.cart-table th {
  font-weight: 600;
  color: var(--allaland-dark, #152024);
}

.cart-product__media img {
  border-radius: 12px;
  width: 80px;
  height: auto;
}

.cart-product__name {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cart-collaterals {
  margin-top: 2rem;
}

.cart-remove__link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--allaland-lime, #e6ff9c);
  color: var(--allaland-dark, #0c2416);
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-remove__link:hover {
  background: var(--allaland-green-dark, #0c2416);
  color: #fff;
}

.cart-empty {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1rem;
  border: 2px dashed rgba(21, 32, 36, 0.2);
  border-radius: 20px;
}

.cart-empty__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: var(--allaland-green, #5ac367);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .cart-table {
    min-width: unset;
  }

  .cart-table th,
  .cart-table td {
    font-size: 0.85rem;
  }

  .cart-actions {
    justify-content: stretch;
  }
}


/* WooCommerce checkout layout */
@media (max-width: 640px) {
  .cart-table {
    min-width: unset;
  }
  .cart-table th,
  .cart-table td {
    font-size: 0.85rem;
  }
  .cart-actions {
    justify-content: stretch;
  }
}

/* ===== WooCommerce Checkout Layout ===== */
.checkout-hero {
  background: var(--allaland-lime, #e6ff9c);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow: var(--shadow-soft, 0 22px 45px rgba(21, 26, 36, 0.08));
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.checkout-hero h1 {
  color: var(--allaland-dark, #152024);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.checkout-hero p {
  color: var(--allaland-green-dark, #0c2416);
  margin: 0 auto;
  max-width: 42ch;
}
.checkout-screen {
  background: transparent;
}
.checkout-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
@media (max-width: 960px) {
  .checkout-columns {
    grid-template-columns: 1fr;
  }
}
.checkout-pane {
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft, 0 22px 45px rgba(21, 26, 36, 0.08));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checkout-pane h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--allaland-dark, #152024);
}
.checkout-pane--summary .woocommerce-checkout-review-order-table,
.checkout-pane--details .woocommerce-billing-fields {
  width: 100%;
}

/* ===== Cart Buttons ===== */
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
  cursor: pointer;
}
.btn-cart--secondary {
  background: #f5f6f8;
  color: #1c2429;
  border-color: rgba(21, 32, 36, 0.12);
}
.btn-cart--secondary:hover {
  background: #e8eaef;
  transform: translateY(-1px);
}
.btn-cart--primary {
  background: var(--allaland-green, #5ac367);
  color: #fff;
  box-shadow: 0 15px 30px rgba(90, 195, 103, 0.35);
}
.btn-cart--primary:hover {
  background: var(--allaland-green-dark, #138a2b);
  transform: translateY(-1px);
}
.cart-actions .btn-cart {
  width: auto;
}
.wc-proceed-to-checkout .btn-cart,
.cart-actions .btn-cart {
  width: 100%;
  text-align: center;
}
@media (min-width: 641px) {
  .cart-actions {
    display: flex;
    gap: 0.75rem;
  }
  .cart-actions .btn-cart {
    width: auto;
  }
}
.wc-proceed-to-checkout a.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--allaland-green, #5ac367);
  color: #fff;
  box-shadow: 0 15px 30px rgba(90, 195, 103, 0.35);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}
.wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--allaland-green-dark, #138a2b);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Shop Archive Wrapper ===== */
#alaland-wc-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 2.75rem) 4rem;
}
#alaland-wc-wrapper.shop-archive {
  padding: clamp(2.5rem, 4vw, 4.5rem) clamp(1.5rem, 5vw, 3rem) 4rem;
  background: #fffaf4;
  font-family: 'Vazirmatn', sans-serif;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

/* ===== Shop Hero ===== */
.shop-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 32px;
  background: linear-gradient(135deg, #fff4e6, #ffe7f4);
  box-shadow: 0 20px 55px rgba(31, 38, 135, 0.12);
  align-items: center;
}
.shop-hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.shop-hero__eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #f08a2d;
  font-weight: 600;
}
.shop-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #24292f;
  margin: 0;
  line-height: 1.2;
}
.shop-hero__subtitle,
.shop-hero__description {
  color: #4a4a57;
  margin: 0;
  line-height: 1.8;
}
.shop-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
  font-weight: 600;
  color: #0f191f;
}
.shop-hero__count {
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  font-weight: 600;
  color: #f08a2d;
  box-shadow: 0 12px 25px rgba(15, 25, 32, 0.1);
}
.shop-hero__ordering {
  margin: 0;
}
.shop-hero__select {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 2rem 0.5rem 0.9rem;
  background: #fff;
  color: #1f2933;
  min-width: 200px;
  font-family: inherit.
}
shop-hero__visual {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 28px 60px rgba(15, 25, 32, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
}
.shop-hero__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #16a34a;
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 25, 32, 0.1);
}
.shop-hero__card {
  width: min(320px, 100%);
  aspect-ratio: 4/5;
  border-radius: 32px;
  background: radial-gradient(circle at top, #ffcb80, #ff9f63);
  color: #2f190c;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  box-shadow: 0 30px 60px rgba(255, 159, 99, 0.35);
}
@media (max-width: 640px) {
  .shop-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .shop-hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .shop-hero .woocommerce-ordering,
  .shop-hero .woocommerce-ordering select {
    width: 100%;
  }
}

/* ===== Shop Sections ===== */
.shop-archive {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.shop-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 4vw, 4rem);
}
.shop-section {
  background: #fff;
  border-radius: 30px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 20px 50px rgba(15, 25, 32, 0.08);
}
.shop-section--products {
  border: 2px solid rgba(22, 163, 74, 0.15);
}
.shop-section__header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  position: relative;
}
.shop-section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0;
  color: #111827;
}
.shop-section__header p {
  flex: 1 1 220px;
  color: #4b5563;
  margin: 0;
}
.shop-section__count {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f191f;
}
.shop-section__link {
  margin-right: auto;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.shop-section--workshops .shop-section__link,
.shop-section--workshops .woocommerce-loop-product__title,
.shop-section--workshops ul.products li.product .button {
  background: #f08a2d;
}
.shop-section--products .shop-section__link,
.shop-section--products .woocommerce-loop-product__title,
.shop-section--products ul.products li.product .button {
  background: #16a34a;
}
@media (max-width: 640px) {
  .shop-section__header {
    padding-bottom: 1.5rem;
  }
  .shop-section__link {
    position: static;
  }
}

/* ===== Shop Grid ===== */
.shop-grid ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: stretch;
}
.shop-grid ul.products::before,
.shop-grid ul.products::after {
  display: none !important;
  content: none !important;
}
.shop-grid ul.products li.product {
  background: #fff;
  border-radius: 22px;
  padding: clamp(1.25rem, 3.5vw, 1.9rem);
  box-shadow: 0 18px 45px rgba(15, 25, 32, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}
.shop-grid ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(15, 25, 32, 0.15);
}
.shop-grid ul.products li.product img,
.shop-grid ul.products li.product .woocommerce-LoopProduct-link img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0.5rem;
}
.shop-grid ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #f08a2d;
}
.shop-section--products ul.products li.product .woocommerce-loop-product__title {
  color: #16a34a;
}
.shop-grid ul.products li.product .price {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.3rem 0 0;
  color: #0f191f;
}
.shop-section--products ul.products li.product .price {
  color: #16a34a;
}
.shop-grid ul.products li.product .button {
  margin-top: auto;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  background: #f08a2d;
  color: #fff;
}
.shop-section--products ul.products li.product .button {
  background: #16a34a;
}

/* ===== Shop Workshops Title Pills ===== */
/* ===== کارت‌های ورکشاپ (آرشیو + لندینگ) ===== */
/* ===== کارت‌های ورکشاپ (آرشیو + لندینگ) ===== */
/* ===== کارت‌های ورکشاپ (نمای جمع‌وجور) ===== */
/* ===== کارت‌های ورکشاپ (فشرده‌سازی نهایی) ===== */
/* ===== کارت‌های ورکشاپ (فشرده‌سازی نهایی) ===== */
/* ===== کارت‌های ورکشاپ (نسبت 1:1 مثل گالری وردپرس) ===== */
/* ===== کارت‌های ورکشاپ ===== */
/* ===== کارت‌های ورکشاپ – شبیه کارت‌های مقالات ===== */
/* --- بازنشانی کامل Grid محصولات ووکامرس/ورکشاپ/مرتبط --- */
.shop-section--workshops ul.products,
.single-product .related.products ul.products,
.related-products-shell .related-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: clamp(1rem, 2.4vw, 1.6rem) !important;
  justify-content: stretch;
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
}

/* هر محدودیتی روی li.product را حذف کن */
.shop-section--workshops ul.products li.product,
.single-product .related.products ul.products li.product,
.related-products-shell .related-products li.product {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 260px !important;        /* اگر دوست داری می‌توانی 240px یا 280px تنظیم کنی */
  flex: 1 1 260px !important;
  display: flex !important;
  flex-direction: column !important;
  writing-mode: horizontal-tb !important;
}

/* لینک و تصویر را هم مجبور می‌کنیم تمام عرض را بگیرند */
.shop-section--workshops ul.products li.product .woocommerce-LoopProduct-link,
.single-product .related.products ul.products li.product .woocommerce-LoopProduct-link,
.related-products-shell .related-products li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.65rem;
  width: 100%;
}

.shop-section--workshops ul.products li.product .woocommerce-LoopProduct-link > img,
.single-product .related.products ul.products li.product .woocommerce-LoopProduct-link > img,
.related-products-shell .related-products li.product .woocommerce-LoopProduct-link > img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* بقیه جزئیات کارت همان نسخه شبیه مقالات */
.shop-section--workshops ul.products li.product,
.single-product .related.products ul.products li.product,
.related-products-shell .related-products li.product {
  border-radius: 22px;
  padding: clamp(1.15rem, 2.1vw, 1.55rem) !important;
  border: 1px solid rgba(15, 21, 32, 0.08);
  box-shadow: 0 18px 38px rgba(15, 21, 32, 0.08);
  text-align: center;
  gap: 0.8rem;
  background: #fff;
}
.shop-section--workshops ul.products li.product .woocommerce-loop-product__title,
.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
.related-products-shell .related-products li.product .woocommerce-loop-product__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
}
.shop-section--workshops ul.products li.product .price,
.single-product .related.products ul.products li.product .price,
.related-products-shell .related-products li.product .price {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: #f08a2d;
}
.shop-section--workshops ul.products li.product .button,
.single-product .related.products ul.products li.product .button,
.related-products-shell .related-products li.product .button {
  margin-top: auto;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, #f08a2d, #ffbd76);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(240, 138, 45, 0.24);
}

/* عنوان محصولات در کارت‌های بخش محصول */
.shop-section--products ul.products li.product .woocommerce-loop-product__title {
  color: #0b1f32;      /* آبی/ذغالی خوانا روی پس‌زمینه روشن */
  font-weight: 700;    /* اگر دوست داری ضخیم‌تر دیده شود */
}

/* در صورت نیاز برای کارت‌های مرتبط هم همین را می‌توانی اعمال کنی */
.related-products-shell ul.products li.product .woocommerce-loop-product__title {
  color: #0b1f32;
}

