/* =========================================================
   AndLem Clean — Base CSS
   Globalny fundament motywu
========================================================= */

:root {
  --al-color-bg: #ffffff;
  --al-color-text: #171717;
  --al-color-heading: #111827;
  --al-color-muted: #6b7280;
  --al-color-soft: #f7f7f8;
  --al-color-soft-2: #f3f4f6;
  --al-color-border: #e5e7eb;
  --al-color-border-strong: #d1d5db;

  --al-color-primary: #111827;
  --al-color-accent: #e73511;
  --al-color-accent-hover: #c9280a;
  --al-color-blue: #20aeea;

  --al-container: 1240px;
  --al-container-wide: 1440px;

  --al-radius-sm: 8px;
  --al-radius-md: 14px;
  --al-radius-lg: 22px;
  --al-radius-pill: 999px;

  --al-shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.06);
  --al-shadow-md: 0 18px 44px rgba(17, 24, 39, 0.10);
  --al-shadow-lg: 0 24px 70px rgba(17, 24, 39, 0.14);

  --al-font-main: Arial, Helvetica, sans-serif;

  --al-section-sm: 36px;
  --al-section-md: 56px;
  --al-section-lg: 82px;
}


/* =========================================================
   Reset / normalizacja
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--al-color-bg);
  color: var(--al-color-text);
  font-family: var(--al-font-main);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  font-family: var(--al-font-main);
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

figure {
  margin: 0;
}

iframe {
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}


/* =========================================================
   Dostępność
========================================================= */

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.screen-reader-text:focus,
.sr-only:focus {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 999999 !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  clip: auto !important;
  background: #fff !important;
  color: #111 !important;
  border: 1px solid var(--al-color-border) !important;
  border-radius: var(--al-radius-sm) !important;
  box-shadow: var(--al-shadow-sm) !important;
}

:focus-visible {
  outline: 2px solid var(--al-color-blue);
  outline-offset: 3px;
}


/* =========================================================
   Kontenery / layout
========================================================= */

.al-container {
  width: min(var(--al-container), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.al-container-wide {
  width: min(var(--al-container-wide), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.al-main {
  min-height: 60vh;
  background: var(--al-color-bg);
}

.al-section {
  padding-top: var(--al-section-md);
  padding-bottom: var(--al-section-md);
}

.al-section--small {
  padding-top: var(--al-section-sm);
  padding-bottom: var(--al-section-sm);
}

.al-section--large {
  padding-top: var(--al-section-lg);
  padding-bottom: var(--al-section-lg);
}


/* =========================================================
   Typografia
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--al-color-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(32px, 4vw, 56px);
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
}

h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

h4 {
  font-size: 21px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong,
b {
  font-weight: 800;
}

small {
  font-size: 0.875em;
}

.al-muted {
  color: var(--al-color-muted);
}

.al-text-center {
  text-align: center;
}


/* =========================================================
   Przyciski
========================================================= */

.al-btn,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--al-radius-pill);
  background: var(--al-color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.al-btn:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--al-color-accent);
  color: #fff;
  text-decoration: none;
}

.al-btn:active,
.button:active,
button.button:active,
input[type="submit"]:active {
  transform: translateY(1px);
}

.al-btn--accent {
  background: var(--al-color-accent);
  color: #fff;
}

.al-btn--accent:hover {
  background: var(--al-color-accent-hover);
}

.al-btn--outline {
  background: #fff;
  color: var(--al-color-heading);
  border-color: var(--al-color-border);
}

.al-btn--outline:hover {
  background: var(--al-color-heading);
  color: #fff;
  border-color: var(--al-color-heading);
}


/* =========================================================
   Formularze
========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--al-color-border);
  border-radius: var(--al-radius-md);
  background: #fff;
  color: var(--al-color-text);
  font-size: 15px;
  line-height: 1.3;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

select {
  cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--al-color-blue);
  box-shadow: 0 0 0 3px rgba(32, 174, 234, 0.15);
}

label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--al-color-heading);
  font-size: 14px;
  font-weight: 700;
}


/* =========================================================
   Karty / boxy bazowe
========================================================= */

.al-card {
  background: #fff;
  border: 1px solid var(--al-color-border);
  border-radius: var(--al-radius-lg);
  box-shadow: var(--al-shadow-sm);
}

.al-soft-box {
  background: var(--al-color-soft);
  border-radius: var(--al-radius-lg);
}

.al-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: var(--al-radius-pill);
  background: var(--al-color-soft-2);
  color: var(--al-color-heading);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.al-badge--promo {
  background: var(--al-color-accent);
  color: #fff;
}


/* =========================================================
   WordPress content defaults
========================================================= */

.alignleft {
  float: left;
  margin-right: 24px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 24px;
  margin-bottom: 16px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  margin-top: 8px;
  color: var(--al-color-muted);
  font-size: 14px;
  text-align: center;
}


/* =========================================================
   WooCommerce — globalna baza, bez projektowania kart
========================================================= */

.woocommerce {
  color: var(--al-color-text);
}

.woocommerce .woocommerce-breadcrumb {
  margin: 18px 0 24px;
  color: var(--al-color-muted);
  font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--al-color-muted);
  text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--al-color-accent);
}

