input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

@keyframes fade-in {
  from {
      background-color: rgba(0, 0, 0, 0);
  }
  to {
      background-color: rgba(0, 0, 0, 0.8);
  }
}

@keyframes fade-out {
  from {
      background-color: rgba(0, 0, 0, 0.8);
  }
  to {
      background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes slide-in {
  from {
      transform: translateX(500px);
  }
  to {
      transform: translateX(0px);
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(500px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}


#cart-drawer[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

body.cart-open,
body.dialog-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#cart-drawer[data-state="closed"] {
  animation: fade-out 0.4s forwards;
}

#cart-drawer[data-state="open"] > div {
  animation: slide-in 0.4s forwards;
}

#cart-drawer[data-state="closed"] > div {
  animation: slide-out 0.4s forwards;
}

.dialog[data-state="open"] {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  animation: fade-in 0.4s forwards;
}

.dialog[data-state="closed"] {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  animation: fade-out 0.4s forwards;
}

.dialog[data-state="open"] > div {
  animation: dialog-in 0.15s forwards;
}

.dialog[data-state="closed"] > div {
  animation: dialog-out 0.15s forwards;
}

@keyframes dialog-in {
  from {
      opacity: 0;
      transform: translateY(-24px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes dialog-out {
  from {
      opacity: 1;
      transform: translateY(0);
  }
  to {
      opacity: 0;
      transform: translateY(-24px);
  }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

@keyframes loading {
  0% {
      left: -50%;
  }

  to {
      left: 100%;
  }
}

.detail-dash {
  background-image: linear-gradient(to right, rgb(var(--foreground) / 0.15) 50%, transparent 0%);
  background-position: center bottom;
  background-size: 16px;
  background-repeat: repeat-x;
  width: 100%;
  height: 1px;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--primary));
  border-radius: 0.25rem;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Mega menu sidebar */
.mega-sidebar-item {
  border-left: 3px solid transparent;
  color: rgb(var(--muted-foreground));
}

.mega-sidebar-item:hover,
.mega-sidebar-item.mega-sidebar-active {
  background-color: rgb(var(--muted));
  color: rgb(var(--foreground));
  border-left-color: hsl(var(--primary));
}

.mega-sidebar-item:hover .mega-sidebar-chevron,
.mega-sidebar-item.mega-sidebar-active .mega-sidebar-chevron {
  opacity: 1;
}

.mega-content-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mega-content-panel.mega-panel-active {
  opacity: 1;
  visibility: visible;
}

.faq-item .faq-content {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not([open]) .faq-content {
  height: 0;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

/* Product card */
.product-card {
  border: 1px solid rgb(var(--border));
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.02);
}
.product-card:hover {
  border-color: rgb(var(--foreground) / 0.2);
}

/* Shark Conect adapters. The original core.css above is preserved; this layer only
   bridges PHP-rendered data and disables platform-specific assumptions safely. */
.shark-premium-body .reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.shark-premium-body .centralcart-content img {
  max-width: 100%;
  border-radius: .5rem;
}

.shark-premium-body .centralcart-content {
  color: rgb(var(--foreground));
  line-height: 1.7;
}

.shark-premium-body .centralcart-content p,
.shark-premium-body .centralcart-content ul,
.shark-premium-body .centralcart-content ol {
  margin-bottom: .9rem;
}

.shark-premium-body .centralcart-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.shark-premium-body .product-card img {
  min-height: 0;
}

.shark-premium-body [data-state="open"] {
  pointer-events: auto;
}

.shark-premium-body [data-state="closed"] {
  pointer-events: none;
}

/* Raw brand mark: visible in the header/footer without card framing or store-name text. */
.shark-premium-body .react-header__brand,
.shark-premium-body .sp-header .sp-brand-mark {
  gap: 10px;
  padding-right: 0;
}

.shark-premium-body .react-header__brand-text,
.shark-premium-body .sp-header .sp-brand-mark > span:last-child {
  display: none !important;
}

.shark-premium-body .react-header__logo,
.shark-premium-body .sp-header .sp-brand-mark > span:first-child {
  position: relative;
  width: clamp(78px, 9vw, 116px) !important;
  height: clamp(54px, 6vw, 78px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.shark-premium-body .react-header__logo img,
.shark-premium-body .sp-header .sp-brand-mark > span:first-child img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 10px 18px rgb(0 0 0 / .28))
    drop-shadow(0 0 18px hsl(var(--primary) / .32));
  -webkit-box-reflect: below -10px linear-gradient(transparent 58%, rgb(255 255 255 / .24));
}

.shark-premium-body .react-header__logo em,
.shark-premium-body .sp-header .sp-brand-mark > span:first-child > span {
  display: none !important;
}

.shark-premium-body .react-header__logo::after,
.shark-premium-body .sp-header .sp-brand-mark > span:first-child::after,
.shark-premium-body .react-footer__logo-row > img::after,
.shark-premium-body .sp-footer__logoRow::after {
  content: none;
}

.shark-premium-body .react-header__logo::before,
.shark-premium-body .sp-header .sp-brand-mark > span:first-child::before,
.shark-premium-body .react-footer__logo-row::after,
.shark-premium-body .sp-footer__logoRow::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(100% - 6px);
  height: 46%;
  background: linear-gradient(180deg, hsl(var(--primary) / .22), transparent 72%);
  filter: blur(10px);
  opacity: .72;
  transform: perspective(160px) rotateX(62deg) scaleY(.64);
  transform-origin: top;
}

.shark-premium-body .react-footer__logo-row,
.shark-premium-body .sp-footer__logoRow {
  position: relative;
  align-items: center;
  min-height: 96px;
  margin-bottom: 18px;
}

.shark-premium-body .react-footer__logo-row > div,
.shark-premium-body .sp-footer__logoRow > div {
  display: none !important;
}

.shark-premium-body .react-footer__logo-row > img,
.shark-premium-body .sp-footer__logo {
  width: clamp(112px, 14vw, 172px) !important;
  height: clamp(72px, 9vw, 108px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 16px 24px rgb(0 0 0 / .32))
    drop-shadow(0 0 22px hsl(var(--primary) / .30));
  -webkit-box-reflect: below -12px linear-gradient(transparent 56%, rgb(255 255 255 / .22));
}

@media (max-width: 640px) {
  .shark-premium-body .react-header__logo,
  .shark-premium-body .sp-header .sp-brand-mark > span:first-child {
    width: clamp(72px, 22vw, 96px) !important;
    height: 58px !important;
  }

  .shark-premium-body .react-footer__logo-row,
  .shark-premium-body .sp-footer__logoRow {
    min-height: 86px;
    justify-content: flex-start;
  }

  .shark-premium-body .react-footer__logo-row > img,
  .shark-premium-body .sp-footer__logo {
    width: clamp(116px, 42vw, 152px) !important;
    height: 88px !important;
  }
}

@media (max-width: 768px) {
  .shark-premium-body .product-card,
  .shark-premium-body .sc-product-glass-card {
    box-shadow: 0 8px 22px rgb(0 0 0 / 0.14);
  }

  .shark-premium-body .product-card:hover,
  .shark-premium-body .sc-product-glass-card:hover {
    transform: none;
  }
}

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