:root {
  --fade-duration: 300ms;
  --popup-backdrop: rgba(0, 0, 0, 0.55);
  --popup-border: rgba(255, 255, 255, 0.1);
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--popup-backdrop);
  opacity: 1;
  transition: opacity var(--fade-duration) ease;
}

.popup[hidden] {
  opacity: 0;
  pointer-events: none;
}

.popup-scroll-cont {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-content {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background-color: var(--color-card, #1f2937);
  color: inherit;
  border: 0;
  border-radius: 14px;
  position: relative;
  transform: translateY(0);
  transition:
    transform var(--fade-duration) ease,
    opacity var(--fade-duration) ease;
}

.popup[hidden] .popup-content {
  transform: translateY(14px);
}

.popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.popup-loading .popup-content {
  min-height: 180px;
}

.popup-loading .popup-content::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  animation: popup-spin 0.9s linear infinite;
}

@keyframes popup-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.drawer-down[hidden] .popup-content {
  transform: translateY(100%);
}

.drawer-up[hidden] .popup-content {
  transform: translateY(-100%);
}

.drawer-right[hidden] .popup-content {
  transform: translateX(100%);
}

.drawer-left[hidden] .popup-content {
  transform: translateX(-100%);
}

.basket {
  width: min(860px, 96vw);
}

.basket-popup .popup-scroll-cont {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

.basket-popup-content {
  width: min(520px, 94vw);
  max-width: 100%;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border-left: 1px solid var(--popup-border);
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.basket-popup[hidden] .basket-popup-content {
  transform: translateX(100%);
}

.basket-title {
  margin: 0;
}

.basket-content {
  overflow: auto;
  flex: 1 1 auto;
}

.basket-item .title {
  margin: 0 0 0.25rem 0;
}

.basket-item .price {
  font-size: 0.9rem;
}

.product-actions {
  width: 100%;
  margin-top: 0.5rem;
}

.product-actions > * + * {
  margin-top: 0.65rem;
}

.product-actions .price {
  margin: 0 0 0.45rem 0;
  line-height: 1.25;
  text-align: center;
}

.package-name-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.package-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.package-tag.tag-important {
  background: var(--tag-important-bg, #ef4444);
  color: var(--tag-important-text, #fff);
}

.package-tag.tag-square {
  background: var(--tag-square-bg, #3b82f6);
  color: var(--tag-square-text, #fff);
}

.package-tag.tag-round {
  background: var(--tag-round-bg, #22c55e);
  color: var(--tag-round-text, #fff);
}

.package-tag.tag-curly {
  background: var(--tag-curly-bg, #a855f7);
  color: var(--tag-curly-text, #fff);
}

.package-variant-switcher {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.package-variant-button {
  border: 0;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--color-card-shadow, rgba(255, 255, 255, 0.12));
  color: var(--color-card-foreground, #fff);
}

.package-variant-button.active {
  background: var(--color-primary, #3b82f6);
  color: var(--color-primary-foreground, #fff);
  border-bottom: 3px solid var(--color-primary-shadow, #1d4ed8);
}

.product-actions .add,
.product-actions .subscribe,
.product-actions .open-basket-cta,
.product-actions .gift {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
}

.quantity-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.product-actions .quantity-field {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 56px 40px;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
}

.product-actions .quantity-field .decrease,
.product-actions .quantity-field .increase {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: var(--color-primary, #3b82f6);
  color: var(--color-primary-foreground, #fff);
  border-bottom: 4px solid var(--color-primary-shadow, #1d4ed8);
  font-weight: 700;
}

.product-actions .quantity-field .open-basket {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  background: var(--color-primary, #3b82f6);
  color: var(--color-primary-foreground, #fff);
  border-bottom: 4px solid var(--color-primary-shadow, #1d4ed8);
}

.quantity-field .quantity {
  text-align: center;
  width: 56px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  background: var(--color-card-shadow, rgba(255, 255, 255, 0.1));
  color: inherit;
  font-weight: 700;
}

.basket .remove {
  text-decoration: none;
}

.basket-empty {
  text-align: center;
  color: var(--color-card-foreground, #fff);
  padding: 1.25rem;
  border-radius: 10px;
  background: var(--color-background, #111827);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.basket-checkout {
  border-bottom: 0;
}

.basket-popup-content.basket {
  display: flex;
  flex-direction: column;
}

.basket-checkout .checkout {
  white-space: nowrap;
}

.product-actions.updating,
.basket-popup-content.updating {
  opacity: 1;
}

.product-actions.updating .add,
.product-actions.updating .subscribe,
.product-actions.updating .gift,
.product-actions.updating .open-basket-cta,
.product-actions.updating .quantity-field .decrease,
.product-actions.updating .quantity-field .increase,
.product-actions.updating .quantity-field .open-basket,
.product-actions.updating .quantity-field .quantity {
  position: relative;
  pointer-events: none;
  opacity: 0.5;
}

.product-actions.updating .add,
.product-actions.updating .subscribe,
.product-actions.updating .gift,
.product-actions.updating .open-basket-cta,
.product-actions.updating .quantity-field .decrease,
.product-actions.updating .quantity-field .increase,
.product-actions.updating .quantity-field .open-basket {
  color: transparent !important;
}

.product-actions.updating .add::after,
.product-actions.updating .subscribe::after,
.product-actions.updating .gift::after,
.product-actions.updating .open-basket-cta::after,
.product-actions.updating .quantity-field .decrease::after,
.product-actions.updating .quantity-field .increase::after,
.product-actions.updating .quantity-field .open-basket::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  animation: basket-spin 0.75s linear infinite;
}

.basket-popup-content .loading-control {
  position: relative;
  color: transparent !important;
  opacity: 0.5;
}

.basket-popup-content .loading-control > * {
  visibility: hidden;
}

.basket-popup-content .loading-control::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  animation: basket-spin 0.75s linear infinite;
}

@keyframes basket-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.toaster {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1400;
  display: grid;
  gap: 0.55rem;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--popup-border);
  background: #1e2230;
  color: #fff;
  opacity: 1;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast[hidden] {
  opacity: 0;
  transform: translateY(6px);
}

.toast p {
  margin: 0;
}

.toast .toast-close {
  margin-top: 0.55rem;
  border: 0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.toast-info .toast-close {
  background: #2b3d63;
  color: #dce8ff;
}
.toast-success .toast-close {
  background: #1f5c3f;
  color: #d6ffe8;
}
.toast-warning .toast-close {
  background: #6b5520;
  color: #fff0c7;
}
.toast-error .toast-close {
  background: #632727;
  color: #ffdada;
}

/* Sepet popup sağ üst "Kapat" butonunu gizler */
.basket-popup .popup-close,
.basket-popup-content .popup-close,
.aux-basket .popup-close,
.aux-basket .close,
.aux-basket .basket-close,
.aux-basket .modal-close,
.aux-basket button.close,
.aux-basket button[aria-label="Close"],
.aux-basket button[title="Close"],
.aux-basket [data-close],
.aux-basket [data-dismiss],
.aux-basket .close-btn,
.aux-basket .popup-close {
  display: none !important;
}

/* Quantity sayı kutusu düzeltme */
.quantity-field {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.quantity-field .quantity,
.basket-item .quantity,
.product-actions .quantity {
  width: 64px !important;
  min-width: 64px !important;
  height: 44px !important;
  padding: 0 10px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #171925 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 8px !important;

  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 44px !important;
  outline: none !important;
}

/* Chrome/Edge number oklarını gizler */
.quantity-field .quantity::-webkit-outer-spin-button,
.quantity-field .quantity::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Firefox number oklarını gizler */
.quantity-field .quantity[type="number"] {
  -moz-appearance: textfield !important;
}

/* - ve + butonları */
.quantity-field .decrease,
.quantity-field .increase {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 20px !important;
  font-weight: 900 !important;
  border-radius: 8px !important;
}

/* Details butonunu gizle */
a[href*="/package/"].btn-primary,
a[href*="/package/"].btn-secondary,
a[href*="/package/"].details,
a.details,
.package-details,
.package-card .details,
.product .details {
  display: none !important;
}

/* RastKits layout toparlama - siteyi ortaya alır */
body .site > .grid {
  width: min(1420px, calc(100vw - 80px)) !important;
  max-width: 1420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  gap: 24px !important;
}

/* Sol sidebar çok geniş durmasın */
@media (min-width: 768px) {
  body .site > .grid {
    grid-template-columns: 390px minmax(0, 1fr) !important;
  }
}

/* Büyük ekranlarda daha kompakt */
@media (min-width: 1600px) {
  body .site > .grid {
    width: min(1360px, calc(100vw - 140px)) !important;
    max-width: 1360px !important;
    grid-template-columns: 370px minmax(0, 1fr) !important;
  }
}

/* Navigation kısmını da biraz ortaya toplar */
body nav {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Header da çok yayılmasın */
body header {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Kartlar biraz daha premium ve sıkı dursun */
body .card {
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.16) !important;
}

/* Ana tanıtım kutusunun iç boşluğunu dengeler */
body .site > .grid > div:nth-child(2) .card {
  padding: 42px 48px !important;
}

/* Sol menüde kartlar daha düzgün dursun */
body aside {
  max-width: 390px !important;
}

/* Mobilde taşma olmasın */
@media (max-width: 767px) {
  body .site > .grid {
    width: calc(100vw - 32px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 18px !important;
  }

  body aside {
    max-width: 100% !important;
  }

  body nav {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Ana sayfadaki ekstra SUPPORT kutusunu gizle */
.page-index .grid > div:nth-child(2) > .card:nth-child(2) {
  display: none !important;
}

/* Package detay sayfasını toparlar */
.page-package .site > .grid {
  width: min(1360px, calc(100vw - 90px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-package .package-description ul {
  padding-left: 20px !important;
  margin-top: 10px !important;
}

.page-package .package-description li {
  margin-bottom: 6px !important;
}

.page-package .package-description p {
  margin-bottom: 10px !important;
}

.page-package [data-package-actions-wrap],
.page-package .product-actions {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Gift butonu - görünür ve kutu gibi */
.page-package .product-actions .gift,
.page-package .product-actions .btn-secondary.btn-glyph.gift {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 220px !important;
  min-height: 46px !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  background: var(--color-primary, #55c9f3) !important;
  color: var(--color-primary-foreground, #fff) !important;
  border-bottom: 5px solid var(--color-primary-shadow, #309ac2) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Checkout sayfasını ortaya alır ve düzeltir */
.aux-basket {
  margin-left: auto !important;
  margin-right: auto !important;
}

.aux-basket .basket-checkout {
  border-bottom: 0 !important;
}

.aux-basket tebex-checkout,
.aux-basket tebex-checkout button {
  width: 100% !important;
}

.aux-basket .quantity-field {
  min-width: 210px !important;
}

.aux-basket .remove svg {
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .aux-basket {
    max-width: calc(100vw - 24px) !important;
  }

  .aux-basket .basket-item {
    text-align: center !important;
  }

  .aux-basket .quantity-field {
    min-width: 0 !important;
  }
}

.rk-logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rk-logo-gif {
  width: 500px;
  max-width: 100%;
  height: auto;
  background: transparent;
}
/* ==========================================================
   VAYREXPVP FINAL THEME + GLOBAL HOVER
   ========================================================== */
:root {
  --color-primary: #D6A84F !important;
  --color-primary-shadow: #8D6529 !important;
  --color-primary-foreground: #1A0E08 !important;
  --vx-gold: #D6A84F;
  --vx-gold-light: #F2D58A;
  --vx-gold-dark: #8D6529;
  --vx-burgundy: #5B1F1A;
  --vx-burgundy-dark: #2A0E0C;
  --vx-cream: #FFF4D6;
}

.text-primary { color: var(--vx-gold) !important; }
.bg-primary { background-color: var(--vx-gold) !important; }
.border-primary { border-color: var(--vx-gold) !important; }
.border-primary-shadow { border-color: var(--vx-gold-dark) !important; }
.group:hover .group-hover\:text-primary { color: var(--vx-gold-light) !important; }

body, .site { background-color: transparent !important; }

.card, .widget, .store-text, .category-description, .store-product, .store-product-full, .store-category-tiered {
  background: linear-gradient(145deg, rgba(29,20,17,.96), rgba(17,12,10,.97)) !important;
  border: 1px solid rgba(214,168,79,.17) !important;
  box-shadow: 0 12px 35px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,225,160,.025) !important;
}

.btn-primary, .product-actions .add, .product-actions .subscribe, .product-actions .open-basket-cta, .product-actions .gift,
.quantity-field .decrease, .quantity-field .increase, .quantity-field .open-basket, .package-variant-button.active {
  background: linear-gradient(180deg, #EDC968 0%, #D6A84F 60%, #B27B2D 100%) !important;
  color: #211208 !important;
  border-color: #8D6529 !important;
}

.vx-nav-icon {
  color: #2A1609 !important;
  background: linear-gradient(180deg, #F0CB6C, #D6A84F 60%, #B67E2D) !important;
  border-bottom-color: #7F541F !important;
  box-shadow: 0 5px 0 #654015, 0 10px 20px rgba(0,0,0,.26), 0 0 16px rgba(214,168,79,.09) !important;
}

.quantity-field .quantity, .basket-item .quantity, .product-actions .quantity {
  background: #120D0B !important;
  border: 1px solid rgba(214,168,79,.13) !important;
  color: #F3EADF !important;
}

.popup-content, .basket-popup-content {
  background: #130E0C !important;
  border-color: rgba(214,168,79,.18) !important;
}

/* Yeni hover: büyüme YOK */
.vx-hover-target, .card, .widget, .store-product, .store-product-full, .category-description, .store-text,
.btn-primary, .btn-secondary, .btn-tertiary, .product-actions .add, .product-actions .subscribe,
.product-actions .open-basket-cta, .product-actions .gift, .quantity-field .decrease, .quantity-field .increase,
.quantity-field .open-basket, .package-variant-button {
  position: relative;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease, filter .22s ease, background .22s ease !important;
}

.vx-hover-target:hover, .card:hover, .widget:hover, .store-product:hover, .store-product-full:hover,
.category-description:hover, .store-text:hover, .btn-primary:hover, .btn-secondary:hover, .btn-tertiary:hover,
.product-actions .add:hover, .product-actions .subscribe:hover, .product-actions .open-basket-cta:hover,
.product-actions .gift:hover, .quantity-field .decrease:hover, .quantity-field .increase:hover,
.quantity-field .open-basket:hover, .package-variant-button:hover {
  transform: translateY(-3px) !important;
}

.card:hover, .widget:hover, .store-product:hover, .store-product-full:hover, .category-description:hover,
.store-text:hover, .vx-server-card:hover {
  border-color: rgba(214,168,79,.58) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.34), 0 0 18px rgba(214,168,79,.11), inset 0 1px 0 rgba(255,231,174,.06) !important;
}

.btn-primary:hover, .btn-secondary:hover, .btn-tertiary:hover, .product-actions .add:hover,
.product-actions .subscribe:hover, .product-actions .open-basket-cta:hover, .product-actions .gift:hover,
.quantity-field .decrease:hover, .quantity-field .increase:hover, .quantity-field .open-basket:hover {
  filter: brightness(1.07);
  box-shadow: 0 5px 0 rgba(92,55,18,.55), 0 0 18px rgba(214,168,79,.22) !important;
}

.vx-hover-target:active, .btn-primary:active, .btn-secondary:active, .btn-tertiary:active,
.product-actions .add:active, .product-actions .subscribe:active, .product-actions .open-basket-cta:active,
.product-actions .gift:active, .quantity-field .decrease:active, .quantity-field .increase:active,
.quantity-field .open-basket:active {
  transform: translateY(1px) !important;
}

.vx-hover-target, .card, .widget, .store-product, .store-product-full, .category-description, .store-text,
.btn-primary, .btn-secondary, .btn-tertiary { overflow: hidden; }

.vx-hover-target::before, .card::before, .widget::before, .store-product::before, .store-product-full::before,
.category-description::before, .store-text::before, .btn-primary::before, .btn-secondary::before, .btn-tertiary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -145%;
  width: 58%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(242,213,138,.02) 25%, rgba(242,213,138,.15) 50%, rgba(242,213,138,.02) 75%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 20;
}

.rk-logo-center::before, .rk-logo-center::after { display: none !important; }

.vx-hover-target:hover::before, .card:hover::before, .widget:hover::before, .store-product:hover::before,
.store-product-full:hover::before, .category-description:hover::before, .store-text:hover::before,
.btn-primary:hover::before, .btn-secondary:hover::before, .btn-tertiary:hover::before {
  animation: vxGoldSweep .68s ease forwards;
}

@keyframes vxGoldSweep { from { left: -145%; } to { left: 155%; } }

.vx-hover-target svg, .vx-hover-target i, button svg, button i {
  transition: transform .22s ease, filter .22s ease !important;
}

.vx-hover-target:hover svg, .vx-hover-target:hover i, button:hover svg, button:hover i {
  transform: translateX(2px);
  filter: drop-shadow(0 0 4px rgba(214,168,79,.25));
}

::selection { background: var(--vx-gold); color: #1A0E08; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #080504; }
::-webkit-scrollbar-thumb { background: linear-gradient(#F2D58A, #8D6529); border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
