/* WordPress integration layer — visual foundations remain in html/css/main.css. */
@font-face {
  font-family: "Pinar-VF";
  src: url("../../html/fonts/Pinar-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.desktop-nav > .site-container > .menu {
  min-width: 0;
  flex: 1;
}

.desktop-nav .menu-item-has-children > a {
  padding-left: 18px;
}

.desktop-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(-45deg);
  opacity: .65;
}

.desktop-nav .sub-menu {
  position: absolute;
  top: 100%;
  right: -18px;
  z-index: 15;
  width: 190px;
  height: auto;
  display: grid;
  align-items: initial;
  gap: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: var(--blue);
  box-shadow: 0 16px 35px rgba(18,58,48,.2);
  transition: .2s;
}

.desktop-nav .sub-menu li { display: block; }
.desktop-nav .sub-menu a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff8e9;
  font-size: 13px;
}
.desktop-nav .sub-menu a::after { display: none; }
.desktop-nav .sub-menu a:hover { padding-right: 16px; background: rgba(255,255,255,.1); color: #efd59f; }
.desktop-nav .menu-item-has-children:hover > .sub-menu,
.desktop-nav .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.desktop-nav .current-menu-item > a,
.desktop-nav .current-menu-ancestor > a { color: var(--blue); }
.desktop-nav .current-menu-item > a::after,
.desktop-nav .current-menu-ancestor > a::after { right: 0; width: 100%; }

.more__items > .icon-action,
.mobile-header__actions > .icon-action { text-decoration: none; }

.mini-cart__trash-icon { fill: none; stroke: currentColor; stroke-width: 1.8; }

.amani-content { min-height: 38px; background: var(--ivory); }
.amani-entry { padding-top: 22px; padding-bottom: 22px; }
.amani-entry > h1 { margin: 0 0 24px; color: var(--blue); font-size: clamp(25px, 3vw, 40px); }
.amani-entry .entry-content:empty { display: none; }

/* WooCommerce account integration. The visual system itself lives in main.css. */
body[data-page="dashboard-v2"] .woocommerce { width: 100%; }
body[data-page="dashboard-v2"] .woocommerce::before,
body[data-page="dashboard-v2"] .woocommerce::after { display: none; content: none; }
.woocommerce-account .dashboard-layout .woocommerce-MyAccount-navigation,
.woocommerce-account .dashboard-layout .woocommerce-MyAccount-content {
  width: auto;
  float: none;
}
.woocommerce-account .dashboard-layout .woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-account .dashboard-sidebar .dashicons,
.woocommerce-account .dashboard-stat__icon.dashicons { width: auto; height: auto; font-size: 18px; line-height: 1; }
.woocommerce-account .dashboard-mobile-nav .dashicons { width: 18px; height: 18px; font-size: 18px; line-height: 1; }
.woocommerce-account .dashboard-quick-actions a > .dashicons { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.woocommerce-account .password-field button .dashicons { width: 19px; height: 19px; font-size: 19px; line-height: 1; }
.woocommerce-account .woocommerce-notices-wrapper:not(:empty),
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info {
  width: min(100% - 48px, var(--container));
  margin: 18px auto 0;
  padding: 13px 18px;
  border: 1px solid #d8e5dc;
  border-radius: 12px;
  background: #edf5f0;
  color: var(--green);
  font-size: 11px;
  line-height: 1.9;
  list-style: none;
}
.woocommerce-account .woocommerce-error { border-color: #efd2ca; background: #fff1ed; color: #99422f; }
.woocommerce-account .dashboard-empty { display: grid; justify-items: start; gap: 8px; color: var(--dashboard-muted); }
.woocommerce-account .dashboard-empty strong { color: var(--dashboard-green); font-size: 15px; }
.woocommerce-account .dashboard-empty p,
.woocommerce-account .dashboard-empty-copy { margin: 0; color: var(--dashboard-muted); font-size: 10px; }
.woocommerce-account .dashboard-empty .dashboard-btn { margin-top: 6px; }
.woocommerce-account .dashboard-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.woocommerce-account .dialog-order-product + .dialog-order-product { margin-top: 8px; }
.woocommerce-account .dashboard-form { margin: 0; }
.woocommerce-account .dashboard-form > .dashboard-card { margin-bottom: 16px; }
.woocommerce-account .dashboard-address-form { margin-bottom: 0; }
.woocommerce-account .dashboard-form input[type="hidden"] { display: none; }
.woocommerce-account .dashboard-form__footer .woocommerce-form-row { margin: 0; }
.woocommerce-account .required { color: #cf3326; }

.footer-column .footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-column .footer-menu li { margin: 0; }
.footer-column .social__items:empty { display: none; }
.footer-column .social__items { margin-top: 8px; }
.footer-column .social__items svg { width: 30px; height: 30px; fill: none; stroke: #ffd43b; stroke-width: 1.8; }
.footer-column .social__items svg .fill { fill: #ffd43b; stroke: none; }

.mobile-drawer nav > .menu { margin: 0; padding: 12px 0 0; list-style: none; overflow-y: auto; }
.mobile-drawer .menu li { margin: 0; list-style: none; }
.mobile-drawer .mobile-menu__row { min-height: 50px; display: flex; align-items: stretch; border-bottom: 1px solid #eee7dd; }
.mobile-drawer .mobile-menu__row > a { min-width: 0; display: flex; flex: 1; align-items: center; padding: 0 10px; color: var(--ink); font-size: 14px; font-weight: 650; }
.mobile-submenu-toggle { width: 48px; flex: 0 0 48px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.mobile-submenu-toggle span { display: block; font-size: 22px; transition: transform .2s ease; }
.mobile-submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.mobile-drawer .sub-menu { margin: 0; padding: 0; background: rgba(227,211,177,.16); }
.mobile-drawer .sub-menu .mobile-menu__row { min-height: 45px; border-right: 3px solid var(--blue-soft); }
.mobile-drawer .sub-menu .mobile-menu__row > a { padding-right: 24px; color: var(--blue-deep); font-weight: 500; }

@media (max-width: 1200px) and (min-width: 901px) {
  .desktop-nav ul { gap: 22px; }
  .desktop-nav li > a { font-size: 12px; }
}

@media (max-width: 900px) {
  .amani-content { min-height: 38px; }
  .mobile-drawer nav { min-height: 0; flex: 1; padding: 0; overflow: hidden; }
  .mobile-drawer nav > .menu { height: 100%; }
}

@media (max-width: 640px) {
  .amani-entry { padding-top: 16px; padding-bottom: 16px; }
  .footer-column .footer-menu { padding: 0 4px 10px; }
}

/* Dynamic blog archive. */
.blog-archive-page { padding: 28px 0 76px; background: var(--ivory); }
.blog-archive-head { margin-bottom: 32px; padding: 34px 24px; border-radius: 26px; background: #ffedd2; text-align: center; }
.blog-archive-head h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 850; }
.blog-archive-head nav { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.blog-archive-head a:hover { color: var(--green); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card.showcase-card { width: 100%; max-width: 100%; display: flex; min-height: 420px; flex-direction: column; }
.blog-card .showcase-card__media { height: 300px; flex: 0 0 300px; }
.blog-card .showcase-card__media::after { display: none; }
.blog-card .showcase-card__media img { filter: none; }
.blog-card .showcase-card__discount { max-width: calc(100% - 12px); background: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-card .showcase-card__media small { display: block; min-height: 31px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-card .showcase-card__body { display: flex; flex: 1; flex-direction: column; padding: 15px 18px 17px; }
.blog-card .showcase-card__title { position: relative; z-index: 3; width: 100%; height: auto; min-height: 48px; display: block; margin: 0; visibility: visible; opacity: 1; }
.blog-card .showcase-card__title h2 { position: static; width: 100%; display: -webkit-box; margin: 0; overflow: hidden; visibility: visible; opacity: 1; transform: none; color: #171b18; font-size: 16px; font-weight: 780; line-height: 1.9; direction: rtl; text-align: right; white-space: normal; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.blog-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.blog-card__meta strong { color: var(--blue-deep); font-size: 11px; }
.blog-pagination { margin-top: 46px; }
.blog-pagination .page-numbers { margin: 0; padding: 0; list-style: none; }
.blog-pagination > .page-numbers { display: flex; align-items: center; justify-content: center; gap: 7px; }
.blog-pagination li { margin: 0; }
.blog-pagination a,.blog-pagination span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; }
.blog-pagination .current { border-color: var(--gold); background: var(--gold); color: #fff; }
.blog-empty { min-height: 240px; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 20px; color: var(--muted); }

/* WordPress-authored article content. */
.article-toc__logo { width: 90px; height: 90px; display: block; margin: 0 auto 14px; object-fit: contain; }
.article-toc__level-3 { margin-right: 12px !important; font-size: 11px; }
.article-content > :first-child { margin-top: 0; }
.article-content :is(ul,ol):not(.article-checklist) { margin: 0 0 24px; padding-right: 24px; }
.article-content :is(ul,ol):not(.article-checklist) li { margin: 7px 0; }
.article-content img { max-width: 100%; height: auto; border-radius: 16px; }
.article-content figure { margin: 30px 0; }
.article-content figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; text-align: center; }
.article-content a { color: var(--brown); text-decoration: underline; text-underline-offset: 4px; }
.article-author > a,.article-sources a { text-decoration: none; }

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

@media (max-width: 600px) {
  .blog-archive-page { padding: 18px 0 86px; }
  .blog-archive-head { margin-bottom: 20px; padding: 26px 16px; border-radius: 20px; }
  .blog-archive-head h1 { margin-bottom: 12px; font-size: 25px; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blog-card.showcase-card { min-height: 390px; }
  .blog-card .showcase-card__media { height: 265px; flex-basis: 265px; }
  .blog-card .showcase-card__title h2 { font-size: 15px; }
  .blog-pagination { margin-top: 30px; }
}

/* Root product-category directory. */
.product-category-directory { padding: 28px 0 76px; background: var(--ivory); }
.product-category-directory__head { margin-bottom: 42px; padding: 34px 24px; border-radius: 26px; background: #ffedd2; text-align: center; }
.product-category-directory__head h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 850; }
.product-category-directory__head nav { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.product-category-directory__head a:hover { color: var(--green); }
.product-category-directory__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 24px; }
.product-category-directory__grid .category-card { width: 100%; height: auto; min-height: 270px; padding: 0 0 12px; background: transparent; }
.product-category-directory__grid .category-card__image { height: auto; aspect-ratio: 1 / 1; border: 0; }
.product-category-directory__grid .category-card strong { margin-top: 14px; text-align: center; }
.product-category-directory__empty { min-height: 240px; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 20px; color: var(--muted); }

@media (max-width: 1100px) {
  .product-category-directory__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .product-category-directory__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
}

@media (max-width: 600px) {
  .product-category-directory { padding: 18px 0 92px; }
  .product-category-directory__head { margin-bottom: 24px; padding: 26px 16px; border-radius: 20px; }
  .product-category-directory__head h1 { margin-bottom: 12px; font-size: 25px; }
  .product-category-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .product-category-directory__grid .category-card { min-height: 0; flex: initial; padding: 0 0 9px; border-radius: 120px 120px 14px 14px; }
  .product-category-directory__grid .category-card__image { border-radius: 110px 110px 12px 12px; }
  .product-category-directory__grid .category-card strong { margin-top: 9px; font-size: 14px; }
}

/* WooCommerce product archive. */
.amani-shop-page { padding-block: 24px 72px; background: var(--ivory); }
.amani-shop-title { overflow: hidden; }
.amani-shop-title h1 { color: var(--blue); }
.amani-shop-title nav a { transition: color .2s; }
.amani-shop-title nav a:hover { color: var(--blue); }
.filter-category-slider .category-card { padding: 12px; background: transparent; }
.filter-category-slider .category-card__image { border: 0; }
.filter-category-slider .category-card.is-current strong { color: var(--gold-dark); }
.product-filters { margin: 0; }
.amani-filter-reset-link { flex: 0 0 auto; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: #dc2626; font-size: 12px; font-weight: 400; line-height: 1.5; }
.amani-filter-reset-link:hover { color: #a91f1f; }
.amani-filter-submit { width: calc(100% - 36px); min-height: 50px; margin: 18px; padding: 10px 18px; border: 0; border-radius: 11px; background: var(--blue); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; transition: background .2s; }
.amani-filter-submit:hover { background: var(--blue-soft); }
.sort__by a { transition: color .2s; }
.sort__by a:hover, .sort__by a.is-active { color: var(--blue); font-weight: 750; }
.sort__by svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.amani-products-grid .showcase-card { min-width: 0; }
.amani-products-grid .showcase-card__title h2 { margin: 0; color: var(--blue); font-size: 14px; line-height: 1.8; }
.amani-products-grid .showcase-card__price { display: flex; align-items: baseline; gap: 5px; }
.amani-products-grid .showcase-card__price b { color: var(--blue); }
.amani-products-grid .showcase-card__price .out-of-stock { color: #9a9288; font-size: 12px; }
.amani-products-grid .showcase-card.outofstock { opacity: .82; }
.amani-pagination { display: flex; justify-content: center; margin: 48px 0 24px; direction: rtl; }
.amani-pagination ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.amani-pagination a, .amani-pagination span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e5e1dc; border-radius: 9px; background: #fff; color: #5f5952; font-size: 12px; transition: .2s; }
.amani-pagination a:hover { border-color: var(--gold); color: var(--blue); }
.amani-pagination .current { border-color: var(--gold); background: var(--gold); color: #fff; font-weight: 750; }

@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .amani-shop-page { padding-top: 16px; }
  .amani-shop-page, .amani-shop-page .site-container, .product-list-layout, .product-list-content { min-width: 0; max-width: 100%; }
  .amani-products-grid .showcase-card { width: 100%; max-width: 100%; }
  .product-filters__content { padding-bottom: 16px; }
}

@media (max-width: 640px) {
  .amani-shop-page { padding-bottom: 44px; }
  .amani-shop-title { margin-bottom: 26px; padding: 20px 14px; border-radius: 17px; }
  .amani-shop-title h1 { margin-bottom: 9px; font-size: 21px; }
  .filter-category-slider .category-card { padding: 10px; }
  .amani-products-grid { gap: 14px; }
  .amani-products-grid .showcase-card__title h2 { font-size: 13px; }
  .amani-pagination { margin-top: 30px; }
  .amani-pagination a, .amani-pagination span { width: 34px; height: 34px; }
}

/* WooCommerce single product. */
.product-detail .summary { min-width: 0; }
.product-detail .pd-photo > button { height: 100%; border: 0; background: transparent; }
.product-detail .pd-photo > button img { transition: transform .25s ease, object-position .25s ease; }
.product-detail .pd-thumbnails button { background: transparent; cursor: pointer; }
.product-detail .pd-buybox .cart { margin: 0; }
.product-detail .pd-buybox .variations { display: grid; gap: 14px; margin-bottom: 18px; }
.product-detail .pd-variation-field { display: grid; gap: 10px; }
.product-detail .pd-choice-header { margin: 0; }
.product-detail .pd-choice-header label { color: var(--blue); }
.product-detail .pd-buybox .reset_variations { min-height: 32px; display: inline-flex; align-items: center; color: var(--muted); }
.product-detail .pd-buybox .reset_variations[style*="visibility: hidden"] { pointer-events: none; }
.product-detail .pd-buybox .single_variation { min-height: 58px; display: flex !important; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.product-detail .pd-buybox .single_variation:empty { display: none !important; }
.product-detail .woocommerce-variation-description { display: none; }
.product-detail .woocommerce-variation-price { margin-right: auto; }
.product-detail .woocommerce-variation-availability { order: -1; }
.product-detail .woocommerce-variation-availability .stock { margin: 0; }
.product-detail .pd-price-row > .stock { margin: 0; }
.product-detail .stock.in-stock { color: var(--green-soft); }
.product-detail .stock.in-stock::before { content: "● "; font-size: 9px; }
.product-detail .pd-buybox .price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 5px; color: var(--blue); }
.product-detail .pd-buybox .price > .woocommerce-Price-amount { font-size: 25px; font-weight: 800; }
.product-detail .pd-buybox .price del { order: -1; width: 100%; text-align: left; }
.product-detail .pd-buybox .price ins { display: inline; }
.product-detail .pd-purchase { display: flex; align-items: stretch; gap: 12px; }
.product-detail .pd-purchase .quantity { flex: 0 0 auto; }
.product-detail .pd-purchase .single_add_to_cart_button { flex: 1 1 auto; border: 0; cursor: pointer; }
.product-detail .pd-buybox button.single_add_to_cart_button.button.alt { background: var(--green); color: #fff; }
.product-detail .pd-buybox button.single_add_to_cart_button.button.alt:hover,
.product-detail .pd-buybox button.single_add_to_cart_button.button.alt:focus-visible { background: var(--green-soft); color: #fff; }
.product-detail .pd-buybox button.single_add_to_cart_button.is-loading { opacity: .72; cursor: wait; }
.product-detail .pd-purchase .single_add_to_cart_button.disabled { cursor: not-allowed; }
.product-detail .quantity .amani-qty-button { width: 38px; min-height: 48px; flex: 0 0 38px; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 19px; }
.product-detail .quantity .qty { min-height: 48px; border: 0; }
.product-detail .pd-unavailable { display: grid; gap: 8px; padding: 20px; border-radius: 13px; background: #f7f1e8; text-align: center; }
.product-detail .pd-unavailable .out-of-stock { margin: 0; color: #a33e29; font-size: 15px; font-weight: 800; }
.product-detail .pd-unavailable span { color: var(--muted); font-size: 11px; }
.product-detail .pd-storage__secondary { margin-top: 16px; }
.product-detail .pd-storage h3:not(:first-child) { margin-top: 16px; }
.product-detail .pd-description-grid--single { grid-template-columns: 1fr; }
.product-detail .pd-related-grid .showcase-card__title h2 { margin: 0; color: var(--blue); font-size: 14px; line-height: 1.8; }
.product-detail .pd-related-grid .showcase-card__price { display: flex; align-items: baseline; gap: 5px; }
.product-detail #comments { color: var(--ink); }
.product-detail #comments .woocommerce-Reviews-title { margin-bottom: 18px; }
.product-detail #comments .commentlist { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.product-detail #comments .comment_container { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.product-detail #review_form_wrapper form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.product-detail #review_form_wrapper form > p { margin: 0; }
.product-detail #review_form_wrapper .comment-form-comment,
.product-detail #review_form_wrapper .comment-form-rating,
.product-detail #review_form_wrapper .comment-notes,
.product-detail #review_form_wrapper .form-submit { grid-column: 1 / -1; }
.product-detail #review_form_wrapper label { display: block; margin-bottom: 7px; font-size: 12px; }
.product-detail #review_form_wrapper input,
.product-detail #review_form_wrapper textarea,
.product-detail #review_form_wrapper select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; }
.product-detail #review_form_wrapper textarea { min-height: 120px; resize: vertical; }
.product-detail #review_form_wrapper .submit { min-height: 46px; padding: 10px 22px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; cursor: pointer; font: inherit; font-weight: 750; }

@media (max-width: 700px) {
  .product-detail .pd-purchase { flex-direction: column-reverse; }
  .product-detail .pd-purchase .quantity { width: 100%; justify-content: space-between; }
  .product-detail .pd-purchase .single_add_to_cart_button { min-height: 50px; }
  .product-detail .pd-buybox .single_variation { align-items: flex-start; }
  .product-detail #review_form_wrapper form { grid-template-columns: 1fr; }
  .product-detail #review_form_wrapper form > p { grid-column: 1; }
}

/* AJAX add-to-cart confirmation. */
.amani-cart-modal { width: min(620px, calc(100% - 32px)); max-width: none; margin: auto; padding: 0; overflow: visible; border: 0; border-radius: 28px; background: #fffdf8; color: var(--ink); box-shadow: 0 28px 90px rgba(8, 26, 22, .28); direction: rtl; }
.amani-cart-modal::backdrop { background: rgba(8, 26, 22, .62); backdrop-filter: blur(5px); }
.amani-cart-modal__panel { position: relative; display: grid; justify-items: center; padding: 38px 42px 34px; text-align: center; }
.amani-cart-modal__close { position: absolute; top: 18px; left: 20px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--blue); cursor: pointer; font: inherit; font-size: 27px; line-height: 1; transition: border-color .2s, color .2s, transform .2s; }
.amani-cart-modal__close:hover { border-color: var(--gold); color: var(--green); transform: rotate(8deg); }
.amani-cart-modal__icon { width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 18px; border: 6px solid #e5eee9; border-radius: 50%; background: var(--green); box-shadow: 0 12px 32px rgba(20, 72, 57, .22); }
.amani-cart-modal__icon svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.amani-cart-modal__status { margin: 0 0 9px; color: var(--gold-dark); font-size: 13px; font-weight: 800; }
.amani-cart-modal h2 { margin: 0 0 25px; color: var(--green); font-size: clamp(22px, 3vw, 30px); line-height: 1.6; }
.amani-cart-modal__product { width: 100%; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--cream); text-align: right; }
.amani-cart-modal__product img { width: 88px; height: 88px; object-fit: cover; border-radius: 13px; background: #fff; }
.amani-cart-modal__product div { min-width: 0; display: grid; gap: 5px; }
.amani-cart-modal__product small { color: var(--muted); font-size: 11px; }
.amani-cart-modal__product strong { overflow-wrap: anywhere; color: var(--blue); font-size: 16px; line-height: 1.8; }
.amani-cart-modal__product span { color: var(--green-soft); font-size: 12px; }
.amani-cart-modal__error { width: 100%; margin: 14px 0 0; padding: 11px 14px; border-radius: 10px; background: #fff0ec; color: #a33e29; font-size: 12px; line-height: 1.8; }
.amani-cart-modal__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.amani-cart-modal__actions a,
.amani-cart-modal__actions button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 11px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; transition: background .2s, border-color .2s, color .2s; }
.amani-cart-modal__actions a { border: 1px solid var(--green); background: var(--green); color: #fff; }
.amani-cart-modal__actions a:hover { background: var(--green-soft); }
.amani-cart-modal__actions button { border: 1px solid var(--blue); background: transparent; color: var(--blue); }
.amani-cart-modal__actions button:hover { background: var(--blue); color: #fff; }
.amani-cart-modal.has-error .amani-cart-modal__icon { background: #a33e29; border-color: #f8ddd6; }
.amani-cart-modal.has-error .amani-cart-modal__icon svg { display: none; }
.amani-cart-modal.has-error .amani-cart-modal__icon::before { content: "!"; color: #fff; font-size: 43px; font-weight: 800; }
.mini-cart__checkout {
  display: inline-flex;
  flex: 0 0 160px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 160px;
  padding-inline: 16px;
  overflow: visible;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.mini-cart__footer > div { min-width: 0; margin-bottom: 0; }
.mini-cart__quantity-readonly { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

@media (max-width: 480px) {
  .mini-cart__checkout { flex-basis: 148px; min-width: 148px; padding-inline: 12px; }
}

@media (max-width: 900px) {
  .amani-cart-toast { right: 16px; bottom: calc(91px + env(safe-area-inset-bottom)); width: calc(100% - 32px); transform: translateY(18px); }
  .amani-cart-toast.is-visible { transform: translateY(0); }
}

@media (max-width: 768px) {
  .amani-cart-modal { width: min(100% - 22px, 460px); border-radius: 22px; }
  .amani-cart-modal__panel { padding: 30px 18px 22px; }
  .amani-cart-modal__close { top: 12px; left: 12px; width: 36px; height: 36px; }
  .amani-cart-modal__icon { width: 72px; height: 72px; margin-bottom: 14px; }
  .amani-cart-modal__icon svg { width: 38px; height: 38px; }
  .amani-cart-modal h2 { margin-bottom: 18px; font-size: 20px; }
  .amani-cart-modal__product { grid-template-columns: 70px 1fr; }
  .amani-cart-modal__product img { width: 70px; height: 70px; }
  .amani-cart-modal__actions { grid-template-columns: 1fr; }
}

/* Product reviews. */
.product-detail .amani-reviews { padding-top: 8px; }
.product-detail #tab-reviews:focus { outline: 0; }
.product-detail .amani-reviews__notice { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid rgba(43, 120, 101, .24); border-radius: 14px; background: #edf7f1; color: var(--green); }
.product-detail .amani-reviews__notice:focus { outline: 2px solid var(--green-soft); outline-offset: 3px; }
.product-detail .amani-reviews__notice > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 50%; background: var(--green); color: #fff; font-size: 20px; font-weight: 800; }
.product-detail .amani-reviews__notice strong { display: block; margin-bottom: 3px; font-size: 13px; }
.product-detail .amani-reviews__notice p { margin: 0; color: var(--green-soft); font-size: 10px; line-height: 1.8; }
.product-detail .amani-reviews__intro { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin-bottom: 18px; padding: 28px 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(135deg, #fff 0%, var(--cream) 100%); position: relative; }
.product-detail .amani-reviews__intro::after { content: "✦"; position: absolute; left: 24%; top: -28px; color: rgba(204, 151, 43, .12); font-size: 110px; line-height: 1; }
.product-detail .amani-reviews__eyebrow { display: block; margin-bottom: 7px; color: var(--gold-dark); font-size: 11px; font-weight: 750; }
.product-detail .amani-reviews__intro h2 { margin: 0 0 6px; color: var(--green); font-size: 25px; }
.product-detail .amani-reviews__intro p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }
.product-detail .amani-reviews__score { min-width: 180px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 14px 18px; border: 1px solid rgba(204, 151, 43, .25); border-radius: 17px; background: rgba(255, 253, 248, .9); position: relative; z-index: 1; }
.product-detail .amani-reviews__score > strong { grid-row: 1 / 3; color: var(--green); font-size: 35px; line-height: 1; }
.product-detail .amani-reviews__score small { color: var(--muted); font-size: 10px; }
.product-detail .amani-stars { display: inline-flex; gap: 2px; direction: ltr; color: #d9d5cd; line-height: 1; }
.product-detail .amani-stars span { font-size: 17px; }
.product-detail .amani-stars .is-filled { color: var(--gold); }
.product-detail .amani-reviews__distribution { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 24px; }
.product-detail .amani-reviews__distribution > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; background: #fff; color: var(--muted); font-size: 9px; }
.product-detail .amani-reviews__distribution i { height: 5px; overflow: hidden; border-radius: 8px; background: #ede9e1; }
.product-detail .amani-reviews__distribution b { height: 100%; display: block; border-radius: inherit; background: var(--gold); }
.product-detail .amani-reviews__distribution small { min-width: 12px; color: var(--blue); text-align: center; }
.product-detail .amani-reviews__layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr); align-items: start; gap: 24px; }
.product-detail .amani-reviews__list,
.product-detail .amani-review-form { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.product-detail .amani-reviews__section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.product-detail .amani-reviews__section-heading span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.product-detail .amani-reviews__section-heading h3 { margin: 0; color: var(--green); font-size: 17px; }
.product-detail .amani-reviews__section-heading .amani-reviews__count { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; margin: 0; border-radius: 50%; background: var(--cream); color: var(--gold-dark); font-size: 13px; font-weight: 800; }
.product-detail #comments .commentlist { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.product-detail #comments .commentlist .children { display: grid; gap: 10px; margin: 10px 36px 0 0; padding: 0; list-style: none; }
.product-detail #comments .amani-review-card__body { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 18px; border: 1px solid #ece6dc; border-radius: 16px; background: #fffdf9; transition: border-color .2s, box-shadow .2s, transform .2s; }
.product-detail #comments .amani-review-card__body:hover { border-color: rgba(204, 151, 43, .42); box-shadow: 0 10px 28px rgba(35, 45, 39, .06); transform: translateY(-1px); }
.product-detail .amani-review-card__avatar img { width: 52px; height: 52px; display: block; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--border); object-fit: cover; }
.product-detail .amani-review-card__content { min-width: 0; }
.product-detail .amani-review-card__content header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.product-detail .amani-review-card__content header > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.product-detail .amani-review-card__content header strong { color: var(--blue); font-size: 13px; }
.product-detail .amani-review-card__content time { width: 100%; color: var(--muted); font-size: 9px; }
.product-detail .amani-review-card__verified { padding: 3px 7px; border-radius: 20px; background: #e9f4ee; color: var(--green-soft); font-size: 8px; font-weight: 700; }
.product-detail .amani-review-card__text p { margin: 0; color: #5f5b54; font-size: 12px; line-height: 2; }
.product-detail .amani-review-card__pending { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fff6df; color: #8b681f; font-size: 10px; }
.product-detail .amani-reviews__empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #dfd6c7; border-radius: 15px; background: var(--ivory); text-align: center; }
.product-detail .amani-reviews__empty > span { color: var(--gold); font-size: 24px; }
.product-detail .amani-reviews__empty strong { color: var(--green); font-size: 14px; }
.product-detail .amani-reviews__empty p { margin: 0; color: var(--muted); font-size: 11px; }
.product-detail .amani-review-form { position: sticky; top: 120px; background: linear-gradient(180deg, #fff 0%, #fffdf8 100%); }
.product-detail .amani-review-form__heading { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.product-detail .amani-review-form__heading > span { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; border-radius: 13px; background: var(--green); color: #fff; font-size: 20px; }
.product-detail .amani-review-form__heading small { display: block; margin-bottom: 3px; color: var(--gold-dark); font-size: 9px; }
.product-detail .amani-review-form__heading h3 { margin: 0; color: var(--green); font-size: 17px; }
.product-detail #review_form_wrapper form.amani-review-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; max-width: none; }
.product-detail #review_form_wrapper form.amani-review-form__fields > p,
.product-detail #review_form_wrapper form.amani-review-form__fields > div { margin: 0; }
.product-detail .amani-review-form .comment-notes { grid-column: 1 / -1; padding: 10px 12px; border-radius: 9px; background: var(--cream); color: var(--muted); font-size: 9px; line-height: 1.8; }
.product-detail .amani-review-form label { display: block; margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 700; }
.product-detail .amani-review-form .required { color: #b84732; }
.product-detail .amani-review-form input,
.product-detail .amani-review-form textarea,
.product-detail .amani-review-form select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; transition: border-color .2s, box-shadow .2s; }
.product-detail .amani-review-form input:focus,
.product-detail .amani-review-form textarea:focus,
.product-detail .amani-review-form select:focus { border-color: var(--green-soft); outline: 0; box-shadow: 0 0 0 3px rgba(43, 120, 101, .1); }
.product-detail .amani-review-form input::placeholder,
.product-detail .amani-review-form textarea::placeholder { color: #a6a097; }
.product-detail .amani-review-form .comment-form-comment,
.product-detail .amani-review-form .comment-form-rating,
.product-detail .amani-review-form .form-submit { grid-column: 1 / -1; }
.product-detail .amani-review-form .comment-form-cookies-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; }
.product-detail .amani-review-form .comment-form-cookies-consent input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; margin: 3px 0 0; accent-color: var(--green); }
.product-detail .amani-review-form .comment-form-cookies-consent label { margin: 0; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.9; }
.product-detail .amani-review-form textarea { min-height: 135px; resize: vertical; line-height: 2; }
.product-detail .amani-review-form .comment-form-rating > small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.product-detail .amani-review-form p.stars { margin: 2px 0 0; direction: ltr; text-align: right; }
.product-detail .amani-review-form p.stars span { display: inline-flex; direction: ltr; }
.product-detail .amani-review-form p.stars a { width: 32px; height: 32px; overflow: hidden; color: var(--gold); font-size: 0; line-height: 32px; text-indent: -9999px !important; }
.product-detail .amani-review-form p.stars a::before { width: 32px; height: 32px; font-size: 27px; line-height: 32px; text-indent: 0; }
.product-detail .amani-review-form .amani-review-form__submit { width: 100%; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 10px; background: var(--green); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; transition: background .2s, transform .2s; }
.product-detail #review_form_wrapper #respond input#submit.amani-review-form__submit { background: var(--green); color: #fff; }
.product-detail .amani-review-form .amani-review-form__submit:hover { background: var(--green-soft); transform: translateY(-1px); }
.product-detail #review_form_wrapper #respond input#submit.amani-review-form__submit:hover { background: var(--green-soft); color: #fff; }
.product-detail .amani-review-form .must-log-in,
.product-detail .woocommerce-verification-required { padding: 16px; border-radius: 12px; background: var(--cream); color: var(--muted); font-size: 11px; line-height: 2; }

/* Dynamic WooCommerce cart: preserve the supplied visual while using native prices and actions. */
.amani-cart-content > .entry-content { min-height: 1px; }
.cart-page .woocommerce-notices-wrapper:empty { display: none; }
.cart-page :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #dce7df; border-radius: 12px; background: #edf5f0; color: var(--green); font-size: 12px; line-height: 1.9; }
.cart-page .woocommerce-error { border-color: #f0d8d1; background: #fff2ee; color: #9a3f2c; }
.cart-page .woocommerce-message a { margin-left: 12px; font-weight: 700; text-decoration: underline; }
.cart-page .cart-product__image { flex: 0 0 auto; }
.cart-page .cart-product .variation { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.cart-page .cart-product .variation dt { font-weight: 600; }
.cart-page .cart-product .variation dd { margin: 0; }
.cart-page .cart-product .variation p { margin: 0; }
.cart-page .product-price :is(.amount, ins), .cart-page .product-subtotal .amount { color: var(--green); font-weight: 750; text-decoration: none; }
.cart-page .product-price del .amount { color: var(--muted); font-weight: 400; }
.cart-page .woocommerce-Price-currencySymbol { margin-right: 3px; font-size: 9px; font-weight: 500; }
.cart-page .cart-remove { font-size: 0; }
.cart-page .cart-remove:hover { color: #aa4830 !important; }
.cart-page .cart-remove:hover::before { display: none; }
.cart-page .cart-discount .woocommerce-remove-coupon { display: block; margin-top: 4px; color: #a54e32; font-size: 9px; text-decoration: underline; }
.cart-page .cart-summary .wc-proceed-to-checkout { margin-top: 20px; }
.cart-page .cart-summary .order-total .woocommerce-Price-amount { font-size: 23px; }
.cart-page .cart-total-value { font-weight: 800; }
.cart-page .cart-summary dd .woocommerce-Price-amount { white-space: nowrap; }
.cart-page .screen-reader-text[name="update_cart"] { position: absolute !important; }
.cart-page svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Neutralize higher-specificity layout and button rules from WooCommerce core. */
.woocommerce .cart-page .cart-collaterals,
.woocommerce-page .cart-page .cart-collaterals { width: 100%; display: block; float: none; }
.woocommerce .cart-page .cart-collaterals::before,
.woocommerce .cart-page .cart-collaterals::after { display: none; }
.woocommerce .cart-page .cart-collaterals .cart_totals,
.woocommerce-page .cart-page .cart-collaterals .cart_totals { width: 100%; float: none; clear: none; }
.woocommerce .cart-page a.checkout-button.button.alt,
.woocommerce-page .cart-page a.checkout-button.button.alt { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0; padding: 12px 22px; border-radius: 10px; background: var(--green); color: #fff; font-size: 14px; font-weight: 750; line-height: 1.7; }
.woocommerce .cart-page a.checkout-button.button.alt:hover,
.woocommerce-page .cart-page a.checkout-button.button.alt:hover { background: var(--green-soft); color: #fff; }
.woocommerce .cart-page table.cart .cart-product img,
.woocommerce-page .cart-page table.cart .cart-product img { width: 82px; height: 100px; max-width: none; object-fit: cover; }
.woocommerce .cart-page a.remove.cart-remove,
.woocommerce-page .cart-page a.remove.cart-remove { width: 36px; height: 40px; display: grid; color: #93877c !important; line-height: 1; }
.woocommerce .cart-page a.remove.cart-remove:hover,
.woocommerce-page .cart-page a.remove.cart-remove:hover { background: #fff0e9; color: #aa4830 !important; }
.cart-page .woocommerce-Price-currencySymbol { display: none; }
.cart-page .woocommerce-Price-amount::after { content: " تومان"; color: var(--muted); font-size: 9px; font-weight: 500; }
.cart-page .product-price del .woocommerce-Price-amount::after { content: none; }
.cart-page :is(.product-price, .product-subtotal) > .woocommerce-Price-amount::after { display: block; margin-top: 2px; }

@media (max-width: 950px) {
  .woocommerce .cart-page .cart-collaterals,
  .woocommerce-page .cart-page .cart-collaterals { width: 100%; }
}

/* Cart feedback toast. */
.amani-cart-toast { position: fixed; right: 50%; bottom: 28px; z-index: 110; width: min(420px, calc(100% - 32px)); min-height: 62px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: var(--green); color: #fff; box-shadow: 0 18px 48px rgba(12,53,42,.28); direction: rtl; opacity: 0; transform: translate(50%, 18px); transition: opacity .24s ease, transform .24s ease; }
.amani-cart-toast[hidden] { display: none; }
.amani-cart-toast.is-visible { opacity: 1; transform: translate(50%, 0); }
.amani-cart-toast__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #edf5e7; color: var(--green); font-size: 17px; font-weight: 800; }
.amani-cart-toast p { margin: 0; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.9; }
.amani-cart-toast button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0 0 2px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font: inherit; font-size: 20px; line-height: 1; }
.amani-cart-toast button:hover { background: rgba(255,255,255,.2); }

@media (max-width: 600px) {
  .cart-page { padding-bottom: 38px; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table { border: 0; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tbody,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tbody { display: block; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, auto); gap: 16px 12px; padding: 16px; border: 0; border-bottom: 1px solid var(--border); background: #fff; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr:nth-child(2n) td,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr:nth-child(2n) td { background: transparent; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr td,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr td { display: block; padding: 0; border: 0; background: transparent; text-align: right !important; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr td::before,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr td::before { display: none; content: none; float: none; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr td.product-name,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr td.product-name { grid-column: 1 / -1; padding-left: 32px; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr td.product-price,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr td.product-price { display: none !important; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr td.product-subtotal,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr td.product-subtotal { align-self: center; text-align: left !important; }
  .woocommerce .cart-page table.shop_table_responsive.cart-table tr td.product-subtotal::before,
  .woocommerce-page .cart-page table.shop_table_responsive.cart-table tr td.product-subtotal::before { content: "مبلغ کل"; display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 500; text-align: left; }
  .woocommerce .cart-page table.cart .cart-product img,
  .woocommerce-page .cart-page table.cart .cart-product img { width: 76px; height: 92px; }
  .woocommerce .cart-page a.remove.cart-remove,
  .woocommerce-page .cart-page a.remove.cart-remove { width: 36px; height: 42px; }
  .cart-page .woocommerce-cart-form { border-radius: 16px; }
  .cart-page .cart-product { align-items: flex-start; }
  .cart-page .cart-product > div { min-width: 0; padding-top: 3px; }
  .cart-page .cart-product h2 { font-size: 12px; line-height: 1.8; }
  .cart-page .cart-update-note { min-height: 52px; align-items: center; line-height: 1.9; }
  .cart-page .coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .cart-page .coupon input { min-height: 46px; font-size: 16px; }
  .cart-page .cart-secondary { min-height: 46px; }
  .cart-page .cart-summary { padding: 21px 18px; }
  .cart-page .cart-total strong,
  .cart-page .cart-summary .order-total .woocommerce-Price-amount { font-size: 20px; }
}

/* WooCommerce order-received integration for the branded success/failure views. */
.woocommerce-order .amani-order-status-page { width: 100%; }
.amani-order-status-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.amani-order-status-page .woocommerce-Price-amount { white-space: nowrap; }
.amani-order-status-page .woocommerce-Price-currencySymbol { font-size: .65em; font-weight: 500; }
.amani-thankyou-extras { width: min(1320px, calc(100% - 32px)); margin: 0 auto 48px; }
.amani-thankyou-extras:empty,
.amani-thankyou-extras .woocommerce-order-details,
.amani-thankyou-extras .woocommerce-customer-details { display: none; }

@media (prefers-reduced-motion: reduce) {
  .amani-cart-toast { transition: none; }
}

/* Dynamic WooCommerce checkout. */
.amani-checkout-content > .entry-content { min-height: 1px; }
.checkout-page .woocommerce-notices-wrapper:empty { display: none; }
.checkout-page :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) { margin: 0 0 20px; padding: 14px 18px; border: 1px solid #e1d2b8; border-radius: 12px; background: #fbf3e5; color: #5f4a2f; font-size: 11px; line-height: 1.9; list-style: none; }
.checkout-page .woocommerce-error { border-color: #edd3cb; background: #fff2ee; color: #963f2d; }
.woocommerce .checkout-page form.checkout { width: 100%; display: block; }
.woocommerce .checkout-page #customer_details,
.woocommerce-page .checkout-page #customer_details,
.woocommerce .checkout-page #order_review,
.woocommerce-page .checkout-page #order_review { width: auto; float: none; }
.woocommerce .checkout-page .form-row-first,
.woocommerce .checkout-page .form-row-last,
.woocommerce-page .checkout-page .form-row-first,
.woocommerce-page .checkout-page .form-row-last { width: 100%; float: none; overflow: visible; }
.checkout-page .woocommerce-input-wrapper { min-width: 0; display: block; }
.woocommerce .checkout-page form .form-row { margin: 0; padding: 0; }
.woocommerce .checkout-page form .form-row label { line-height: 1.8; }
.checkout-page .form-row .optional { color: var(--muted); font-size: 9px; font-weight: 450; }
.checkout-page .form-row .required { visibility: visible; }
.woocommerce .checkout-page form .form-row .input-text,
.woocommerce .checkout-page form .form-row select { min-height: 48px; margin: 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background-color: var(--ivory); color: var(--ink); font: inherit; font-size: 13px; }
.checkout-page .select2-container { width: 100% !important; }
.checkout-page .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--ivory); }
.checkout-page .select2-container .select2-selection--single .select2-selection__rendered { height: 46px; padding: 0 13px; color: var(--ink); font-size: 12px; line-height: 46px; }
.checkout-page .select2-container .select2-selection--single .select2-selection__arrow { top: 0; right: auto; left: 10px; height: 46px; }
.checkout-page .woocommerce-account-fields { margin-top: 20px; }
.auth-page .auth-status.is-error { color: #a54e32; background: #fff3ef; border: 1px solid #efd2c8; border-radius: 8px; padding: 9px 12px; }
.auth-page .auth-status.is-success { color: #235f54; background: #edf3e9; border: 1px solid #d7e4d1; border-radius: 8px; padding: 9px 12px; margin-top: 12px; }
.auth-page .auth-otp-help { margin-top: 14px; }
.auth-page .auth-otp-help button:disabled { color: var(--muted); cursor: not-allowed; }
.auth-page.woocommerce form.auth-form { margin: 0; padding: 0; border: 0; border-radius: 0; }
.auth-page.woocommerce button.button.auth-submit,
.auth-page.woocommerce button.auth-submit,
.auth-page.woocommerce a.auth-submit {
	width: 100%;
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin: 0;
	padding: 10px 20px;
	border: 0;
	border-radius: 10px;
	background-color: var(--blue);
	background-image: none;
	box-shadow: none;
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	line-height: inherit;
	text-shadow: none;
	opacity: 1;
}
.auth-page.woocommerce button.button.auth-submit:hover,
.auth-page.woocommerce button.button.auth-submit:focus,
.auth-page.woocommerce button.auth-submit:hover,
.auth-page.woocommerce button.auth-submit:focus,
.auth-page.woocommerce a.auth-submit:hover,
.auth-page.woocommerce a.auth-submit:focus { background-color: var(--blue-soft); color: #fff; }
.checkout-page .woocommerce-account-fields .create-account { display: grid; gap: 12px; }
.checkout-page .woocommerce-shipping-fields > h3 { margin: 0; font: inherit; }
.checkout-page .shipping_address { display: none; }
.checkout-page .checkout-totals { width: 100%; margin: 0; padding-block: 16px; border: 0; border-collapse: collapse; font-size: 11px; }
.checkout-page .checkout-totals :is(th, td) { padding: 7px 0; border: 0; text-align: right; font-weight: 400; }
.checkout-page .checkout-totals td { text-align: left; white-space: nowrap; }
.checkout-page .checkout-totals th { color: var(--muted); }
.checkout-page .checkout-totals .shipping td { white-space: normal; }
.checkout-page .checkout-totals ul#shipping_method { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.checkout-page .checkout-totals ul#shipping_method li { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 0; }
.checkout-page .checkout-totals .woocommerce-shipping-destination,
.checkout-page .checkout-totals .woocommerce-shipping-calculator { margin-top: 7px; color: var(--muted); font-size: 9px; }
.checkout-page .checkout-total-value { font-size: 22px; font-weight: 850; }
.checkout-page .woocommerce-Price-currencySymbol { display: none; }
.checkout-page .woocommerce-Price-amount::after { content: " تومان"; color: var(--muted); font-size: 8px; font-weight: 500; }
.checkout-page .checkout-product .variation { display: inline-flex; gap: 3px; margin: 0 0 0 4px; }
.checkout-page .checkout-product .variation dt { display: none; }
.checkout-page .checkout-product .variation dd { margin: 0; }
.checkout-page .checkout-product .variation p { margin: 0; }
.checkout-page .checkout-product > b .woocommerce-Price-amount { font-size: 10px; }
.woocommerce-checkout .checkout-page #payment.checkout-payment { padding: 25px; border-radius: 18px; background: #fff; }
.woocommerce-checkout .checkout-page #payment ul.payment_methods { display: grid; gap: 10px; margin: 0; padding: 16px 0; border: 0; text-align: right; }
.woocommerce-checkout .checkout-page #payment ul.payment_methods li { margin: 0; line-height: 1.8; text-align: right; }
.woocommerce-checkout .checkout-page #payment ul.payment_methods li input { margin: 0; }
.woocommerce-checkout .checkout-page #payment div.payment_box { position: static; width: auto; margin: 0; padding: 10px 13px; border-radius: 0; background: var(--cream); color: var(--muted); font-size: 9px; line-height: 1.8; }
.woocommerce-checkout .checkout-page #payment div.payment_box::before { display: none; }
.woocommerce-checkout .checkout-page #payment div.form-row.place-order { display: block; width: 100%; margin: 0; padding: 0; clear: both; box-sizing: border-box; }
.checkout-page .wc_payment_method > label > img { max-width: 60px; max-height: 28px; margin-right: auto; object-fit: contain; }
.checkout-page .checkout-no-payment { padding: 12px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); }
.checkout-page .checkout-no-payment .woocommerce-info { margin: 0; border: 0; background: transparent; }
.woocommerce .checkout-page #place_order.checkout-place-order,
.woocommerce-page .checkout-page #place_order.checkout-place-order { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 18px; margin: 15px 0 0; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: inherit; font-size: 13px; font-weight: 750; line-height: 1.8; text-transform: none; }
.woocommerce .checkout-page #payment #place_order.checkout-place-order,
.woocommerce-page .checkout-page #payment #place_order.checkout-place-order { float: none; clear: both; box-sizing: border-box; }
.woocommerce .checkout-page #place_order.checkout-place-order:hover,
.woocommerce-page .checkout-page #place_order.checkout-place-order:hover { background: var(--green-soft); color: #fff; }
.checkout-page .woocommerce-privacy-policy-text { display: block; width: 100%; margin: 0; color: var(--muted); font-size: 9px; line-height: 2; direction: rtl; text-align: right; clear: both; }
.checkout-page .woocommerce-privacy-policy-text p { width: 100%; margin: 0; word-break: normal; overflow-wrap: break-word; }
.checkout-page .checkout-secure { width: 100%; clear: both; box-sizing: border-box; }
.checkout-page .woocommerce-terms-and-conditions-wrapper { margin-top: 10px; }
.checkout-page .woocommerce-form__label-for-checkbox { cursor: pointer; }
.checkout-page svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 880px) {
  .woocommerce .checkout-page #order_review,
  .woocommerce-page .checkout-page #order_review { width: 100%; }
}

@media (max-width: 600px) {
  .checkout-page .checkout-login-notice { margin-bottom: 18px; }
  .checkout-page .checkout-fields { grid-template-columns: minmax(0, 1fr); }
  .checkout-page .checkout-review { gap: 16px; }
  .checkout-page .checkout-total-value { font-size: 19px; }
  .checkout-page .checkout-product > b { text-align: left; }
  .checkout-page .checkout-order-card,
  .woocommerce-checkout .checkout-page #payment.checkout-payment { padding: 18px; }
  .checkout-page .wc_payment_method > label { grid-template-columns: 32px minmax(0, 1fr) 18px; }
}
.product-detail .amani-review-form .must-log-in a { color: var(--green); font-weight: 800; }

@media (max-width: 980px) {
  .product-detail .amani-reviews__layout { grid-template-columns: 1fr; }
  .product-detail .amani-review-form { position: static; }
}

@media (max-width: 640px) {
  .product-detail .amani-reviews__intro { grid-template-columns: 1fr; gap: 18px; padding: 21px 18px; }
  .product-detail .amani-reviews__score { width: 100%; min-width: 0; }
  .product-detail .amani-reviews__distribution { grid-template-columns: 1fr; gap: 6px; }
  .product-detail .amani-reviews__distribution > div { grid-template-columns: 52px 1fr 20px; }
  .product-detail .amani-reviews__list,
  .product-detail .amani-review-form { padding: 16px; border-radius: 17px; }
  .product-detail #comments .amani-review-card__body { grid-template-columns: 42px 1fr; gap: 11px; padding: 14px; }
  .product-detail .amani-review-card__avatar img { width: 42px; height: 42px; }
  .product-detail .amani-review-card__content header { display: grid; }
  .product-detail #comments .commentlist .children { margin-right: 18px; }
  .product-detail #review_form_wrapper form.amani-review-form__fields { grid-template-columns: 1fr; }
  .product-detail .amani-review-form .comment-form-author,
  .product-detail .amani-review-form .comment-form-email { grid-column: 1 / -1; }
}
.journal-grid--single {
	grid-template-columns: minmax(0, 1fr);
}
