/* TopGift Jannah Child — visual layer only. */
:root {
  --tg-bg: #1c212e;
  --tg-bg-deep: #121827;
  --tg-surface: #242b3d;
  --tg-surface-2: #2c3449;
  --tg-surface-3: #333d55;
  --tg-border: #36415b;
  --tg-border-strong: #46536f;
  --tg-text: #f7f9fc;
  --tg-text-2: #d8deea;
  --tg-muted: #8f9bb3;
  --tg-brand: #00ffb2;
  --tg-brand-2: #2fc8e3;
  --tg-danger: #ff6671;
  --tg-warning: #fdac41;
  --tg-success: #39da8a;
  --tg-radius-sm: 10px;
  --tg-radius: 16px;
  --tg-radius-lg: 24px;
  --tg-shadow: 0 24px 70px rgba(4, 10, 24, .28);
  --tg-header-height: 76px;
}

html {
  background: var(--tg-bg);
  scroll-behavior: smooth;
}

body.topgift-design,
body.topgift-design #tie-container,
body.topgift-design #tie-wrapper,
body.topgift-design .background-overlay {
  background: var(--tg-bg) !important;
  color: var(--tg-text-2);
}

body.topgift-design {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.topgift-design,
body.topgift-design button,
body.topgift-design input,
body.topgift-design select,
body.topgift-design textarea {
  font-family: inherit;
}

body.topgift-design a {
  color: var(--tg-text-2);
  text-decoration: none;
}

body.topgift-design a:hover,
body.topgift-design a:focus {
  color: var(--tg-brand);
}

body.topgift-design h1,
body.topgift-design h2,
body.topgift-design h3,
body.topgift-design h4,
body.topgift-design h5,
body.topgift-design h6 {
  color: var(--tg-text);
  letter-spacing: normal;
}

body.topgift-design img {
  max-width: 100%;
  height: auto;
}

body.topgift-design :focus-visible {
  outline: 2px solid var(--tg-brand);
  outline-offset: 3px;
}

/* Header */
.tg-header-marker {
  display: block;
  width: 1px;
  height: 1px;
}

.tg-header {
  position: sticky;
  top: 0;
  z-index: 9995;
  background: rgba(20, 27, 41, .96);
  border-bottom: 1px solid rgba(70, 83, 111, .68);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background-color .25s ease;
}

.admin-bar .tg-header {
  top: 32px;
}

.tg-header.is-scrolled {
  background: rgba(17, 23, 36, .985);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .32);
}

.tg-header-line {
  height: 2px;
  background: linear-gradient(90deg, #19e7bd 0%, #2fc8e3 45%, #00ffb2 100%);
  opacity: .9;
}

.tg-header-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: var(--tg-header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  direction: rtl;
}

.tg-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 141px;
}

.tg-brand img {
  display: block;
  width: 141px;
  height: auto;
}

.tg-nav {
  min-width: 0;
}

.tg-menu,
.tg-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tg-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  direction: rtl;
}

.tg-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.tg-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 11px;
  color: var(--tg-text-2) !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.tg-menu > li > a::after {
  content: "";
  position: absolute;
  right: 13px;
  left: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tg-brand), var(--tg-brand-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.tg-menu > li:hover > a,
.tg-menu > li.current-menu-item > a,
.tg-menu > li.current-menu-ancestor > a,
.tg-menu > li.current_page_item > a {
  color: var(--tg-text) !important;
  background: rgba(255, 255, 255, .055);
}

.tg-menu > li:hover > a::after,
.tg-menu > li.current-menu-item > a::after,
.tg-menu > li.current-menu-ancestor > a::after,
.tg-menu > li.current_page_item > a::after {
  transform: scaleX(1);
}

.tg-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--tg-border);
  border-radius: 14px;
  background: rgba(36, 43, 61, .99);
  box-shadow: var(--tg-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.tg-menu li:hover > .sub-menu,
.tg-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tg-menu .sub-menu .sub-menu {
  top: -8px;
  right: calc(100% + 8px);
}

.tg-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--tg-text-2) !important;
  font-size: 13px;
  line-height: 1.8;
  transition: background-color .18s ease, color .18s ease, padding .18s ease;
}

.tg-menu .sub-menu a:hover,
.tg-menu .sub-menu .current-menu-item > a {
  padding-right: 16px;
  color: var(--tg-text) !important;
  background: var(--tg-surface-3);
}

.tg-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  direction: ltr;
}

.tg-panel-button,
.tg-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tg-panel-button {
  min-height: 44px;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(0, 255, 178, .55);
  border-radius: 12px;
  color: #03291f !important;
  background: linear-gradient(135deg, var(--tg-brand) 0%, #35d8df 100%);
  box-shadow: 0 10px 24px rgba(0, 255, 178, .13);
  font-size: 13px;
  font-weight: 900;
  direction: rtl;
}

.tg-panel-button svg,
.tg-cart-link svg,
.tg-product-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-panel-button:hover {
  color: #03291f !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 255, 178, .22);
}

.tg-cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tg-border);
  border-radius: 12px;
  color: var(--tg-text-2) !important;
  background: var(--tg-surface);
}

.tg-cart-link:hover {
  color: var(--tg-brand) !important;
  border-color: rgba(0, 255, 178, .42);
  transform: translateY(-2px);
}

.tg-cart-count {
  position: absolute;
  top: -7px;
  left: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--tg-bg-deep);
  border-radius: 999px;
  color: #08251e;
  background: var(--tg-brand);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.tg-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--tg-border);
  border-radius: 12px;
  background: var(--tg-surface);
  cursor: pointer;
}

.tg-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--tg-text);
  transition: transform .22s ease, opacity .22s ease;
}

.tg-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tg-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.tg-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.tg-search-wrap {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  direction: rtl;
}

.tg-product-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.tg-product-search input[type="search"] {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 50px 0 18px;
  border: 1px solid var(--tg-border);
  border-radius: 15px;
  color: var(--tg-text);
  background: rgba(36, 43, 61, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  font-size: 14px;
  text-align: right;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.tg-product-search input[type="search"]::placeholder {
  color: #7f8da7;
  opacity: 1;
}

.tg-product-search input[type="search"]:focus {
  outline: none;
  border-color: rgba(0, 255, 178, .62);
  background: var(--tg-surface);
  box-shadow: 0 0 0 4px rgba(0, 255, 178, .08);
}

.tg-product-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.tg-product-search button {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #05251e;
  background: var(--tg-brand);
  cursor: pointer;
}

.tg-shop-shortcut {
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tg-border);
  border-radius: 15px;
  color: var(--tg-text-2) !important;
  background: var(--tg-surface);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tg-shop-shortcut:hover {
  border-color: rgba(0, 255, 178, .4);
  color: var(--tg-brand) !important;
}

/* Parent layout normalization */
body.topgift-design #content,
body.topgift-design .site-content,
body.topgift-design .main-content,
body.topgift-design #main-content {
  color: var(--tg-text-2);
}

body.topgift-design .site-content,
body.topgift-design #main-content {
  padding-top: 34px;
  padding-bottom: 60px;
}

body.topgift-design .container,
body.topgift-design .main-content-row {
  max-width: 1280px;
}

body.topgift-design .container-wrapper,
body.topgift-design .widget,
body.topgift-design .post-layout-1,
body.topgift-design .post-layout-2,
body.topgift-design .post-layout-3,
body.topgift-design .post-layout-4,
body.topgift-design .post-layout-5,
body.topgift-design .post-layout-6,
body.topgift-design .post-layout-7,
body.topgift-design .post-layout-8,
body.topgift-design .entry-content,
body.topgift-design .comment-list li,
body.topgift-design .comment-respond,
body.topgift-design .mag-box-container {
  border-color: var(--tg-border) !important;
  color: var(--tg-text-2);
  background-color: var(--tg-surface) !important;
  box-shadow: none !important;
}

body.topgift-design .container-wrapper {
  padding: 28px;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
}

body.topgift-design .post-components > div,
body.topgift-design .post-footer-on-top,
body.topgift-design .share-buttons,
body.topgift-design .author-box,
body.topgift-design .related-posts,
body.topgift-design .comments-area {
  border-color: var(--tg-border) !important;
}

body.topgift-design .entry-content p,
body.topgift-design .entry-content li,
body.topgift-design .entry-content td,
body.topgift-design .entry-content th,
body.topgift-design .post-content p {
  color: var(--tg-text-2);
}

body.topgift-design .entry-content a:not(.button):not(.btn),
body.topgift-design .post-content a:not(.button):not(.btn) {
  color: #43d9e2;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.topgift-design .entry-content a:not(.button):not(.btn):hover,
body.topgift-design .post-content a:not(.button):not(.btn):hover {
  color: var(--tg-brand);
}

body.topgift-design input[type="text"],
body.topgift-design input[type="email"],
body.topgift-design input[type="tel"],
body.topgift-design input[type="number"],
body.topgift-design input[type="password"],
body.topgift-design input[type="search"],
body.topgift-design input[type="url"],
body.topgift-design select,
body.topgift-design textarea {
  border-color: var(--tg-border) !important;
  color: var(--tg-text) !important;
  background-color: var(--tg-bg) !important;
  box-shadow: none !important;
}

body.topgift-design input::placeholder,
body.topgift-design textarea::placeholder {
  color: var(--tg-muted);
}

body.topgift-design input:focus,
body.topgift-design select:focus,
body.topgift-design textarea:focus {
  border-color: rgba(0, 255, 178, .58) !important;
  box-shadow: 0 0 0 4px rgba(0, 255, 178, .07) !important;
}

/* WooCommerce global */
body.topgift-commerce .container-wrapper {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}

body.topgift-commerce #main-content,
body.topgift-commerce .site-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.topgift-commerce .sidebar,
body.topgift-commerce #sidebar {
  display: none !important;
}

body.topgift-commerce .woocommerce,
body.topgift-commerce .woocommerce-page {
  color: var(--tg-text-2);
}

body.topgift-commerce .woocommerce-error,
body.topgift-commerce .woocommerce-info,
body.topgift-commerce .woocommerce-message {
  margin: 0 0 22px !important;
  padding: 16px 54px 16px 18px !important;
  border: 1px solid var(--tg-border) !important;
  border-radius: 14px;
  color: var(--tg-text-2) !important;
  background: var(--tg-surface) !important;
  box-shadow: none;
}

body.topgift-commerce .woocommerce-error::before,
body.topgift-commerce .woocommerce-info::before,
body.topgift-commerce .woocommerce-message::before {
  right: 19px;
  left: auto;
}

body.topgift-commerce .woocommerce-message {
  border-color: rgba(57, 218, 138, .3) !important;
}

