/* ===================== TILESKART - MAIN CSS ===================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --orange: #FF6B00;
  --orange-dark: #e05c00;
  --orange-light: #fff3ea;
  --black: #1a1a1a;
  --grey: #f5f5f5;
  --text: #333;
  --text-light: #777;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: #fafafa; }
a { text-decoration: none; color: inherit; }

/* TOPBAR */
.topbar {
  background: var(--black);
  color: #ccc;
  font-size: 12px;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* NAVBAR */
.navbar {
  background: var(--white);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--black);
  white-space: nowrap;
}
.nav-logo span { color: var(--orange); }

.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--orange);
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
}
.search-bar select {
  padding: 10px 12px;
  border: none;
  border-right: 1px solid #ddd;
  background: var(--grey);
  font-size: 13px;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  font-size: 14px;
  outline: none;
  font-family: 'DM Sans', sans-serif;
}
.search-bar button {
  background: var(--orange);
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--orange-dark); }

.nav-actions { display: flex; gap: 16px; }
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  transition: color 0.2s;
}
.nav-btn:hover { color: var(--orange); }
.nav-btn span { font-size: 11px; }

/* SUBNAV */
.subnav {
  background: var(--orange);
  padding: 10px 40px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
}
.subnav a {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.subnav a:hover, .subnav a.hot { color: #fff; font-weight: 700; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #FF6B00 100%);
  padding: 70px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 480px;
  overflow: hidden;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,107,0,0.2);
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-content h1 span { color: var(--orange); }

.hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 16px; margin-bottom: 40px; }
.btn-primary {
  background: var(--orange);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: white; }

.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  color: var(--orange);
}
.hero-stats span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* TILE GRID VISUAL */
.hero-visual { flex-shrink: 0; }
.tile-grid-visual {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 6px;
  transform: rotate(-10deg);
  border-radius: 12px;
  overflow: hidden;
}
.tg { border-radius: 4px; transition: transform 0.3s; }
.tg:hover { transform: scale(1.05); }
.t1 { background: linear-gradient(135deg,#e8d5b7,#c4a882); }
.t2 { background: linear-gradient(135deg,#2d2d2d,#555); }
.t3 { background: linear-gradient(135deg,#e8e8e8,#bbb); }
.t4 { background: linear-gradient(135deg,#b0c4de,#778da9); }
.t5 { background: var(--orange); }
.t6 { background: linear-gradient(135deg,#d4edda,#a8d5b5); }
.t7 { background: linear-gradient(135deg,#fff5e6,#f0c080); }
.t8 { background: linear-gradient(135deg,#c8a2c8,#7b2d8b); }
.t9 { background: linear-gradient(135deg,#f8e8ee,#e8a0b4); }

/* SECTIONS */
.section { padding: 60px 40px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
}
.section-header h2 span { color: var(--orange); }
.section-header a { color: var(--orange); font-weight: 600; font-size: 14px; }

/* CATEGORIES */
.categories-section { background: var(--white); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--grey);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.cat-card:hover {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--text-light); }

/* BRANDS */
.brands-section { background: var(--grey); }
.brands-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip {
  background: var(--white);
  border: 1px solid #ddd;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
.brand-chip:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* PRODUCTS */
.products-section { background: var(--white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  overflow: hidden;
  transition: all 0.2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}
.product-badge.new { background: #28a745; }

.product-img {
  width: 100%;
  height: 180px;
  transition: transform 0.3s;
}
.product-card:hover .product-img { transform: scale(1.03); }

.product-info { padding: 14px; }
.product-brand { font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 14px; font-weight: 600; margin: 4px 0; line-height: 1.3; }
.product-meta { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.product-rating { font-size: 12px; margin-bottom: 10px; }

.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price { font-size: 18px; font-weight: 700; color: var(--black); font-family: 'Syne', sans-serif; }
.mrp { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.discount { font-size: 12px; color: #28a745; font-weight: 600; }

.add-cart {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.add-cart:hover { background: var(--orange-dark); }

/* WHY SECTION */
.why-section {
  background: var(--grey);
  padding: 60px 40px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--orange);
}
.why-icon { font-size: 32px; margin-bottom: 12px; }
.why-card h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #ff9500 100%);
  padding: 60px 40px;
  text-align: center;
}
.promo-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.promo-text p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 24px; }
.promo-banner .btn-primary { background: white; color: var(--orange); }
.promo-banner .btn-primary:hover { background: #f5f5f5; }

/* FOOTER */
.footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 50px 40px 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--orange); }
.footer-col p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--black);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 9999;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
