/* =========================================

   STYLESCOUT V8 STYLESHEET
   Last organized: Founder Sprint
   ========================================= */

@import url("Styles/Navbar.css");
@import url("Styles/hero.css");
@import url("Styles/product.css");  
   
:root {
  --bg: #061611;
  --bg-deep: #081d1a;
  --bg-soft: rgba(17, 36, 32, 0.7);
  --panel: rgba(12, 22, 20, 0.7);
  --panel-strong: rgba(16, 31, 27, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #edf8f4;
  --muted: #a7bdb7;
  --green: #78efc6;
  --green-strong: #46dd9d;
  --green-deep: #1d9f73;
  --shadow: rgba(89, 244, 187, 0.28);
  --danger: #ff7c7c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(119, 239, 198, 0.12), transparent 18%),
    linear-gradient(135deg, #050f10, #091c1b 38%, #091f18 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;  
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input {
  transition: all 0.3s ease;
}

/* Global Transitions & Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.glass {
  background: rgba(10, 18, 17, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(2, 7, 9, 0.35);
}

.bg-shell {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: auto;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-one {
  width: 420px;
  height: 420px;
  background: rgba(106, 255, 188, 0.2);
  top: -120px;
  left: 8%;
}

.orb-two {
  width: 460px;
  height: 460px;
  background: rgba(58, 185, 140, 0.18);
  right: -60px;
  top: 180px;
  animation-delay: 3s;
}

.orb-three {
  width: 500px;
  height: 500px;
  background: rgba(28, 118, 89, 0.18);
  bottom: -160px;
  left: 35%;
  animation-delay: 5s;
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  100% {
    transform: translate3d(20px, 30px, 0) scale(1.08);
  }
}

.dynamic-island {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 1500;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(8, 20, 17, 0.7);
  border: 1px solid rgba(120, 239, 198, 0.18);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
}

.dynamic-island.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.island-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #d4ffe9);
  box-shadow: 0 0 12px rgba(120, 239, 198, 0.9);
}

.island-copy {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

.ghost-btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.ghost-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ghost-btn:hover::before {
  opacity: 1;
}

.ghost-btn:hover,
.login-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.search-panel button:hover,
.quick-view-btn:hover {
  transform: translateY(-3px);
}

.login-btn,
.primary-btn,
.search-panel button,
.quick-view-btn {
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #081410;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(73, 196, 148, 0.22);
  position: relative;
}

.login-btn:hover,
.primary-btn:hover,
.search-panel button:hover,
.quick-view-btn:hover {
  box-shadow: 0 24px 40px rgba(73, 196, 148, 0.35);
}

.login-btn:active,
.primary-btn:active,
.search-panel button:active,
.quick-view-btn:active {
  transform: translateY(-1px);
}

.login-btn {
  padding: 11px 20px;
  border-radius: 12px;
}

main {
  width: min(1200px, calc(100% - 26px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - 120px);
  padding: 34px 0 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(120, 239, 198, 0.08);
  color: var(--green);
  border: 1px solid rgba(120, 239, 198, 0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-title {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.title-line {
  display: block;
  overflow: hidden;
}

.word {
  display: inline-block;
  font-size: clamp(4rem, 7vw, 7.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.08em;
  opacity: 0;
  transform: translateY(22px) scale(0.92);
  animation: wordReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 0.15s + 0.22s);
}

@keyframes wordReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-subtitle {
  margin-top: 22px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  line-height: 1.8;
}

.search-panel {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(620px, 100%);
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.search-panel input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 16px 8px;
}

.search-panel input::placeholder {
  color: rgba(237, 248, 244, 0.46);
}

.search-panel button {
  border-radius: 16px;
  padding: 16px 24px;
  min-width: 140px;
}

.chip-row {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.chip:hover {
  background: rgba(120, 239, 198, 0.16);
  border-color: rgba(120, 239, 198, 0.4);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(120, 239, 198, 0.12);
}

.chip:active {
  transform: translateY(0);
}

.hero-metrics {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-metrics div {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-metrics strong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--green);
  letter-spacing: -0.04em;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.visual-glow {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 239, 198, 0.18), transparent 63%);
  filter: blur(18px);
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.product-float {
  position: absolute;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(20, 35, 31, 0.8), rgba(10, 17, 16, 0.7));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.product-main {
  width: min(100%, 500px);
  padding: 18px;
  border-radius: 30px;
  transform: perspective(1200px) rotateX(5deg) rotateY(-12deg) translateY(16px);
  animation: floatMain 6s ease-in-out infinite alternate;
}

.product-main img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 24px;
}

.mini-tag {
  display: inline-flex;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 20, 17, 0.72);
  border: 1px solid rgba(120, 239, 198, 0.28);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.float-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.float-info span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.float-info strong {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  letter-spacing: -0.05em;
  color: var(--green);
}

.primary-btn,
.secondary-btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.product-mini {
  width: 160px;
  padding: 10px;
  border-radius: 22px;
  animation: floatMini 8s ease-in-out infinite alternate;
}

.product-mini img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 16px;
}

.product-mini.one {
  right: 8%;
  bottom: 62px;
  transform: rotate(16deg);
}

.product-mini.two {
  left: 6%;
  bottom: 96px;
  transform: rotate(-12deg);
}

@keyframes floatMain {
  0% {
    transform: perspective(1200px) rotateX(4deg) rotateY(-10deg) translateY(0);
  }
  100% {
    transform: perspective(1200px) rotateX(10deg) rotateY(-14deg) translateY(-18px);
  }
}

@keyframes floatMini {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-18px) rotate(10deg);
  }
}

.brand-band {
  width: min(1200px, calc(100% - 26px));
  margin: 32px auto 18px;
  border-radius: 20px;
  padding: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 22px);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

.story-section,
.catalog,
.compare-section {
  padding-top: 90px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -0.06em;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story-card {
  padding: 28px 24px;
  border-radius: 28px;
}

.story-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(120, 239, 198, 0.18), rgba(120, 239, 198, 0.06));
  border: 1px solid rgba(120, 239, 198, 0.22);
  color: var(--green);
  font-weight: 700;
}

.story-card h3 {
  margin-top: 18px;
  font-size: 1.5rem;
}

.story-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.9;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  padding: 16px;
  border-radius: 28px;
  background: rgba(17, 31, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  will-change: transform, box-shadow;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12), transparent 70%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}

.product-card:hover { 
  transform: translate(-5px);
  box-shadow: 0 12px 30px rgba(0, 225, 163, 0.12);
  border-color: rgba(0, 225, 163, 0.35);
}

.product-card:hover::after {
  transform: translateX(120%) skewX(-18deg);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -20% -35% auto auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 239, 198, 0.25), transparent 68%);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-12px);
  border-color: rgba(120, 239, 198, 0.45);
  box-shadow: 0 32px 60px rgba(120, 239, 198, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(20, 36, 30, 0.95);
}

.product-card-inner {
  position: relative;
  z-index: 1;
}

.product-image-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.product-image-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}


.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-gallery-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  opacity: 0.65;
  transition: border-color 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.product-gallery-thumb:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.product-gallery-thumb.active {
  border-color: rgba(120, 239, 198, 0.6);
  opacity: 1;
  box-shadow: 0 0 12px rgba(120, 239, 198, 0.4);
  transform: scale(1.05);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.08);
}

.wishlist-btn {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 14, 12, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 1.3rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-btn.active {
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #06130f;
  box-shadow: 0 16px 32px rgba(120, 239, 198, 0.35);
  animation: heartBeat 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wishlist-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 16px rgba(120, 239, 198, 0.2);
}

.wishlist-btn:active {
  transform: scale(1.05);
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.25);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.25);
  }
  70% {
    transform: scale(1);
  }
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--green);
}

.discount-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(120, 239, 198, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-card h3 {
  margin-top: 14px;
  font-size: 1.55rem;
  line-height: 1.3;
}

.price-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.new-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--green);
}

.old-price {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.store-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.store-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-item span {
  color: var(--muted);
}

.store-item strong {
  color: var(--text);
  font-weight: 700;
}

.quick-view-btn {
  margin-top: 18px;
  width: 100%;
  border-radius: 14px;
  padding: 14px;
  font-weight: 700;
}

.compare-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 30px 26px 24px;
  border-radius: 30px;
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-head h3 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.winner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(120, 239, 198, 0.12);
  color: var(--green);
  font-weight: 700;
  border: 1px solid rgba(120, 239, 198, 0.32);
}

.price-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.store-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: white;
}

.store-badge.amazon { background: #ffb342; color: #271400; }
.store-badge.flipkart { background: #6a5cff; }
.store-badge.myntra { background: #ff5ea8; }

.price-row.winner {
  background: rgba(120, 239, 198, 0.08);
  border-color: rgba(120, 239, 198, 0.18);
}

.compare-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.compare-cta button {
  flex: 1;
}

footer {
  width: min(1200px, calc(100% - 26px));
  margin: 90px auto 0;
  padding: 26px 8px 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-brand {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  color: var(--green);
}

footer p {
  margin-top: 8px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: var(--green);
}

footer span {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.52);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(30px);
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(15, 31, 27, 0.88);
  border: 1px solid rgba(120, 239, 198, 0.2);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 2000;
}

.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 7, 7, 0.5);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
}

.modal.visible {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: relative;
  width: min(980px, calc(100% - 28px));
  border-radius: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  padding: 26px;
  transform: scale(0.92) translateY(32px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.modal.visible .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.modal-gallery {
  display: grid;
  gap: 16px;
}

.thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb-btn {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.thumb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.thumb-btn.active {
  background: rgba(120, 239, 198, 0.15);
  color: var(--green);
  border-color: rgba(120, 239, 198, 0.45);
  box-shadow: 0 0 16px rgba(120, 239, 198, 0.25);
  transform: translateY(-2px);
}

.gallery-stage {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.gallery-stage img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.modal.visible .gallery-stage img {
  animation: fadeInUp 0.5s ease both;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h3 {
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.modal-price-block {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-top: 18px;
}

.modal-price-block strong {
  display: inline-block;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  letter-spacing: -0.06em;
  color: var(--green);
}

.price-label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#modalOldPrice {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  font-size: 1.1rem;
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stat-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

#modalDiscount {
  color: var(--green);
  border-color: rgba(120, 239, 198, 0.25);
  background: rgba(120, 239, 198, 0.08);
}

.price-history {
  margin-top: 24px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#priceChart {
  width: 100%;
  height: 120px;
  display: block;
}

.store-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-name {
  color: var(--muted);
  font-weight: 500;
}

.store-price {
  color: var(--text);
  font-weight: 700;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1700;
  opacity: 0.9;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.skeleton-card {
  position: relative;
  border-radius: 28px;
  padding: 16px;
  background: rgba(17, 31, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skeleton-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  transform: translateX(-100%);
  animation: shimmer 1.3s linear infinite;
}

.skeleton-image,
.skeleton-text,
.skeleton-pill,
.skeleton-price,
.skeleton-line {
  position: relative;
  display: block;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton-image {
  height: 280px;
  border-radius: 20px;
}

.skeleton-pill {
  width: 34%;
  height: 20px;
  margin-top: 18px;
}

.skeleton-text {
  height: 22px;
  width: 76%;
  margin-top: 14px;
}

.skeleton-price {
  height: 32px;
  width: 42%;
  margin-top: 14px;
}

.skeleton-line {
  height: 12px;
  width: 100%;
  margin-top: 14px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

body.neon-mode {
  --green: #9cfaff;
  --green-strong: #5ed8ff;
  --green-deep: #75d0ff;
  background:
    radial-gradient(circle at top, rgba(93, 229, 255, 0.22), transparent 18%),
    linear-gradient(135deg, #050d14, #061a1d 38%, #08181c 100%);
}

body.neon-mode .glass,
body.neon-mode .product-card,
body.neon-mode .compare-card,
body.neon-mode .story-card,
body.neon-mode .orb {
  opacity: 0.7;
}

body.neon-mode .brand-mark,
body.neon-mode .logo-text,
body.neon-mode .eyebrow,
body.neon-mode .winner-badge,
body.neon-mode .new-price,
body.neon-mode .story-icon,
body.neon-mode .island-copy {
  text-shadow: 0 0 22px rgba(124, 232, 255, 0.8);
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2000;
  animation: confettiFall 1.4s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), 500px, 0) scale(0.2);
  }
}

@media (max-width: 980px) {
  .navbar {
    padding: 14px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  
  .hero-visual {
    min-height: 540px;
  }

  .story-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }
}

/* Shopping App Features */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.filter-chip {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: rgba(120, 239, 198, 0.16);
  color: var(--green);
  border-color: rgba(120, 239, 198, 0.45);
  box-shadow: 0 0 24px rgba(120, 239, 198, 0.25);
  transform: translateY(-2px);
}

.comparison-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(120, 239, 198, 0.06);
  border: 1px solid rgba(120, 239, 198, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.comparison-bar.active {
  opacity: 1;
  visibility: visible;
}

.comparison-count {
  font-size: 0.85rem;
  color: var(--green);
  flex: 1;
}

.compare-action-btn,
.compare-clear-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(120, 239, 198, 0.25);
  background: rgba(120, 239, 198, 0.08);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.compare-action-btn:hover {
  background: rgba(120, 239, 198, 0.16);
  box-shadow: 0 0 12px rgba(120, 239, 198, 0.2);
}

.compare-clear-btn {
  background: rgba(255, 100, 100, 0.08);
  border-color: rgba(255, 100, 100, 0.25);
  color: #ff6464;
}

.compare-clear-btn:hover {
  background: rgba(255, 100, 100, 0.16);
}

.product-comparison-checkbox {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 24px;

  height: 24px;

  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.04);

  cursor: pointer;

  transition: all 0.2s ease;

  z-index: 10;

}



.product-comparison-checkbox:checked {

  background: var(--green);

  border-color: var(--green);

  box-shadow: 0 0 16px rgba(120, 239, 198, 0.4);

}



.deal-score-badge {

  position: absolute;

  top: 12px;

  left: 12px;

  width: 48px;

  height: 48px;

  border-radius: 50%;

  display: grid;

  place-items: center;

  font-weight: 700;

  font-size: 0.9rem;

  z-index: 9;

  transition: transform 0.25s ease;

}



.deal-score-badge.excellent {

  background: linear-gradient(135deg, #78efc6, #46dd9d);

  color: #020707;

  box-shadow: 0 0 24px rgba(120, 239, 198, 0.5);

}



.deal-score-badge.good {

  background: linear-gradient(135deg, #4dd9ff, #2ba8cc);

  color: #020707;

  box-shadow: 0 0 20px rgba(77, 217, 255, 0.4);

}



.deal-score-badge.average {

  background: linear-gradient(135deg, #ffb84d, #ff9800);

  color: #020707;

  box-shadow: 0 0 18px rgba(255, 184, 77, 0.3);

}



.product-card:hover .deal-score-badge {

  transform: scale(1.08);

}



.wishlist-drawer {

  position: fixed;

  right: 0;

  top: 0;

  width: 420px;

  height: 100vh;

  z-index: 2200;

  background: rgba(6, 22, 17, 0.98);

  backdrop-filter: blur(18px);

  border-left: 1px solid rgba(255, 255, 255, 0.08);

  transform: translateX(100%);

  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);

  overflow-y: auto;

  display: flex;

  flex-direction: column;

}



.wishlist-drawer.open {

  transform: translateX(0);

}



.drawer-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 18px 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  position: sticky;

  top: 0;

  background: rgba(6, 22, 17, 0.95);

}



.drawer-header h3 {

  font-size: 1.2rem;

}



.drawer-close {

  width: 36px;

  height: 36px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  font-size: 1.4rem;

  display: grid;

  place-items: center;

  transition: all 0.2s ease;

}



.drawer-close:hover {

  background: rgba(255, 255, 255, 0.08);

}



.drawer-content {

  flex: 1;

  padding: 16px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.drawer-item {

  padding: 12px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.06);

  display: flex;

  gap: 12px;

  align-items: center;

  transition: all 0.2s ease;

}



.drawer-item:hover {

  background: rgba(255, 255, 255, 0.06);

}



.drawer-item-image {

  width: 60px;

  height: 60px;

  border-radius: 12px;

  overflow: hidden;

  flex-shrink: 0;

}



.drawer-item-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.drawer-item-info {

  flex: 1;

  min-width: 0;

}



.drawer-item-name {

  font-size: 0.85rem;

  font-weight: 600;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.drawer-item-price {

  font-size: 0.75rem;

  color: var(--green);

  margin-top: 4px;

}



.drawer-item-remove {

  width: 32px;

  height: 32px;

  border-radius: 50%;

  background: rgba(255, 100, 100, 0.1);

  color: #ff6464;

  font-size: 1rem;

  display: grid;

  place-items: center;

  transition: all 0.2s ease;

  flex-shrink: 0;

}



.drawer-item-remove:hover {

  background: rgba(255, 100, 100, 0.2);

}



.drawer-overlay {

  position: fixed;

  inset: 0;

  background: rgba(2, 7, 7, 0.4);

  backdrop-filter: blur(4px);

  z-index: 2100;

  opacity: 0;

  visibility: hidden;

  transition: opacity 0.25s ease, visibility 0.25s ease;

}



.drawer-overlay.active {

  opacity: 1;

  visibility: visible;

}



.comparison-panel {

  position: fixed;

  bottom: 0;

  left: 0;

  right: 0;

  max-height: 0;

  z-index: 1900;

  overflow: hidden;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  transition: max-height 0.35s cubic-bezier(0.19, 1, 0.22, 1);

}



.comparison-panel.open {

  max-height: 600px;

}



.comparison-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 16px 20px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

}



.comparison-header h3 {

  font-size: 1.1rem;

}



.close-comparison {

  width: 32px;

  height: 32px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  font-size: 1.2rem;

  transition: all 0.2s ease;

}



.close-comparison:hover {

  background: rgba(255, 255, 255, 0.08);

}



.comparison-content {

  padding: 16px 20px 20px;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

  overflow-x: auto;

  max-height: 500px;

  overflow-y: auto;

}



.comparison-item {

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;

}



.comparison-item-image {

  width: 100%;

  height: 180px;

  overflow: hidden;

}



.comparison-item-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.comparison-item-detail {

  padding: 12px;

}



.comparison-item-name {

  font-size: 0.85rem;

  font-weight: 600;

  margin-bottom: 8px;

}



.comparison-item-spec {

  font-size: 0.75rem;

  color: var(--muted);

  margin-bottom: 6px;

}



.comparison-item-price {

  color: var(--green);

  font-weight: 700;

  margin-top: 8px;

}



.track-notification {

  position: fixed;

  top: 80px;

  right: 20px;

  max-width: 360px;

  padding: 14px 16px;

  border-radius: 14px;

  background: rgba(120, 239, 198, 0.1);

  border: 1px solid rgba(120, 239, 198, 0.3);

  color: var(--green);

  font-size: 0.85rem;

  z-index: 2300;

  opacity: 0;

  visibility: hidden;

  transition: opacity 0.3s ease, visibility 0.3s ease;

  box-shadow: 0 8px 24px rgba(120, 239, 198, 0.15);

}



.track-notification.show {

  opacity: 1;

  visibility: visible;

}



#voiceSearchBtn {

  padding: 10px 14px;

  border-radius: 12px;

  background: rgba(120, 239, 198, 0.08);

  border: 1px solid rgba(120, 239, 198, 0.2);

  color: var(--green);

  font-size: 1.1rem;

  cursor: pointer;

  transition: all 0.2s ease;

}



#voiceSearchBtn:hover {

  background: rgba(120, 239, 198, 0.16);

  box-shadow: 0 0 12px rgba(120, 239, 198, 0.25);

}



#voiceSearchBtn.listening {

  animation: voicePulse 0.6s ease-in-out infinite;

}



@keyframes voicePulse {

  0%, 100% {

    box-shadow: 0 0 12px rgba(120, 239, 198, 0.25);

  }

  50% {

    box-shadow: 0 0 24px rgba(120, 239, 198, 0.5);

  }

}



.wishlist-pulse {

  animation: wishlistBounce 0.4s ease-out;

}



@keyframes wishlistBounce {

  0% { transform: scale(1); }

  50% { transform: scale(1.3); }

  100% { transform: scale(1); }

}



@media (max-width: 680px) {

  .navbar {

    width: calc(100% - 18px);

    padding: 12px 14px;

    border-radius: 18px;

  }

  .nav-actions {
    gap: 8px;
  }

  .ghost-btn {
    display: none;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero {
    min-height: auto;
  }

  .search-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .search-panel button {
    width: 100%;
  }

  .product-mini.one,
  .product-mini.two {
    display: none;
  }

  .story-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .compare-head,
  .compare-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-panel {
    padding: 20px 14px 18px;
  }

  .gallery-stage img {
    height: 360px;
  }

  .thumb-btn {
    flex: 1;
  }

  .footer-links {
    gap: 10px 18px;
  }

  .wishlist-drawer {
    width: 100%;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-content {
    grid-template-columns: 1fr;
  }

  #voiceSearchBtn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

.wishlist-btn{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(12,24,24,.72);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
}

.wishlist-btn.active{
  color:#78efc6;
}

/* ===== Brands Section ===== */
.brands-section{
  max-width: 1200px;
  margin: 70px auto;
  padding: 0 20px;
}

.brand-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.brand-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(120,239,198,.15);
  border-radius: 18px;
  padding: 18px 14px;
  color: #e8f7ef;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all .25s ease;
}

.brand-card:hover{
  transform: translateY(-6px);
  border-color: #78efc6;
  box-shadow: 0 12px 28px rgba(120,239,198,.18);
}

.brand-icon{
  font-size: 30px;
}

.brand-card span:last-child{
  font-weight: 700;
  text-align: center;
}

.brand-logo{
  width:110px;
  height:80px;
  object-fit:contain;
  display:block;
  margin:auto;
}

.brand-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.brand-modal.active{
  display:flex;
}

.brand-modal-box{
  width:500px;
  max-width:90%;
  padding:30px;
  border-radius:24px;
  text-align:center;
}

.brand-modal-logo{
  width:120px;
  height:80px;
  object-fit:contain;
  margin-bottom:15px;
}

.brand-category-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:20px 0;
}

.brand-category-list span{
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.05);
}

.brand-close{
  float:right;
  border:none;
  background:none;
  color:white;
  font-size:22px;
  cursor:pointer;
}

/* ===== Brand Modal ===== */

.brand-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(10px);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:9999;
}

