﻿/* Homepage latest-products Swiper.
   Root cause of mobile page shift: .swiper-wrapper scrollWidth (~2x clientWidth)
   from off-screen RTL slides. If any ancestor uses overflow:visible, or if the
   swiper itself becomes a horizontal scrollport, touch pans move the document.
   Clip + contain the carousel box so only the track transforms, not the page. */
.niragold-site .products-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior-x: none;
  contain: inline-size paint;
}

/* Sit the latest-products row closer under the hero CTA (screenshot match). */
.niragold-site .hero-section + .products {
  padding-top: 28px;
}

.niragold-site section.products {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

/* Keep Bootstrap .container max-widths (540/720/960/1140/1320).
   Do NOT set max-width:100% here — that full-bleeds the carousel past the
   same content column used by the header and hero. */
.niragold-site .products > .container {
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
}

.niragold-site .products .product-swiper,
.niragold-site .products .swiper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  overflow-x: clip !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.niragold-site .products .swiper-wrapper {
  /* Track may be wider than the viewport; never let that widen the page. */
  max-width: none;
}

.niragold-site .products .product-swiper .swiper-slide,
.niragold-site .products .swiper-slide {
  height: auto;
  min-width: 0 !important;
  box-sizing: border-box;
  max-width: 100%;
}

.niragold-site section.products .item-product,
.niragold-site .products-carousel .item-product {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

/*
  Category listing uses class "products" on a Bootstrap row, not the homepage
  <section class="products">. Homepage section padding (100px / 50px) was
  leaking under the last row of cards. Keep card padding (.item-product
  padding: 15px 0) unchanged.
*/
.niragold-site .shop-product .shop .shop-content .products {
  padding-top: 0;
  padding-bottom: 0;
  background: none;
}

/*
  Desktop filter used height: 85vh, which made the Bootstrap row as tall as
  the viewport even with few products — a large empty band under the cards.
  Size the filter to its content; keep a max-height so long filters still
  scroll. Mobile off-canvas drawer stays 100vh.
*/
.niragold-site .shop-product .shop .filter {
  height: auto;
  max-height: 85vh;
}

@media (max-width: 767px) {
  .niragold-site .shop-product .shop .filter {
    height: 100vh;
    max-height: 100vh;
  }
}

.niragold-site .products .pic-box,
.niragold-site .products .pic-box img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.niragold-site .products .product-info,
.niragold-site .products .title-box a,
.niragold-site .products .price-row {
  max-width: 100%;
  min-width: 0;
}

.niragold-site .products .title-box a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.products .owl-nav {
  pointer-events: none;
}

.products .owl-nav button {
  pointer-events: auto;
  z-index: 2;
}

/* Keep public chrome from inheriting any child-driven horizontal scroll. */
.niragold-site main {
  max-width: 100%;
  overflow-x: clip;
}

.fixedDivPhoneList.is-open {
  display: block !important;
}

.niragold-site .hero-section h1 br {
  display: block;
}

body.niragold-site {
  background: var(--color-surface-variant, #f8f9fa);
  color: var(--color-neutral-oncontainer, #212529);
}

/*
  Tailwind preflight sets `svg { display: block }`, which drops icons onto a
  second line next to text in inline-block buttons/links. Keep icon+text on
  one RTL row without changing colors, size, or spacing of the original design.
*/
.niragold-site .btn-gold,
.niragold-site .btn-silver,
.niragold-site .z-header__link,
.niragold-site .z-header__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  white-space: nowrap;
}

.niragold-site .btn-gold svg,
.niragold-site .btn-silver svg,
.niragold-site .z-header__link svg,
.niragold-site .z-header__btn svg,
.niragold-site .tab-btn svg,
.niragold-site .fixedDivPhoneList a svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Tailwind preflight `svg { display: block }` sat the swap arrows on the RTL
   start edge; keep them centered between the two calculator inputs. */
.niragold-site .price-card .swap-icon svg {
  display: block;
  flex-shrink: 0;
}

/* Header logo: fill available row height without changing navbar size */
.niragold-site .z-header__row,
.niragold-site .z-header__left,
.niragold-site .z-header__right {
  align-items: center;
}

.niragold-site .z-header__left {
  gap: 10px;
  /* Desktop: logo fills row height; hamburger is hidden above 992px. */
  align-items: stretch;
}

.niragold-site .z-header__menu-btn {
  align-self: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.niragold-site .z-header__nav {
  align-items: center;
}

.niragold-site .z-header__logo {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: visible;
}

.niragold-site .z-header__logo a {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* Brand logo: height-driven sizing with srcset; reserve aspect-ratio to avoid CLS */
.niragold-site .brand-logo,
.niragold-site .z-header__logo .brand-logo {
  display: block;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  -webkit-font-smoothing: antialiased;
}

.niragold-site .z-header__logo .brand-logo {
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: none;
  transform: scale(1.08);
  transform-origin: center center;
}

@media (max-width: 992px) {
  .niragold-site .z-header__nav {
    display: none;
  }

  /* One centered row: login | logo | hamburger */
  .niragold-site .z-header__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
  }

  .niragold-site .z-header__left,
  .niragold-site .z-header__right {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  /* ≥10px between logo and hamburger (DOM: menu then logo; RTL places menu on the end) */
  .niragold-site .z-header__left {
    gap: 12px;
    align-items: center;
  }

  .niragold-site .z-header__menu-btn {
    align-self: center;
    width: 40px;
    height: 40px;
  }

  .niragold-site .z-header__logo {
    align-self: center;
    height: 40px;
  }

  .niragold-site .z-header__logo a {
    height: 40px;
  }

  .niragold-site .z-header__logo .brand-logo,
  .niragold-site .z-header__logo img {
    height: 50px !important;
    max-height:50px !important;
    max-width: 180px !important;
    width: auto !important;
    margin: 0 !important;
    /* scale() shifted the optical center vs the 40px button box */
    transform: none !important;
  }

  .niragold-site .z-header__btn {
    align-self: center;
    margin: 0;
  }
}

/*
  Tailwind preflight sets `img { display: block }`, so logos inside the
  installment partner cards and footer certificates hug the RTL start
  edge instead of sitting in the middle of the white tile.
*/
.niragold-site .aghsat .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.niragold-site .aghsat .brand-icon img {
  display: block;
  max-width: 50px;
  height: auto;
  object-fit: contain;
}

.niragold-site footer .footer-certif {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.niragold-site footer .footer-certif img {
  display: block;
  object-fit: contain;
}

.niragold-site #InstallmentGold .gold-text {
  display: inline-flex;
  align-items: center;
}

.niragold-site #InstallmentGold h5.gold-text,
.niragold-site #InstallmentGold h5.fw-bold,
.niragold-site #InstallmentGold p.fw-bold {
  display: flex;
  align-items: center;
}

.niragold-site #InstallmentGold .provider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.niragold-site #InstallmentGold .provider-btn img {
  display: block;
  max-width: 50px;
  height: auto;
  object-fit: contain;
}

.niragold-site #CorporateGifts .gold-text {
  display: inline-flex;
  align-items: center;
}

.niragold-site #CorporateGifts h5.fw-bold {
  display: flex;
  align-items: center;
}

.niragold-site #CorporateGifts .imageBox img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.niragold-site #CorporateGifts .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.niragold-site #CorporateGifts .highlight-box p {
  display: flex;
  align-items: flex-start;
}