body.topgift-commerce .woocommerce-info {
  border-color: rgba(47, 200, 227, .3) !important;
}

body.topgift-commerce .woocommerce-error {
  border-color: rgba(255, 102, 113, .35) !important;
}

body.topgift-commerce .woocommerce-breadcrumb {
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid var(--tg-border);
  border-radius: 12px;
  color: var(--tg-muted);
  background: rgba(36, 43, 61, .62);
  font-size: 12px;
  line-height: 1.8;
}

body.topgift-commerce .woocommerce-breadcrumb a {
  color: var(--tg-text-2);
}

body.topgift-commerce .woocommerce-breadcrumb a:hover {
  color: var(--tg-brand);
}

body.topgift-commerce .page-title,
body.topgift-commerce .woocommerce-products-header__title,
body.topgift-commerce h1.product_title {
  color: var(--tg-text);
  font-weight: 900;
}

body.topgift-commerce .woocommerce-products-header {
  margin-bottom: 25px;
}

body.topgift-commerce .woocommerce-products-header__title {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.5;
}

body.topgift-commerce .term-description {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  color: var(--tg-text-2);
  background: var(--tg-surface);
  line-height: 2;
}

body.topgift-commerce .woocommerce-result-count {
  color: var(--tg-muted);
  line-height: 44px;
}

body.topgift-commerce .woocommerce-ordering select {
  min-width: 220px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color-scheme: dark;
}

/* Product archive */
body.topgift-commerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0 !important;
}

body.topgift-commerce ul.products::before,
body.topgift-commerce ul.products::after {
  display: none !important;
}

body.topgift-commerce ul.products li.product {
  position: relative;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 12px 12px 16px !important;
  overflow: hidden;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  color: var(--tg-text-2);
  background: linear-gradient(180deg, rgba(47, 56, 78, .95), rgba(36, 43, 61, .98));
  box-shadow: 0 14px 38px rgba(5, 10, 23, .16);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

body.topgift-commerce ul.products li.product:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(0, 255, 178, .35);
  box-shadow: 0 22px 50px rgba(5, 10, 23, .28);
  background: linear-gradient(180deg, rgba(51, 61, 85, .98), rgba(39, 47, 66, .98));
}

body.topgift-commerce ul.products li.product .product-img,
body.topgift-commerce ul.products li.product > a:first-child {
  display: block;
}

body.topgift-commerce ul.products li.product a img,
body.topgift-commerce ul.products li.product .product-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px !important;
  border-radius: 13px;
  object-fit: cover;
  background: var(--tg-bg-deep);
  transition: transform .35s ease;
}

body.topgift-commerce ul.products li.product:hover a img {
  transform: scale(1.025);
}

body.topgift-commerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 54px;
  margin: 0;
  padding: 0 4px !important;
  color: var(--tg-text) !important;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.9;
  text-align: right;
}

body.topgift-commerce ul.products li.product .star-rating {
  margin: 10px 4px 0;
  color: var(--tg-warning);
  font-size: 12px;
}

body.topgift-commerce ul.products li.product .price {
  margin: 11px 4px 0 !important;
  color: var(--tg-brand) !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.8;
}

body.topgift-commerce ul.products li.product .price del {
  color: var(--tg-muted) !important;
  opacity: .8;
}

body.topgift-commerce ul.products li.product .price ins {
  color: var(--tg-brand) !important;
  text-decoration: none;
}

body.topgift-commerce ul.products li.product .button,
body.topgift-commerce ul.products li.product .added_to_cart {
  width: calc(100% - 8px);
  min-height: 42px;
  margin: 14px 4px 0 !important;
  padding: 9px 13px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 178, .5) !important;
  border-radius: 11px !important;
  color: #06271f !important;
  background: linear-gradient(135deg, var(--tg-brand), #34d7df) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.6 !important;
  text-align: center;
}

body.topgift-commerce ul.products li.product .button:hover,
body.topgift-commerce ul.products li.product .added_to_cart:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

body.topgift-commerce ul.products li.product .onsale,
body.topgift-commerce .single-product .onsale {
  top: 20px;
  right: 20px;
  left: auto;
  min-width: 50px;
  min-height: 29px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #fff;
  background: var(--tg-danger);
  box-shadow: 0 8px 22px rgba(255, 102, 113, .2);
  font-size: 11px;
  line-height: 20px;
}

body.topgift-commerce ul.products li.product .stock,
body.topgift-commerce ul.products li.product .out-of-stock {
  margin: 9px 4px 0;
  color: var(--tg-danger);
  font-size: 12px;
  font-weight: 800;
}

body.topgift-commerce nav.woocommerce-pagination {
  margin-top: 34px;
}

body.topgift-commerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 7px;
  padding: 0;
  overflow: visible;
  border: 0;
}

body.topgift-commerce nav.woocommerce-pagination ul li {
  border: 0;
}

body.topgift-commerce nav.woocommerce-pagination ul li a,
body.topgift-commerce nav.woocommerce-pagination ul li span {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tg-border);
  border-radius: 11px;
  color: var(--tg-text-2);
  background: var(--tg-surface);
}

body.topgift-commerce nav.woocommerce-pagination ul li a:hover,
body.topgift-commerce nav.woocommerce-pagination ul li span.current {
  border-color: rgba(0, 255, 178, .45);
  color: #05251e;
  background: var(--tg-brand);
}

/* Single product */
body.single-product .product.type-product {
  position: relative;
}

body.single-product .tg-product-hero {
  position: relative;
  margin-bottom: 28px;
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
  display: flow-root;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  background:
    radial-gradient(circle at 10% 12%, rgba(47, 200, 227, .11), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(0, 255, 178, .08), transparent 28%),
    linear-gradient(145deg, rgba(36, 43, 61, .99), rgba(20, 27, 41, .99));
  box-shadow: var(--tg-shadow);
}

body.single-product .tg-product-hero::before,
body.single-product .tg-product-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.single-product .tg-product-hero::before {
  width: 260px;
  height: 260px;
  top: -190px;
  left: -80px;
  border: 1px solid rgba(47, 200, 227, .1);
  box-shadow: 0 0 0 32px rgba(47, 200, 227, .03), 0 0 0 66px rgba(47, 200, 227, .02);
}

body.single-product .tg-product-hero::after {
  width: 210px;
  height: 210px;
  right: -145px;
  bottom: -145px;
  background: rgba(0, 255, 178, .035);
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

body.single-product div.product div.images {
  width: 39%;
  float: right;
  padding-left: 24px;
}

body.single-product div.product div.summary {
  width: 61%;
  float: left;
  padding: 6px 20px 6px 0;
  text-align: right;
  direction: rtl;
}

body.single-product div.product div.images .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border: 1px solid var(--tg-border);
  border-radius: 18px;
  background: var(--tg-bg-deep);
}

body.single-product div.product div.images img {
  display: block;
  width: 100%;
  margin: 0;
  object-fit: contain;
}

body.single-product .woocommerce-product-gallery__trigger {
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--tg-border) !important;
  border-radius: 11px !important;
  color: var(--tg-text) !important;
  background: rgba(20, 27, 41, .88) !important;
  box-shadow: none !important;
}

body.single-product .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px !important;
}

body.single-product .flex-control-thumbs li {
  width: auto !important;
  float: none !important;
}

body.single-product .flex-control-thumbs img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--tg-border);
  border-radius: 10px;
  object-fit: cover;
  opacity: .65;
  transition: opacity .2s ease, border-color .2s ease;
}

body.single-product .flex-control-thumbs img.flex-active,
body.single-product .flex-control-thumbs img:hover {
  border-color: var(--tg-brand);
  opacity: 1;
}

body.single-product .summary .product_title {
  margin: 0 0 14px !important;
  color: var(--tg-text) !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
}

body.single-product .summary .woocommerce-product-rating {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.single-product .summary .star-rating {
  margin: 0;
  color: var(--tg-warning);
  font-size: 14px;
}

body.single-product .summary .woocommerce-review-link {
  color: var(--tg-muted);
  font-size: 12px;
}

body.single-product .summary .price {
  margin: 8px 0 18px !important;
  color: var(--tg-brand) !important;
  font-size: clamp(19px, 2vw, 27px) !important;
  font-weight: 900;
}

body.single-product .summary .price del {
  color: var(--tg-muted) !important;
  font-size: .72em;
  opacity: .72;
}

body.single-product .summary .price ins {
  color: var(--tg-brand) !important;
  text-decoration: none;
}

body.single-product .summary .woocommerce-product-details__short-description,
body.single-product .summary .entry {
  margin: 0 0 20px;
  padding: 17px 19px;
  border: 1px solid var(--tg-border);
  border-radius: 14px;
  color: var(--tg-text-2);
  background: rgba(44, 52, 73, .68);
  font-size: 14px;
  line-height: 2;
}

body.single-product .summary .woocommerce-product-details__short-description p,
body.single-product .summary .entry p {
  margin-bottom: 8px;
  color: var(--tg-text-2);
}

body.single-product .summary form.cart {
  margin: 20px 0 0 !important;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  background: rgba(18, 24, 39, .46);
}

body.single-product .summary form.cart .variations {
  width: 100%;
  margin: 0 0 8px;
  border: 0;
}

body.single-product .summary form.cart .variations tr,
body.single-product .summary form.cart .variations td,
body.single-product .summary form.cart .variations th {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: right;
}

body.single-product .summary form.cart .variations th {
  margin-bottom: 7px;
}

body.single-product .summary form.cart .variations select {
  width: 100%;
  min-height: 46px;
  margin: 0 0 13px;
  padding: 0 13px;
  border-radius: 11px;
  color-scheme: dark;
}

body.single-product .summary form.cart .reset_variations {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--tg-danger);
  font-size: 12px;
}

body.single-product .summary .quantity {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
}

body.single-product .summary .quantity .qty {
  width: 76px;
  height: 48px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--tg-border);
  border-radius: 11px;
  color: var(--tg-text);
  background: var(--tg-surface);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

