/* Orbit homepage layout fixes */
body.bg-orbit {
	background: #000;
}

body.bg-orbit .app {
	overflow-x: hidden;
}

.header-orbit-content {
	flex-wrap: nowrap;
	direction: rtl;
}

.header-orbit-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.header-orbit-actions {
	flex: 0 0 auto;
	gap: 0;
	margin-inline-start: auto;
}

.header-orbit .top-header-shop__cart {
	display: flex;
	align-items: center;
}

.header-orbit .top-header-shop__cart__dropdown {
	transform: translate(0, 48px);
}

.header-orbit .top-header-shop__cart:hover .top-header-shop__cart__dropdown {
	transform: translate(0, 28px);
}

.header-orbit .top-header-shop__auth__dropdown {
	left: 0;
	right: auto;
}

.header-orbit .header-orbit-auth.btn {
	border: none;
}

.header-orbit .top-header-shop__cart__dropdown .heading {
	background-image: none;
}

/* Orbit homepage overrides – mini cart & auth dropdown (from Karen theme) */
.top-header-shop__cart__dropdown {
  width         : 347px;
  transform     : translate(-70px, 48px);
  pointer-events: none;
  opacity       : 0;
  visibility    : hidden;
  z-index       : 1000;
}

.top-header-shop__cart__dropdown::before {
  content  : "";
  position : absolute;
  top      : 0;
  left     : 0;
  width    : 100%;
  height   : 200px;
  transform: translateY(-28px);
  z-index  : -1;
}

.top-header-shop__cart__dropdown .content {
  box-shadow: 20px 19px 84px -30px rgba(0, 0, 0, 0.25);
  padding   : 10px 12px 14px;
}

.top-header-shop__cart__dropdown .heading {
  padding: 11px 17px;
}

.top-header-shop__cart__dropdown .products {
  max-height     : 343px;
  overflow-y     : auto;
  scrollbar-width: 4px;
  scrollbar-color: #00a693 blue;
}

.top-header-shop__cart__dropdown .products::-webkit-scrollbar {
  width           : 4px;
  background-color: #f3f6f4;
}

.top-header-shop__cart__dropdown .products::-webkit-scrollbar-thumb {
  background-color: #00a693;
}

.top-header-shop__cart__dropdown .products__item {
  background-color: #fff;
  border          : 6px solid #f3f6f4;
  padding         : 15px 17px 10px 17px;
}

.top-header-shop__cart__dropdown .products__item .info .image {
  width           : 53px;
  height          : 53px;
  background-color: #f9f9fd;
  padding         : 4px;
}

.top-header-shop__cart__dropdown .products__item .info .image img {
  width : 45px;
  height: 45px;
}

.top-header-shop__cart__dropdown .products__item .info .title {
  color     : #14151b;
  max-height: 40px;
}

.top-header-shop__cart__dropdown .products__item .info .title:hover {
  color: #00a693;
}

.top-header-shop__cart__dropdown .products__item .remove {
  background-color: #f0e6db;
  color           : #ee0404;
  padding         : 5px 16px;
}

.top-header-shop__cart__dropdown .products__item .box {
  border : 1px solid #dfe0e7;
  padding: 4px 15px;
}

.top-header-shop__cart__dropdown .products__item .box.color span {
  width           : 12px;
  height          : 12px;
  outline         : 1px solid #a4a8ba;
  border          : 1px solid #fff;
  background-color: #000000;
}

.top-header-shop__cart__dropdown .products__item .quantity {
  border : 1px solid #d6dbec;
  padding: 0 13px;
}

.top-header-shop__cart__dropdown .products__item .quantity input {
  width : 32px;
  height: 25px;
  color : #00a693;
}

.top-header-shop__cart__dropdown .products__item .off {
  color: #d6dbec;
}

.top-header-shop__cart__dropdown .products__item .price {
  color: #00a693;
}

.top-header-shop__cart__dropdown .total-price {
  background-color: #f3f6f4;
  padding         : 16px 12px;
}