.woocommerce-notices-wrapper {
  width: min(var(--al-container), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--al-radius-md);
  border-top: 0;
  background: #fff;
  box-shadow: var(--al-shadow-sm);
}

.woocommerce-message {
  border-left: 4px solid #16a34a;
}

.woocommerce-info {
  border-left: 4px solid var(--al-color-blue);
}

.woocommerce-error {
  border-left: 4px solid var(--al-color-accent);
}

.woocommerce .price {
  color: var(--al-color-heading);
  font-weight: 800;
}

.woocommerce del {
  color: var(--al-color-muted);
  opacity: 0.75;
}

.woocommerce ins {
  text-decoration: none;
}

.woocommerce span.onsale {
  min-width: auto;
  min-height: auto;
  padding: 7px 12px;
  border-radius: var(--al-radius-pill);
  background: var(--al-color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}


/* =========================================================
   Tabele WooCommerce
========================================================= */

.woocommerce table.shop_table {
  border: 1px solid var(--al-color-border);
  border-radius: var(--al-radius-lg);
  overflow: hidden;
  background: #fff;
}

.woocommerce table.shop_table th {
  color: var(--al-color-heading);
  font-weight: 800;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  padding: 14px 16px;
  border-color: var(--al-color-border);
}


/* =========================================================
   Utility
========================================================= */

.al-hide {
  display: none !important;
}

.al-no-scroll {
  overflow: hidden !important;
}

.al-full-width {
  width: 100%;
}

.al-mt-0 {
  margin-top: 0 !important;
}

.al-mb-0 {
  margin-bottom: 0 !important;
}

.al-mb-sm {
  margin-bottom: 16px !important;
}

.al-mb-md {
  margin-bottom: 32px !important;
}

.al-mb-lg {
  margin-bottom: 56px !important;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 980px) {
  :root {
    --al-section-sm: 28px;
    --al-section-md: 42px;
    --al-section-lg: 58px;
  }

  body {
    font-size: 15px;
  }

  .al-container,
  .al-container-wide {
    width: min(100% - 28px, var(--al-container));
  }

  h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  h2 {
    font-size: clamp(25px, 6vw, 34px);
  }

  h3 {
    font-size: clamp(21px, 5vw, 28px);
  }
}

@media (max-width: 560px) {
  .al-container,
  .al-container-wide,
  .woocommerce-notices-wrapper {
    width: calc(100% - 24px);
  }

  .al-btn,
  .button,
  button.button,
  input[type="submit"],
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce #respond input#submit {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px;
  }
}