.gpt-widget {
  --gpt-bg: #07080c;
  --gpt-text: #ffffff;
  --gpt-muted: #a7adbd;
  --gpt-card-bg: #10131d;
  --gpt-button-bg: #00d4ff;
  --gpt-neon-strength: 28px;
  position: relative;
  direction: rtl;
  color: var(--gpt-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 212, 255, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.12), transparent 24%),
    linear-gradient(180deg, color-mix(in srgb, var(--gpt-bg) 92%, #111827), var(--gpt-bg));
  overflow: hidden;
  padding: clamp(18px, 3vw, 36px);
}

.gpt-widget * {
  box-sizing: border-box;
}

.gpt-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.28;
}

.gpt-glassmorphism {
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.gpt-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 34px);
}

.gpt-tab {
  --gpt-tab-color: #00d4ff;
  --gpt-tab-glow: #00d4ff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--gpt-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  isolation: isolate;
  transition: transform 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.gpt-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gpt-tab-color) 22%, transparent), rgba(255, 255, 255, 0.03));
  opacity: 0;
  z-index: -1;
  transition: opacity 220ms ease;
}

.gpt-tab:hover,
.gpt-tab.is-active {
  color: var(--gpt-tab-color);
  border-color: color-mix(in srgb, var(--gpt-tab-color) 68%, transparent);
  box-shadow:
    0 0 var(--gpt-neon-strength) color-mix(in srgb, var(--gpt-tab-glow) 52%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--gpt-tab-glow) 18%, transparent);
  transform: translateY(-2px);
  text-shadow: 0 0 12px color-mix(in srgb, var(--gpt-tab-glow) 78%, transparent);
}

.gpt-tab:hover::before,
.gpt-tab.is-active::before {
  opacity: 1;
}

.gpt-tab.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -5px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--gpt-tab-color), transparent);
  box-shadow: 0 0 16px var(--gpt-tab-glow);
}

.gpt-effects-neon-pulse .gpt-tab.is-active {
  animation: gptNeonPulse 2.25s ease-in-out infinite;
}

.gpt-tab-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.gpt-tab-icon svg,
.gpt-tab-icon i {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gpt-panels {
  position: relative;
  z-index: 1;
}

.gpt-tab-panel {
  display: none;
  animation: gptPanelIn 360ms ease both;
}

.gpt-tab-panel.is-active {
  display: block;
}

.gpt-products-grid {
  display: grid;
  grid-template-columns: repeat(var(--gpt-columns-desktop, 5), minmax(0, 1fr));
  gap: 24px;
}

.gpt-product-card {
  --gpt-card-accent: #00d4ff;
  --gpt-card-glow: #00d4ff;
  --gpt-mouse-x: 50%;
  --gpt-mouse-y: 50%;
  position: relative;
  min-width: 0;
  width: 100%;
  margin-inline: auto;
  color: var(--gpt-text);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--gpt-card-bg) 94%, #ffffff), var(--gpt-card-bg)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.gpt-product-card:hover {
  border-color: color-mix(in srgb, var(--gpt-card-accent) 70%, transparent);
  box-shadow:
    0 0 var(--gpt-neon-strength) color-mix(in srgb, var(--gpt-card-glow) 34%, transparent),
    0 18px 55px rgba(0, 0, 0, 0.45);
  transform: translateY(-8px);
}

.gpt-effects-floating .gpt-product-card {
  animation: gptFloat 6s ease-in-out infinite;
}

.gpt-effects-floating .gpt-product-card:nth-child(2n) {
  animation-delay: 700ms;
}

.gpt-effects-floating .gpt-product-card:nth-child(3n) {
  animation-delay: 1200ms;
}

.gpt-effects-rgb .gpt-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d4ff, #a855f7, #22d3ee, #22c55e, #ef4444, #00d4ff);
  background-size: 320% 320%;
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 260ms ease;
  z-index: 4;
}

.gpt-effects-rgb .gpt-product-card:hover::before {
  opacity: 1;
  animation: gptRgbBorder 3s linear infinite;
}

.gpt-mouse-light {
  position: absolute;
  left: var(--gpt-mouse-x);
  top: var(--gpt-mouse-y);
  width: 190px;
  height: 190px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gpt-card-glow) 42%, transparent), transparent 68%);
  filter: blur(16px);
  transition: opacity 180ms ease;
  z-index: 2;
}

.gpt-effects-mouse-glow .gpt-product-card:hover .gpt-mouse-light {
  opacity: 1;
}

.gpt-product-media {
  position: relative;
  display: block;
  height: clamp(180px, 15vw, 240px);
  overflow: hidden;
  background: #0b0d13;
}

.gpt-product-media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gpt-card-bg) 95%, transparent));
}

.gpt-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.gpt-effects-hover-zoom .gpt-product-card:hover .gpt-product-image {
  transform: scale(1.1);
  filter: saturate(1.18) contrast(1.08);
}