body.single-product .summary .single_add_to_cart_button,
body.topgift-commerce .button,
body.topgift-commerce button.button,
body.topgift-commerce input.button,
body.topgift-commerce a.button {
  min-height: 48px;
  padding: 10px 20px !important;
  border: 1px solid rgba(0, 255, 178, .5) !important;
  border-radius: 11px !important;
  color: #05271f !important;
  background: linear-gradient(135deg, var(--tg-brand), #35d6df) !important;
  box-shadow: 0 10px 24px rgba(0, 255, 178, .1) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.7 !important;
  text-shadow: none !important;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease !important;
}

body.single-product .summary .single_add_to_cart_button:hover,
body.topgift-commerce .button:hover,
body.topgift-commerce button.button:hover,
body.topgift-commerce input.button:hover,
body.topgift-commerce a.button:hover {
  color: #05271f !important;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 255, 178, .18) !important;
}

body.topgift-commerce .button.alt.disabled,
body.topgift-commerce .button.alt:disabled,
body.topgift-commerce .button.alt:disabled[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

body.single-product .summary .product_meta {
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid var(--tg-border);
  color: var(--tg-muted);
  font-size: 12px;
  line-height: 1.9;
}

body.single-product .summary .product_meta a {
  color: var(--tg-brand-2);
}

body.single-product div.product .woocommerce-tabs,
body.single-product div.product .related,
body.single-product div.product .upsells {
  clear: both;
}

body.single-product div.product .woocommerce-tabs {
  margin-top: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  background: var(--tg-surface);
  box-shadow: 0 18px 46px rgba(5, 10, 23, .14);
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

body.single-product div.product .woocommerce-tabs ul.tabs {
  margin: 0 0 24px !important;
  padding: 7px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  border: 1px solid var(--tg-border);
  border-radius: 14px;
  background: var(--tg-bg);
}

body.single-product div.product .woocommerce-tabs ul.tabs::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li a {
  padding: 10px 16px !important;
  border-radius: 10px;
  color: var(--tg-muted) !important;
  font-size: 13px;
  font-weight: 800;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active a,
body.single-product div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #05271f !important;
  background: var(--tg-brand);
}

body.single-product .woocommerce-Tabs-panel {
  margin: 0 !important;
  color: var(--tg-text-2);
  font-size: 15px;
  line-height: 2.15;
  text-align: right;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3,
body.single-product .woocommerce-Tabs-panel h4 {
  margin: 28px 0 13px;
  color: var(--tg-text);
  font-weight: 900;
  line-height: 1.7;
}

body.single-product .woocommerce-Tabs-panel h2:first-child,
body.single-product .woocommerce-Tabs-panel h3:first-child {
  margin-top: 0;
}

body.single-product .woocommerce-Tabs-panel p {
  color: var(--tg-text-2);
}

body.single-product .woocommerce-Tabs-panel img {
  border-radius: 15px;
}

body.single-product .woocommerce-Tabs-panel table,
body.topgift-commerce table.shop_table {
  overflow: hidden;
  border: 1px solid var(--tg-border) !important;
  border-radius: 14px !important;
  color: var(--tg-text-2);
  background: var(--tg-surface);
  border-collapse: separate !important;
  border-spacing: 0;
}

body.single-product .woocommerce-Tabs-panel table th,
body.single-product .woocommerce-Tabs-panel table td,
body.topgift-commerce table.shop_table th,
body.topgift-commerce table.shop_table td {
  padding: 13px 15px !important;
  border-color: var(--tg-border) !important;
  color: var(--tg-text-2);
  background: transparent;
}

body.single-product .woocommerce-Tabs-panel table th,
body.topgift-commerce table.shop_table th {
  color: var(--tg-text);
  background: rgba(18, 24, 39, .38);
}

body.single-product #reviews {
  color: var(--tg-text-2);
}

body.single-product #reviews #comments ol.commentlist li {
  margin: 0 0 14px;
  padding: 15px;
  border: 1px solid var(--tg-border);
  border-radius: 14px;
  background: rgba(18, 24, 39, .35);
}

body.single-product #reviews #comments ol.commentlist li img.avatar {
  width: 48px;
  padding: 0;
  border: 1px solid var(--tg-border);
  border-radius: 50%;
  background: var(--tg-surface-2);
}

body.single-product #reviews #comments ol.commentlist li .comment-text {
  margin: 0 64px 0 0;
  border: 0;
  color: var(--tg-text-2);
}

body.single-product #review_form_wrapper {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--tg-border);
  border-radius: 14px;
  background: rgba(18, 24, 39, .34);
}

body.single-product #review_form textarea {
  min-height: 140px;
  padding: 12px 14px;
  border-radius: 12px;
}

body.single-product .related,
body.single-product .upsells {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  background: var(--tg-surface);
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

body.single-product .related > h2,
body.single-product .upsells > h2 {
  margin: 0 0 20px;
  color: var(--tg-text);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
}

/* Cart / checkout / account */
body.topgift-commerce .cart-collaterals .cart_totals,
body.topgift-commerce form.checkout,
body.topgift-commerce .woocommerce-checkout-review-order,
body.topgift-commerce .woocommerce-MyAccount-navigation,
body.topgift-commerce .woocommerce-MyAccount-content,
body.topgift-commerce form.login,
body.topgift-commerce form.register,
body.topgift-commerce form.lost_reset_password {
  padding: 22px;
  border: 1px solid var(--tg-border) !important;
  border-radius: var(--tg-radius) !important;
  color: var(--tg-text-2);
  background: var(--tg-surface) !important;
  box-shadow: none;
}

body.topgift-commerce .cart-collaterals .cart_totals h2,
body.topgift-commerce .woocommerce-billing-fields h3,
body.topgift-commerce .woocommerce-additional-fields h3,
body.topgift-commerce #order_review_heading,
body.topgift-commerce .woocommerce-MyAccount-content h2,
body.topgift-commerce .woocommerce-MyAccount-content h3 {
  color: var(--tg-text);
  font-weight: 900;
}

body.topgift-commerce .coupon {
  display: flex;
  gap: 8px;
}

body.topgift-commerce .coupon input.input-text {
  width: 180px !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 10px;
}

body.topgift-commerce .woocommerce-checkout .form-row label,
body.topgift-commerce .woocommerce-account .form-row label {
  margin-bottom: 7px;
  color: var(--tg-text-2);
  font-weight: 700;
}

body.topgift-commerce .select2-container .select2-selection--single,
body.topgift-commerce .select2-container .select2-selection--multiple {
  min-height: 48px;
  border: 1px solid var(--tg-border);
  border-radius: 11px;
  color: var(--tg-text);
  background: var(--tg-bg);
}

body.topgift-commerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--tg-text);
  line-height: 46px;
}

body.topgift-commerce .select2-dropdown {
  border-color: var(--tg-border);
  color: var(--tg-text-2);
  background: var(--tg-surface);
}

body.topgift-commerce .select2-results__option--highlighted[data-selected],
body.topgift-commerce .select2-results__option--highlighted[aria-selected] {
  color: #06271f;
  background: var(--tg-brand);
}

body.topgift-commerce #payment {
  border: 1px solid var(--tg-border);
  border-radius: 14px;
  color: var(--tg-text-2);
  background: var(--tg-bg) !important;
}

body.topgift-commerce #payment ul.payment_methods,
body.topgift-commerce #payment div.form-row {
  border-color: var(--tg-border) !important;
}

body.topgift-commerce #payment div.payment_box {
  color: var(--tg-text-2);
  background: var(--tg-surface-2);
}

body.topgift-commerce #payment div.payment_box::before {
  border-bottom-color: var(--tg-surface-2);
}

body.topgift-commerce .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.topgift-commerce .woocommerce-MyAccount-navigation li {
  margin: 0 0 7px;
}

body.topgift-commerce .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--tg-text-2);
  background: var(--tg-bg);
}

body.topgift-commerce .woocommerce-MyAccount-navigation li.is-active a,
body.topgift-commerce .woocommerce-MyAccount-navigation a:hover {
  color: #05271f;
  background: var(--tg-brand);
}

/* Footer */
.tg-footer {
  margin-top: 30px;
  border-top: 1px solid var(--tg-border);
  color: var(--tg-text-2);
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 200, 227, .07), transparent 26%),
    linear-gradient(180deg, #171d2b, #111722);
}

.tg-footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 1.5fr) auto;
  align-items: center;
  gap: 30px;
  direction: rtl;
}

.tg-footer-brand img {
  width: 141px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.tg-footer-brand p {
  max-width: 360px;
  margin: 0;
  color: var(--tg-muted);
  font-size: 12px;
  line-height: 1.9;
}

.tg-footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tg-footer-menu a {
  display: inline-flex;
  padding: 7px 5px;
  color: var(--tg-text-2) !important;
  font-size: 12px;
}

.tg-footer-menu a:hover {
  color: var(--tg-brand) !important;
}

.tg-footer-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tg-footer-actions a {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tg-border);
  border-radius: 11px;
  color: var(--tg-text-2) !important;
  background: var(--tg-surface);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tg-footer-actions a.is-primary {
  border-color: rgba(0, 255, 178, .45);
  color: #05271f !important;
  background: var(--tg-brand);
}

.tg-footer-bottom {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(70, 83, 111, .65);
  color: var(--tg-muted);
  font-size: 11px;
  direction: rtl;
}

/* Jannah floating elements and common plugin fixes */
body.topgift-design #go-to-top {
  right: auto;
  left: 24px;
  border: 1px solid var(--tg-border);
  color: var(--tg-text);
  background: var(--tg-surface);
}

body.topgift-design .breaking-title,
body.topgift-design .block-title,
body.topgift-design .widget-title {
  color: var(--tg-text);
}

body.topgift-design .widget-title::after,
body.topgift-design .block-title::after {
  background: var(--tg-brand);
}

body.topgift-design .post-meta,
body.topgift-design .post-meta a,
body.topgift-design .meta-item,
body.topgift-design .entry-header .post-meta {
  color: var(--tg-muted) !important;
}

body.topgift-design .tie-icon::before,
body.topgift-design [class^="tie-icon-"]::before,
body.topgift-design [class*=" tie-icon-"]::before {
  color: inherit;
}

