/*
Theme Name: StronoMat sklep
Theme URI: https://stronomat.net
Author: StronoMat
Description: Motyw WordPress/WooCommerce sklepu stronomat.net — automat z gotowymi szablonami stron dla różnych branż.
Version: 1.0
Text Domain: stronomat-sklep
*/

:root {
  --sm-red: #B5533C;
  --sm-yellow: #D9B36C;
  --sm-ink: #2C2520;
  --sm-cream: #F2E9DD;
  --sm-paper: #FFFFFF;
  --sm-text: #3A332C;
  --sm-text-muted: #7A7268;
  --sm-radius: 14px;
  --sm-max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--sm-text);
  background-color: var(--sm-cream);
  background-image: radial-gradient(rgba(44,37,32,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.sm-wrap { max-width: var(--sm-max); margin: 0 auto; padding: 0 24px; }
.sm-section { padding-top: 56px; padding-bottom: 56px; }

/* header */
.sm-header { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.sm-logo { display: flex; align-items: center; gap: 2px; text-decoration: none; }
.sm-logo span.sm-word { font-size: 27px; font-weight: 600; color: var(--sm-ink); }
.sm-logo span.sm-word b { color: var(--sm-red); font-weight: 600; }
.sm-logo span.sm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sm-yellow); margin-left: 8px; }
.sm-nav a { margin-left: 26px; font-size: 15px; text-decoration: none; color: var(--sm-text); }
.sm-nav a:hover { color: var(--sm-red); }

/* hero */
.sm-hero {
  background-color: var(--sm-ink);
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: var(--sm-radius);
  margin: 12px 0 0;
  padding: 56px 48px;
  color: #fff;
  width: 100%;
}
.sm-hero-inner { max-width: 620px; }
.sm-hero-eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sm-yellow); margin: 0 0 16px; }
.sm-hero h1 { font-size: 38px; font-weight: 500; margin: 0 0 16px; line-height: 1.2; }
.sm-hero-lead { font-size: 16px; color: rgba(255,255,255,0.75); margin: 0; max-width: 480px; }
.sm-hero-hint { font-size: 12px; color: rgba(255,255,255,0.4); margin: 20px 0 0; }
.sm-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; width: 100%; margin-top: 32px; }
.sm-section-title { font-size: 24px; font-weight: 500; color: var(--sm-ink); margin: 0 0 24px; }

/* hero */
.sm-hero-link { font-size: 14px; color: rgba(255,255,255,0.8); text-decoration: none; }
.sm-hero-link:hover { color: #fff; }
.sm-btn { display: inline-block; background: var(--sm-red); color: #fff; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; }
.sm-btn:hover { opacity: 0.9; }

/* industry grid */
.sm-industry-card { background: var(--sm-paper); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--sm-radius); overflow: hidden; text-decoration: none; color: var(--sm-text); }
.sm-industry-card .sm-tag { background: var(--sm-yellow); padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--sm-ink); text-transform: uppercase; letter-spacing: 0.03em; }
.sm-industry-card .sm-body { padding: 18px 16px; }
.sm-industry-card p { font-size: 13px; color: var(--sm-text-muted); margin: 0 0 8px; }
.sm-industry-card .sm-more { font-size: 13px; color: var(--sm-red); font-weight: 500; }

