:root {
  --primary-color: #ffffff;
  --secondary-color: #ffffff;
  --text-color-primary: #333;
  --text-color-secondary: #777;
  --button-color: #000000;
  --button-text-color: #ffffff;
  --product-img-fit : cover; /* default to cover */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Almarai', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
}

html[dir="rtl"] body {
  font-family: 'Almarai', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wrapper {
  background-color: var(--primary-color, #333);
  width: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

header a {
  color: var(--text-color-primary);
  text-decoration: none;
  font-size: 1rem;
}

#userGreeting {
  color: var(--text-color-primary);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.title {
  color: var(--text-color-primary);
  text-align: center;
  margin: 24px 0 8px;
  font-size: 1.2rem;
}

.main-title {
  color: var(--text-color-primary);
  text-align: center;
  font-size: 2rem;
  margin-top: 8px;
}

.subtitle {
  color: var(--text-color-primary);
  text-align: center;
}

.categories {
  display: flex;
  gap: 16px;
  padding: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
  height: 6px;
}

.categories::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 120px;
  padding: 12px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: 1px solid transparent;
  scroll-snap-align: start;
  text-align: center;
}

.category-card:hover {
  transform: scale(1.03);
  box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.08)
}

.category-card.active {
  transform: scale(1.03);
  box-shadow: inset 1px 1px 20px 0px rgba(0, 0, 0, 0.12);
}

.category-card .image-wrapper {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card .image-wrapper-small {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.category-card span {
  font-size: 1rem;
  color: var(--text-color-primary);
  white-space: nowrap;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
  width: 100%;
  margin: 0 auto;
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit:  var(--product-img-fit, cover); /* cover by default */
  margin: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-card img:hover {
  transform: scale(1.03);
}


.product-info {
  padding: 2px;
  text-align: center;
}


.product-info h4 {
  color: var(--text-color-primary, #555);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.product-info p {
  color: var(--text-color-primary, #555);
  font-size: 0.9rem;
}

.price-tag {
  color: var(--text-color-primary, #555);
  font-weight: bold;
  margin-top: 4px;
}

.price-tax {
  font-size: 14px !important;
  color: var(--text-color-primary, #555);
  margin-top: 4px;
}

.qty-buttons {
  padding: 10px;
  right: 4px;
  bottom: 4px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.qty-buttons button {
  background: var(--button-color);
  color: var(--button-text-color);
  width: 40px;
  height: 40px;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  border-top: 1px solid #ddd;
  padding: 12px 0;
  z-index: 1030;
}

.footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.footer .summary {
  color: var(--text-color-secondary);
  text-align: center;
  font-size: 1.6rem;
}

.footer button {
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.footer button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.modal-footer button {
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-footer button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.modal-footer button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.login-page {
  background-color: var(--secondary-color);
  min-width: 100%
}

.stock-badge {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.guest-wrapper {
  background-color: var(--primary-color);
  color: var(--text-color-primary);
  width: 100%;
  padding: 15px 35px;
}

.guest-wrapper h2,
.guest-wrapper h3 {
  color: var(--text-color-primary);
  text-align: center;
  margin-bottom: 16px;
}

.guest-wrapper .info,
.guest-wrapper .item {
  color: var(--text-color-primary);
}

.item {
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.order-summary-text {
  color: var(--text-color-primary);
}

.order-items-preview {
  font-size: 0.85rem;
  margin-top: 4px;
  color: var(--text-color-primary);
}

.product-search {
  text-align: center;
}

/* Default (desktop) layout */
.header-with-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.menu-half {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.menu-left {
  justify-content: flex-start;
}

.menu-right {
  justify-content: flex-end;
}

.logo-wrapper {
  flex-shrink: 0;
  text-align: center;
}

.logo-wrapper img {
  height: 100px;
}

/* Hamburger only visible on mobile */
.hamburger {
  display: none;
  font-size: 1.7rem;
  background: none;
  color: var(--primary-color);
  border: none;
  cursor: pointer;
}

/* Mobile sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  z-index: 9999;
  inset-block: 0;                  /* top:0; bottom:0 */
  inset-inline-start: -100%;       /* replaces left/right */
  width: 80vw; max-width: 380px;
  transition: inset-inline-start .25s ease;
}

.sidebar-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#closeSidebar {
  background: none;
  border: none;
  font-size: 24px;
  align-self: flex-end;
  cursor: pointer;
  position: absolute;
}

.mobile-sidebar.open {
  inset-inline-start: 0;
}


@media (max-width: 600px) {
  .footer {
    flex-direction: unset;
    gap: 8px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .footer .summary {
    color: var(--text-color-secondary);
    text-align: center;
    font-size: 1.2rem;
  }

  .footer button {
    font-size: 0.8rem;
  }

  .order-summary-text {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  #bannerCarousel .carousel-item {
    height: 300px !important;
  }
}


.banners {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.banner img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

#bannerCarousel {
  overflow: hidden;
}

#bannerCarousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%; 
  z-index: 2;
  pointer-events: none;
}

#bannerCarousel .carousel-item {
  height: 500px;
}

#bannerCarousel .carousel-item img {
  object-fit: cover;
  height: 100%;
}

input[name="payment_method_id"]:checked+label {
  background-color: #e6f4ea;
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.payment-method-card {
  transition: all 0.2s ease;
  background-color: #fff;
  border-color: #dee2e6;
}

.payment-radio:checked+.payment-method-card {
  border-color: #198754;
  background-color: #e9f9ef;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
}

.checkout-list {
  max-height: 200px;
  overflow: auto;
}
.checkout-list .list-group-item .item-name {
  max-width: 50%; 
}
.list-group-item .item-name {
  max-width: 50%; 
}

.cursor-pointer {
  cursor: pointer;
}

.delivery-method-card:hover,
.delivery-radio:checked+.delivery-method-card {
  background-color: #e9f7ef;
}

.nav-bar-custom {
  background-color: var(--primary-color);
  border-radius: 2px;
  padding: 1rem 1rem 1rem 1rem;
  z-index: 1000;
  width: 100%;
  margin-top: 0px;
}

.nav-bar-custom .logo {
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
}

.text-branding-title {
  font-size: 1.5rem;
  color: var(--text-color-primary);
  text-align: center;
  margin-bottom: 8px;
}

.video-wrapper {
  width: 100%;
  object-fit: contain;
}

/* Desktop responsiveness */

@media (min-width: 992px) {
  .categories {
    justify-content: flex-start;   /* default: flush-left when it overflows */
    width: max-content;            /* center only when content is narrower */
    max-width: 100%;
    margin-inline: auto;
  }

  /* Center if fewer than 6 cards (desktop only) */
  @supports(selector(:has(*))) {
    .categories:not(:has(.category-card:nth-child(6))) {
      justify-content: center;
    }
  } 
  .lang-trigger {
    color: var(--text-color-primary);
  }
}
/* Mobile responsiveness */
@media (max-width: 768px) {
  .main-title {
    font-size: 1.25rem;
  }
  .category-card img {
    height: 100px;
    /* Adjusted height for mobile */
    width: 100px;
    /* Adjusted width for mobile */
  }
  .price-display {
    font-size: 1rem !important;
  }
  header a {
    font-size: 0.9rem;
  }
  .menu-left,
  .menu-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .logo-wrapper {
    margin: 0 auto;
  }

  .logo-wrapper img {
    height: 140px
  }

  .text-branding-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .video-wrapper {
    height: 100%;
    object-fit: cover;
  }
  .category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 120px;
    padding: 12px 8px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
    scroll-snap-align: start;
    text-align: center;
  }

  .category-card span {
    font-size: 0.8rem;
    color: var(--text-color-primary);
    white-space: nowrap;
  }

  .product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
  }

  .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
  } 

  .add-to-cart-btn {
    padding: 3px 10px !important;
  }
  .nav-bar-custom {
    border-radius: 10px;
    padding: 0.9rem 1.5rem;
    position: absolute;
    z-index: 1000;
    width: 100% !important;
    left: 0 !important; 
    margin-top: 10px;
    background-color: unset !important;
  }
  #bannerCarousel .carousel-item {
    height: 500px;
  }

  #bannerCarousel::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  }
  #bannerCarousel .carousel-item img {
    height: 100%;
  }
}

@keyframes shake-horizontal {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

.shake-on-load {
  animation: shake-horizontal 1.9s ease;
}

.fullscreen-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-scroll-container {
  display: flex;
  white-space: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* smoother, less strict */
  scroll-behavior: smooth;
  gap: 0.5rem;
}
.image-scroll-container > * {
  scroll-snap-align: center;
  flex: 0 0 auto;
}
.image-scroll-container img {
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.image-scroll-container img:hover {
  transform: scale(1.05);
}

@keyframes scrollHint {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-15px);
  }

  40% {
    transform: translateX(15px);
  }

  60% {
    transform: translateX(-10px);
  }

  80% {
    transform: translateX(10px);
  }

  100% {
    transform: translateX(0);
  }
}

.image-scroll-container.hint-scroll {
  animation: scrollHint 0.8s ease-in-out;
}

.guest-product-image {
  width: 150px !important;
  height: 150px !important;
  object-fit: cover !important;
  border-radius: 4px;
  margin-right: 12px;
}

.description-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 1rem;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.scroll-indicators {
  text-align: center;
  margin-top: 8px;
}

.scroll-indicators .dot {
  height: 8px;
  width: 8px;
  margin: 0 4px;
  background-color: #cccccc41;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.scroll-indicators .dot.active {
  background-color: var(--text-color-primary);
}

.copy-tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0.9;
}

.share-section .btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 0;
  margin: 10px;
}

.order-type-card {
  transition: all 0.3s ease;
  background: #fff;
  cursor: pointer;
}

.order-type-card:hover {
  background: #f8f9fa;
}

.order-type-radio:checked+.order-type-card {
  border: 2px solid #198754;
  /* Bootstrap success green */
  background: #e9f7ef;
  box-shadow: 0 0 10px rgba(25, 135, 84, 0.2);
}

#welcomeBox {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#welcomeBox.show {
  opacity: 1;
  transform: translateY(0);
}

#welcomeBox h4 {
  font-size: 1.8rem;
  color: #0d6efd;
  /* Bootstrap primary */
}

/* Optional: Add a subtle underline animation */
#welcomeBox h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 3px;
  background: #0d6efd;
  transition: width 0.6s ease, left 0.6s ease;
}

#welcomeBox.show h4::after {
  width: 60%;
  left: 20%;
}