.brand-modal.active{
    opacity:1;
    visibility:visible;
}

.brand-modal-content{
    width:min(460px,92%);
    background:#071815;
    border:1px solid rgba(116,255,214,.18);
    border-radius:28px;
    padding:34px;
    position:relative;
    text-align:center;
    box-shadow:0 25px 80px rgba(0,0,0,.45);
    animation:popIn .28s ease;
}

@keyframes popIn{
    from{transform:scale(.92);opacity:0;}
    to{transform:scale(1);opacity:1;}
}

.brand-close{
    position:absolute;
    right:18px;
    top:18px;
    background:none;
    border:none;
    color:#7dfad4;
    font-size:28px;
    cursor:pointer;
}

.brand-modal-logo{
    width:120px;
    height:120px;
    object-fit:contain;
    background:white;
    border-radius:20px;
    padding:14px;
    margin:auto;
}

#brandName{
    color:white;
    margin:20px 0 16px;
}

.brand-category-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    margin-bottom:26px;
}

.brand-category-list span{
    padding:8px 14px;
    border-radius:999px;
    background:rgba(116,255,214,.12);
    color:#8fffdc;
    font-size:14px;
}

.brand-view-btn{
    width:100%;
    padding:14px;
    border:none;
    border-radius:16px;
    background:#64f0bf;
    color:#071815;
    font-weight:700;
    cursor:pointer;
}
/* ===== Login Modal ===== */