.niragold-site #regulations .imageBox img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.niragold-site #aboutUs .gold-text {
  display: inline-flex;
  align-items: center;
}

.niragold-site #aboutUs h5.fw-bold,
.niragold-site #aboutUs h2.gold-text {
  display: flex;
  align-items: center;
}

.niragold-site #aboutUs .imageBox img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.niragold-site #aboutUs .stamp,
.niragold-site #aboutUs .qr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.niragold-site #aboutUs .list-icon-gold li {
  align-items: flex-start;
}

.niragold-site #aboutUs .list-icon-gold li::before {
  content: '✦';
  color: #d4af37;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.8;
  flex-shrink: 0;
}

.niragold-site #faq {
  --mg-primary: #d4af37;
  --mg-primary-dark: #b8860b;
  --mg-border: #e8dfc8;
  --mg-ink: #2d2412;
  --mg-soft: #f3efe9;
}

.niragold-site #faq .faq-q {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: right;
}

.niragold-site #faq .faq-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.niragold-site #faq .faq-a {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.niragold-site #faq .faq-card.is-open .faq-a {
  max-height: 1200px;
}

.niragold-site #faq .faq-a-inner {
  overflow: visible;
  min-height: 0;
}

.niragold-site #faq .faq-a-inner ul {
  list-style: disc;
  padding-right: 18px;
  margin: 8px 0;
}

