/*
|--------------------------------------------------------------------------
| Zielone Drzewko - Panel klienta PRO 2026
| Osobny arkusz dla: /konto, /konto/dane, /konto/adresy, /konto/zamowienie,
| /konto/lista-zyczen oraz publicznej listy życzeń.
|--------------------------------------------------------------------------
*/

:root {
  --customer-bg: #f4f7ef;
  --customer-card: #ffffff;
  --customer-soft: #eef3e8;
  --customer-soft-2: #f7f9f3;
  --customer-text: #112019;
  --customer-muted: #63705f;
  --customer-border: #dce5d3;
  --customer-accent: #748b13;
  --customer-accent-dark: #0d4b39;
  --customer-success: #1d7f4e;
  --customer-danger: #b83b2f;
  --customer-warning: #b78313;
  --customer-shadow-sm: 0 12px 28px rgba(16, 38, 28, .06);
  --customer-shadow: 0 24px 70px rgba(16, 38, 28, .09);
  --customer-radius-lg: 34px;
  --customer-radius-md: 24px;
  --customer-radius-sm: 16px;
}

.customer-layout {
  width: min(1320px, calc(100% - 32px));
  margin: clamp(30px, 4vw, 64px) auto clamp(70px, 8vw, 120px);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}

.customer-sidebar,
.customer-card,
.customer-panel-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--customer-border);
  border-radius: var(--customer-radius-lg);
  box-shadow: var(--customer-shadow-sm);
}

.customer-sidebar {
  padding: 24px;
  position: sticky;
  top: 22px;
  z-index: 5;
}

.customer-sidebar-head {
  margin-bottom: 22px;
}

.customer-sidebar-kicker {
  display: block;
  color: var(--customer-muted);
  font-size: 14px;
  line-height: 1.2;
}

.customer-sidebar-title {
  display: block;
  margin-top: 3px;
  color: var(--customer-text);
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 900;
  word-break: break-word;
}

.customer-sidebar-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.45;
}

.customer-nav {
  display: grid;
  gap: 10px;
}

.customer-nav a,
.customer-nav-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--customer-soft);
  color: var(--customer-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.customer-nav a:hover,
.customer-nav-link:hover {
  transform: translateX(3px);
  background: #e6eddd;
}

.customer-nav a.is-active,
.customer-nav-link.is-active {
  background: var(--customer-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(116, 139, 19, .22);
}

.customer-nav-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  font-size: 15px;
}

.customer-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.customer-card {
  padding: clamp(24px, 3vw, 38px);
}

.customer-card.is-hero {
  padding: clamp(26px, 3.2vw, 42px);
  background:
    radial-gradient(circle at top right, rgba(116, 139, 19, .12), transparent 32%),
    rgba(255, 255, 255, .96);
}

.customer-card-kicker,
.customer-kicker,
.customer-card > span:first-child:not(.customer-badge):not(.customer-status),
.customer-stat-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--customer-accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.customer-card h1,
.customer-main h1 {
  margin: 0;
  color: var(--customer-text);
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 900;
}

.customer-card h2,
.customer-main h2 {
  margin: 0;
  color: var(--customer-text);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 900;
}

.customer-card h3,
.customer-main h3 {
  margin: 0;
  color: var(--customer-text);
  font-size: clamp(19px, 1.5vw, 25px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 900;
}

.customer-card p,
.customer-lead {
  color: var(--customer-muted);
  line-height: 1.7;
}

.customer-lead,
.customer-card.is-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: 16px;
}

.customer-grid,
.customer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.customer-stat-card,
.customer-grid > .customer-card {
  min-height: 156px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--customer-border);
  box-shadow: var(--customer-shadow-sm);
}

.customer-stat-value,
.customer-grid > .customer-card h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--customer-accent-dark);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 900;
}

.customer-section-head,
.customer-actions-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.customer-actions,
.customer-form-actions,
.customer-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-btn,
.customer-button,
.customer-card .btn.primary,
.customer-card .btn.ghost,
.customer-card .btn.small,
.customer-link-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--customer-accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 14px 26px rgba(116, 139, 19, .18);
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.customer-btn:hover,
.customer-button:hover,
.customer-card .btn.primary:hover,
.customer-link-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.customer-btn.is-secondary,
.customer-btn.secondary,
.customer-card .btn.ghost,
.customer-card .btn.secondary {
  background: #fff;
  color: var(--customer-text);
  border: 1px solid var(--customer-border);
  box-shadow: none;
}

