/*
Theme Name: Eoffroadparts
Theme URI: https://demo4.sitedemos.cloud
Description: Visual replica of eoffroadparts.com on WooCommerce.
Version: 1.3.0
Author: Site Demo
Text Domain: eoffroadparts
*/

:root {
  --eoff-ink: #121212;
  --eoff-muted: rgba(18,18,18,.75);
  --eoff-yellow: #fcd002;
  --eoff-card-yellow: #f5c400;
  --eoff-bg: #ffffff;
  --eoff-border: #e8e8e8;
  --eoff-max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #fff !important; }
body,
body.home,
body.woocommerce,
body.archive,
body.single-product {
  font-family: Figtree, system-ui, sans-serif !important;
  color: var(--eoff-muted) !important;
  background: #fff !important;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p { margin: 0; }
.eoff-wrap { width: min(var(--eoff-max), calc(100% - 48px)); margin: 0 auto; }

/* Hide leftover brand chrome */
.legal-strip, .vc-f-brand, footer:not(.eoff-footer),
.ct-header, #header, .ct-footer, .hb-hero, .vc-table { display: none !important; }

/* Announcement */
.eoff-ann {
  background: #121212;
  color: var(--eoff-yellow);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  letter-spacing: .01em;
}
.eoff-ann a { color: var(--eoff-yellow); }

/* Header */
.eoff-header {
  background: #fff;
  border-bottom: 1px solid var(--eoff-border);
  position: sticky; top: 0; z-index: 80;
}
.eoff-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 70px;
}
.eoff-logo {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: .03em;
  color: #121212 !important;
  white-space: nowrap;
  line-height: 1;
}
.eoff-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 14px;
  overflow: auto hidden;
  scrollbar-width: none;
}
.eoff-nav::-webkit-scrollbar { display: none; }
.eoff-nav a {
  color: #121212 !important;
  font-size: 13px;
  font-weight: 500;
  padding: 22px 0;
  white-space: nowrap;
}
.eoff-nav a:hover { text-decoration: underline; }
.eoff-tools { display: flex; align-items: center; gap: 12px; color: #121212; }
.eoff-currency { font-size: 13px; font-weight: 600; }
.eoff-currency .woo-multi-currency { display: flex; align-items: center; gap: 6px; }
.eoff-currency .wmc-currency, .eoff-currency .wmc-currency a, .eoff-currency .wmc-current-currency {
  color: #121212 !important; white-space: nowrap;
}
.eoff-currency select {
  border: 1px solid #ddd; background: #fff; color: #121212;
  padding: 4px 6px; font-size: 12px; font-weight: 600;
}
.eoff-tools a, .eoff-tools button {
  background: none; border: 0; cursor: pointer; color: inherit; padding: 6px; display: inline-flex;
}
.eoff-search-form { display: none; }
.eoff-header.open-search .eoff-search-form {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; padding: 12px 24px; border-bottom: 1px solid var(--eoff-border);
}
.eoff-search-form input[type=search] {
  width: 100%; border: 1px solid #ccc; padding: 10px 12px; font-size: 15px; background: #fff; color: #121212;
}
.eoff-cart-count {
  display: inline-flex; min-width: 16px; height: 16px; border-radius: 50%;
  background: #121212; color: #fff; font-size: 10px; align-items: center; justify-content: center;
  margin-left: 2px;
}
.eoff-burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }

