/*
Theme Name: PMH Theme
Author: PrintMyHustle
Version: 0.2.2
Description: Minimal custom theme for PrintMyHustle.online – clean, accessible base.
*/

/* -------------------------------
   1. CSS Reset (modern + minimal)
--------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #222;
  background-color: #fff;
  text-rendering: optimizeLegibility;
}

/* -------------------------------
   2. Typography & Elements
--------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin: 1.5rem 0 1rem;
  color: #111;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  max-width: 70ch;
}

a {
  color: #0073aa;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

code, pre {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: #f8f8f8;
  border-radius: 4px;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

/* -------------------------------
   3. Layout Helpers
--------------------------------*/
main {
  padding: 1rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* -------------------------------
   4. Buttons & Inputs
--------------------------------*/
button,
input[type="submit"],
.wp-block-button__link {
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: #005f8a;
}

/* -------------------------------
   5. Header & Footer (matches PHP)
--------------------------------*/
header {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

footer {
  background-color: #f5f5f5;
  color: #333;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
}

/* -------------------------------
   6. Responsive
--------------------------------*/
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  main { padding: 0.75rem; }
}

/* -------------------------------
   7. PMH UI components
--------------------------------*/
.pmh-site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.pmh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.pmh-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pmh-site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.pmh-site-tagline {
  font-size: 0.9rem;
  color: #666;
}

.pmh-site-nav .pmh-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.pmh-site-nav .pmh-nav a {
  font-size: 0.95rem;
  color: #222;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
}

.pmh-site-nav .pmh-nav a:hover,
.pmh-site-nav .pmh-nav a:focus {
  background: #f4f4f4;
  text-decoration: none;
}

/* Main spacing */
.pmh-main {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

/* Product Search / Cart / Price Grid */
.pmh-inline-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pmh-field {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pmh-label,
.pmh-price-grid__filter-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
}

.pmh-price-grid__filters {
  margin: 0.75rem 0 0.25rem;
}

.pmh-price-grid__filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.pmh-price-grid__filter select,
.pmh-nav-selectors select,
.pmh-product-search select,
.pmh-cart__table input[type="number"] {
  font-size: 0.95rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  background: #fff;
}

.pmh-price-grid__meta {
  margin: 0.75rem 0;
  font-size: 0.95rem;
  color: #444;
}

.pmh-cart__notice,
.pmh-cart-notice {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f7f7f7;
  border: 1px solid #e6e6e6;
}

.pmh-cart__table,
.pmh-price-grid__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
}

.pmh-cart__table th,
.pmh-cart__table td,
.pmh-price-grid__table th,
.pmh-price-grid__table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  vertical-align: middle;
}

.pmh-cart__table th,
.pmh-price-grid__table th {
  text-align: left;
  font-weight: 800;
  color: #111;
}

.pmh-cart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.pmh-cart__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pmh-btn,
.pmh-cart__button,
.pmh-add-to-cart-form button,
.pmh-cart__remove {
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #111;
}

.pmh-cart__button--checkout {
  background: #111;
  color: #fff;
  border-color: #111;
}

.pmh-cart__button--checkout:hover,
.pmh-cart__button--checkout:focus {
  background: #000;
}

.pmh-add-to-cart-form {
  display: inline-block;
  margin: 0.1rem 0.15rem;
}

.pmh-site-footer {
  border-top: 1px solid #eee;
  background: #fff;
  margin-top: 3rem;
}

.pmh-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  color: #444;
}

.pmh-footer-tagline {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 700px) {
  .pmh-header-inner { flex-direction: column; align-items: flex-start; }
  .pmh-site-nav .pmh-nav { gap: 0.5rem; }
}

/* -------------------------------
