/*
Theme Name: Porter Industrial Supply
Theme URI: https://porter.eldon.food
Description: Custom child theme for Porter Industrial Supply - Warehouse & Loading Dock Products
Author: Eldon Food Admin
Author URI: https://eldon.food
Template: storefront
Version: 1.0.0
*/

/* ===== Porter Branding: Primary #780800, Secondary #000 ===== */

:root {
  --porter-red: #780800;
  --porter-dark: #1a1a1a;
  --porter-gray: #f5f5f5;
  --porter-text: #333333;
}

/* === TYPOGRAPHY === */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--porter-text);
}

/* === HEADER === */
.site-header {
  background-color: var(--porter-red) !important;
  border-bottom: none !important;
}

.site-header .site-title a,
.site-header .site-description {
  color: #ffffff !important;
}

.site-branding {
  padding: 15px 0;
}

.site-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
}

.site-description {
  font-size: 13px !important;
  opacity: 0.9;
}

/* === NAVIGATION === */
.main-navigation {
  background-color: var(--porter-dark) !important;
}

.main-navigation ul li a {
  color: #ffffff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 12px 15px !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: #ffcccc !important;
  background-color: rgba(255,255,255,0.1);
}

.main-navigation ul.menu li.menu-item-has-children > a::after {
  border-color: #ffffff;
}

.main-navigation ul ul {
  background-color: var(--porter-dark) !important;
  border-top: 3px solid var(--porter-red);
}

/* === HERO BANNER === */
.porter-hero {
  background-color: var(--porter-red);
  background-image: linear-gradient(135deg, #780800 0%, #5a0600 50%, #3d0400 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.porter-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.porter-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 25px;
}

.porter-hero .btn-shop {
  display: inline-block;
  background-color: #ffffff;
  color: var(--porter-red);
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.porter-hero .btn-shop:hover {
  background-color: var(--porter-dark);
  color: #ffffff;
}

/* === TOP CATEGORIES GRID === */
.porter-categories {
  padding: 40px 0;
}

.porter-categories h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--porter-dark);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--porter-text);
}

.category-card:hover {
  border-color: var(--porter-red);
  box-shadow: 0 4px 15px rgba(120,8,0,0.15);
  transform: translateY(-3px);
}

.category-card .cat-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--porter-dark);
}

.category-card .cat-count {
  font-size: 13px;
  color: #777;
}

/* === PRODUCT GRID === */
ul.products li.product {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 15px;
  transition: all 0.3s;
}

ul.products li.product:hover {
  border-color: var(--porter-red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

ul.products li.product .price {
  color: var(--porter-red) !important;
  font-weight: 700;
}

ul.products li.product .price del {
  color: #999;
  font-weight: 400;
}

ul.products li.product .price ins {
  color: var(--porter-red);
  font-weight: 700;
  text-decoration: none;
}

.onsale {
  background-color: var(--porter-red) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

/* === BUTTONS === */
.button,
button,
input[type="submit"],
.added_to_cart,
.wc-block-components-button {
  background-color: var(--porter-red) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.added_to_cart:hover {
  background-color: #5a0600 !important;
}

a.button.alt,
button.button.alt,
.wc-block-components-button--filled {
  background-color: var(--porter-red) !important;
}

a.button.alt:hover,
button.button.alt:hover {
  background-color: #5a0600 !important;
}

/* === CONTACT INFO BAR === */
.porter-topbar {
  background-color: var(--porter-dark);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  text-align: center;
}

.porter-topbar a {
  color: #ffffff;
  text-decoration: none;
}

.porter-topbar .phone {
  font-weight: 700;
  margin-right: 20px;
}

/* === FOOTER === */
.site-footer {
  background-color: var(--porter-dark) !important;
  color: #cccccc !important;
}

.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6 {
  color: #ffffff !important;
}

.site-footer a {
  color: #ffffff !important;
}

.site-footer a:hover {
  color: #ffcccc !important;
}

.site-info {
  background-color: #111111 !important;
  color: #999999 !important;
}

/* === FEATURED SECTION === */
.porter-featured {
  background-color: var(--porter-gray);
  padding: 40px 0;
}

.porter-featured h2 {
  text-align: center;
  color: var(--porter-dark);
  font-size: 28px;
  margin-bottom: 30px;
}

/* === INFO STRIP === */
.porter-info-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px 20px;
  background: #ffffff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.info-item {
  text-align: center;
  max-width: 200px;
}

.info-item .info-icon {
  font-size: 32px;
  color: var(--porter-red);
  margin-bottom: 8px;
}

.info-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 5px;
}

.info-item p {
  font-size: 12px;
  color: #777;
  margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .porter-hero h1 { font-size: 28px; }
  .porter-hero p { font-size: 15px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .porter-info-strip { gap: 20px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
}

/* === WOOCOMMERCE SPECIFICS === */
.woocommerce-breadcrumb {
  color: #777 !important;
}

.woocommerce-breadcrumb a {
  color: var(--porter-red) !important;
}

.star-rating span::before {
  color: var(--porter-red) !important;
}

.widget_price_filter .ui-slider .ui-slider-handle {
  background-color: var(--porter-red) !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
  background-color: var(--porter-red) !important;
}

/* === SINGLE PRODUCT === */
.single-product .summary .price {
  color: var(--porter-red) !important;
  font-size: 24px !important;
}

.single-product .summary .single_add_to_cart_button {
  font-size: 16px !important;
  padding: 12px 30px !important;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--porter-red) !important;
}