/* Hero */
.eoff-hero { position: relative; background: #000; line-height: 0; }
.eoff-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.eoff-hero-cta {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
}
.eoff-hero-cta a {
  display: inline-block; background: #fff; color: #111; padding: 11px 22px;
  border-radius: 4px; font-weight: 600; font-size: 14px;
}

/* Sections */
.eoff-section { padding: 56px 0; background: #fff; }
.eoff-h2 {
  font-size: 28px; font-weight: 600; color: #121212 !important;
  text-align: center; margin: 0 0 32px; letter-spacing: -.02em;
}
.eoff-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.eoff-col {
  background: var(--eoff-card-yellow);
  display: flex; flex-direction: column;
  color: #121212 !important;
}
.eoff-col img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.eoff-col span {
  display: block; padding: 16px 14px; color: #121212 !important;
  font-weight: 600; font-size: 15px;
}

/* Product grid */
.eoff-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 16px;
  list-style: none;
  padding: 0; margin: 0;
}
.eoff-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eoff-card,
li.product {
  background: #fff;
  display: flex;
  flex-direction: column;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.eoff-card-media {
  position: relative; background: #f6f6f6; aspect-ratio: 1; overflow: hidden;
}
.eoff-card-media img,
.eoff-card img.attachment-woocommerce_thumbnail,
.eoff-card img.wp-post-image {
  width: 100% !important; height: 100% !important; object-fit: contain; background: #f6f6f6;
}
.eoff-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: #121212; color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 2px;
}
.eoff-card h3,
.eoff-card .woocommerce-loop-product__title {
  font-size: 14px !important; font-weight: 500 !important; color: #121212 !important;
  margin: 12px 0 6px !important; line-height: 1.35; min-height: 38px;
}
.eoff-price, .eoff-card .price {
  font-size: 14px; color: #121212 !important; margin: 0 0 12px;
}
.eoff-price del, .eoff-card .price del { color: #888; margin-right: 6px; }
.eoff-price ins, .eoff-card .price ins { background: none; text-decoration: none; }
.eoff-btn {
  display: block; width: 100%; text-align: center;
  border: 1px solid #cfcfcf; background: #fff; color: #111 !important;
  padding: 11px 8px; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 2px;
  margin-top: auto;
}
.eoff-btn:hover { border-color: #111; }
.eoff-btn-yellow { background: var(--eoff-yellow); border-color: var(--eoff-yellow); }
.eoff-center { text-align: center; margin-top: 36px; }
.eoff-viewall {
  display: inline-block; background: #121212; color: #fff !important;
  padding: 12px 28px; font-weight: 600; font-size: 14px;
}

/* Promo */
.eoff-promo {
  position: relative; min-height: 420px; display: flex; align-items: center;
  background: #111 center/cover no-repeat; color: #fff; margin: 0;
}
.eoff-promo-inner { width: min(var(--eoff-max), calc(100% - 48px)); margin: 0 auto; }
.eoff-promo.right .eoff-promo-inner { text-align: right; }
.eoff-promo h2 { font-size: 32px; color: #fff !important; margin: 0 0 8px; font-weight: 600; }
.eoff-promo p { margin: 0 0 18px; color: #eee; }
.eoff-video {
  min-height: 440px; background: #111 center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.eoff-video h2 { color: #fff !important; font-size: 28px; text-align: center; }
.eoff-play {
  width: 64px; height: 64px; border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
  margin: 16px auto 0;
}

/* Newsletter + footer */
.eoff-news {
  background: #121212; color: #fff; text-align: center; padding: 52px 20px 40px;
}
.eoff-news h2 { color: #fff !important; font-size: 16px; font-weight: 500; margin: 0 0 18px; }
.eoff-news form { display: flex; max-width: 420px; margin: 0 auto; border-bottom: 1px solid #555; }
.eoff-news input {
  flex: 1; background: transparent; border: 0; color: #fff; padding: 10px 0; outline: none;
}
.eoff-news button { background: none; border: 0; color: #fff; cursor: pointer; padding: 10px; }
.eoff-footer { background: #121212; color: #ddd; padding: 40px 0 20px; font-size: 14px; }
.eoff-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 32px; }
.eoff-footer h3 { color: #fff !important; font-size: 16px; margin: 0 0 14px; font-weight: 600; }
.eoff-footer a, .eoff-footer span { display: block; padding: 4px 0; color: #ddd !important; }
.eoff-footer a:hover { color: #fff !important; }
.eoff-copy {
  border-top: 1px solid #222; margin-top: 32px; padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #aaa;
}
.eoff-pay { display: flex; gap: 8px; }
.eoff-pay span {
  background: #fff; color: #111; border-radius: 3px; padding: 2px 6px; font-size: 11px; font-weight: 700;
}

/* Shop */
.eoff-main { padding: 36px 0 72px; background: #fff; }
.eoff-shop-head { margin-bottom: 8px; }
.eoff-shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 28px; font-size: 14px; color: #555;
}
.eoff-shop-toolbar select {
  border: 1px solid #ddd; background: #fff; padding: 8px 10px; color: #121212;
}
.eoff-pager { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.eoff-pager .page-numbers {
  display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center;
  border: 1px solid #e5e5e5; color: #121212; padding: 0 10px;
}
.eoff-pager .page-numbers.current { background: #121212; color: #fff; border-color: #121212; }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  background: #f6f6f6; border: 0; padding: 12px 16px; margin: 0 0 20px; color: #121212;
}

/* PDP */
.eoff-crumb { font-size: 13px; color: #777; margin: 0 0 24px; }
.eoff-crumb a { color: #777; }
.eoff-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: start;
}
.eoff-pdp-media .woocommerce-product-gallery { width: 100% !important; float: none !important; }
.eoff-pdp-media .flex-viewport,
.eoff-pdp-media .woocommerce-product-gallery__image img {
  width: 100%; background: #f6f6f6;
}
.eoff-pdp-media ol.flex-control-nav {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.eoff-pdp-media ol.flex-control-nav li { width: 72px; }
.eoff-pdp-media ol.flex-control-nav img { border: 1px solid #eee; }
.eoff-pdp-title {
  font-size: 28px; font-weight: 600; color: #121212 !important; line-height: 1.25; margin: 0 0 12px;
}
.eoff-pdp-price { font-size: 22px; color: #121212 !important; margin: 0 0 16px; font-weight: 500; }
.eoff-pdp-excerpt { margin: 0 0 20px; font-size: 15px; }
.eoff-pdp-cart .quantity {
  display: inline-flex; border: 1px solid #ddd; margin-right: 10px;
}
.eoff-pdp-cart .quantity input {
  width: 56px; border: 0; text-align: center; padding: 10px 0; background: #fff; color: #121212;
}
.eoff-pdp-cart .single_add_to_cart_button,
.single_add_to_cart_button {
  background: #121212 !important; color: #fff !important; border: 0 !important;
  padding: 12px 28px !important; font-weight: 600; border-radius: 2px !important; cursor: pointer;
}
.eoff-pdp-cart table.variations { width: 100%; margin-bottom: 16px; border: 0; }
.eoff-pdp-cart table.variations th {
  text-align: left; font-weight: 500; color: #121212; padding: 6px 12px 6px 0; width: 30%;
}
.eoff-pdp-cart table.variations select {
  width: 100%; border: 1px solid #ddd; padding: 8px 10px; background: #fff;
}
.eoff-pdp-meta { margin-top: 18px; font-size: 13px; color: #777; }
.eoff-pdp-tabs { margin-top: 56px; }
.woocommerce-tabs ul.tabs {
  display: flex; gap: 24px; border-bottom: 1px solid #eee; list-style: none; margin: 0 0 20px;
}
.woocommerce-tabs ul.tabs li a { color: #777; padding: 10px 0; display: block; font-weight: 500; }
.woocommerce-tabs ul.tabs li.active a { color: #121212; border-bottom: 2px solid #121212; }
.woocommerce-Tabs-panel { color: #333; font-size: 15px; line-height: 1.7; }
.woocommerce-Tabs-panel h2 { display: none; }
.woocommerce-Tabs-panel img { max-width: 100%; height: auto; margin: 8px 0; }
.screen-reader-text,
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.eoff-pdp-meta { display: flex; flex-direction: column; gap: 4px; }
.eoff-price .price { display: inline; }
.related, .upsells { display: none; }

.page-title { color: #121212 !important; text-align: center; font-size: 28px; margin: 0 0 24px; }
.page-body { max-width: 760px; margin: 0 auto; color: #333; line-height: 1.7; }

@media (max-width: 1100px) {
  .eoff-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .eoff-grid-4 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .eoff-cols { grid-template-columns: repeat(2, 1fr); }
  .eoff-pdp { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 800px) {
  .eoff-burger { display: block; }
  .eoff-nav { display: none; }
  .eoff-header.open-nav .eoff-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; padding: 8px 20px 16px; border-bottom: 1px solid var(--eoff-border);
    overflow: visible;
  }
  .eoff-nav a { padding: 10px 0; }
  .eoff-logo { font-size: 22px; }
  .eoff-grid, .eoff-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .eoff-footer-grid { grid-template-columns: 1fr; }
  .eoff-promo { min-height: 280px; }
  .eoff-header-inner { grid-template-columns: auto 1fr auto; }
}

.woocommerce-product-gallery__trigger { display: none !important; }