/* how it works */
.sm-steps { display: flex; align-items: stretch; gap: 4px; }
.sm-step { flex: 1; background: var(--sm-paper); border-radius: var(--sm-radius); padding: 20px 16px; border: 1px solid rgba(0,0,0,0.06); }
.sm-step-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sm-step-icon { font-size: 18px; }
.sm-step .sm-num { font-size: 13px; color: var(--sm-red); font-weight: 600; margin: 0; }
.sm-step h3 { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.sm-step p { font-size: 13px; color: var(--sm-text-muted); margin: 0; }
.sm-step-arrow { display: flex; align-items: center; justify-content: center; color: var(--sm-red); font-size: 18px; flex-shrink: 0; width: 24px; }

/* industry grid */
.sm-industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sm-industry-card .sm-tag { padding: 11px 14px; font-size: 12px; }
.sm-industry-card .sm-body { padding: 14px; }
.sm-industry-card p { font-size: 12px; margin: 0 0 6px; }
.sm-industry-card .sm-more { font-size: 12px; }

.sm-text-block { padding-top: 40px; padding-bottom: 40px; }
.sm-text-block p { font-size: 15px; color: var(--sm-text-muted); max-width: 640px; line-height: 1.7; }

.sm-contact-box { background: var(--sm-paper); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--sm-radius); padding: 32px; }
.sm-contact-box > p { font-size: 15px; color: var(--sm-text-muted); margin: 0 0 20px; max-width: 480px; }
.sm-contact-rows { display: flex; gap: 32px; flex-wrap: wrap; }
.sm-contact-row { font-size: 15px; color: var(--sm-text); text-decoration: none; }
.sm-contact-row:hover { color: var(--sm-red); }

/* footer */
.sm-footer-wrap { margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.08); }
.sm-footer-shop { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.sm-footer-shop .sm-logo { margin-bottom: 12px; }
.sm-footer-tagline { font-size: 13px; color: var(--sm-text-muted); margin: 0; max-width: 220px; }
.sm-footer-heading { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sm-ink); margin: 0 0 12px; }
.sm-footer-shop a { display: block; font-size: 14px; color: var(--sm-text-muted); text-decoration: none; margin-bottom: 8px; }
.sm-footer-shop a:hover { color: var(--sm-red); }
.sm-footer { padding-top: 20px; padding-bottom: 32px; text-align: center; font-size: 13px; color: var(--sm-text-muted); border-top: 1px solid rgba(0,0,0,0.06); margin-top: 8px; }

/* ===== WooCommerce ===== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}
.woocommerce ul.products li.product {
  background: var(--sm-paper);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--sm-radius);
  padding: 16px;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product img {
  border-radius: 8px; margin-bottom: 12px;
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  border-radius: 12px; width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.woocommerce ul.products li.product .price { color: var(--sm-red); font-weight: 500; }
.woocommerce span.onsale { background: var(--sm-yellow); color: var(--sm-ink); border-radius: 999px; }

.sm-color-swatches { display: flex; gap: 10px; margin: 4px 0 20px; }
.sm-swatch-btn { width: 32px; height: 32px; border-radius: 50%; padding: 0; cursor: pointer; border: 2px solid transparent; }
.sm-swatch-btn.active { border-color: var(--sm-ink); }

.woocommerce div.product form.cart { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.woocommerce div.product form.cart div.quantity { display: none; }
.woocommerce div.product .single_add_to_cart_button { background: var(--sm-red); border-radius: 999px; padding: 12px 26px; }
.sm-preview-btn { display: inline-block; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--sm-red); color: var(--sm-red); text-decoration: none; font-size: 14px; }
.sm-preview-btn:hover { background: var(--sm-red); color: #fff; }
.woocommerce div.product p.price { color: var(--sm-red); font-size: 22px; }
.sm-delivery-note { font-size: 13px; color: var(--sm-text-muted); margin-top: 4px; width: 100%; }

@media (max-width: 960px) {
  .sm-industries { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .sm-steps { flex-wrap: wrap; }
  .sm-step { flex: 1 1 calc(50% - 20px); }
  .sm-step-arrow { display: none; }
  .sm-footer-shop { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .sm-nav { display: none; }
  .sm-hero { padding: 44px 24px; margin: 12px 0 0; }
  .sm-hero-actions { justify-content: flex-start; flex-wrap: wrap; }
  .sm-hero-actions { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .sm-industries { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .sm-step { flex: 1 1 100%; }
  .sm-hero h1 { font-size: 28px; }
  .woocommerce div.product form.cart { flex-direction: column; align-items: flex-start; }
  .sm-footer-shop { grid-template-columns: 1fr; text-align: left; gap: 24px; }
}