.footer-action-bar {
  background: var(--button-color);
  text-align: center;
  width: 100%;
}

.action-bar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--button-text-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.action-bar-link i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.action-bar-link:hover {
  transform: scale(1.02);
}

.title-with-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* space between text and lines */
}

.title-with-lines::before,
.title-with-lines::after {
  content: "";
  height: 2px;
  width: 50px;
  /* line length */
  display: block;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
}

.title-with-lines::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

.title-with-lines span {
  font-size: 2rem;
  color: var(--text-color-primary);
  white-space: nowrap;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.price-display {
  font-size: 1.2rem;
  font-weight: bolder;
  color: var(--button-color) !important; 
  padding: 5px;
  border-radius: 10px;
}

.add-to-cart-btn {
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 1rem;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-added {
  color: var(--button-color);
  background: var(--button-text-color);
}

.remove-item {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #dc3545; /* red color */
  font-size: 1.2rem; /* adjust size */
  cursor: pointer;
}
.remove-item i {
  pointer-events: none;
}
.remove-item:hover {
  color: #660a13; /* darker red on hover */
}
.offcanvas-header{
  color: var(--button-text-color);
  background: var(--button-color);
}
.highlight-effect {
  border-radius: 8px;
  transition: box-shadow 0.3s ease-in-out;
  animation: shadowPulse 1.5s ease-in-out 2;
}

@keyframes shadowPulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.card-header {
  background: linear-gradient(90deg, #2464a5 0%, #8abfd8 50%, #2464a5 100%);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.card-header span {
  color: #fff;
}
.action_tiles_container {
  position: absolute; 
  bottom: 30px; 
  left: 50%; 
  transform: 
  translateX(-50%);
   z-index: 500;
   width: 80%;
}

.transparent_bg {
  background: #f1f1f1a6 !important;
}

.bg-primary-color {
  color: var(--primary-color) !important;
}
.recommended-badge  {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: var(--button-color);
  color:var(--button-text-color);
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}
.loadmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(90deg, #4e9af1, #1c6df5);
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.loadmore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.loadmore-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.loadmore-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(28, 109, 245, 0.3);
}
.button-primary {
  background: var(--button-color);
  color: var(--button-text-color);
}

.mcats { font-size: .9rem; margin-top: .5rem; }
.mcats-list { list-style: none; margin: 0; padding: 0; }
.mcats-item + .mcats-item { border-top: 1px solid #eee; }

.mcats-row { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; }
.mcats-name-link { text-decoration: none; color: inherit; }
.mcats-toggle { border: 0; background: transparent; padding: .25rem; line-height: 1; }
.mcats-toggle i { transition: transform .2s ease; opacity: .85; }
.mcats-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.mcats-panel { padding: .3rem 0 .6rem; }
.mcats-link { display: block; padding: .55rem 0; text-decoration: none; color: inherit; }
.mcats-sub { padding-left: .9rem; opacity: .95; }

/* Hide on desktop */
@media (min-width: 992px) { .mcats { display: none; } }


/* Container */
.lang-dd {
  position: relative;
  display: inline-block;
}

/* Trigger */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-trigger::-webkit-details-marker { display: none; } /* hide default arrow */

.lang-trigger .chevron { transition: transform .2s ease; }
.lang-dd[open] .chevron { transform: rotate(180deg); }

/* Menu */
.lang-menu {
  position: absolute;
  top: calc(100% + .4rem);
  inset-inline-end: 0; /* RTL/LTR aware */
  min-width: 210px;
  margin: 0;
  padding: .5rem;
  list-style: none;
  border: 1px solid var(--border-color, rgba(0,0,0,.08));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  z-index: 1000;
  background: white;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.lang-item:hover { background: rgba(0,0,0,.05); }

.lang-item .abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 700;
  font-size: .85rem;
}



.ann-bar {
	display: flex;
	align-items: center;
	gap: .75rem;
	background: var(--secondary-color, #222);
	padding: .65rem .9rem;
	color:var(--text-color-primary, #222);
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: .85rem
}

.ann-text {
	flex: 1;
	text-align: center;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.ann-arrow {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	opacity: .6;
	cursor: pointer;
	transition: opacity .2s ease
}

.ann-arrow:hover {
	opacity: 1
}

@keyframes annFadeUp {
	from {
		opacity: 0;
		transform: translateY(6px)
	}

	to {
		opacity: 1;
		transform: translateY(0)
	}
}

.ann-fadeup {
	animation: annFadeUp .35s ease both
}

.video-play-overlay{
  position:absolute; inset:0; margin:15px; width:30px; height:30px;
  display:flex; align-items:center; justify-content:center;
  border:0; border-radius:50%;
  background:rgba(0,0,0,.45); color:#fff; cursor:pointer;
  opacity:.85; transition:opacity .2s ease;
}
.video-play-overlay,
.video-play-overlay:focus-visible{ opacity:1; outline:2px solid rgba(255,255,255,.7); }

:dir(rtl) .video-play-overlay { left:0; right:unset; }  