/* Responsive */
@media (max-width: 1180px) {
  .tg-header-inner {
    gap: 16px;
  }

  .tg-menu > li > a {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 12px;
  }

  body.topgift-commerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --tg-header-height: 68px;
  }

  .admin-bar .tg-header {
    top: 32px;
  }

  .tg-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: min(100% - 28px, 1280px);
  }

  .tg-brand {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
  }

  .tg-menu-toggle {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  .tg-header-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .tg-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    max-height: min(70vh, 620px);
    padding: 10px;
    overflow: auto;
    border: 1px solid var(--tg-border);
    border-radius: 0 0 16px 16px;
    background: rgba(31, 38, 55, .99);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.99);
    transform-origin: top center;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }

  .tg-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .tg-menu {
    display: block;
  }

  .tg-menu > li > a {
    min-height: 45px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .tg-menu > li > a::after {
    right: 13px;
    left: auto;
    width: 3px;
    top: 11px;
    bottom: 11px;
    height: auto;
    transform: scaleY(0);
  }

  .tg-menu > li:hover > a::after,
  .tg-menu > li.current-menu-item > a::after,
  .tg-menu > li.current-menu-ancestor > a::after,
  .tg-menu > li.current_page_item > a::after {
    transform: scaleY(1);
  }

  .tg-menu .sub-menu,
  .tg-menu .sub-menu .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 12px 7px;
    padding: 5px;
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(18, 24, 39, .48);
  }

  .tg-menu li.submenu-open > .sub-menu {
    display: block;
  }

  .tg-menu .sub-menu a {
    padding: 8px 10px;
  }

  .tg-search-wrap {
    width: min(100% - 28px, 1280px);
  }

  body.tg-menu-open {
    overflow: hidden;
  }

  body.single-product div.product div.images {
    width: 43%;
  }

  body.single-product div.product div.summary {
    width: 57%;
  }

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

  .tg-footer-actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 782px) {
  .admin-bar .tg-header {
    top: 46px;
  }

  body.topgift-design .site-content,
  body.topgift-design #main-content {
    padding-top: 22px;
    padding-bottom: 38px;
  }

  body.topgift-design .container-wrapper {
    padding: 18px;
    border-radius: var(--tg-radius);
  }

  .tg-panel-button span {
    display: none;
  }

  .tg-panel-button {
    width: 44px;
    padding: 0;
  }

  .tg-search-wrap {
    grid-template-columns: 1fr;
  }

  .tg-shop-shortcut {
    display: none;
  }

  body.topgift-commerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.topgift-commerce ul.products li.product {
    padding: 9px 9px 13px !important;
    border-radius: 14px;
  }

  body.topgift-commerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 50px;
    font-size: 13px !important;
  }

  body.topgift-commerce .woocommerce-result-count,
  body.topgift-commerce .woocommerce-ordering {
    width: 100%;
    float: none;
  }

  body.topgift-commerce .woocommerce-result-count {
    margin-bottom: 8px;
    line-height: 1.8;
  }

  body.topgift-commerce .woocommerce-ordering select {
    width: 100%;
  }

  body.single-product .tg-product-hero {
    padding: 15px;
  }

  body.single-product div.product div.images,
  body.single-product div.product div.summary {
    width: 100%;
    float: none;
    padding: 0;
  }

  body.single-product div.product div.images {
    margin-bottom: 22px;
  }

  body.single-product .summary .product_title {
    font-size: 25px !important;
  }

  body.single-product .summary form.cart {
    align-items: stretch;
  }

  body.single-product .summary .quantity {
    flex: 0 0 82px;
  }

  body.single-product .summary .single_add_to_cart_button {
    flex: 1 1 180px;
  }

  body.single-product div.product .woocommerce-tabs,
  body.single-product .related,
  body.single-product .upsells {
    padding: 16px;
    border-radius: var(--tg-radius);
  }

  body.single-product div.product .woocommerce-tabs ul.tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.single-product div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    text-align: center;
  }

  body.topgift-commerce table.shop_table_responsive tr,
  body.topgift-commerce .woocommerce-page table.shop_table_responsive tr {
    border-color: var(--tg-border);
  }

  .tg-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tg-footer-brand img {
    margin-right: auto;
    margin-left: auto;
  }

  .tg-footer-brand p {
    margin-right: auto;
    margin-left: auto;
  }

  .tg-footer-menu,
  .tg-footer-actions {
    justify-content: center;
  }

  .tg-footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .tg-header-inner {
    width: calc(100% - 20px);
    gap: 8px;
  }

  .tg-brand,
  .tg-brand img {
    width: 116px;
    min-width: 116px;
  }

  .tg-menu-toggle,
  .tg-panel-button,
  .tg-cart-link {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .tg-header-actions {
    gap: 5px;
  }

  .tg-search-wrap {
    width: calc(100% - 20px);
    padding-bottom: 12px;
  }

  .tg-product-search input[type="search"] {
    height: 46px;
    font-size: 16px;
  }

  body.topgift-commerce ul.products {
    gap: 9px;
  }

  body.topgift-commerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px;
    padding: 0 2px !important;
    font-size: 12px !important;
    line-height: 1.85;
  }

  body.topgift-commerce ul.products li.product .price {
    margin-right: 2px !important;
    margin-left: 2px !important;
    font-size: 12px !important;
  }

  body.topgift-commerce ul.products li.product .button,
  body.topgift-commerce ul.products li.product .added_to_cart {
    width: calc(100% - 4px);
    min-height: 39px;
    margin-right: 2px !important;
    margin-left: 2px !important;
    padding: 7px 8px !important;
    font-size: 11px !important;
  }

  body.single-product .summary .product_title {
    font-size: 22px !important;
  }

  body.single-product .summary .woocommerce-product-details__short-description,
  body.single-product .summary .entry {
    padding: 14px;
    font-size: 13px;
  }

  body.single-product .summary form.cart {
    padding: 13px;
  }

  body.topgift-commerce .coupon {
    flex-direction: column;
  }

  body.topgift-commerce .coupon input.input-text {
    width: 100% !important;
  }

  body.topgift-design input[type="text"],
  body.topgift-design input[type="email"],
  body.topgift-design input[type="tel"],
  body.topgift-design input[type="number"],
  body.topgift-design input[type="password"],
  body.topgift-design input[type="search"],
  body.topgift-design input[type="url"],
  body.topgift-design select,
  body.topgift-design textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==============================================================
   TopGift 1.1 fixes: local Persian font, full-width WooCommerce,
   stable product layout and footer matched to shop.topgiftcard.ir.
   ============================================================== */
@font-face {
  font-family: "IRANSansXFa";
  src: url("../fonts/IRANSansXFaNum-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansXFa";
  src: url("../fonts/IRANSansXFaNum-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

html[lang="fa-IR"] body.topgift-design,
html[lang="fa"] body.topgift-design,
body.rtl.topgift-design {
  font-family: "IRANSansXFa", Tahoma, Arial, sans-serif !important;
  font-variant-numeric: normal;
  letter-spacing: normal !important;
}

body.topgift-design :where(h1, h2, h3, h4, h5, h6, p, a, li, button, input, select, textarea, label, table, blockquote, .entry-content, .post-content, .woocommerce, .tg-header, .tg-site-footer) {
  font-family: "IRANSansXFa", Tahoma, Arial, sans-serif !important;
  letter-spacing: normal !important;
}

/* The Jannah WooCommerce wrapper kept its desktop 8-column width while
   the sidebar was hidden. Force the remaining content to occupy the row. */
body.topgift-commerce .main-content-row {
  display: block !important;
}

body.topgift-commerce .main-content,
body.topgift-commerce #main-content,
body.topgift-commerce .site-content,
body.topgift-commerce .tie-col-md-8,
body.topgift-commerce .tie-col-md-9,
body.topgift-commerce .tie-col-md-12 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.topgift-commerce .sidebar,
body.topgift-commerce #sidebar,
body.topgift-commerce .normal-side {
  display: none !important;
}

body.topgift-commerce .container {
  width: min(1280px, calc(100% - 40px)) !important;
  max-width: 1280px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Product hero: grid prevents inherited margins/padding from pushing
   the summary below the image. */
body.single-product .tg-product-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, .78fr);
  column-gap: clamp(22px, 3vw, 38px);
  row-gap: 20px;
  align-items: start;
  direction: ltr;
}

body.single-product .tg-product-hero::before,
body.single-product .tg-product-hero::after {
  display: none !important;
}

body.single-product .tg-product-hero > .woocommerce-product-gallery,
body.single-product .tg-product-hero > div.images {
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  direction: rtl;
}

body.single-product .tg-product-hero > .summary,
body.single-product .tg-product-hero > div.summary {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 4px 0 0 !important;
  box-sizing: border-box;
  direction: rtl;
}

body.single-product .tg-product-hero .summary .product_title,
body.single-product .tg-product-hero .summary .price,
body.single-product .tg-product-hero .summary .woocommerce-product-rating,
body.single-product .tg-product-hero .summary form.cart .button,
body.single-product .tg-product-hero .summary .woocommerce-review-link {
  float: none !important;
}

body.single-product .tg-product-hero .summary .woocommerce-product-rating {
  justify-content: flex-start;
  width: 100%;
}

body.single-product .tg-product-hero .summary .woocommerce-product-details__short-description {
  clear: none !important;
}

body.single-product .tg-product-hero .woocommerce-product-gallery__wrapper,
body.single-product .tg-product-hero .woocommerce-product-gallery__image,
body.single-product .tg-product-hero .woocommerce-product-gallery__image > a {
  width: 100%;
}

body.single-product .tg-product-hero .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
}

/* Exact TopGift shop-style footer */
.tg-site-footer {
  direction: rtl;
  clear: both;
  margin-top: 42px;
  padding: 0 12px 18px;
  color: #eaf0fb;
  font-family: "IRANSansXFa", Tahoma, Arial, sans-serif !important;
}

.tg-footer-shell {
  width: min(1240px, 100%);
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(20, 229, 189, .09), transparent 27%),
    linear-gradient(145deg, #242d42 0%, #1d2536 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.tg-footer-main {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) repeat(2, minmax(150px, .8fr)) minmax(240px, 1.25fr);
  grid-template-areas: "trust guide quick brand";
  gap: 0;
  padding: 30px 28px 24px;
  direction: ltr;
}

.tg-footer-brand { grid-area: brand; }
.tg-footer-quick { grid-area: quick; }
.tg-footer-guide { grid-area: guide; }
.tg-footer-trust { grid-area: trust; }

.tg-footer-main > .tg-footer-column {
  direction: rtl;
}

.tg-footer-column {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, .055);
}

.tg-footer-column:first-child {
  padding-right: 0;
}

.tg-footer-column:last-child {
  padding-left: 0;
  border-left: 0;
}

.tg-footer-brand__logo {
  display: inline-block;
  margin-bottom: 15px;
}

.tg-footer-brand__logo img {
  display: block;
  width: auto !important;
  max-width: 150px !important;
  height: auto !important;
  max-height: 74px !important;
  margin: 0 !important;
  object-fit: contain;
}

.tg-footer-brand h3 {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
}

.tg-footer-brand p {
  max-width: 330px !important;
  margin: 0 !important;
  color: #a9b4ca !important;
  font-size: 12px !important;
  line-height: 2 !important;
}

.tg-footer-title {
  position: relative;
  margin: 0 0 18px !important;
  padding: 0 0 11px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
}

.tg-footer-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #14e5bd, #02bfa0);
}

.tg-footer-links {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tg-footer-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tg-footer-links li + li {
  margin-top: 9px !important;
}

.tg-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
  color: #abb6cb !important;
  background: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}

.tg-footer-links a::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(20, 229, 189, .48);
}

.tg-footer-links a:hover {
  color: #20dfbc !important;
  transform: translateX(-3px);
}