.niragold-site #ContactUs .imageBox img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.niragold-site #ContactUs .whatsapp-btn,
.niragold-site #ContactUs .btn-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.niragold-site #ContactUs .con-item svg {
  display: inline-block;
}

.niragold-site #ContactUs .con-item a {
  color: inherit;
  text-decoration: none;
}

.niragold-site #ContactUs .contact-map {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  position: relative;
  min-height: 280px;
}

.niragold-site #ContactUs .contact-map iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.niragold-site #ContactUs .contact-form-feedback {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.niragold-site #ContactUs .contact-form-feedback.is-success {
  color: #1f7a3f;
}

.niragold-site #ContactUs .contact-form-feedback.is-error {
  color: #b42318;
}

.niragold-site #ContactUs .btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/*
  Tailwind preflight sets `svg { display: block }`, which stacks the chevron
  under the home crumb and blows past `.address-bar` max-height — clipping the
  current page label. Keep both crumbs on one RTL row.
*/
.niragold-site .breadcrumb-nav.address-bar {
  height: auto;
  max-height: none;
  min-height: 40px;
  overflow: visible;
  direction: rtl;
  text-align: right;
}

.niragold-site .breadcrumb-nav .breadcrumb-container {
  display: flex;
  justify-content: flex-start;
}

.niragold-site .breadcrumb-list.box-address {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.niragold-site .breadcrumb-list.box-address::-webkit-scrollbar {
  display: none;
}

.niragold-site .breadcrumb-item,
.niragold-site .nira-breadcrumb-entry {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.niragold-site .breadcrumb-separator-item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  list-style: none;
}

.niragold-site .breadcrumb-list .nira-breadcrumb-entry::before,
.niragold-site .breadcrumb-list .breadcrumb-item::before {
  content: none !important;
  display: none !important;
}

.niragold-site .breadcrumb-link {
  display: inline-flex !important;
  align-items: center;
  font-size: 13px !important;
  color: #81858b;
  line-height: 40px;
  padding: 0 2px 0 7px;
  text-decoration: none;
  white-space: nowrap;
}

.niragold-site .breadcrumb-link:hover {
  color: #5c6168;
}

.niragold-site .breadcrumb-current {
  display: inline-block;
  color: #5c6168;
  line-height: 40px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.niragold-site .breadcrumb-separator {
  display: inline-block;
  flex-shrink: 0;
  color: #a7a8a9;
  font-size: 13px;
  line-height: 40px;
  padding-inline: 4px;
  user-select: none;
}

/* Product gallery without Owl: keep legacy #big-pic / #thumbs hooks usable */
.niragold-site .single-product .product .gallery-product #big-pic {
  width: 100%;
  max-width: 100% !important;
}

.niragold-site .single-product .product .gallery-product #big-pic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.niragold-site .single-product .product .gallery-product #thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.niragold-site .single-product .product .gallery-product #thumbs > div {
  flex: 0 0 calc(25% - 6px);
  max-width: calc(25% - 6px);
}

.niragold-site .single-product .product .gallery-product #thumbs .item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.niragold-site .single-product .tabs-product .comment .comment-box form .top-box input {
  width: 100%;
  max-width: 100%;
}

/* Product description tab — enforce Yekan Bakh / site font on CMS HTML */
.niragold-site .single-product .tabs-product .tabs .tabs-stage .item-tab .title h5 {
  font-family: var(--font-yekan-bakh), var(--font-sans), Tahoma, 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.5;
}

.niragold-site .ng-product-description {
  font-family: var(--font-yekan-bakh), var(--font-sans), Tahoma, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  color: #334155;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.niragold-site .ng-product-description :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    span,
    div,
    a,
    blockquote,
    td,
    th,
    font,
    strong,
    em,
    b,
    i
  ) {
  font-family: inherit !important;
}

.niragold-site .ng-product-description :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.55;
  margin-block: 1.35rem 0.75rem;
}

.niragold-site .ng-product-description p {
  margin-block: 0 1rem;
}

