/* ===== Top Slider ===== */
.rn-top-slider {
  background: var(--rn-beige-light);
  height: 40px;
  overflow: hidden;
  text-align: center;
  width: 100%;
}
.rn-slider-track {
  display: flex;
  flex-direction: column;
  animation: rn-slide-up 10s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}
.rn-slide {
  height: 40px;
  line-height: 40px;
  font-size: 13px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--rn-text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes rn-slide-up {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(0); }
  25%  { transform: translateY(-40px); }
  45%  { transform: translateY(-40px); }
  50%  { transform: translateY(-80px); }
  70%  { transform: translateY(-80px); }
  75%  { transform: translateY(-120px); }
  95%  { transform: translateY(-120px); }
  100% { transform: translateY(0); }
}

/* ===== Header ===== */
.rn-header {
  position: sticky;
  top: 0;
  background: var(--rn-white);
  border-bottom-left-radius: var(--rn-radius-xl);
  border-bottom-right-radius: var(--rn-radius-xl);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  width: 100%;
}
.rn-header-container {
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  height: 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

/* ===== Desktop (≥922px) ===== */
@media (min-width: 922px) {
  .rn-header-logo {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
  }
  .rn-header-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .rn-header-cart {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
  }
  .rn-mobile-toggle {
    display: none;
  }
  .rn-header-nav {
    display: block;
  }
}

/* ===== Mobile (<922px) ===== */
@media (max-width: 921px) {
  .rn-header-container {
    padding: 0 15px;
  }
  .rn-header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .rn-header-cart {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  .rn-mobile-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .rn-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--rn-text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .rn-header-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--rn-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }
  .rn-header-nav.is-open {
    display: block;
  }
}

/* ===== Logo ===== */
.rn-header-logo img {
  max-height: 50px;
  width: auto;
}
.rn-site-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--rn-text-black);
  white-space: nowrap;
}

/* ===== Navigation menu ===== */
.rn-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}
@media (max-width: 921px) {
  .rn-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
}
.rn-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rn-text-dark);
  border-radius: var(--rn-radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.rn-menu li a:hover {
  background: var(--rn-beige-light);
  color: var(--rn-text-black);
}

/* ===== Cart area in header ===== */
.rn-header-cart {
  display: flex;
  align-items: center;
}

/* ===== Cart icon ===== */
.rn-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}
.rn-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rn-beige-soft);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: var(--rn-text-black);
  transition: background 0.2s ease;
}
.rn-cart-link:hover .rn-cart-icon {
  background: var(--rn-beige);
}
.rn-cart-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.rn-cart-count {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--rn-red);
  color: var(--rn-white);
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--rn-white);
  box-sizing: border-box;
}
/* ===========================================================
   Currency switcher buttons (header) — AED / KWD
   Lives inside .rn-header-cart, sits next to the cart icon.
   =========================================================== */

/* Cart container: flex row, currency + cart aligned with a small gap */
.rn-header-cart {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rn-currency-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--rn-cream, #fdfaf8);
    border: 1px solid var(--rn-beige, #ead5c5);
    border-radius: 30px;
    padding: 3px;
    flex-shrink: 0;
}

.rn-currency-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 30px;
    padding: 0 9px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rn-text-dark, #444);
    background: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.rn-currency-btn:hover {
    background: var(--rn-beige-soft, #efdcd0);
    color: var(--rn-text-black, #111);
}

.rn-currency-btn.is-active {
    background: var(--rn-beige, #ead5c5);
    color: var(--rn-text-black, #111);
    box-shadow: 0 2px 6px rgba(234, 213, 197, 0.5);
}

.rn-currency-sym {
    font-weight: 800;
}

/* ===== Mobile layout (≤921px) ===== */
@media (max-width: 921px) {
    .rn-header-cart {
        gap: 8px;
    }
    .rn-currency-switch {
        gap: 2px;
        padding: 2px;
    }
    .rn-currency-btn {
        min-width: 32px;
        height: 26px;
        padding: 0 6px;
        font-size: 11px;
    }
    /* Slightly smaller cart icon on mobile to free up space */
    .rn-cart-icon {
        width: 38px;
        height: 38px;
    }
    /* Shrink the logo a touch so it never collides with cart+currency */
    .rn-header-logo img {
        max-height: 38px;
    }
}

/* ===== Small phones (≤480px) ===== */
@media (max-width: 480px) {
    .rn-header-cart {
        gap: 6px;
    }
    .rn-currency-btn {
        min-width: 29px;
        height: 25px;
        padding: 0 5px;
        font-size: 10.5px;
    }
    .rn-cart-icon {
        width: 36px;
        height: 36px;
    }
    .rn-header-logo img {
        max-height: 34px;
    }
}

/* ===== Very small phones (≤380px) ===== */
@media (max-width: 380px) {
    .rn-currency-btn {
        min-width: 27px;
        padding: 0 4px;
        font-size: 10px;
    }
    .rn-header-logo img {
        max-height: 30px;
    }
}