﻿/* ============================================
   KIX HUB — Style
   Premium Product Showcase
============================================ */

:root {
  --bg: #f8f5f0;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --gold-dark: #a8894a;
  --border: #e8e3dc;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
  --wa-green: #25D366;
  --wa-dark: #1da851;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===========================
   Layout
=========================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   Header / Nav
=========================== */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img { height: 32px; width: auto; }

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ===========================
   Search Bar
=========================== */

.search-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.search-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.search-inner input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border 0.2s;
}

.search-inner input:focus {
  border-color: var(--gold);
}

.search-icon {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

/* ===========================
   Hero Banner
=========================== */

.hero-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(201,169,110,0.06), transparent 60%);
  pointer-events: none;
}

.hero-banner h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  position: relative;
}

.hero-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  position: relative;
}

/* ===========================
   Section
=========================== */

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

/* ===========================
   Featured Products
=========================== */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.featured-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.featured-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.featured-card .img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0eeeb;
}

.featured-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

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

.featured-card .info {
  padding: 16px;
}

.featured-card .brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.featured-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.featured-card .price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ===========================
   Category Entry Cards
=========================== */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: #e8e3dc;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

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

.cat-card .cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.cat-card .cat-label {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* ===========================
   Brand Grid
=========================== */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.brand-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.brand-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.brand-card .brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}

/* ===========================
   Why Choose Us
=========================== */

.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.choose-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.choose-card .choose-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.choose-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.choose-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===========================
   WhatsApp CTA
=========================== */

.wa-cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 48px 20px;
  text-align: center;
}

.wa-cta-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.wa-cta-section p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
  text-decoration: none;
}

.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.4);
}

.wa-btn:active {
  transform: scale(0.97);
}

.wa-btn img {
  width: 22px;
  height: 22px;
}

/* ===========================
   Footer
=========================== */

.site-footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 32px 20px;
  text-align: center;
}

.site-footer .logo {
  justify-content: center;
  margin-bottom: 12px;
  color: #fff;
}

.site-footer p {
  font-size: 13px;
  line-height: 1.8;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.site-footer .footer-links a:hover {
  color: var(--gold);
}

/* ===========================
   Product Grid (Category / Search pages)
=========================== */

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

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card .img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0eeeb;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

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

.product-card .info {
  padding: 14px;
}

.product-card .brand-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.product-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.3;
}

.product-card .price {
  font-size: 14px;
  font-weight: 700;
}

/* ===========================
   Page Header (Category/Brand pages)
=========================== */

.page-header {
  padding: 28px 0 20px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
}

.page-header .breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.page-header .breadcrumb span {
  color: var(--gold);
  cursor: pointer;
}

.page-header .breadcrumb span:hover {
  text-decoration: underline;
}

/* ===========================
   Product Detail
=========================== */

.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0 40px;
}

.detail-images {
  width: 100%;
}

.main-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f0eeeb;
  cursor: zoom-in;
  position: relative;
}

.main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.thumb-item {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0eeeb;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.thumb-item:hover {
  border-color: var(--gold-light);
}

.thumb-item.active {
  border-color: var(--gold);
}

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

@media (min-width: 768px) {
  .thumb-item {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
}

.detail-info {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-info .brand-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-info .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.detail-info .desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Color Swatches */
.color-section,
.size-section {
  margin-bottom: 20px;
}

.color-section label,
.size-section label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: #f0eeeb;
}

.color-thumb:hover {
  transform: scale(1.1);
  border-color: var(--gold-light);
}

.color-thumb.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--text);
}

.color-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  min-width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--card);
}

.size-option:hover {
  border-color: var(--gold);
  background: #faf8f5;
}

.size-option.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.detail-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
  margin-top: 12px;
  text-decoration: none;
}

.detail-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.4);
}

/* ===========================
   Search Results
=========================== */

.search-results {
  padding: 24px 0 40px;
}

.search-results .result-count {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}

.no-results p {
  font-size: 16px;
}

/* ===========================
   Back Button
=========================== */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 16px;
  background: none;
  border: none;
  font-family: var(--font);
}

.back-btn:hover {
  color: var(--text);
}

/* ===========================
   Responsive — Desktop
=========================== */

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .header-inner { padding: 0 32px; }
  .search-inner { padding: 0 32px; }

  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .choose-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .hero-banner { padding: 80px 32px; }
  .hero-banner h1 { font-size: 48px; }
  .hero-banner p { font-size: 18px; }

  .detail-layout {
    flex-direction: row;
    gap: 32px;
  }

  .detail-images {
    flex: 0 0 55%;
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-info { flex: 1; }

  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
}

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

/* ===========================
   Responsive — Mobile
=========================== */

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .menu-toggle { display: block; }

  .featured-card h3 { font-size: 14px; }
  .cat-card .cat-label { font-size: 18px; }
}

/* ===========================
   Loading / States
=========================== */

.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.loading-state::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ===========================
   Utility
=========================== */

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none; }