.customer-btn.is-danger,
.customer-btn.danger {
  background: var(--customer-danger);
  color: #fff;
}

.customer-empty,
.customer-alert {
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--customer-soft);
  border: 1px solid #e1e8d9;
  color: var(--customer-muted);
  font-weight: 700;
}

.customer-empty h3,
.customer-empty strong {
  display: block;
  margin: 0 0 7px;
  color: var(--customer-text);
  font-size: 22px;
  letter-spacing: -.03em;
}

.customer-alert.is-success {
  background: rgba(29, 127, 78, .10);
  border-color: rgba(29, 127, 78, .22);
  color: var(--customer-success);
}

.customer-alert.is-danger {
  background: rgba(184, 59, 47, .10);
  border-color: rgba(184, 59, 47, .22);
  color: var(--customer-danger);
}

/* Formularze */
.customer-form {
  display: grid;
  gap: 22px;
}

.customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.customer-form-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-form-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.customer-field.is-full {
  grid-column: 1 / -1;
}

.customer-field label,
.customer-field > span {
  color: var(--customer-text);
  font-size: 13px;
  font-weight: 900;
}

.customer-field input,
.customer-field select,
.customer-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border-radius: 16px;
  border: 1px solid var(--customer-border);
  background: #fff;
  color: var(--customer-text);
  font: inherit;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.customer-field textarea {
  min-height: 130px;
  padding: 14px 15px;
  resize: vertical;
}

.customer-field input:focus,
.customer-field select:focus,
.customer-field textarea:focus {
  border-color: var(--customer-accent);
  box-shadow: 0 0 0 4px rgba(116, 139, 19, .12);
}

.customer-checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.customer-check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 15px;
  background: var(--customer-soft-2);
  border: 1px solid var(--customer-border);
  color: var(--customer-text);
  font-weight: 800;
}

.customer-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--customer-accent);
}

/* Zamówienia */
.customer-orders-list,
.customer-list {
  display: grid;
  gap: 12px;
}

.customer-order-row,
.customer-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(100px, .7fr) minmax(100px, .7fr) minmax(90px, .7fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--customer-soft-2);
  border: 1px solid var(--customer-border);
  color: inherit;
  text-decoration: none;
}

.customer-order-row:hover,
.customer-list-row:hover {
  background: #f1f5e9;
}

.customer-order-row strong,
.customer-list-row strong {
  color: var(--customer-text);
  font-size: 15px;
}

.customer-order-row span,
.customer-order-row small,
.customer-list-row span,
.customer-list-row small {
  display: block;
  margin-top: 4px;
  color: var(--customer-muted);
  font-size: 12px;
  line-height: 1.35;
}

.customer-meta-label {
  margin: 0 0 4px;
  color: var(--customer-muted);
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-status,
.customer-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(116, 139, 19, .12);
  color: var(--customer-accent);
  font-size: 12px;
  font-weight: 900;
}

.customer-status.is-paid,
.customer-badge.is-success {
  background: rgba(29, 127, 78, .11);
  color: var(--customer-success);
}

.customer-status.is-warning {
  background: rgba(183, 131, 19, .12);
  color: var(--customer-warning);
}

.customer-summary {
  display: grid;
  gap: 10px;
}

.customer-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-radius: 16px;
  background: var(--customer-soft-2);
  border: 1px solid var(--customer-border);
}

.customer-summary-line strong {
  color: var(--customer-text);
}

.customer-summary-total {
  background: var(--customer-accent-dark);
  color: #fff;
}

.customer-summary-total strong,
.customer-summary-total span {
  color: #fff;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.customer-info-box {
  padding: 20px;
  border-radius: 20px;
  background: var(--customer-soft-2);
  border: 1px solid var(--customer-border);
}

.customer-info-box h3 {
  margin: 0 0 10px;
}

.customer-info-box p {
  margin: 0;
}

