:root {
  --ink: #111827;
  --muted: #6b7280;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --accent: #2563eb;
  --soft: rgba(17, 24, 39, 0.08);
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #ffffff;
  color: var(--ink);
}

.app {
  min-height: 100vh;
}

.nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--panel);
  border-bottom: 2px solid rgba(17, 24, 39, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.settings {
  font-size: 1.1rem;
  opacity: 0.7;
  cursor: pointer;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 42px 24px;
  min-height: calc(100vh - 60px);
}

.logo {
  text-align: center;
  font-family: "Space Grotesk", system-ui;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 3px;
  margin: 10px 0 36px;
}

.search-wrap {
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-row {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: 0.2s;
}

.search-row input {
  flex: 1;
  height: 44px;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 1rem;
  background: transparent;
}

.search-row button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

.search-row button:hover {
  background: #e5e7eb;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 36px;
}

.category {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  transition: 0.25s;
}

.category:hover {
  background: var(--border);
}

.category.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 10px 0 16px;
  color: var(--ink);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}



.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shop-card,
.product-card {
  background: white;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.05), 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: 0.25s ease;
}

.shop-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.shop-card h3,
.product-meta h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.shop-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.product-meta {
  display: grid;
  gap: 6px;
}

.product-category {
  margin: 0;
  font-size: 0.85rem;
  color: #1d4ed8;
  font-weight: 600;
}

.product-description {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.3;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(107, 114, 128, 0.5);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #6b7280;
  background: #fafafa;
}

.footer {
  margin-top: 80px;
  padding: 40px 24px;
  background: #0b0f19;
  color: #e5e7eb;
}

.footer-top {
  text-align: center;
  margin-bottom: 30px;
}

.footer-brand {
  font-family: "Space Grotesk", system-ui;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: white;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 6px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: white;
}

.footer-col p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-col p:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.loader-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-screen.hidden,
.hidden {
  display: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #111827;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- MOBILE-FIRST IMPROVEMENTS ---------------- */

@media (max-width: 768px){

.nav{
height:52px;
padding:0 14px;
}

.brand{
font-size:.95rem;
}

.content{
padding:14px;
}

.logo{
font-size:2rem;
letter-spacing:1px;
margin:8px 0 18px;
}

.search-wrap{
margin-bottom:18px;
}

.search-row{
padding:4px;
border-radius:16px;
box-shadow:none;
}

.search-row input{
height:40px;
font-size:.95rem;
padding:0 10px;
}

.search-row button{
width:38px;
height:38px;
}

.categories{
justify-content:flex-start;
overflow-x:auto;
flex-wrap:nowrap;
padding-bottom:8px;
gap:8px;
margin:16px 0 22px;
}

.categories::-webkit-scrollbar{
display:none;
}

.category{
white-space:nowrap;
font-size:.8rem;
padding:8px 12px;
}

.section-title{
font-size:1rem;
margin-bottom:12px;
}

.result-grid{
grid-template-columns:1fr 1fr;
gap:10px;
}

.shop-card,
.product-card{
padding:10px;
border-radius:14px;
}

.product-image{
border-radius:10px;
margin-bottom:8px;
}

.shop-card h3,
.product-meta h3{
font-size:.9rem;
}

.product-category{
font-size:.75rem;
}

.product-description,
.shop-card p{
font-size:.78rem;
line-height:1.2;
}

.footer{
margin-top:40px;
padding:25px 18px;
}

.footer-grid{
grid-template-columns:1fr;
gap:20px;
text-align:center;
}

.footer-col p{
font-size:.8rem;
}

}

/* EXTRA SMALL PHONES */

@media (max-width:480px){

.result-grid{
grid-template-columns:repeat(2,1fr);
gap:10px;
}

.logo{
font-size:1.7rem;
}

.search-row input{
font-size:.85rem;
}

.shop-card,
.product-card{
padding:9px;
}

}

.product-description{
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

.shop-slider {
  max-width: 600px;
  margin: 20px auto 40px;
  position: relative;
}

.shop-slide {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.8);
}

.shop-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.shop-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.shop-prev { left: 10px; }
.shop-next { right: 10px; }

.shop-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.shop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
}

.shop-dot.active {
  background: #111;
}

.shop-slide {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
}

.shop-slide-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.shop-slide-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.shop-slide-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