.tg-footer-socials {
  display: flex;
  margin: 17px 0 0 !important;
  padding: 0 !important;
  gap: 9px;
  flex-wrap: wrap;
  list-style: none !important;
}

.tg-footer-socials li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tg-footer-socials a {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035) !important;
  color: #19dfba !important;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.tg-footer-socials a:hover {
  color: #fff !important;
  border-color: rgba(20, 229, 189, .32);
  background: rgba(20, 229, 189, .09) !important;
  transform: translateY(-3px);
}

.tg-footer-socials svg,
.tg-footer-feature svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-footer-support {
  display: flex !important;
  margin-top: 16px;
  align-items: center;
  gap: 11px;
  padding: 12px !important;
  border: 1px solid rgba(20, 229, 189, .14) !important;
  border-radius: 14px;
  background: rgba(20, 229, 189, .045) !important;
  text-decoration: none !important;
}

.tg-footer-support__icon {
  width: 48px;
  height: 48px;
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 229, 189, .25);
  border-radius: 14px;
  background: rgba(20, 229, 189, .12);
  color: #14e5bd;
}

.tg-footer-support__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg-footer-support strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.8;
}

.tg-footer-support small {
  display: block;
  margin-top: 3px;
  color: #9eabc2;
  font-size: 10px;
  line-height: 1.7;
}

.tg-footer-certificates {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 16px;
  background: rgba(9, 14, 24, .25);
  flex-wrap: wrap;
}

.tg-footer-certificates a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-footer-certificates img {
  width: auto !important;
  max-width: 96px !important;
  height: auto !important;
  max-height: 110px !important;
  margin: 0 !important;
  object-fit: contain;
}

.tg-footer-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.tg-footer-feature {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 14px;
  border-left: 1px solid rgba(255, 255, 255, .055);
}

.tg-footer-feature:last-child {
  border-left: 0;
}

.tg-footer-feature__icon {
  color: #1ee1bb;
}

.tg-footer-feature strong {
  display: block;
  color: #eef3fc;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.7;
}

.tg-footer-feature small {
  display: block;
  margin-top: 2px;
  color: #8f9bb2;
  font-size: 9px;
  line-height: 1.7;
}

.tg-site-footer .tg-footer-bottom {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 17px 28px !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  border-top: 0 !important;
  color: #929eb4;
  background: transparent;
  font-size: 10px;
  direction: rtl;
}

.tg-site-footer .tg-footer-bottom p {
  margin: 0 !important;
  color: #929eb4 !important;
  font-size: 10px !important;
  line-height: 1.9 !important;
}

.tg-site-footer .tg-footer-bottom a {
  color: #21dcbc !important;
  text-decoration: none !important;
}

@media (max-width: 991px) {
  body.single-product .tg-product-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  }

  .tg-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "quick brand"
      "trust guide";
    row-gap: 28px;
  }

  .tg-footer-column,
  .tg-footer-column:first-child,
  .tg-footer-column:last-child {
    padding: 0 16px;
    border-left: 0;
  }

  .tg-footer-column:nth-child(odd) {
    border-left: 1px solid rgba(255, 255, 255, .055);
  }

  .tg-footer-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-footer-feature:nth-child(2) {
    border-left: 0;
  }

  .tg-footer-feature:nth-child(-n+2) {
    margin-bottom: 12px;
  }
}

