/*
Theme Name: Annareich Store
Author: ...
Version: 1.0
*/

@import url("styles/base.css?v=20260523-2");
@import url("styles/breadcrumbs.css?v=20260523-2");
@import url("styles/footer.css?v=20260523-2");
@import url("styles/header.css?v=20260523-2");
@import url("styles/pagination.css?v=20260523-2");
@import url("styles/wishlist_button.css?v=20260523-2");

/* Cart toast */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(23, 23, 23, 0.96);
  color: #fff;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 99999;
}

.cart-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cart-toast__text {
  display: block;
}

@media (max-width: 480px) {
  .cart-toast {
    left: 16px;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: auto;
    max-width: none;
    padding: 12px 14px;
    transform: translateY(16px);
    border-radius: 12px;
    font-size: 13px;
  }

  .cart-toast.is-visible {
    transform: translateY(0);
  }
}


/* === GTranslate в Dropdown === */
.gtranslate-dropdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gtranslate-dropdown-wrapper .goog-te-gadget {
  font-family: "SegoeUIWeb", sans-serif !important;
}

.gtranslate-dropdown-wrapper .goog-te-gadget-simple {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.gtranslate-dropdown-wrapper .goog-te-combo {
  background: transparent !important;
  border: none !important;
  color: #060606 !important;
  font-size: 16px !important;
  font-family: "SegoeUIWeb", sans-serif !important;
  font-weight: 400 !important;
  padding: 4px 8px !important;
  cursor: pointer !important;
  outline: none !important;
}

.gtranslate-dropdown-wrapper .goog-te-combo:hover {
  color: #000 !important;
}

/* Скрыть текст и логотип в dropdown */
.gtranslate-dropdown-wrapper .goog-te-gadget-simple > span,
.gtranslate-dropdown-wrapper .goog-te-gadget-simple img,
.gtranslate-dropdown-wrapper .goog-te-gadget-icon,
.gtranslate-dropdown-wrapper .VIpgJd-ZVi9od-l4eHX-hSRGPd {
  display: none !important;
}

a.glink.gt-current-lang {
  display: none;
}

html.ars-lightbox-open,
body.ars-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.ars-media-zoomable {
  cursor: zoom-in;
}

.ars-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ars-media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ars-media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.86);
}

.ars-media-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 16px;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  touch-action: none;
}

.ars-media-lightbox__toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.ars-media-lightbox__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "SegoeUIWeb", sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ars-media-lightbox__control:disabled {
  opacity: 0.45;
  cursor: default;
}

.ars-media-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 12px;
  touch-action: none;
}

.ars-media-lightbox__stage.is-draggable {
  cursor: grab;
}

.ars-media-lightbox__stage.is-dragging {
  cursor: grabbing;
}

/* Video sound button (couture / fashion week) */
.ars-video-sound-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(40px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}
.ars-video-sound-btn:hover {
  background: rgba(255,255,255,0.5);
}
.ars-video-sound-btn .hidden {
  display: none;
}

.ars-media-lightbox__media {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
  touch-action: none;
  cursor: inherit;
  will-change: transform;
}

@media (max-width: 767px) {
  .ars-media-lightbox__dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 16px;
    border-radius: 0;
  }

  .ars-media-lightbox__toolbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  .ars-media-lightbox__control {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 16px;
  }
}