.top-header-shop__cart__dropdown .total-price .off {
  color: #c3c5c8;
}

.top-header-shop__cart__dropdown .total-price .off+.price {
  color: #f41212;
}

.top-header-shop__cart__dropdown .total-price .toman.writing-mode {
  transform: scale(-1);
}

.top-header-shop__cart__dropdown .total-price .btns .btn {
  padding: 11px 22px;
}

.top-header-shop__cart__dropdown .total-price .btns .btn:last-child {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
  background-size : 16px 16px;
  animation       : progressBtn 1s linear infinite;
}

@keyframes progressBtn {
  0% {
    background-position-x: 16px;
  }
}

.top-header-shop__cart:hover .top-header-shop__cart__dropdown {
  transform     : translate(-70px, 28px);
  opacity       : 1;
  visibility    : visible;
  pointer-events: all;
}

.top-header-shop__auth__btn {
  padding: 15px 17px;
}

.top-header-shop__auth__dropdown {
  top             : 100%;
  left            : 0;
  background-color: #fff;
  box-shadow      : 0 10px 50px rgba(0, 0, 0, 0.07), 0 4px 1px #00a693;
  border          : none;
  width           : 266px;
  padding         : 20px 20px 32px;
  transform       : translateY(40px);
  opacity         : 0;
  visibility      : hidden;
  pointer-events  : none;
  z-index         : 999;
}

.top-header-shop__auth__dropdown::before {
  content  : "";
  position : absolute;
  top      : 0;
  left     : 0;
  width    : 100%;
  height   : 50px;
  transform: translateY(-20px);
  z-index  : -1;
}

.top-header-shop__auth__dropdown .info-user {
  padding-bottom: 20px;
  border-bottom : 1px solid #f5f3fc;
}

.top-header-shop__auth__dropdown .info-user img {
  width : 40px;
  height: 40px;
}

.top-header-shop__auth__dropdown .links a {
  gap: 12px;
}

.top-header-shop__auth__dropdown .links a::before {
  width           : 12px;
  height          : 3px;
  background-color: #00a693;
  border-radius   : 4px;
}

.top-header-shop__auth:hover .top-header-shop__auth__dropdown {
  opacity       : 1;
  visibility    : visible;
  transform     : translateY(20px);
  pointer-events: all;
}

@media only screen and (max-width: 1399px) {
  .top-header-shop__categories {
    margin-right: 32px;
  }
}

/* Orbit cart button – reset Karen btn styles, keep Orbit look */
.header-orbit-cart.top-header-shop__cart__btn {
  border: none;
  background: transparent;
  padding: 0;
  gap: 6px;
}

.header-orbit-cart.top-header-shop__cart__btn .count {
  min-width: 18px;
  min-height: 18px;
  background: #00a693;
  color: #fff;
}

/* Karen variation modal & toast (parent style.css not loaded on Orbit) */
.karen-variation-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.karen-variation-modal.active {
  display: flex;
}

.karen-variation-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.karen-variation-modal__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.karen-variation-modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
}

.karen-variation-modal__header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 20px;
}

.karen-variation-modal__image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
}

.karen-variation-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.karen-variation-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 8px;
}

.karen-variation-modal__price {
  font-size: 18px;
  font-weight: 800;
  color: #00a693;
}

.karen-variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.karen-variation-option {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.karen-variation-option.selected {
  border-color: #00a693;
  background: #00a693;
  color: #fff;
}

.karen-variation-option.out-of-stock {
  opacity: 0.5;
}

.karen-variation-modal__quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
}

.karen-quantity-selector {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.karen-quantity-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.karen-quantity-input {
  width: 50px;
  height: 40px;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  text-align: center;
  font-size: 16px;
}

.karen-variation-modal__add-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: #00a693;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.karen-variation-modal__add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.karen-modal-open {
  overflow: hidden;
}

.custom-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #00a693;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.custom-toast::before {
  display: none;
}

a.added_to_cart.wc-forward {
  display: none !important;
}
