/*
 * Warning Mods — Custom Theme Styles
 * Yellow-branded, Theme 3 inspired design
 * This file will not be overwritten by theme updates.
 */

/* ============================================
   CSS VARIABLES & OVERRIDES
   ============================================ */
:root {
  --wm-yellow: rgb(var(--cl-accent));
  --wm-yellow-rgb: var(--cl-accent);
  --wm-bg: rgb(var(--cl-background));
  --wm-card: rgb(var(--cl-card));
}

/* ============================================
   GLOBAL REFINEMENTS
   ============================================ */

/* Smoother scrolling */
html {
  scroll-behavior: smooth;
}

/* Override default body bg for pure black */
body {
  background: #000000 !important;
}

/* Reduce max-width container and add better padding */
#app {
  max-width: 1280px;
}

/* ============================================
   PILL-SHAPED NAVBAR
   ============================================ */
.wm-header {
  padding: 1.25rem 0;
  position: relative;
  z-index: 50;
}

.wm-navbar {
  position: relative;
}

.wm-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.65rem 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  animation: wm-navbar-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wm-navbar-reveal {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.wm-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.wm-navbar-brand img {
  max-height: 32px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.wm-navbar-brand:hover {
  opacity: 0.9;
}

/* Desktop nav links */
.wm-nav-links {
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wm-nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border-radius: 25px;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.wm-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.wm-nav-link-active {
  color: #ffffff;
  background: rgba(var(--cl-accent), 0.12);
}

/* Separator between nav and actions */
.wm-nav-separator {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.25rem;
}

/* Login/Account button */
.wm-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.875rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.wm-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Cart button */
.wm-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wm-cart-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.wm-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: rgb(var(--cl-accent));
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(var(--cl-accent), 0.4);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.wm-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  color: #fff;
}

.wm-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.wm-hamburger {
  width: 18px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wm-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.wm-mobile-toggle.active .wm-hamburger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.wm-mobile-toggle.active .wm-hamburger span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.wm-mobile-toggle.active .wm-hamburger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.wm-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 998;
}

.wm-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.wm-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.wm-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.wm-mobile-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.wm-mobile-body {
  flex: 1;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.wm-mobile-action-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wm-mobile-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.wm-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  margin: 0 1rem 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wm-mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgb(var(--cl-accent));
  transform: translateX(-3px);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.wm-mobile-link:hover,
.wm-mobile-link-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(4px);
}

.wm-mobile-link:hover::before,
.wm-mobile-link-active::before {
  transform: translateX(0);
}

.wm-mobile-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* ============================================
   HERO SECTION (text-block override)
   ============================================ */

/* Target the first text-block component in the shop page as hero */
.components > .component:first-child[data-component-id="text-block-hero"] {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.components > .component:first-child[data-component-id="text-block-hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--cl-accent), 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(var(--cl-accent), 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

.components > .component:first-child[data-component-id="text-block-hero"] > div {
  position: relative;
  z-index: 1;
}

/* Hero title — large gradient text */
.components > .component:first-child[data-component-id="text-block-hero"] h2 {
  font-size: clamp(2.25rem, 7vw, 4rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.15 !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-left: none !important;
  padding-left: 0 !important;
  margin-bottom: 1rem !important;
  opacity: 0;
  animation: wm-hero-fade 1s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.25s forwards;
}

/* Hero subtitle */
.components > .component:first-child[data-component-id="text-block-hero"] p {
  font-size: 1.1rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  max-width: 560px;
  margin: 0 auto 1.5rem !important;
  line-height: 1.6 !important;
  opacity: 0;
  animation: wm-hero-fade 1s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.4s forwards;
}

/* Hero buttons */
.components > .component:first-child[data-component-id="text-block-hero"] .flex.flex-wrap {
  opacity: 0;
  animation: wm-hero-fade 1s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.55s forwards;
}

/* Override hero button styles to be pill-shaped */
.components > .component:first-child[data-component-id="text-block-hero"] .flex.flex-wrap a {
  border-radius: 40px !important;
  padding: 0.65rem 1.75rem !important;
  font-size: 0.9rem !important;
  transition: all 0.3s cubic-bezier(0.23, 0.86, 0.39, 0.96) !important;
}

.components > .component:first-child[data-component-id="text-block-hero"] .flex.flex-wrap a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--cl-accent), 0.2);
}

@keyframes wm-hero-fade {
  0% {
    opacity: 0;
    transform: translateY(-40px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ============================================
   ANIMATED BACKGROUND SHAPES (Hero)
   ============================================ */

/* Add floating geometric shapes behind hero */
.components > .component:first-child[data-component-id="text-block-hero"]::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -8%;
  width: clamp(200px, 28vw, 500px);
  height: clamp(50px, 6vw, 110px);
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(var(--cl-accent), 0.08), transparent);
  border: 1px solid rgba(var(--cl-accent), 0.08);
  transform: rotate(12deg);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: wm-shape-pop 1.2s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.3s forwards;
}

@keyframes wm-shape-pop {
  0% {
    opacity: 0;
    transform: translateY(-80px) rotate(0deg);
  }
  100% {
    opacity: 0.7;
    transform: translateY(0) rotate(12deg);
  }
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.wm-product-card {
  border-radius: 0.75rem;
  transition: all 0.35s cubic-bezier(0.23, 0.86, 0.39, 0.96);
  overflow: hidden;
}

.wm-product-card:hover {
  border-color: rgba(var(--cl-accent), 0.15);
  box-shadow:
    0 0 0 1px rgba(var(--cl-accent), 0.06),
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(var(--cl-accent), 0.04);
  transform: translateY(-4px);
}

/* ============================================
   SECTION TITLES — override border-left accent
   ============================================ */
h2.pl-2.border-l-4.border-l-accent-500,
.component h2.border-l-4 {
  border-left-color: rgb(var(--cl-accent)) !important;
}

/* ============================================
   SEARCH BAR ENHANCEMENTS
   ============================================ */
.component .bg-card.border.border-white\/5.rounded-lg:has(input[type="text"]) {
  border-radius: 50px !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  transition: all 0.3s ease;
}

.component .bg-card.border.rounded-lg:has(input[type="text"]):focus-within {
  border-color: rgba(var(--cl-accent), 0.4) !important;
  box-shadow: 0 0 0 3px rgba(var(--cl-accent), 0.08);
}

/* ============================================
   BUTTONS (global pill shape)
   ============================================ */
.bg-accent-500.border-accent-500 {
  border-radius: 40px;
}

.bg-accent-500.border-accent-500:hover {
  box-shadow: 0 4px 16px rgba(var(--cl-accent), 0.25);
}

/* ============================================
   FAQ CARDS
   ============================================ */
.component .bg-card.border.border-white\/5.rounded-lg[x-data] {
  border-radius: 0.75rem;
  border-color: rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease;
}

.component .bg-card.border.border-white\/5.rounded-lg[x-data]:hover {
  border-color: rgba(var(--cl-accent), 0.12);
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.wm-footer {
  margin-top: 2rem;
  background: transparent;
  border: none;
  border-radius: 0;
}


.wm-footer p,
.wm-footer p span,
.wm-footer a {
  color: rgba(var(--cl-accent), 0.5) !important;
  transition: color 0.25s ease;
}

.wm-footer a:hover {
  color: rgb(var(--cl-accent)) !important;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.wm-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 0.86, 0.39, 0.96);
}

.wm-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CUSTOMER PAGES
   ============================================ */

/* Refine customer dashboard cards */
.bg-card.border.border-white\/5.rounded-lg {
  border-color: rgba(255, 255, 255, 0.05);
}

/* ============================================
   CHOICES/SELECT DROPDOWN REFINEMENTS
   ============================================ */
.currency-selector .choices__inner {
  border-radius: 25px !important;
}

/* ============================================
   SPLIDE CAROUSEL
   ============================================ */
.splide .splide__arrow {
  background: rgba(var(--cl-accent), 0.12) !important;
  border: 1px solid rgba(var(--cl-accent), 0.15);
}

.splide .splide__arrow:hover {
  background: rgba(var(--cl-accent), 0.2) !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .wm-navbar-inner {
    padding: 0.6rem 1.5rem;
  }

  .wm-nav-links {
    padding: 0 1rem;
  }

  .wm-nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .wm-header {
    padding: 0.75rem 0;
  }

  .wm-navbar-inner {
    border-radius: 30px;
    padding: 0.6rem 1rem;
  }

  .components > .component:first-child[data-component-id="text-block-hero"] h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
  }

  .components > .component:first-child[data-component-id="text-block-hero"] p {
    font-size: 0.95rem !important;
  }

  .components > .component:first-child[data-component-id="text-block-hero"]::after {
    width: clamp(150px, 40vw, 250px);
    height: clamp(40px, 8vw, 60px);
    left: -15%;
    opacity: 0.4;
  }
}

@media (max-width: 480px) {
  .wm-navbar-inner {
    padding: 0.55rem 0.85rem;
    border-radius: 25px;
  }

  .wm-navbar-brand h1 {
    font-size: 0.9rem !important;
  }

  .wm-cart-btn {
    width: 34px;
    height: 34px;
  }

  .wm-mobile-toggle {
    width: 34px;
    height: 34px;
  }

  .wm-mobile-drawer {
    width: 92%;
  }

  .components > .component:first-child[data-component-id="text-block-hero"]::after {
    display: none;
  }
}

/* ============================================
   PRODUCT PAGE REFINEMENTS
   ============================================ */

/* Buy Now / Add to Cart buttons pill shape */
button.bg-accent-500,
a.bg-accent-500 {
  border-radius: 12px;
}

/* ============================================
   FEEDBACK/REVIEW CARDS
   ============================================ */
.feedback-card,
.component .bg-card {
  transition: border-color 0.3s ease;
}

/* ============================================
   LOADING / STATUS INDICATORS
   ============================================ */
.pulsating {
  background: rgb(var(--cl-accent));
}

/* ============================================
   ANNOUNCEMENT BAR REFINEMENT
   ============================================ */
.announcement .bg-accent-500 {
  border-radius: 8px;
}

/* ============================================
   MAINTENANCE PAGE
   ============================================ */
.maintenance-login-modal .bg-card {
  border-radius: 1rem;
}

/* ============================================
   CATEGORY CARDS — enhanced hover
   ============================================ */
.component a.bg-card.border.border-white\/5.rounded-lg.group {
  border-radius: 0.75rem;
  transition: all 0.35s cubic-bezier(0.23, 0.86, 0.39, 0.96);
}

.component a.bg-card.border.border-white\/5.rounded-lg.group:hover {
  border-color: rgba(var(--cl-accent), 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(var(--cl-accent), 0.04);
  transform: translateY(-4px);
}

/* ============================================
   CUSTOM SCROLLBAR (dark theme)
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