@media (max-width: 782px) {
  body.topgift-commerce .container {
    width: min(100% - 24px, 1280px) !important;
  }

  body.single-product .tg-product-hero {
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    direction: rtl;
  }

body.single-product .tg-product-hero > .woocommerce-product-gallery,
  body.single-product .tg-product-hero > div.images,
  body.single-product .tg-product-hero > .summary,
  body.single-product .tg-product-hero > div.summary {
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .tg-site-footer {
    margin-top: 30px;
    padding: 0;
  }

  .tg-footer-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .tg-footer-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "quick"
      "guide"
      "trust";
    padding: 23px 18px 19px;
    row-gap: 24px;
  }

  .tg-footer-column,
  .tg-footer-column:nth-child(odd),
  .tg-footer-column:first-child,
  .tg-footer-column:last-child {
    padding: 0;
    border-left: 0;
  }

  .tg-footer-brand {
    text-align: center;
  }

  .tg-footer-brand p {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .tg-footer-brand__logo img {
    max-width: 130px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .tg-footer-socials {
    justify-content: center;
  }

  .tg-footer-title {
    font-size: 13px !important;
  }

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

  .tg-footer-links li + li {
    margin-top: 0 !important;
  }

  .tg-footer-links a {
    font-size: 11px !important;
  }

  .tg-footer-certificates {
    min-height: auto;
    padding: 12px;
  }

  .tg-footer-certificates img {
    max-width: 82px !important;
    max-height: 95px !important;
  }

  .tg-footer-features {
    grid-template-columns: 1fr 1fr;
    margin: 0 18px;
  }

  .tg-footer-feature {
    padding: 8px 5px;
    gap: 7px;
  }

  .tg-footer-feature strong {
    font-size: 10px;
  }

  .tg-footer-feature small {
    font-size: 8px;
  }

  .tg-site-footer .tg-footer-bottom {
    align-items: center;
    flex-direction: column;
    padding: 15px 18px !important;
    text-align: center;
  }
}

/* Final typography tuning for long Persian product titles. */
body.single-product .tg-product-hero .summary .product_title {
  font-size: clamp(23px, 2.35vw, 30px) !important;
  line-height: 1.65 !important;
}

/* ==============================================================
   TopGift 1.2 — exact public header, clean product summary/gallery,
   official logo in header/footer and removal of obsolete search row.
   ============================================================== */
.tg-header-line,
.tg-search-wrap,
.tg-shop-shortcut,
.tg-cart-link {
  display: none !important;
}

.tg-header {
  position: sticky;
  top: 0;
  z-index: 9995;
  overflow: visible;
  background: linear-gradient(180deg, #1d2637 0%, #192232 100%) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(77, 190, 215, .16) !important;
  box-shadow: 0 8px 24px rgba(2, 8, 20, .16), inset 0 -1px 0 rgba(255, 255, 255, .018) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.admin-bar .tg-header {
  top: 32px;
}

.tg-header.is-scrolled {
  background: linear-gradient(180deg, #1d2637 0%, #192232 100%) !important;
  box-shadow: 0 12px 30px rgba(2, 8, 20, .25), inset 0 -1px 0 rgba(255, 255, 255, .018) !important;
}

.tg-header-inner {
  width: min(1320px, calc(100% - 48px)) !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 8px 0 !important;
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) 112px !important;
  grid-template-areas: "actions nav brand" !important;
  align-items: center !important;
  gap: 18px !important;
  direction: ltr !important;
}

.tg-brand {
  grid-area: brand !important;
  width: 88px !important;
  min-width: 0 !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  overflow: visible !important;
}

.tg-brand img {
  display: block !important;
  width: auto !important;
  max-width: 82px !important;
  height: 58px !important;
  max-height: 58px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.tg-nav {
  grid-area: nav !important;
  min-width: 0 !important;
  align-self: stretch !important;
  direction: rtl !important;
}

.tg-main-menu {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: rtl !important;
}

.tg-main-menu > li {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
}

.tg-main-menu > li > a {
  position: relative !important;
  min-height: 42px !important;
  margin: 0 2px !important;
  padding: 9px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: #e7eef9 !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease !important;
}

.tg-main-menu > li > a::after {
  content: "" !important;
  position: absolute !important;
  right: 14px !important;
  bottom: 5px !important;
  left: 14px !important;
  width: auto !important;
  height: 2px !important;
  border-radius: 5px !important;
  background: linear-gradient(90deg, transparent, #37d9eb, #08e6b3, transparent) !important;
  opacity: 0 !important;
  transform: scaleX(.25) !important;
  transition: opacity .22s ease, transform .28s ease !important;
}

.tg-main-menu > li > a:hover,
.tg-main-menu > li > a:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(49, 209, 232, .09), rgba(8, 230, 179, .055)) !important;
  border-color: rgba(76, 222, 239, .13) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(3, 13, 30, .15) !important;
}

.tg-main-menu > li > a:hover::after,
.tg-main-menu > li > a:focus-visible::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

.tg-header-actions {
  grid-area: actions !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  direction: rtl !important;
}

.tg-panel-button {
  width: 152px !important;
  min-width: 152px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  color: #04151d !important;
  background: linear-gradient(135deg, #55e7f7 0%, #21c2dd 100%) !important;
  border: 1px solid rgba(139, 244, 255, .58) !important;
  border-radius: 14px !important;
  box-shadow: 0 9px 24px rgba(28, 193, 219, .2), inset 0 1px 0 rgba(255, 255, 255, .46) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  direction: rtl !important;
}

.tg-panel-button:hover,
.tg-panel-button:focus-visible {
  color: #04151d !important;
  filter: brightness(1.045) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 13px 30px rgba(28, 193, 219, .3), 0 0 0 3px rgba(35, 211, 238, .07), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}

.tg-panel-button__icon {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  display: grid !important;
  place-items: center !important;
  color: #eaffff !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: 10px !important;
  background: rgba(4, 21, 29, .2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}

.tg-panel-button__icon svg {
  width: 16px !important;
  height: 16px !important;
}

.tg-panel-button__label {
  flex: 1 1 auto !important;
  display: block !important;
  text-align: center !important;
}

.tg-panel-button__arrow {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  color: rgba(4, 21, 29, .68) !important;
}

/* Remove the duplicated Jannah wrapper around the short description. */
body.single-product .tg-product-hero .summary .entry {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .tg-product-hero .summary .woocommerce-product-details__short-description {
  margin: 0 0 20px !important;
  padding: 17px 19px !important;
  border: 1px solid var(--tg-border) !important;
  border-radius: 14px !important;
  color: var(--tg-text-2) !important;
  background: rgba(44, 52, 73, .68) !important;
  box-shadow: none !important;
}

/* Product image follows its real aspect ratio; no artificial top/bottom bands. */
body.single-product .tg-product-hero .woocommerce-product-gallery__wrapper,
body.single-product .tg-product-hero .flex-viewport {
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  line-height: 0 !important;
}

body.single-product .tg-product-hero .woocommerce-product-gallery__image,
body.single-product .tg-product-hero .woocommerce-product-gallery__image > a {
  height: auto !important;
  min-height: 0 !important;
  line-height: 0 !important;
}

body.single-product .tg-product-hero .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

body.single-product .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* The uploaded official logo is used in the footer and stays clearly visible. */
.tg-footer-brand__logo {
  min-height: 92px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 10px !important;
}

.tg-footer-brand__logo img {
  width: 104px !important;
  max-width: 104px !important;
  height: auto !important;
  max-height: 92px !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain !important;
}

@media (max-width: 1180px) {
  .tg-header-inner {
    width: min(100% - 32px, 1320px) !important;
    grid-template-columns: 150px minmax(0, 1fr) 92px !important;
    gap: 12px !important;
  }

  .tg-main-menu > li > a {
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 12px !important;
  }

  .tg-brand {
    width: 78px !important;
  }

  .tg-brand img {
    max-width: 74px !important;
  }
}

@media (max-width: 1024px) {
  .tg-header-inner {
    position: relative !important;
    width: min(100% - 24px, 1320px) !important;
    min-height: 72px !important;
    padding: 7px 0 !important;
    grid-template-columns: 128px 46px minmax(70px, 1fr) !important;
    grid-template-areas: "actions toggle brand" !important;
    gap: 10px !important;
  }

  .tg-brand {
    grid-area: brand !important;
    width: 76px !important;
    height: 56px !important;
    justify-self: end !important;
    justify-content: flex-end !important;
  }

  .tg-brand img {
    width: auto !important;
    min-width: 0 !important;
    max-width: 72px !important;
    height: 54px !important;
    max-height: 54px !important;
  }

  .tg-menu-toggle {
    grid-area: toggle !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: block !important;
    justify-self: center !important;
    margin: 0 !important;
    padding: 9px !important;
    border: 1px solid rgba(76, 222, 239, .17) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .035) !important;
  }

  .tg-header-actions {
    grid-area: actions !important;
    justify-self: start !important;
  }

  .tg-panel-button {
    width: 128px !important;
    min-width: 128px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 5px 7px !important;
    font-size: 12px !important;
  }

  .tg-panel-button__icon {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
  }

  .tg-panel-button__arrow {
    display: none !important;
  }

  .tg-nav {
    grid-area: auto !important;
    position: absolute !important;
    top: calc(100% + 1px) !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 40 !important;
    max-height: min(72vh, 620px) !important;
    padding: 10px !important;
    overflow: auto !important;
    border: 1px solid rgba(76, 222, 239, .14) !important;
    border-radius: 0 0 16px 16px !important;
    background: linear-gradient(155deg, #20283a 0%, #171d2b 100%) !important;
    box-shadow: 0 28px 70px rgba(1, 8, 24, .56) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-7px) scale(.99) !important;
  }

  .tg-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }

  .tg-main-menu {
    height: auto !important;
    display: block !important;
  }

  .tg-main-menu > li {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .tg-main-menu > li > a {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    justify-content: flex-start !important;
    font-size: 13px !important;
    text-align: right !important;
  }

  .tg-main-menu > li > a::after {
    right: 10px !important;
    top: 11px !important;
    bottom: 11px !important;
    left: auto !important;
    width: 3px !important;
    height: auto !important;
    opacity: 0 !important;
    transform: scaleY(.25) !important;
  }

  .tg-main-menu > li > a:hover::after,
  .tg-main-menu > li > a:focus-visible::after {
    opacity: 1 !important;
    transform: scaleY(1) !important;
  }
}

@media (max-width: 782px) {
  .admin-bar .tg-header {
    top: 46px;
  }

  .tg-footer-brand__logo {
    justify-content: center !important;
  }
}

@media (max-width: 520px) {
  .tg-header-inner {
    width: calc(100% - 18px) !important;
    grid-template-columns: 116px 42px minmax(62px, 1fr) !important;
    gap: 7px !important;
  }

  .tg-brand {
    width: 68px !important;
    min-width: 0 !important;
  }

  .tg-brand img {
    width: auto !important;
    min-width: 0 !important;
    max-width: 64px !important;
    height: 50px !important;
    max-height: 50px !important;
  }

  .tg-panel-button {
    width: 116px !important;
    min-width: 116px !important;
    font-size: 11px !important;
  }

  .tg-panel-button__icon {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px !important;
  }

  body.single-product .tg-product-hero .summary .woocommerce-product-details__short-description {
    padding: 14px !important;
  }

  .tg-footer-brand__logo img {
    width: 96px !important;
    max-width: 96px !important;
    max-height: 86px !important;
  }
}

/* === TopGift v1.3 precision fixes === */
/* Search bar and legacy shop/cart controls are intentionally removed. */
.tg-product-search,
.tg-search-row,
.tg-shop-button,
.tg-cart-link,
.tg-cart-count,
body.topgift-design .header-search,
body.topgift-design .search-in-main-menu {
  display: none !important;
}

/* Exact brand assets used by the main TopGift site. */
.tg-brand {
  width: 126px !important;
  min-width: 126px !important;
  height: 48px !important;
  overflow: visible !important;
}
.tg-brand img {
  width: 126px !important;
  max-width: 126px !important;
  height: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  object-position: right center !important;
}
.tg-footer-brand__logo {
  min-height: 82px !important;
}
.tg-footer-brand__logo img {
  width: 126px !important;
  max-width: 126px !important;
  height: 84px !important;
  max-height: 84px !important;
  object-fit: contain !important;
}

/* Official eNAMAD artwork with the same rounded card treatment as main site. */
.tg-footer-certificates a {
  width: 150px !important;
  min-height: 126px !important;
  padding: 10px !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 1px solid rgba(65, 82, 113, .72) !important;
  border-radius: 16px !important;
  background: #f7f8fb !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 28px rgba(3,10,24,.18) !important;
}
.tg-footer-certificates img {
  width: 112px !important;
  max-width: 112px !important;
  height: 112px !important;
  max-height: 112px !important;
  border-radius: 12px !important;
  object-fit: contain !important;
}

/* Compact, professional product tabs. */
body.single-product div.product .woocommerce-tabs {
  padding: 20px !important;
}
body.single-product div.product .woocommerce-tabs ul.tabs {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 24px !important;
  padding: 5px !important;
  gap: 4px !important;
  border-radius: 12px !important;
}
body.single-product div.product .woocommerce-tabs ul.tabs li a {
  min-width: 112px !important;
  padding: 8px 16px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  text-align: center !important;
}

/* Clean Persian review summary. */
body.single-product .tg-product-rating {
  margin: 8px 0 18px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  direction: rtl !important;
}
body.single-product .tg-product-rating .star-rating {
  float: none !important;
  margin: 0 !important;
  direction: ltr !important;
}
body.single-product .tg-product-rating .woocommerce-review-link {
  color: var(--tg-muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.8 !important;
}
body.single-product .tg-product-rating .woocommerce-review-link:hover {
  color: var(--tg-brand) !important;
}

/* Perfectly centered hamburger glyph. */
.tg-menu-toggle {
  padding: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  line-height: 0 !important;
}
.tg-menu-toggle span {
  width: 22px !important;
  height: 2px !important;
  margin: 0 !important;
  flex: 0 0 2px !important;
}
.tg-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
.tg-menu-toggle.is-active span:nth-child(2) { opacity: 0 !important; }
.tg-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }

@media (max-width: 1024px) {
  .tg-menu-toggle { display: flex !important; }
  .tg-header-inner {
    grid-template-columns: 116px minmax(90px, 1fr) 46px !important;
    grid-template-areas: "actions brand toggle" !important;
  }
  .tg-menu-toggle { grid-area: toggle !important; justify-self: end !important; }
  .tg-brand { grid-area: brand !important; justify-self: center !important; }
  .tg-header-actions { grid-area: actions !important; justify-self: start !important; }
}

@media (max-width: 782px) {
  body.single-product div.product .woocommerce-tabs {
    padding: 14px !important;
    border-radius: 18px !important;
  }
  body.single-product div.product .woocommerce-tabs ul.tabs {
    width: 100% !important;
    margin-bottom: 18px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.single-product div.product .woocommerce-tabs ul.tabs li,
  body.single-product div.product .woocommerce-tabs ul.tabs li a {
    width: 100% !important;
  }
  body.single-product div.product .woocommerce-tabs ul.tabs li a {
    min-width: 0 !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  body.single-product .tg-product-rating {
    justify-content: flex-start !important;
    margin-top: 7px !important;
  }
  body.single-product .tg-product-rating .woocommerce-review-link {
    font-size: 12px !important;
  }
}

@media (max-width: 520px) {
  .tg-header-inner {
    grid-template-columns: 52px minmax(92px, 1fr) 44px !important;
    grid-template-areas: "actions brand toggle" !important;
  }
  .tg-panel-button {
    width: 46px !important;
    min-width: 46px !important;
    padding: 5px !important;
  }
  .tg-panel-button__label,
  .tg-panel-button__arrow {
    display: none !important;
  }
  .tg-panel-button__icon {
    margin: 0 auto !important;
  }
  .tg-brand {
    width: 116px !important;
    min-width: 116px !important;
    height: 46px !important;
  }
  .tg-brand img {
    width: 116px !important;
    max-width: 116px !important;
    height: 40px !important;
    max-height: 40px !important;
  }
}

/* v1.4: remove the parent-theme separator around the review count. */
body.single-product .tg-product-rating .woocommerce-review-link::before,
body.single-product .tg-product-rating .woocommerce-review-link::after,
body.single-product .woocommerce-product-rating .woocommerce-review-link::before,
body.single-product .woocommerce-product-rating .woocommerce-review-link::after {
  content: none !important;
  display: none !important;
}
body.single-product .tg-product-rating .woocommerce-review-link {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* v1.4: eNAMAD sizing matched more closely to the compact card on shop.topgiftcard.ir. */
.tg-footer-certificates a {
  width: 118px !important;
  min-height: 104px !important;
  padding: 8px !important;
  border-radius: 14px !important;
}
.tg-footer-certificates img {
  width: 82px !important;
  max-width: 82px !important;
  height: 82px !important;
  max-height: 82px !important;
  border-radius: 10px !important;
}

@media (max-width: 782px) {
  .tg-footer-certificates a {
    width: 104px !important;
    min-height: 92px !important;
    padding: 7px !important;
    border-radius: 13px !important;
  }
  .tg-footer-certificates img {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    max-height: 72px !important;
    border-radius: 9px !important;
  }
}

/* v1.5: remove every decorative separator injected around the product rating. */
body.single-product .tg-product-rating::before,
body.single-product .tg-product-rating::after,
body.single-product .tg-product-rating .star-rating::before,
body.single-product .tg-product-rating .star-rating::after,
body.single-product .woocommerce-product-rating::before,
body.single-product .woocommerce-product-rating::after,
body.single-product .woocommerce-product-rating .star-rating::after {
  content: none !important;
  display: none !important;
}

body.single-product .tg-product-rating {
  column-gap: 10px !important;
  row-gap: 6px !important;
}

/* v1.5: compact eNAMAD card, matching the main TopGift footer proportions. */
.tg-footer-certificates a {
  width: 100px !important;
  min-width: 100px !important;
  min-height: 92px !important;
  padding: 7px !important;
  border-radius: 13px !important;
}
.tg-footer-certificates img {
  width: 70px !important;
  max-width: 70px !important;
  height: 70px !important;
  max-height: 70px !important;
  border-radius: 9px !important;
}

@media (max-width: 782px) {
  .tg-footer-certificates a {
    width: 88px !important;
    min-width: 88px !important;
    min-height: 82px !important;
    padding: 6px !important;
    border-radius: 12px !important;
  }
  .tg-footer-certificates img {
    width: 62px !important;
    max-width: 62px !important;
    height: 62px !important;
    max-height: 62px !important;
    border-radius: 8px !important;
  }
}

/* =========================================================
   v1.6 — refined mobile navigation panel
   Keeps the drawer visually separate from the header, removes
   border/shadow collisions and adds a calm, premium transition.
   ========================================================= */
@media (max-width: 1024px) {
  .tg-header {
    overflow: visible !important;
    isolation: isolate !important;
  }

  .tg-header-inner {
    overflow: visible !important;
  }

  .tg-nav {
    top: calc(100% + 12px) !important;
    right: 6px !important;
    left: 6px !important;
    width: auto !important;
    max-height: min(68vh, 560px) !important;
    padding: 12px !important;
    border: 1px solid rgba(78, 216, 231, .16) !important;
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 92% 4%, rgba(18, 211, 190, .09), transparent 34%),
      linear-gradient(155deg, rgba(31, 40, 58, .985) 0%, rgba(20, 27, 41, .99) 100%) !important;
    box-shadow:
      0 22px 55px rgba(0, 7, 22, .48),
      0 8px 18px rgba(0, 0, 0, .26),
      inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    -webkit-backdrop-filter: blur(18px) saturate(118%) !important;
    backdrop-filter: blur(18px) saturate(118%) !important;
    transform-origin: top center !important;
    transform: translateY(-10px) scale(.985) !important;
    transition:
      opacity .22s ease,
      visibility .22s ease,
      transform .28s cubic-bezier(.22, .8, .2, 1) !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
  }

  .tg-nav::before {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    right: 26px !important;
    width: 13px !important;
    height: 13px !important;
    border-top: 1px solid rgba(78, 216, 231, .16) !important;
    border-right: 1px solid rgba(78, 216, 231, .16) !important;
    background: #1f283a !important;
    transform: rotate(-45deg) !important;
    border-radius: 0 3px 0 0 !important;
    pointer-events: none !important;
  }

  .tg-nav.is-open {
    transform: translateY(0) scale(1) !important;
  }

  .tg-main-menu {
    display: grid !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tg-main-menu > li > a {
    min-height: 48px !important;
    padding: 11px 14px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    color: rgba(255, 255, 255, .92) !important;
    background: transparent !important;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease !important;
  }

  .tg-main-menu > li > a:hover,
  .tg-main-menu > li > a:focus-visible {
    background: rgba(255, 255, 255, .045) !important;
    border-color: rgba(78, 216, 231, .10) !important;
    transform: translateX(-2px) !important;
    outline: none !important;
  }

  .tg-main-menu > li + li {
    border-top: 1px solid rgba(255, 255, 255, .035) !important;
  }

  body.tg-menu-open {
    overflow-x: hidden !important;
  }
}

@media (max-width: 782px) {
  .tg-nav {
    top: calc(100% + 10px) !important;
    right: 4px !important;
    left: 4px !important;
    max-height: min(66vh, 500px) !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .tg-nav::before {
    right: 21px !important;
  }
}

/* =========================================================
   v1.7 — remove the decorative arrow above mobile navigation
   The menu now opens as a clean floating panel with no pointer.
   ========================================================= */
@media (max-width: 1024px) {
  .tg-nav::before,
  .tg-nav::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ==========================================================
   TopGift 1.8 — keep product-content list markers inside cards
   Applies to current and future WooCommerce product content.
   ========================================================== */
body.single-product .woocommerce-product-details__short-description ul,
body.single-product .woocommerce-product-details__short-description ol,
body.single-product .woocommerce-Tabs-panel ul,
body.single-product .woocommerce-Tabs-panel ol,
body.single-product .entry-content ul,
body.single-product .entry-content ol,
body.single-product .product-description ul,
body.single-product .product-description ol {
  width: 100%;
  max-width: 100%;
  margin-block: 0.8em;
  margin-inline: 0;
  padding: 0 !important;
  box-sizing: border-box;
  list-style: none !important;
}

body.single-product .woocommerce-product-details__short-description li,
body.single-product .woocommerce-Tabs-panel li,
body.single-product .entry-content li,
body.single-product .product-description li {
  position: relative;
  max-width: 100%;
  margin: 0.45em 0;
  padding-inline-start: 1.35em !important;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.single-product .woocommerce-product-details__short-description ul > li::before,
body.single-product .woocommerce-Tabs-panel ul > li::before,
body.single-product .entry-content ul > li::before,
body.single-product .product-description ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.2em;
  top: 0.78em;
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  transform: translateY(-50%);
}

body.single-product .woocommerce-product-details__short-description ol,
body.single-product .woocommerce-Tabs-panel ol,
body.single-product .entry-content ol,
body.single-product .product-description ol {
  counter-reset: tg-product-list;
}

body.single-product .woocommerce-product-details__short-description ol > li,
body.single-product .woocommerce-Tabs-panel ol > li,
body.single-product .entry-content ol > li,
body.single-product .product-description ol > li {
  counter-increment: tg-product-list;
  padding-inline-start: 2em !important;
}

body.single-product .woocommerce-product-details__short-description ol > li::before,
body.single-product .woocommerce-Tabs-panel ol > li::before,
body.single-product .entry-content ol > li::before,
body.single-product .product-description ol > li::before {
  content: counter(tg-product-list) ".";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  min-width: 1.6em;
  text-align: center;
  font-weight: 700;
  color: inherit;
}

/* Do not alter WooCommerce tabs, menus, galleries, or review lists. */
body.single-product .woocommerce-tabs ul.tabs,
body.single-product .woocommerce-tabs ul.tabs li,
body.single-product #reviews ol.commentlist,
body.single-product #reviews ol.commentlist li,
body.single-product .flex-control-nav,
body.single-product .flex-control-nav li {
  list-style: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li,
body.single-product #reviews ol.commentlist li,
body.single-product .flex-control-nav li {
  padding-inline-start: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product #reviews ol.commentlist li::before,
body.single-product .flex-control-nav li::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 767px) {
  body.single-product .woocommerce-product-details__short-description li,
  body.single-product .woocommerce-Tabs-panel li,
  body.single-product .entry-content li,
  body.single-product .product-description li {
    padding-inline-start: 1.25em !important;
  }
}

/* ==========================================================
   TopGift 1.9 — balanced mobile gutters and wider content
   Keep product, tabs and review cards aligned to one viewport gutter.
   ========================================================== */
@media (max-width: 782px) {
  :root {
    --tg-mobile-gutter: 10px;
    --tg-mobile-card-padding: 12px;
  }

  /* Remove inherited/nested Jannah gutters. One consistent gutter remains. */
  body.topgift-commerce .container,
  body.topgift-commerce .main-content-row,
  body.topgift-commerce .main-content,
  body.topgift-commerce #main-content,
  body.topgift-commerce .site-content,
  body.topgift-commerce .container-wrapper,
  body.single-product .product.type-product {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
  }

  body.topgift-commerce .site-content,
  body.topgift-commerce #main-content {
    padding-right: var(--tg-mobile-gutter) !important;
    padding-left: var(--tg-mobile-gutter) !important;
  }

  /* Product card and description/review card share exactly the same edges. */
  body.single-product .tg-product-hero,
  body.single-product div.product .woocommerce-tabs,
  body.single-product .related,
  body.single-product .upsells {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .tg-product-hero {
    padding: var(--tg-mobile-card-padding) !important;
    border-radius: 18px !important;
  }

  body.single-product div.product .woocommerce-tabs {
    padding: var(--tg-mobile-card-padding) !important;
    border-radius: 18px !important;
  }

  /* Compact tab selector while preserving comfortable touch targets. */
  body.single-product div.product .woocommerce-tabs ul.tabs {
    margin: 0 0 14px !important;
    padding: 4px !important;
    gap: 4px !important;
    border-radius: 12px !important;
  }

  body.single-product div.product .woocommerce-tabs ul.tabs li a {
    min-height: 42px !important;
    padding: 7px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* Let article paragraphs use the card width instead of a narrow inner column. */
  body.single-product .woocommerce-Tabs-panel,
  body.single-product .woocommerce-Tabs-panel.entry-content,
  body.single-product .woocommerce-tabs .panel,
  body.single-product #tab-description,
  body.single-product #tab-reviews,
  body.single-product #reviews,
  body.single-product #comments,
  body.single-product #review_form_wrapper {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 2px !important;
    padding-left: 2px !important;
    box-sizing: border-box !important;
  }

  body.single-product .woocommerce-Tabs-panel > :first-child {
    margin-top: 0 !important;
  }

  body.single-product .woocommerce-Tabs-panel p,
  body.single-product .woocommerce-Tabs-panel blockquote,
  body.single-product .woocommerce-Tabs-panel table,
  body.single-product .woocommerce-Tabs-panel figure,
  body.single-product .woocommerce-Tabs-panel ul,
  body.single-product .woocommerce-Tabs-panel ol,
  body.single-product #reviews p,
  body.single-product #reviews .comment-text,
  body.single-product #reviews .description {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .woocommerce-Tabs-panel p,
  body.single-product #reviews p,
  body.single-product #reviews .description {
    line-height: 2 !important;
  }

  body.single-product .woocommerce-Tabs-panel h2,
  body.single-product .woocommerce-Tabs-panel h3,
  body.single-product .woocommerce-Tabs-panel h4 {
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Reviews: remove excessive nested padding and widen each review. */
  body.single-product #reviews ol.commentlist,
  body.single-product #reviews ol.commentlist > li,
  body.single-product #reviews ol.commentlist li .comment_container,
  body.single-product #reviews ol.commentlist li .comment-text,
  body.single-product #review_form_wrapper,
  body.single-product #review_form,
  body.single-product #respond {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product #reviews ol.commentlist > li,
  body.single-product #reviews ol.commentlist li .comment-text,
  body.single-product #review_form_wrapper,
  body.single-product #respond {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}

@media (max-width: 380px) {
  :root {
    --tg-mobile-gutter: 8px;
    --tg-mobile-card-padding: 10px;
  }
}

/* ==========================================================
   TopGift 1.10 — professional product review cards
   Keeps avatar, author, date, rating and text in a stable RTL layout.
   ========================================================== */
body.single-product #reviews #comments ol.commentlist {
  display: grid;
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product #reviews #comments ol.commentlist > li.review {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(105, 132, 176, .34) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(31, 42, 65, .88), rgba(22, 31, 49, .88)) !important;
  box-shadow: 0 12px 28px rgba(4, 10, 22, .16);
}

body.single-product #reviews #comments ol.commentlist li .comment_container {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "avatar content";
  gap: 12px;
  align-items: start;
  width: 100% !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

body.single-product #reviews #comments ol.commentlist li img.avatar {
  grid-area: avatar;
  position: static !important;
  inset: auto !important;
  float: none !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  border: 1px solid rgba(123, 151, 198, .42) !important;
  border-radius: 13px !important;
  background: rgba(12, 20, 34, .72) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

body.single-product #reviews #comments ol.commentlist li .comment-text {
  grid-area: content;
  min-width: 0;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tg-text-2);
}

body.single-product #reviews #comments ol.commentlist li .comment-text .meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  margin: 0 0 10px !important;
  color: rgba(213, 223, 239, .72) !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}

body.single-product #reviews #comments .woocommerce-review__author {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body.single-product #reviews #comments .woocommerce-review__dash {
  opacity: .45;
}

body.single-product #reviews #comments .woocommerce-review__published-date {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: rgba(197, 210, 230, .66) !important;
  font-size: 12px !important;
}

body.single-product #reviews #comments ol.commentlist li .star-rating {
  float: none !important;
  margin: 0 0 10px !important;
  font-size: 14px !important;
}

body.single-product #reviews #comments ol.commentlist li .description {
  width: 100% !important;
  margin: 0 !important;
  padding-top: 10px;
  border-top: 1px solid rgba(115, 139, 178, .16);
}

body.single-product #reviews #comments ol.commentlist li .description p {
  margin: 0 !important;
  color: rgba(242, 246, 253, .91) !important;
  font-size: 15px !important;
  line-height: 2 !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Nested review replies stay clearly associated without oversized inner cards. */
body.single-product #reviews #comments ol.commentlist li .children {
  grid-column: 1 / -1;
  margin: 0 56px 14px 14px !important;
  padding: 0 !important;
}

body.single-product #reviews #comments ol.commentlist li .children > li {
  border-radius: 14px !important;
  background: rgba(10, 18, 31, .34) !important;
}

@media (max-width: 782px) {
  body.single-product #reviews #comments ol.commentlist {
    gap: 10px;
  }

  body.single-product #reviews #comments ol.commentlist > li.review {
    border-radius: 15px !important;
  }

  body.single-product #reviews #comments ol.commentlist li .comment_container {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px !important;
  }

  body.single-product #reviews #comments ol.commentlist li img.avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }

  body.single-product #reviews #comments ol.commentlist li .comment-text,
  body.single-product #reviews ol.commentlist li .comment-text {
    padding: 0 !important;
  }

  body.single-product #reviews #comments ol.commentlist li .comment-text .meta {
    gap: 2px 6px;
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }

  body.single-product #reviews #comments .woocommerce-review__author {
    font-size: 13px !important;
  }

  body.single-product #reviews #comments .woocommerce-review__published-date {
    font-size: 11px !important;
  }

  body.single-product #reviews #comments ol.commentlist li .description {
    padding-top: 8px;
  }

  body.single-product #reviews #comments ol.commentlist li .description p {
    font-size: 14px !important;
    line-height: 1.95 !important;
  }

  body.single-product #reviews #comments ol.commentlist li .children {
    margin: 0 44px 10px 10px !important;
  }
}

