/*
Theme Name: Park Step
Theme URI: https://github.com/ishubhoshaha/parkstep
Author: Park Step
Description: Catalog theme for Park Step. WhatsApp ordering, English and Bangla, no online checkout.
Version: 0.1.2
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: parkstep
*/

:root {
  --ps-ink: #141a1e;
  --ps-green: #1b6b32;
  --ps-green-dark: #145427;
  --ps-green-soft: #e7f4eb;
  --ps-paper: #f4f1eb;
  --ps-white: #ffffff;
  --ps-line: #e4dfd6;
  --ps-muted: #5e676c;
  --ps-danger: #8e2f2f;
  --ps-danger-soft: #fdecec;
  --ps-radius: 16px;
  --ps-header-h: 92px;
  --ps-font: "Outfit", "Noto Sans Bengali", sans-serif;
  --ps-font-bn: "Noto Sans Bengali", "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ps-paper);
  color: var(--ps-ink);
  font-family: var(--ps-font);
  font-size: 17px;
  line-height: 1.5;
}

html[lang="bn"] body {
  font-family: var(--ps-font-bn);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ps-green-dark);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ps-green-dark);
  outline-offset: 2px;
}

.ps-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ps-white);
  color: var(--ps-ink);
  padding: 8px 12px;
  z-index: 20;
}

.ps-skip:focus {
  top: 8px;
}

.ps-container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.ps-announce {
  background: var(--ps-ink);
  color: var(--ps-paper);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 16px;
}

.ps-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ps-white);
  border-bottom: 1px solid var(--ps-line);
}

.ps-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--ps-header-h);
  padding: 8px 0;
}

.ps-logo {
  display: flex;
  margin-right: auto;
}

.ps-logo img {
  height: 72px;
  width: auto;
}

.ps-menu-btn,
.ps-btn {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font: 600 16px/1 var(--ps-font);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

html[lang="bn"] .ps-menu-btn,
html[lang="bn"] .ps-btn {
  font-family: var(--ps-font-bn);
}

.ps-menu-btn {
  background: var(--ps-paper);
  color: var(--ps-ink);
  border-color: var(--ps-line);
}

.ps-btn-primary {
  background: var(--ps-green);
  color: var(--ps-white);
}

.ps-btn-primary:hover {
  background: var(--ps-green-dark);
  color: var(--ps-white);
}

.ps-btn-ghost {
  background: var(--ps-white);
  color: var(--ps-ink);
  border-color: var(--ps-ink);
}

.ps-glyph {
  width: 18px;
  height: 18px;
}

.ps-nav {
  display: none;
}

.ps-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ps-white);
  border-bottom: 1px solid var(--ps-line);
  padding: 8px 16px 16px;
  gap: 4px;
}

.ps-nav a {
  color: var(--ps-ink);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.ps-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-lang {
  display: flex;
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  overflow: hidden;
}

.ps-lang a {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ps-ink);
  font-size: 13px;
  font-weight: 700;
}

.ps-lang a[aria-current="true"] {
  background: var(--ps-ink);
  color: var(--ps-white);
}

.ps-hero {
  margin: 0;
  background: var(--ps-white);
}

.ps-hero img {
  width: 100%;
  height: auto;
}

.ps-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ps-tagline {
  color: var(--ps-muted);
  margin: 14px 0 0;
}

.ps-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 28px;
}

.ps-trust-item {
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  padding: 14px 16px;
}

.ps-trust-item h2,
.ps-section-title {
  font-size: 16px;
  margin: 0 0 4px;
}

.ps-trust-item p,
.ps-prose {
  margin: 0;
}

.ps-section {
  margin-block: 48px;
}

