:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-dim: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.sticky-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.header-inner {
  padding: 0 8px; display: flex; align-items: center; gap: 24px; padding: 12px 0; flex-wrap: wrap; }
.logo {
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
  margin-left: 24px; height: 48px; width: auto; }
.search-form { flex: 1; display: flex; max-width: 500px; }
.search-form input { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; font-size: 14px; }
.search-form button { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: 0 8px 8px 0; cursor: pointer; }
.main-nav {
  margin-left: auto !important;
  margin-right: 20px !important;
  margin-right: 24px; display: flex; gap: 16px; }
.main-nav a { font-weight: 500; color: var(--text); }
.ad-header, .ad-incontent, .ad-footer { text-align: center; margin: 16px 0; min-height: 90px; }

/* Hero */
.hero { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }
.hero-search { display: flex; max-width: 600px; margin: 0 auto; }
.hero-search input { flex: 1; padding: 14px 20px; border: none; border-radius: 8px 0 0 8px; font-size: 16px; }
.hero-search button { padding: 14px 28px; background: #1e293b; color: #fff; border: none; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 600; }

/* Grids */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.cat-card { background: var(--surface); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.cat-card h3 { margin-bottom: 8px; }
.cat-card span { color: var(--text-dim); font-size: 14px; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.item-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .2s; }
.item-card:hover { box-shadow: var(--shadow); }
.card-img { height: 180px; background: #f1f5f9; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-dim); }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.7); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.card-body { padding: 16px; }
.card-cats { font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.card-body h3 { font-size: 15px; margin-bottom: 10px; line-height: 1.4; }
.card-body h3 a { color: var(--text); }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.card-actions { display: flex; gap: 8px; }
.btn { display: inline-block; padding: 8px 16px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 13px; font-weight: 500; text-align: center; }
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.subcat-pill { background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 20px; font-size: 13px; }
.subcat-pill:hover { background: var(--primary); color: #fff; text-decoration: none; }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0; }
.pagination a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.page-header { margin: 32px 0 16px; }
.page-header h1 { font-size: 1.8rem; }
.search-form.large { max-width: 700px; margin: 20px 0; }

.item-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 32px 0; }
.item-image img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.item-info h1 { font-size: 1.8rem; margin: 12px 0; }
.meta { display: flex; gap: 20px; color: var(--text-dim); margin: 12px 0; font-size: 14px; }
.description { margin: 16px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tag { background: #f1f5f9; padding: 4px 10px; border-radius: 4px; font-size: 12px; }
.actions { display: flex; gap: 12px; margin-top: 20px; }
.no-results { text-align: center; padding: 40px; color: var(--text-dim); }

/* Footer */
.site-footer { background: #1e293b; color: #cbd5e1; margin-top: 60px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-logo { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-col h4 { color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; text-align: center; font-size: 14px; }

@media (max-width: 768px) {
  .item-detail { grid-template-columns: 1fr; }
  .header-inner {
  padding: 0 8px; flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 1.8rem; }
  .hero-search { flex-direction: column; }
  .hero-search input, .hero-search button { border-radius: 8px; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: 14px; color: var(--text-dim); margin: 16px 0 24px; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { color: var(--text); }

/* Bottom grids */
.bottom-grids { margin: 40px 0; }
.subcat-grid, .tags-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.subcat-card, .tag-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: all .2s;
}
.subcat-card:hover, .tag-pill:hover { background: var(--primary); color: #fff; text-decoration: none; }
.subcat-card span, .tag-pill span { opacity: 0.7; font-size: 12px; }

/* Bigger item image */
.item-image { text-align: center; }
.item-image img { max-height: 500px; object-fit: contain; box-shadow: var(--shadow); }

/* Professional card improvements */
.item-card { transition: transform .2s, box-shadow .2s; }
.item-card:hover { transform: translateY(-4px); }
.card-cats a { color: var(--primary); }
.card-cats a:hover { text-decoration: underline; }

/* Footer logo colorful */
.footer-logo { height: 48px; filter: none; }

/* Admin improvements will be in admin CSS */

/* Header nav buttons */
.nav-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .2s;
}
.nav-home { border-color: #4f46e5; color: #4f46e5; }
.nav-home:hover { background: #4f46e5; color: #fff; }
.nav-wp { border-color: #10b981; color: #10b981; }
.nav-wp:hover { background: #10b981; color: #fff; }
.nav-kits { border-color: #f59e0b; color: #f59e0b; }
.nav-kits:hover { background: #f59e0b; color: #fff; }
.nav-shopify { border-color: #8b5cf6; color: #8b5cf6; }
.nav-shopify:hover { background: #8b5cf6; color: #fff; }

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #1e293b;
  border-radius: 2px;
  transition: .3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile responsive */
@media (max-width: 768px) {
  .header-inner {
  padding: 0 8px; flex-wrap: wrap; gap: 12px; }
  .search-form { order: 3; max-width: 100%; flex: 1 1 100%; }
  .burger { display: flex; }
  .main-nav {
  margin-left: auto !important;
  margin-right: 20px !important;
  margin-right: 24px;
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 12px 0;
    order: 4;
  }
  .main-nav.open { display: flex; }
  .nav-btn { text-align: center; }
  .logo {
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
  margin-left: 24px; height: 40px; }
}

/* Fix header layout */
.header-inner {
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  flex-wrap: nowrap;
}
.logo {
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
  margin-left: 24px;
  height: 48px !important;
  width: auto;
  max-width: 180px;
}
.search-form {
  flex: 1;
  max-width: 420px;
  margin: 0 10px;
}
.main-nav {
  margin-left: auto !important;
  margin-right: 20px !important;
  margin-right: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 900px) {
  .header-inner {
  padding: 0 8px; flex-wrap: wrap; }
  .logo {
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
  margin-left: 24px; height: 42px !important; }
  .search-form { order: 3; max-width: 100%; margin: 8px 0; }
  .burger { display: flex; margin-left: auto; }
  .main-nav {
  margin-left: auto !important;
  margin-right: 20px !important;
  margin-right: 24px; 
    display: none; 
    width: 100%; 
    flex-direction: column; 
    order: 4;
    padding: 10px 0;
  }
  .main-nav.open { display: flex; }
}

/* Force header button styles */
.main-nav .nav-btn {
  display: inline-block !important;
  padding: 8px 18px !important;
  border-radius: 24px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  border: 2px solid !important;
  transition: all .2s !important;
  margin: 0 4px;
}
.nav-home { border-color: #4f46e5 !important; color: #4f46e5 !important; }
.nav-home:hover { background: #4f46e5 !important; color: #fff !important; }
.nav-wp { border-color: #10b981 !important; color: #10b981 !important; }
.nav-wp:hover { background: #10b981 !important; color: #fff !important; }
.nav-kits { border-color: #f59e0b !important; color: #f59e0b !important; }
.nav-kits:hover { background: #f59e0b !important; color: #fff !important; }
.nav-shopify { border-color: #8b5cf6 !important; color: #8b5cf6 !important; }
.nav-shopify:hover { background: #8b5cf6 !important; color: #fff !important; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.cat-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.cat-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.cat-card span { color: #64748b; font-size: 14px; }

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 820px;
  padding: 0 20px;
}
.hero-keywords a {
  background: rgba(255,255,255,0.18);
  color: #ffffff !important;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  transition: all .2s;
}
.hero-keywords a:hover {
  background: #fff;
  color: #4f46e5 !important;
}

/* Force hero visibility */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  padding: 60px 0 40px !important;
  text-align: center !important;
  min-height: 280px !important;
}
.hero h1 {
  font-size: 2.5rem !important;
  margin-bottom: 12px !important;
  color: #ffffff !important;
}
.hero p {
  font-size: 1.1rem !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  opacity: 0.95 !important;
}
.hero-search {
  display: flex !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  border-radius: 30px !important;
  overflow: hidden !important;
}
.hero-search input {
  flex: 1 !important;
  padding: 14px 20px !important;
  border: none !important;
  border-radius: 30px 0 0 30px !important;
  font-size: 16px !important;
}
.hero-search button {
  padding: 14px 28px !important;
  background: #1e293b !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 30px 30px 0 !important;
  cursor: pointer !important;
}
.hero-keywords {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 18px !important;
}
.hero-keywords a {
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
}

/* Center subcategory and tags */
.bottom-grids { text-align: center !important; }
.bottom-grids h2 { text-align: center !important; }
.subcat-grid, .tags-grid { justify-content: center !important; }

/* Colorful category cards */
.cat-card:nth-child(1) { 
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; 
  color: #fff !important; 
  border: none !important; 
}
.cat-card:nth-child(1) h3, .cat-card:nth-child(1) span { color: #fff !important; }
.cat-card:nth-child(2) { 
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; 
  color: #fff !important; 
  border: none !important; 
}
.cat-card:nth-child(2) h3, .cat-card:nth-child(2) span { color: #fff !important; }
.cat-card:nth-child(3) { 
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important; 
  color: #fff !important; 
  border: none !important; 
}
.cat-card:nth-child(3) h3, .cat-card:nth-child(3) span { color: #fff !important; }

/* Rounded search forms */
.search-form {
  border-radius: 30px !important;
  overflow: hidden !important;
}
.search-form input {
  border-radius: 30px 0 0 30px !important;
}
.search-form button {
  border-radius: 0 30px 30px 0 !important;
}

/* Remove top gap */
.hero {
  margin-top: 0 !important;
  padding-top: 40px !important;
}
.sticky-header {
  margin-bottom: 0 !important;
}
.ad-header {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Mobile fixes */
@media (max-width: 768px) {
  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
  }
  .logo {
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
    height: 40px !important;
    margin-left: 0 !important;
  }
  .burger {
    display: flex !important;
    margin-right: 0 !important;
  }
  .search-form {
    display: none !important;
  }
  .hero h1 {
    font-size: 1.6rem !important;
    white-space: nowrap !important;
  }
  .hero-search {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hero-search input,
  .hero-search button {
    border-radius: 30px !important;
    width: 100% !important;
  }
}

/* Mobile header final */
@media (max-width: 768px) {
  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    width: 100% !important;
  }
  .logo {
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
    height: 42px !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
  }
  .burger {
    display: flex !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }
  .search-form {
    display: none !important;
  }
  .main-nav {
    display: none !important;
  }
  .main-nav.open {
    display: flex !important;
  }
  .hero-search {
    border-radius: 30px !important;
    overflow: hidden !important;
  }
  .hero-search input {
    border-radius: 30px !important;
  }
  .hero-search button {
    border-radius: 30px !important;
  }
}

/* Force logo + burger on same line */
@media (max-width: 768px) {
  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
  }
  .logo-link {
    display: block !important;
    flex: 0 0 auto !important;
  }
  .logo {
  height: auto !important;
  max-height: 56px !important;
  width: auto !important;
    height: 40px !important;
    width: auto !important;
    display: block !important;
  }
  .search-form {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .burger {
    display: flex !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  .main-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* Center all section headings */
h2, .categories-section h2, section h2, .bottom-grids h2 {
  text-align: center !important;
}

/* Logo full size everywhere */
.logo,
.logo-link img,
header .logo {
  height: auto !important;
  max-height: none !important;
  width: auto !important;
  max-width: 240px !important;
}

@media (max-width: 768px) {
  .logo,
  .logo-link img,
  header .logo {
    height: auto !important;
    max-height: none !important;
    max-width: 180px !important;
  }
}

/* Jump to top button */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all .2s;
}
#backToTop:hover { background: #4338ca; transform: translateY(-2px); }
#backToTop.show { display: flex; }

/* Mobile hero search fully rounded */
@media (max-width: 768px) {
  .hero-search {
    flex-direction: column !important;
    gap: 12px !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  .hero-search input {
    border-radius: 50px !important;
    width: 100% !important;
    padding: 14px 20px !important;
  }
  .hero-search button {
    border-radius: 50px !important;
    width: 100% !important;
    padding: 14px 20px !important;
  }
}

/* Item page mobile spacing */
@media (max-width: 768px) {
  .item-page {
    padding: 0 4px;
  }
  .item-title {
    margin: 20px 0 16px !important;
    line-height: 1.3 !important;
  }
  .item-meta-row {
    margin-bottom: 16px !important;
  }
  .item-tags {
    margin: 16px 0 !important;
  }
  .item-author {
    margin: 16px 0 !important;
  }
  .item-description {
    margin: 20px 0 !important;
  }
  .item-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 24px 0 !important;
  }
  .item-actions .btn {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
  }
  h2 {
    margin: 32px 0 16px !important;
  }
}

/* Item page improvements */
.item-page {
  max-width: 900px;
  margin: 0 auto;
}
.item-full-image {
  text-align: center;
  margin-bottom: 28px;
}
.item-full-image img {
  max-width: 100%;
  width: auto;
  max-height: 480px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: inline-block;
}
.item-title {
  margin: 24px 0 16px;
  text-align: center;
}
.item-meta-row {
  justify-content: center;
  margin-bottom: 20px;
}
.item-tags {
  justify-content: center;
  margin: 20px 0;
}
.item-author {
  text-align: center;
  margin: 16px 0;
}
.item-description {
  margin: 24px 0;
  line-height: 1.8;
}
.item-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.item-actions .btn {
  border-radius: 30px !important;
  padding: 12px 24px !important;
}

@media (max-width: 768px) {
  .item-full-image img {
    max-height: 300px;
  }
  .item-actions {
    flex-direction: column;
    align-items: center;
  }
  .item-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Center item page content */
.item-meta-row {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}
.item-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  text-align: center !important;
}
.item-description {
  text-align: center !important;
}
.item-author {
  text-align: center !important;
}

/* Card buttons rounded */
.card-actions .btn {
  border-radius: 20px !important;
  padding: 6px 14px !important;
}

/* Align card buttons to bottom */
.item-card {
  display: flex !important;
  flex-direction: column !important;
}
.card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}
.card-actions {
  margin-top: auto !important;
  padding-top: 12px !important;
}

/* Larger mobile logo */
@media (max-width: 768px) {
  .logo,
  .logo-link img,
  header .logo {
    height: auto !important;
    max-height: none !important;
    max-width: 200px !important;
    width: auto !important;
  }
}

/* Hero search fully rounded on desktop */
.hero-search {
  border-radius: 30px !important;
  overflow: hidden !important;
}
.hero-search input {
  border-radius: 30px 0 0 30px !important;
}
.hero-search button {
  border-radius: 0 30px 30px 0 !important;
}

/* Center breadcrumbs */
.breadcrumbs {
  text-align: center !important;
  justify-content: center !important;
}

/* Mobile menu white background */
@media (max-width: 768px) {
  .main-nav {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
    padding: 16px !important;
    border-radius: 0 0 12px 12px !important;
    z-index: 1000 !important;
  }
  .main-nav.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .main-nav .nav-btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Mobile menu improvements */
@media (max-width: 768px) {
  .main-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
    padding: 16px !important;
    border-radius: 0 0 16px 16px !important;
    z-index: 1000 !important;
  }
  .main-nav.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .main-nav .nav-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 12px !important;
  }
  .burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* Fix mobile menu alignment */
@media (max-width: 768px) {
  .sticky-header {
    position: relative !important;
  }
  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    position: relative !important;
  }
  .logo {
    max-width: 180px !important;
    height: auto !important;
  }
  .burger {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    margin-right: 0 !important;
  }
  .burger span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #1e293b !important;
  }
  .main-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
    padding: 16px !important;
    margin: 0 !important;
    border-radius: 0 0 16px 16px !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
  }
  .main-nav.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .main-nav .nav-btn {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Final mobile menu fixes */
@media (max-width: 768px) {
  .main-nav {
    padding: 16px 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .main-nav .nav-btn {
    margin: 0 0 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .burger {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
  }
  .burger span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: #334155 !important;
    border-radius: 2px !important;
  }
}

/* Fully rounded hero search on all sides */
.hero-search {
  border-radius: 0 !important;
  overflow: visible !important;
  gap: 12px !important;
  flex-direction: column !important;
}
.hero-search input {
  border-radius: 50px !important;
  width: 100% !important;
}
.hero-search button {
  border-radius: 50px !important;
  width: 100% !important;
}

@media (min-width: 769px) {
  .hero-search {
    flex-direction: row !important;
    max-width: 600px !important;
  }
  .hero-search input {
    border-radius: 50px !important;
    flex: 1 !important;
  }
  .hero-search button {
    border-radius: 50px !important;
    width: auto !important;
  }
}

/* Full-width pill button on cards */
.card-actions .btn-view {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  border-radius: 50px !important;
  padding: 10px 16px !important;
  background: #4f46e5 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.card-actions .btn-view:hover {
  background: #4338ca !important;
}

/* Light yellow card background */
.item-card {
  background: #fffbeb !important;
}

/* Light red card background */
.item-card {
  background: #fef2f2 !important;
}

/* Slightly darker red card background */
.item-card {
  background: #fee2e2 !important;
}

/* Darker grey card border */
.item-card {
  border: 1px solid #94a3b8 !important;
}

/* Minimize top gap after header */
.container {
  padding-top: 12px !important;
}
.page-header {
  margin-top: 8px !important;
  margin-bottom: 16px !important;
}
.breadcrumbs {
  margin-bottom: 8px !important;
}
.ad-header {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Hero purple matching logo */
.hero {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
}

/* Category icons */
.cat-icon {
  font-size: 48px !important;
  margin-bottom: 8px !important;
  line-height: 1 !important;
}

/* Inline category icon */
.cat-icon {
  font-size: 22px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}

/* Larger category icons */
.cat-icon {
  font-size: 44px !important;
  margin-right: 8px !important;
}

/* New category card colors */
.cat-card:nth-child(1) { 
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important; 
}
.cat-card:nth-child(2) { 
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important; 
}
.cat-card:nth-child(3) { 
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important; 
}

/* Distinct category tones */
.cat-card:nth-child(1) { 
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important; 
}
.cat-card:nth-child(2) { 
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important; 
}
.cat-card:nth-child(3) { 
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important; 
}

/* Category dropdown in search */
.hero-cat-select, .header-cat-select {
  padding: 12px 16px !important;
  border: none !important;
  border-radius: 50px !important;
  background: #fff !important;
  font-size: 14px !important;
  cursor: pointer !important;
  min-width: 120px !important;
}
.hero-search {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}
.active-filter {
  margin-top: 8px !important;
  font-size: 14px !important;
}
.clear-filter {
  color: #ef4444 !important;
  margin-left: 8px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.clear-filter:hover { text-decoration: underline !important; }

/* Pill style for header category select */
.header-cat-select {
  border-radius: 50px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 10px 16px !important;
  min-width: 140px !important;
}

/* Header spacing adjustments */
.search-form {
  gap: 12px !important;
  margin-right: 8px !important;
}
.header-cat-select {
  margin-right: 8px !important;
}
.main-nav {
  margin-left: 8px !important;
}

/* Fix header spacing */
.search-form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 16px !important;
  flex: 1 !important;
  max-width: 500px !important;
}
.header-cat-select {
  margin-right: 0 !important;
  flex-shrink: 0 !important;
}
.main-nav {
  margin-left: auto !important;
  margin-right: 16px !important;
  display: flex !important;
  gap: 8px !important;
}

/* No gap between search input and button */
.search-form {
  gap: 0 !important;
}
.search-form input {
  border-radius: 50px 0 0 50px !important;
}
.search-form button {
  border-radius: 0 50px 50px 0 !important;
}
.search-form .header-cat-select {
  border-radius: 50px !important;
  margin-right: 8px !important;
}

/* Fix mobile view */
@media (max-width: 768px) {
  .search-form {
    display: none !important;
  }
  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
  }
  .logo {
    max-width: 160px !important;
    height: auto !important;
  }
  .burger {
    display: flex !important;
  }
  .main-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    padding: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
    z-index: 1000 !important;
    border-radius: 0 0 16px 16px !important;
  }
  .main-nav.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .main-nav .nav-btn {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Mobile menu margins */
@media (max-width: 768px) {
  .main-nav {
    padding: 16px 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .main-nav .nav-btn {
    margin: 0 0 8px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .burger {
    margin-right: 4px !important;
  }
  .logo {
    margin-left: 4px !important;
  }
}

/* Fix mobile menu full width */
@media (max-width: 768px) {
  .sticky-header {
    position: relative !important;
  }
  .main-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }
  .main-nav.open {
    display: flex !important;
  }
}

/* Mobile search bar on results page */
.mobile-search-bar {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding: 0 4px;
}
.mobile-search-bar select,
.mobile-search-bar input,
.mobile-search-bar button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
}
.mobile-search-bar button {
  background: #4f46e5;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-search-bar {
    display: flex !important;
  }
}

/* 4th category card color (HTML) */
.cat-card:nth-child(4) { 
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important; 
  color: #fff !important;
  border: none !important;
}
.cat-card:nth-child(4) h3, .cat-card:nth-child(4) span { color: #fff !important; }

/* HTML nav button */
.nav-html { border-color: #64748b !important; color: #64748b !important; }
.nav-html:hover { background: #64748b !important; color: #fff !important; }

/* Force search button visible */
.search-form {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  flex-shrink: 0 !important;
}
.search-form button {
  display: inline-block !important;
  padding: 10px 16px !important;
  background: #4f46e5 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 50px 50px 0 !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
.search-form input {
  border-radius: 50px 0 0 50px !important;
  min-width: 120px !important;
}
.header-cat-select {
  border-radius: 50px !important;
  margin-right: 8px !important;
}

/* Modern lighter category colors */
.cat-card:nth-child(1) { 
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%) !important; 
}
.cat-card:nth-child(2) { 
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important; 
}
.cat-card:nth-child(3) { 
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%) !important; 
}
.cat-card:nth-child(4) { 
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important; 
}

/* Fix burger position on mobile */
@media (max-width: 768px) {
  .header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .logo {
    max-width: 150px !important;
    height: auto !important;
    margin: 0 !important;
  }
  .burger {
    display: flex !important;
    margin: 0 !important;
    padding: 8px !important;
    flex-shrink: 0 !important;
  }
  .search-form {
    display: none !important;
  }
}

/* Match nav buttons to category card colors */
.nav-kits { border-color: #14b8a6 !important; color: #14b8a6 !important; }
.nav-kits:hover { background: #14b8a6 !important; color: #fff !important; }

.nav-wp { border-color: #f97316 !important; color: #f97316 !important; }
.nav-wp:hover { background: #f97316 !important; color: #fff !important; }

.nav-shopify { border-color: #8b5cf6 !important; color: #8b5cf6 !important; }
.nav-shopify:hover { background: #8b5cf6 !important; color: #fff !important; }

.nav-html { border-color: #3b82f6 !important; color: #3b82f6 !important; }
.nav-html:hover { background: #3b82f6 !important; color: #fff !important; }

/* Orange first */
.nav-kits { border-color: #f97316 !important; color: #f97316 !important; }
.nav-kits:hover { background: #f97316 !important; color: #fff !important; }

.nav-wp { border-color: #14b8a6 !important; color: #14b8a6 !important; }
.nav-wp:hover { background: #14b8a6 !important; color: #fff !important; }

.cat-card:nth-child(1) { 
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important; 
}
.cat-card:nth-child(2) { 
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%) !important; 
}

/* Shopify yellowish */
.nav-shopify { border-color: #eab308 !important; color: #eab308 !important; }
.nav-shopify:hover { background: #eab308 !important; color: #fff !important; }

.cat-card:nth-child(3) { 
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important; 
}

/* Hero search button blue */
.hero-search button {
  background: #4f46e5 !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.hero-search button:hover {
  background: #4338ca !important;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed !important;
  bottom: 80px !important;
  right: 20px !important;
  width: 50px !important;
  height: 50px !important;
  background: #25d366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
  z-index: 999 !important;
  transition: transform .2s !important;
}
.wa-float:hover {
  transform: scale(1.1) !important;
}

/* Perfect WhatsApp button */
.wa-float {
  position: fixed !important;
  bottom: 80px !important;
  right: 20px !important;
  width: 52px !important;
  height: 52px !important;
  background: #25d366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .4) !important;
  z-index: 999 !important;
  transition: transform .2s, box-shadow .2s !important;
  text-decoration: none !important;
}
.wa-float:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .5) !important;
}
.wa-float svg {
  width: 30px !important;
  height: 30px !important;
}

/* WhatsApp image button */
.wa-float {
  width: 52px !important;
  height: 52px !important;
  background: #25d366 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.wa-float img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}

/* Smaller hero keyword pills */
.hero-keywords a {
  font-size: 12px !important;
  padding: 4px 10px !important;
  margin: 3px !important;
}

/* Logo red for search buttons */
.search-form button,
.hero-search button {
  background: #e11d48 !important;
  color: #fff !important;
}
.search-form button:hover,
.hero-search button:hover {
  background: #be123c !important;
}

/* Reduce hero top padding */
.hero {
  padding-top: 28px !important;
  padding-bottom: 40px !important;
}

/* Further reduce hero top padding */
.hero {
  padding-top: 20px !important;
}

/* Tight keyword pills - full width */
.hero-keywords {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 4px !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin-top: 12px !important;
}
.hero-keywords a {
  font-size: 12px !important;
  padding: 3px 8px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .hero-keywords {
    gap: 4px !important;
    padding: 0 8px !important;
  }
  .hero-keywords a {
    font-size: 11px !important;
    padding: 3px 7px !important;
  }
}

/* Desktop only - more gap between pills */
@media (min-width: 769px) {
  .hero-keywords {
    gap: 8px !important;
  }
}

/* Gap between search button and pills */
.hero-keywords {
  margin-top: 20px !important;
  gap: 6px !important;
}

@media (min-width: 769px) {
  .hero-keywords {
    gap: 10px !important;
  }
}

/* Mobile: search form above breadcrumbs */
@media (max-width: 768px) {
  .mobile-search-bar {
    order: -1 !important;
    margin-bottom: 16px !important;
  }
}