/* ==========================================================
   TopGift 1.11 — unified review form and clean purchase action
   Removes unnecessary nested frames while keeping every field usable.
   ========================================================== */
body.single-product #review_form_wrapper,
body.single-product #review_form,
body.single-product #respond,
body.single-product #respond .comment-form,
body.single-product #respond .comment-form-rating,
body.single-product #respond .comment-form-comment,
body.single-product #respond .form-submit {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* One visual surface only: the WooCommerce tabs card itself. */
body.single-product #review_form_wrapper,
body.single-product #review_form,
body.single-product #respond {
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product #review_form_wrapper {
  margin-top: 18px !important;
}

body.single-product #respond .comment-reply-title,
body.single-product #respond #reply-title {
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
}

body.single-product #respond .comment-form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product #respond .comment-form > p {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.single-product #respond .comment-form-rating,
body.single-product #respond .comment-form-comment {
  margin: 0 0 14px !important;
  padding: 0 !important;
}

body.single-product #review_form textarea,
body.single-product #respond textarea#comment {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 150px;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body.single-product #respond .form-submit {
  display: flex !important;
  justify-content: flex-start;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

body.single-product #respond .form-submit .submit {
  min-width: 120px;
  margin: 0 !important;
}

/* Remove the dark frame around “انتخاب بسته و خرید”. */
body.single-product .summary form.cart {
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.single-product .summary form.cart .single_add_to_cart_button,
body.single-product .summary form.cart button.single_add_to_cart_button {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Variation controls remain full-width and orderly without recreating an outer frame. */
body.single-product .summary form.cart .variations,
body.single-product .summary form.cart .single_variation_wrap,
body.single-product .summary form.cart .woocommerce-variation-add-to-cart {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 782px) {
  body.single-product #review_form_wrapper {
    margin-top: 14px !important;
  }

  body.single-product #respond .comment-reply-title,
  body.single-product #respond #reply-title {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }

  body.single-product #respond .comment-form-rating,
  body.single-product #respond .comment-form-comment {
    margin-bottom: 12px !important;
  }

  body.single-product #review_form textarea,
  body.single-product #respond textarea#comment {
    min-height: 132px;
    padding: 12px !important;
  }

  body.single-product #respond .form-submit .submit {
    min-width: 108px;
  }

  body.single-product .summary form.cart {
    margin-top: 14px !important;
  }
}

