/* ============================================
   Engines Express – Static Site Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Krub', 'Roboto', sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.site-brand img { width: 120px; height: auto; }

/* Primary nav */
.primary-nav ul {
  display: flex;
  gap: 0;
}

.primary-nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}

.primary-nav ul li a:hover,
.primary-nav ul li.active a {
  color: #c8102e;
}

.primary-nav ul li.active a {
  font-weight: 700;
  border-bottom: 2px solid #c8102e;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  transition: all .3s;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.drawer-panel {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 280px;
  background: #fff;
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s;
}
.mobile-drawer.open .drawer-panel { transform: translateX(0); }
.mobile-drawer.open { display: block; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.drawer-close {
  font-size: 24px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.drawer-nav ul { display: flex; flex-direction: column; gap: 0; }
.drawer-nav ul li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #333;
}
.drawer-nav ul li a:hover { color: #c8102e; }

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

.slide {
  display: none;
  position: relative;
  height: 520px;
}
.slide.active { display: flex; align-items: center; }

.slide-image {
  position: absolute;
  inset: 0;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 1;
  padding: 0 60px;
  max-width: 600px;
  color: #fff;
}
.slide-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}
.slide-content .btn { margin-top: 10px; }

/* Slider controls */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: rgba(200,16,46,.7); }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.slider-dots button.active { background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .2s;
  text-transform: uppercase;
}
.btn-primary {
  background: #c8102e;
  color: #fff;
  border: 2px solid #c8102e;
}
.btn-primary:hover { background: #a50d25; border-color: #a50d25; }

.btn-outline {
  background: transparent;
  color: #c8102e;
  border: 2px solid #c8102e;
}
.btn-outline:hover { background: #c8102e; color: #fff; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-dark {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
}
.btn-dark:hover { background: #333; border-color: #333; }

/* ---------- Section headings ---------- */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: .9rem;
  color: #888;
  margin-bottom: 32px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header .section-title { margin-bottom: 0; }
.divider {
  height: 1px;
  background: #e8e8e8;
  margin: 0;
  border: none;
}

/* ---------- Feature strips ---------- */
.features-strip {
  background: #f7f7f7;
  padding: 28px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: #c8102e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 18px;
}
.feature-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: #1a1a1a; }
.feature-text p { font-size: 12px; color: #888; }

/* ---------- Promo banners ---------- */
.promo-section { padding: 40px 0; }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  height: 200px;
}
.promo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.promo-card:hover img { transform: scale(1.05); }
.promo-card-content {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.promo-card-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.promo-card-content a {
  font-size: 12px;
  color: #fff;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ---------- Products section ---------- */
.products-section { padding: 48px 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.product-thumb {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 1 / 1;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #25D366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c8102e;
  margin-bottom: 12px;
}
.product-price.no-price { color: #888; font-style: italic; font-size: .85rem; font-weight: 400; }

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #2e9e50;
  font-weight: 600;
  margin-bottom: 14px;
}
.product-stock::before {
  content: '';
  width: 7px; height: 7px;
  background: #2e9e50;
  border-radius: 50%;
}

/* ---------- Shop page sidebar ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding: 48px 0;
}
.shop-sidebar {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 88px;
}
.sidebar-widget { margin-bottom: 28px; }
.sidebar-widget:last-child { margin-bottom: 0; }
.widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c8102e;
}
.sidebar-search {
  display: flex;
  gap: 0;
}
.sidebar-search input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  outline: none;
}
.sidebar-search input:focus { border-color: #c8102e; }
.sidebar-search button {
  padding: 9px 14px;
  background: #c8102e;
  color: #fff;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
}

.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  color: #555;
  transition: color .2s;
}
.filter-item:hover { color: #c8102e; }
.filter-item input[type=checkbox] { accent-color: #c8102e; }

.shop-main {}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-count { font-size: 13px; color: #888; }
.shop-sort select {
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: center;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
}
.page-banner-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 40px;
}
.page-banner-content h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.page-banner-content p { font-size: .95rem; opacity: .85; max-width: 540px; }

/* ---------- About page ---------- */
.about-section { padding: 60px 0; }

.about-text-block { max-width: 820px; }
.about-text-block p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
.about-images img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
}
.mv-item {}
.mv-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: #eee;
  line-height: 1;
  margin-bottom: 8px;
}
.mv-item h3 { font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.mv-item p { font-size: 14px; color: #666; line-height: 1.8; }

/* ---------- Contact page ---------- */
.contact-section { padding: 60px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; color: #1a1a1a; }
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 42px; height: 42px;
  background: #c8102e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-detail span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #999; margin-bottom: 2px; }
.contact-info-detail strong { font-size: 15px; color: #1a1a1a; }
.contact-info-detail a { color: #c8102e; }
.contact-info-detail a:hover { text-decoration: underline; }

.contact-hours {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 8px;
}
.contact-hours p { font-size: 14px; color: #555; margin-bottom: 4px; }

.contact-form-wrap h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; color: #1a1a1a; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  color: #333;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #c8102e; box-shadow: 0 0 0 3px rgba(200,16,46,.08); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 14px 18px;
  border-radius: 5px;
  margin-top: 12px;
  font-size: 14px;
}
.form-success.show { display: block; }

/* ---------- Settings page ---------- */
.settings-section { padding: 60px 0; max-width: 700px; }
.settings-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.settings-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-saved {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 10px 16px;
  border-radius: 5px;
  margin-top: 14px;
  font-size: 13px;
}
.settings-saved.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding-top: 50px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-about img { width: 130px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-about p { font-size: 13px; line-height: 1.8; color: #aaa; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: #c8102e; }
.footer-col p { font-size: 13px; color: #aaa; margin-bottom: 8px; line-height: 1.7; }
.footer-col a.mail { color: #c8102e; }
.footer-col a.mail:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #c8102e; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37,211,102,.55);
  color: #fff;
}
.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 12px 0;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}
.breadcrumb ul {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
}
.breadcrumb ul li:not(:last-child)::after { content: '›'; margin-left: 6px; }
.breadcrumb ul li a { color: #c8102e; }
.breadcrumb ul li a:hover { text-decoration: underline; }

/* ---------- Page title block ---------- */
.page-title-bar {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 40px 0;
}
.page-title-bar h1 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.page-title-bar p { font-size: .95rem; opacity: .75; max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: none; }
  .shop-sidebar.open { display: block; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .mission-vision-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .promo-grid { grid-template-columns: 1fr; }

  .slide { height: 360px; }
  .slide-content { padding: 0 24px; }
  .slide-content h2 { font-size: 1.5rem; }

  .about-images { grid-template-columns: 1fr; }
  .about-images img { height: 220px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .page-title-bar h1 { font-size: 1.5rem; }

  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.3rem; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-red { color: #c8102e; }
.bg-light { background: #f7f7f7; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }

/* Filter toggle button (mobile) */
.filter-toggle-btn {
  display: none;
  gap: 8px;
  align-items: center;
  padding: 9px 16px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .filter-toggle-btn { display: inline-flex; } }

/* Home banner large */
.home-banner-large {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin: 40px 0;
}
.home-banner-large img { width: 100%; height: 100%; object-fit: cover; }
.home-banner-large-content {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px;
  color: #fff;
}
.home-banner-large-content h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; max-width: 480px; }
