:root {
  --primary: #e85d04;
  --primary-dark: #d00000;
  --secondary: #1a1a2e;
  --accent: #ffba08;
  --text: #222;
  --muted: #666;
  --bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, .btn { cursor: pointer; border: none; font-family: inherit; }

/* Header */
.header {
  background: var(--secondary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

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

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: #ddd;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav a:hover, .nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  color: white;
  font-size: 1.5rem;
  padding: 4px;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #0f0f1a;
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,15,26,0.55) 0%, rgba(15,15,26,0.25) 55%, rgba(15,15,26,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  color: white;
}

.hero-slide-content .badge-top {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-slide-content h1 {
  font-size: 2.9rem;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 600px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-slide-content h1 span {
  color: var(--primary);
}

.hero-slide-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.55;
}

.hero-slide-content .hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-slide-content .price-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-slide-content .price-tag .old {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.95rem;
  margin-right: 10px;
  font-weight: 400;
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero-slider { height: 480px; }
  .hero-slide-content h1 { font-size: 2rem; }
  .hero-slide-content { padding: 0 24px; text-align: center; }
  .hero-slide-content p { margin-left: auto; margin-right: auto; }
  .hero-slide-content .hero-btns { justify-content: center; }
  .slider-btn { width: 40px; height: 40px; font-size: 1rem; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
}

@media (max-width: 600px) {
  .hero-slider { height: 520px; }
  .hero-slide-content h1 { font-size: 1.7rem; }
}

/* Sections */
.section {
  padding: 60px 20px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-card .img-wrap {
  height: 220px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.product-card .img-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-card .body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.35;
  flex: 1;
}

.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

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

.product-card .original {
  font-size: 0.95rem;
  color: #999;
  text-decoration: line-through;
}

.product-card .actions {
  display: flex;
  gap: 8px;
}

.product-card .actions .btn {
  flex: 1;
  justify-content: center;
}

/* Features */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.2s;
}

.feature-card:hover {
  background: #fff3e6;
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* About / Contact */
.page-header {
  background: var(--secondary);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
}

.content-box {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: -30px;
  position: relative;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #ccc;
  padding: 50px 20px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer p, .footer a {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #bbb;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s;
}

.float-wa:hover {
  transform: scale(1.1);
}

/* Admin */
.admin-login {
  max-width: 400px;
  margin: 80px auto;
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-login h2 {
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-header {
  background: var(--secondary);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: #f5f5f5;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-table tr:hover {
  background: #fafafa;
}

.admin-table img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f0f0f0;
  border-radius: 6px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    padding: 16px;
    gap: 4px;
  }
  .menu-toggle { display: block; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 1.9rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* PHP Admin extras */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--secondary); color: #ccc; padding: 20px 0;
  flex-shrink: 0;
}
.admin-sidebar .brand {
  padding: 0 20px 20px; font-weight: 700; font-size: 1.1rem; color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 12px;
}
.admin-sidebar a {
  display: block; padding: 12px 20px; color: #bbb; transition: all 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.08); color: white;
}
.admin-main { flex: 1; background: var(--bg); }
.admin-topbar {
  background: white; padding: 14px 24px; display: flex; justify-content: space-between;
  align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-content { padding: 24px; }
.alert {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.95rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-card {
  background: white; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); max-width: 700px;
}
@media (max-width: 768px) {
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}

/* Trust bar */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 18px 20px;
}
.trust-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
}
.trust-item i {
  color: var(--primary);
  font-size: 1.2rem;
}


/* Category cards – solid, reliable layout */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}
.cat-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  border-radius: 14px;
  padding: 24px 20px;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}
.cat-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  opacity: 0.95;
}
.cat-card h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: #fff;
}
.cat-card p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  opacity: 0.9;
  color: #fff;
  flex: 1;
}
.cat-card .cat-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffba08;
}
.cat-machines { background: linear-gradient(145deg, #1a1a2e 0%, #e85d04 120%); }
.cat-motors   { background: linear-gradient(145deg, #0f3460 0%, #16213e 100%); }
.cat-tools    { background: linear-gradient(145deg, #7f1d1d 0%, #d00000 100%); }
.cat-cert     { background: linear-gradient(145deg, #1a1a2e 0%, #0f3460 100%); }

.cta-band {
  background: linear-gradient(135deg, #e85d04, #d00000);
  color: #fff;
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
}


/* Logo */
.logo-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px 6px;
}
.logo-text { line-height: 1.15; }
@media (max-width: 700px) {
  .logo-text { display: none; }
  .logo-img { height: 42px; }
}

/* About strip on home */
.about-strip { background: #fff; }
.about-strip-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-strip-text h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
  color: var(--secondary);
}
.about-strip-text p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  padding: 8px 0;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-list i { color: var(--primary); margin-top: 3px; }
.about-strip-side { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
}
.info-card.muted {
  background: #f1f5f9;
  color: var(--secondary);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.info-card .big-phone { font-size: 1.4rem; font-weight: 700; margin: 8px 0; }
.info-card .big-phone a { color: #fff; }
.info-card.muted .big-phone a { color: var(--primary); }
.info-card p { opacity: 0.9; font-size: 0.95rem; line-height: 1.5; }

@media (max-width: 800px) {
  .about-strip-grid { grid-template-columns: 1fr; }
}

/* ===== Modern Hero (sharp image on right) ===== */
.hero-modern {
  background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 50%, #16213e 100%);
  padding: 48px 20px 56px;
  overflow: hidden;
}
.hero-modern-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-modern-text {
  color: #fff;
}
.hero-badge {
  display: inline-block;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid rgba(232, 93, 4, 0.5);
  color: #ffba08;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.hero-modern-text h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  color: #fff;
}
.hero-modern-text h1 span {
  color: #e85d04;
}
.hero-modern-text p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin: 0 0 18px;
  max-width: 480px;
}
.hero-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffba08;
  margin-bottom: 18px;
}
.hero-price .old {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
  margin-right: 10px;
  font-weight: 500;
}
.hero-modern-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-dots {
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.active {
  background: #e85d04;
  transform: scale(1.2);
}
.hero-modern-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-img-frame {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
  display: block;
}
.hero-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hero-nav:hover {
  background: #e85d04;
}
@media (max-width: 900px) {
  .hero-modern-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-modern-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-modern-btns {
    justify-content: center;
  }
  .hero-dots {
    justify-content: center;
  }
  .hero-modern-text h1 {
    font-size: 2rem;
  }
  .hero-img-frame {
    max-width: 320px;
    margin: 0 auto;
  }
}