/* Wishlist / produkty */
.customer-product-grid,
.wishlist-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customer-product-card,
.wishlist-public-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: var(--customer-soft-2);
  border: 1px solid var(--customer-border);
}

.customer-product-thumb,
.wishlist-public-thumb {
  width: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #e9efe0;
}

.customer-product-thumb img,
.wishlist-public-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.customer-product-body,
.wishlist-public-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
}

.customer-product-category,
.wishlist-public-category {
  color: var(--customer-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.customer-product-title,
.wishlist-public-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.customer-product-title a,
.wishlist-public-title a {
  color: inherit;
  text-decoration: none;
}

.customer-product-desc,
.wishlist-public-desc {
  margin: 0;
  color: var(--customer-muted);
  font-size: 14px;
  line-height: 1.55;
}

.customer-product-bottom,
.wishlist-public-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.customer-price,
.wishlist-public-price {
  color: var(--customer-accent-dark);
  font-size: 21px;
  font-weight: 900;
}

/* Publiczna lista życzeń */
.wishlist-page {
  width: min(1240px, calc(100% - 32px));
  margin: clamp(34px, 5vw, 72px) auto clamp(70px, 8vw, 110px);
}

.wishlist-page .catalog-head,
.wishlist-public-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--customer-radius-lg);
  background: rgba(255,255,255,.94);
  border: 1px solid var(--customer-border);
  box-shadow: var(--customer-shadow-sm);
}

.wishlist-page .catalog-head h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .96;
  letter-spacing: -.06em;
}

.wishlist-page .catalog-head p {
  margin: 10px 0 0;
  color: var(--customer-muted);
}

/* Kompatybilność ze starymi klasami customer-dashboard */
.customer-dashboard-page {
  width: min(1320px, calc(100% - 32px));
  margin: clamp(30px, 4vw, 64px) auto clamp(70px, 8vw, 120px);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}

.customer-dashboard-sidebar {
  padding: 24px;
  position: sticky;
  top: 22px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--customer-border);
  border-radius: var(--customer-radius-lg);
  box-shadow: var(--customer-shadow-sm);
}

.customer-dashboard-content {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.customer-hello span {
  display: block;
  color: var(--customer-muted);
  font-size: 14px;
}

.customer-hello strong {
  display: block;
  margin: 3px 0 22px;
  color: var(--customer-text);
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 900;
}

.customer-hero-card {
  background: rgba(255, 255, 255, .96);
}

/* Mobile */
@media (max-width: 1180px) {
  .customer-layout,
  .customer-dashboard-page {
    grid-template-columns: 1fr;
  }

  .customer-sidebar,
  .customer-dashboard-sidebar {
    position: static;
  }

  .customer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-grid,
  .customer-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-product-grid,
  .wishlist-public-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .customer-layout,
  .customer-dashboard-page,
  .wishlist-page {
    width: min(100% - 24px, 1320px);
    margin-top: 24px;
  }

  .customer-card,
  .customer-sidebar,
  .customer-dashboard-sidebar {
    border-radius: 24px;
    padding: 20px;
  }

  .customer-form-grid,
  .customer-form-grid.cols-3,
  .customer-form-grid.cols-4,
  .customer-info-grid,
  .customer-grid,
  .customer-stats-grid,
  .customer-nav {
    grid-template-columns: 1fr;
  }

  .customer-section-head,
  .customer-actions-bar,
  .wishlist-page .catalog-head {
    flex-direction: column;
  }

  .customer-order-row,
  .customer-list-row {
    grid-template-columns: 1fr;
  }

  .customer-product-card,
  .wishlist-public-card {
    grid-template-columns: 1fr;
  }

  .customer-product-thumb,
  .wishlist-public-thumb {
    width: 100%;
    aspect-ratio: 1 / .72;
  }

  .customer-card h1,
  .customer-main h1,
  .wishlist-page .catalog-head h1 {
    font-size: 36px;
  }
}

@media (max-width: 460px) {
  .customer-btn,
  .customer-button,
  .customer-link-btn,
  .customer-card .btn.primary,
  .customer-card .btn.ghost,
  .customer-card .btn.small {
    width: 100%;
  }
}
