/*
 Theme Name: DC Hydraulics Child Theme
 Theme URI: https://dc.sitarski.me
 Description: Custom child theme for Divi 5 styling and product templates
 Author: Rich Sitarski
 Author URI: https://dc.sitarski.me
 Template: Divi
 Version: 1.0.0
*/

/* Basic typography */
body,
.et_pb_module,
.et_pb_text,
.product-title,
.product-card {
  font-family: var(--font-family);
  color: #222;
}
h1, h2, h3, .title {
  color: var(--heading);
  font-weight: 700;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Container grid (Flexbox-based) for archive grid */
.archive-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}
.product-card {
  width: 25%;
  padding: 10px;
  box-sizing: border-box;
}
@media(max-width: 1200px) {
  .product-card { width: 33.33%; }
}
@media(max-width: 900px) {
  .product-card { width: 50%; }
}
@media(max-width: 600px) {
  .product-card { width: 100%; }
}

/* Product card styling */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .thumb {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8f9fb;
  border-radius: 8px;
}
.product-card .title {
  font-size: 1em;
  margin-top: 8px;
  font-weight: 700;
  color: var(--heading);
}
.product-card .code {
  font-size: 0.85em;
  color: #374151;
  margin-top: 4px;
}
.product-card .short {
  font-size: 0.95em;
  color: #374151;
  margin: 6px 0;
  min-height: 38px;
}
.product-card .actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
}
.btn {
  background-color: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn.secondary {
  background-color: var(--secondary);
}

/* Tabs layout in product detail pages */
.product-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-top: 20px;
}
.product-tabs button {
  background: transparent;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  color: #374151;
}
.product-tabs button.active {
  color: var(--heading);
  border-bottom: 3px solid var(--heading);
}
.product-tab-panel {
  padding: 14px 0;
  color: #374151;
}