.ps-section-title {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.ps-cats {
  display: grid;
  gap: 12px;
}

.ps-cat {
  min-height: 148px;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  gap: 6px;
}

.ps-cat span {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ps-cat small {
  font-size: 15px;
}

.ps-cat-gents {
  background: var(--ps-ink);
  color: var(--ps-white);
}

.ps-cat-ladies {
  background: var(--ps-green);
  color: var(--ps-white);
}

.ps-cat-kids {
  background: var(--ps-white);
  color: var(--ps-ink);
  border: 1px solid var(--ps-line);
}

.ps-about-teaser .ps-btn {
  margin-top: 16px;
}

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

.ps-card {
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.ps-card-media {
  aspect-ratio: 1;
  background: var(--ps-paper);
}

.ps-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ps-card-body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.ps-card-audience {
  color: var(--ps-muted);
  font-size: 14px;
}

.ps-card-title {
  font-weight: 600;
}

.ps-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  width: max-content;
}

.ps-badge-in {
  background: var(--ps-green-soft);
  color: var(--ps-green-dark);
}

.ps-badge-out {
  background: var(--ps-danger-soft);
  color: var(--ps-danger);
}

.ps-price {
  font-weight: 700;
  font-size: 20px;
}

.ps-price-old {
  color: var(--ps-muted);
  text-decoration: line-through;
  font-weight: 500;
  font-size: 15px;
  margin-right: 6px;
}

.ps-price-now {
  color: var(--ps-green-dark);
}

.ps-price del {
  color: var(--ps-muted);
  font-weight: 500;
  font-size: 15px;
  margin-right: 6px;
}

.ps-price ins {
  text-decoration: none;
  color: var(--ps-green-dark);
}

.ps-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.ps-filters-label {
  font-weight: 600;
  margin-right: 4px;
}

.ps-filters a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  background: var(--ps-white);
  color: var(--ps-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.ps-filters a[aria-current="true"],
.ps-filters a[aria-pressed="true"] {
  background: var(--ps-ink);
  border-color: var(--ps-ink);
  color: var(--ps-white);
}

.woocommerce-pagination {
  margin-top: 24px;
}

.woocommerce-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.woocommerce-pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--ps-ink);
  border-radius: 999px;
  background: var(--ps-white);
  color: var(--ps-ink);
  text-decoration: none;
  font-weight: 600;
}

.woocommerce-pagination .page-numbers.current {
  background: var(--ps-ink);
  color: var(--ps-white);
}

.ps-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-size-pill {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ps-line);
  background: var(--ps-white);
  font: 600 15px/1 var(--ps-font);
  color: var(--ps-ink);
}

.ps-size-pill.is-selected {
  background: var(--ps-ink);
  color: var(--ps-white);
  border-color: var(--ps-ink);
}

.ps-size-pill:disabled {
  color: var(--ps-muted);
  text-decoration: line-through;
  background: var(--ps-paper);
}

.ps-hint {
  color: var(--ps-muted);
  font-weight: 400;
  font-size: 15px;
}

.ps-order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ps-order-row .ps-cta-row {
  margin-top: 0;
}

.ps-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  background: var(--ps-white);
}

.ps-qty button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.ps-gallery-main {
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
}

.ps-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ps-gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--ps-line);
  background: var(--ps-paper);
  overflow: hidden;
}

.ps-gallery-open {
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.ps-gallery-open img {
  width: 100%;
  height: auto;
}

.ps-gallery-dialog {
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  padding: 16px;
  max-width: min(900px, calc(100% - 32px));
}

.ps-gallery-dialog::backdrop {
  background: rgba(20, 26, 30, 0.7);
}

.ps-gallery-dialog img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.ps-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ps-muted);
}

.ps-breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ps-breadcrumb > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ps-contact-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ps-footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ps-product-summary .ps-cta-row {
  margin-top: 0;
}

.ps-qty [data-ps-qty-value] {
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
}

a.ps-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.ps-contact-grid {
  display: grid;
  gap: 12px;
}

.ps-notice {
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  padding: 16px;
}

.ps-footer {
  background: var(--ps-white);
  border-top: 1px solid var(--ps-line);
  margin-top: 24px;
}

.ps-footer-inner {
  display: grid;
  gap: 16px;
  padding: 28px 0 40px;
}

.ps-footer-inner p {
  margin: 4px 0;
  color: var(--ps-muted);
}

.ps-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-map {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--ps-radius);
}

@media (max-width: 719px) {
  .ps-icon-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ps-header-tools .ps-btn {
    width: 48px;
    padding: 0;
  }

  /* Five header items share 358px at 390px wide. Tighten spacing only. */
  .ps-header-inner {
    gap: 8px;
  }

  .ps-logo img {
    height: 64px;
  }

  .ps-menu-btn {
    padding: 0 12px;
  }
}

@media (min-width: 720px) {
  .ps-container {
    width: min(1120px, calc(100% - 48px));
  }

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

  .ps-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ps-contact-grid,
  .ps-footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .ps-menu-btn {
    display: none;
  }

  .ps-logo {
    margin-right: 0;
  }

  .ps-logo img {
    height: 84px;
  }

  .ps-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    position: static;
    padding: 0;
    border: 0;
  }

  .ps-header-tools {
    margin-left: auto;
  }

  .ps-section {
    margin-block: 72px;
  }

  .ps-section-title {
    font-size: 44px;
  }

  .ps-trust,
  .ps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ps-trust {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
