/*
Theme Name: MasterTool
Theme URI: https://ninjacoder.com.br/modelos/mastertool
Author: NinjaCoder.com.br
Author URI: https://ninjacoder.com.br
Description: Tema WordPress premium B2B para ferramentas elétricas e suprimentos.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mastertool
*/

/* CSS Variables */
:root {
  --primary: #003566;
  --primary-dark: #001D3D;
  --highlight: #FFD60A;
  --support: #F8F9FA;
  --text: #333333;
  --text-light: #666666;
  --border: #E5E5E5;
  --white: #FFFFFF;
  --font-title: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --transition: all 0.3s ease;
  --container-max: 1200px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Header & Nav */
.header {
  background-color: var(--primary);
  border-bottom: 4px solid var(--highlight);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.5px;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
}

.nav-link:hover, .nav-link.active {
  color: var(--highlight);
}

.btn-highlight {
  background-color: var(--highlight);
  color: var(--primary-dark);
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
}

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

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: #CCCCCC;
  padding: 80px 0 40px 0;
  border-top: 5px solid var(--highlight);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 15px;
}

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

.footer-title {
  font-family: var(--font-title);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
  font-size: 15px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.developer-link {
  color: var(--highlight);
  font-weight: bold;
}

/* Banner Fixo / Home Hero */
.hero-banner {
  margin-top: 76px;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 29, 61, 0.85);
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 650px;
}

.hero-subtitle {
  font-family: var(--font-title);
  color: var(--highlight);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 52px;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
}

.btn-primary {
  background-color: var(--highlight);
  color: var(--primary-dark);
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 4px;
  display: inline-block;
}

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

/* Category Icons Row */
.cat-row {
  background-color: var(--white);
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.cat-row-flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.cat-icon-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}

.cat-icon {
  width: 45px;
  height: 45px;
  fill: var(--primary);
  margin-bottom: 10px;
}

.cat-icon-card:hover .cat-icon {
  fill: var(--highlight);
  transform: scale(1.1);
}

.cat-icon-card span {
  font-family: var(--font-title);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Grid Seção */
.section {
  padding: 80px 0;
  background-color: var(--support);
}

.section-title {
  font-family: var(--font-title);
  font-size: 36px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 40px;
  border-bottom: 3px solid var(--highlight);
  padding-bottom: 10px;
}

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

.prod-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.prod-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.prod-img {
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}

.prod-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.prod-brand {
  font-size: 13px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.prod-price-box {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.price-cnpj {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-title);
}

.price-regular {
  font-size: 13px;
  color: var(--text-light);
}

.btn-buy {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
}

.btn-buy:hover {
  background-color: var(--highlight);
  color: var(--primary-dark);
}

/* Intermediate Banner PJ */
.corporate-banner {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.corp-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.corp-title {
  font-family: var(--font-title);
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 800;
}

/* Brands section */
.brands-row {
  background-color: var(--white);
  padding: 40px 0;
}

.brands-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.brand-placeholder {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: #CCCCCC;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Category Page layout */
.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-top: 120px;
  margin-bottom: 80px;
}

.filter-sidebar {
  background-color: var(--support);
  padding: 25px;
  border: 1px solid var(--border);
  height: fit-content;
}

.filter-title {
  font-family: var(--font-title);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 5px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.filter-select {
  width: 100%;
  padding: 10px;
  background-color: var(--white);
  border: 1px solid var(--border);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pag-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-family: var(--font-title);
  font-weight: bold;
}

.pag-link.active, .pag-link:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Product Detail layout */
.product-layout {
  margin-top: 120px;
  margin-bottom: 80px;
}

.product-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.prod-gallery {
  border: 1px solid var(--border);
  padding: 30px;
  background-color: var(--white);
}

.prod-gallery img {
  max-height: 400px;
  margin: 0 auto;
}

.bulk-discount-box {
  background-color: var(--support);
  border: 1px solid var(--border);
  padding: 30px;
  border-top: 4px solid var(--primary);
}

.bulk-discount-title {
  font-family: var(--font-title);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.table-bulk {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.table-bulk td, .table-bulk th {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.table-bulk th {
  text-align: left;
  font-family: var(--font-title);
  text-transform: uppercase;
}

/* Tabs */
.tabs-container {
  margin-top: 50px;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  font-family: var(--font-title);
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 25px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
  padding: 30px 0;
}

.tab-pane.active {
  display: block;
}

/* PJ corporate form */
.form-pj {
  background-color: var(--support);
  border: 1px solid var(--border);
  padding: 40px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  background-color: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Blog layouts */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.post-card {
  border: 1px solid var(--border);
  background-color: var(--white);
}

.post-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.post-content {
  padding: 25px;
}

.post-title {
  font-family: var(--font-title);
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.post-excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.post-link {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: bold;
  color: var(--primary);
}

/* Contact channels */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.channel-card {
  background-color: var(--support);
  border: 1px solid var(--border);
  padding: 40px 30px;
  text-align: center;
}

.channel-name {
  font-family: var(--font-title);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

@media(max-width: 992px) {
  .product-grid, .product-top-grid, .corp-flex, .cat-layout, .channel-grid {
    grid-template-columns: 1fr;
  }
}
