/* ============================================
   Engines Express – Site theme
   Loaded after style.css; restyles shared chrome and adds the storefront layout.
   ============================================ */

:root {
  --red: #c8102e;
  --red-dark: #a00c24;
  --red-soft: #fdecee;
  --ink: #1d1d1d;
  --text: #4a4a4a;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --light: #f6f6f6;
  --white: #fff;
  --font: 'Saira', 'Helvetica Neue', Arial, sans-serif;
}

body { font-family: var(--font); color: var(--text); background: var(--white); }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); }
.container { max-width: 1280px; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font); border-radius: 40px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.btn-primary { background: var(--red); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { color: var(--red); border-color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 26px; font-size: 13px; }
.btn-pill .arrow { transition: transform .2s; }
.btn-pill:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: -38px; z-index: 1000; box-shadow: 0 2px 14px rgba(0,0,0,.08); background: #fff; }
.top-bar { background: var(--red); color: #fff; font-size: 13.5px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.top-bar-group { display: flex; align-items: center; gap: 22px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 7px; color: #fff; white-space: nowrap; }
.top-bar-item a { color: #fff; }
.top-bar-item a:hover { text-decoration: underline; }
.top-bar-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.main-header .header-inner { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand img { width: 150px; }
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav > ul { flex-wrap: wrap; justify-content: center; }
.primary-nav ul li a {
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 32px 14px; letter-spacing: .3px;
}
.primary-nav ul li.active > a { border-bottom: 0; color: var(--red); }
.primary-nav ul li > a:hover { color: var(--red); }
.primary-nav .sub-menu { border-top: 3px solid var(--red); top: 100%; }
.primary-nav .sub-menu a { padding: 11px 18px !important; font-size: 14px !important; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--light); color: var(--red); }
.icon-btn svg { width: 19px; height: 19px; }
.header-search { display: none; border-top: 1px solid var(--line); background: #fff; }
.header-search.open { display: block; }
.header-search form { display: flex; gap: 10px; padding: 14px 0; }
.header-search input {
  flex: 1; padding: 12px 18px; border: 1px solid var(--line); border-radius: 40px;
  font-family: var(--font); font-size: 15px; outline: none;
}
.header-search input:focus { border-color: var(--red); }

/* ---------- Hero slider ---------- */
.hero-slider { background: #111; }
.slide { height: 600px; justify-content: center; text-align: center; }
.slide-image::after { background: rgba(0,0,0,.55); }
.slide .container { width: 100%; }
.slide-content { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.slide-kicker { display: block; width: 60px; height: 3px; background: var(--red); margin: 0 auto 22px; }
.slide-content h2 { font-size: 3rem; text-transform: uppercase; color: #fff; margin-bottom: 14px; letter-spacing: 1px; }
.slide-content p { font-size: 1.25rem; color: #f1f1f1; font-weight: 500; margin-bottom: 30px; }
.slider-prev, .slider-next { background: rgba(255,255,255,.15); }
.slider-prev:hover, .slider-next:hover { background: var(--red); }
.slider-dots button.active { background: var(--red); }

/* ---------- Bands & section headings ---------- */
.welcome-band { background: var(--red); color: #fff; text-align: center; padding: 34px 0; }
.welcome-band h2 { color: #fff; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.welcome-band p { color: #fff; font-size: 1.05rem; font-weight: 500; }

.section { padding: 70px 0; }
.section-light { background: var(--light); }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: 1.75rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 0; }
.section-heading h2::after, .heading-left::after {
  content: ''; display: block; width: 56px; height: 3px; background: var(--red); margin: 12px auto 0;
}
.heading-left { font-size: 1.6rem; margin-bottom: 22px; }
.heading-left::after { margin-left: 0; }
.section-heading p { color: var(--muted); margin-top: 12px; }
.section-more { text-align: center; margin-top: 34px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { font-size: 16px; line-height: 1.85; margin-bottom: 14px; }
.split-image img { width: 100%; height: 420px; object-fit: cover; border-radius: 4px; }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff; border: 1px solid transparent; border-radius: 4px; text-align: center;
  box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.product-card:hover { transform: none; border-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.product-thumb { aspect-ratio: 4 / 3; background: #fff; }
.product-thumb img { object-fit: contain; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-badge { background: var(--red); border-radius: 2px; }
.product-body { padding: 16px 14px 20px; align-items: center; }
.product-name { font-size: 15.5px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.product-price { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.product-actions { justify-content: center; width: 100%; }
.product-actions .btn { flex: 0 1 auto; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-size: 18px; box-shadow: 0 4px 14px rgba(200,16,46,.35);
}
.carousel-btn:hover { background: var(--red-dark); }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

/* ---------- Feature boxes ---------- */
.feature-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-box { background: #fff; padding: 34px 28px; border-radius: 4px; text-align: center; border-bottom: 3px solid transparent; transition: border-color .2s, transform .2s; }
.feature-box:hover { border-color: var(--red); transform: translateY(-4px); }
.feature-icon-circle {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center;
}
.feature-icon-circle svg { width: 28px; height: 28px; }
.feature-box h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-box p { font-size: 15px; line-height: 1.75; color: var(--text); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.duo-item { border-left: 3px solid var(--red); padding-left: 26px; }
.duo-item p { line-height: 1.85; }

/* ---------- Page title band ---------- */
.page-title-bar {
  position: relative; text-align: center; padding: 70px 0;
  background: #1d1d1d url('../images/m2.jpg') center / cover no-repeat;
}
.page-title-bar::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.62); }
.page-title-bar .container { position: relative; }
.page-title-bar h1 { color: #fff; font-size: 2.2rem; text-transform: uppercase; letter-spacing: 1px; }
.page-title-bar p { margin: 8px auto 0; opacity: .9; color: #fff; max-width: 640px; }
.breadcrumb { background: #fff; }
.breadcrumb ul li a { color: var(--red); }

/* ---------- Shop / category layout ---------- */
.shop-layout { grid-template-columns: 290px 1fr; gap: 40px; padding: 50px 0 20px; }
.shop-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 26px 22px; top: 150px; }
.widget-title {
  font-family: var(--font); text-transform: uppercase; font-size: 15px; letter-spacing: .5px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; position: relative;
}
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--red); }
.category-list a { font-size: 14.5px; display: flex; justify-content: space-between; padding: 4px 0; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-count { font-size: 14px; }
.toolbar-sort { padding: 9px 14px; border: 1px solid var(--line); border-radius: 40px; font-family: var(--font); font-size: 14px; outline: none; }
.shop-main .products-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pagination button { border-radius: 50%; font-family: var(--font); }

/* ---------- Product detail ---------- */
.product-detail { padding: 56px 0 30px; }
.product-detail-grid { gap: 56px; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 4px; aspect-ratio: 4 / 3; }
.product-info h1 { font-size: 1.9rem; text-transform: none; }
.product-detail-price { color: var(--red); }
.product-cta .btn { border-radius: 40px; }
.product-tabs { margin-top: 10px; border-top: 1px solid var(--line); }
.product-tabs .tab-title {
  display: inline-block; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .5px;
  padding: 14px 0 10px; border-top: 3px solid var(--red); margin-top: -2px; color: var(--ink);
}
.product-tabs .tab-body { padding: 18px 0 10px; max-width: 900px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1d1d1d;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 18px 18px;
  color: #cfcfcf; padding-top: 64px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer-grid h4 {
  color: #fff; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .5px;
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--red);
}
.footer-grid p { font-size: 15px; line-height: 1.8; color: #cfcfcf; }
.footer-grid .footer-logo { width: 150px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links a {
  display: flex; align-items: center; gap: 10px; padding: 11px 0; color: #e8e8e8; font-size: 15px; transition: color .2s, padding .2s;
}
.footer-links a::before { content: '\2192'; color: #fff; }
.footer-links a:hover, .footer-links li.active a { color: var(--red); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; padding: 9px 0; font-size: 15px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: 4px; }
.footer-contact a { color: #e8e8e8; }
.footer-contact a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: 14px; color: #9a9a9a; display: block; }

/* ---------- Floating buttons ---------- */
.whatsapp-float { bottom: 24px; left: 24px; right: auto; padding: 0; background: transparent; box-shadow: none; gap: 10px; }
.whatsapp-float .wa-circle {
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
}
.whatsapp-float .wa-circle svg { width: 30px; height: 30px; color: #fff; }
.whatsapp-float .wa-label { background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.whatsapp-float:hover { box-shadow: none; }
.back-to-top {
  position: fixed; right: 22px; bottom: 24px; z-index: 9998; width: 44px; height: 44px; border: 0; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav ul li a { padding: 32px 9px; font-size: 14px; }
  .carousel-track { grid-auto-columns: calc((100% - 48px) / 3); }
}
@media (max-width: 1024px) {
  .shop-main .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .split, .duo { grid-template-columns: 1fr; gap: 30px; }
  .feature-boxes { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .carousel-btn.prev { left: -6px; }
  .carousel-btn.next { right: -6px; }
}
@media (max-width: 768px) {
  .site-header { top: 0; }
  .top-bar { display: none; }
  .main-header .header-inner { height: 70px; }
  .site-brand img { width: 120px; }
  .slide { height: 440px; }
  .slide-content h2 { font-size: 1.8rem; }
  .slide-content p { font-size: 1rem; }
  .section { padding: 50px 0; }
  .split-image img { height: 260px; }
  .page-title-bar { padding: 46px 0; }
  .page-title-bar h1 { font-size: 1.6rem; }
  .whatsapp-float .wa-label { display: none; }
}
@media (max-width: 560px) {
  .feature-boxes, .footer-grid, .shop-main .products-grid { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: 82%; }
  .container { padding: 0 16px; }
}

/* ---------- Extras ---------- */
.page-title-bar .band-title { color: #fff; font-size: 2.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font); }
.category-list li.sub a { padding-left: 14px; font-size: 14px; }
.category-list a span { background: var(--light); border-radius: 20px; padding: 0 8px; font-size: 12px; color: var(--muted); }
.sidebar-search button svg { width: 16px; height: 16px; }
.top-bar-item svg[fill="currentColor"] { width: 15px; height: 15px; }
.footer-contact svg[fill="currentColor"] { color: #25D366; }
@media (max-width: 768px) { .page-title-bar .band-title { font-size: 1.6rem; } }
.site-brand img { width: auto; max-width: 170px; max-height: 64px; object-fit: contain; }
.product-actions { flex-wrap: nowrap; gap: 8px; }
.product-actions .btn { width: auto; flex: 1 1 0; min-width: 0; padding: 8px 10px; }
@media (max-width: 768px) { .site-brand img { max-height: 50px; } }
@media (max-width: 768px) { .primary-nav { display: none; } }
