/* ==========================================================================
   Base / fonts
   ========================================================================== */

   body,
   .ae-home,
   .ae-product-page {
	   direction: rtl;
   }

   /* Site-wide font — applies everywhere, not just headings, since this
	  loads after style.css and wins the cascade. */
   body {
	   font-family: 'Vazirmatn', Tahoma, sans-serif;
   }

   .ae-product-title,
   .ae-section-heading {
	   font-family: 'Vazirmatn', Tahoma, sans-serif;
   }

   /* ==========================================================================
	  Content wrapper — universal padding reset
	  ========================================================================== */

   /*
	* `.col-full` (WooCommerce/theme's main content wrapper) is zeroed out
	* on every page, not just single-product. Each top-level page container
	* (.ae-product-page, .ae-shop-page) applies its own 32px padding
	* instead. This is what keeps the WooCommerce breadcrumb — and
	* everything else inside .col-full — landing at the same horizontal
	* position on the shop page and the product page: neither wrapper
	* contributes padding of its own anymore, so there's nothing left to
	* drift out of sync between templates.
	*/
   #content .col-full {
	   padding-left: 0 !important;
	   padding-right: 0 !important;
	   box-sizing: border-box;
   }

   /* ==========================================================================
	  Item 2 — full-width product page
	  ========================================================================== */

   body.single-product .col-full,
   body.single-product .content-area,
   body.single-product #primary,
   body.single-product #main,
   body.single-product.right-sidebar .content-area,
   body.single-product .site-main {
	   max-width: 100% !important;
	   width: 100% !important;
	   float: none !important;
	   margin-left: 0 !important;
	   margin-right: 0 !important;
	   padding-left: 0 !important;
	   padding-right: 0 !important;
	   box-sizing: border-box;
   }

   .ae-product-page {
	   max-width: 100%;
	   margin: 0;
	   padding: 0 32px;
	   box-sizing: border-box;
   }

   /* ==========================================================================
	  Home page (unchanged from before)
	  ========================================================================== */

   .ae-hero {
	   background: linear-gradient(135deg, #3949ab, #1a73e8);
	   color: #fff;
	   border-radius: 12px;
	   padding: 60px 30px;
	   text-align: center;
	   margin-bottom: 40px;
   }
   .ae-hero h1 { font-size: 30px; margin: 0 0 10px; color: #fff; }
   .ae-hero p { font-size: 16px; margin: 0 0 20px; opacity: 0.9; }
   .ae-hero-button {
	   display: inline-block;
	   background: #fff;
	   color: #1a73e8;
	   padding: 12px 28px;
	   border-radius: 999px;
	   font-weight: 700;
	   text-decoration: none;
   }
   .ae-home-section { margin-bottom: 48px; }
   .ae-section-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
   .ae-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
   @media (max-width: 782px) { .ae-category-grid { grid-template-columns: repeat(2, 1fr); } }
   .ae-category-card { display: block; text-align: center; text-decoration: none; color: #222; border-radius: 10px; overflow: hidden; background: #f7f7f8; }
   .ae-category-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
   .ae-category-name { display: block; padding: 10px; font-size: 14px; font-weight: 600; }
   .ae-product-grid ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
   @media (max-width: 782px) { .ae-product-grid ul.products { grid-template-columns: repeat(2, 1fr); } }

   /* ==========================================================================
	  Product page — shared
	  ========================================================================== */

   .ae-product-breadcrumb {
	   font-size: 13px;
	   color: #888;
	   margin-bottom: 16px;
   }

   .ae-section-heading {
	   font-size: 17px;
	   font-weight: 700;
	   margin: 0 0 16px;
   }

   /* ==========================================================================
	  Item 2 — hero: gallery (35%, right) + info column
	  ========================================================================== */

   .ae-hero-layout {
	   display: grid;
	   grid-template-columns: 35% 1fr;
	   gap: 40px;
	   align-items: start;
	   margin-bottom: 32px;
   }

   @media (max-width: 900px) {
	   .ae-hero-layout {
		   grid-template-columns: 1fr;
	   }
   }

   .ae-main-image-wrap {
	   position: relative;
	   border-radius: 10px;
	   overflow: hidden;
	   background: #fafafa;
   }

   .ae-main-image {
	   width: 100%;
	   height: auto;
	   display: block;
	   aspect-ratio: 1 / 1;
	   object-fit: contain;
	   transition: opacity 0.15s ease;
   }

   .ae-gallery-arrow {
	   position: absolute;
	   top: 50%;
	   transform: translateY(-50%);
	   width: 44px;
	   height: 44px;
	   border-radius: 50%;
	   border: 1px solid #e5e5e5;
	   background: #fff;
	   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	   font-size: 20px;
	   line-height: 1;
	   cursor: pointer;
	   color: #333;
	   z-index: 2;
	   display: flex;
	   align-items: center;
	   justify-content: center;
	   transition: background 0.15s ease, transform 0.15s ease;
   }

   .ae-gallery-arrow:hover {
	   background: #f5f5f5;
	   transform: translateY(-50%) scale(1.06);
   }

   .ae-gallery-prev { inset-inline-start: 14px; }
   .ae-gallery-next { inset-inline-end: 14px; }

   .ae-thumbs-wrap {
	   position: relative;
	   display: flex;
	   align-items: center;
	   gap: 6px;
	   margin-top: 10px;
   }

   .ae-gallery-thumbs {
	   display: flex;
	   gap: 8px;
	   overflow-x: auto;
	   scroll-behavior: smooth;
	   scrollbar-width: none;
	   -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent 100%);
			   mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent 100%);
   }
   .ae-gallery-thumbs::-webkit-scrollbar { display: none; }

   .ae-thumbs-scroll {
	   flex-shrink: 0;
	   width: 28px;
	   height: 28px;
	   border-radius: 50%;
	   border: 1px solid #e5e5e5;
	   background: #fff;
	   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	   display: flex;
	   align-items: center;
	   justify-content: center;
	   cursor: pointer;
	   color: #333;
	   transition: background 0.15s ease, transform 0.15s ease;
   }
   .ae-thumbs-scroll:hover {
	   background: #f5f5f5;
	   transform: scale(1.06);
   }
   .ae-thumbs-scroll svg { width: 14px; height: 14px; }

   .ae-thumb {
	   width: 56px;
	   height: 56px;
	   object-fit: cover;
	   border-radius: 6px;
	   border: 2px solid transparent;
	   cursor: pointer;
	   flex-shrink: 0;
	   opacity: 0.7;
   }

   .ae-thumb:hover {
	   opacity: 1;
   }

   .ae-thumb.is-active {
	   border-color: #1a73e8;
	   opacity: 1;
   }

   /* ==========================================================================
	  Item 3 — title (Vazir) + English subtitle (LTR)
	  ========================================================================== */

   .ae-product-title {
	   font-size: 22px;
	   font-weight: 700;
	   margin: 0;
	   line-height: 1.6;
   }

   .ae-product-title-en {
	   direction: ltr;
	   text-align: left;
	   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	   font-size: 13px;
	   color: #888;
	   margin-top: 4px;
   }

   /* ==========================================================================
	  Item 4 — divider + ratings
	  ========================================================================== */

   .ae-divider {
	   border: none;
	   border-top: 1px solid #eee;
	   margin: 16px 0;
   }

   .ae-product-badges {
	   display: flex;
	   flex-wrap: wrap;
	   gap: 8px;
	   margin-bottom: 22px;
   }

   /* Scoped to .ae-product-badges: the bare ".ae-badge" class is reused
	  for a visually unrelated element (the header's cart/notification
	  count pill, defined further down under "Header styles"). Scoping
	  this one to its actual container keeps the two from colliding —
	  previously the header's later, unscoped ".ae-badge" rule silently
	  overrode this pill's display/padding/shape everywhere. */
   .ae-product-badges .ae-badge {
	   display: inline-flex;
	   align-items: center;
	   gap: 6px;
	   padding: 6px 14px;
	   border: 1px solid #eee;
	   border-radius: 999px;
	   font-size: 13px;
	   background: #fafafa;
   }

   /* ==========================================================================
	  Item 5 — 6 highlight attribute cards
	  ========================================================================== */

   .ae-highlight-grid {
	   display: grid;
	   grid-template-columns: repeat(3, 1fr);
	   gap: 12px;
	   margin-bottom: 24px;
   }

   @media (max-width: 600px) {
	   .ae-highlight-grid {
		   grid-template-columns: repeat(2, 1fr);
	   }
   }

   .ae-feature-card {
	   background: #f7f7f8;
	   border-radius: 10px;
	   padding: 12px 14px;
   }

   .ae-feature-label {
	   color: #888;
	   font-size: 12px;
	   margin-bottom: 4px;
   }

   .ae-feature-value {
	   font-weight: 600;
	   font-size: 13px;
   }

   .ae-price-cart {
	   margin-top: 8px;
	   --ae-cart-ctrl-h: 63px;
   }

   .ae-price-current {
	   font-size: 24px;
	   font-weight: 700;
	   margin-bottom: 14px;
   }

   /* Row: quantity stepper + add-to-cart button share one flex line so
	  align-items: stretch can force them to the same height. */
   .ae-price-cart form.cart {
	   display: flex;
	   align-items: stretch;
	   flex-wrap: wrap;
	   gap: 12px;
   }

   .ae-price-cart .single_add_to_cart_button {
	   display: inline-flex;
	   align-items: center;
	   justify-content: center;
	   height: var(--ae-cart-ctrl-h);
	   background: #e02020 !important;
	   border-color: #e02020 !important;
	   color: #fff !important;
	   font-weight: 700;
	   padding: 0 32px !important;
	   border-radius: 10px !important;
	   font-size: 15px !important;
	   box-sizing: border-box;
   }

   .ae-price-cart .single_add_to_cart_button:hover {
	   background: #c81e1e !important;
   }

   /* Item 5 — variation swatches (built from the native <select>s via JS) */

   .ae-swatch {
	   width: 50px !important;
	   height: 50px !important;
   }

   .ae-swatch-group {
	   display: flex;
	   flex-wrap: wrap;
	   gap: 10px;
	   margin: 10px 0 20px;
   }

   .ae-swatch-color .ae-swatch-btn {
	   width: 34px;
	   height: 34px;
	   border-radius: 50%;
	   border: 2px solid #e5e5e5;
	   padding: 0;
	   cursor: pointer;
   }

   .ae-swatch-color .ae-swatch-btn.is-selected,
   .ae-swatch-color .ae-swatch-btn:hover {
	   border-color: #1a73e8;
   }

   .ae-swatch-group.ae-swatch-choice {
	   display: grid;
	   grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	   gap: 10px;
   }

   .ae-swatch-choice .ae-swatch-btn {
	   width: 100%;
	   min-width: 0;
	   min-height: 40px;
	   padding: 6px 14px;
	   border-radius: 8px;
	   border: 1px solid #e0e0e0;
	   background: #fff;
	   font-size: 14px;
	   font-weight: bold;
	   line-height: 1.4;
	   cursor: pointer;
	   box-sizing: border-box;
   }

   .ae-swatch-choice .ae-swatch-btn.is-selected {
	   border-color: #1a73e8;
	   background: #eef1ff;
	   color: #1a73e8;
	   font-weight: 700;
   }

   .ae-swatch-choice .ae-swatch-btn:hover {
	   border-color: #bbb;
   }

   /* Minimal quantity stepper */

   .quantity {
	   display: inline-flex;
	   align-items: stretch;
	   height: var(--ae-cart-ctrl-h, 52px);
	   border: 1px solid #eee;
	   border-radius: 10px;
	   overflow: hidden;
	   width: fit-content;
	   box-sizing: border-box;
   }

   .quantity input.qty {
	   appearance: textfield;
	   -moz-appearance: textfield;
	   border: none;
	   width: 36px;
	   text-align: center;
	   font-size: 14px;
	   color: #666;
	   padding: 0;
   }

   .quantity input.qty::-webkit-outer-spin-button,
   .quantity input.qty::-webkit-inner-spin-button {
	   -webkit-appearance: none;
	   margin: 0;
   }

   .ae-qty-btn {
	   border: none;
	   background: #fff;
	   width: 34px;
	   font-size: 15px;
	   line-height: 1;
	   cursor: pointer;
	   color: #555;
   }

   .ae-qty-btn:hover {
	   background: #f0f0f0;
   }

   /* Fix WooCommerce's default variation table: stack label above the
	  swatches instead of side-by-side table cells, right-aligned.
	  Note: WooCommerce's core template uses <th class="label">, not <td> —
	  covering both here in case a plugin/version differs. */
   .variations,
   .variations tbody,
   .variations tr {
	   display: block;
	   width: 100%;
   }

   .variations th.label,
   .variations td.label,
   .variations td.value {
	   display: block;
	   width: 100%;
	   text-align: right;
	   padding: 0;
   }

   .variations th.label label,
   .variations td.label label {
	   font-weight: 600;
	   font-size: 14px;
	   margin: 0 0 10px;
	   display: block;
   }

   .variations td.value select {
	   display: none; /* replaced by .ae-swatch-group via JS */
   }

   /* ==========================================================================
	  Item 6 — authenticity / shipping guarantee note
	  ========================================================================== */

   .ae-authenticity-note {
	   display: flex;
	   gap: 12px;
	   align-items: flex-start;
	   background: #f0f9f0;
	   border: 1px solid #dcefdc;
	   border-radius: 10px;
	   padding: 16px 18px;
	   margin-bottom: 32px;
   }

   .ae-authenticity-icon {
	   flex-shrink: 0;
	   color: #2e7d32;
	   font-size: 18px;
   }

   .ae-authenticity-note p {
	   margin: 0;
	   font-size: 13px;
	   line-height: 2;
	   color: #345c34;
   }

   /* Second authenticity note — red/warning variant instead of green */
   .ae-authenticity-note--support{
	   background: #fdecec;
	   border-color: #f3c6c6;
   }
   .ae-authenticity-note--support .ae-authenticity-icon{
	   color: #c62828;
   }
   .ae-authenticity-note--support p{
	   color: #7a2020;
   }

   /* ==========================================================================
	  Item 7 — full-width trust badge strip
	  ========================================================================== */

   .ae-trust-strip {
	   display: flex;
	   justify-content: space-between;
	   flex-wrap: wrap;
	   gap: 20px;
	   background: #fafafa;
	   border-radius: 10px;
	   padding: 20px 24px;
	   margin-bottom: 40px;
   }

   .ae-trust-item {
	   display: flex;
	   align-items: center;
	   gap: 10px;
	   font-size: 12px;
	   color: #666;
	   white-space: nowrap;
   }

   .ae-trust-icon {
	   width: 26px;
	   height: 26px;
	   color: #999;
	   flex-shrink: 0;
   }

   .ae-trust-icon svg {
	   width: 100%;
	   height: 100%;
   }

   /* ==========================================================================
	  Item 6 — tabs: description / specifications / reviews
	  ========================================================================== */

   .ae-tabs {
	   margin-top: 12px;
   }

   .ae-tabs-nav {
	   display: flex;
	   gap: 4px;
	   border-bottom: 1px solid #eee;
	   margin-bottom: 24px;
   }

   .ae-tab-btn {
	   background: none;
	   border: none;
	   border-bottom: 2px solid transparent;
	   padding: 12px 18px;
	   font-size: 14px;
	   font-weight: 600;
	   color: #888;
	   cursor: pointer;
	   margin-bottom: -1px;
   }

   .ae-tab-btn:hover {
	   color: #333;
   }

   .ae-tab-btn.is-active {
	   color: #1a73e8;
	   border-bottom-color: #1a73e8;
   }

   .ae-tab-panel {
	   font-size: 14px;
	   line-height: 2;
	   color: #333;
   }

   /* Item 8: any image inside the description content sits centered at 50% width */
   .ae-description-content img {
	   display: block;
	   height: auto;
	   margin: 24px auto;
	   border-radius: 8px;
   }

   @media (max-width: 600px) {
	   .ae-description-content img {
		   max-width: 100%;
	   }
   }

   .ae-spec-table {
	   width: 100%;
	   max-width: 600px;
	   border-collapse: collapse;
	   font-size: 13px;
   }

   .ae-spec-table tr {
	   border-bottom: 1px solid #f2f2f2;
   }

   .ae-spec-table tr:last-child {
	   border-bottom: none;
   }

   .ae-spec-table th,
   .ae-spec-table td {
	   text-align: right;
	   padding: 10px;
	   font-weight: 400;
   }

   .ae-spec-table th {
	   color: #888;
	   width: 40%;
   }

   .ae-spec-table td {
	   font-weight: 600;
   }

   /* =====================================================================
	  Header styles
	  ===================================================================== */

   :root{
	   --ae-bg: #F6F4EF;
	   --ae-surface: #FFFFFF;
	   --ae-ink: #211D18;
	   --ae-ink-soft: #5C574D;
	   --ae-primary: #053612;
	   --ae-primary-dark: #96bb7c;
	   --ae-accent: #CB7B2E;
	   --ae-accent-dark: #A8611E;
	   --ae-border: #eee;
	   --ae-radius-sm: 8px;
	   --ae-radius-md: 12px;
	   --ae-shadow-menu: 0 16px 32px -12px rgba(108, 135, 89, 0.28);
	   --ae-on-primary: #F6F4EF;
	   --ae-on-primary-soft: rgba(246, 244, 239, 0.72);
	   --ae-on-primary-border: rgba(246, 244, 239, 0.16);
	   --ae-on-primary-hover: rgba(246, 244, 239, 0.1);
   }

   .ae-site-header,
   .ae-site-header *{ box-sizing: border-box; }

   .ae-site-header{
		background: var(--ae-primary);
		font-family: 'Vazirmatn', sans-serif;
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.ae-nav-collapse{
		background: var(--ae-primary);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	}

	/* WordPress's admin toolbar is also position:fixed at top:0 when logged
	in — without this, our sticky header fights it and slides underneath
	on scroll. WordPress adds body.admin-bar whenever the toolbar shows,
	and the toolbar is 32px tall (46px on its own mobile breakpoint). */
	body.admin-bar .ae-site-header{
		top: 32px;
	}

	@media screen and (max-width: 782px){
		body.admin-bar .ae-site-header{
			top: 46px;
		}
	}

   .ae-header-row{
		max-width: 1280px;
		margin: 0 auto;
		display: flex;
		align-items: center;
		gap: 20px;
		padding: 12px 24px;
		max-height: 60px;
   }

   .ae-logo{
	   display: flex;
	   align-items: center;
	   gap: 8px;
	   text-decoration: none;
	   color: var(--ae-primary-dark);
	   flex-shrink: 0;
   }

   .ae-logo svg{ width: 30px; height: 30px; }
   .ae-logo span{ font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
   .ae-logo img{ max-height: 40px; width: auto; }

   .ae-search-form{
	   flex: 1 1 auto;
	   display: flex;
	   align-items: center;
	   max-width: 520px;
	   gap: 8px;
	   background: #f2f2f2;
	   border: none;
	   border-radius: var(--ae-radius-md);
	   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	   padding: 6px 14px;
	   margin: 0;
	   transition: box-shadow .15s ease;
   }
   .ae-search-form:focus-within{
	   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
   }
   .ae-search-form input[type="search"]{
	   flex: 1;
	   border: none;
	   background: transparent;
	   outline: none;
	   font-family: inherit;
	   font-size: 14px;
	   color: var(--ae-ink);
	   padding: 4px 0;
	   margin: 0;
   }
   .ae-search-form input::placeholder{ color: var(--ae-ink-soft); }
   .ae-search-form button{
	   border: none;
	   background: none;
	   color: var(--ae-ink-soft);
	   width: 22px;
	   height: 22px;
	   padding: 0;
	   margin: 0;
	   display: flex;
	   align-items: center;
	   justify-content: center;
	   cursor: pointer;
	   flex-shrink: 0;
	   transition: color .15s ease;
   }

   .ae-search-form button:hover{ color: var(--ae-primary); }
   .ae-search-form button svg{ width: 18px; height: 18px; }

   .ae-header-actions{ display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto; }
   .ae-icon-btn{
	   position: relative;
	   display: flex;
	   align-items: center;
	   gap: 6px;
	   background: none;
	   border: none;
	   cursor: pointer;
	   color: var(--ae-ink);
	   font-family: inherit;
	   padding: 6px 8px;
	   border-radius: var(--ae-radius-sm);
	   transition: background .15s ease;
	   text-decoration: none;
	   font-size: 14px;
   }

   .ae-icon-btn:hover{ background: var(--ae-bg); }
   .ae-icon-btn svg{ width: 22px; height: 22px; stroke: var(--ae-ink); flex-shrink: 0; }
   .ae-icon-btn .ae-label{ color: var(--ae-ink); white-space: nowrap; }
   .ae-icon-btn .ae-label small{ display:block; color: var(--ae-ink-soft); font-weight: 400; font-size: 12px; }

   /* Header cart/notification count pill (e.g. the number on the cart
	  icon). Kept as the bare ".ae-badge" selector since this is the
	  class's primary use in the markup; the unrelated product-trust
	  pill above is scoped to ".ae-product-badges .ae-badge" instead so
	  the two no longer fight over one class name. */
   .ae-badge{
	   position: absolute;
	   top: 2px;
	   inset-inline-end: 2px;
	   background: var(--ae-accent);
	   color: #fff;
	   font-size: 10.5px;
	   font-weight: 700;
	   min-width: 16px;
	   height: 16px;
	   border-radius: 999px;
	   display: flex;
	   align-items: center;
	   justify-content: center;
	   padding: 0 3px;
	   border: 2px solid var(--ae-surface);
   }

   .ae-tile-divider{
	   height: 1px;
	   width: 100%;
	   background: var(--ae-border);
   }

   .ae-nav-row{
		max-width: 1280px;
		margin: 0 auto;
		display: flex;
		align-items: center;
		gap: 4px;
		padding: 0 24px;
		height: 40px;
		position: relative;
	}

   .ae-cat-trigger{
	   display: flex;
	   align-items: center;
	   gap: 6px;
	   background: none;
	   color: var(--ae-ink);
	   border: none;
	   height: 36px;
	   padding: 0 14px 0 4px;
	   margin-inline-end: 4px;
	   font-family: inherit;
	   font-size: 14px;
	   font-weight: 600;
	   cursor: pointer;
	   flex-shrink: 0;
	   transition: color .15s ease;
   }

   .ae-cat-trigger:hover{ color: var(--ae-primary-dark); }
   .ae-cat-trigger svg{ width: 17px; height: 17px; }
   .ae-cat-trigger .ae-chev{ width: 12px; height: 12px; transition: transform .18s ease; }
   .ae-cat-trigger[aria-expanded="true"] .ae-chev{ transform: rotate(180deg); }

   .ae-nav-links{
	   display: flex;
	   align-items: center;
	   gap: 0;
	   list-style: none;
	   margin: 0;
	   padding: 0;
   }
   .ae-nav-links a{
	   position: relative;
	   display: inline-block;
	   padding: 8px 14px;
	   color: var(--ae-ink);
	   text-decoration: none;
	   font-size: 14px;
	   font-weight: 500;
	   transition: color .15s ease;
   }
   .ae-nav-links a:hover{ color: var(--ae-primary-dark); }

   .ae-mega-menu{
	   position: absolute;
	   top: calc(100% + 10px);
	   right: 24px;
	   background: var(--ae-surface);
	   border: 1px solid var(--ae-border);
	   border-radius: var(--ae-radius-md);
	   box-shadow: var(--ae-shadow-menu);
	   width: 560px;
	   max-width: calc(100vw - 48px);
	   padding: 10px;
	   display: grid;
	   grid-template-columns: repeat(2, 1fr);
	   gap: 2px;
	   opacity: 0;
	   visibility: hidden;
	   transform: translateY(-6px);
	   transition: opacity .16s ease, transform .16s ease, visibility .16s;
	   z-index: 50;
   }
   .ae-mega-menu.ae-open{ opacity: 1; visibility: visible; transform: translateY(0); }
   .ae-mega-menu a{
	   display: flex;
	   align-items: center;
	   gap: 10px;
	   padding: 10px 12px;
	   border-radius: var(--ae-radius-sm);
	   text-decoration: none;
	   color: var(--ae-ink);
	   font-size: 14px;
   }
   
   .ae-mega-menu a:hover{ background: var(--ae-bg); color: var(--ae-primary-dark); }
   .ae-mega-menu .ae-dot{ width: 8px; height: 8px; border-radius: 999px; background: var(--ae-accent); flex-shrink: 0; }

   .ae-hamburger{ display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ae-ink); }
   .ae-hamburger svg{ width: 24px; height: 24px; }

   @media (max-width: 860px){
	   .ae-header-row{ gap: 12px; padding: 10px 16px; }
	   .ae-icon-btn .ae-label{ display: none; }
	   .ae-logo span{ display: none; }

	   .ae-nav-row{ padding: 0 16px; }
	   .ae-nav-links{ display: none; }
	   .ae-nav-links.ae-open{
		   display: flex;
		   flex-direction: column;
		   position: absolute;
		   top: 100%;
		   right: 0; left: 0;
		   background: var(--ae-surface);
		   border: 1px solid var(--ae-border);
		   border-radius: var(--ae-radius-md);
		   box-shadow: var(--ae-shadow-menu);
		   padding: 8px;
		   z-index: 50;
	   }
	   .ae-hamburger{ display: flex; margin-inline-start: auto; }
	   .ae-mega-menu{ right: 16px; width: calc(100vw - 32px); grid-template-columns: 1fr; }
   }

   /* Override Storefront's breadcrumb spacing */
   .woocommerce-breadcrumb{
	   margin: 1em 48px !important;
   }

   /* Hide WooCommerce's "clear selection" link, and show a bold placeholder
	  in the variation price slot until a variation is actually selected —
	  WooCommerce fills that same element with the real price once chosen,
	  so the placeholder disappears automatically (:empty stops matching). */
   .reset_variations{
	   display: none !important;
   }

   .single_variation_wrap{
	   display: flex;
	   align-items: stretch;
	   flex-wrap: wrap;
	   gap: 4px;
	   margin: 16px 0;
   }

	.woocommerce-variation.single_variation{
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		height: auto !important;
		min-height: var(--ae-cart-ctrl-h) !important;
		min-width: 220px !important;
		flex: 1 1 220px !important;        /* was: flex: 0 0 220px - now can grow past 220px if needed */
		padding: 6px 10px !important;      /* a little vertical room now that it can wrap to 2 lines */
		border: 1px solid var(--ae-border, #eee) !important;
		border-radius: 10px !important;
		background: var(--ae-surface, #fff) !important;
		font-weight: 700 !important;
		font-size: 15px !important;
		color: var(--ae-accent-dark, #A8611E) !important;
		white-space: normal !important;    /* was: nowrap - now allowed to wrap instead of overflowing */
		text-align: center !important;
		box-sizing: border-box !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

   .woocommerce-variation.single_variation:empty::before{
	   content: "انتخاب کنید";
	   display: block;
	   font-weight: 600;
	   font-size: 14px;
	   color: var(--ae-ink-soft, #5C574D);
   }

	.woocommerce-variation-price .price{
		color: inherit;
		font-weight: inherit;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 4px;
		text-align: center;
	}

   .woocommerce-Price-amount bdi{
	   color: #000;
   }

   /* Reviews / Q&A row — sits under the title, above the attribute cards */
   .ae-review-qa-row{
	   display: flex;
	   align-items: stretch;
	   gap: 12px;
	   margin-bottom: 20px;
   }
   .ae-review-qa-item{
	   display: flex;
	   align-items: center;
	   justify-content: center;
	   flex: 1 1 0;
	   gap: 8px;
	   background: #f2f2f2;
	   border-radius: 10px;
	   padding: 10px 14px;
   }
   .ae-stars-static{
	   color: #f5a623;
	   font-size: 15px;
	   letter-spacing: 1px;
   }
   .ae-review-qa-link{
	   background: none;
	   border: none;
	   padding: 0;
	   font-family: inherit;
	   font-size: 13px;
	   color: #000;
	   cursor: pointer;
	   text-decoration: none;
   }
   .ae-review-qa-link:hover{
	   text-decoration: underline;
   }

   /* "View all specifications" card — 6th slot in the attribute grid */
   .ae-feature-card--more{
	   display: flex;
	   flex-direction: column;
	   align-items: flex-start;
	   justify-content: center;
	   width: 100%;
	   border: none;
	   cursor: pointer;
	   font-family: inherit;
	   text-align: right;
	   transition: background 0.15s ease;
   }
   .ae-feature-card--more:hover{
	   background: #ececec;
   }
   .ae-feature-card--more .ae-feature-value{
	   color: #000;
   }

   /* ---- Original (crossed-out) price: hand-drawn red cross instead of a plain strikethrough ---- */

   .price ins {
		text-decoration: none !important; /* remove the default straight strikethrough line */
		margin-right: 20px;
	}

	.price del {
		text-decoration: none !important; /* remove the default straight strikethrough line */
		position: relative;
		display: inline-block;
	}

	.price del::before,
	.price del::after {
		content: "";
		position: absolute;
		left: -3%;
		right: -3%;
		top: -18%;
		bottom: -18%;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		pointer-events: none;
	}

	.price del::before {
		background-image: url("../images/red-cross-1.png");
		opacity: 80%;
	}

	.price del::after {
		background-image: url("../images/red-cross-2.png");
		opacity: 80%;
	}

   /* ==========================================================================
	  Minimal review layout — avatar on the right, name+date next to it
	  (date stacked under the name), stars pushed to the far end (left, since
	  the site is RTL). WooCommerce's own review template outputs the list as
	  <ol class="commentlist"> (no hyphen) — NOT .comment-list — so every rule
	  below targets the real class confirmed via dev tools.
	  ========================================================================== */

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

   .shopfa-review,
   .commentlist > li {
	   padding: 18px 0 !important;
	   border-bottom: 1px solid #ddd !important;
   }

   .shopfa-review:last-child,
   .commentlist > li:last-child {
	   border-bottom: none !important;
   }

   .shopfa-review-toprow {
	   display: flex;
	   align-items: center;
	   justify-content: space-between;
	   gap: 14px;
   }

   .shopfa-review-identity {
	   display: flex;
	   align-items: center;
	   flex-wrap: nowrap;
	   gap: 8px;
   }

   .shopfa-review-namedate {
	   display: flex;
	   flex-direction: column;
	   flex-wrap: nowrap;
	   gap: 2px;
	   min-width: 0;
   }

   .shopfa-review-avatar,
   img.shopfa-review-avatar {
	   display: block;
	   width: 32px;
	   height: 32px;
	   border-radius: 50%;
	   flex-shrink: 0;
	   margin: 0;
	   position: static !important;
	   top: auto !important;
	   left: auto !important;
	   right: auto !important;
	   bottom: auto !important;
	   float: none !important;
   }

   .shopfa-review-name { font-size: 13px; font-weight: 600; color: var(--ae-ink, #211D18); }
   .shopfa-review-date { font-size: 12px; color: #999; white-space: nowrap; }

   .shopfa-review-stars .star-rating {
	   font-size: 14px;
	   color: #e9d5b0; /* empty stars: soft gold-tinted gray */
   }
   .shopfa-review-stars .star-rating span {
	   color: #f5a623; /* filled stars: gold */
   }

   .shopfa-review-content {
	   margin-top: 8px;
	   font-size: 13px;
	   line-height: 1.9;
	   color: #444;
   }

   .shopfa-review-content p {
	   margin: 0;
   }

   .shopfa-review-content > .star-rating {
	   /* Safety net only: hides a duplicate rating if the filter removal
		  above doesn't match your exact WooCommerce version. */
	   display: none;
   }

   /* Divider between the review list and the "write a review" form below it */
   #review_form_wrapper {
	   border-top: 1px solid #eee;
	   margin-top: 20px;
	   padding-top: 20px;
   }

   /* Review/comment form — name required, email optional */
   #respond .comment-form-author,
   #respond .comment-form-email { margin-bottom: 12px; }

   #respond .comment-form-author label,
   #respond .comment-form-email label {
	   display: block;
	   font-size: 13px;
	   font-weight: 600;
	   margin-bottom: 6px;
   }

   #respond .comment-form-author .required { color: #c62828; }

   #respond .comment-form-author input,
   #respond .comment-form-email input {
	   width: 100%;
	   max-width: 360px;
	   padding: 10px 12px;
	   border: 1px solid #e5e5e5;
	   border-radius: 8px;
	   font-family: inherit;
	   font-size: 13px;
	   box-sizing: border-box;
   }

   /* Comment/review textarea — light gray, rounded, soft shadow */
   #respond .comment-form-comment label {
	   display: block;
	   font-size: 13px;
	   font-weight: 600;
	   margin-bottom: 6px;
   }
   #respond .comment-form-comment .required { color: #c62828; }
   #respond textarea#comment {
	   width: 100%;
	   min-height: 120px;
	   background: #f5f5f5;
	   border: none;
	   border-radius: 12px;
	   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	   padding: 14px;
	   font-family: inherit;
	   font-size: 13px;
	   color: var(--ae-ink, #211D18);
	   box-sizing: border-box;
	   resize: vertical;
	   transition: box-shadow 0.15s ease;
   }
   #respond textarea#comment:focus {
	   outline: none;
	   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
   }

   /* ==========================================================================
	  Product summary sidebar — sits beside the description/specs/reviews
	  tabs. RTL: main tab content is the first column (right), sidebar is
	  the second column (left) — no need to reorder the HTML for this.
	  ========================================================================== */

   .ae-content-layout {
	   display: grid;
	   grid-template-columns: 1fr 280px;
	   gap: 32px;
	   align-items: start;
   }

   @media (max-width: 900px) {
	   .ae-content-layout { grid-template-columns: 1fr; }
   }

   .ae-product-sidebar {
	   position: sticky;
	   top: calc(var(--site-header-height, 96px) + 10px);
   }

   .ae-product-sidebar-inner {
	   background: #fafafa;
	   border: 1px solid #eee;
	   border-radius: 12px;
	   padding: 16px;
   }

   .ae-product-sidebar-image img {
	   width: 100%;
	   aspect-ratio: 1 / 1;
	   object-fit: contain;
	   border-radius: 8px;
	   background: #fff;
	   margin-bottom: 12px;
   }

   .ae-product-sidebar-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; line-height: 1.7; }
   .ae-product-sidebar-price {
	   display: flex;
	   align-items: center;
	   justify-content: center;
	   flex-wrap: wrap;
	   gap: 6px;
	   text-align: center;
	   font-size: 17px;
	   font-weight: 700;
	   margin-bottom: 10px;
   }

   .ae-product-sidebar-stock { font-size: 12px; margin: 0 0 14px; font-weight: 600; }
   .ae-product-sidebar-stock.is-in-stock { color: #2e7d32; }
   .ae-product-sidebar-stock.is-out-of-stock { color: #c62828; }

   .ae-product-sidebar-cta {
	   display: block;
	   text-align: center;
	   background: #e02020;
	   color: #fff;
	   font-weight: 700;
	   font-size: 14px;
	   padding: 12px;
	   border-radius: 10px;
	   text-decoration: none;
   }

   .ae-product-sidebar-cta:hover { background: #c81e1e; color: #fff; }

   /* WooCommerce's review-form rating picker ("امتیاز شما") uses its own
	  .stars class (separate from .star-rating used to DISPLAY a submitted
	  rating) — those <a> tags render in default link-blue unless colored. */
   .stars a {
	   color: #f5a623;
	   text-decoration: none;
   }
   .stars a:hover,
   .stars a.active {
	   color: #f5a623;
   }

   /* "امتیاز شما" rating label — bold, matching the author/email labels */
   .comment-form-rating label {
	   font-weight: 700;
   }

   /* "Save my name..." consent checkbox — styled as a light box matching
	  the rest of the form (search bar, review-qa boxes, textarea) */
   .comment-form-cookies-consent {
	   display: flex;
	   align-items: center;
	   gap: 8px;
	   font-size: 13px;
   }
   .comment-form-cookies-consent input[type="checkbox"] {
	   width: 16px;
	   height: 16px;
	   margin: 0;
	   accent-color: var(--ae-primary, #0E4650);
	   cursor: pointer;
	   flex-shrink: 0;
   }
   .comment-form-cookies-consent label {
	   margin: 0;
	   cursor: pointer;
   }

   /* Submit button ("ثبت") — same light-box look as the rest of the form */
   #respond #submit {
	   display: inline-block !important;
	   background: #f2f2f2 !important;
	   color: var(--ae-ink, #211D18) !important;
	   border: none !important;
	   border-radius: 10px !important;
	   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
	   padding: 14px 36px !important;
	   font-family: inherit !important;
	   font-size: 15px !important;
	   font-weight: 700 !important;
	   cursor: pointer !important;
	   transition: background 0.15s ease, box-shadow 0.15s ease;
   }
   #respond #submit:hover {
	   background: #e8e8e8 !important;
	   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
   }

   /* =====================================================================
	  Footer
	  ===================================================================== */

   .ae-site-footer{
	   margin-top: 48px;
	   background: var(--ae-surface, #fff);
	   border-top: 1px solid var(--ae-border, #eee);
	   font-size: 13px;
	   color: var(--ae-ink-soft, #5C574D);
   }

   .ae-footer-topbar{
	   max-width: 1280px;
	   margin: 0 auto;
	   display: flex;
	   align-items: center;
	   justify-content: space-between;
	   padding: 20px 24px;
   }

   .ae-back-to-top{
	   display: inline-flex;
	   align-items: center;
	   gap: 8px;
	   background: var(--ae-surface, #fff);
	   border: 1px solid var(--ae-border, #eee);
	   border-radius: 999px;
	   padding: 10px 18px;
	   font-family: inherit;
	   font-size: 13px;
	   color: var(--ae-ink, #211D18);
	   cursor: pointer;
	   transition: background 0.15s ease;
   }
   .ae-back-to-top:hover{ background: var(--ae-bg, #F6F4EF); }
   .ae-back-to-top svg{ width: 16px; height: 16px; }

   .ae-footer-logo{
	   font-size: 20px;
	   font-weight: 800;
	   color: var(--ae-primary-dark, #0A3339);
	   text-decoration: none;
   }
   .ae-footer-logo img{ max-height: 34px; width: auto; }

   .ae-footer-support{
	   max-width: 1280px;
	   margin: 0 auto;
	   padding: 0 24px 20px;
	   text-align: center;
	   border-bottom: 1px solid var(--ae-border, #eee);
	   padding-bottom: 24px;
   }
   .ae-footer-sep{ margin: 0 10px; color: var(--ae-border, #eee); }

   .ae-footer-trust-strip{
	   max-width: 1280px;
	   margin: 0 auto;
	   display: flex;
	   flex-wrap: wrap;
	   justify-content: space-around;
	   gap: 24px;
	   padding: 32px 24px;
	   border-bottom: 1px solid var(--ae-border, #eee);
   }
   .ae-footer-trust-item{
	   display: flex;
	   flex-direction: column;
	   align-items: center;
	   gap: 10px;
	   font-size: 12.5px;
	   color: var(--ae-ink-soft, #5C574D);
	   text-align: center;
   }
   .ae-footer-trust-icon{
	   width: 40px;
	   height: 40px;
	   color: var(--ae-primary, #0E4650);
   }
   .ae-footer-trust-icon svg{ width: 100%; height: 100%; }

   .ae-footer-trust-icon img{
	   width: 100%;
	   height: 100%;
	   object-fit: contain;
   }

   .ae-footer-columns{
	   max-width: 1280px;
	   margin: 0 auto;
	   display: grid;
	   grid-template-columns: repeat(4, 1fr);
	   gap: 24px;
	   padding: 32px 24px;
   }
   @media (max-width: 860px){
	   .ae-footer-columns{ grid-template-columns: repeat(2, 1fr); }
   }

   .ae-footer-col h3{
	   font-size: 14px;
	   font-weight: 700;
	   color: var(--ae-ink, #211D18);
	   margin: 0 0 16px;
   }
   .ae-footer-col-list{
	   list-style: none;
	   margin: 0;
	   padding: 0;
	   display: flex;
	   flex-direction: column;
	   gap: 12px;
   }
   .ae-footer-col-list a{
	   color: var(--ae-ink-soft, #5C574D);
	   text-decoration: none;
	   font-size: 13px;
   }
   .ae-footer-col-list a:hover{ color: var(--ae-primary-dark, #0A3339); }

   .ae-footer-col-enamad{
	   display: flex;
	   align-items: flex-start;
	   justify-content: flex-start;
	   min-height: 80px;
   }

   .ae-site-footer .site-info{
	   text-align: center;
	   padding: 20px 24px;
	   border-top: 1px solid var(--ae-border, #eee);
	   margin: 0;
	   font-size: 12px;
   }

   /* ---------------------------------------------------------------------
	  Footer — collapsible "read more" section (about/SEO text + badges)
	  --------------------------------------------------------------------- */

   .ae-footer-seo{
	   max-width: 1280px;
	   margin: 0 auto;
	   padding: 28px 24px 4px;
	   border-top: 1px solid var(--ae-border, #eee);
   }

   .ae-footer-seo-inner{
	   display: flex;
	   gap: 32px;
	   align-items: flex-start;
   }

   .ae-footer-seo-content{ flex: 1; min-width: 0; }

   .ae-footer-seo-heading{
	   font-size: 16px;
	   font-weight: 700;
	   color: var(--ae-ink, #211D18);
	   margin: 0 0 12px;
   }

   .ae-footer-seo-text{
	   position: relative;
	   overflow: hidden;
	   max-height: 150px; /* roughly 4–5 lines closed */
	   transition: max-height 0.3s ease, -webkit-mask-image 0.3s ease, mask-image 0.3s ease;
	   -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
	   mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
   }

   .ae-footer-seo.ae-is-expanded .ae-footer-seo-text{
	   max-height: 4000px;
	   -webkit-mask-image: none;
	   mask-image: none;
   }

   .ae-footer-seo-text p{
	   margin: 0 0 12px;
	   font-size: 13.5px;
	   line-height: 1.9;
	   text-align: justify;
	   color: var(--ae-ink-soft, #5C574D);
   }

   .ae-footer-seo-text h3{
	   font-size: 14px;
	   font-weight: 700;
	   color: var(--ae-ink, #211D18);
	   margin: 18px 0 8px;
   }

   .ae-footer-seo-toggle{
	   display: inline-flex;
	   align-items: center;
	   gap: 4px;
	   margin-top: 14px;
	   background: none;
	   border: none;
	   padding: 0;
	   font-family: inherit;
	   font-size: 13px;
	   font-weight: 700;
	   color: var(--ae-primary-dark, #0A3339);
	   cursor: pointer;
   }
   .ae-footer-seo-toggle svg{
	   width: 14px;
	   height: 14px;
	   transition: transform 0.2s ease;
   }
   .ae-footer-seo.ae-is-expanded .ae-footer-seo-toggle svg{
	   transform: rotate(180deg);
   }

   .ae-footer-seo-badges{
	   display: flex;
	   gap: 10px;
	   flex-shrink: 0;
   }
   .ae-footer-seo-badge{
	   width: 90px;
	   height: 90px;
	   display: flex;
	   align-items: center;
	   justify-content: center;
	   background: var(--ae-surface, #fff);
	   border: 1px solid var(--ae-border, #eee);
	   border-radius: 8px;
	   padding: 6px;
	   box-sizing: border-box;
   }
   .ae-footer-seo-badge img{
	   max-width: 100%;
	   max-height: 100%;
   }

   @media (max-width: 680px){
	   .ae-footer-seo-inner{
		   flex-direction: column;
	   }
	   .ae-footer-seo-badges{
		   order: 2;
	   }
   }

   .ae-brand-category-list{
	   list-style: disc;
	   padding-inline-start: 20px;
	   margin: 16px 0;
	   font-size: 13.5px;
	   color: var(--ae-ink-soft, #5C574D);
   }
   .ae-brand-category-list li{
	   margin-bottom: 4px;
	   color: #000;
   }
   .ae-brand-category-list a{
	   color: var(--ae-primary-dark, #0A3339);
	   text-decoration: none;
	   font-weight: bold;
   }
   .ae-brand-category-list p{
	   display: inline;
	   color: var(--ae-primary-dark, #0A3339);
	   text-decoration: none;
	   font-weight: bold;
   }
   .ae-brand-category-list li p,
   .ae-brand-category-list li a {
		color: black;
   }

   /* ==========================================================================
	  Shop page (archive-product.php) — RTL
	  ========================================================================== */

   /*
	* Hard reset for WooCommerce's own default product-grid CSS.
	* Many themes ship float/fixed-width rules for `ul.products li.product`
	* (e.g. width: 22%; float: right;) that otherwise out-specificity or
	* simply coexist badly with our CSS Grid layout below. These resets
	* neutralise that so our grid is what actually renders.
	*/
   .woocommerce ul.products,
   .woocommerce-page ul.products {
	   display: grid !important;
	   grid-template-columns: repeat(4, 1fr) !important;
	   gap: 20px !important;
	   margin: 0 !important;
	   padding: 0 !important;
	   list-style: none !important;
   }

   .woocommerce ul.products.columns-2,
   .woocommerce-page ul.products.columns-2 {
	   grid-template-columns: repeat(2, 1fr) !important;
   }

   .woocommerce ul.products.columns-3,
   .woocommerce-page ul.products.columns-3 {
	   grid-template-columns: repeat(3, 1fr) !important;
   }

   .woocommerce ul.products.columns-4,
   .woocommerce-page ul.products.columns-4 {
	   grid-template-columns: repeat(4, 1fr) !important;
   }

   .woocommerce ul.products.columns-5,
   .woocommerce-page ul.products.columns-5 {
	   grid-template-columns: repeat(5, 1fr) !important;
   }

   .woocommerce ul.products li.product,
   .woocommerce-page ul.products li.product {
	   width: auto !important;
	   float: none !important;
	   clear: none !important;
	   margin: 0 !important;
	   list-style: none !important;
   }

   /* WooCommerce's own core stylesheet sets margin: 0 0 1em on this image,
	  which fights with our card padding — killed here specifically. */
   .woocommerce ul.products li.product a img {
	   margin: 0 !important;
   }

   .ae-shop-page {
	   direction: rtl;
	   /*
		* Same pattern .ae-product-page uses further up this file: the
		* page's own 32px padding, not the wrapper's. `.col-full` is
		* zeroed out universally near the top of this file (see "Content
		* wrapper — universal padding reset"), so the WooCommerce
		* breadcrumb and everything else inside .col-full lands at the
		* same horizontal position on both the shop page and the product
		* page — neither wrapper contributes its own padding anymore.
		*/
	   box-sizing: border-box;
   }

   /*
	* Header/footer rows are outside .col-full entirely (separate markup,
	* not affected by the col-full reset above), kept at their own 32px
	* so the whole page reads consistently top to bottom.
	*/
   .ae-header-row,
   .ae-nav-collapse-inner,
   .ae-footer-topbar,
   .ae-footer-columns,
   .ae-footer-seo-inner {
	   padding-right: 32px !important;
	   padding-left: 32px !important;
	   box-sizing: border-box;
   }

   /* ---- Header: title (right) + toolbar (left) --------------------------- */

   .ae-shop-header {
	   display: flex;
	   align-items: center;
	   justify-content: space-between;
	   flex-wrap: wrap;
	   gap: 16px;
	   margin: 16px 32px 0 0;
	   padding: 0 32px;
   }

   .ae-shop-title {
	   font-size: 22px;
	   font-weight: 700;
	   margin: 0;
   }

   .ae-shop-toolbar {
	   display: flex;
	   align-items: center;
	   gap: 16px;
	   flex-wrap: wrap;
   }

   .ae-shop-control-form {
		position: relative;
		display: flex;
		align-items: center;
		width: fit-content;
		gap: 4px;
		padding: 4px;
		border-bottom: 2px solid #eee;
	}

   .ae-shop-control-label {
	   font-size: 14px;
	   font-weight: 500;
	   color: #111;
	   white-space: nowrap;
   }

   .ae-shop-control-select {
	   appearance: none;
	   -webkit-appearance: none;
	   -moz-appearance: none;
	   border: none;
	   background: transparent;
	   padding: 0;
	   margin: 0;
	   font-size: 14px;
	   font-weight: bold;
	   font-family: inherit;
	   color: #111;
	   cursor: pointer;
   }

   .ae-shop-control-select:focus {
	   outline: none;
   }

   /* ---- Layout: sidebar (right) + main grid -------------------------------- */

   .ae-shop-layout {
	   display: flex;
	   align-items: flex-start;
	   gap: 28px;
	   padding: 0 32px !important;
   }

   .ae-shop-sidebar {
	   width: 260px;
	   flex-shrink: 0;
   }

   .ae-shop-main {
	   flex: 1;
	   min-width: 0;
   }

   .ae-filter-widget {
	   border: 1px solid #eee;
	   border-radius: 12px;
	   padding: 16px;
	   margin-bottom: 16px;
   }

   .ae-filter-widget-title {
	   font-size: 14px;
	   font-weight: 700;
	   margin: 0 0 12px;
   }

   .ae-filter-widget ul {
	   list-style: none;
	   margin: 0;
	   padding: 0;
   }

   .ae-filter-widget li {
	   margin-bottom: 8px;
	   font-size: 13px;
   }

   .ae-shop-filter-toggle {
	   display: none;
   }

   /* ---- Product grid -------------------------------------------------------- */

   /* WooCommerce's own core CSS adds a ::before/::after clearfix hack to
	  ul.products for its old float-based layout. Once the list is switched
	  to display: grid (above), that pseudo-element stops being an invisible
	  clearfix and becomes a real grid item — silently eating one cell and
	  shifting every product after it over by one slot. Removed here since
	  Grid doesn't need a clearfix at all. */
	  .woocommerce ul.products::before,
	  .woocommerce ul.products::after,
	  .woocommerce-page ul.products::before,
	  .woocommerce-page ul.products::after {
		  display: none !important;
		  content: none !important;
	  }

   .ae-shop-main ul.products {
	   display: grid;
	   grid-template-columns: repeat(4, 1fr);
	   gap: 20px;
	   list-style: none;
	   margin: 0;
	   padding: 0;
   }

   .ae-shop-main ul.products.columns-2 {
	   grid-template-columns: repeat(2, 1fr);
   }

   .ae-shop-main ul.products.columns-3 {
	   grid-template-columns: repeat(3, 1fr);
   }

   .ae-shop-main ul.products.columns-4 {
	   grid-template-columns: repeat(4, 1fr);
   }

   .ae-shop-main ul.products.columns-5 {
	   grid-template-columns: repeat(5, 1fr);
   }

   /* ---- Product card ---------------------------------------------------- */

   .ae-product-card {
	   border: 1px solid #eee;
	   border-radius: 12px;
	   padding: 12px;
	   background: #fff;
	   list-style: none;
	   transition: box-shadow .2s ease, transform .2s ease;
   }

   .ae-product-card:hover {
	   box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
	   transform: translateY(-2px);
   }

   .ae-product-card-link {
	   display: block;
	   color: inherit;
	   text-decoration: none;
   }

   .ae-product-card-image-wrap {
	   position: relative;
	   overflow: hidden;
	   border-radius: 10px;
	   background: #fafafa;
	   padding: 6px;
	   box-sizing: border-box;
   }

   .ae-product-card-image-wrap img {
	   width: 100%;
	   height: auto;
	   display: block;
	   border-radius: 8px;
	   transition: transform .3s ease;
   }

   .ae-product-card:hover .ae-product-card-image-wrap img {
	   transform: scale(1.04);
   }

   .ae-product-card-badge {
	   position: absolute;
	   top: 8px;
	   inset-inline-start: 8px;
	   background: #e74c3c;
	   color: #fff;
	   font-size: 11px;
	   padding: 2px 8px;
	   border-radius: 20px;
   }

   .ae-product-card-title {
	   font-size: 14px;
	   margin: 16px 0 12px;
	   padding: 0 6px;
	   line-height: 1.5;
	   font-weight: 500;
	   color: #222;
	   display: -webkit-box;
	   -webkit-line-clamp: 2;
	   -webkit-box-orient: vertical;
	   overflow: hidden;
	   box-sizing: border-box;
	   min-height: calc(2 * 1.5em);
   }

   .ae-product-card-price {
	   display: block;
	   text-align: center;
	   font-size: 14px;
	   font-weight: 700;
	   color: #000;
   }

   /* The "از" ("from") prefix on variable-product price ranges already has
	  its own dedicated class — hiding it here is enough, no PHP change
	  needed since the markup itself isn't going anywhere. */
   .ae-price-from {
	   display: none;
   }

   /* Unified "view more" button — replaces add-to-cart/select-options on
	  every product card site-wide (see the functions.php hook change). */
   .ae-view-more-btn {
	   display: block;
	   width: 100%;
	   margin-top: 10px;
	   padding: 10px;
	   text-align: center;
	   background: #f0f0f0;
	   color: #333;
	   font-size: 13px;
	   font-weight: 600;
	   border-radius: 0 0 8px 8px;
	   text-decoration: none;
	   box-sizing: border-box;
	   transition: background .15s ease, color .15s ease;
   }

   .ae-view-more-btn:hover {
	   background: #e2e2e2;
	   color: #111;
   }

   /* ---- Responsive ---------------------------------------------------------- */

   @media (max-width: 992px) {
	   .ae-shop-main ul.products {
		   grid-template-columns: repeat(2, 1fr) !important;
	   }
   }

   @media (max-width: 768px) {
	   .ae-shop-layout {
		   flex-direction: column;
	   }

	   .ae-shop-filter-toggle {
		   display: inline-flex;
		   align-items: center;
		   gap: 6px;
		   border: 1px solid #eee;
		   border-radius: 8px;
		   padding: 8px 14px;
		   background: #fff;
		   margin-bottom: 16px;
		   cursor: pointer;
		   font-size: 13px;
	   }

	   .ae-shop-sidebar {
		   width: 100%;
		   display: none;
	   }

	   .ae-shop-sidebar.is-open {
		   display: block;
	   }
   }

   @media (max-width: 576px) {

	   .ae-shop-main ul.products,
	   .woocommerce ul.products,
	   .woocommerce-page ul.products {
		   grid-template-columns: repeat(2, 1fr) !important;
		   gap: 12px !important;
	   }

	   .ae-product-card {
		   padding: 8px;
	   }

	   .ae-shop-header {
		   flex-direction: column;
		   align-items: flex-start;
	   }

	   .ae-shop-page,
	   .ae-header-row,
	   .ae-nav-collapse-inner,
	   .ae-footer-topbar,
	   .ae-footer-columns,
	   .ae-footer-seo-inner {
		   padding-right: 16px !important;
		   padding-left: 16px !important;
	   }
   }


   /* ==========================================================================
	  WooCommerce Blocks "Filter by Price" — cone/funnel decorative shape
	  sitting above the native range-input track. Purely visual: dragging,
	  values, and the actual filtering logic (WooCommerce's own --low/--high
	  custom properties) are completely untouched.

	  Narrow end = LOW price, wide end = HIGH price, as set up below. If it
	  renders backwards on your site, flip it by swapping the two coordinate
	  groups in the clip-path line marked below.
	  ========================================================================== */

	  .wc-block-product-filter-price-slider__range {
	   position: relative;
	   padding-top: 22px;
	   /* This is the color that actually powers the filled portion of the
		  native track — WooCommerce's own range-bar gradient reads from this
		  variable, so setting it here recolors the real line, not a fake one. */
	   --wc-product-filter-price-slider: #D4AF37;
   }

   .wc-block-product-filter-price-slider__range .range-bar::after {
	   content: "";
	   position: absolute;
	   left: 0;
	   right: 0;
	   bottom: 100%;
	   margin-bottom: 4px;
	   height: 20px;
	   background: linear-gradient(90deg, #f5dd8f, #D4AF37);
	   /* Swap "0% 100%, 100% 0%" for "100% 100%, 0% 0%" here to flip which
		  side is narrow vs wide, if it comes out backwards on your site. */
		  clip-path: polygon(100% 100%, 0% 0%, 0% 100%);
	   pointer-events: none;
   }

   /* Optional: match the slider handles to the site's accent color instead
	  of WooCommerce's default black/white. Safe to delete this part if you
	  want to keep the default look. */
   .wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb {
	   border-color: var(--ae-primary, #0E4650) !important;
   }
   .wc-block-product-filter-price-slider__range input[type="range"]::-moz-range-thumb {
	   border-color: var(--ae-primary, #0E4650) !important;
   }


   /* Golden stars for the WooCommerce Blocks "Rating" filter widget.
	  Its stars are inline SVGs using fill="currentColor", so setting the
	  CSS color property here — not fill or ::before — is what colors them. */
	  .wc-block-product-filter-checkbox-list__stars,
	  .wc-block-product-filter-checkbox-list__stars-svg {
		  color: #D4AF37 !important;
	  }

   .wc-block-product-filter-removable-chips__item{
	   border-color: #eee !important;
	   border-radius: 8px !important;
   }

   /* Price filter's two text inputs — stack them full-width under the
	  slider instead of side-by-side, and label them "از" / "تا". These
	  labels are added via CSS ::before (no HTML/JS needed) since the
	  block's markup has no visible label text of its own to edit. */

	  .wc-block-product-filter-price-slider__content {
	   grid-template-areas:
		   "price-slider price-slider price-slider"
		   "left-input left-input left-input"
		   "right-input right-input right-input" !important;
	   grid-template-columns: 1fr !important;
	   row-gap: 10px;
   }

   .wc-block-product-filter-price-slider__left,
   .wc-block-product-filter-price-slider__right {
	   display: flex;
	   align-items: center;
	   gap: 8px;
	   width: 100%;
   }

   .wc-block-product-filter-price-slider__left::before {
	   content: "از";
	   font-size: 13px;
	   font-weight: 600;
	   white-space: nowrap;
   }

   .wc-block-product-filter-price-slider__right::before {
	   content: "تا";
	   font-size: 13px;
	   font-weight: 600;
	   white-space: nowrap;
   }

   .wc-block-product-filter-price-slider .text {
	   flex: 1;
   }

   .wc-block-product-filter-price-slider .text input[type="text"] {
	   border-color: #eee !important;
	   border-radius: 8px !important;
	   width: 100% !important;
	   max-width: none !important;
	   box-sizing: border-box;
   }

   /* Divider between filter blocks in the shop sidebar */
   .wp-block-woocommerce-product-filter-price,
   .wp-block-woocommerce-product-filter-rating,
   .wp-block-woocommerce-product-filter-attribute,
   .wp-block-woocommerce-product-filter-taxonomy {
	   border-bottom: 1px solid #eee;
	   padding-bottom: 20px;
	   margin-bottom: 20px;
   }

   /* "نمایش X مورد دیگر" show-more button in filter checkbox lists */
   .wc-block-product-filter-checkbox-list__show-more-button {
	   border: 1px solid #eee !important;
	   border-radius: 8px !important;
	   width: 100% !important;
	   max-width: none !important;
	   display: block;
	   padding: 8px 14px;
	   background: #fff;
	   font-family: inherit;
	   font-size: 13px;
	   color: var(--ae-ink, #211D18);
	   cursor: pointer;
	   box-sizing: border-box;
	   transition: background 0.15s ease;
	   text-decoration: none;
   }

   .wc-block-product-filter-checkbox-list__show-more-button:hover {
	   background: #f5f5f5;
   }


   .page-numbers {
		border: 1px solid #eee !important;
		border-radius: 8px !important;
		margin: 32px !important;

	}

	.page-numbers-child {
		border-radius: 8px !important;
		border: none !important;

	}

	.woocommerce nav.woocommerce-pagination ul li span.current {
		background: none !important;
		border: none !important;
		color: #D4AF37 !important;
	}

	.woocommerce nav.woocommerce-pagination ul li {
		border: none !important;
	}

	.woocommerce nav.woocommerce-pagination ul li a{
		color: black !important;
	}


	.term-description {
		margin: 0 0 12px;
		font-size: 13.5px;
		line-height: 1.9;
		text-align: justify;
		color: var(--ae-ink-soft, #5C574D);
	}


	/* ==========================================================================
	Cart page (WooCommerce Blocks "Cart" block)
	========================================================================== */

	.entry-content {
		margin: 24px auto;
		padding: 0 32px;
		box-sizing: border-box;
	}

	/* Two-column layout: products box + checkout box side by side */
	.wp-block-woocommerce-filled-cart-block {
		display: flex;
		align-items: flex-start;
		gap: 24px;
		flex-wrap: wrap;
	}

	.wp-block-woocommerce-cart-items-block {
		flex: 1 1 480px;
		min-width: 0;
		border: 1px solid var(--ae-border, #eee);
		border-radius: var(--ae-radius-md, 12px);
		padding: 20px;
		box-sizing: border-box;
		background: var(--ae-surface, #fff);
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	}

	.wp-block-woocommerce-cart-totals-block {
		flex: 0 0 340px;
		border: 1px solid var(--ae-border, #eee);
		border-radius: var(--ae-radius-md, 12px);
		padding: 20px;
		box-sizing: border-box;
		background: #fafafa;
		position: sticky;
		top: calc(var(--site-header-height, 96px) + 10px);
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	}

	@media (max-width: 782px) {
		.wp-block-woocommerce-cart-totals-block {
			flex: 1 1 100%;
			position: static;
		}
	}

	/* ---- Product rows inside the products box ---- */

	.wc-block-cart-items__header,
	.wc-block-cart-items__row {
		border-bottom: 1px solid var(--ae-border, #eee);
		padding-bottom: 16px;
		margin-bottom: 16px;
	}

	.wc-block-cart-items__row:last-child {
		border-bottom: none;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.wc-block-components-product-image img {
		border-radius: 8px;
	}

	.wc-block-components-product-name {
		font-weight: 600;
		font-size: 14px;
		color: var(--ae-ink, #211D18);
	}

	.wc-block-components-order-summary-item__description {
		margin-left: 20px;
		text-align: justify;
	}

	.wc-block-components-product-details,
	.wc-block-components-product-price,
	.wc-block-cart-item__total-price-and-sale-badge-wrapper {
		font-weight: 600;
		font-size: 14px !important;
	}

	.wc-block-components-product-price {
		margin-top: 10px;
	}

	.wc-block-components-quantity-selector {
		border: 1px solid var(--ae-border, #eee);
		border-radius: 10px;
		overflow: hidden;
	}

	.wc-block-components-quantity-selector__button {
		background: #fafafa;
		color: #555;
	}

	.wc-block-cart-item__remove-link {
		color: #c62828;
		font-size: 13px;
	}

	.wc-block-cart-item__quantity {
		margin-top: 10px;
	}

	.wc-block-components-product-badge {
		background-color: #f0f9f0;
		border-radius: 4px;
	}

	/* ---- Order summary / checkout box ---- */

	.wc-block-components-totals-wrapper {
		border-top: 1px solid var(--ae-border, #eee);
	}

	.wc-block-components-totals-wrapper:first-child {
		border-top: none;
		margin-top: 0;
	}

	.wc-block-components-totals-item__label {
		font-size: 13px !important;
		color: var(--ae-ink-soft, #5C574D) !important;
		font-weight: 400 !important;
	}

	.wc-block-components-totals-item__value {
		font-weight: 700 !important;
		color: var(--ae-ink, #211D18) !important;
	}

	.wc-block-components-totals-item--full-width .wc-block-components-totals-item__value,
	.wc-block-cart__totals-title {
		font-size: 16px !important;
	}

	.wc-block-cart__totals-title {
		padding: 0 0 20px 0 !important;
	}

	.wc-block-components-totals-coupon input[type="text"] {
		border: 1px solid var(--ae-border, #eee);
		border-radius: 8px;
		padding: 8px 12px;
	}

	.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button,
	.wp-block-woocommerce-proceed-to-checkout-block a.wc-block-cart__submit-button {
		display: block;
		width: 100%;
		text-align: center;
		background: #e02020 !important;
		color: #fff !important;
		font-weight: 700;
		font-size: 15px;
		padding: 14px !important;
		border-radius: 10px !important;
		margin-top: 12px;
	}

	.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button:hover {
		background: #c81e1e !important;
	}

	.wc-block-components-totals-coupon__button {
		border-radius: 8px;
		margin-top: 10px;
	}

	.wc-block-components-totals-coupon__form {
		display: block;
	}
	.wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
		margin-top: 10px;
	}

	.wc-block-components-button__text {
		opacity: 0.9 !important;
	}

	/* ==========================================================================
	Discount code landing page
	========================================================================== */

	.ae-discount-landing-inner {
		max-width: 640px;
		margin: 0 auto;
		padding: 48px 24px;
		text-align: center;
	}

	.ae-discount-landing-inner h1 {
		font-size: 24px;
		font-weight: 700;
		margin-bottom: 16px;
	}

	.ae-discount-landing-inner p {
		font-size: 14px;
		line-height: 2;
		color: var(--ae-ink-soft, #5C574D);
		margin-bottom: 24px;
	}

	.ae-discount-code-box {
		background: #fafafa;
		border: 2px dashed var(--ae-primary, #0E4650);
		border-radius: 12px;
		padding: 24px;
		margin: 32px 0;
	}

	.ae-discount-code-label {
		display: block;
		font-size: 13px;
		color: var(--ae-ink-soft, #5C574D);
		margin-bottom: 10px;
	}

	.ae-discount-code-row {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
		flex-wrap: wrap;
	}

	#ae-discount-code-text {
		font-size: 28px;
		font-weight: 800;
		letter-spacing: 2px;
		color: var(--ae-primary, #0E4650);
	}

	.ae-discount-copy-btn {
		background: var(--ae-primary, #0E4650);
		color: #fff;
		border: none;
		border-radius: 8px;
		padding: 10px 20px;
		font-size: 13px;
		font-weight: 600;
		cursor: pointer;
	}

	.ae-discount-copy-btn:hover {
		background: var(--ae-primary-dark, #0A3339);
	}

	.ae-discount-copied-msg {
		display: block;
		margin-top: 10px;
		color: #2e7d32;
		font-size: 13px;
		font-weight: 600;
	}

	.ae-discount-shop-btn {
		display: inline-block;
		background: #e02020;
		color: #fff;
		font-weight: 700;
		font-size: 15px;
		padding: 14px 36px;
		border-radius: 10px;
		text-decoration: none;
	}

	.ae-discount-shop-btn:hover {
		background: #c81e1e;
		color: #fff;
	}


	/* ==========================================================================
	Empty cart — friendlier layout instead of WooCommerce's bare default
	========================================================================== */

	.wp-block-woocommerce-empty-cart-block {
		text-align: center;
		padding: 48px 20px 24px;
	}

	.wc-block-cart__empty-cart__title {
		font-size: 20px;
		font-weight: 700;
		color: var(--ae-ink, #211D18);
		margin-bottom: 8px;
	}

	.wp-block-woocommerce-empty-cart-block .wp-block-separator {
		max-width: 120px;
		margin: 24px auto;
		border-top: 2px dotted var(--ae-border, #eee);
	}

	.wp-block-woocommerce-empty-cart-block h2.wp-block-heading:not(.wc-block-cart__empty-cart__title) {
		font-size: 16px;
		font-weight: 700;
		margin-bottom: 20px;
		color: var(--ae-ink, #211D18);
	}

	/* ==========================================================================
	WooCommerce Blocks ships its own inline <style> for product grids (e.g.
	cross-sell/upsell grids shown here and on the cart page) with equal/higher
	specificity than a plain theme stylesheet rule — same issue the shop-page
	grid fix above deals with. !important is needed on every layout-critical
	property here for the same reason it was needed there. This one block now
	covers every ".wc-block-grid__*" use on the site — an earlier, separate
	copy of these same rules (without !important, so it never actually won
	against WooCommerce's own styles) has been folded in here instead of
	kept as dead weight.
	========================================================================== */

	.wc-block-grid__products {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr) !important;
		gap: 20px !important;
		list-style: none !important;
		margin: 24px 0 0 !important;
		padding: 0 !important;
		text-align: right;
	}

	@media (max-width: 782px) {
		.wc-block-grid__products {
			grid-template-columns: repeat(2, 1fr) !important;
		}
	}

	.wc-block-grid__product {
		max-width: 100% !important;
		width: auto !important;
		border: 1px solid #eee !important;
		border-radius: 12px !important;
		padding: 12px !important;
		background: #fff !important;
		transition: box-shadow .2s ease, transform .2s ease;
	}

	.wc-block-grid__product:hover {
		box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
		transform: translateY(-2px);
	}

	.wc-block-grid__product-link {
		display: block !important;
		color: inherit !important;
		text-decoration: none !important;
	}

	.wc-block-grid__product-image {
		position: relative;
		overflow: hidden;
		border-radius: 10px !important;
		background: #fafafa !important;
		padding: 6px !important;
		box-sizing: border-box;
		width: 100% !important;
	}

	.wc-block-grid__product-image img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		display: block !important;
		margin: 0 !important;
		border-radius: 8px !important;
		transition: transform .3s ease;
	}

	.wc-block-grid__product:hover .wc-block-grid__product-image img {
		transform: scale(1.04);
	}

	.wc-block-grid__product-title {
		font-size: 14px !important;
		margin: 16px 0 12px !important;
		padding: 0 6px !important;
		line-height: 1.5 !important;
		font-weight: 500 !important;
		color: #222 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		box-sizing: border-box;
		min-height: calc(2 * 1.5em);
	}

	.wc-block-grid__product-price {
		display: block !important;
		text-align: center !important;
		font-size: 14px !important;
		font-weight: 700 !important;
		color: #000 !important;
	}

	.wc-block-grid__product-add-to-cart {
		width: 100% !important;
		margin-top: 10px !important;
	}

	.wc-block-grid__product-add-to-cart .wp-block-button__link {
		display: block !important;
		width: 100% !important;
		padding: 10px !important;
		text-align: center !important;
		background: #f0f0f0 !important;
		color: #333 !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		border-radius: 8px !important;
		text-decoration: none !important;
		box-sizing: border-box !important;
		transition: background .15s ease, color .15s ease;
	}

	.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
		background: #e2e2e2 !important;
		color: #111 !important;
	}

	/* ==========================================================================
	Checkout page (WooCommerce Blocks "Checkout" block) — same two-box
	pattern as the cart page: fields box + order summary box, bordered
	and rounded, side by side.
	========================================================================== */

	.wp-block-woocommerce-checkout {
		margin: 24px auto !important;
		box-sizing: border-box !important;
		display: flex !important;
		align-items: flex-start !important;
		flex-wrap: wrap !important;
	}

	.wp-block-woocommerce-checkout-fields-block {
		flex: 1 1 480px !important;
		min-width: 0 !important;
		border: 1px solid var(--ae-border, #eee) !important;
		border-radius: var(--ae-radius-md, 12px) !important;
		padding: 20px !important;
		box-sizing: border-box !important;
		background: var(--ae-surface, #fff) !important;
	}

	.wp-block-woocommerce-checkout-totals-block {
		border: 1px solid var(--ae-border, #eee) !important;
		border-radius: var(--ae-radius-md, 12px) !important;
		padding: 20px !important;
		box-sizing: border-box !important;
		background: #fafafa !important;
		position: sticky;
		top: calc(var(--site-header-height, 96px) + 10px);
	}

	@media (max-width: 782px) {
		.wp-block-woocommerce-checkout-totals-block {
			flex: 1 1 100%;
			position: static;
		}
	}

	/* ---- Each step (Contact info, Shipping address, Payment, etc.) ---- */

	.wc-block-components-checkout-step {
		border-bottom: 1px solid var(--ae-border, #eee) !important;
		padding-bottom: 20px !important;
		margin-bottom: 20px !important;
	}

	.wc-block-components-checkout-step:last-child {
		border-bottom: none !important;
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}

	.wc-block-components-checkout-step__title {
		font-size: 15px !important;
		font-weight: 700 !important;
		color: var(--ae-ink, #211D18) !important;
	}

	.wc-block-components-checkout-step__description {
		font-size: 13px !important;
		color: var(--ae-ink-soft, #5C574D) !important;
	}

	/* ---- Text inputs + selects: style ONLY the real controls, never the wrappers ---- */

	.wc-block-components-text-input input[type="text"],
	.wc-block-components-text-input input[type="email"],
	.wc-block-components-text-input input[type="tel"],
	.wc-block-components-text-input input[type="number"],
	.wc-block-components-address-form input[type="text"],
	.wc-blocks-components-select__select,
	.wc-block-components-combobox-control input {
		border: 1px solid var(--ae-border, #eee) !important;
		border-radius: 10px !important;
		padding: 0 12px !important;      /* vertical size comes from height, not padding */
		height: 48px !important;         /* same height for every field */
		line-height: 48px;
		font-family: inherit !important;
		font-size: 14px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		margin: 0 !important;
		background: #fff !important;
	}

	/* Wrappers: no border, no padding, same spacing */
	.wc-block-components-text-input,
	.wc-block-components-address-form__state,
	.wc-block-components-state-input {
		border: none !important;
		padding: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	.wc-block-components-address-form__state {
		margin-top: 16px;
	}

	/* Disable WooCommerce Blocks' floating-label animation (it was
   overlapping typed text instead of shrinking away) and replace it with
   a plain static label above each field — consistent with every other
   form on the site. !important is needed because WooCommerce sets the
   floating position/transform via inline styles through its own JS. */

	.wc-block-components-text-input{
		display: flex !important;
		flex-direction: column !important;
		margin-bottom: 16px;
	}

	.wc-block-components-text-input label,
	.wc-blocks-components-select__label {
		position: static !important;
		transform: none !important;
		order: -1; /* always shown first, above the input, regardless of source order */
		font-size: 13px !important;
		color: var(--ae-ink-soft, #5C574D) !important;
		margin-bottom: 6px !important;
		pointer-events: none;
	}

	.wc-block-components-textarea {
		border: 1px solid var(--ae-border, #eee) !important;
		border-radius: 10px !important;
		padding: 12px !important;
		font-family: inherit !important;
		font-size: 14px !important;
		box-sizing: border-box !important;
		width: 100% !important;
		min-height: 90px;
		resize: vertical;
	}

	.wc-block-components-sidebar-layout {
		gap: 24px !important;
		margin: 0 !important;
		width: 100%;
	}

	.wp-block-woocommerce-checkout-order-summary-fee-block:empty,
	.wp-block-woocommerce-checkout-order-summary-discount-block:empty {
		display: none;
	}

	/* اطلاعات تماس in the order detail is removed */
	.wc-block-checkout__contact-fields,
	.wc-block-components-address-form__country {
		display: none !important;
	}

	.wp-block-woocommerce-checkout-order-summary-totals-block {
		padding-top: 20px !important;
	}

	/* Country/state dropdowns use a different component than plain inputs */
	.wc-block-components-combobox-control input,
	.wc-block-components-dropdown-selector__button {
		border: 1px solid var(--ae-border, #eee) !important;
		border-radius: 10px !important;
		padding: 12px !important;
	}

	/* ---- Shipping method / payment method radio options ---- */

	.wc-block-components-radio-control__option {
		border: 1px solid var(--ae-border, #eee) !important;
		border-radius: 10px !important;
		padding: 12px 44px 12px 14px !important;
		margin-bottom: 8px !important;
	}

	.wc-block-components-radio-control__option:last-child {
		margin-bottom: 0 !important;
	}

	.wc-block-components-radio-control__input:checked + .wc-block-components-radio-control__label-group,
	.wc-block-components-radio-control__option--checked {
		border-color: var(--ae-primary, #0E4650) !important;
		background: #f6faf9 !important;
	}

	.wc-block-components-radio-control__input {
		accent-color: var(--ae-primary, #0E4650) !important;
		top: unset !important;
		transform: unset !important;
	}


	.wc-block-components-radio-control--highlight-checked:after {
		border: none;
	}

	.wc-block-components-radio-control .wc-block-components-radio-control__option {
		margin: 10px !important;
	}


	/* ---- Terms & conditions checkbox ---- */

	.wc-block-checkout__terms {
		font-size: 13px !important;
		margin-top: 16px !important;
	}

	.wc-block-components-checkbox input[type="checkbox"] {
		accent-color: var(--ae-primary, #0E4650) !important;
	}

	/* ---- Place order button ---- */

	.wc-block-components-checkout-place-order-button {
		display: block;
		width: 100%;
		text-align: center;
		background: #e02020 !important;
		color: #fff !important;
		font-weight: 700;
		font-size: 15px;
		padding: 14px !important;
		border-radius: 10px !important;
	}

	.wc-block-components-checkout-place-order-button:hover {
		background: #c81e1e !important;
	}

	.wc-block-components-order-summary-item {
		border-bottom: 1px solid #eee;
		margin-bottom: 20px;
	}

	/* ---- Order summary box on checkout — same styling as the cart's totals box ---- */

	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper {
		border-top: 1px solid var(--ae-border, #eee) !important;
	}

	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper:first-child {
		border-top: none !important;
		margin-top: 0 !important;
	}

	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__label {
		font-size: 13px !important;
		color: var(--ae-ink-soft, #5C574D) !important;
	}

	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item__value {
		font-weight: 700 !important;
		color: var(--ae-ink, #211D18) !important;
	}

	.wc-block-components-text-input,
	.wc-blocks-components-select__container {
		display: flex !important;
		flex-direction: column !important;
		position: relative !important;
	}

	.wc-blocks-components-select {
		margin: 0 !important;
	}

	/* Arrow: the label is now static above the select, so anchor the arrow to the bottom */
	.wc-blocks-components-select__expand {
		top: auto !important;
		bottom: 12px !important;
		margin: 0 !important;
		transform: none !important;
		pointer-events: none;
	}

	.wp-block-woocommerce-checkout-order-summary-block span{
		font-size: 13px !important;
		font-weight: 600;
	}


	/* =====================================================================
   Header & Footer — brand color pass (teal background, amber accents)
   ===================================================================== */

/* ---- Header ---- */

.ae-site-header{
	background: var(--ae-primary);
	border-bottom: none;
}

.ae-logo,
.ae-logo span{
	color: var(--ae-on-primary);
}
/* Outer path would vanish against a teal header, so it flips to a
   light tone; the inner path keeps the amber accent. */
.ae-logo svg path:first-child{ fill: var(--ae-on-primary); }
.ae-logo svg path:last-child{ fill: var(--ae-accent); }

.ae-icon-btn,
.ae-icon-btn .ae-label{
	color: var(--ae-on-primary);
}
.ae-icon-btn .ae-label small{
	color: var(--ae-on-primary-soft);
}
.ae-icon-btn svg{
	stroke: var(--ae-on-primary);
}
.ae-icon-btn:hover{
	background: var(--ae-on-primary-hover);
}
.ae-badge{
	border-color: var(--ae-primary);
}

.ae-tile-divider{
	background: var(--ae-on-primary-border);
}

.ae-cat-trigger{
	color: var(--ae-on-primary);
}
.ae-cat-trigger:hover{
	color: var(--ae-accent);
}

.ae-nav-links a{
	color: var(--ae-on-primary);
}
.ae-nav-links a:hover{
	color: var(--ae-accent);
}

.ae-hamburger{
	color: var(--ae-on-primary);
}

/* The dropdown mega-menu and the mobile nav panel are left on a white
   surface on purpose — they float over the page as separate cards,
   and staying light keeps a long category list easy to read. */

/* ---- Footer ---- */

.ae-site-footer{
	background: var(--ae-primary);
	border-top: none;
	color: var(--ae-on-primary-soft);
}

.ae-back-to-top{
	background: var(--ae-on-primary-hover);
	border-color: var(--ae-on-primary-border);
	color: var(--ae-on-primary);
}
.ae-back-to-top:hover{
	background: rgba(246, 244, 239, 0.18);
}

.ae-footer-logo{
	color: var(--ae-on-primary);
}

.ae-footer-support,
.ae-footer-trust-strip,
.ae-site-footer .site-info,
.ae-footer-seo{
	border-color: var(--ae-on-primary-border);
}

.ae-footer-trust-item{
	color: var(--ae-on-primary-soft);
}
.ae-footer-trust-icon{
	color: var(--ae-accent);
}

.ae-footer-col h3,
.ae-footer-seo-heading,
.ae-footer-seo-text h3{
	color: var(--ae-on-primary);
}
.ae-footer-col-list a{
	color: var(--ae-on-primary-soft);
}
.ae-footer-col-list a:hover{
	color: var(--ae-accent);
}

.ae-footer-seo-text p{
	color: var(--ae-on-primary-soft);
}
.ae-footer-seo-toggle{
	color: var(--ae-accent);
}

.ae-brand-category-list{
	color: var(--ae-on-primary-soft);
}
.ae-brand-category-list a,
.ae-brand-category-list p{
	color: var(--ae-accent);
}

/* Enamad/trust badge tiles keep their white card background on
   purpose — those are official certification images meant for a
   light tile, and that reads as an intentional "stamp" on dark. */




/* =====================================================================
   My Account pages (WooCommerce defaults — dashboard, orders, addresses,
   account details). Classes below are WooCommerce's own, unchanged.
   ===================================================================== */

   .woocommerce-account .entry-content > h1 {
	max-width: 1280px;
	margin: 32px auto 0;
	padding: 0 32px;
	font-size: 24px;
	font-weight: 800;
	box-sizing: border-box;
}

.woocommerce-account .woocommerce {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 32px 48px;
	box-sizing: border-box;
}

@media (max-width: 860px) {
	.woocommerce-account .entry-content > h1 { padding: 0 16px; }
	.woocommerce-account .woocommerce { flex-direction: column; padding: 20px 16px 40px; }
}

/* ---- Sidebar nav ---- */

.woocommerce-MyAccount-navigation {
	background: var(--ae-surface, #fff);
	border: 1px solid var(--ae-border, #eee);
	border-radius: var(--ae-radius-md, 12px);
	padding: 8px;
	position: sticky;
	top: calc(var(--site-header-height, 96px) + 10px);
	flex: 0 0 240px;
	width: 240px;
}
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-MyAccount-navigation-link {
	margin-bottom: 2px;
}
.woocommerce-MyAccount-navigation-link a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--ae-radius-sm, 8px);
	color: var(--ae-ink, #211D18);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.woocommerce-MyAccount-navigation-link a:hover {
	background: var(--ae-bg, #F6F4EF);
}
.woocommerce-MyAccount-navigation-link.is-active a {
	background: var(--ae-primary, #0E4650);
	color: #fff;
}
.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #c62828;
}
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fdecec;
}

/* ---- Content area ---- */

.woocommerce-MyAccount-content {
	font-size: 14px;
	line-height: 2;
	color: var(--ae-ink, #211D18);
	min-width: 0;
	flex: 1 1 auto;
}
.woocommerce-MyAccount-content p {
	margin: 0 0 14px;
}
.woocommerce-MyAccount-content a {
	color: var(--ae-primary-dark, #0A3339);
	font-weight: 600;
}
.woocommerce-MyAccount-content a:hover {
	color: var(--ae-accent-dark, #A8611E);
}

/* ---- Notices (e.g. "confirm your email", error/success banners) ---- */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	list-style: none;
	border: 1px solid var(--ae-border, #eee);
	border-radius: var(--ae-radius-md, 12px);
	padding: 14px 50px;
	margin: 0 0 20px;
	font-size: 13px;
}

.woocommerce-message::before {
    top: 1.5em !important;
    right: 1.5em !important;
}

.woocommerce-notices-wrapper .woocommerce-error {
	background: #fdecec;
	border-color: #f3c6c6;
	color: #7a2020;
}

/* ---- Buttons (confirm email, browse shop, add address, save changes…) ---- */

.woocommerce-account .woocommerce-Button,
.woocommerce-account a.button,
.woocommerce-account button.button,
.woocommerce-account input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ae-primary, #0E4650) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 10px 22px !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease;
	margin-top: 10px;
}
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account a.button:hover,
.woocommerce-account button.button:hover,
.woocommerce-account input.button:hover {
	background: var(--ae-primary-dark, #0A3339) !important;
}

/* ---- Orders table ---- */

.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.woocommerce-orders-table thead th {
	text-align: right;
	padding: 10px;
	color: var(--ae-ink-soft, #5C574D);
	font-weight: 600;
	border-bottom: 1px solid var(--ae-border, #eee);
}
.woocommerce-orders-table tbody td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--ae-border, #eee);
}
.woocommerce-orders-table__cell-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
mark.order-status {
	display: inline-block;
	background: var(--ae-bg, #F6F4EF);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ae-ink, #211D18);
}

/* ---- Addresses ---- */

.woocommerce-Addresses {
	display: block;
	gap: 20px;
}
@media (max-width: 680px) {
	.woocommerce-Addresses { grid-template-columns: 1fr; }
}
.woocommerce-Address {
	background: var(--ae-surface, #fff);
	border: 1px solid var(--ae-border, #eee);
	border-radius: var(--ae-radius-md, 12px);
	padding: 18px;
	margin-top: 10px;
	float: none !important;
	width: auto !important;
	flex: 1 1 calc(50% - 10px);
	min-width: 260px;
	box-sizing: border-box;
}
.woocommerce-Address-title {
	justify-content: space-between;
	margin-bottom: 10px;
}
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	font-size: 15px;
	margin: 0;
}
.woocommerce-Address-title .edit {
	font-size: 12px;
	color: var(--ae-primary-dark, #0A3339);
}
.woocommerce-Address address {
	font-size: 13px;
	line-height: 2;
	font-style: normal;
	color: var(--ae-ink-soft, #5C574D);
}
@media (max-width: 680px) {
	.woocommerce-Address {
		flex: 1 1 100%;
	}
}

/* ---- Forms: edit-account and edit-address ---- */

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
	margin-bottom: 16px;
}
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields select {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border: 1px solid var(--ae-border, #eee);
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	box-sizing: border-box;
}
.woocommerce-EditAccountForm fieldset {
	border: 1px solid var(--ae-border, #eee);
	border-radius: 10px;
	padding: 16px;
	margin: 20px 0 0;
}
.woocommerce-EditAccountForm legend {
	font-weight: 700;
	padding: 0 8px;
	font-size: 14px;
}

/* =====================================================================
   My Account — mobile refinements
   ===================================================================== */

   @media (max-width: 860px) {
	/* Nav becomes a horizontal scrollable pill strip instead of a tall
	   stacked card, so it doesn't push content down on small screens. */
	.woocommerce-MyAccount-navigation {
		position: static;
		padding: 8px 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		flex: 0 0 auto;
		width: 100%;
	}
	.woocommerce-MyAccount-navigation::-webkit-scrollbar {
		display: none;
	}
	.woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 6px;
		width: max-content;
	}
	.woocommerce-MyAccount-navigation-link {
		margin-bottom: 0;
	}
	.woocommerce-MyAccount-navigation-link a {
		white-space: nowrap;
		padding: 8px 16px;
	}
}

/* ---- Orders table -> stacked cards on narrow screens ----
   WooCommerce's own order-table template already outputs a data-title
   attribute on every <td> (e.g. data-title="تاریخ") — this is exactly
   what the ::before rule below reads, no markup changes needed. */
@media (max-width: 680px) {
	.woocommerce-orders-table,
	.woocommerce-orders-table thead,
	.woocommerce-orders-table tbody,
	.woocommerce-orders-table tr {
		display: block;
		width: 100%;
	}
	.woocommerce-orders-table thead {
		display: none;
	}
	.woocommerce-orders-table tbody tr {
		border: 1px solid var(--ae-border, #eee);
		border-radius: var(--ae-radius-md, 12px);
		padding: 12px;
		margin-bottom: 12px;
	}
	.woocommerce-orders-table tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 0;
		border-bottom: 1px solid var(--ae-bg, #F6F4EF);
		text-align: left;
	}
	.woocommerce-orders-table tbody td:last-child {
		border-bottom: none;
	}
	.woocommerce-orders-table tbody td::before {
		content: attr(data-title);
		font-weight: 600;
		font-size: 12.5px;
		color: var(--ae-ink-soft, #5C574D);
		flex-shrink: 0;
	}
	.woocommerce-orders-table__cell-order-actions {
		justify-content: flex-start;
	}
}

/* ---- Full-width tap-friendly buttons on phones ---- */
@media (max-width: 480px) {
	.woocommerce-account .woocommerce-Button,
	.woocommerce-account a.button,
	.woocommerce-account button.button,
	.woocommerce-account input.button {
		width: 100%;
	}
	.woocommerce-Addresses {
		gap: 12px;
	}
}


/* ---- "Info" notices outside the notices-wrapper — e.g. orders page's
   "verify your email" and "no orders yet" messages. Same visual language
   as the existing .woocommerce-message/.woocommerce-error boxes. ---- */
   .woocommerce-MyAccount-content > .woocommerce-info {
	display: block;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ae-border, #eee);
	border-radius: var(--ae-radius-md, 12px);
	padding: 14px 18px;
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.8;
	color: var(--ae-ink, #211D18);
}
.woocommerce-MyAccount-content > .woocommerce-info:last-child {
	margin-bottom: 0;
}

.woocommerce-MyAccount-content > .woocommerce-info .button {
	flex-shrink: 0;
}

.woocommerce-MyAccount-content .woocommerce-info::before {
	display: none;
}

/* ---- Edit-account fields: match checkout/order page field styling ---- */
.woocommerce-EditAccountForm .form-row {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}

.woocommerce-EditAccountForm label {
	order: -1;
	font-size: 13px;
	font-weight: 400;
	color: var(--ae-ink-soft, #5C574D);
	margin-bottom: 6px;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
	width: 100%;
	max-width: none;
	height: 48px;
	padding: 0 12px;
	line-height: 48px;
	border: 1px solid var(--ae-border, #eee) !important;
	border-radius: 10px !important;
	font-family: inherit;
	font-size: 14px;
	background: #fff;
	box-sizing: border-box;
}

.woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-EditAccountForm input[type="password"]:focus {
	border-color: var(--ae-primary, #0E4650) !important;
}

/* Field description text under "نام نمایشی" — sits after the input now */
.woocommerce-EditAccountForm #account_display_name_description {
	order: 1;
	display: block;
	font-size: 12px;
	color: var(--ae-ink-soft, #5C574D);
	margin-top: 6px;
}

/* Save button — same red CTA style used on checkout/cart */
.woocommerce-EditAccountForm ~ p .woocommerce-Button,
.woocommerce-EditAccountForm button.woocommerce-Button {
	background: #0a6847 !important;
	border-radius: 10px !important;
	padding: 14px 32px !important;
	font-weight: 700 !important;
}
.woocommerce-EditAccountForm button.woocommerce-Button:hover {
	background: #96bb7c !important;
}


/* ==========================================================================
   Generic static page content (policies, terms, and similar pages) —
   matches the same h1 treatment used on My Account pages, and styles the
   paragraph / bold-as-subheading / blockquote pattern for reuse on any
   future page, instead of hardcoding styles per post ID. (This replaces
   an older per-post-ID rule — ".post-1 h1" through ".post-10 h1" — that
   only covered the first ten pages and, once this generic rule was added,
   was always losing to it anyway on specificity; it's been removed.)
   ========================================================================== */

.page article.type-page > h1 {
	max-width: 1280px;
	margin: 32px auto 0;
	padding: 0 32px;
	font-size: 24px;
	font-weight: 800;
	color: var(--ae-ink, #211D18);
	box-sizing: border-box;
}

/* Body paragraphs */
.page .entry-content p.wp-block-paragraph {
	font-size: 14px;
	line-height: 2;
	color: var(--ae-ink, #211D18);
	margin: 0 0 4px;
	text-align: justify;
}

/* A paragraph that's just a bold line (like "۱. شرایط لغو...") acts as a
   section subheading — styled bigger, colored, with breathing room above it */
.page .entry-content p.wp-block-paragraph > strong:only-child {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--ae-primary-dark, #0A3339);
	margin: 28px 0 8px;
}
.page .entry-content p.wp-block-paragraph:first-child > strong:only-child {
	margin-top: 0;
}

/* Blockquotes — callout box with an accent bar on the reading-start
   (right) side, used here to hold each section's explanatory text */
.page .entry-content blockquote.wp-block-quote {
	background: var(--ae-bg, #F6F4EF);
	border-right: 4px solid var(--ae-primary, #96bb7c);
	border-radius: var(--ae-radius-md, 12px);
	padding: 16px 20px;
	margin: 0 0 8px;
}
.page .entry-content blockquote.wp-block-quote p.wp-block-paragraph {
	font-size: 13.5px;
	line-height: 2;
	color: var(--ae-ink-soft, #5C574D);
	margin: 0;
}
.wp-block-paragraph a {
	color: black;
	text-decoration: none;
}

.ae-slider {
	max-height: none;
}

.custom-logo-link {
	display: flex;
}

.custom-logo-link img {
	max-height: 40px !important;
	width: auto !important;
	height: auto !important;
	max-width: 160px !important;
	display: block;
}

.ae-footer-topbar {
	justify-content: space-between;
}

.ae-footer-topbar img {
	max-height: 60px !important;
}


/* ===== Single post: classy layout ===== */

#primary.site-main{
	margin: 48px auto;
	padding: 0 20px;
}

/* --- Title + meta --- */
article.hentry > h1{
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--ae-ink);
	margin: 0 0 10px;
}

article.hentry > .entry-meta{
	display: none;
}

/* --- Content card --- */
.entry-content{
	background: var(--ae-surface);
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius-md);
	box-shadow: var(--ae-shadow-menu);
	padding: 40px;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	font-size: 16.5px;
	line-height: 2;
	color: var(--ae-ink);
}

.entry-content .wp-block-heading{
	font-weight: 700;
	color: var(--ae-primary);
	margin: 36px 0 16px;
	padding-inline-start: 14px;
	border-inline-start: 4px solid var(--ae-primary);
}

.entry-content h1.wp-block-heading{ font-size: 24px; }
.entry-content h2.wp-block-heading{ font-size: 20px; }

.entry-content .wp-block-paragraph{
	margin: 0 0 18px;
}

.entry-content strong{
	color: var(--ae-primary-dark);
	font-weight: 700;
}

.entry-content .wp-block-list{
	margin: 18px 0 24px;
	padding: 0;
	list-style: none;
}

.entry-content .wp-block-list li{
	position: relative;
	padding-inline-start: 24px;
	margin-bottom: 12px;
}

.entry-content .wp-block-list li::before{
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--ae-primary);
}

/* --- Comments / reply form --- */
#comments.comments-area{
	margin: 40px auto 0;
}

#respond.comment-respond{
	background: var(--ae-surface);
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius-md);
	padding: 32px;
}

#respond #reply-title{
	font-family: 'Vazirmatn', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--ae-ink);
	margin: 0 0 18px;
}

#respond .comment-form-comment textarea{
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	border: 1px solid var(--ae-border);
	border-radius: var(--ae-radius-sm);
	padding: 14px;
	background: var(--ae-bg);
	color: var(--ae-ink);
	resize: vertical;
}

#respond .comment-form-comment textarea:focus{
	outline: none;
	border-color: var(--ae-primary-dark);
}

#respond .form-submit #submit{
	background: var(--ae-primary);
	color: var(--ae-on-primary);
	border: none;
	border-radius: var(--ae-radius-sm);
	padding: 12px 28px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}

#respond .form-submit #submit:hover{
	background: var(--ae-primary-dark);
}

#respond .logged-in-as{
	font-size: 13px;
	color: var(--ae-ink-soft);
	margin-bottom: 18px;
}

@media (max-width: 600px){
	.entry-content{ padding: 24px; }
	article.hentry > h1{ font-size: 26px; }
}

/* ===== wp-block-image: fit the entry-content card ===== */

.entry-content .wp-block-image{
	margin: 28px 0;
}

.entry-content .wp-block-image img{
	display: block;
	width: 80%;
	margin: auto;
	height: auto;
	border-radius: var(--ae-radius-md);
	box-shadow: 0 10px 24px -14px rgba(33, 29, 24, 0.35);
}

.entry-content .wp-block-image figcaption{
	margin-top: 10px;
	text-align: center;
	font-size: 13px;
	font-style: italic;
	color: var(--ae-ink-soft);
}

/* Centered images: don't stretch full card width */
.entry-content .wp-block-image.aligncenter{
	max-width: 480px;
	margin-inline: auto;
}

/* Wide: breaks out of the 820px card padding, not the page */
.entry-content .wp-block-image.alignwide{
	width: calc(100% + 80px);
	margin-inline-start: -40px;
}

/* Full: breaks out of the card entirely */
.entry-content .wp-block-image.alignfull{
	width: calc(100% + 80px);
	margin-inline-start: -40px;
}

.entry-content .wp-block-image.alignfull img{
	border-radius: 0;
}

/* Floated images: text wraps around, so give it breathing room */
.entry-content .wp-block-image.alignleft,
.entry-content .wp-block-image.alignright{
	max-width: 45%;
	margin: 6px 0 18px;
}

.entry-content .wp-block-image.alignleft{
	float: inline-start;
	margin-inline-end: 24px;
}

.entry-content .wp-block-image.alignright{
	float: inline-end;
	margin-inline-start: 24px;
}

@media (max-width: 600px){
	.entry-content .wp-block-image.alignwide,
	.entry-content .wp-block-image.alignfull{
		width: 100%;
		margin-inline-start: 0;
	}
	.entry-content .wp-block-image.alignleft,
	.entry-content .wp-block-image.alignright{
		float: none;
		max-width: 100%;
		margin-inline: 0;
	}
}

/* ==========================================================================
   Cart totals sidebar — move the shipping-mode selector (injected via
   ExperimentalOrderMeta) to sit above the Total row instead of below it.
   WooCommerce renders this card's sections as a flex column, so each
   section is reordered by explicit `order` rather than moving any markup —
   safe against React re-rendering the totals block.
   ========================================================================== */

   .wp-block-woocommerce-cart-order-summary-block {
	display: flex !important;
	flex-direction: column !important;
}

.wp-block-woocommerce-cart-order-summary-heading-block     { order: 0 !important; }
.wp-block-woocommerce-cart-order-summary-coupon-form-block { order: 1 !important; }
.aei-shipping-mode-wrapper                                  { order: 2 !important; }
.wp-block-woocommerce-cart-express-payment-block            { order: 3 !important; }
.wp-block-woocommerce-proceed-to-checkout-block              { order: 4 !important; }
.wp-block-woocommerce-cart-accepted-payment-methods-block    { order: 5 !important; }
.wp-block-woocommerce-cart-order-summary-totals-block       { order: 6 !important; }



.wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
	border-bottom: 1px solid #eee;
}



.wp-block-woocommerce-cart-order-summary-totals-block {
	border-top: 1px solid var(--ae-border);
	padding: 20px 0 20px 0;
}

.wc-block-components-panel__button>.wc-block-components-panel__button-icon {
	top: 0%;
	transform: unset;
}

.wc-block-components-panel__button {
	padding-top: 0;
}

.wc-block-components-panel__button span {
	font-weight: 400 !important;
}

.wp-block-woocommerce-cart-order-summary-shipping-block {
	padding-top: 0;
}

.woocommerce-variation-availability {
	padding-right: 20px;
}

.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: none !important;
	border: 1px solid #eee;
}

label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: none !important;
}

.wp-block-woocommerce-checkout-shipping-method-block .wc-block-components-radio-control__option {
	border-left: none !important;
	border-right: none !important;
}

/* ==========================================================================
   Checkout order-summary sidebar — move the shipping-mode selector above
   the totals. Unlike the cart page, the actual flex container here is
   .wc-block-components-checkout-order-summary__content (one level deeper
   than .wp-block-woocommerce-checkout-order-summary-block itself, which
   only wraps the title + this content div as its two flex items).
   ========================================================================== */

   .wc-block-components-checkout-order-summary__content {
		display: flex !important;
		flex-direction: column !important;
	}

	/* Dissolve the totals-block wrapper (no box, no layout of its own) so its
	children — subtotal, fee, discount, the تیپاکس/shipping-method row —
	become direct flex items here too, instead of one sealed unit we can
	only place as a whole. */
	.wp-block-woocommerce-checkout-order-summary-totals-block {
		display: contents !important;
	}

	.wp-block-woocommerce-checkout-order-summary-cart-items-block  { order: 0 !important; }
	.wp-block-woocommerce-checkout-order-summary-subtotal-block    { order: 1 !important; }
	.wp-block-woocommerce-checkout-order-summary-coupon-form-block { order: 2 !important; }
	.wp-block-woocommerce-checkout-order-summary-fee-block         { order: 3 !important; }
	.wp-block-woocommerce-checkout-order-summary-discount-block    { order: 4 !important; }
	.wc-block-components-totals-wrapper.slot-wrapper               { order: 5 !important; } /* روش ارسال — our ground/air selector */
	.wp-block-woocommerce-checkout-order-summary-shipping-block    { order: 6 !important; } /* تیپاکس */

	/* جمع کل — the grand-total row is the only direct child left with no
	"order-summary" block-specific class of its own, so it's excluded from
	that attribute check below instead of matched by name. */
	.wc-block-components-checkout-order-summary__content > .wc-block-components-totals-wrapper:not(.slot-wrapper):not([class*="order-summary"]) {
		order: 7 !important;
	}

	.wp-block-woocommerce-checkout-order-summary-shipping-block {
		padding-top: 0;
	}

	.wp-block-woocommerce-checkout-order-summary-totals-block .wc-block-components-totals-wrapper {
		padding: 16px 0px;
	}

	.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option:after {
		display: none;
	}

/* ==========================================================================
   "سفارش دریافت شد" (order-received / thank-you) page - this is WooCommerce's
   classic server-rendered template, completely separate from the
   block-based cart/checkout pages, so none of the site's existing card
   styling reaches it at all - it renders with WooCommerce's bare default
   markup (plain list, plain table, no cards). This gives it the same card
   look (white background, rounded border, consistent spacing) used
   elsewhere on the site.
   ========================================================================== */
 
   .woocommerce-order {
	font-family: 'Vazirmatn', Tahoma, sans-serif;
}
 
.woocommerce-order .woocommerce-notice--success {
	background: #eafaf0;
	color: #1e6b3c;
	border: 1px solid #b7e4c7;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 0 0 20px;
	font-weight: 600;
}
 
/* Order overview (order #, date, email, total, payment method) - a clean
   label/value list inside a card, matching the product-page sidebar's
   .ae-brand-category-list pattern rather than WooCommerce's default
   horizontal pill strip. */
.woocommerce-order-overview {
	list-style: none;
	display: block;
	margin: 0 0 24px;
	padding: 4px 20px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
}
 
.woocommerce-order-overview li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	font-size: 14px;
	color: #555;
}
 
.woocommerce-order-overview li:last-child {
	border-bottom: none;
}
 
.woocommerce-order-overview li strong {
	color: #111;
	font-weight: 600;
}
 
/* Order details table */
.woocommerce-order-details {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 0 0 24px;
}
 
.woocommerce-order-details__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 16px;
}
 
.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
}
 
.woocommerce-table--order-details thead th {
	text-align: right;
	font-size: 13px;
	color: #888;
	font-weight: 400;
	padding: 0 0 10px;
	border-bottom: 1px solid #eee;
}
 
.woocommerce-table--order-details tbody td,
.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}
 
.woocommerce-table--order-details tbody .product-name a {
	color: #222;
	text-decoration: none;
}
 
.woocommerce-table--order-details tbody .product-name a:hover {
	text-decoration: underline;
}
 
.woocommerce-table--order-details .product-quantity {
	color: #888;
	font-weight: 400;
}
 
.woocommerce-table--order-details tfoot th {
	text-align: right;
	font-weight: 400;
	color: #555;
}
 
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
	border-bottom: none;
	font-weight: 400;
	color: #111;
	font-size: 14px;
}
 
/* Billing / shipping address columns */
.woocommerce-customer-details .woocommerce-columns--2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
 
@media (max-width: 700px) {
	.woocommerce-customer-details .woocommerce-columns--2 {
		grid-template-columns: 1fr;
	}
}
 
.woocommerce-customer-details .woocommerce-column {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px 24px;
}
 
.woocommerce-customer-details .woocommerce-column__title {
	font-size: 15px;
	font-weight: 400;
	margin: 0 0 12px;
}
 
.woocommerce-customer-details address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.9;
	color: #444;
}
 
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
	margin: 4px 0 0;
	font-size: 14px;
	color: #444;
}

.order_details li {
	border: none;
	border-left: none !important;
}

.order_details li:last-child {
	border-left: none !important;
}

.order_details li strong {
	padding-right: 10px;
}

.shop_table {
	border: 1px solid #eee !important;
}

.woocommerce table.shop_table td {
	border-top: none;
}

.woocommerce table.shop_table tfoot th {
	border-top: none;
	font-weight: 400;
}

.woocommerce table.shop_table tfoot td {
	border-top: none;
	font-weight: 400;
}

.woocommerce .woocommerce-customer-details address{
	border-left-width: 1px !important;
	border-bottom-width: 1px !important;
}

.woocommerce-page .col2-set::before,
.woocommerce-page .col2-set::after {
	display: none;
}

.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2{
	width: 90%;
}

/* ==========================================================================
   Billing/shipping address cards on the order-received page - icons for
   name, address lines, phone and email, all matching. The name/address
   lines are split into per-line <span class="ae-address-line ...">
   elements by aei-shipping-mode.js (plain CSS can't target individual
   lines inside WooCommerce's flat <br>-separated <address> block).
   Icons are simple inline SVGs applied as a mask so they inherit color
   like text, rather than separate <img> tags.
   ========================================================================== */

   .woocommerce-customer-details address {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ae-address-line,
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ae-address-line::before,
.woocommerce-customer-details--phone::before,
.woocommerce-customer-details--email::before {
	content: '';
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	background-color: var(--ae-primary);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

/* Person icon - name line */
.ae-address-line--name::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E");
}

/* Map-pin icon - every other address line (street, city, state, postcode) */
.ae-address-line--line::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7.58 2 4 5.58 4 10c0 5.25 7.14 11.34 7.45 11.6a.85.85 0 0 0 1.1 0C12.86 21.34 20 15.25 20 10c0-4.42-3.58-8-8-8zm0 10.8A2.8 2.8 0 1 1 12 7.2a2.8 2.8 0 0 1 0 5.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7.58 2 4 5.58 4 10c0 5.25 7.14 11.34 7.45 11.6a.85.85 0 0 0 1.1 0C12.86 21.34 20 15.25 20 10c0-4.42-3.58-8-8-8zm0 10.8A2.8 2.8 0 1 1 12 7.2a2.8 2.8 0 0 1 0 5.6z'/%3E%3C/svg%3E");
}

/* Phone icon */
.woocommerce-customer-details--phone::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.25 1.01l-2.2 2.2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.25 1.01l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* Envelope icon */
.woocommerce-customer-details--email::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 2v.01L12 12 4 6.01V6h16zM4 18V8.24l7.46 5.6a1 1 0 0 0 1.08 0L20 8.24V18H4z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 2v.01L12 12 4 6.01V6h16zM4 18V8.24l7.46 5.6a1 1 0 0 0 1.08 0L20 8.24V18H4z'/%3E%3C/svg%3E");
}
