/* =========================================================
   M3yar Quick View Modal
   ========================================================= */

   .m3-card__quick-btn {
    border: 0;
    width: 100%;
    cursor: pointer;
  }
  
  .m3-qv-modal.modal {
    z-index: 11050;
  }

  /* Backdrop must sit above sticky header/search (z ~10040–10070) */
  body:has(.m3-qv-modal.show) > .modal-backdrop {
    z-index: 11040;
  }

  body:has(.m3-qv-modal.show) .header-brand .header__center.sticky-header,
  body:has(.m3-qv-modal.show) .header-brand .header__center.sticky-header.is-sticky,
  body:has(.m3-qv-modal.show) .header-brand .header__bottom,
  body:has(.m3-qv-modal.show) .header-brand .header-menu-vertical,
  body:has(.m3-qv-modal.show) .header-brand .header-menu-vertical .menu-content,
  body:has(.m3-qv-modal.show) .header-brand .header__nav-item--dropdown {
    z-index: 1040;
  }

  .m3-qv-modal .modal-dialog {
    max-width: min(1080px, calc(100vw - 24px));
    margin: 1rem auto;
  }
  
  .m3-qv-modal__content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fffcf8;
    box-shadow: 0 28px 80px rgba(26, 15, 12, 0.28);
  }
  
  .m3-qv-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fffaf4 0%, #fff 100%);
    border-bottom: 1px solid rgba(26, 15, 12, 0.06);
  }
  
  .m3-qv-modal__eyebrow {
    margin: 0;
    font-family: "Cairo", sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #7a3333;
    letter-spacing: 0.04em;
  }
  
  .m3-qv-modal__heading {
    margin: 2px 0 0;
    font-family: "Cairo", sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #1a0f0c;
  }
  
  .m3-qv-modal__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(26, 15, 12, 0.06);
    color: #3d2420;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
  }
  
  .m3-qv-modal__close:hover {
    background: #7a3333;
    color: #fff;
  }
  
  .m3-qv-modal__body {
    padding: 0;
    min-height: 320px;
  }
  
  .m3-qv-loading {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 360px;
    color: #8a8279;
    font-family: "Cairo", sans-serif;
    font-weight: 700;
  }
  
  .m3-qv-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(122, 51, 51, 0.15);
    border-top-color: #7a3333;
    animation: m3-qv-spin 0.8s linear infinite;
  }
  
  @keyframes m3-qv-spin {
    to { transform: rotate(360deg); }
  }
  
  .m3-qv {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }
  
  @media (min-width: 900px) {
    .m3-qv {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      min-height: 0;
    }
  }
  
  .m3-qv__gallery {
    min-width: 0;
    max-width: 100%;
    /*padding: 18px;*/
    border-radius: 18px;
    background:
      radial-gradient(ellipse 70% 50% at 50% 0%, rgba(196, 165, 116, 0.22), transparent 60%),
      linear-gradient(165deg, #f7f1e8 0%, #fff 100%);
  }
  
  .m3-qv__stage {
    position: relative;
    /* width: min(100%, 480px); */
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 18px;
    overflow: hidden;
    background:
      radial-gradient(ellipse 70% 50% at 50% 40%, rgba(247, 241, 232, 0.9), #fff 70%);
    box-shadow: 0 14px 36px rgba(26, 15, 12, 0.1);
    cursor: zoom-in;
    touch-action: pan-y;
  }
  
  .m3-qv__zoom-hint {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 15, 12, 0.55);
    color: #fff;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  .m3-qv__stage:hover .m3-qv__zoom-hint {
    opacity: 1;
    transform: scale(1.06);
  }
  
  .m3-qv__main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 5px;
    border-radius: 18px;
    box-sizing: border-box;
    transition: opacity 0.25s ease;
  }
  
  .m3-qv__badges {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 70%;
    z-index: 2;
  }
  
  .m3-qv__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
      padding-top: 4px;   
    scrollbar-width: thin;
  }
  
  .m3-qv__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  
  .m3-qv__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #faf7f2;
  }
  
  .m3-qv__thumb.is-active,
  .m3-qv__thumb:hover {
    border-color: #7a3333;
    transform: translateY(-2px);
  }
  
  .m3-qv__details {
    min-width: 0;
    max-width: 100%;
    padding: 22px 15px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .m3-qv__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  
  .m3-qv__cat {
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #7a3333;
    text-decoration: none;
  }
  
  .m3-qv__code {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: #8a8279;
  }
  
  .m3-qv__title {
    margin: 0;
    font-family: "Cairo", sans-serif;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    line-height: 1.35;
    color: #1a0f0c;
  }
  
  .m3-qv__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 700;
  }
  
  .m3-qv__stock.is-in { color: #2f6b4f; }
  .m3-qv__stock.is-out { color: #7a3333; }
  .m3-qv__sold { color: #c46b3a; }
  .m3-qv__views { color: #8a8279; }
  
  .m3-qv__stock i,
  .m3-qv__sold i,
  .m3-qv__views i {
    margin-inline-end: 4px;
    font-size: 10px;
  }
  
  .m3-qv__price-block {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(122, 51, 51, 0.06), rgba(196, 165, 116, 0.12));
    border: 1px solid rgba(122, 51, 51, 0.08);
  }
  
  .m3-qv__price-now {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  
  .m3-qv__price-now strong {
    font-family: "Cairo", sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #7a3333;
    letter-spacing: -0.02em;
  }
  
  .m3-qv__price-now small {
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: rgba(122, 51, 51, 0.75);
  }
  
  .m3-qv__price-old {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
  }
  
  .m3-qv__price-old del {
    color: rgba(26, 15, 12, 0.4);
  }
  
  .m3-qv__price-old span {
    font-weight: 800;
    color: #2f6b4f;
    background: rgba(47, 107, 79, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
  }
  
  .m3-qv__desc h3,
  .m3-qv__specs h3 {
    margin: 0 0 8px;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #1a0f0c;
  }
  
  .m3-qv__desc li{
    list-style: disc !important;
  }
  
  .m3-qv__desc-body,
  .m3-qv__desc p {
    margin: 0;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #6b4c3b;
    direction: rtl;
    text-align: right;
  }
  
  .m3-qv__desc-body p {
    margin: 0 0 0.75em;
  }
  
  .m3-qv__desc-body p:last-child {
    margin-bottom: 0;
  }
  
  .m3-qv__desc-body ul,
  .m3-qv__desc-body ol {
    margin: 0.4em 0 0.75em;
    padding-inline-start: 1.35em;
  }
  
  .m3-qv__desc-body li {
    margin-bottom: 0.25em;
  }
  
  .m3-qv__desc-body strong,
  .m3-qv__desc-body b {
    color: #3d2420;
    font-weight: 800;
  }
  
  .m3-qv__desc-body a {
    color: #7a3333;
    font-weight: 700;
    text-decoration: underline;
  }
  
  .m3-qv__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .m3-qv__features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(26, 15, 12, 0.08);
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #3d2420;
  }

  .m3-qv__colors {
    margin: 6px 0 4px;
    padding: 16px;
    border-radius: 18px;
    background:
      linear-gradient(165deg, rgba(255, 250, 243, 0.95), rgba(255, 255, 255, 0.88)),
      radial-gradient(120% 80% at 100% 0%, rgba(196, 165, 116, 0.14), transparent 55%);
    border: 1px solid rgba(74, 52, 44, 0.1);
    box-shadow: 0 10px 28px rgba(42, 27, 22, 0.05);
  }

  .m3-qv__colors.is-invalid {
    border-color: #c45c5c;
    box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.14);
    animation: m3ColorShake 0.38s ease;
  }

  @keyframes m3ColorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
  }

  .m3-qv__colors-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .m3-qv__colors-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
  }

  .m3-qv__colors-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(122, 51, 51, 0.1);
    color: #7a3333;
    font-size: 15px;
  }

  .m3-qv__colors-title h3 {
    margin: 0;
    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: #1a0f0c;
    line-height: 1.3;
  }

  .m3-qv__colors-title p {
    margin: 2px 0 0;
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #8a6f5e;
    line-height: 1.45;
  }

  .m3-qv__colors-pick {
    flex: 0 0 auto;
    min-width: 108px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(74, 52, 44, 0.1);
    text-align: center;
  }

  .m3-qv__colors-pick-label {
    display: block;
    font-family: "Cairo", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #8a6f5e;
  }

  .m3-qv__colors-pick strong {
    display: block;
    margin-top: 2px;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #7a3333;
    line-height: 1.3;
  }

  .m3-qv__colors.has-selection .m3-qv__colors-pick {
    border-color: rgba(122, 51, 51, 0.28);
    background: linear-gradient(180deg, #fff, #fff8f4);
  }

  .m3-qv__color-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
  }

  .m3-qv__color-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 12px 8px 8px;
    border-radius: 14px;
    border: 1.5px solid rgba(26, 15, 12, 0.1);
    background: #fff;
    color: #3d2420;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    text-align: start;
    transition:
      border-color .18s ease,
      background .18s ease,
      box-shadow .18s ease,
      transform .18s ease;
  }

  .m3-qv__color-opt:hover {
    border-color: rgba(122, 51, 51, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(42, 27, 22, 0.08);
  }

  .m3-qv__color-opt:focus-visible {
    outline: 2px solid #7a3333;
    outline-offset: 2px;
  }

  .m3-qv__color-swatch {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.35), transparent 42%),
      var(--swatch, #8a6f5e);
    border: 1px solid rgba(26, 15, 12, 0.16);
    box-shadow:
      inset 0 -2px 4px rgba(0, 0, 0, 0.12),
      0 1px 2px rgba(0, 0, 0, 0.06);
  }

  .m3-qv__color-opt--light .m3-qv__color-swatch {
    border-color: rgba(26, 15, 12, 0.22);
  }

  .m3-qv__color-swatch i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity .16s ease, transform .16s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }

  .m3-qv__color-opt--light .m3-qv__color-swatch i {
    color: #1a0f0c;
    text-shadow: none;
  }

  .m3-qv__color-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m3-qv__color-opt.is-active {
    border-color: #7a3333;
    background: linear-gradient(180deg, #fff8f4, #fff);
    box-shadow: 0 0 0 3px rgba(122, 51, 51, 0.12);
  }

  .m3-qv__color-opt.is-active .m3-qv__color-swatch i {
    opacity: 1;
    transform: scale(1);
  }

  .m3-qv__color-opt.is-active .m3-qv__color-name {
    color: #7a3333;
  }

  .m3-qv__colors--fixed .m3-qv__color-opt.is-fixed {
    cursor: default;
    pointer-events: none;
  }

  .m3-qv__colors--fixed .m3-qv__color-opt.is-fixed:hover {
    transform: none;
    box-shadow: 0 0 0 3px rgba(122, 51, 51, 0.12);
  }

  .m3-qv__color-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(163, 59, 59, 0.08);
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #a33b3b;
  }

  @media (max-width: 575px) {
    .m3-qv__colors {
      padding: 14px;
    }

    .m3-qv__colors-head {
      flex-direction: column;
      align-items: stretch;
    }

    .m3-qv__colors-pick {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      text-align: start;
      min-width: 0;
    }

    .m3-qv__color-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .m3-qv__specs dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  
  .m3-qv__specs dl > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(26, 15, 12, 0.06);
  }
  
  .m3-qv__specs dt {
    font-family: "Cairo", sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #8a8279;
    margin: 0;
  }
  
  .m3-qv__specs dd {
    margin: 0;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #1a0f0c;
  }
  
  .m3-qv__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
  }

  .m3-qv__side-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .m3-qv__cart,
  .m3-qv__wish,
  .m3-qv__share {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  }
  
  .m3-qv__cart {
    background: linear-gradient(145deg, #7a3333 0%, #5c2222 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(122, 51, 51, 0.28);
  }
  
  .m3-qv__cart:hover:not(:disabled) {
    transform: translateY(-2px);
  }
  
  .m3-qv__cart:disabled {
    background: #cfc7be;
    box-shadow: none;
    cursor: not-allowed;
  }
  
  .m3-qv__wish {
    min-width: 0;
    background: #fff;
    color: #3d2420;
    border: 1px solid rgba(26, 15, 12, 0.12) !important;
  }
  
  .m3-qv__wish.is-active {
    background: #7a3333;
    color: #fff;
    border-color: #7a3333 !important;
  }

  .m3-qv__share {
    min-width: 0;
    width: 100%;
    background: #fff;
    color: #3d2420;
    border: 1px solid rgba(26, 15, 12, 0.12);
  }

  .m3-qv__share[aria-expanded="true"] {
    border-color: #7a3333;
    color: #7a3333;
    background: rgba(122, 51, 51, 0.06);
  }

  .m3-share {
    position: relative;
  }

  .m3-share__menu {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(26, 15, 12, 0.08);
    box-shadow: 0 18px 40px rgba(26, 15, 12, 0.16);
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .m3-share__menu[hidden] {
    display: none !important;
  }

  .m3-share__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #1a0f0c;
    text-decoration: none;
    text-align: start;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
  }

  .m3-share__item:hover,
  .m3-share__item:focus-visible {
    background: #f7f1e8;
    color: #7a3333;
    outline: none;
  }

  .m3-share__item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
  }

  .m3-share__item--copy.is-copied {
    background: rgba(47, 107, 79, 0.1);
    color: #2f6b4f;
  }

  .m3-share__item--native {
    border-bottom: 1px dashed rgba(26, 15, 12, 0.08);
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-radius: 12px 12px 0 0;
  }
  
  .m3-qv__more {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 12px;
    text-decoration: none;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #7a3333;
    background: rgba(122, 51, 51, 0.06);
  }
  
  .m3-qv__more:hover {
    color: #5c2222;
    background: rgba(122, 51, 51, 0.1);
  }
  
  .m3-qv-modal.is-error .m3-qv-loading {
    color: #7a3333;
  }
  
  @media (max-width: 899px) {
    .m3-qv__specs dl {
      grid-template-columns: 1fr;
    }

    .m3-qv__side-actions {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .m3-qv-spinner {
      animation: none;
    }
  }
  
  /* ---- Product image lightbox ---- */
.m3-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 8, 6, 0.88);
  backdrop-filter: blur(6px);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}
  
  .m3-lightbox.is-open {
    display: flex;
  }

  .m3-lightbox.is-zoomed .m3-lightbox__nav {
    opacity: 0.35;
    pointer-events: none;
  }
  
  .m3-lightbox__inner {
    position: relative;
    width: min(920px, 100%);
    max-height: min(86vh, 920px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
  }
  
  .m3-lightbox__img {
    max-width: 100%;
    max-height: min(86vh, 920px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transition: opacity 0.18s ease;
    -webkit-user-drag: none;
    user-select: none;
    transform-origin: center center;
    will-change: transform;
    cursor: zoom-in;
    touch-action: none;
  }

  .m3-lightbox.is-zoomed .m3-lightbox__img {
    cursor: grab;
    border-radius: 0;
    transition: none;
  }
  
  .m3-lightbox__close,
  .m3-lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 3;
  }
  
  .m3-lightbox__close:hover,
  .m3-lightbox__nav:hover {
    background: rgba(122, 51, 51, 0.95);
  }
  
  .m3-lightbox__close {
    top: 18px;
    inset-inline-end: 18px;
  }
  
  .m3-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .m3-lightbox__prev {
    inset-inline-start: 12px;
  }
  
  .m3-lightbox__next {
    inset-inline-end: 12px;
  }
  
  .m3-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #fff;
    font-family: "Cairo", sans-serif;
    font-size: 13px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 3;
  }

  .m3-lightbox__hint {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-family: "Cairo", sans-serif;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.28);
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
  }
  
  body.m3-lightbox-open {
    overflow: hidden;
  }
  
  @media (max-width: 767px) {
    .m3-lightbox {
      padding: 0;
    }

    .m3-lightbox__inner {
      width: 100%;
      max-height: 100vh;
      height: 100%;
    }

    .m3-lightbox__img {
      max-height: 100vh;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
  
    .m3-lightbox__nav {
      width: 42px;
      height: 42px;
      background: rgba(255, 255, 255, 0.18);
    }
  
    .m3-lightbox__prev {
      inset-inline-start: 6px;
    }
  
    .m3-lightbox__next {
      inset-inline-end: 6px;
    }
  
    .m3-lightbox__counter {
      bottom: 18px;
    }

    .m3-lightbox__hint {
      bottom: 58px;
    }
  }

  @media (min-width: 768px) {
    .m3-lightbox__hint {
      display: none;
    }
  }
  