/*
Theme Name: PrintRefurb
Author: PrintRefurb Team
Version: 1.0.0
Description: Custom theme for PrintRefurb - Certified Refurbished Printers
*/

:root {
  --pr-primary: #1A3A5C;
  --pr-secondary: #2ECC71;
  --pr-accent: #E67E22;
  --pr-whatsapp: #25D366;
  --pr-bg: #F8F9FA;
  --pr-card: #FFFFFF;
  --pr-text: #2C3E50;
  --pr-muted: #7F8C8D;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--pr-text);
  background: var(--pr-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--pr-primary);
}

a { color: var(--pr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: var(--pr-card);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: .75rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pr-primary);
}
.logo span { color: var(--pr-secondary); }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
}
.main-nav .has-dropdown {
  position: relative;
}
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 200px;
  padding: .5rem 0;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}
.main-nav .dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
  display: flex;
}
.main-nav .dropdown li {
  list-style: none;
}
.main-nav .dropdown a {
  display: block;
  padding: .5rem 1rem;
  white-space: nowrap;
  color: var(--pr-text);
}
.main-nav .dropdown a:hover {
  background: var(--pr-bg);
  color: var(--pr-primary);
  text-decoration: none;
}
.main-nav .has-dropdown > a {
  display: inline-block;
  padding-bottom: .5rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--pr-primary) 0%, #0f2339 100%);
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--pr-accent); color: #fff; }
.btn-whatsapp { background: var(--pr-whatsapp); color: #fff; }

/* Sections */
.section { padding: 4rem 1rem; }
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.category-card {
  background: var(--pr-card);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .15s;
}
.category-card:hover { transform: translateY(-4px); }
.category-card h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--pr-primary);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--pr-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eee;
}
.product-card .info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.product-card .brand {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pr-secondary);
  font-weight: 700;
  margin-bottom: .3rem;
}
.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  line-height: 1.35;
}
.product-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pr-primary);
  margin-bottom: 1rem;
}
.product-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-item h4 {
  font-size: 1rem;
  margin-bottom: .3rem;
}
.trust-item p {
  font-size: .9rem;
  color: var(--pr-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--pr-primary);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: .9rem;
}
.site-footer a { color: #fff; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--pr-whatsapp);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 200;
  transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; }

/* Single product */
.single-product {
  background: var(--pr-card);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.product-gallery img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.product-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.product-meta li {
  padding: .4rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}
.product-meta strong { color: var(--pr-primary); }

/* Category filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-link {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ddd;
  color: var(--pr-text);
  font-size: .9rem;
  font-weight: 500;
  transition: all .15s;
}
.filter-link:hover {
  border-color: var(--pr-primary);
  color: var(--pr-primary);
  text-decoration: none;
}
.filter-link.active {
  background: var(--pr-primary);
  border-color: var(--pr-primary);
  color: #fff;
}

/* Archive header */
.archive-header {
  background: var(--pr-primary);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}
.archive-header h1 { color: #fff; margin: 0; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: .85rem;
  color: var(--pr-muted);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .main-nav { display: none; }
}