.gpt-effects-shimmer .gpt-product-media::before,
.gpt-effects-shimmer .gpt-buy-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.22) 50%, transparent 64%);
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
}

.gpt-effects-shimmer .gpt-product-card:hover .gpt-product-media::before,
.gpt-effects-shimmer .gpt-product-card:hover .gpt-buy-button::after {
  opacity: 1;
  animation: gptShimmer 1.55s ease-in-out infinite;
}

.gpt-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  padding: 6px 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.45);
}

.gpt-product-body {
  position: relative;
  z-index: 3;
  padding: 16px;
}

.gpt-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 9px;
  direction: ltr;
  justify-content: flex-end;
}

.gpt-star {
  color: #4b5563;
  font-size: 14px;
  line-height: 1;
}

.gpt-star.is-active {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.42);
}

.gpt-rating-number {
  color: var(--gpt-muted);
  font-size: 12px;
  margin-left: 4px;
}

.gpt-product-title {
  min-height: 44px;
  margin: 0 0 13px;
  color: var(--gpt-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
}

.gpt-product-title a {
  color: inherit;
  text-decoration: none;
}

.gpt-product-title a:hover {
  color: var(--gpt-card-accent);
}

.gpt-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gpt-current-price {
  color: var(--gpt-card-accent);
  font-weight: 950;
  text-shadow: 0 0 10px color-mix(in srgb, var(--gpt-card-glow) 55%, transparent);
}

.gpt-current-price .amount {
  color: inherit;
}

.gpt-regular-price {
  color: #6b7280;
  font-size: 12px;
  text-decoration: line-through;
}

.gpt-buy-button,
.woocommerce a.gpt-buy-button.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--gpt-button-bg), color-mix(in srgb, var(--gpt-button-bg) 58%, #000));
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 0 24px color-mix(in srgb, var(--gpt-button-bg) 35%, transparent);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.gpt-buy-button:hover,
.woocommerce a.gpt-buy-button.button:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: saturate(1.18);
  box-shadow: 0 0 34px color-mix(in srgb, var(--gpt-button-bg) 48%, transparent);
}

.gpt-particle {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--gpt-card-accent);
  opacity: 0;
  box-shadow: 0 0 12px var(--gpt-card-glow);
  pointer-events: none;
}

.gpt-effects-particles .gpt-product-card:hover .gpt-particle-1 {
  left: 18%;
  bottom: 18%;
  animation: gptParticle 2.8s ease-in-out infinite;
}

.gpt-effects-particles .gpt-product-card:hover .gpt-particle-2 {
  left: 54%;
  bottom: 8%;
  animation: gptParticle 3.4s ease-in-out 260ms infinite;
}

.gpt-effects-particles .gpt-product-card:hover .gpt-particle-3 {
  left: 78%;
  bottom: 24%;
  animation: gptParticle 2.4s ease-in-out 520ms infinite;
}

.gpt-empty-state {
  grid-column: 1 / -1;
  width: 100%;
  padding: 28px;
  color: var(--gpt-muted);
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.gpt-skeleton-card {
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: #10131d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.gpt-skeleton-media,
.gpt-skeleton-line {
  display: block;
  border-radius: 14px;
  background: linear-gradient(90deg, #141824, #222838, #141824);
  background-size: 220% 100%;
  animation: gptSkeleton 1.35s ease-in-out infinite;
}

.gpt-skeleton-media {
  height: 185px;
  margin: -14px -14px 16px;
}

.gpt-skeleton-title {
  width: 78%;
  height: 16px;
  margin-bottom: 12px;
}

.gpt-skeleton-small {
  width: 52%;
  height: 14px;
  margin-bottom: 22px;
}

.gpt-skeleton-button {
  width: 100%;
  height: 42px;
}

@media (max-width: 1024px) {
  .gpt-products-grid {
    grid-template-columns: repeat(var(--gpt-columns-tablet, 3), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gpt-widget {
    padding: 16px;
  }

  .gpt-products-grid {
    grid-template-columns: repeat(var(--gpt-columns-mobile, 1), minmax(0, 1fr));
  }

  .gpt-tab {
    width: 100%;
  }
}

@keyframes gptPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gptNeonPulse {
  0%,
  100% {
    box-shadow: 0 0 calc(var(--gpt-neon-strength) * 0.65) color-mix(in srgb, var(--gpt-tab-glow) 42%, transparent);
  }
  50% {
    box-shadow: 0 0 calc(var(--gpt-neon-strength) * 1.2) color-mix(in srgb, var(--gpt-tab-glow) 72%, transparent);
  }
}

@keyframes gptRgbBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 320% 50%;
  }
}

@keyframes gptShimmer {
  0% {
    background-position: -220% 0;
  }
  100% {
    background-position: 220% 0;
  }
}

@keyframes gptFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes gptParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -90px, 0) scale(1.1);
  }
}

@keyframes gptSkeleton {
  0% {
    background-position: -220% 0;
  }
  100% {
    background-position: 220% 0;
  }
}

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