.niragold-site .ng-product-description a {
  color: #b59a62;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.niragold-site .ng-product-description a:hover {
  color: #8a7348;
}

.niragold-site .ng-product-description ul,
.niragold-site .ng-product-description ol {
  margin-block: 0.75rem 1rem;
  padding-inline-start: 1.35rem;
}

.niragold-site .ng-product-description blockquote {
  margin-block: 1.25rem;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid #c5a880;
  border-radius: 0.5rem;
  background: #f8f3ea;
  color: #1e293b;
}

.niragold-site .ng-product-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.niragold-site .comment-rating .star button {
  cursor: pointer;
  line-height: 1;
}

.niragold-site .product-review-item .comment-rating .star span {
  margin: 2px;
  color: #ffc300;
  font-size: 12px;
}

/* Customer auth card — win over Bootstrap + style.css heading/link/input resets */
.niragold-site .ng-auth-card h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  color: #171717;
}

.niragold-site .ng-auth-card p {
  letter-spacing: normal;
}

.niragold-site .ng-auth-card a {
  color: #a3a3a3;
  text-decoration: none;
}

.niragold-site .ng-auth-card a:hover {
  color: #525252;
}

.niragold-site .ng-auth-card input[type='tel'],
.niragold-site .ng-auth-card input[type='text'],
.niragold-site .ng-auth-card input[type='password'] {
  height: 3rem;
  padding: 0.75rem 1rem;
  line-height: 1.5;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  background: #fff;
}

.niragold-site .ng-auth-card input[type='password'] {
  padding-inline-end: 2.75rem;
}

.niragold-site .ng-auth-card input[type='tel']:focus,
.niragold-site .ng-auth-card input[type='text']:focus,
.niragold-site .ng-auth-card input[type='password']:focus,
.niragold-site .ng-auth-card input[type='tel']:focus-visible,
.niragold-site .ng-auth-card input[type='text']:focus-visible,
.niragold-site .ng-auth-card input[type='password']:focus-visible {
  border-color: #b59a62 !important;
  box-shadow: 0 0 0 3px rgba(181, 154, 98, 0.18) !important;
}

.niragold-site .ng-auth-card button[type='submit'],
.niragold-site .ng-auth-card button[type='button'] {
  border-radius: 0.75rem;
}

.niragold-site .ng-auth-card .ng-auth-toggle,
.niragold-site .ng-auth-card .ng-auth-icon-btn {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
}

.niragold-site .ng-auth-card .ng-auth-icon-btn {
  width: 2rem;
  height: 2rem;
}

@media (min-width: 640px) {
  .niragold-site .ng-auth-card h1 {
    font-size: 1.25rem;
  }
}

/* Account wallet & bank cards */
.niragold-site .ng-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: #c5a869;
  color: #fff;
  border: 1px solid rgba(197, 168, 105, 0.35);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.2s ease;
}

.niragold-site .ng-btn-gold:hover {
  background: #b59859;
}

.niragold-site .ng-btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.niragold-site .ng-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: #fff;
  color: #404040;
  border: 1px solid #d4d4d4;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  transition: all 0.2s ease;
}

.niragold-site .ng-btn-outline:hover {
  background: #fafafa;
}

.niragold-site .ng-btn-outline:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.niragold-site .ng-account-tabs a {
  text-decoration: none;
}

.niragold-site .ng-account-shell h1 {
  color: #27272a;
  font-size: 1.125rem;
  font-weight: 700;
}

/* Modals above site header (header z-index: 1000 in style.css) */
.niragold-site .ng-modal-overlay {
  z-index: 1100;
}

.niragold-site .ng-modal-panel {
  position: relative;
  z-index: 1110;
}

.niragold-site .ng-user-menu-trigger {
  gap: 0.55rem;
  padding-inline: 0.65rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(181, 154, 98, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 242, 0.98) 100%);
  color: #1c1917;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.niragold-site .ng-user-menu-trigger:hover {
  border-color: rgba(181, 154, 98, 0.45);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}

.niragold-site .ng-user-menu-panel {
  text-align: start;
}

.niragold-site .ng-add-card-modal {
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 40px rgba(28, 25, 23, 0.12);
}

@media (min-width: 640px) {
  .niragold-site .ng-add-card-modal {
    box-shadow: 0 16px 48px rgba(28, 25, 23, 0.12);
  }
}