.login-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: .35s ease;
  z-index: 9999;
}

.login-modal.active{
  opacity: 1;
  visibility: visible;
}

.login-card{
  position: relative;
  width: 420px;
  max-width: calc(100% - 40px);
  padding: 34px;
  border-radius: 28px;
  background: rgba(6,18,15,.92);
  border: 1px solid rgba(98,229,189,.22);
  box-shadow: 0 25px 80px rgba(0,0,0,.45);
  transform: translateY(18px) scale(.96);
  transition: .35s ease;
}

.login-modal.active .login-card{
  transform: translateY(0) scale(1);
}

.login-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #8ef0cb;
  font-size: 24px;
  cursor: pointer;
}

.login-logo{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.logo-box{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#62e5bd,#42c79b);
  color: #04251c;
  font-weight: 800;
  font-size: 24px;
}

.login-logo h2{
  color: #62e5bd;
  font-size: 34px;
  margin: 0;
}

.login-subtitle{
  color: rgba(255,255,255,.72);
  margin-bottom: 26px;
}

.google-btn,
.continue-btn{
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: .25s ease;
}

.google-btn{
  background: rgba(255,255,255,.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
}

.google-btn:hover{
  background: rgba(255,255,255,.1);
}

.divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.divider::before,
.divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.divider span{
  color: rgba(255,255,255,.45);
  font-size: 14px;
}

.login-input{
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  outline: none;
  margin-bottom: 18px;
}

.login-input:focus{
  border-color: #62e5bd;
  box-shadow: 0 0 20px rgba(98,229,189,.18);
}

.continue-btn{
  background: linear-gradient(135deg,#62e5bd,#42c79b);
  color: #03261d;
}

.continue-btn:hover{
  transform: translateY(-2px);
}

.login-card small{
  display: block;
  text-align: center;
  color: rgba(255,255,255,.45);
  margin-top: 18px;
}

@media (max-width: 480px){
  .login-card{
    padding: 26px;
    border-radius: 22px;
  }

  .login-logo h2{
    font-size: 28px;
  }
}
/* Lock page background while Quick View is open */
body.modal-open {
  overflow: hidden;
}

/* ===== Categories Section ===== */
.category-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.category-card {
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 239, 198, 0.12);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.category-card:hover {
  transform: translateY(-6px);
  background: rgba(120, 239, 198, 0.08);
  border-color: #78efc6;
  box-shadow: 0 12px 28px rgba(120, 239, 198, 0.15);
}

.category-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 15px;
}

.category-card h3 {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
}

.category-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Fixing the Search Button styling */
#searchButton {
  border-radius: 16px;
  padding: 16px 24px;
  min-width: 140px;
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #081410;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Categories Design */
.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -0.06em;
  margin-top: 10px;
}
.section-heading p {
  color: var(--muted);
  margin-top: 8px;
}
/* For Best Deals / Search Button Consistency */
#searchButton {
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #081410;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
}

/* Fix the Dropdown and Dark Mode */
.sort-select {
  background: #0b1f1b;
  color: #78efc6;
  border: 1px solid rgba(120, 239, 198, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  appearance: none; /* Removes default white background */
  -webkit-appearance: none;
}

.sort-select option {
  background: #0b1f1b;
  color: #edf8f4;
}

/* Fix the Dropdown and Dark Mode */
.sort-select {
  background: #0b1f1b;
  color: #78efc6;
  border: 1px solid rgba(120, 239, 198, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}

.sort-select option {
  background: #0b1f1b;
  color: #edf8f4;
}