/* KIOS77 Static Landing Page Styles */

:root {
  --radius: 0.375rem;
  --background: #f7f6f4;
  --foreground: #1f1d1a;
  --card: #ffffff;
  --card-foreground: #1f1d1a;
  --primary: #d44d18;
  --primary-foreground: #ffffff;
  --secondary: #f2f0ed;
  --secondary-foreground: #1f1d1a;
  --muted: #f4f3f0;
  --muted-foreground: #6b6864;
  --accent: #f5f0ec;
  --accent-foreground: #1f1d1a;
  --border: #e5e3df;
  --ring: #d44d18;
  --brand: #d44d18;
  --brand-foreground: #ffffff;
  --brand-soft: #fef0ea;
  --price: #c23a0f;
  --gradient-brand: linear-gradient(135deg, #e05a24, #b73a12);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 20px -6px rgba(0, 0, 0, 0.15);
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Topbar */
.topbar {
  background: var(--card);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.topbar a:hover {
  color: var(--brand);
}

.topbar-login {
  font-weight: 600;
  color: var(--brand);
}

.topbar-login:hover {
  text-decoration: underline;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  object-fit: contain;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--brand);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--foreground);
  border-radius: var(--radius);
}

.menu-toggle:hover {
  background: var(--secondary);
}

.search-form {
  display: flex;
  flex: 1;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid rgba(212, 77, 24, 0.8);
  background: var(--card);
}

.search-form input {
  flex: 1;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  outline: none;
  border: none;
}

.search-form input::placeholder {
  color: var(--muted-foreground);
}

.search-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 2.5rem;
  color: var(--brand-foreground);
  background: var(--gradient-brand);
}

.cart-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  color: var(--foreground);
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--secondary);
}

/* Category bar */
.category-bar {
  border-top: 1px solid var(--border);
  background: var(--card);
}

.category-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  border-radius: var(--radius);
  padding: 0.375rem 0.75rem;
  color: var(--foreground);
}

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

.category-pill-active {
  background: var(--brand-soft);
  font-weight: 600;
  color: var(--brand);
}

/* Hero */
.hero-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--gradient-brand);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  align-items: center;
}

.hero-content {
  color: #ffffff;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.hero-content h1 {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.25;
}

.hero-content p {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.875rem;
  opacity: 0.95;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}

.hero-cta:hover {
  transform: scale(1.05);
}

.hero-img {
  border-radius: 0.5rem;
  width: 100%;
}

/* Sections */
.section {
  padding-bottom: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title-underline {
  font-size: 1.125rem;
  font-weight: 700;
  border-bottom: 4px solid var(--brand);
  padding-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.75rem;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.text-center {
  text-align: center;
}

/* Quick links */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-link {
  border-radius: 9999px;
  background: var(--brand-soft);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  transition: background 0.15s ease, color 0.15s ease;
}

.quick-link:hover {
  background: var(--brand);
  color: var(--brand-foreground);
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  transition: background 0.15s ease;
}

.category-item:hover {
  background: var(--brand-soft);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--brand-soft);
  font-size: 1.5rem;
}

.category-item span:last-child {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Products */
.products-section {
  padding-bottom: 2rem;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.result-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--secondary);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.product-tag {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  border-radius: var(--radius);
  background: var(--brand);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--brand-foreground);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  padding: 0.75rem;
}

.product-title {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card:hover .product-title {
  color: var(--brand);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--price);
}

.product-old-price {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  color: #f59e0b;
}

.highlight-text {
  font-weight: 500;
  color: var(--foreground);
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.625rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--brand-foreground);
}

/* Footer */
.footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-grid h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-grid a:hover {
  color: var(--brand);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--brand-soft);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  transition: background 0.15s ease, color 0.15s ease;
}

.social-link:hover {
  background: var(--brand);
  color: var(--brand-foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: var(--secondary);
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-bottom p + p {
  margin-top: 0.25rem;
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--muted-foreground);
}

/* Responsive */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem;
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 767px) {
  .topbar-inner {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .topbar-inner a:nth-child(1),
  .topbar-inner a:nth-child(2) {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo span {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .search-form {
    order: 3;
    width: 100%;
    flex: none;
  }

  .cart-btn {
    margin-left: auto;
  }

  .hero-content {
    order: 2;
  }

  .hero-img {
    order: 1;
  }

  .hero-grid {
    padding: 1.25rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

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

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