/* ==========================================================
   TopGift 1.12 — stable administrator replies in product reviews
   Prevents nested replies from being clipped or creating horizontal scroll.
   ========================================================== */
body.single-product #reviews #comments ol.commentlist li.review {
  overflow: visible !important;
}

body.single-product #reviews #comments ol.commentlist li .children,
body.single-product #reviews #comments ol.commentlist li ul.children {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 12px 16px 16px !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.single-product #reviews #comments ol.commentlist li .children > li,
body.single-product #reviews #comments ol.commentlist li ul.children > li {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 1px solid rgba(105, 132, 176, .28) !important;
  border-radius: 14px !important;
  background: rgba(10, 18, 31, .38) !important;
}

body.single-product #reviews #comments ol.commentlist li .children .comment_container,
body.single-product #reviews #comments ol.commentlist li ul.children .comment_container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 13px !important;
  box-sizing: border-box !important;
}

body.single-product #reviews #comments ol.commentlist li .children .comment-text,
body.single-product #reviews #comments ol.commentlist li ul.children .comment-text,
body.single-product #reviews #comments ol.commentlist li .children .description,
body.single-product #reviews #comments ol.commentlist li ul.children .description {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.single-product #reviews #comments ol.commentlist li .description a,
body.single-product #reviews #comments ol.commentlist li .description p,
body.single-product #reviews #comments ol.commentlist li .description span {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

@media (max-width: 782px) {
  body.single-product #reviews #comments ol.commentlist li .children,
  body.single-product #reviews #comments ol.commentlist li ul.children {
    margin: 10px 10px 12px !important;
  }

  body.single-product #reviews #comments ol.commentlist li .children .comment_container,
  body.single-product #reviews #comments ol.commentlist li ul.children .comment_container {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 11px !important;
  }

  body.single-product #reviews #comments ol.commentlist li .children img.avatar,
  body.single-product #reviews #comments ol.commentlist li ul.children img.avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }
}

/* ==========================================================
   TopGift 1.13 — polished review submit + clean purchase CTA
   ========================================================== */

/* Review submit: use the TopGift logo green and the same premium geometry as the purchase CTA. */
body.single-product #respond .form-submit {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product #respond .form-submit .submit,
body.single-product #respond input#submit,
body.single-product #review_form input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 11px 30px !important;
  border: 1px solid rgba(0, 255, 178, .48) !important;
  border-radius: 14px !important;
  color: #05271f !important;
  background: var(--tg-brand) !important;
  background-image: none !important;
  box-shadow: 0 8px 22px rgba(0, 255, 178, .14) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  text-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}

body.single-product #respond .form-submit .submit:hover,
body.single-product #respond .form-submit .submit:focus-visible,
body.single-product #respond input#submit:hover,
body.single-product #respond input#submit:focus-visible,
body.single-product #review_form input[type="submit"]:hover,
body.single-product #review_form input[type="submit"]:focus-visible {
  color: #05271f !important;
  filter: brightness(1.04) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 11px 26px rgba(0, 255, 178, .2) !important;
}

body.single-product #respond .form-submit .submit:active,
body.single-product #respond input#submit:active,
body.single-product #review_form input[type="submit"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 5px 14px rgba(0, 255, 178, .13) !important;
}

/* Eliminate the angled glow / dark strip under the purchase button. */
body.single-product .summary form.cart,
body.single-product .summary form.cart::before,
body.single-product .summary form.cart::after,
body.single-product .summary form.cart .single_variation_wrap,
body.single-product .summary form.cart .single_variation_wrap::before,
body.single-product .summary form.cart .single_variation_wrap::after,
body.single-product .summary form.cart .woocommerce-variation-add-to-cart,
body.single-product .summary form.cart .woocommerce-variation-add-to-cart::before,
body.single-product .summary form.cart .woocommerce-variation-add-to-cart::after,
body.single-product .summary form.cart .single_add_to_cart_button::before,
body.single-product .summary form.cart .single_add_to_cart_button::after {
  border: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  content: none !important;
}

body.single-product .summary form.cart .single_add_to_cart_button,
body.single-product .summary form.cart button.single_add_to_cart_button {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
  isolation: isolate !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

body.single-product .summary form.cart .single_add_to_cart_button:hover,
body.single-product .summary form.cart button.single_add_to_cart_button:hover,
body.single-product .summary form.cart .single_add_to_cart_button:focus-visible,
body.single-product .summary form.cart button.single_add_to_cart_button:focus-visible {
  filter: brightness(1.04) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 9px 22px rgba(0, 255, 178, .14) !important;
}

@media (max-width: 782px) {
  body.single-product #respond .form-submit .submit,
  body.single-product #respond input#submit,
  body.single-product #review_form input[type="submit"] {
    min-width: 142px !important;
    min-height: 50px !important;
    padding: 10px 26px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }
}
